Skip to Content
Menu
This question has been flagged
1 Reply
7948 Views

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

Avatar
Discard
Best Answer

Hi Jeremie,

You can buy and exchange the interface card (USB port) separately. It is not so expensive.

My problem was solved that way. I also had a Serial bus and simply unscrewed the Serial Bus Card and plugged in the one with USB port.

Hoop this can help you.

Karel

Avatar
Discard
Related Posts Replies Views Activity
3
Dec 23
32497
3
Dec 22
2341
1
Apr 20
5473
0
Feb 19
2647
1
Jul 18
2354