wkulecz
March 16th, 2007, 08:05 PM
I've a usb to parallel port adapter. Ubuntu recognizes it and reports Lucent uss720 and installs the uss720 module.
I'd like to be able to bit-bang the emulated printer port to read switches and drive relays. Speed is not a issue. In fact, the output from dmesg says use this module if you want to bit-bang the port, if you just want to hook up a printer use usblp instead.
Google search found me some info about 2.4 Kernel but none of it matches up with the /proc/sys/ stuff in Ubuntu 6.06 so I'm at a loss as to how to proceed.
On a real parallel port I'd do what I want with outp_b(bitvalues, 0x378) or status=inp_b(0x37a), anybody got any clues as to what the port address would be for the usb emulation or what device to read/write to get/set the printer I/O line states?
--wally.
I'd like to be able to bit-bang the emulated printer port to read switches and drive relays. Speed is not a issue. In fact, the output from dmesg says use this module if you want to bit-bang the port, if you just want to hook up a printer use usblp instead.
Google search found me some info about 2.4 Kernel but none of it matches up with the /proc/sys/ stuff in Ubuntu 6.06 so I'm at a loss as to how to proceed.
On a real parallel port I'd do what I want with outp_b(bitvalues, 0x378) or status=inp_b(0x37a), anybody got any clues as to what the port address would be for the usb emulation or what device to read/write to get/set the printer I/O line states?
--wally.