|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.