Skip to content

Print to a bluetooth device via rfcomm and printer.File() #643

Description

@dubaleeiro

I have:

  • searched open and closed issues for duplicates

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions