Thermal Printer Printing Problems and Experience Summary

1. Some printers set the paper feed to occasionally fail
      to solve: you can print a space and a newline instead of
2. The printed document is a sent byte array. It is recommended to generate a byte array for the entire content of the document and then print it. In order to avoid the problem that multiple devices send multiple instructions to one printer at the same time, resulting in disordered format of printed documents.
3. The same device ensures that commands are sent to the printer through the same thread.
4. It is recommended to sleep for 500ms after sending the printing data to avoid sending too fast and causing some printers to freeze.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324551764&siteId=291194637