We are using the ZQ521 printer and i'ts a Link-OS printer. We want to use the "Send File to Printer API", for that we are doing "Web link Printer Configuration" in the Printer setup app. We kept the Device Language as Zpl and tried with different Emulation options, getting "Communication error" (Error writing to connection: One or more errors occurred, broken Pipe). We restarted the printer, still it doesn't work, the added device is not showing in the portal.
We are sending the below JSON file into Printer Setup utilities using Android phone (Phone and Zebra printer are connected through Bluetooth).
{}{ "weblink.logging.max_entries":"500", "weblink.ip.conn1.location":"https://savanna-device.zpc.zebra.com/weblink/connect?r=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "device.reset":"1" }
I am not sure what we are doing wrong.
1 Replies
Looks like your Android device may have issues with Bluetooth. If you have an iPhone, you can download the same app on an iPhone and give it a try. Alternatively, use the same app (Zebra Setup Utility) to configure the ZQ521 to use WiFi, then connect the iPhone or Android phone to the printer via WiFi to get a better connection. You need the WiFi connection for the printer anyway, if you want to use the SendFileToPrinter API.
To connect the ZQ521 to Zebra cloud for using the SendFileToPrinter API, we need to do two things. The first thing is to send the enrollment string, i.e., the JSON string as you mentioned above to the printer. The second thing is to make sure that the RTC (Real-Time Clock) on the printer is current. If the RTC on the printer is off, the printer will not pass the SSL authentication check and will fail to connect to Zebra cloud. This might be the reason of not seeing the printer on My Devices page. To set the RTC on the printer to the current time, use the following JSON string.