Hello Community,
The Printer Epson TM T20 I bought had a serial cable RS 232 instead of USB cable.
I took a USB to RS 232 adapter to connectthe printer to the PosBox and tested the escpos library from python-escpos.
Only the below code prints something but not the "Hello world text". It prints questions marks and some signs.
""" Seiko Epson Corp. Receipt Printer M129 Definitions (EPSON TM-T88II) over US$ #Epson = printer.Serial( 0x067b,0x2303,0,0x81,0x02) Epson = printer.Serial("/dev/ttyUSB0",9600,8,2) #thats the dev the adapter gets regognized Epson.text("Hello World")
(code from raspberry pi forum)
The above code is for a Epson TM T88II so would I need to change anything?
I did check the vendor and product Id and they are the same. The iInterface is 0 and EndPointAddress is 0x02.
Thanks,
Jeremie