zsquareplusc / mpy-repl-tool

Yet an other tool to transfer files, execute files and so on via the Python prompt, used for MicroPython
Other
19 stars 5 forks source link

Bigger faster transfers #7

Closed oliver-joos closed 6 years ago

oliver-joos commented 6 years ago

This branch improves write speed from 6kB/s to 11kB/s and read speed from 7kB/s to 15kB/s (using 230400 baud). It also fixes transfers of files bigger than target RAM. And it fixes timeouts during such big transfers (tested with files upto 600kB).

Increasing timeouts to 60 sec is a hack to still prevent scripts to hang forever. An interactive user will press CTRL+C earlier anyway. A final solution will have to detect if a transfer is running or not.