User`s guide

Zebra Mobile Printers • Wireless Configuration Guide • rev. H 18
Using Parameter Commands to Configure a Network Printer
continued
QL series printers use a series of parameter commands to set
and retrieve network configurations. This set of commands is
referred to as the ”set/get/do” commands., and is available in
the printer applications version 40 and above. The software
version can be ascertained by performing a two-key reset. The
number in the “Software:” listing on the second report must
end in 40 or above (e.g. “Software: HTLK40d)
These commands follow a standard format as described be-
low.
NOTE: All commands must be terminated with a CR/LF (0x0D,
0x0A). Actions and parameter names must be specified in
lowercase. Parameter values should be specified in lowercase
unless the parameter value itself is case sensitive, such as a
printer’s WLAN eSSID.
Refer to the Mobile Printer Programming Manual for a more de
-
tailed description of the “set/get/do” commands and examples
of their use. The Manual is available on the Internet at: http://
www.zebra.com
PARAMETER COMMAND FORMAT
Three commands are available: setvar, getvar, and do.
setvarcommands are used to configure printer operating
parameters to specied values.
getvar commands are used to query the printer for its
parameter values.
• “do” commands are used to instruct the printer to perform
various functions.
The formats of these commands are as follows:
getvar Command
The getvar command is used to get the current value of printer
parameters. This command must be terminated by a CR/LF
(0x0D, 0x0A). The printer will respond with the parameter
value of ?if the parameter does not exist (usually due to
incorrect spelling of the parameter name) or it has not been
configured yet. The parameter name should be specified in
lower case.
Format:
getvar {parameter name}
{parameter name} = The name of the parameter to be re-
trieved. Please refer to the parameter list for valid parameter
names.
setvar Command
The setvar command is used to set parameter values in the
printer. This command must be terminated by a CR/LF (0x0D,
0x0A). The parameter name and values must be in lower case
unless the parameter value itself is case sensitive, such as a
printer’s WLAN eSSID.
Format:
setvar {parameter name}” ”{value}
{parameter name} = The name of the parameter to be set.
Please refer to the parameter list for valid parameter names.
{value}= The new value to assign to the specified parameter
above.
do Command
The do command can be used to instruct the printer to perform
predened actions. Some do commands require one or more
parameters. These parameters should be enclosed in double
quotes. This command must be terminated by a CR/LF (0x0D,