Zebra ZebraNet PS4000 Print Server PRO_MAN_PS4_1E

ZebraNet
Programming Manual
®
PS4000 Print Server
Contents
pg. 1
Print Server Overview ..........................................1-2
Print Server Configuration .........................1-3
Individual Printer Configuration .................1-3
TCP/IP Communication ..............................1-5
EPL Printer Programming Example ...........1-5
ZPL Printer Programming Example ...........1-6
CPCL Printer Programming Example ........1-7
ZebraNet Print Server Configuration
Overview ..................................................... 2-9
Quick Network Setup ................................2-10
Network Settings ......................................2-14
Print Server Settings ............................... 2-25
Print Server Set/Get Commands, Version 0.1 .3-35
print_server.enable .................................. 3-35
print_server.halt_queue .......................... 3-35
print_server.printerX.ip_port .................. 3-36
print_server.printerX.language ............... 3-37
print_server.printerX.baudrate ............... 3-38
print_server.printerX.status .................... 3-38
print_server.printerX.interface ................ 3-39
print_server.battery.enable ..................... 3-40
print_server.battery.life ........................... 3-40
print_server.battery.voltage .................... 3-41
print_server.battery.low_bat_warning ... 3-41
print_server.battery.printerX_ pwr .......... 3-42
PRO-MAN-PS4-001 Rev A
print_server.battery.serialno ................... 3-42
print_server.battery.swver ...................... 3-43
USBH Set/Get Commands, Version 0.1 ..... 3-44
usbh.enabled ............................................3-44
usbh.p1_active .......................................... 3-44
usbh.p2_ active .........................................3-44
usbh.p3_active ......................................... 3-45
usbh.p4_active ......................................... 3-45
usbh.p1_ status ......................................... 3-45
usbh.p2_ status .........................................3-46
usbh.p3_status ......................................... 3-46
usbh.p4_status ......................................... 3-47
usbh.check_status ................................... 3-47
usbh.read_ enabled ..................................3-48
usbh.read_ interval ................................... 3-48
Product Support .................................................... 49
Contents
ZebraNet
Programming Manual
PRINT SERVER OVERVIEW
The purpose of this document is to give the user an overview for integrating the ZebraNet PS 4000 Print Server
into their environment.
The ZebraNet PS 4000 Print Server is a transportable printing system providing connection of up to 4 printers.
The system comes in a variety of configurations including:
• Stand alone print server providing connections of up to 4 USB or serial printers.
®
PS4000 Print Server
• Print server pre-configured with Zebra direct thermal or thermal transfer desktop printers. Figure 1 shows a particular configuration of the print server with three 2 inch direct thermal Zebra printers.
Next S ect.
Section 1
pg. 1-2
Figure 1- ZebraNet PS 4000 Print Server With Three 2” Zebra Printers
Communication
The ZebraNet PS 4000 Print Server appears to a host computer as one IP address with the individual printers having unique port numbers. Therefore, printing is accomplished by directing print jobs to a particular printer through an IP address/port number combination.
PRO-MAN-PS4-001 Rev A
Contents
ZebraNet
Programming Manual
Configuration
There are two areas of configuration for the ZebraNet PS 4000 Print Server: print server configuration and individual printer configuration.
Print Server Configuration
Print server configuration involves configuration of the print server making it available on the target network. This involves configuring network settings such as IP address, SSID, subnet mask, gateway, etc.
®
PS4000 Print Server
Individual Printer Configuration
Individual printer configuration involves settings for the individual printers. These settings include: port number, baud rate (serial printing only), and language (CPCL, ZPL, or EPL).
The Print Server Configuration Manager provides an easy interface for configuring the print server. This application is described in Section 2.
Next S ect.
References
1. EPL Programming Manual
2. CPCL Programming Manual
3. ZPL Programmers Manual All of these reference documents are available at www.zebra.com
Section 1
pg. 1-3
PRO-MAN-PS4-001 Rev A
Contents
ZebraNet
Programming Manual
Print Server Integration
Integration of the ZebraNet PS 4000 Print Server involves configuring the server with the appropriate IP settings
for the target network. Once configured, the printer exposes the connected printers through unique port numbers. Figure 2 shows a sample network using the ZebraNet PS 4000 Print Server.
®
Next S ect.
PS4000 Print Server
Section 1
pg. 1-4
Figure 2- ZebraNet PS 4000 Print Server Integration
PRO-MAN-PS4-001 Rev A
ZebraNet PS4000 Pri nt Server
ZebraNet PS4000 Pri nt Server
Contents
ZebraNet
Programming Manual
Programming Interface
Interfacing to the individual printers from a host application involves two parts: TCP/IP communication for the
actual sending/receiving of data and knowledge of the target printers since each printer type supports its specific control language. References 2 and 3 describe the printer control language for EPL and CPCL based printers, respectively.
TCP/IP Communication
®
PS4000 Print Server
The individual printers are accessible via a unique IP address/port number combination. All four printers share
the same IP address but are distinguished by their unique port number. The print server simply acts as a ‘pass­through’ between the host and printer. Therefore, any communication with a particular printer must use the control language for that printer.
EPL Printer Programming Example
The following is an example format file for an EPL base printer. Sending this data over the network to the IP
address/port number for an EPL printer will result in a printed label.
Next S ect.
N US UA q406 Q163,B19+0 ZB JF N A0100,18,0,3,2,2,N,”$15.00” B088,58,0,1,2,4,60,N,”123456789” P1
Section 1
pg. 1-5
Note: Each line is separated by a Carriage Return/Line Feed combination which must be preserved when directing a print job to the
printer.
See the EPL Programming Language Manual at www.zebra.com for a description of the printer control commands suppor ted by EPL
based printers.
PRO-MAN-PS4-001 Rev A
Contents
ZebraNet
Programming Manual
ZPL Printer Programming Example
The following is an example format file for an ZPL base printer. Sending this data over the network to the IP
address/port number for a ZPL printer will result in a printed label.
Next S ect.
^XA ^MNN^PW408^LL600^LH0,0^FS
®
PS4000 Print Server
^LT0^MTD^FO16,16^A0,25,0^FR^FD2288^FS ^FO152,32^A0,60,0^FR^FD22^FS ^FO215,12^A0,40,0^FR^FD88^FS ^FO307,12^A0,40,0^FR^FDR^FS ^FO120,94^A0,45,0^FR^FDMUFFLER1^FS ^FO250,140^A0,30,0^FR^FDMUFFLER1^FS ^FO250,165^A0,30,0^FR^FDZD180^FS ^FO250,200^A0,20,0^FR^FD010^FS ^FO290,205^A0,16,0^FR^FDP:^FS ^FO12,156^BCN,50,Y,N,Y^FR^FD1234567^FS ^FO24,85^GB360,50,4,^FS ^FO320,200^A0,24,0^FD5^FS ^XZ
Note: See the ZPL Programming Language Manual at www.zebra.com for a description of the printer control commands supported by
EPL based printers.
Section 1
pg. 1-6
PRO-MAN-PS4-001 Rev A
Contents
ZebraNet
Programming Manual
CPCL Printer Programming Example
The following is an example format file for a CPCL base printer. Sending this data over the network to the IP
address/port number for a CPCL printer will result in a printed label.
Next S ect.
! 0 200 200 240 1 JOURNAL
®
PS4000 Print Server
CONTRAST 0 TONE 0 SPEED 3 PAGE-WIDTH 380 T 4 3 110 0 22 T 4 2 212 0 88 T 5 0 10 10 2288 T 4 0 340 0 R T 5 1 110 86 MUFFLER BOX 20 80 364 130 2 T 7 0 278 142 MUFFLER T 7 0 306 164 ZD180 T 5 0 325 189 010 B UPCA 1 1 60 20 140 04364503284 T 5 0 30 203 043645032841 T 0 0 280 211 count: 0001 PRINT
Section 1
pg. 1-7
Note: Each line is separated by a Carriage Return/Line Feed combination which must be preserved when directing a print job to the
printer.
See the CPCL Programming Language Manual, available at ww w.zebra.com for a more complete description of the printer control
commands supported by CPCL based printers.
PRO-MAN-PS4-001 Rev A
Contents
ZebraNet
Programming Manual
Set/Get Commands
The Print Server supports the set/get interface for setting and retrieving various settings such as IP address,
SSID, etc. The suite of set/get related commands are identified in the CPCL Programming Language Manual, available on-line at www.zebra.com. There are also set/get commands specific to the print server identified in Section
3. A simple set/get example – printer port number:
Next S ect.
®
PS4000 Print Server
Set the port number for printer 1:
! U1 setvar “print_server.printer1.ip_port” “6102”
Get the port number for printer 1:
! U1 getvar “print_server.printer1.ip_port”
Zebra Port Driver
Communication to a printer requires installlation of a printer driver. Once this installation is complete, the Zebra
printer port driver is used to map the printer driver with the corresponding IP address/port number. This facilitates communicating to the printer from a host PC.
Section 1
pg. 1-8
PRO-MAN-PS4-001 Rev A
ZebraNet
Programming Manual
®
PS4000 Print Server
Section 2
pg. 2-9
Contents
Prev. Se ct. Next S ect.
ZebraNet Print Server Configuration Management Application
Overview
The ZebraNet Print Server Configuration Management System is a Win32 stand-alone utility providing an interface to perform the initial network setup as well as maintain the network configuration of the print server.
This application is dialog based where the main dialog, or ‘Main Menu’, allows navigation to all related functions. The main dialog is divided into the following areas:
Network Setup – The operations available under Network Setup allow the user to perform all network related configuration and status for the printer server. The ‘Network Setup’ buttons include the following:
• Quick Network Setup
• Network Settings LAN Status Network RF Settings Protocols Encryption Authentication
802.1x/WPA POP3
Configuration Managment System- Introductory Screen
NOTE: Clicking on a topic in the Introductory Screen illustration
above will jump you to the corresponding topic in the manual.
PRO-MAN-PS4-001 Rev A
• VPN Setup
• Mirror
• Ping
PC / Print Server Setup – The operations available under PC/Print Server Setup include configuring the PC for communication with the
Contents
Prev. Se ct. Next S ect.
ZebraNet
Programming Manual
PS4000 Print Server
Printer Server as well as configuring the individual printers connected to the printer server. There is also an option to create a standard TCP/IP port in order to print from a PC to a printer that is connected to the Print Server. The PC / Print Server buttons include the following:
• Com Port Setup
• Print Server Settings
• Individual Printer Setup
®
• Port Driver Setup
File Management – The operations available under ‘File Management’ include the ability to send and receive
files on the printer server as well as the ability to send files to the individual printers connected to the printer server. The ‘File Management’ section includes the following buttons:
• Send Files (Print Server)
• Read Files (Print Server)
• Individual Printers The default operation of this configuration utility is to communicate with the printer via the serial port. Prior to
doing any configuration of the print server, confirm the serial port baud rate used by this utility matches that of the
printer. To check the baud rate used by this utility, select ‘Com Port Setup’ from the Main Menu.
Quick Network Setup
The ‘Quick Network Setup’ option walks the user through a series of dialogs that enable the user to select the network related settings of the print server. Following are the screens associated with ‘Network Setup’.
Section 2
pg. 2-10
Screen 1: Quick Network Setup
PRO-MAN-PS4-001 Rev A
Contents
ZebraNet
Programming Manual
ZEBRANET
Prev. Se ct. Next S ect.
®
PS4000 Print Server
Screen 2: ESSID
ESSID- This screen allows the user to configure the Print Server to use the proper ESSID for your network.
Network Addresses- This screen allows the user to configure the Print Server to use DHCP or assign a static IP address, Subnet Mask and Default Gateway.
Section 2
pg. 2-11
Screen 3: Network Addresses
PRO-MAN-PS4-001 Rev A
Contents
ZebraNet
Programming Manual
Prev. Se ct. Next S ect.
®
PS4000 Print Server
Screen 4: Network Port
Network Port- This screen allows the use to enter the Network Port number used by the Printer Server. The default port number is 6101.
Network Protocols- This screen allows the user to select which Network Protocols the Print Server will support.
Section 2
pg. 2-12
Screen 5: Network Protocols
PRO-MAN-PS4-001 Rev A
Contents
ZebraNet
Programming Manual
ZEBR ANET
Finish Setup- This screen sends all the Network configuration settings to the printer.
®
PS4000 Print Server
Screen 6: Finish Setup
Select ‘Test Settings’ prior to pressing ‘Finish’. The program confirms it can ping the Print Server using the network settings entered. This confirms the server is visible on the network.
Prev. Se ct. Next S ect.
Section 2
pg. 2-13
PRO-MAN-PS4-001 Rev A
Contents
ZebraNet
Programming Manual
®
PS4000 Print Server
ZEBRA NET
LAN Status tab
Network Settings
LAN Status tab-This section allows the user to view as
well as change all network and security related settings.
Prev. Se ct. Next S ect.
Section 2
pg. 2-14
ZEBRANET
Network tab- This screen displays the current Network settings for the print server. Changing any of the settings shown and pressing ‘OK’ will change the corresponding setting on the print server.
Network tab
PRO-MAN-PS4-001 Rev A
Contents
ZebraNet
Programming Manual
RF Settings tab- This screen shows the current settings relating to the network radio on the print server.
Operating Mode: This option allows the user to change
the operating mode of the print server’s network radio.
®
PS4000 Print Server
RF Settings tab
Preamble Length: This option allows the user to select the preamble length used by the network radio. This setting
must match that for the access point. Options are:
• SHORT
• LONG
International Mode: This option allows the user to select the ‘International Mode’ setting used by the network radio.
Improper setting of this option may result in being unable to associate with the access point.
Options are:
• INFRASTRUCTURE
• AD HOC
Power Mode: This option allows the user to select the
power mode of the print server network radio. Options
are:
• OFF
• 1
• 2
• 3
• 4
• BEST
Prev. Se ct. Next S ect.
Section 2
pg. 2-15
PRO-MAN-PS4-001 Rev A
Loading...
+ 34 hidden pages