TABLE OF CONTENTS Introduction ................1 Interface ................1 Communication Protocol ............... 2 3.1 Type of Communication Protocol ............. 2 3.2 Receive Mode ................ 2 3.3 Return Status ................ 3 3.3.1 Return Status in STATUS3 Format ..........3 3.3.2 Return Status in Protocol for Driver (STATUS4) Format ......6 3.3.3 Other Return Statuses ............
Page 3
LAN ................. 30 6.1 Basic Specifications ..............30 6.2 Software Specifications .............. 31 6.3 TCP/IP Specifications ..............31 6.4 LPD Specifications..............31 6.5 Setup/Display Item ..............32 6.6 Socket Connection..............33 6.6.1 Port Connection Method ............33 6.6.2 Connection and Disconnection of Session .......... 34 6.6.3 Status Return Method ............
Page 4
8.3.1 Normal End ..............63 8.3.2 Disconnection during Print Data Sending ........... 65 8.3.3 Disconnection during Status Sending after Print Data Reception ...... 65 8.3.4 State transition diagram matrix (at host) ..........66...
1 Introduction This document contains the interface specifications of the WS4 series printers. (1) WS408DT : Head density 203(dpi) / Direct thermal printer (2) WS408TT : Head density 203(dpi) / Thermal transfer & Direct thermal printer (3) WS412DT : Head density 300(dpi) / Direct thermal printer (4) WS412TT : Head density 300(dpi) / Thermal transfer &...
3 Communication Protocol 3.1 Type of Communication Protocol There are four types of communication protocols available for the WS4 series such as; (1) READY/BUSY (2) XON/XOFF (3) STATUS3 (4) Protocol for driver (STATUS4) Each interface uses different communication protocol. In each communication protocol, the printer returns the status corresponding to the command requested by the host computer.
3.3 Return Status In the WS4 series, the printer returns the status corresponding to the command requested by the host computer so that the printer status can be controlled on the host computer side. There are two types of return status formats such as STATUS3 and Protocol for driver (STATUS4). The status is returned immediately after receiving the request command.
Page 8
(3) List of status Description ASCII Offline state No error Ribbon near end Buffer near full Ribbon near end & Buffer near full Online state Wait to receive No error Ribbon near end Buffer near full Ribbon near end & Buffer near full Printing No error Ribbon near end...
Page 9
2) Cancel request command This command enables to cancel the print jobs and to clear the entire contents of receive buffer. The printer status after completing this process is returned. (1) Command CAN(HEX 18H) (2) List of return status Return status Description ACK(HEX 06H) No error in the printer...
3.3.2 Return Status in Protocol for Driver (STATUS4) Format In STATUS4 format, the printer returns the printer status and response status to the host computer by receiving four types of request commands. When the combination of RS-232C interface and STATUS4 is used, the printer status will be returned to the host computer by receiving the print command.
Page 11
(3) List of status Description ASCII Offline state No error Ribbon near end Buffer near full Ribbon near end & Buffer near full Paused print job (No error) Online state Wait to receive No error Ribbon near end Buffer near full Ribbon near end &...
Page 12
2) Cancel request command This command enables to cancel the print jobs and clear the entire contents of receive buffer. The printer status after completing this process is returned. (1) Command CAN(HEX 18H) (2) List of return status Return status Description ACK(HEX 06H) No error in the printer...
Page 13
5) Response to the print command This information applies only when using the RS232C interface and STATUS4 (Protocol for driver).The print job will start by receiving the print command (STX ESC+“A”~ESC+“Z” ETX). The printer status after completing this process is returned. (1) List of return status Return status Description...
3.3.3 Other Return Statuses The following commands will return the status in a common format regardless of communication protocol setting such as [STATUS3] and [Protocol for driver (STATUS4)]. In this section, the codes written in the return status such as [STX] and [ETX] will be indicated as [02H] and [03H] regardless of the printer’s protocol code setting (Standard code/ Nonstandard code).
Page 15
List of return status (continued from previous page) Item Description No.of bytes Sensor type 00H : Reflective sensor (I-mark: CX-compatible) 01H : Transmissive sensor (gap between labels) 02H : Sensor-off type 03H : Reflective sensor (I-mark: CT-compatible) Zero slash 00H : Disable 01H : Enable Reserved 00H : Fixed...
3.4 READY/BUSY Flow Control This communication protocol controls the reception of print data by the control of hardware signal only. Refer to [4. RS-232C] for more details. 3.5 XON/XOFF Flow Control This communication protocol communicates with the host computer to see if the printer is ready to receive data by sending “XON”(HEX 11H) or “XOFF”(HEX 13H) code to signal line.
3.6 STATUS3 This communication protocol returns the status corresponding to the request command from the host computer so that the host computer can control printer status. For the details of request command and return status, refer to [3.3.1 Return Status in STATUS3 format] and [3.3.3 Other Return Statuses]. 3.6.1 Return Sequence When LAN interface is in use, refer to [7.8 Socket Connection] as well.
Page 18
2) Cancel request command Host Printer (Status request command) ID No.=[Space] Status Status=Wait to receive Print qty.[000000] Print command ID No.=[12] Print qyt.=50 Receiving/Analysis/Editing (Printer status: No error) Print operation Printing the 1 label (Status request command) ID No.=[12] Status Status=Printing Printing the 2 label...
3.6.2 Flow Chart See the flow chart below for programming on the host computer side. Loop Power On Print data setting Receiving status? Status setting Send ENQ Time out? Loop Time out? Time out setting Status display ID No. display RETURN Print quantity display Status display...
4 RS-232C 4.1 Basic Specifications The serial interface of this printer complies with RS-232C. Interface Communication settings Use the <I2> command for setting. <I2>abcde Setting Parameter Setting item Description value 38400bps Baud rate 19200bps [Factory setting] 9600bps 7 bits Data bit length 8 bits [Factory setting] Parity bit EVEN...
4.2 READY/BUSY This communication protocol controls the reception of print data by the control of hardware signal only. Single item buffer and multi item buffer can be toggled by the <I2> command. When the print data (STX ESC+“A”~ ESC+“Z” ETX) has been sent from the host computer in the conditions below, the accuracy of received data will not be guaranteed.
4.3 XON/XOFF This communication protocol communicates with the host computer to see if the printer is ready to receive data by sending “XON”(HEX 11H) or “XOFF”(HEX 13H) code to SD line. When this communication protocol is set, receive mode is set to multi item buffer. When the print data (STX ESC+“A”~ESC+“Z”...
4.4 STATUS3 This communication protocol returns the status corresponding to the request command from the host computer so that the host computer can control printer status. The status is returned immediately after receiving the request command. When this communication protocol is set, receive mode is set to multi item buffer. When the print data (STX ESC+“A”~ ESC+“Z”...
4.4.3 Timing Chart of Multi Item Buffer 1)Normal process Receive buffer near full Receive buffer near full Press FEED/LINE Power ON Press FEED/LINE release occurred Printer side STX…ETX(1) STX…ETX(2) STX…ETX(3) Initial Status Status Status Status Status Offline Online Printer status Receiving/Analysis/Editing(2) Receiving/Analysis/Editing(3) Receiving/Analysis/...
Page 27
3) Error handling Paper end occurred Head open Head close Press FEED/LINE Printer side STX…ETX(1) Status Status Status Status Status Status Status Offline Online Online Printer status Receiving/Analysis/ Editing(1) Print(1) Print(1) NOTE: (1) When the paper end has occurred, Open the print head assembly Set the label Close the print head assembly for feed operation. (2) When the print head assembly is closed, the paper end will be released.
4.5 Protocol for Driver (STATUS4) This communication protocol returns the status corresponding to the request command from the host computer so that the host computer can control printer status. The status is returned immediately after receiving the request command. When this communication protocol is set, receive mode is set to multi item buffer. 4.5.1 Line Connection DB-9P Printer...
4.5.3 Timing Chart of Multi Item Buffer 1) Normal process Receive buffer near full Receive buffer Power ON occurred near full release Press FEED/LINE Press FEED/LINE Printer side STX…ETX(1) STX…ETX(2) STX…ETX(3) Initial Status Status Status Status Status Offline Online Printer status Receiving/Analysis/ Receiving/Analysis/ Receiving/Analysis/...
Page 30
3) Error handling Head open Paper end occurred Head close Press FEED/LINE Printer side STX…ETX(1) Status Status Status Status Status Status Status Offline Online Online Printer status Receiving/Analysis/ Editing(1) Print(1) Print(1) NOTE: (1) When the paper end has occurred, Open the print head assembly Set the label Close the print head assembly for feed operation. (2) When the print head assembly is closed, the paper end will be released.
Page 31
5) Information acquisition command process Obtaining Printer side printer STX…ETX(2) STX…ETX(1) operation Printer operation Status Status Status status Status Online Printer status Receiving/Analysis/ Receiving/Analysis/ Editing(2) Editing(1) Print(1) Print(2) NOTE: Avoid executing the command to obtain the status (e.g. printer operation status) while printing.
4.6 Notes Follow the procedures below when executing READY/BUSY flow control. 1) When the host computer sends the data for printing labels, make sure to leave the printer on. 2) Turning the printer on after requesting to print labels from the host computer may cause the lack of first print data (approximately 120 bytes).
5 USB This interface complies with the USB 2.0 standard, and the baud rate is compatible with 12.5 Mbits/second. 5.1 Basic Specifications Interface Connectors Series B plug Recommended Cable length Shorter than 1.5 m Version USB 2.0 5.2 Connector Pin Assignments PIN No.
6 LAN 6.1 Basic Specifications Interface board (Onboard LAN) Connectors Cable type 10BASE-T, 100BASE-TX Cable length 100m and under Lighting up when establishing the link to Ethernet device by auto negotiation. Link/Status LED Color Description LINK Green Lighting when establishing the link Lighting when recognizing the connection to 10BASE-T SPEED Orange...
6.2 Software Specifications The following are the corresponding software specifications. Corresponding protocol TCP/IP Network layer ARP, IP, ICMP Session layer TCP, UDP Application layer LPR, DHCP, HTTP * Notes - Print data can be sent by LPR, and dedicated socket protocol (STATUS3, Protocol for driver (STATUS4)). - Printer status is obtainable by various commands in dedicated socket protocol.
6.5 Setup/Display Item Table shown below is the list of section that can be set up and referred to, and variables. TCP/IP-related settings Variable name Setting range Default(Factory setting) IP address 0.0.0.0 ~ 255.255.255.255 192.168.1.1 Subnet mask 0.0.0.0 ~ 255.255.255.255 255.255.255.0 Gateway address 0.0.0.0 ~ 255.255.255.255...
6.6 Socket Connection In the WS4 series, STATUS3 and protocol for driver (STATUS4) are available as dedicated protocols. The following are the specific LAN interface specifications when using these protocols. As for the common specifications for STATUS3 and protocol for driver (STATUS4), refer to [3.3 Return Status], [4.4 STATUS3] and [4.5 Protocol for Driver (STATUS4)].
6.6.2 Connection and Disconnection of Session The following are the procedure for connection and disconnection of command reception port (Port1024), status return port (Port1025) and transmission/reception port (Port9100 or 1024). 1) 1 port connection (Command reception port / Status return port: 9100 or 1024) Printer Host LISTEN...
Page 39
2) 2-port connection (Command reception port: 1024, Status return port: 1025) Printer Host LISTEN CONNECT (1024) (1025) ACCEPT CONNECTED Status request (1024) Printer status return (1025) Print data send (1024) Printing Status request (1024) Printer status return (1025) Print data send (1024) Printing CLOSE...
6.6.3 Status Return Method In the WS4 series, STATUS3 and protocol for driver (STATUS4) are available as dedicated protocols. There is a following status return method when using these protocols. ENQ response mode When the printer received the request command (ENQ) from the host computer, the latest status is returned to the host computer.
2) Protocol for driver (STATUS4) / ENQ response mode When the printer received the status request command (ENQ) from the host computer, the latest printer status is returned. Port9100 is used for receiving the command and returning the status at the time of 1 port connection. Port 1024 is used for receiving the command, and Port1025 is used for returning the status at the time of 2-port connection.
6.8 SNMP Specification (Simple Network Management Protocol) SNMP is a function to disclose the printer information to the IP network. It is possible to monitor the printer status via network. 6.8.1 Supported MIB The printer information is kept as a Management Information Base format called MIB. Each nodes on the tree have numbers, and SNMP manager send a node number to the printer acquire information of the node as information acquiring request.
6.8.2 Printer Error Information Errors happening at the printer need to be disclosed because the printer supports MIB host and printerMIB. When the printer received a request of error information acquisition from SNMP manager, the printer return the response data by replacing the printer error number to the error code defined by MIB. 6.8.2.1 Error and warning MIB correspondence table Printer MIB Host Resources MIB...
7 Wireless LAN 7.1 Basic Specifications (Wireless LAN) Status 3, Status 4 Protocol Refer to 2 Communication protocol for details. Setting of communication The following communication setting can be done in the communication setting mode of the conditions printer. Setting Items Setting range Protocol Status 3 Return...
Page 45
Wireless (1) Standard IEEE802.1b/g/n specification (2) Frequency band 2.4GHz (3) Baud rate Max. 11Mbps (Connected by IEEE802.11b) Max. 54Mbps (Connected by IEEE802.11g) Max. MCS7(*1) (Connected by IEEE802.11n) (4) Wireless LAN communication mode Infrastructure mode Ad Hoc mode *In IEEE802.11n, only Infrastructure mode is available. (5) Channel 1 - 13 (when connected with IEEE802.11b/g/n) *AP channel will be used in the Infrastructure mode.
Page 47
(9) Security (combination of authentication and encryption scheme) Ad Hoc mode Encryption Authentication scheme Open System None *Ad Hoc mode is not supported with IEEE802.11n. *Selection at the Shared Key will be disabled and operates with Open System. Infrastructure mode Encryption Authentication scheme...
7.2 Software Specifications Available protocol: TCP/IP Network layer: ARP, IP and ICMP Session layer: TCP and UDP Application layer: LPD, DHCP, HTTP 1) LPR and dedicated socket protocol of TCP/IP are available for sending print data. 2) Dedicated socket protocol is available to obtain printer status. 7.3 TCP/IP TCP/IP protocol environment has LPD for printing.
7.6 Wireless LAN settings 7.6.1 Setting Item List 7.6.1.1 Setting Tool Classificati Item Setting Range Default Values IPv4 IP Address 000.000.000.000-255.255.255.255 192.168.1.1 Subnet Mask 000.000.000.000-255.255.255.255 255.255.255.0 Gateway 000.000.000.000-255.255.255.255 0.0.0.0 Current Current IPv4 IP Address Current Subnet Mask Current Gateway Informatio RSSI Protocol Network Type...
Page 50
Classific Item Setting Range Default Values ation WEP Key1 WEP Key2 ASCII 13 characters / Hex 26 characters Usable Character Range (ASCII): 20-7EH NULL Usable Character Range (HEX): 20-FFH WEP Key3 WEP Key4 AUTO/TKIP/AES * When TKIP is selected, the module will work with Legacy WPA: AUTO/TKIP (11g) Encryption...
Page 51
7.6.1.2 Web Confgiguration Classification 1 Classification 2 Setting Items Setting Range Default Values System TCP/IP - IP Address Information - Subnet Mask Default - Gateway - DHCP Server Wireless LAN - Current SSID Information - Current SSID General General Setting ASCII 32 characters Usable Character Range (ASCII): MAC address...
Page 52
Classification 1 Classification 2 Setting Items Setting Range Default Values TCP/IP IP Protocol TCP/IP ON/OFF Configuration Telnet(23) ON/OFF HTTP(80) ON/OFF TFTP(69) ON/OFF SNMP(161) ON/OFF NTP(123) ON/OFF TCP Port(9100) ON/OFF DHCP Server DHCP Server ON/OFF Configuration Start IP 000.000.000.000-255.255.255.255 0.0.0.0 Address End IP Address 000.000.000.000-255.255.255.255 0.0.0.0...
Page 53
Classification 1 Classification 2 Setting Items Setting Range Default Values Wireless LAN WPA/WPA2 Configuration Encription WPA: AUTO/TKIP AUTO/TKIP/AES Mode WPA2: AES ASCHII 8-63 characters or HEX 64 characters Pre-Shared Usable Character Range 00000000 (ASCII/HEX): 30-39H, 41-5AH, 61 -7AH IEEE802.1X Configuration LEAP EAP-TLS Authentication...
Page 54
*Note 1) Smart Wireless LAN Setup -Smart Wireless Setup function easily set wireless settings with WPS (Wi-Fi Protected Setup). The smart wireless setup corresponds to WPS 2.0. -Each wireless mode can support following functions. Station (Ad-Hoc/Infrastructure): Enrollee function Access Point: AP/Register function (1) Supported Authentication Smart wireless setup function supports a certain combination of authentication/encryption.
7.6.2 802.1x Authentication and Certification Depending on the format, certification is necessary or not necessary in 802.1x authentication. When the certification is necessary, it needs to be imported from the WEB setting screen. Type of certification and secret key, necessity of certification, ID, and password are explained below. - Items need to be imported from the WEB setting screen Imported item Description...
7.7Socket Communication 2 types of connection can be used in the socket server function of TCP/IP; 2 port connection that uses Port 1024 for receiving print data and Port 1025 for printer status return, and 1 port connection that uses Port 9100 for print data receiving and printer status return.
7.7.1 Port Number Overlapping of the port number with the printer server function It is possible to change the port number of the Port 1024/Port 1025/Port 9100 in the range of “00001 – 65535” from the LCD, however, the following will happen when the port number is overlapped with the port number used for printer server function (HTTP/LPD).
7.8 Connection and Disconnection of Session The socket server function connects and disconnects the print data port (Port 1024), the status reply port (Port 1025) and the sending and receiving port (Port 9100 or Port 1024) in the following manner. 1) print data port (Port 1024), status return port (Port 1025) Host Printer...
Page 60
2)send/receive port (Port9100 or Port1024) Host Printer LISTEN CONNECT (Port1024 or Port9100) ACCEPT CONNECT success connect Status request (Port1024 or Port9100) Printer status (Port1024 or Port9100) Print data (Port1024 or Port9100) Print CLOSE CLOSE (Port1024 or Port9100) CONNECT END LISTEN...
7.9 Printer status 1) Status mode There are 3 modes of status return when using LAN interface. (1) Status 4/ENQ response mode (2 port connection or 1 port connection) The printer uses port 1024 for print data port, port 1025 for status return, and port 9100 for both print data port and status return.
Page 62
3) Sequence (1) Status 4/ENQ response mode (2 ports connection or 1 port connection) After receiving a status request command (ENQ: 05H) from the host, the printer returns the latest printer status. Host Printer LISTEN CONNECT (Port1024, Port1025, ACCEPT or Port9100) CONNECT SUCCESS Connection Status request...
Page 63
(2) Status 3 response mode (1 port connection) The printer returns ACK by receiving the print request command sent from the host, and returns the printer status by receiving the status request command (ENQ:05H) Host Printer LISTEN CONNECT (Port1024 or Port9100) ACCEPT CONNECT SUCCESS Connection...
7.10 Setting of IP Address There are several ways to set the IP address such as obtaining from DHCP server, SBPL command or network setting tool. The printer acquires an IP address as shown in following flow below according to the acquisition method set in the printer at power on.
7.11 Note 7.11.1 Common to LAN/Wireless LAN interface When opening or closing the print data port (Port 1024) or the status port (Port 1025) or the sending and receiving port (Port 9100), 150 msec to 200 msec interval is necessary between closing the port and opening the port again.
8 Bluetooth Bluetooth interface of the printer complies with Bluetooth Ver.2.0 standard. 8.1 Basic Specifications Item Description Standards Bluetooth Ver. 2.1+EDR Power Class 2 Communication distance 5m (at the standard measurement environment) Used profile Serial Port Profile(SPP) Operation mode Slave mode Bluetooth setting information print Service function Prints the Bluetooth setting information on the test printing.
Remaining print number = [000000] Status Job name = [Space] Print command (STX-ETX) ID number = [05] Print number = 100 Job name = [SATO] Receive/Analysis/Edit (Printer status: no error) (Status request command) ID number = [05] Status = "Editing"...
Page 68
8.3.1.2 Status 3 Printer Host Connected (Status request command) (CONNECT) ID Number = [Space] Status = "Waiting for receive" Status Remaining print number = [000000] Print command (STX-ETX ) ID number = [05] Receive/Analysis/Edit Print number = 100 (Printer status: no error) (Status request command) ID number = [05] Status = "Editing"...
Connected (CONNECT) Print command (STX-ETX) ID number = [12] Print number = 50 Receive/Analysis/Edit Job name = [SATO] × Disconnected or communication failure [Note] The print data may be lost when Bluetooth communication is disconnected during the print data sending.