Odoo Help

0

Posbox: Epson TM T20 with a serial cable RS 232 ?

By
Jeremie HO
on 3/14/14, 8:21 AM 2,898 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

0
Karel Wullaert
On 9/5/16, 8:21 AM

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 3/14/14, 8:21 AM
Seen: 2898 times
Last updated: 9/5/16, 8:21 AM