skip to Main Content

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.

3

Answers


  1. 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.

    Login or Signup to reply.
  2. The EPSON TM-m30 has a USB vendor ID of 04b8 and a USB product ID of 0e20.

    lsusb on my RHEL 8 shows the printer as Seiko EPSON, 04b8:0e20.

    Login or Signup to reply.
  3. You can use lsusb to find the vendor id and product id.
    The following script will help you with that (see its readme for more details) and will also give you the endpoint ids: https://gist.github.com/elsholz/44643ede809a6c4a3875beaae26bff2f

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search