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

Lego WeDo2.0 not connecting anymore #40

Closed
quamis opened this issue Feb 16, 2024 · 6 comments
Closed

Lego WeDo2.0 not connecting anymore #40

quamis opened this issue Feb 16, 2024 · 6 comments

Comments

@quamis
Copy link

quamis commented Feb 16, 2024

Hello,
thanks for you project. My kid loves playing with WeDo2.0 and your project keeps him being able to use it on linux. He used it on an older Linux Mint (originally installed around 2018-2019 i guess) until 1-2 weeks ago. I had the "bright" ideea to upgrade his system to latest Mint version, and now scratch_link doesn't seem to o anything.

When accessing https://scratch.mit.edu/ and trying to connect to WeDo the connection popup doesn't seem to spend any time searching for the actual device.
In the Firefox console I'm seeing this message:

Firefox can’t establish a connection to the server at ws://127.0.0.1:20111/scratch/ble. 
Firefox can’t establish a connection to the server at wss://device-manager.scratch.mit.edu:20110/scratch/ble.

Manually connecting to https://device-manager.scratch.mit.edu:20110/scratch/ble returns

Secure Connection Failed

An error occurred during a connection to device-manager.scratch.mit.edu:20110. PR_END_OF_FILE_ERROR

Error code: PR_END_OF_FILE_ERROR

As far a I remember PR_END_OF_FILE_ERROR is returned when the https server closes the connection without communicating anything, and scratch_link doesn't seem to log anything regarding to the webserver activity, so i guess that something is wrong on the ws side.

Screenshot from 2024-02-16 07-52-19

Screenshot from 2024-02-16 08-10-50

@hackerdolphin
Copy link

Hay........... I seen that screen before but I don't remember what was the problem

@kawasaki
Copy link
Owner

@quamis FYI, the issue #36 reported the error PR_END_OF_FILE_ERROR, and it looks resolved with the action recorded in the issue #35. I hope that it will work for you.

@quamis
Copy link
Author

quamis commented Feb 23, 2024

Hello
installing pip's websockets works.

These are the commands I ran.

sudo apt remove python3-websockets
sudo apt purge python3-websockets
pip install websockets

scratch_link -d

Thanks

@quamis quamis closed this as completed Feb 23, 2024
@hackerdolphin
Copy link

hackerdolphin commented Feb 25, 2024 via email

@hackerdolphin
Copy link

hackerdolphin commented Feb 25, 2024 via email

@hackerdolphin
Copy link

hackerdolphin commented Feb 26, 2024 via email

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

No branches or pull requests

3 participants