I have a tg 2460 CUSTOM ticket printer that has ESC/POS emulation, USB connected in debian linux. I'm trying to get the status of the printer in my qt c++ program with the command but with no response.
I use QFile class to deal with it, opening the device directly eg dev/usblp0 seems to bring no results so i open the mounted device eg dev/usb/lp0 and i am able to control the printer OK, but when i write the "\x10\x04\x01" command (transmission of status in real time) or any other command that implies a response i cannot get data back, using read() or readAll() hangs forever blocking the process, so how can i receive data? forgive me if i'm missing something basic
linux
tag. Also, show some minimal reproducible example – Basile Starynkevitch