Communicating Directly with a Printer

Use the printer communication terminal to send SGD, ZPL, or JSON commands directly to your printers. These commands can configure printer settings, check current printer settings, and trigger an action on a printer. Use this terminal to create or copy in a set of commands to set up your printers, to perform tasks on specific devices, or to troubleshoot issues.

For information about the commands used here, see Zebra Printer Commands.

The printer communication terminal has the following areas:

Enter Commands

Enter commands in the entry box, then click Send to Printer. Accepted command types are SGD, ZPL, and JSON. For information about these commands, see Zebra Printer Commands.
You can also upload a file containing commands by clicking Upload File. Accepted file formats are .TXT and .JSON.

Sent Commands

Shows a history of commands you have sent to the printer during this session. Click Export to save a .TXT file of the history.

Feedback

Shows the printer's responses to sent commands. Click Export to save a .TXT file of the history.

ClosedExample - Useful commands for troubleshooting

To retrieve device logs, enter:
! U1 getvar "weblink.logging"

To see what files are on the device, enter:
! U1 getvar "file.dir"

To see a list of data that can be accessed on the device, enter:
! U1 getvar "allcv"

To reset a device, enter:
! U1 do "device.reset" ""

ClosedExample - Updating the date and time on a printer

The printer device server certificate includes a valid date range. If the date and time on a printer is inaccurate and outside of that range, it won't connect to the printer device server.

To check the date and time on the printer, enter:
! U1 getvar "rtc.time"
! U1 getvar "rtc.date"

To set the date and time on the printer, enter:
! U1 setvar "rtc.time" "XX:XX:XX"
! U1 setvar "rtc.date" "XX-XX-XXXX"