Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection with ipad to some mac osx do not work #811

Closed
mbonani opened this issue Jun 4, 2020 · 28 comments · Fixed by #867
Closed

connection with ipad to some mac osx do not work #811

mbonani opened this issue Jun 4, 2020 · 28 comments · Fixed by #867

Comments

@mbonani
Copy link
Contributor

mbonani commented Jun 4, 2020

at least two user cannot connect scratch with ipad to a osx machine, it seems it works on Mojave but not on Catalina. Thymio Suite on ipad see the master computer;Thymio are correctly listed on the ipad but then the connection to scratch is not working (orange dot). Same tablet connecting to a windows host works fine.
Is there a hidden firewall? something else?

@mbonani
Copy link
Contributor Author

mbonani commented Jun 4, 2020

I can reproduce on my local mac Mojave 10.14.4
what is strange I do see the thymio from the ipad but not from my windows desktop, but I am sure it as worked

@mbonani
Copy link
Contributor Author

mbonani commented Jun 4, 2020

setup: one macosx 10.14.4 on windows 10 and ipad on same access point. Each computer as a simulator with 4 robots
ipad see both but scratch connection do only work on windows
mac see 8 robots and can connect to all with scratch
windows see only his 4 robots

is there a problem with bonjour? my bonjour browser on windows do not see the mac,

@mbonani mbonani added bug Something isn't working and removed Thymio Device Manager labels Jun 4, 2020
@mbonani
Copy link
Contributor Author

mbonani commented Jun 5, 2020

I do a similar test with another mac on High Sierra 10.13 same behavior on the same access point
but putting both computer on another access point windows to macs was working. Perhaps a problem with ipv6 ?

@mbonani
Copy link
Contributor Author

mbonani commented Jun 8, 2020

I will put some testing infomation to surround the problem:
test case 1 ipad 1 mac osx 10.14.4 (Firewall disabled) 1 PC running windows (firewall enable but Thymio Suite/TDM allowed for local connection) Netgear access point (I will dig in parameter if needet)
What is working:

  • mac see and connect to all robot using scratch
  • ipad see and connect to all robot (also mac this time, but it is not always the case)
  • on window only window robot are shown and are connectable

Discovery Bonjour scanner:
image

just append writing this post, simulator on mac has this error:
image

and robot are no more available on mac and on network
no more robot on ipad (even windows one)
windows robot can be seens and connect on mac and window

@mbonani
Copy link
Contributor Author

mbonani commented Jun 8, 2020

relaunching the simulator make it works again also to connect on robot that are onthe mac

@mbonani
Copy link
Contributor Author

mbonani commented Jun 8, 2020

relanching Thymio Suite on the windows make all work fine again (expeted windows do no see macs robot, but ipad yes)

@mbonani
Copy link
Contributor Author

mbonani commented Jun 8, 2020

putin playgound on back make it the disconnection error probably the power saving mecanism of the mac

@mbonani
Copy link
Contributor Author

mbonani commented Jun 8, 2020

this make the bonjour service also not working for the windows, so for me asebaplayground on mac OSX make strange thing on Bonjour

@mbonani
Copy link
Contributor Author

mbonani commented Jun 8, 2020

setup changes now all on another access point gl inet:
all is working fine, after some strange behaviour but I think Bonjour was not totally correct without restarting Thymio Suite on both computers
windows can see mac and connect to robots
ipad work fine on all robot

@mbonani
Copy link
Contributor Author

mbonani commented Jun 8, 2020

image
bonjour on win see the mac with this access point but info are not there
glinet bonjour win

@mbonani
Copy link
Contributor Author

mbonani commented Jun 8, 2020

image

@mbonani
Copy link
Contributor Author

mbonani commented Jun 8, 2020

playground still make this disconnection problem when it is put in background

@mbonani
Copy link
Contributor Author

mbonani commented Jun 8, 2020

back on the netgear access point (was shut down) all seems to work again... winodows see everything
image

@mbonani
Copy link
Contributor Author

mbonani commented Jun 8, 2020

I confirm that the IP address is not passed by Thymio Suite to the browser, it seem that the Bonjour service is not totatlly discribe:
image

image

@mbonani
Copy link
Contributor Author

mbonani commented Jun 10, 2020

is there some asio initialisation to be fix due to new version https://www.boost.org/doc/libs/1_72_0/doc/html/boost_asio/history.html?

@mbonani
Copy link
Contributor Author

mbonani commented Jun 10, 2020

is there something that is fix in https://www.boost.org/doc/libs/1_73_0/doc/html/boost_asio/history.html ?

@mbonani
Copy link
Contributor Author

mbonani commented Jun 11, 2020

back from lunch connection with scratch from computer or ipad do not work, it work with studio or VPL, is there something wrong with this connection link?
file:///C:/Program%20Files/Thymio/scratch/index.html?device=%7B43b62dfe-7796-41d4-a2d1-980d5aa2417b%7D&ws=

@mbonani
Copy link
Contributor Author

mbonani commented Jun 11, 2020

ok If I correct Ip by hand on address bar adding IP from mac it works! file:///C:/Program%20Files/Thymio/scratch/index.html?device=%7B43b62dfe-7796-41d4-a2d1-980d5aa2417b%7D&ws=ws://192.168.1.3:8597

@mbonani
Copy link
Contributor Author

mbonani commented Jun 15, 2020

if confirm this test case same result as explain upside
on thing strange is that also locally ws-port is not shown with discovery
image

@mbonani
Copy link
Contributor Author

mbonani commented Jun 15, 2020

exactly same behavior (not working) this time with second router that was working before
similar decription failure of service of Bonjour of the Mac

@mbonani
Copy link
Contributor Author

mbonani commented Jun 15, 2020

I did not get it work again...

@mbonani
Copy link
Contributor Author

mbonani commented Jun 15, 2020

for me the Bonjour service or mDNS is not working properly on this mac (or only TDM do not describe itself corretly)

@mbonani mbonani self-assigned this Jul 1, 2020
@mbonani
Copy link
Contributor Author

mbonani commented Oct 9, 2020

I made some test also with a build with boost 1.73
no miracle bug is still there. This time it is a old 10.12.6.
I launch several time Thymio suite and look with Discovery the Bonjour description, half of the time the ws port is missing that makes then remot access not work for webbase connection
image
image

so we should focus to understand this description why is sometime not complete (race condition?)

@mbonani
Copy link
Contributor Author

mbonani commented Oct 9, 2020

boostorg/asio#110 evaluate this?

@mbonani mbonani linked a pull request Oct 9, 2020 that will close this issue
@mbonani
Copy link
Contributor Author

mbonani commented Oct 9, 2020

probably related on this part of code:
9641614

@mbonani
Copy link
Contributor Author

mbonani commented Oct 9, 2020

fastest path to see if bug is reproduce:

@mbonani
Copy link
Contributor Author

mbonani commented Oct 9, 2020

code related:

// Endpoint of the WebSocket - So we can expose the port on zeroconf

node_registery.set_ws_endpoint(websocket_server.endpoint());

@mbonani
Copy link
Contributor Author

mbonani commented Oct 12, 2020

I found that when discovery do not shows correctly ws port we have a correct error message in thymio-device-manager log:

[2020-10-12 10:52:14.125] [console] [trace] aseba_node_registery@L138:	Discovery : update complete
[2020-10-12 10:52:14.125] [console] [error] aseba_node_registery@L136:	Discovery : already registered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant