Reading Zebra Printer Status via USB on Ubuntu

After many posts in SO and Google, I could not find the answer to my problem. Most of these issues are related to Windows / VB / .Net / C # / Java.

I need to send an ESC command to a Zebra USB printer (TTP2130) and return the status using C / C ++. I can print well (with the Zebra driver installed as the default printer):

$ lpr file.prn 

Used by Zebra Toolbox to communicate on Windows and generate * .prn files with ESC commands.

But if I sent a file with a command requiring a response from the printer, nothing happens.

What would be the best approach to achieve this? Maybe use libusb1.0 directly?

Thanks for any help!

+3
source share
2 answers

"Swecoin". Zebra TTP. Swecoin .

TTP- (ttputil): http://www.rainbow-software.org/linux/

:

sudo ./ttputil enquiry sensor /dev/usblp0

, .

, ( ) .

+4

All Articles