How does file transfer to target device work?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
smoorby
Posts: 7
Joined: Thu Apr 01, 2021 9:29 am
Location: Basingstoke, UK

How does file transfer to target device work?

Post by smoorby » Fri Apr 09, 2021 8:48 am

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.

smoorby
Posts: 7
Joined: Thu Apr 01, 2021 9:29 am
Location: Basingstoke, UK

Re: How does file transfer to target device work?

Post by smoorby » Fri Apr 09, 2021 3:19 pm

Have been browsing and I think I'll find the answer by playing with rshell.

User avatar
dhylands
Posts: 3639
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: How does file transfer to target device work?

Post by dhylands » Fri Apr 09, 2021 9:11 pm

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).

smoorby
Posts: 7
Joined: Thu Apr 01, 2021 9:29 am
Location: Basingstoke, UK

Re: How does file transfer to target device work?

Post by smoorby » Sun Apr 11, 2021 8:15 am

Thank you for this... and for rshell :-)

Post Reply