-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print to a bluetooth device via rfcomm and printer.File() #643
Comments
Hi @dubaleeiro . I'm not an expert on this subjects, at all. But I will try to help you. Have you managed to send some unfiltered text to the device from your terminal?. echo 'Hello World!\n' > /dev/rfcomm0 If the former worked, then you can send some escpos commands as raw bytes: echo '\x1b\x45\x01' > /dev/rfcomm0
echo 'Hello World!\n' > /dev/rfcomm0 If your printer understands ESC/POS, then "Hello World!" should appear in bold. |
Hi @belono , thank you very much for your hints! 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 |
Hope you are success @dubaleeiro . Let us know if you make any progress. Cheers!! |
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: