dhylands / rshell

Remote Shell for MicroPython
MIT License
935 stars 134 forks source link

Buffer on wipy #7

Open ghislainp opened 8 years ago

ghislainp commented 8 years ago

I'm using the wipy with REPL through the serial port (on the extension board). It seems that cp() hangs if the buffer size is higher than 254. Maybe this should be documented or set automatically when a wipy is detected. Problem of int size?

dhylands commented 8 years ago

The issue is that the WiPy has some internal buffer for use with the serial port and rshell needs to not overflow that.

When I wrote rshell, I was primarily using the pyboard over the USB connection and have the buffer size set to 512 gave reasonable file transfer speeds.

The tricky bit will be to figure out that we're connected to a wipy (should be doable using sys.uname or something) and figuring out that we're connected over serial versus USB (should also be doable, it will just take some work).