Brother QL 800、「メディア交換エラー」、Ubuntu/raspberry

Brother QL 800、「メディア交換エラー」、Ubuntu/raspberry

私の目標は、Brother QL-800 ラベル プリンターを Raspberry Pi に接続し、スクリプトを通じてラベルを自動的に印刷することです。

インストールしましたhttps://github.com/pklaus/brother_ql

Ubuntu Bionic Server がインストールされた Raspberry Pi 3 に USB で接続されています。Python 3.0 を使用しています。

実行すると、電源 LED が赤く点滅し、ターミナルに次のエラーが出力されます。

INFO:brother_ql.backends.helpers:Sending instructions to the printer. Total: 50650 bytes.
ERROR:brother_ql.reader:Error: Replace media error
ERROR:brother_ql.backends.helpers:Errors occured: ['Replace media error']
WARNING:brother_ql.backends.helpers:'printing completed' status not received.
WARNING:brother_ql.backends.helpers:'waiting to receive' status not received.
WARNING:brother_ql.backends.helpers:Printing potentially not successful?

Windows で P-touch エディターを使用して試してみましたが、問題なく印刷できました。

いくつかの異なるイメージで試してみましたが、どちらも /dev/usb/lp0 とデバイスの ID を使用しました。

brother_ql --printer usb://04f9:209b --model QL-800 print -l 62x29 --red test.png brother_ql --printer /dev/usb/lp0 --model QL-800 print -l 62x29 --red test.png

バイナリのエクスポートも試みました:

brother_ql_create --model QL-800 --label-size 62x29 --red test.png > test.bin

バイナリファイルをエクスポートして

brother_ql_print test.bin /dev/usb/lp0

「メディア交換エラー」というエラー メッセージを検索しましたが、他に同じ問題を抱えている人はいないようです。

何か案は?

編集: --no-cut オプションを使用すると動作するので、元の画像サイズを再確認しましたが、696x271 で正しいです。それでもカットしたいです。

答え1

問題は--labelパラメータでした。理由は不明ですが

--label 62x29

動作しません。ただし、

--label 62

正常に動作し、正しくカットされています。

関連情報