Using a microSD via a USB adapter - is it possible ???
Cluso99
Posts: 18,069
This was prompted by Jazzed's article on the Keychain prop thread...
··· Propellering the COBY DP151 - A PocketProp [noparse]:)[/noparse]
·· http://forums.parallax.com/showthread.php?p=821309
And discussion about SD and microSD and adapters...
·· SD or microSD ? Here are my thoughts...
·· http://forums.parallax.com/showthread.php?p=798073
In the "SD or microSD?" thread, my reply showed some photos of microSD adapters. The one of particular interest is the USB adapter.
Now, my question is...
Can we access the microSD card via a USB connector ??? Must we go via the FT232R or can we go direct via the propeller ??
For this to work, we will have to supply 5V to the USB port.
Why would we want to do this....
Comments anyone ???
Really, the same question applies to a real USB memory stick.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
··· Propellering the COBY DP151 - A PocketProp [noparse]:)[/noparse]
·· http://forums.parallax.com/showthread.php?p=821309
And discussion about SD and microSD and adapters...
·· SD or microSD ? Here are my thoughts...
·· http://forums.parallax.com/showthread.php?p=798073
In the "SD or microSD?" thread, my reply showed some photos of microSD adapters. The one of particular interest is the USB adapter.
Now, my question is...
Can we access the microSD card via a USB connector ??? Must we go via the FT232R or can we go direct via the propeller ??
For this to work, we will have to supply 5V to the USB port.
Why would we want to do this....
- USB t/hole sockets readily available.
- So are mini USB and they are small, and adapter cables should be easy???
- Easy to shift between pc and prop
- Cheap
Comments anyone ???
Really, the same question applies to a real USB memory stick.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
Comments
Quick answer is no.
All the device is doing is presenting the SD (of any variety) card as a USB mass storage device.
You could do it using the Vinculum chip I guess, but then you may as well wire the SD straight to the Propeller.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Release the hounds!
- uALFAT http://www.ghielectronics.com/product/1
- USBwiz http://www.ghielectronics.com/product/5
regards
dMajo: Nice find but not for me
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
Post Edited (Cluso99) : 7/13/2009 1:11:13 PM GMT
You can use analog switches (maxim have much) to drive (connect them to the SD IO's) the pullups with the usb +5V supply used as disable. The same supply could be routed through a resistor to a prop IO to indicate it should tristate the SD IO's and that the SD is busy by the PC.
Anyway it seems an interesting idea: go on with tests
You can eventually cut the power to the usb adapter by a low power (low on resistance) MOSFET until the prop is not ready to give the control to the PC. By doing so you'll probably also not power the D+ pullup resistor (if any). This signal to the upstream USB port when a full speed device has been connected to the bus. Have a look at USB specs: IIRC "devices" have D+ pullups/pulldowns while "hosts" have D- pullups/pulldowns for supported speed signaling purposes.
I have a question about USB card readers. The older card readers only work with SD cards <= 2G. The newer card readeres work for both SD and SDHC cards > 2B.
Is the card reader doing some internal processing to make it read both cards? If so, we could use that to our advantage.
I'm probably just showing my ignorance, but I thought this might be an easy way to solve the SD/SDHC read/write issue. I know several people are working on this. I've been helping one of them test.
Anyone know what's going on inside of the new USB card reader?
Jim
I thing that the difference is just the same lonesock and Rokicki with you are working on. Probably the firmware just not support the HC because at the time it was made there was no specs for the HC. The CID and CSD structures are different in the two items. From the SD specs: "Only hosts that are compliant to the Physical Layer Specification version 2.00 or higher and the SD File System Specification Ver2.00 can access High Capacity SD Memory Cards. Other hosts fail to initialize High Capacity SD Memory Cards"
I hope we are not hijacking your thread
Thanks for your clarification. It sounds like the USB card reader must be doing some internal processing to recognize the SDHC card before it communicates with the USB. If so, then if we can communicate with the card reader using USB, maybe it can do some of the hard work for us.
I'm familiar with the 2.0 spec, and there do seem to be some problems with cards produced before that spec was enforced.
Anyone else have some info on using the Prop USB interface to talk to the SD card reader? It doesn't seem like it should be too hard...
Jim
The Prop USB interface is not a general purpose USB interface. It's a USB slave and specifically a USB to serial adapter made by FTDI. You must have a USB host interface to talk to something like a USB SD card reader.
There have been some experiments with using a Propeller as a USB host directly and it neither has the speed nor the memory to do more than a simplified USB host to HID devices like a keyboard or mouse. You could use an external USB host interface like the FTDI Vinculum. You could also use an external interface like the Maxim MAX3421E USB Host Interface to take some of the processing burden off the Propeller. No one that I know of has done this yet.
If you had an SD card with USB interface, you could send data from the PC to the SD card and then the Prop could read that data from the SD card.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
Thanks for clarifying about the USB to serial restriction.
I like your idea of using either the Viniculum or MAX3421E to interface with the card reader.
It seems like this might be a worthwhile project.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Propalyzer: Propeller PC Logic Analyzer
http://forums.parallax.com/showthread.php?p=788230
In other words you need a usb host IC. In other threads it was stated several times that prop is not capable of handling directly the usb line as a host. Now if I have to use an additional IC than I personally chose a GHI Electronics product: everything (low level comms, file system stuff) is already done, you have only to exchange data with minimal overhead, they states their SPI (the one connected eg. to propeller) speed to 7Mb
PS: I have witten this reply after your post of 5:50 but for some strange reason when I came back to the PC I see it was not posted. Othes have explained already it to you
When Mike was talking about the lack of memory and speed, he wasn't referring to the use of the external devices.
It seems like they might offload enough work to make it doable.
Jim
Huh??? If this is really the case, then I apologize for urging caution.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Propalyzer: Propeller PC Logic Analyzer
http://forums.parallax.com/showthread.php?p=788230
Seems what I was hoping is not possible. Using another chip defeats the original purpose. It would have been nice to do this in Steve's keychain prop.
I can already transfer data to my microSD card from the PC in 2 ways. Either via a SD adapter and the laptop SD socket, or via a uSD to USB adapter and the laptop USB port.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm