Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Can USB Add-on Look Like a USB Flash Drive ?

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
syndetic1

Bascom Member



Joined: 02 Jan 2007
Posts: 91

blank.gif
PostPosted: Wed Jan 29, 2025 2:58 am    Post subject: Can USB Add-on Look Like a USB Flash Drive ? Reply with quote

Hi,

I would like to make a device that has a USB Slave port with a USB-A connector, an SD card and a serial port. See picture

The user would plug it into their PC and be able to load a file onto the SD card.

Then plug the serial port into another piece of equipment, push a button and transfer the file out the serial port.


Do you know if the BASCOM USB add-on can make a device look like a USB memory stick?
Can you point to a code example.

Thanks in advance,
Frank

(BASCOM-AVR version : 2.0.8.6 )
Back to top
View user's profile
EDC

Bascom Expert



Joined: 26 Mar 2014
Posts: 1136

poland.gif
PostPosted: Wed Jan 29, 2025 8:49 am    Post subject: Reply with quote

I think it can be done by setting correct descriptor for present it as drive for PC systems but I think it will be extremely slow.
Better search for some hardware solution. There are many of them I think.

You can also reuse some ready solutions. For example very cheap audio module DY-17F uses DY1703A with some flash and when you connect it into the PC then it becomes a Flash Drive as you wanted. You can manage drive space and it will be stored in the Flash. Then you can acces this flash by your microcontroller and print it to the serial port. You dont even need AVR DOS for this then.

This is only my first idea.

I think such a thing must be preceded by research if there is not a ready to use solution.

For next example one of my project uses VDRIVE from FTDI company. It allows me to connect a pendrives into my devices. It convert pendrives data into very fast Serial or SPI so I can acces the data on the pendrives.
So probably there is a complementary micro for your tasks.

_________________
Check B-Flash -my MCS bootloader app for Android (updated)
Back to top
View user's profile Visit poster's website
plouf

Bascom Member



Joined: 19 Jan 2012
Posts: 102
Location: Athens,Greece

greece.gif
PostPosted: Wed Jan 29, 2025 11:00 am    Post subject: Reply with quote

Usb addon has this and some exaplmes yea

Sdcard is easier though no usb needed Smile

Edit also as above EDC said a complement device maybe also good idea

Also to add v-usb which can be burned in a tiny 2313 or tiny85 has some ready examplea to use it as hid so no need to write drivers for pc either :+)

_________________
Christos
Back to top
View user's profile
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1198
Location: France

france.gif
PostPosted: Thu Jan 30, 2025 6:49 pm    Post subject: Reply with quote

did you visit the FTDI site , you can find a lot of interfaces as the UB232R https://ftdichip.com/product-category/products/modules/

JP
Wink

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
syndetic1

Bascom Member



Joined: 02 Jan 2007
Posts: 91

blank.gif
PostPosted: Tue Apr 08, 2025 6:24 am    Post subject: Reply with quote

Thanks guys. Greatly appreciated.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum