This uses libftdi to control a DLP-USB245M USB 1.1 parallel-port in bitbang mode, controlled by a Linux command-line application.
It's useful for simple hardware-control from the shell, writing or reading a byte at a time. Almost all the hard-work is done by libftdi; this is just one program that uses it.
For example:
ftdi245io --check Check for the specific ftdi device (with the chosen serial number).
ftdi245io --porta_setpins 0xXX Write the byte to the outputs (suitably output-masked).
ftdi245io --porta_readpins Read the state of the inputs.
ftdi245io --porta_readback Read back the current state, from the port hardware.
Libftdi is well documented, stable and flexible. The DLP-USB245M modules are now slightly dated (using USB 1 for 12Mbit/s max) but have had a Linux driver since kernel 2.4. They are quite flexible, capable of acting as a parallel-port with handshaking and a FIFO, or capable of being driven in bit-bang mode for direct I/O.
This was written as part of my PhD Infrared Camera system. It should be possible to adapt it for wider usage.
The original system had 4 independent USB245 devices, hence the remaining references to "PortA".
Some selected files, from the tarball: Readme and Man-pages.
README.txt
ftdi245io.1
Return to all programs, site home.