usb to parallel port

Hawking tech. Usb to parallel port adapt...
September 1, 2009 at 08:40:36
Specs: Windows XP
I have been using Parallel Port of PC to communicate with controller which uses 2 data pins(as Clock and Data) as inputs and one of the Status pin as output. But Now a days most of the Laptops are not having Parallel ports, So I have purchased BAFO USB to 25 pin Parallel Port Converters. When the converter is conneted to Laptop it is detected as USB printing support instead LPT port, then I started investigation and Finally I understood that first I have to find device path Name using win API functions, then by using CreateFile(), ReadFile(),WriteFile() and DeviceIoControl() I can send and read data to the parallel port.

Finally by using VC++ and WinDDK I am able to find the Device Path Name successfully(Called Set of API functions given in USB COMPLETE manual but I fixed GUID name, which I found in usbprint.c file availabe in net)

Now the Problem is
1. How to send 8 bit Data to Parallel port (like LPT1 - 0x378 used to send data)
2. How to Read Status Bits from Parallel Port (like LPT1 - 0x379 used to read data)

I think ReadFile(),WriteFile() may not work in this case.

Please help me.


See More: usb to parallel port

Report •


#1
September 1, 2009 at 12:44:56
Personally I prefer Parallel Port Cardbus/Express Cards:

http://www.cooldrives.com/software-...

http://www.cooldrives.com/1ppaspex3...

This would remove the USB/Parallel Conversion difficulty.....


Report •

#2
September 2, 2009 at 01:44:00
Thanks for the reply,

Do I have any alternate Low cost solution with USB.


Report •

Related Solutions


Ask Question