I ran a classroom using Mu and many ESP devices. In the classroom were about 40 students with different laptops. Running code was troublesome. The behavior when using the RUN button was flaky, and dependent on the precise laptop. Hitting RUN and RUN again gave different results.
What happens is the following:
On RUN, the first thing to do is to reset the device
The time for reset is dependent on the start-up script and default program
In some occasions, the program download starts before the start-up script is completed
Inspired by the mpremote tool I implemented a handshake on the serial port for the RUN command.
This works fine in my environment; it provides a robust solution. Please note, the testing has been limited.
Glancing through the issues mentioned here at Github, the following issues appear to be similar and may be affected (solved?): #2397, #2319, #1996 and #1433. Unfortunately, I have no means to verify the last claim.
I ran a classroom using Mu and many ESP devices. In the classroom were about 40 students with different laptops. Running code was troublesome. The behavior when using the RUN button was flaky, and dependent on the precise laptop. Hitting RUN and RUN again gave different results.
What happens is the following:
Inspired by the mpremote tool I implemented a handshake on the serial port for the RUN command.
This works fine in my environment; it provides a robust solution. Please note, the testing has been limited. Glancing through the issues mentioned here at Github, the following issues appear to be similar and may be affected (solved?): #2397, #2319, #1996 and #1433. Unfortunately, I have no means to verify the last claim.