DantSu / ESCPOS-ThermalPrinter-Android

Useful library to help Android developpers to print with (Bluetooth, TCP, USB) ESC/POS thermal printer.
MIT License
1.22k stars 370 forks source link

POS InnerPrint doesn't work #306

Closed rportilla closed 2 years ago

rportilla commented 2 years ago

Hi DantSu, first of all thank you for this wonderful free library. We currently have the library implemented in our Android APP, it works without problems, we have tested it on numerous printers and it works perfectly. However, it doesn't work on any innerprint. WhatsApp Image 2022-06-07 at 5 11 54 PM

My code is:

Captura de Pantalla 2022-06-07 a la(s) 17 18 29

Thanks for your help

DantSu commented 2 years ago

Your inner printer seems to not be compatible with standard ESC POS commands. On some printer ESC POS commands have to be enabled with an external button or a parameter in the printer settings.

rportilla commented 2 years ago

Your inner printer seems to not be compatible with standard ESC POS commands. On some printer ESC POS commands have to be enabled with an external button or a parameter in the printer settings.

Thank you for your prompt response, but I think the printer is compatible with ESC/POS because it works with other printing APPs without problems:

WhatsApp Image 2022-06-08 at 10 29 12 AM (1) WhatsApp Image 2022-06-08 at 10 29 03 AM

I continue to appreciate your guidance and help.

DantSu commented 2 years ago

It's not compatible with all ESC POS commands.

https://github.com/DantSu/ESCPOS-ThermalPrinter-Android/issues/258#issuecomment-1047887538 This command cause trouble : EscPosPrinterCommands.TEXT_COLOR_BLACK...

rportilla commented 2 years ago

thank you very much, effectively commented the line this.printerConnection.write(textColor); the "r" is deleted. Also the version of the library was not updated to 3.2.0 WhatsApp Image 2022-06-10 at 4 28 45 PM