Replies: 1 comment 5 replies
-
Hi, AFAIK there is no way how to get more sophisticated data via CUPS socket backend, which connects to printer's port 9100 - even ink supplies have to be done via SNMP, if the device has SNMP support. However, if the printer supports it (either via network or via USB), I would recommend going for IPP (in case of USB via IPP-over-USB protocol) - it does the exactly the same things you would like to get via socket (you simply ask for the printer attributes ). If the printer does not support IPP 2.0+, you can spend your time figuring out ways how to get such queries via socket, or get used to knowing the fact you won't get such data from printer. Or buying a printer which does IPP 2.0+, which are pretty common in last decade. |
Beta Was this translation helpful? Give feedback.
-
Hello, I setup a usb printer with cups using the web interface. Printing PDFs like that works fine. I then tried to expose that printer via the jetdirect protocol using xinetd using the following configuration (source):
This already works fine, I can add the printer on my pc and print as if the usb printer is connected to the pc. This also creates jobs for each print request. But is there any way like this to be able to send raw bytes to the printer and receive bytes that the printer responds with? I want to use that to query the printer for the currently inserted paper, ink stats and some custom printer status commands.
Beta Was this translation helpful? Give feedback.
All reactions