You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble getting my Epson TM-T88 to print anything. The printer is connected via a USB to serial adapter and recognized as /dev/ttyUSB0 on my system. Holding the Feed button while turning the printer on prints the connection model on this information (9600 bps, 8 bits data, parity none, stop bit: 1 or more, handshaking: dtr/dsr)
I have used this information to confirm the correct connection parameters (see example code below). When trying to print anything either nothing happens or garbage is printed (random unicode characters). Running the script multiple times sometimes produces nothing (not printing at all) then garbage.
I have tried various adapters and ports to rule out the cable is broken, all do the same.
This comment suggests a similar issue, but I have not been able to solve it:#301 (comment)
I tried sudo stty -F /dev/ttyUSB0 9600 cs8 -cstopb -parenb and echo "Hello World" >> /dev/ttyUSB0. This results in one line of garbage being printed.
I don't know with printers (I don't use them with serial) but in general (for serial terminals) it's recommended to disable handshaking (you would have to go to your printer settings to disable it on its side too), misconfiguring it produce exactly what you way (garbage on the screen instead of the proper text
I have:
Bug description
I'm having trouble getting my Epson TM-T88 to print anything. The printer is connected via a USB to serial adapter and recognized as
/dev/ttyUSB0
on my system. Holding theFeed
button while turning the printer on prints the connection model on this information (9600 bps, 8 bits data, parity none, stop bit: 1 or more, handshaking: dtr/dsr)I have used this information to confirm the correct connection parameters (see example code below). When trying to print anything either nothing happens or garbage is printed (random unicode characters). Running the script multiple times sometimes produces nothing (not printing at all) then garbage.
I have tried various adapters and ports to rule out the cable is broken, all do the same.
This comment suggests a similar issue, but I have not been able to solve it:#301 (comment)
I tried
sudo stty -F /dev/ttyUSB0 9600 cs8 -cstopb -parenb
andecho "Hello World" >> /dev/ttyUSB0
. This results in one line of garbage being printed.Steps to reproduce
sudo python print.py
Device info
Printer: EPSON TM-T88II
python-escpos version: 2.2.0
python version: 3.9.9
operating system: Linux
The text was updated successfully, but these errors were encountered: