Page 1 of 1

How does file transfer to target device work?

Posted: Fri Apr 09, 2021 8:48 am
by smoorby
How does code and other files get transferred to the PyBoard, or other target? It's not a problem, just curious. It's working fine with Thonny. I can see a ttyACM0 device over which the REPL is accessed, just curious how this is used to transfer files. Was thinking I might automate some things down the line.

Re: How does file transfer to target device work?

Posted: Fri Apr 09, 2021 3:19 pm
by smoorby
Have been browsing and I think I'll find the answer by playing with rshell.

Re: How does file transfer to target device work?

Posted: Fri Apr 09, 2021 9:11 pm
by dhylands
I've also written a script https://github.com/dhylands/upy-example ... e_files.py that takes some files and generates a files.py file. You can then run that on the board using pyboard.py

I think using rshell is easier (disclaimer I wrote rshell).

Re: How does file transfer to target device work?

Posted: Sun Apr 11, 2021 8:15 am
by smoorby
Thank you for this... and for rshell :-)