Mobsya / thymio-scratchx

A ScratchX extension for Thymio
GNU Lesser General Public License v3.0
3 stars 11 forks source link

Thymio not connecting with Web Bridge #16

Open stefangachter opened 6 years ago

stefangachter commented 6 years ago

I tried to connect with Web Bridge two different Thymios under Windows 10 Pro on Lenovo T420 Notebook. However, I was not successful. (I tried same Thymios on Mac PowerBook, where I was successfull. However, it took tens of seconds until Web Bridge established connection.) In ScratchX, red lamp stayed on and never turned green. However, I could sometimes send a command, e.g. turn left wheel with speed 50, and Thymio reacted properly, but when I started a complete programm, e.g. Thymio in space, Thymio did not react properly at all. VPL 1.5.98 (1.5.98-git-c7aef12) worked properly. Here, couple of Web Bridge logs, using

=============================================
HttpInterface connect asebaTarget ser:name=Thymio
Found Thymio on port \\.\COM6
0x90b314 Incoming connection from ser:name=Thymio;baud=115200;stop=1;parity=none;fc=none;bits=8;dtr=true
incomingUserMsg msg (24,0x90baf0)
0x77fbd8 Received description for node 1 thymio-II given nodeId 1
0x2824234 Incoming connection from tcppoll:sock=1952:host=host;port=port;connectionPort=-1;sock=1952
incomingUserMsg msg (24,0x90b990)
0x28244dc Incoming connection from tcp:host=127.0.0.1;port=61695;connectionPort=3000
0x28245dc Incoming connection from tcp:host=127.0.0.1;port=61693;connectionPort=3000
0x28246dc Incoming connection from tcp:host=127.0.0.1;port=61697;connectionPort=3000
incoming for HTTP stream 0x28244dc
0x28244dc Request GET /nodes/thymio-II/events [ nodes thymio-II events ] HTTP/1.1 new req 0x2824298
0x2824298 appendResponse 200 <...>, keep open
0x28244dc sendAvailableResponses 1 in queue 0x2824298
0x28244dc available responses sent, now 1 in queue
incoming for HTTP stream 0x28245dc
0x28245dc Request GET /nodes/thymio-II/events [ nodes thymio-II events ] HTTP/1.1 new req 0x28247a8
0x28247a8 appendResponse 200 <...>, keep open
0x28244dc sendAvailableResponses 1 in queue 0x2824298
0x28244dc available responses sent, now 1 in queue
0x28245dc sendAvailableResponses 1 in queue 0x28247a8
0x28245dc available responses sent, now 1 in queue
incoming for HTTP stream 0x28246dc
0x28246dc Request GET /nodes/thymio-II/events [ nodes thymio-II events ] HTTP/1.1 new req 0x28249b0
0x28249b0 appendResponse 200 <...>, keep open
0x28244dc sendAvailableResponses 1 in queue 0x2824298
0x28244dc available responses sent, now 1 in queue
0x28245dc sendAvailableResponses 1 in queue 0x28247a8
0x28245dc available responses sent, now 1 in queue
0x28246dc sendAvailableResponses 1 in queue 0x28249b0
0x28246dc available responses sent, now 1 in queue
0x28244dc sendAvailableResponses 1 in queue 0x2824298
0x28244dc available responses sent, now 1 in queue
0x28245dc sendAvailableResponses 1 in queue 0x28247a8
0x28245dc available responses sent, now 1 in queue
0x28246dc sendAvailableResponses 1 in queue 0x28249b0
0x28246dc available responses sent, now 1 in queue
incomingUserMsg msg (24,0x90b710)
0x2824298 appendResponse 200 <data: 2...>, keep open
0x28247a8 appendResponse 200 <data: 2...>, keep open
0x28249b0 appendResponse 200 <data: 2...>, keep open
0x28244dc sendAvailableResponses 1 in queue 0x2824298
0x28244dc available responses sent, now 1 in queue
0x28245dc sendAvailableResponses 1 in queue 0x28247a8
0x28245dc available responses sent, now 1 in queue
0x28246dc sendAvailableResponses 1 in queue 0x28249b0
0x28246dc available responses sent, now 1 in queue
0x28244dc sendAvailableResponses 1 in queue 0x2824298
0x28244dc available responses sent, now 1 in queue
0x28245dc sendAvailableResponses 1 in queue 0x28247a8
0x28245dc available responses sent, now 1 in queue
0x28246dc sendAvailableResponses 1 in queue 0x28249b0
0x28246dc available responses sent, now 1 in queue
=============================================
HttpInterface connect asebaTarget ser:name=Thymio
Found Thymio on port \\.\COM6
0x85b314 Incoming connection from ser:name=Thymio;baud=115200;stop=1;parity=none;fc=none;bits=8;dtr=true
0x77fbd8 Received description for node 1 thymio-II given nodeId 1
0x2754b7c Incoming connection from tcppoll:sock=1968:host=host;port=port;connectionPort=-1;sock=1968
incomingUserMsg msg (24,0x85b470)
incomingUserMsg msg (24,0x85b770)
incomingUserMsg msg (24,0x85b4b0)
incomingUserMsg msg (24,0x85b770)
incomingUserMsg msg (24,0x85b670)
incomingUserMsg msg (24,0x85b4b0)
incomingUserMsg msg (24,0x85b550)
incomingUserMsg msg (24,0x85b4b0)
incomingUserMsg msg (24,0x85b670)
incomingUserMsg msg (24,0x85b770)
Loaded aesl script in-memory buffer <!DOCTYPE aesl-source><network><keywords flag="true"/><node nodeId="1" name="thymio-II"></node></network>
incomingUserMsg msg (24,0x2758868)
incomingUserMsg msg (24,0x2758ae8)
incomingUserMsg msg (24,0x27587c8)
incomingUserMsg msg (24,0x2758788)
incomingUserMsg msg (24,0x27588e8)
incomingUserMsg msg (24,0x2758968)
incomingUserMsg msg (24,0x2758928)
incomingUserMsg msg (24,0x2758a48)
incomingUserMsg msg (24,0x27588e8)
incomingUserMsg msg (24,0x2758908)
incomingUserMsg msg (24,0x2758808)
incomingUserMsg msg (24,0x2758a28)
incomingUserMsg msg (24,0x27588a8)
incomingUserMsg msg (24,0x27588e8)
incomingUserMsg msg (24,0x2758988)
incomingUserMsg msg (24,0x2758a68)
incomingUserMsg msg (24,0x27589c8)
incomingUserMsg msg (24,0x2758aa8)
incomingUserMsg msg (24,0x2758ac8)
incomingUserMsg msg (24,0x27587c8)
incomingUserMsg msg (24,0x27588e8)
incomingUserMsg msg (24,0x2758a48)
incomingUserMsg msg (24,0x2758a68)
incomingUserMsg msg (24,0x2758988)
incomingUserMsg msg (24,0x27589e8)
incomingUserMsg msg (24,0x2758aa8)
incomingUserMsg msg (24,0x2758948)
incomingUserMsg msg (24,0x2758848)
incomingUserMsg msg (24,0x2758848)
incomingUserMsg msg (24,0x2758988)
incomingUserMsg msg (24,0x2758a88)
incomingUserMsg msg (24,0x2758908)
incomingUserMsg msg (24,0x27589c8)
incomingUserMsg msg (24,0x27587a8)
incomingUserMsg msg (24,0x2758828)
incomingUserMsg msg (24,0x2758a48)
incomingUserMsg msg (24,0x27588c8)
incomingUserMsg msg (24,0x2758868)
incomingUserMsg msg (24,0x2758788)
incomingUserMsg msg (24,0x2758ae8)
incomingUserMsg msg (24,0x2758928)
incomingUserMsg msg (24,0x2758848)
incomingUserMsg msg (24,0x2758868)
incomingUserMsg msg (24,0x27588a8)
incomingUserMsg msg (24,0x2758a48)
incomingUserMsg msg (24,0x27588c8)
incomingUserMsg msg (24,0x27588c8)
incomingUserMsg msg (24,0x2758988)
incomingUserMsg msg (24,0x27589c8)
incomingUserMsg msg (24,0x27588a8)
incomingUserMsg msg (24,0x2758848)
incomingUserMsg msg (24,0x27587a8)
incomingUserMsg msg (24,0x2758848)
incomingUserMsg msg (24,0x2758a68)
incomingUserMsg msg (24,0x2758a68)
incomingUserMsg msg (24,0x27588a8)
incomingUserMsg msg (24,0x2758888)
incomingUserMsg msg (24,0x27589e8)
incomingUserMsg msg (24,0x2758908)
incomingUserMsg msg (24,0x2758968)
incomingUserMsg msg (24,0x27589e8)
=============================================
mbonani commented 6 years ago

We improve webbridge and connection, it probably solve the problem could you retest?

MacDamien commented 6 years ago

Hello,

Thymio web bridge doesn't connect Thymio 2. The app doesn't even launch. MacOS High Sierra (10.12.6) Thymio firmware 11.

mbonani commented 6 years ago

@MacDamien actually the webbridge on macosx seems to not be launch and the icon is jumping, in fact it is working and nothing else is show to the user. So even if it is jumping you can try to connect with scratch or blockly. We will also improve that in a short time.

MacDamien commented 6 years ago

Scratch X doesn’t show the green light in middle panel. I loaded in the demonstration project and it doesn’t move the Thymio 2.

Le 31 janv. 2018 à 17:19, Michael Bonani notifications@github.com a écrit :

@MacDamien https://github.com/macdamien actually the webbridge on macosx seems to not be launch and the icon is jumping, in fact it is working and nothing else is show to the user. So even if it is jumping you can try to connect with scratch or blockly. We will also improve that in a short time.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aseba-community/thymio-scratchx/issues/16#issuecomment-361984605, or mute the thread https://github.com/notifications/unsubscribe-auth/AM8BnpE5K2z8dG7H5yMRcdiZUSbcoKYBks5tQJJ2gaJpZM4QzX7Z.

-- Damien