-
Notifications
You must be signed in to change notification settings - Fork 27
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 "delayed" characters on serial, specially when playing sound #15
Comments
If this isn't fixed it could be a blocker for Mu so testing with latest DAL (V0.2.19) is high priority. @martinwork |
The REPL seems OK now. Tested with Editor Version: 2.1.0-beta.7 MicroPython Version: 1.0.1/2.0-44a75bb, typing and using the REPL history with these commands: I noticed that music.play cancels any previous music.play or music.pitch, but music.pitch doesn't cancel a previous music.play. The music.pitch sounds briefly, and the blues keep playing. Is this expected? |
Thanks Martin, I've opened #28 to discuss the music question. About the UART I was able to trigger it by pasting code into the REPL quickly until some characters got lost. In this GIF (>3MBs, so it might take a minute lo load) I paste |
I wasn't able to replicate this with something like |
It seems better than it was. I have only been testing in the web app. Could there be a buffering problem that isn't strictly "serial"? i.e. not CODAL serial Trying in tera term, using up-arrow/return to repeat a single command. There seems to be a difference between these:
Pressing up-arrow/return as fast as I can, after about 10-15 audio.plays have executed:
I eventually got the same result with a V1 and microbit.display.show("Hello") I can paste many lines in one go that show a single character (multiple repeats of the alphabet), but 2 characters locks up easily - more so on V1 microbit.display.show("A0") microbit.display.show("A") |
@microbit-carlos to post the gif and Martin could you please re-test once #35 is resolved in case these are related? |
@jaustin Will do! |
The GIF was actually higher up in this thread (it's a bit heavy, so maybe it didn't load when we were looking at this page): I've tried this with the latest hex from the CI (https://github.com/microbit-foundation/micropython-microbit-v2/actions/runs/420785120) and can still replicate by copy/pasting |
Pasting into tera term shows the difference between V1 and V2. The results are the same if I paste the whole thing or type "import microbit" and paste the rest. It looks to be about filling up the RX buffer, because executing the commands is delaying throughput. After the output below, pressing SPACE is echoed OK by V1 but V2 echoes with previous sent characters. The V2 response is like lancaster-university/codal-microbit-v2#46. Pasting this into tera term
V1 says
MICROBIT-MICROPYTHON-967c0765* V2 says:
|
I can't replicate the issue anymore with the latest CODAL changes.
Paste mode and raw repl seem to work fine, so I'll close this. |
This should be fixed with the latest CODAL, but we still need to test it and confirm it's the case and if there are still issues report back to CODAL.
When using sound and the REPL sometimes it get's into a state where typing a character only shows back 2 or 3 keystrokes in the future.
The text was updated successfully, but these errors were encountered: