N nejib01 Member Apr 8, 2022 #1 Dear friends, I have a android pos system Citaq H10 with built in thermal printer , wich prints from serial port, port ttys1 i think . Im trying to make my old soft with b4a run on this device,but i can't do print. Some one gave me the sdk (source code and library) of the manufacturer that i can't use because i don't know how to implement in b4a. I need your helps to get a small code to test the printer nb: 1- the apk delivred in this sdk work fine and makes printer test 2- I found a post wrote by Victor Medrano with a library 'Cprinterlib' but without samples and how to use, if possible a help Thanks
Dear friends, I have a android pos system Citaq H10 with built in thermal printer , wich prints from serial port, port ttys1 i think . Im trying to make my old soft with b4a run on this device,but i can't do print. Some one gave me the sdk (source code and library) of the manufacturer that i can't use because i don't know how to implement in b4a. I need your helps to get a small code to test the printer nb: 1- the apk delivred in this sdk work fine and makes printer test 2- I found a post wrote by Victor Medrano with a library 'Cprinterlib' but without samples and how to use, if possible a help Thanks
MicroDrie Well-Known Member Licensed User Longtime User Apr 9, 2022 #2 I think your first problem is connecting to the printer. After that, your second problem is to control the printer with the correct printer codes. My experience with printers is that I usually manage to display a simple 12345 string followed by a CR/LF or at least get a response from the printer. I would start with something like the UsbSerial Ver 2.4 to see if it is possible to connect to the printer. Upvote 0
I think your first problem is connecting to the printer. After that, your second problem is to control the printer with the correct printer codes. My experience with printers is that I usually manage to display a simple 12345 string followed by a CR/LF or at least get a response from the printer. I would start with something like the UsbSerial Ver 2.4 to see if it is possible to connect to the printer.
N nejib01 Member Apr 10, 2022 #3 Thanks for replying , as i sad it's not a Usbserial printer , but a real serial ttyS1 Solved by following this nice share from "qle" member Open/Read/Write - UART Serial device , i'm so happy to see my device print on this serial printer , i'll try now to use escpos commands . Thanks for all , i love B4X. Upvote 0
Thanks for replying , as i sad it's not a Usbserial printer , but a real serial ttyS1 Solved by following this nice share from "qle" member Open/Read/Write - UART Serial device , i'm so happy to see my device print on this serial printer , i'll try now to use escpos commands . Thanks for all , i love B4X.
MicroDrie Well-Known Member Licensed User Longtime User Apr 11, 2022 #4 I'm happy to be able to help you on your way, maybe this will also help you to explore the ESC/POS codes in Line Thermal Printer ESC/POS® Mode Command Specifications Revision 2.52. Be aware that the installed driver perhaps not all possibilities support in case its supports an older build-in software version. Upvote 0
I'm happy to be able to help you on your way, maybe this will also help you to explore the ESC/POS codes in Line Thermal Printer ESC/POS® Mode Command Specifications Revision 2.52. Be aware that the installed driver perhaps not all possibilities support in case its supports an older build-in software version.
hamza827 New Member Jan 4, 2023 #6 hey guys i need help . I have a citaq H10-1 and i need to make app for this device . the problem is I can't print because there is a problem about read/write permission Upvote 0
hey guys i need help . I have a citaq H10-1 and i need to make app for this device . the problem is I can't print because there is a problem about read/write permission
C CodedGeek New Member Apr 14, 2025 #7 Is anyone still struggling to print using their H10's as I think I have a solution Upvote 0
E emexes Expert Licensed User Longtime User Apr 15, 2025 #8 https://github.com/netguycode/citaq/blob/main/printer_spec.md Printer Spec Model: CTE-RP80 (80mm Printer) Version: 5.62 Command mode: Print speed: ESC/POS 200m (max) Characters Per Line: 48 Auto Cutter: Yes Beeper: Yes Auto clear buffer: No NV bit image: No Serial: 115200, None, 8, 1, DTR/DSR Click to expand... Upvote 0
https://github.com/netguycode/citaq/blob/main/printer_spec.md Printer Spec Model: CTE-RP80 (80mm Printer) Version: 5.62 Command mode: Print speed: ESC/POS 200m (max) Characters Per Line: 48 Auto Cutter: Yes Beeper: Yes Auto clear buffer: No NV bit image: No Serial: 115200, None, 8, 1, DTR/DSR Click to expand...