Help with USB
Steve Andrues
Posts: 29
I have a really neat data acquisition board that works through a 'Herculese' parallel printer port (for those of you who are old enough to know what that is). The DA board will not work with a Pentium class parallel printer port (the software configurable type). It's time to jump ship an convert to a comm port that might be around a while. USB maybe? Is there any primer, white paper, or app note that gives examples on how to implement a USB port, preferably for the Propeller chip? After reading Jan Axelson's book "USB port Complete" I have a headache and remain confused. Is this too much to implement with a Propeller (the only example I could find in the object exchange needs 4 cogs)? Should another serial protocol be used (PC's don't come with serial ports anymore)? Any feedback would be greatly appreciated.
Comments
PC -> Propeller "Send me the data from data port #1" ... maybe something like: S[1]
PC <- Propeller "Here's the data" S[1]=1.235
There is code available that acts as a USB host for a variety of devices, but the above would be easier. See here.
I'm not sure it's quite that simple. If Steve wants to be able to run the data acquisition software on the PC he has to get the data/commands out to and in from the DA board to that software. If the operating system allows the printer port to be redirected to a comm port it might be possible. It has been so long since I have dealt with anything that uses a parallel port interface that I am not sure Windows supports redirection any more.
If it is not possible to redirect I/O then new control software for the DA board has to be written. Might be simpler to write that for the propeller and use the PC as the data logger.
You don't, at least not directly.
You use a Serial port-USB bridge chip, or module, and the Prop talks serial.
Look at FTDI and SiLabs for examples. Chips start circa $2 and modules around $10.
Does your existing parallel product use Prop ?
Can it interface to 3V levels ?
It is probably a lot simpler (and possibly less costly) to buy a replacement data acquisition board that comes with windows software, but it might be worth a try.
PS – Do you have the original manual for the AD board and does it have enough information to write a program to control the board?