-
Notifications
You must be signed in to change notification settings - Fork 37
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
[Serial] Pasting several lines into serial terminal causes "Bad status 8 -> 255" error and disconnect #215
Comments
Reproduces for me on Mac. I wanted to see if I could reproduce this on https://python.microbit.org/v/2 (as the serial code is very similar but the terminal is different) but there seems to be a short limit on the amount of pasted content there. It's not obviously something the v2 hterm setup is configuring though (Shift-Ins is paste there). DETAILS.TXT from the micro:bit I reproduced with:
More investigation required. |
Pasting 63 characters, e.g. Looking more closely, you get the same error in https://python.microbit.org/v/2 but it seems to recover and the REPL still works afterwards. The pasted content isn't visible. The difference might just be that the error handling is more systematic in the alpha so we trigger a disconnect because WebUSB is in an error state. Still need to understand the cause. |
Possible root cause in previous discussion: bbcmicrobit/PythonEditor#280 (comment) |
Reopening for follow-up:
|
Confirmed fixed in the alpha deployment version 0.1.0-dev.732. |
I am making project smart in that i have combined bluetooth and usb serial communication code. But if i run both simultaneously then its not working(getting error 020 sad icon). so could you help in that? |
Hi @Darshnik253, please get in touch with support via https://support.microbit.org. See this support article for details on the 020 error. |
Bug Description
Pasting the following script into the terminal causes an instant disconnection:
Screenshots
Environment
Desktop (please complete the following information):
Additional context
Possibly related: #89.
I discovered this when writing long strings from Javascript using
device.serialWrite()
. My goal is to implement microfs file downloads for getting data off of the micro:bit.The text was updated successfully, but these errors were encountered: