Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
USB to Parallel Port Converter
USB to parallel port adapter
I have a USB to parallel port adapter cable which I want to use with devices which have parallel port interfaces. When I plug it into the USB port I receive the usual message that it is installed. In the past I have used USB to parallel port modules which appear in device manager as a COM port which I can communicate with using QserialPort. However, this cable does not appear as a COM port but as a USB Serial Bus controller named USB Printing Support.Its location is Port_#0004.Hub_#004 and the hardware Ids is USB\VID_1A86%PID_7584. I am using the following code:
int main(int argc, char *argv)
QApplication a(argc, argv);
char C = 0xFA;
qDebug() << serial.portName();
The screen output is:
QIODevice::write (QserialPort): device not open
Press <RETURN> to close this window...
My question is how can I send/receive data to this device.
Thanks in advance.
Kent-Dorfman last edited by Kent-Dorfman
You make a faulty assumption, that the USB device uses the serial device driver class. USB is not that simple.
It's still nowhere near as simple as you'd like it to be. USB has many endpoints and you really need to know what if any driver class the thing uses. If no driver class then it's vendor specific and requires (often proprietary) drivers.
It's simple: "Serial port" != "Parallel port".
You cannot use QSerialPort for them.
Just as a note.
It has been years since i saw a true
USB to Parallel Port Converter. (on windows)
Those I have tried was made for printers and did not work with my
Parallel device since it did not emulate a true port.
( its a eprom burner from ancient times)
So what type of device is it ? ( if i may ask)
The device is a CATV tuner project board which, in the original design, uses three bits of the parallel port controlled directly from a C program from Windows 95. Since I no longer have a PC which uses Windows 95 and has a parallel port I am attempting to upgrade it to use on my current computer with Windows 10 and the converter. I rewrote the program with Qt 5.14. I had previously used an FTDI USB to parallel port module with Qt 5.4 to control similar devices but the tuner has a DB25M connector. To use the FTDI module would involve rebuilding the entire board. I prefer to modify software to accommodate hardware instead of the other way around. I tried communicating with the board as if it were a printer but was unsuccessful. (Incidentally I also still have an EPROM burner from ancient times).
This link is for the tuner website: http://www.mtmscientific.com/tuner.html
Rondog last edited by
When the USB-Parallel is connected it should show up as a parallel port through the device manager (LPT1, LPT2, ...). It sounds like this is not happening which means you need a driver.
When I plug this into a USB port it shows up in device manager as USB Printing Support. In Settings/Devices it is an "Unspecified device" with a driver of C:\WINDOWS\system32\DRIVERS\usbprint.sys. The buttons for changing the driver are all grayed out. I do not have a printer to plug the converter into. I have connected the pins to logic levels to simulate printer status signals like Select, /Busy, Paper Out, Error, etc. No luck so far. What else can I try?
USB Printing Support.
Just as a note. I had issues using usb 3 ports with usbprint.sys so if possible try to plug it in to 2.0 port.