Brother QL 800,“更換媒體錯誤”,Ubuntu/raspberry

Brother QL 800,“更換媒體錯誤”,Ubuntu/raspberry

我的目標是讓 Brother QL-800 標籤印表機連接到 Raspberry Pi,透過腳本自動列印標籤。

我已經安裝了https://github.com/pklaus/brother_ql

它透過 USB 連接到安裝 ubuntu Bionic 伺服器的樹莓派 3 上。我正在使用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 editor 嘗試過,列印效果很好。

我嘗試過幾個不同的圖像,並且都使用 /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

可以正常工作並且切割正確。

相關內容