python-3.xprintingepsonescpos

python3 python-escpos: product id / PID for EPSON TM-M30 needed


Since some years I am running and maintaining an online P.O.S. system, where peripheral hardware and print system is managed by a RasPi with pure debian & python3.

My costumer bought a new receipt printer, which is an EPSON TM-M30. Currently he's using a TM-T88IV for that.

The python-escpos printer code snippet currently is

p = printer.Usb(0x04b8, 0x0202, 0)

Do I need anything to change for the new printer (googeling since hours I cannot find a PID for this new printer)

I know that with the new printer ethernet an WiFi is also available and I can use

p = printer.Network("192.168.178.77", 0) // port might differ

for that, but stiil I want to be able to use it with USB if needed.

Notice: I found the same PID here http://www.linux-usb.org/usb.ids for the TM-T70 and I guess that the PID 0x0202 is valid for more than one thermal printer, but need to be sure.

Thanks for any helpful answers.


Solution

  • The interface board of the EPSON printer is modularized and commonly used by many printers.
    Interface Board
    UB-U

    The PID is for that interface board and is the same for any printer that uses it.

    For example, for Japanese materials, the PID is the same for TM-m30 and TM-T88VI.
    TM-m30 page 86
    TM-T88VI page 118

    Therefore, VID 0x04B8 and PID 0x0202 can be considered as IDs of USB interface boards of EPSON printers.

    If you can get the Manufacturer and Product String Descriptors written in the document, you will be able to determine the printer model.