SendFileToPrinter does not print

// Expert user has replied.
P P N 1 year 3 months ago
282 6 0

Hi,

I have a ZD421. I see my device in my account so it is correctly registered.
I have tested the SendFileToPrinter endpoint from your testing service (https://developer.zebra.com/apis/sendfiletoprinter-model#/SendFileToPrinter/SendFiletoPrinter) using the “Production server and it returns me a SUCCESS response. 
However, it does not print the file that I send.

What is the issue here ?

Regards

 

Please Register or Login to post a reply

6 Replies

S Steven Si

Most likely is because that the realtime clock (RTC) on your printer is not current. The ZD421 does not have the battery. The RTC may got reset after power off. Please set the RTC to the current local time with the following commands. When the RTC is off, the TLS authentication will fail and will result in the printer's Weblink connection fails. If you want to restore the RTC automatically after a power off, you can enable the NTP (Network Time Protocol) on the ZD421 with the following commands.

### Set the RTC to local time
### Change the values to your local date & time
{}{
"rtc.time": "10:53:00",
"rtc.date": "08-02-2023"
}

### Enable the NTP to point to a NTP server
{}{
"ip.ntp.enable": "on",
"ip.ntp.servers": "0.us.pool.ntp.org"
}

 

 

P P N

I did the following commands but after a retry: Nothing happens again...

I have waited that the SendFileToPrinter endpoint status was UP againg (because I saw that it was down for couple hours). 
http://status.zebra.engineering/12174160

Do I have to set the printer to the US timezone ?
Do you have other ideas ?

FYI: I send a PDF to the printer

S Steven Si

There was an outage this morning between 7AM and 8AM CDT. You can set the time on the printer to your local time. The printer should connect to the cloud successfully. If it still doesn't print, then check the weblink log on the printer with the following command
 

### Get the weblink log
! U1 getvar "weblink"

When you send a PDF file to the printer, make sure the PDF emulation is enabled on the printer. Please following this article to enable the PDF emulation - Announcement | Printers Include Free PDF Direct with Link-OS 6.3

C Charles Beard

I think you can try verifying that the file you are sending is in a supported format for your ZD421 printer. The Zebra Programming Language (ZPL) is the native language used by most Zebra printers, so make sure your file is in that format.

P P N

I follow the Free PDF Direct with Link-OS 6.3 but it does not work after that.

I have done:
- Application is created and validated
- My devise (ZD421) is correctly registered on Zebra
- registered into SendFileToPrinter(FREE)
- done the 2 zpl command for the time
- done the PDF simulation

What is missing ? It’s been one week that I have called the Savanna Support and I’m waiting that they called me back to find a solution...

S Steven Si

Not enough information here to assist. What was the symptom? Does the SendFileToPrinter API return 200? Does it print the ZPL label? Does the printer advance the media after the PDF file is sent? What's the weblink log look like?

CONTACT
Can’t find what you’re looking for?