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.
Content originally posted in LPCWare by TheFallGuy on Sat Jun 14 05:24:19 MST 2014 No, it is a serial device, not a mass storage device. You would use copy or cp to copy a file to the device, just like you would with the null device.
Content originally posted in LPCWare by TheFallGuy on Sat Jun 14 01:30:30 MST 2014 Sounds like a serial device (tty) and nothing like a mass storage device. NXP provide an example for a USB serial device (CDC - communications device class). Look at LPCOpen for the device you are going to use.