Open looksystems opened 5 years ago
I can answer my first question:
Are we using the library correctly? Or should we connect, print, disconnect on every job?
According to "Best Practices in Creating a Printing Application for Zebra Printers" pdf, you should close the connection after each job. See attached pdf and alternative (possibly older) link here http://techdocs.zebra.com/link-os/2-13/bestpractices/content/index.html
333912018-Best-Practices-in-Creating-a-Printing-Application-for-Zebra-Printers-pdf.pdf
A little more feedback: since connecting, printing & disconnecting on every job, we've found the "connection" has become much more reliable. That said, we still have pairing issues, with the printer seemly ignoring connections and only becoming responsive again after being rebooted.
Will be working on this further, so will provide further feedback - in case it helps someone else - as I can.
Our application is for a Zebra TC72 (Android Oreo) and Zebra ZQ510.
At the start of the session, we connect to the printer and then, at intermittent intervals, we print a ticket.
Most times, the printer responds but often it drops the connection and/or goes to sleep and takes a long time to wake up.
When fails to print (ie the library throws an exception), we attempt to connect and print. If that fails, we disconnect, connect and then print (this sometimes works and sometimes requires the printer to be rebooted).
Other times, no exception is thrown when printed but nothing is printed.
On connection, we send the following zpl:
Are we using the library correctly? Or should we connect, print, disconnect on every job?
Is there a way to keep the bluetooth connection alive? And/or check if it's been dropped so we can reconnect?
Any thoughts as to how/why the library silently fail sometimes when printing?
Mostly interested in others experiences and/or how they managed to get a reliable and responsive connection from what is an excellent library! Thank you.