PDA

View Full Version : Tip for printing with cash register using Qt/C++?



adutzu89
6th February 2015, 08:56
Can someone point me where can I learn more about communicating with POS/Cash register printers?

I am trying to understanding more about it, I know that I need to use QSerialPort for communicating with them, but I seen on the internet that hexadecimal codes are sent to them, so I want to learn more about what info is sent to the printers.

Lesiok
6th February 2015, 09:21
Every POS/Cash register printer has a communication protocol described in documentation. You must implement this protocol in your application.

ChrisW67
6th February 2015, 20:26
The "hexadecimal codes" are human readable version of the bytes that are sent to the printer. They can represent printable letters like "A" (hex 41) or "7" (hex 37) or non-printable codes that make the printer do things like a new line (hex 0D and/or 0A), start/stop bold, or eject a sheet. Exactly what codes do what varies from printer to printer.