使用 python 库 brother_ql 在 raspberry pi 上打印
printing with the python library brother_ql on a raspberry pi
我正在尝试使用 python 库 brother_ql 从 raspberry pi 打印到 brother_ql700。它应该绕过任何驱动程序并通过 USB 端口向打印机发送串行命令(因此无需安装任何驱动程序):
cat command.bin > /dev/usb/lp1
我的问题是我没有看到任何 /dev/usb/lp1 端口。我怀疑这是大多数 Linux 版本的端口,但它可能与 Raspian 不同。
我检查了设备:
ls -la /dev
我试图将命令发送到 /dev/tty 或 /dev/tty0 但没有成功..
我确保我的用户 what 添加到拥有 tty 端口的 tty 组并且该组成员具有写权限....
知道如何找出端口吗?或者是否有任何配置可以添加以使其工作?
作为 brother_ql Python 软件包的作者,我可以说 QL-700 在 Raspberry Pi.
上运行完美
最可能的问题是您的标签打印机处于 so-called "Editor Lite" 模式,它显示为 USB 存储设备。
引用包的自述文件:
Note: If your printer has an 'Editor Lite' mode, you need to disable it if you want to print via USB. Make sure that the corresponding LED is not lit by holding the button down until it turns off.
lsusb | grep Brother
帮助您确定设备的连接模式。
# when in Editor Lite mode:
Bus 005 Device 003: ID 04f9:2049 Brother Industries, Ltd
# when in the correct mode:
Bus 005 Device 004: ID 04f9:2042 Brother Industries, Ltd
我正在尝试使用 python 库 brother_ql 从 raspberry pi 打印到 brother_ql700。它应该绕过任何驱动程序并通过 USB 端口向打印机发送串行命令(因此无需安装任何驱动程序):
cat command.bin > /dev/usb/lp1
我的问题是我没有看到任何 /dev/usb/lp1 端口。我怀疑这是大多数 Linux 版本的端口,但它可能与 Raspian 不同。
我检查了设备:
ls -la /dev
我试图将命令发送到 /dev/tty 或 /dev/tty0 但没有成功.. 我确保我的用户 what 添加到拥有 tty 端口的 tty 组并且该组成员具有写权限....
知道如何找出端口吗?或者是否有任何配置可以添加以使其工作?
作为 brother_ql Python 软件包的作者,我可以说 QL-700 在 Raspberry Pi.
上运行完美最可能的问题是您的标签打印机处于 so-called "Editor Lite" 模式,它显示为 USB 存储设备。
引用包的自述文件:
Note: If your printer has an 'Editor Lite' mode, you need to disable it if you want to print via USB. Make sure that the corresponding LED is not lit by holding the button down until it turns off.
lsusb | grep Brother
帮助您确定设备的连接模式。
# when in Editor Lite mode:
Bus 005 Device 003: ID 04f9:2049 Brother Industries, Ltd
# when in the correct mode:
Bus 005 Device 004: ID 04f9:2042 Brother Industries, Ltd