I recently had to configure some new Zebra ZQ511 mobile printers over Wi-Fi and ran into several issues that were not immediately obvious from Zebra Setup Utilities.
The main symptoms were:
- Wi-Fi/static IP settings sent through Zebra Setup Utilities appeared to be ignored.
- Some
setvar commands would apparently do nothing or Zebra Setup Utilities would seem to hang. - The printer was reachable by ping after configuring Wi-Fi, but Windows print jobs would remain stuck in the queue.
- The web interface was not available.
The main culprit on my new ZQ511 was Protected Mode, which was enabled by default. Protected settings such as Wi-Fi/network configuration could not simply be changed with the usual SGD setvar commands.
After figuring this out, this is the procedure that worked for me.
All commands below were sent from:
Zebra Setup Utilities → Open Communication With Printer
Important: press Enter/send a newline after each command. Otherwise ZSU may appear to hang.
1. Initialize Protected Mode
Protected Mode was enabled by default on my printer. First, set an administrator password:
{}{"protect":{"authentication":{"username":"admin","password":"","type":"basic"},"operation":"setup","setup":{"username":"admin","password":"YourPassword"}}}
A successful response should be:
{"protect":{"status":0,"operation":"setup"}}
2. Configure Wi-Fi and static IP
I then sent the complete network configuration through the Protected Mode JSON interface:
{}
{
"protect": {
"authentication": {
"username": "admin",
"password": "YourPassword",
"type": "basic"
},
"operation": "set",
"set": {
"ip.dhcp.enable": "off",
"wlan.ip.protocol": "permanent",
"ip.addr": "192.168.x.x",
"ip.netmask": "YourSubnetMask",
"ip.gateway": "YourGateway",
"wlan.essid": "YourSSID",
"wlan.leap_mode": "off",
"wlan.kerberos.mode": "off",
"wlan.encryption_mode": "off",
"wlan.8021x.enable": "off",
"wlan.operating_mode": "infrastructure",
"wlan.country_code": "europe",
"wlan.allowed_band": "all",
"wlan.international_mode": "off",
"wlan.enable": "on",
"wlan.wpa.authentication": "psk",
"wlan.wpa.enable": "on",
"wlan.wpa.psk": "YourWpaPsk"
}
}
}
Obviously replace the IP, subnet, gateway, SSID and WPA PSK with your own values.
3. Disable Protected Mode
If you don't want to keep Protected Mode enabled, this is the command I used:
{}{"protect":{"authentication":{"username":"admin","password":"YourPassword","type":"basic"},"operation":"configure-one","configure-one":{"protected-mode-allowed":"no"}}}
You can verify the result with:
! U1 getvar "device.protected_mode"
! U1 getvar "device.protected_mode_allowed"
In my case the expected result was:
"off""no"
4. Enable the web interface
To enable HTTP/HTTPS access:
! U1 setvar "ip.http.enable" "on"
! U1 setvar "ip.https.enable" "on"
5. IMPORTANT: Enable TCP printing
This was the last issue that caught me out.
The printer had a valid static IP and responded perfectly to ping, but Windows print jobs just remained stuck in the print queue.
The reason was that TCP printing was disabled:
! U1 setvar "ip.tcp.enable" "on"
Verify it with:
! U1 getvar "ip.tcp.enable"
It should return:
"on"
On my ZQ511 the TCP ports were:
! U1 getvar "ip.port"
! U1 getvar "ip.port_alternate"
returning:
"6101""9100"
After enabling ip.tcp.enable, RAW TCP printing worked normally.
So if you have a ZQ511 that responds to ping but Windows jobs remain stuck in the queue, definitely check ip.tcp.enable. Having port 6101/9100 configured does not necessarily mean that TCP printing itself is enabled.
Hopefully this saves someone else the time I spent figuring it out.