No not the hardware you are connecting it to, we mean the USB adapter. When you plug it in, it sends the vendor ID and the device ID to the computer. These are a pair of 16-bit numbers, e.g. 413c:2003. (That pair happens to be a keyboard on my system.) You can see the IDs of the USB devices on your system with lsusb.
Using the IDs, do a web search to see if there is already a driver for it in Linux. It may even be that Linux will autoload a driver if the IDs are recognised, check the system log with dmesg. If a driver is loaded, typically the device will be something like /dev/usblp0 so the printing software should be configured to use that device path.
If it's a USB chip that nobody has written a Linux driver for, then I do not recommend trying to write it yourself. This is not a job for newbies. Instead do a search for USB chips that are already supported and buy an adapter with that. It won't cost much and will get you running.
However as Florian Festi points out, a USB parallel adaptor isn't equivalent to the original Centronics spec, it only behaves like one with printers. If you are trying to control time critical hardware, a USB adaptor is not recommended.
I would recommend you ask this on the Linux Mint forum since this is really a hardware compatibility problem and there may be users there with good suggestions. For the vast majority of peole, writing a driver is not an option.
I'm sure you did a search for this and saw that there are Windows XP drivers but not Linux. So probably not supported. A search on Linux USB parallel port adaptor gets this page: http://cholla.mmto.org/computers/linux/usb/usbpar.html which says that many adapters use the Prolific 2305 chip which is supported. The harder part is finding an adapter for sale that has this chip since they don't often say what chip is inside. If the description says supported by Linux, then there's a good chance it has this chip. Like I said, ask on the Mint forum to see anybody can recommend a model to buy.
Can you see through the plastic shell of the Xupp25 to see what USB chip is inside? Maybe it's a Prolific 2305? Also what USB IDs does the computer report?
This seems to be a cable that has a Prolific chip, but 2305 is not mentioned, and Linux driver is not mentioned so it might be a gamble: https://www.aliexpress.com/i/32897316824.html
Here's one which is reported to work with Raspbian therefore is supported in Linux, and probably contains the Prolific 2305 chip: https://www.aliexpress.com/i/32826351825.html and it's even cheaper. There are others which look the same outside and are even cheaper again, so *might* be the same hardware inside, knowing how the Chinese mass produce these things. Anyway for about 2 USD save your time and just buy the one that works with Raspbian.
[ 2851.872071] usb 3-1: new full-speed USB device number 4 using uhci_hcd [ 2852.084119] usb 3-1: New USB device found, idVendor=067b, idProduct=2305 [ 2852.084126] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2852.084131] usb 3-1: Product: IEEE-1284 Controller [ 2852.084135] usb 3-1: Manufacturer: Prolific Technology Inc. [ 2852.094322] usblp 3-1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 1 proto 2 vid 0x067B pid 0x2305
>usblp 3-1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 1 proto 2 vid 0x067B pid 0x2305
There you go, the device is /dev/usblp0. Now you have to run Mint's add printer function, however this is called (I don't run Mint) to set up a printer queue. Make sure the adaptor and the printer are plugged in and powered up. The add printer function may automatically offer USB printer port as an option. You also have to tell it the model of the printer so that it can select the appropriate configuration. If you succeed, then you have a printer queue you can send the output of Firefox, etc, etc, to.
Be aware that a parallel port over USB is not equivalent to a proper parallel port. A real parallel port is more or less directly hooked up to the processor of the computer. This allows using it for many real time applications. If you are planning something like this e.g. controlling a CNC machine this won't work via USB as the USB stack has too much latency and messages are delayed by random amounts.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
No not the hardware you are connecting it to, we mean the USB adapter. When you plug it in, it sends the vendor ID and the device ID to the computer. These are a pair of 16-bit numbers, e.g. 413c:2003. (That pair happens to be a keyboard on my system.) You can see the IDs of the USB devices on your system with lsusb.
Using the IDs, do a web search to see if there is already a driver for it in Linux. It may even be that Linux will autoload a driver if the IDs are recognised, check the system log with dmesg. If a driver is loaded, typically the device will be something like /dev/usblp0 so the printing software should be configured to use that device path.
If it's a USB chip that nobody has written a Linux driver for, then I do not recommend trying to write it yourself. This is not a job for newbies. Instead do a search for USB chips that are already supported and buy an adapter with that. It won't cost much and will get you running.
However as Florian Festi points out, a USB parallel adaptor isn't equivalent to the original Centronics spec, it only behaves like one with printers. If you are trying to control time critical hardware, a USB adaptor is not recommended.
I would recommend you ask this on the Linux Mint forum since this is really a hardware compatibility problem and there may be users there with good suggestions. For the vast majority of peole, writing a driver is not an option.
Are you sure? yes | no
Thanks . The adapter is Xupp25, the printer is laserjet 1100A
Are you sure? yes | no
I'm sure you did a search for this and saw that there are Windows XP drivers but not Linux. So probably not supported. A search on Linux USB parallel port adaptor gets this page: http://cholla.mmto.org/computers/linux/usb/usbpar.html which says that many adapters use the Prolific 2305 chip which is supported. The harder part is finding an adapter for sale that has this chip since they don't often say what chip is inside. If the description says supported by Linux, then there's a good chance it has this chip. Like I said, ask on the Mint forum to see anybody can recommend a model to buy.
Are you sure? yes | no
Can you see through the plastic shell of the Xupp25 to see what USB chip is inside? Maybe it's a Prolific 2305? Also what USB IDs does the computer report?
This seems to be a cable that has a Prolific chip, but 2305 is not mentioned, and Linux driver is not mentioned so it might be a gamble: https://www.aliexpress.com/i/32897316824.html
Are you sure? yes | no
Here's one which is reported to work with Raspbian therefore is supported in Linux, and probably contains the Prolific 2305 chip: https://www.aliexpress.com/i/32826351825.html and it's even cheaper. There are others which look the same outside and are even cheaper again, so *might* be the same hardware inside, knowing how the Chinese mass produce these things. Anyway for about 2 USD save your time and just buy the one that works with Raspbian.
Are you sure? yes | no
Bus 003 Device 002: ID 067b:2305 Prolific Technology, Inc. PL2305 Parallel Port
Are you sure? yes | no
Look at the kernel log with dmesg after plugging it in. Does it load a driver and is a device like /dev/usblp0 assigned to it?
Are you sure? yes | no
[ 2851.872071] usb 3-1: new full-speed USB device number 4 using uhci_hcd
[ 2852.084119] usb 3-1: New USB device found, idVendor=067b, idProduct=2305
[ 2852.084126] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2852.084131] usb 3-1: Product: IEEE-1284 Controller
[ 2852.084135] usb 3-1: Manufacturer: Prolific Technology Inc.
[ 2852.094322] usblp 3-1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 1 proto 2 vid 0x067B pid 0x2305
Are you sure? yes | no
>usblp 3-1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 1 proto 2 vid 0x067B pid 0x2305
There you go, the device is /dev/usblp0. Now you have to run Mint's add printer function, however this is called (I don't run Mint) to set up a printer queue. Make sure the adaptor and the printer are plugged in and powered up. The add printer function may automatically offer USB printer port as an option. You also have to tell it the model of the printer so that it can select the appropriate configuration. If you succeed, then you have a printer queue you can send the output of Firefox, etc, etc, to.
Are you sure? yes | no
it an old Vaio con pcu centrino duo. Linux mint installed. I need it to use an old parallel printer. I tryed with no success.
Are you sure? yes | no
OK, not the answer to your question but...
Be aware that a parallel port over USB is not equivalent to a proper parallel port. A real parallel port is more or less directly hooked up to the processor of the computer. This allows using it for many real time applications. If you are planning something like this e.g. controlling a CNC machine this won't work via USB as the USB stack has too much latency and messages are delayed by random amounts.
Are you sure? yes | no
What's the hardware?
Are you sure? yes | no