Emulating an SD card
Dr_Acula
Posts: 5,484
Could the propeller be programmed to emulate an SD card or USB memory stick?
Why on earth would you want to do such a thing? Well I have got an Android Pad (aka apad, epad, PandaPad) and for $110 including shipping these things are amazing. Surf the web, wifi, 3G, thousands of free apps etc.
But one thing these devices are lacking is input and output. Most have a USB socket, but it is severly limited due to lack of drivers in the Android operating system. It can talk to a keyboard and a USB memory stick, but not a mouse nor a USB to serial device. It can't talk to MIDI nor a USB to parallel adaptor.
So here is an idea. Use a propeller to either emulate an SD card, or a USB memory stick.
I'm not sure which of these would be easier. The SD card might be easier from a software point of view, but then you have to hack a card to get at the wires.
So a USB memory stick might be easier as these just plug in. Would a propeller be fast enough to talk USB and act as a slave device?
This has some more info http://cache.freescale.com/files/microcontrollers/doc/ref_manual/DRM104.pdf
My understanding is that USB slave devices are a lot simpler than host devices. Has anyone done anything like this?
Advice would be most appreciated.
Why on earth would you want to do such a thing? Well I have got an Android Pad (aka apad, epad, PandaPad) and for $110 including shipping these things are amazing. Surf the web, wifi, 3G, thousands of free apps etc.
But one thing these devices are lacking is input and output. Most have a USB socket, but it is severly limited due to lack of drivers in the Android operating system. It can talk to a keyboard and a USB memory stick, but not a mouse nor a USB to serial device. It can't talk to MIDI nor a USB to parallel adaptor.
So here is an idea. Use a propeller to either emulate an SD card, or a USB memory stick.
I'm not sure which of these would be easier. The SD card might be easier from a software point of view, but then you have to hack a card to get at the wires.
So a USB memory stick might be easier as these just plug in. Would a propeller be fast enough to talk USB and act as a slave device?
This has some more info http://cache.freescale.com/files/microcontrollers/doc/ref_manual/DRM104.pdf
My understanding is that USB slave devices are a lot simpler than host devices. Has anyone done anything like this?
Advice would be most appreciated.
Comments
If you want the propeller to "act" like an SD card or USB stick, I am sure that is doable, but like Kye says, would be messy. In the end it would probably be better to use a USB stick or SD card just by itself.
If you are wanting to setup communication between your tablet and the Propeller, then a better route would be to try and find or write USB drivers for serial communication.
So, on Android side you have a GUI which communicates via bluetooth or WLAN with the propeller and the propeller has all this nice devices attached ... the IR diode to switch TV set, stereo and stuff ... it has a RC attached to switch on power ... it can read temperature ...
By the way Prop to pad/tablet connectivity has been under discussion on the Android-android thread.
PS: Thanks for a pointer to the Android android thread. Somehow I missed that ... will read through it.