Skip to content
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

Set up QL810WC label printer automation with AprilTags #70

Open
sgbaird opened this issue Oct 4, 2024 · 20 comments
Open

Set up QL810WC label printer automation with AprilTags #70

sgbaird opened this issue Oct 4, 2024 · 20 comments
Assignees

Comments

@sgbaird
Copy link
Member

sgbaird commented Oct 4, 2024

#53

https://github.com/pklaus/brother_ql

https://stackoverflow.com/questions/55521301/printing-label-from-brother-ql-800-label-printer

i.e., with new pieces of equipment, autoprint an AprilTag to be affixed to it.

@sgbaird
Copy link
Member Author

sgbaird commented Oct 9, 2024

Parts arrived

PXL_20241009_191126907.jpg

@SissiFeng SissiFeng self-assigned this Oct 10, 2024
@SissiFeng
Copy link

Everything inside of the box
image

@SissiFeng
Copy link

The printer failed to connect to the IoT WiFi (an email has been sent to support).

The next step is to set up a Raspberry Pi connected to the label printer, configured for MQTT, and use MongoDB to store paired information (tag–device) and handle logging.

@SissiFeng
Copy link

SissiFeng commented Oct 15, 2024

The Pi is all set up, the printer driver is 32 bit and this model can't be installed via ppd file (maybe downgraded or otherwise universal driven). The app.py deployed to hugging face tests fine locally, just missing the printer connection part.
截屏2024-10-15 12 19 52

@sgbaird
Copy link
Member Author

sgbaird commented Oct 15, 2024

Ok, thanks for checking into that. That's unfortunate the driver doesn't work out of the box. Maybe we don't actually need the desktop driver and can instead use the Python package directly? I'm seeing a few threads related to this:

@sgbaird
Copy link
Member Author

sgbaird commented Oct 17, 2024

@SissiFeng it sounds like these instructions (of course, switching the printer type that was mentioned) didn't work. https://www.rs-online.com/designspark/building-a-pi-powered-wireless-label-printer

Could you confirm?

@sgbaird
Copy link
Member Author

sgbaird commented Oct 17, 2024

What do you think about this? https://stackoverflow.com/a/70015794/13697228

@SissiFeng
Copy link

Brother QL-810W Printer Troubleshooting on Raspberry Pi Zero W

This summary outlines the key issues encountered and resolved so far, providing a reference for further troubleshooting.


  1. System Architecture and Package Compatibility
  • Brother's official drivers are for i386 (Intel) architecture, incompatible with Raspberry Pi’s ARM.
  • Switching from a 64-bit to a 32-bit Raspberry Pi system solved some issues but required manual driver extraction.
  1. Driver and Filter File Issues
  • The PPD and filter files were extracted manually, but CUPS logs indicated the filter was “missing” despite being correctly placed.
  • Potential symbolic link or permission issues affecting the filter.
  1. Perl Script Execution
  • The filter is a Perl script requiring Perl installation.
  • Perl failed to run due to locale errors, which persisted even after generating the required locale.
  1. Locale Configuration Problems
  • The system lacked the en_GB.UTF-8 locale, causing warnings during Perl execution.
  • Locale generation reduced some warnings, but not all.
  1. Unresponsive Print Jobs
  • Print jobs are queued, but the printer remains idle.
  • Jobs are stopped due to filter execution errors in CUPS.
  1. TLS Connection Errors
  • Repeated TLS fatal alert errors indicate potential encrypted communication issues between CUPS and the printer.
  1. Hardware Detection and USB Communication
  • The printer is recognized via lsusb, but communication problems persist, possibly due to configuration issues.

Unsolved Issues till now:

  1. Filter Execution Error
    The system reports the filter as missing, even though it is correctly installed.

  2. Printer Not Printing
    Jobs are sent and queued, but the printer stays idle, indicating a deeper communication or driver issue.

@SissiFeng
Copy link

Open an issue pklaus/brother_ql#162

@sgbaird
Copy link
Member Author

sgbaird commented Oct 18, 2024

There are a few pieces here specific to wireless: https://support.brother.com/g/b/sp/faqlist.aspx?c=ca&lang=en&prod=lpql810weus&tabid=2

@SissiFeng
Copy link

There are a few pieces here specific to wireless: https://support.brother.com/g/b/sp/faqlist.aspx?c=ca&lang=en&prod=lpql810weus&tabid=2

The wifi connection issue has been resolved.

@sgbaird
Copy link
Member Author

sgbaird commented Oct 21, 2024

There are a few pieces here specific to wireless: support.brother.com/g/b/sp/faqlist.aspx?c=ca&lang=en&prod=lpql810weus&tabid=2

The wifi connection issue has been resolved.

Could you clarify how it was fixed?

@SissiFeng
Copy link

Create a wpa_supplicant.conf file and push the network configuration directly to the printer’s underlying system. This method is commonly used for IoT devices that support command-based serialization tools (such as lpadmin) to modify network credentials.

@SissiFeng
Copy link

The current issue is that while the MQTT-based printing workflow works locally, it fails to connect to the printer when deployed on Hugging Face (using gradio).

The MQTT-based printing workflow involves a publisher running remotely, which sends print commands containing the image path and printer name. A subscriber on the local mac, receives the command and prints the corresponding AprilTag image from the specified local path.

@sgbaird
Copy link
Member Author

sgbaird commented Oct 25, 2024

Gradio wouldn't be connecting directly with the printer though right? I.e., A hugging face app would communicate with the Mac (or RPi), and the Mac would communicate with the printer.

Is it that you're unable to connect to the MQTT broker from the hugging face app?

@SissiFeng
Copy link

Yes. I tried setting up MQTT over websockets, also confirms QoS configuration consistency at publish and subscribe time, no luck.

@sgbaird
Copy link
Member Author

sgbaird commented Oct 25, 2024

I'll try to reproduce

@sgbaird
Copy link
Member Author

sgbaird commented Oct 30, 2024

Do you have a demo video of printing an AprilTag via Python on your computer you could share?

@SissiFeng
Copy link

trim.5AE733F6-E88D-4164-AF6D-14B3F1B7F61F.MOV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants