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
This is rather a question than a bug: I am trying to print to a cat thermal printer MX06 similar to this one via rfcomm and using printer.File('/dev/rfcomm0') without success. I would appreciate any help on that !
Steps to reproduce
connect Raspberry Pi to the printer via bluetoothctl
configure bluetooth device as serial port with sudo rfcomm bind /dev/rfcomm0 MAC-ADRESS
create printer with p = printer.File('/dev/rfcomm0')
command to send test line to printer with p.text("Hello World\n") not responding - no error message though
Device info
Printer: 'Cat' Thermal Printer Model MX06
python-escpos version: 3.1
python version: 3.12.2
operating system: Raspbian GNU/Linux (Raspberry Pi 4)
The text was updated successfully, but these errors were encountered:
If your printer understands ESC/POS, then "Hello World!" should appear in bold.
Otherwise I would assume that your printer speaks a different dialect and therefore cannot use python-escpos to print to it.
I am not not sure if the printer understands ESC/POS, I will check that. In addition, I think I have another problem: I cant setup the rfcomm on my pi. When I send the commands suggested by you, command line keeps 'thinking' withou any result. I will dig it further...
I have:
This is rather a question than a bug: I am trying to print to a cat thermal printer MX06 similar to this one via
rfcomm
and usingprinter.File('/dev/rfcomm0')
without success. I would appreciate any help on that !Steps to reproduce
bluetoothctl
sudo rfcomm bind /dev/rfcomm0 MAC-ADRESS
p = printer.File('/dev/rfcomm0')
p.text("Hello World\n")
not responding - no error message thoughDevice info
Printer: 'Cat' Thermal Printer Model MX06
python-escpos version: 3.1
python version: 3.12.2
operating system: Raspbian GNU/Linux (Raspberry Pi 4)
The text was updated successfully, but these errors were encountered: