Comments (3)
@shimodash Hi, thank you very much for sharing the log. And sorry about my slow response. Let me have some time to look into the log and think about it. Yes, the line around 83705 is suspicious. The handle number 13 is the unlucky number :)
from pyscrlink.
I took a look in the log. Around the line 83705, we can see:
2021-06-05 13:17:07,800 BLE notification: 13 b'\x01X\x011\x01_\x01O\x01,\x01_\x01'
2021-06-05 13:17:07,800 13
These logs indicate that the pyscrlink received notification with handle "13". The first byte of the notification is 1. According to coreCube.ts of toio-visual-programming, the onNotified method shows that the message with value 1 contains x and y position and direction associated with "Mat". I guess this is the position and direction that toio detected and sent to Scratch.
The weird thing is that the handle 13 is not added to the handle list. At line 43157 and 64070, the log records,
add handle for notification: 39
Then, the handle 39 was registered twice. But there is no log for handle 13.
from pyscrlink.
Hi @shimodash
For further debugging, I created two commits in the dev branch. If you have time to afford, could you try it? The first commit enriches debug and error message. The second commit is to override the unknown handle 13 with the known handle 39. I'm not sure if this dirty hack works or not, but would like to know what will happen.
from pyscrlink.
Related Issues (20)
- Avoid sudo for scratcy_link.py HOT 7
- Multiple users support HOT 3
- Lego WeDo Support HOT 3
- Delay between sending command from Scratch and forwarding to the device HOT 3
- bluetooth connection to lego boost HOT 16
- Try to connect to LEGO HUB HOT 16
- Bluetooh connection Raspberry Pi 4 with Lego WeDo 2.0 HOT 13
- Second device disconnected HOT 10
- scratch_link procudes endless loop HOT 6
- Issue during device scanning HOT 5
- failed to connect with latest master HOT 8
- Support for Intelino Smart Train HOT 21
- Unicode decode error HOT 1
- BUG Method always returns None and awaits a miracle? ;) HOT 3
- LEGO boost HOT 8
- ERROR:ssl_client_socket_impl.cc handshake failed on Ubuntu 22.04 HOT 10
- PR_END_OF_FILE_ERROR - Secure Connection Failed HOT 6
- Lego WeDo: Unable to reestablish connection HOT 3
- CPU ressources HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyscrlink.