Copy USB Key to SDCARD

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
twist
Posts: 7
Joined: Thu Jan 21, 2021 12:36 pm

Copy USB Key to SDCARD

Post by twist » Thu Jan 21, 2021 12:38 pm

hi everyone

i want to copy a usb key connect to usb with a OTG cable to the SDCARD.
have to any script for me ?
thx guy !

User avatar
jimmo
Posts: 2232
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Copy USB Key to SDCARD

Post by jimmo » Thu Jan 21, 2021 12:44 pm

twist wrote:
Thu Jan 21, 2021 12:38 pm
i want to copy a usb key connect to usb with a OTG cable to the SDCARD.
have to any script for me ?
If I understand correctly, you want to use a MicroPython board (e.g. pyboard) as a USB Host, and plug a USB key into it, read a file off it, then write the file to the SD card?

Unfortunately MicroPython doesn't currently have support for USB host mode.

twist
Posts: 7
Joined: Thu Jan 21, 2021 12:36 pm

Re: Copy USB Key to SDCARD

Post by twist » Thu Jan 21, 2021 4:33 pm

yes it is
:| its ot possible to read a usb key ?

twist
Posts: 7
Joined: Thu Jan 21, 2021 12:36 pm

Re: Copy USB Key to SDCARD

Post by twist » Thu Jan 21, 2021 4:34 pm

same with pinout rx tx?

User avatar
jimmo
Posts: 2232
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Copy USB Key to SDCARD

Post by jimmo » Mon Jan 25, 2021 12:25 am

twist wrote:
Thu Jan 21, 2021 4:33 pm
its ot possible to read a usb key ?
Not without USB host mode, sorry. It's a thing we'd like to add (for example, to plug a keyboard or mouse into a pyboard). Supporting USB MSC (i.e. to allow accessing flash drives) in host mode would be nice too, but it's a bit more complicated.

twist wrote:
Thu Jan 21, 2021 4:34 pm
same with pinout rx tx?
Not quite sure what you mean?

twist
Posts: 7
Joined: Thu Jan 21, 2021 12:36 pm

Re: Copy USB Key to SDCARD

Post by twist » Mon Jan 25, 2021 1:28 pm

ok thx ,,

Post Reply