Content originally posted in LPCWare by Pacman on Fri Jun 13 17:22:57 MST 2014
I'm thinking about making a small device, which is plugged into a computer's USB-port like a USB-stick.
It has a couple of output wires.
The job of the device would be to receive a text-file, parse it, and output a bitstream.
I'm imagining that it will work like copying a file from the computer onto a USB-stick; the difference is just that the storage is "limitless", and the file is not "saved".
In other words, it would behave like a "write-only" device, something similar to /dev/null ;)
How would you suggest to implement this the best way ?
-I'm completely new to USB (I've always avoided it, because I thought it was overwhelming), but I've read a bit about it, so I know there are different types of protocols, but I don't know which would suit my needs the best.
I wonder if it's best to "identify" as a storage device.
I haven't seen anyone do this before. What would be the right way to do something like this ?
Note: I'll probably be using a Cortex-M3 based device, perhaps the LPC134x or LPC175x/6x, maybe even a Cortex-M0; but definitely a Cortex-M device with USB support.