-
Notifications
You must be signed in to change notification settings - Fork 26
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
BLE session disconnected with toio on playmat #26
Comments
@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 :) |
To debug the GitHub issue #26, add more debug and error logs to functions to handle notifications. Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
Unknown handle "13" was recorded in debug log for the Git Hub issue #26. As a debug trial, replace the unknown handle with the known handle. Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
I took a look in the log. Around the line 83705, we can see:
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,
Then, the handle 39 was registered twice. But there is no log for handle 13. |
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. |
To debug the GitHub issue #26, add more debug and error logs to functions to handle notifications. Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
Unknown handle "13" was recorded in debug log for the Git Hub issue #26. As a debug trial, replace the unknown handle with the known handle. Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
Hi kawasaki-san
I found the issue with playing toio.
I put io on playmat to use absolutely position.
BLE session disconnected was occurred.
I attached log file scratch_link with -d option.
log.txt
disconnect may be occurred around line 83705.
The text was updated successfully, but these errors were encountered: