View previous topic :: View next topic |
Author |
Message |
syndetic1
Joined: 02 Jan 2007 Posts: 91

|
Posted: Wed Jan 29, 2025 2:58 am Post subject: Can USB Add-on Look Like a USB Flash Drive ? |
|
|
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 |
|
 |
EDC
Joined: 26 Mar 2014 Posts: 1136

|
Posted: Wed Jan 29, 2025 8:49 am Post subject: |
|
|
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 |
|
 |
plouf
Joined: 19 Jan 2012 Posts: 102 Location: Athens,Greece

|
Posted: Wed Jan 29, 2025 11:00 am Post subject: |
|
|
Usb addon has this and some exaplmes yea
Sdcard is easier though no usb needed
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 |
|
 |
Duval JP
Joined: 22 Jun 2004 Posts: 1198 Location: France

|
|
Back to top |
|
 |
syndetic1
Joined: 02 Jan 2007 Posts: 91

|
Posted: Tue Apr 08, 2025 6:24 am Post subject: |
|
|
Thanks guys. Greatly appreciated. |
|
Back to top |
|
 |
|