WS4 Series Printer Interface Manual

WS4 Series Printer Interface Manual
WS4 Series Printer
Interface Manual
WS408DT / WS412DT
WS408TT / WS412TT
WS4-DT-r01-17-02-17IM
iii
© 2017 SATO Corporation. All rights reserved.
TABLE OF CONTENTS
1
Introduction ........................................................................... 1
2
Interface .............................................................................. 1
3
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 ............................................................ 10
3.4 READY/BUSY Flow Control ........................................................... 12
3.5 XON/XOFF Flow Control .............................................................. 12
3.6 STATUS3 ........................................................................... 13
3.6.1 Return Sequence ................................................................. 13
3.6.2 Flow Chart ...................................................................... 15
3.7 Protocol for Driver (STATUS4) ........................................................ 16
3.7.1 Return Sequence ................................................................. 16
4
RS-232C ............................................................................. 18
4.1 Basic Specifications ................................................................. 18
4.2 READY/BUSY ....................................................................... 19
4.2.1 Line Connection ................................................................. 19
4.2.2 Input and Output Signals ......................................................... 19
4.3.1 Line Connection ................................................................. 20
4.3.2 Input and Output Signals ......................................................... 20
4.4 STATUS3 ........................................................................... 21
4.4.1 Line Connection ................................................................. 21
4.4.2 Input and Output Signals ......................................................... 21
4.4.3 Timing Chart of Multi Item Buffer .................................................. 22
4.5 Protocol for Driver (STATUS4) ........................................................ 24
4.5.1 Line Connection ................................................................. 24
4.5.2 Input and Output Signals ......................................................... 24
4.5.3 Timing Chart of Multi Item Buffer .................................................. 25
4.6 Notes ............................................................................... 28
5
USB ................................................................................. 29
5.1 Basic Specifications ................................................................. 29
5.2 Connector Pin Assignments .......................................................... 29
iii
6
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 ............................................................ 36
6.7 Notes ............................................................................... 37
6.8 SNMP Specification (Simple Network Management Protocol) ............................. 38
6.8.1 Supported MIB ................................................................... 38
6.8.2 Printer Error Information .......................................................... 39
7 Wireless LAN ........................................................................... 40
7.1 Basic Specifications (Wireless LAN) ................................................... 40
7.2 Software Specifications .............................................................. 44
7.3 TCP/IP .............................................................................. 44
7.4 LPD ................................................................................ 44
7.5 HTTP (Hyper Text Transfer Protocol) .................................................. 44
7.5.1 Setting Items .................................................................... 44
7.5.2 Password Setting (for Web log in) ................................................. 44
7.6 Wireless LAN settings ................................................................ 45
7.6.1 Setting Item List ................................................................. 45
7.6.2 802.1x Authentication and Certification ............................................. 52
7.7Socket Communication ............................................................... 53
7.7.1 Port Number ..................................................................... 54
7.8 Connection and Disconnection of Session ............................................. 55
7.9 Printer status ........................................................................ 57
7.10 Setting of IP Address ............................................................... 60
7.11 Note ............................................................................... 61
7.11.1 Common to LAN/Wireless LAN interface .......................................... 61
7.11.2 Wireless LAN Interface .......................................................... 61
7.11.3 LAN Interface ................................................................... 61
8 Bluetooth ............................................................................... 62
8.1 Basic Specifications ................................................................. 62
8.2 Bluetooth Settings ................................................................... 62
8.3 Transmission Sequence .............................................................. 63
ii
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
ii
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 & Direct thermal printer
2
Interface
There are four types of interfaces available for the WS4 series.
(1)
(2)
(3)
(4)
USB device
USB host
LAN
RS-232C
Two or three types of interfaces can be installed for one printer. The table below shows the combination
of interfaces (USB device + USB host + LAN (+ RS-232C)).
Interface
Combination
LAN Model
Standard Model
USB
device
USB host
LAN
RS-232C
○
○
○
○
○
○
○
1
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. There are two types of return status formats.
(1) STATUS3 type
(2) Protocol for driver (STATUS4) type
The following table shows the compatibility of communication protocol and interface. Note that the return status
formats are indicated by the symbols below.
○ : STATUS3 type
◎ : Protocol for driver (STATUS4) type
Communication
Protocol
Interface
RS-232C
USB
LAN
READY/BUSY
XON/XOFF
STATUS3
Protocol for driver
(STATUS4)
*1
◎
○
◎
*2
◎
○
*1 : In the same manner as STATUS3 format, the printer status is returned after completing the reception process of
print data command.
*2 : The contents of return status to the host computer are slightly different from other interfaces.
◎
◎
3.2 Receive Mode
Only the multi item buffer is available on the WS4 series. The printer is able to continuously receive print jobs,
compiling and printing other jobs at the same time.
2
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.
3.3.1 Return Status in STATUS3 Format
In STATUS3 format, the printer returns the printer status and response status to the host computer by receiving two
types of request commands and print command.
The details of each request command and return status are as follows.
1) Status request command
This command returns the job ID number of receive data that is currently printing, the printer status and the number
of remaining labels to print to the host computer. When the print is completed or when there is no receive data, all ‘0’
(HEX 30H) will be returned for the print quantity. If the JOB ID Number command <ID> is not specified, the printer
will respond with “space” character (HEX 20H) for the job ID number.
(1) Command
ENQ(HEX 05H)
(2) Return status format
STX(HEX 02H)
ETX(HEX 03H)
STX
ID No.
Status
Remaining labels to print ETX
(11 bytes)
000000 to 999999
Sets the job ID number specified within ESC+“A”~ESC+“Z”.
Use the JOB ID Number command (ESC+ID) to set the job ID number .
When there are multiple receive data, the job number of receive data that
is currently printing will be set.
* Important
Avoid ENQ transmission (status request) while sending the print data (<A>…<Z>).
Failure to do so may result in return status error or print error.
3
(3) List of status
Description
Offline state
No error
Ribbon near end
Buffer near full
Online state
Ribbon near end & Buffer near full
Wait to receive
No error
Ribbon near end
Buffer near full
Printing
Ribbon near end & Buffer near full
No error
Ribbon near end
Buffer near full
Standby
(Wait to peel off /
cut )
Analyzing /
Editing
Ribbon near end & Buffer near full
No error
Ribbon near end
Buffer near full
Ribbon near end & Buffer near full
No error
Ribbon near end
Buffer near full
Ribbon near end & Buffer near full
Error detection
Buffer over*1
Head open
Paper end
Ribbon end
Media error
Sensor error
Head error
Cutter error
Other error condition
*1. Buffer overflow may or may not occur by interface types.
○ : Buffer overflow occurs when using this interface
× : Buffer overflow does not occur when using this interface
USB
RS-232C
LAN
×
○
×
4
ASCII
HEX
0
1
2
3
A
B
C
D
G
H
I
J
M
N
O
P
S
T
U
V
a
b
c
d
e
f
g
j
k
30
31
32
33
41
42
43
44
47
48
49
4A
4D
4E
4F
50
53
54
55
56
61
62
63
64
65
66
67
6A
6B
Depending on the timing of
analysis / editing, print quantity
may not be set up properly.
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
NAK(HEX 15H)
Error in the printer
* Important
After sending the cancel request command, wait more than 100ms before sending the next data.
3) Print command
This command (STX ESC+“A”~ESC+“Z” ETX) starts the print operation.
The printer status after receiving this command is returned.
(1) List of return status
Return status
ACK(HEX 06H)
NAK(HEX 15H)
Description
No error in the printer
Error in the printer
Example of Job ID Number command
<A>
<ID>01
<V>100<H>100<P>2<L>0202<XM>ABC
<Q>1
<Z>
* Note
For the Job ID Number command, refer to the Command Specifications.
5
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.
The details of each request command and return status are as follows.
1) Status request command
This command returns the job ID number of receive data that is currently printing, the printer status, the number of
remaining labels and the job name to the host computer. When the print is completed or when there is no receive
data, all “0” (HEX 30H) will be returned for the print quantity. If the JOB ID Number command is not specified, the
printer will respond with “space” character (HEX 20H) for the job ID number.
(1) Command
ENQ(HEX 05H)
(2) Return status format
Note that return status format is different depending on the interface to be used (e.g. LAN , other interfaces).
When LAN interface is in use (Return status: 32 bytes)
No. of bytes to
be sent
4 byte
0000001BH
ENQ
1 byte
05H
STX
1 byte
02H
ID No.
2 bytes
Status
1 byte
Remaining
print qty.
6 bytes
JOB
name
16 bytes
ETX
1 byte
03H
When the interface other than LAN is in use (Return status: 27 bytes)
STX
1 byte
02H
ID No.
2 bytes
Status
1 byte
Remaining
print qty.
6 bytes
Specified by the Job ID
Number command
000000~999999
JOB
name
16 bytes
Specified by the Job Name
command
* Important
Avoid ENQ transmission (status request) while sending the print data (STX…ETX).
Failure to do so may result in return status error or print error.
6
ETX
1 byte
03H
(3) List of status
Description
Offline state
No error
Ribbon near end
Buffer near full
Online state
Ribbon near end & Buffer near full
Paused print job (No error)
Wait to receive
No error
Ribbon near end
Buffer near full
Printing
Ribbon near end & Buffer near full
Paused print job (No error)
No error
Ribbon near end
Buffer near full
Standby
(Wait to peel off /
Cut)
Analyzing /
Editing
Ribbon near end & Buffer near full
Paused print job (No error)
No error
Ribbon near end
Buffer near full
Ribbon near end & Buffer near full
Paused print job (No error)
No error
Ribbon near end
Buffer near full
Ribbon near end & Buffer near full
Paused print job (No error)
Error detection
Buffer over*1
Head open
Paper end
Ribbon end
Media error
Sensor error
Head error
Cutter error
Other error condition
*1. Buffer overflow may or may not occur by interface types.
○ : Buffer overflow occurs when using this interface.
× : Buffer overflow does not occur when using this interface.
USB
RS-232C
LAN
×
○
×
7
ASCII
HEX
0
1
2
3
4
A
B
C
D
E
G
H
I
J
K
M
N
O
P
Q
S
T
U
V
W
a
b
c
d
e
f
g
j
k
30
31
32
33
34
41
42
43
44
45
47
48
49
4A
4B
4D
4E
4F
50
51
53
54
55
56
57
61
62
63
64
65
66
67
6A
6B
Depending on the timing of
analysis / editing, print quantity
may not be set up properly.
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
ACK(HEX 06H)
No error in the printer
NAK(HEX 15H)
Error in the printer
Description
* Important
After sending the cancel request command, wait more than 100ms before sending the next data.
3) Request command to pause printing
This command stops the print job.
The printer status after completing this process is returned.
(1) Command
DLE(HEX 10H)
(2) List of return status
Return status
ACK(HEX 06H)
No error in the printer
NAK(HEX 15H)
Error in the printer
Description
4) Request command to resume printing
This command enables the printer to exit the pause state and restart the print job.
The printer status after completing this process is returned.
(1) Command
DC1(HEX 11H)
(2) List of return status
Return status
Description
ACK(HEX 06H)
No error in the printer
NAK(HEX 15H)
Error in the printer
* Note
For the Job ID Number command, refer to the Command Specifications.
8
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
ACK(HEX 06H)
NAK(HEX 15H)
Description
No error in the printer
Error in the printer
Example of Job ID Number command
<A>
<ID>01
<V>100<H>100<P>2<L>0202<XM>ABC
<Q>1
<Z>
* Note
For the Job ID Number command, refer to the Command Specifications.
9
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).
NOTE: LAN adds the size info (4 bytes) on top of every return format.
1) Printer configuration request command
This command returns the printer configuration to the host computer.
(1) Command
SOH(01H)+MG
(2) Return status format
Return status: 32 bytes
STX
(02H)
1 byte
No.
Print method Head density……Buzzer setting
(Refer to the List of return status for more details)
30 bytes
(3) List of return status
Item
1
Print method
2
Head density
3
Print speed
Description
00H : Thermal transfer
ETX
(03H)
1 byte
No.of bytes
1
01H : Direct thermal
00H : 203dpi 8dots/mm
1
01H : 300dpi 12dots/mm
00H : 2 (inch/sec) 50 (mm/sec)
1
01H : 3 (inch/sec) 75(mm/sec)
02H : 4 (inch/sec) 100(mm/sec)
03H: 5(inch/sec) 125(mm/sec)
04H: 6(inch/sec) 150(mm/sec)
4
Print mode
00H : Continuous
1
01H : Tear off
02H : Cutter
03H : Dispenser
5
Cutter mode
00H : Motion 1 (Head position)
1
01H : Motion 2 (Cutter position)
02H : Motion 3 (No backfeed motion)
6
Dispenser mode
7
Nonsepa mode
00H : Motion 1 (Head position)
1
01H : Motion 2 (Dispensing position)
00H : Motion 2 (Tear off position)
1
01H : Motion 3 (No backfeed motion)
8
Print darkness
Darkness
A(41H) : A
Darkness level 01H
2
: 1 Lightest
02H
: 2 Slightly light
03H
: 3 Normal
04H
: 4 Slightly dark
05H
: 5 Darkest
10
List of return status (continued from previous page)
No.
9
Item
Sensor type
Description
00H : Reflective sensor (I-mark: CX-compatible)
No.of bytes
1
01H : Transmissive sensor (gap between labels)
02H : Sensor-off type
03H : Reflective sensor (I-mark: CT-compatible)
10
Zero slash
11
Reserved
00H : Fixed
1
12
Media specification
00H : Adhesive label
1
00H : Disable
1
01H : Enable
01H : Nonadhesive tag
13
Initial feed
00H : Disable
1
01H : Enable
14
Proportional pitch
00H : Fixed pitch
1
15
Height of label
16
Width of label
17
Vertical base reference
0000H to 012CH (0 to 300 dots)
point correction
FFFFH to FED4H (-1 to -300 dots)
Horizontal base
0000H to 012CH (0 to 300 dots)
reference point
FFFFH to FED4H (-1 to -300 dots)
01H : Proportional pitch
18
0001H to 0960H (1 to 2400 dots)
when setting to 8 dots/mm
0001H to 0E10H (1 to 3600 dots)
when setting to 12 dots/mm
0001H to 0340H (1 to 832 dots)
when setting to 8 dots/mm
0001H to 04E0H (1 to 1248 dots)
when setting to 12 dots/mm
2
2
2
2
correction
19
Label pitch offset
20
Tear-off offset
21
Cutter offset
00H to 63H (0 to 99 dots)
1
FFH to 9DH (-1 to -99 dots)
00H to 63H (0 to 99 dots)
1
FFH to 9DH (-1 to -99 dots)
00H to 63H (0 to 99 dots)
1
FFH to 9DH (-1 to -99 dots)
22
Dispenser offset
00H to 63H (0 to 99 dots)
1
FFH to 9DH (-1 to -99 dots)
23
Control code type
00H : Standard code
1
01H : Nonstandard code
24
25
Gap between labels
Buzzer
08H to 40H (8 to 64 dots)
when setting to 8 dots/mm
0CH to 60H (12 to 96 dots)
when setting to 12 dots/mm
00H : Yes
1
1
01H : No
11
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.
Refer to [4. RS-232C] for more details.
12
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.
1) Normal process
Host
Printer
ENQ(Status request command)
Status
(
ID No.=[Space]
Status=Wait to receive
Print qty.=[000000]
)
ID No.=[05]
Print command ( Print qty.=100 )
Receiving/Analysis/Editing
ACK
(Printer status: No error)
ENQ
(Status request command)
Status
ENQ
Status
(
ID No=[05]
Status=Analyzing/Editing
Print qty.=[000000]
)
Print operation
(Status request command)
(
ID No.=[05]
Status=Printing
Print qty.=[000100]
Printing the 1st label
)
Printing the 2nd label
Print command (
ACK
Receiving/Analysis
/Editing
)
ID No.=[06]
Print qty.=50
(Printer status: No error)
Printing the 3rd label
ENQ
Status
ENQ
Status
(Status request command)
(
ID No.=[05]
Status=Paper end
Print qty.=[000098]
Paper end error occurred
)
Error release
(Press the FEED key)
(Status request command)
(
ID No.=[05]
Status=Printing
Print qty.=[000098]
)
~
~
Printing the 3rd label
~
~
~
~
ENQ (Status request command)
Status
(
ID No.=[05]
Status=Printing
Print qty.=[000001]
)
ENQ(Status request command)
Status
(
ID No.=[06]
Status=Printing
Print qty.=[000050]
Printing the 100th label
Printing the 1st label
)
13
2) Cancel request command
Host
Printer
ENQ (Status request command)
Status
(
Print command (
ACK
ID No.=[Space]
Status=Wait to receive
Print qty.[000000]
)
)
ID No.=[12]
Print qyt.=50
Receiving/Analysis/Editing
(Printer status: No error)
Print operation
ENQ
Printing the 1st label
(Status request command)
Status
CAN
100ms or more
ACK
(
ID No.=[12]
Status=Printing
Print qty.[000049]
)
Printing the 2nd label
Printing the 3rd label
(Cancel request command)
Clearing receive buffer
Clearing print qyt.
(Printer status: No error)
ENQ (Status request command)
Status
(
Print command (
ACK
ID No.=[Space]
Status=Wait to receive
Print qyt. [000000]
ID No.=[13]
Print qty.=100
)
)
Receiving/Analysis/Editing
(Printer status: No error)
Print operation
ENQ (Status request command)
Status
(
ID No.=[13]
Status=Printing
Print qty. [000100]
Printing the 1st label
)
Printing the 2nd label
Paper end error occurred
CAN
NAK
(Cancel request command)
Clearing receive buffer
Clearing print qyt.
(Printer status: Having an error)
100ms or more
Error release
(Press the FEED key)
ENQ (Status request command)
Status
(
ID No.=[Space]
Status=Wait to receive
Print qty. [000000]
)
14
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?
No
Send ENQ
No
Loop
Time out?
Yes
1
No
Yes
Status setting
Time out?
Yes
Time out setting
Status display
ID No. display
RETURN
Print quantity display
Status display
Detecting error?
※
Yes
No
Yes
No
Cancel?
OFFLINE?
Yes
No
Yes
Buffer near full?
No
Cancel?
Yes
Send CAN
No
Send print data
Loop
Loop
Time out?
No
Yes
Yes
Time out?
No
1
No
ACK?
Yes
* When an error in the printer is detected by the status, make sure to confirm that the error is released by ENQ
before sending the next print data.
15
3.7 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 the printer status. For the details of request command and return status, refer to
[3.3.2 Protocol for Driver (STATUS4)] and [3.3.3 Other Return Statuses].
3.7.1 Return Sequence
When LAN interface is in use, refer to [7.8 Socket Connection] as well.
1) Normal process
Host
Printer
ENQ
ID No.=[Space]
Status=Wait to receive
Print qty.=[000000]
Job name=[Space]
Status
Print command
ACK
ID No.=[05]
Print qty.=100
Job name=[SATO]
Receiving/Analysis/Editing
(Printer status: No error) *1
ENQ
(Status request command)
ID No.=[05]
Status=Editing
Print qty.=[000000]
Job name=[SATO]
Status
ENQ
*1. When using the RS-232C interface,
there will be a response to print
command.
(Status request command)
Print operation
(Status request command)
ID No.=[05]
Status=Printing
Print qty.=[000100]
Job name=[SATO]
Status
Print command
st
Printing the 1 label
ID No.=[06]
Print qty.=50
Job name=[SATO]
nd
Printing the 2 label
Receiving/Analysis/Editing
(Printer status: No error) *1
ACK
ENQ
Paper end occurred
(Status request command)
ID No.=[05]
Status=Paper end
Print qty.=[000098]
Job name=[SATO]
Status
ENQ
rd
Printing the 3 label
Error release
(Press the FEED key)
(Status request command)
rd
Printing the 3 label
ID No.=[05]
Status=Printing
Print qty.=[000098]
Job name=[SATO]
Status
~
~
~
~
ENQ
~
~
(Status request command)
th
Status
ENQ
Printing the 100 label
ID No.=[05]
Status=Printing
Print qty.=[000001]
Job name=[SATO]
(Status request command)
Status
ID No.=[06]
Status=Printing
Print qty.=[000050]
Job name=[SATO]
st
Printing the 1 label
16
2) Cancel request command
Host
Printer
ENQ
(Status request command)
Status
ID No.=[Space]
Status=Wait to receive
Print qty.=[000000]
Job name=[Space]
Print command
ID No.=[12]
Print qty.=50
Job name=[SATO]
ACK
Receiving/Analysis/Editing
(Printer status: No error) *1
Print operation
ENQ
(Status request command)
st
Printing the 1 label
ID No.=[12]
Status=Printing
Print qty.=[000050]
Job name=[SATO]
Status
nd
Printing the 2 label
(Cancel request command)
CAN
rd
Printing the 3 label
ACK (Printer status: No error)
Clearing receive buffer
100ms or more
Clearing print qty.
ENQ
(Status request command)
Status
ID No.=[Space]
Status=Wait to receive
Print qty.=[000000]
Job name=[Space]
Print command
ID No.=[13]
Print qty.=100
Job name=[SATO]
ACK
(Printer status: No error) *1
ENQ
(Status request command)
Receiving/Analysis/Editing
Print operation
st
Printing the 1 label
ID No.=[13]
Status=Printing
Print qty.=[000100]
Job name=[SATO]
Status
nd
Printing the 2 label
Paper end occurred
CAN (Cancel request command)
100ms or more
NAK
Clearing receive buffer
Clearing print quantity
(Printer status: Having an error)
Error release
(Press the FEED key)
ENQ (Status request command)
Status
ID No.=[Space]
Status=Wait to receive
Print qty.=[000000]
Job name=[Space]
17
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
Parameter
a
Setting item
Setting
value
Baud rate
b
Data bit length
c
Parity bit
d
Stop bit
e
Protocol
Description
2
38400bps
1
19200bps [Factory setting]
0
9600bps
1
7 bits
0
2
8 bits [Factory setting]
ODD
1
EVEN
0
NONE [Factory setting]
1
2 bits
0
4
1 bit [Factory setting]
STATUS3
3
Protocol for driver (STATUS4) [Factory setting]
2
XON/XOFF
1
READY/BUSY(Multi item buffer)
0
READY/BUSY(Single item buffer)
Synchro system
Asynchronous method
Code
ASCII (7 bits) Graphic (8 bits)
Printer side
DB-9S (male) or equivalent
Cable side
DB-9P (female) or equivalent
Recommended Cable length
Shorter than 1.8 m
Connectors
Transmission form
Signal level
Start
b1
b2
b3
b4
b5
b6
b7
(Important) When using 7 bits, b8 will be omitted.
High level
:+5 to +12V
Low level
:-5 to -12V
18
b8
Stop
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.
1) When the printer is in offline state.
2) When an error has occurred in the printer.
4.2.1 Line Connection
DB-9P
Printer
RD
SD
SG
DR
RS
CS
Host
1
2
3
5
6
7
8
9
1
3
2
5
4
8
7
9
CD
SD
RD
SG
DR
CS
RS
RI
4.2.2 Input and Output Signals
PIN No.
2
3
4
5
6
7
8
Signal
RD
SD
NC
SG
DR
RS
CS
I/O
Input
Output
Input
Output
Input
Description
Data from the host computer to the printer
Data from the printer to the host computer.
Floating.
Signal ground.
Data Terminal Ready
Send request
Ready to send
19
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” ETX) has been sent from the host computer in the
conditions below, the accuracy of received data will not be guaranteed.
1) When the printer is in offline state.
2) When an error has occurred in the printer.
4.3.1 Line Connection
1) DB-9P
Printer
RD
2
SD
3
SG
5
3
2
5
Host
SD
RD
SG
(Important)
Depending on the host computer used, it may need to loop CS and RS (maintaining at “High” level)
on the host computer side. For more details, refer to your host computer documentation.
4.3.2 Input and Output Signals
PIN No.
2
Signal
RD
3
SD
5
SG
I/O
Input
Description
Data from the host computer to the printer.
Output Data from the printer to the host computer.
-
Signal ground.
20
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” ETX) has been sent from the host computer in the
conditions below, the accuracy of received data will not be guaranteed.
1) When the printer is in offline state.
2) When an error has occurred in the printer.
4.4.1 Line Connection
DB-9P
Printer
RD
2
SD
3
SG
5
Host
3
2
5
SD
RD
SG
(Important)
Depending on the host computer used, it may need to loop CS and RS (maintaining at “High” level)
on the host computer side. For more details, refer to your host computer documentation.
4.4.2 Input and Output Signals
PIN No.
2
3
5
Signal
RD
SD
SG
I/O
Description
Input Data from the host computer to the printer.
Output Data from the printer to the host computer.
Signal ground
21
4.4.3 Timing Chart of Multi Item Buffer
1)Normal process
Receive buffer near full
occurred
Power ON
Printer side
SD
Initial
STX…ETX(1)
ENQ
Status
RD
STX…ETX(2)
ENQ
Status
ACK
Receive buffer near full
release
ACK
STX…ETX(3)
ENQ
ENQ
ENQ
ACK
Status
Status
Status
Offline
Online
Printer status
Press FEED/LINE
Press FEED/LINE
Receiving/Analysis/Editing(2)
Receiving/Analysis/
Receiving/Analysis/Editing(3)
Editing(1)
Print(2)
Print(1)
Print(3)
NOTE: Avoid ENQ transmission (Status request) while sending the print data (STX…ETX).
This may cause return status error or print error.
2) Cancel process
Printer side
RD
SD
Printer status
STX..ETX(1)
ENQ
Status
Status
ACK
ACK
Online
STX…ETX(2)
ENQ
CAN
ENQ
Status
ENQ
ACK
Status
100ms
Receiving/Analysis/Editing(1)
Receiving/Analysis/
Editing(2)
Print(2)
Print(1)
NOTE: To send the next data, wait more than 100ms as delay time after sending the cancel request.
22
3) Error handling
Paper end occurred Head open
Head close
Press FEED/LINE
Printer side
RD
SD
STX…ETX(1)
ENQ
Status
ENQ
ENQ
ACK
Status
ENQ
Status
Status
ENQ
Status
ENQ
Status
Offline
Online
Printer status
ENQ
Status
Online
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) Information acquisition command process
Obtaining
printer
operation
Printer side
RD
SD
ENQ
Status
ENQ
ENQ
STX…ETX(1)
ACK
Status
STX…ETX(2)
Printer
operation status
Status
ENQ
ACK
Status
Online
Printer status
Receiving/Analysis/
Editing(2)
Receiving/Analysis/
Editing(1)
Print(1)
Print(2)
NOTE: Avoid executing the command to obtain the status (e.g. printer operation status) while printing.
23
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
Host
RD
2
3
SD
SD
3
2
RD
SG
5
5
SG
(Important)
Depending on the host computer used, it may need to loop CS and RS (maintaining at “High” level)
on the host computer side. For more details, refer to your host computer documentation.
4.5.2 Input and Output Signals
PIN No.
2
3
7
Signal
RD
SD
SG
I/O
Description
Input Data from the host computer to the printer
Output Data from the printer to the host computer
Signal ground
24
4.5.3 Timing Chart of Multi Item Buffer
1) Normal process
Receive buffer near full
occurred
Power ON
Printer side
RD
Initial
ENQ
STX…ETX(1)
ENQ
Status
SD
ACK
ENQ
ENQ
STX…ETX(2)
Status
Receive buffer
near full release
Status
ACK
Press FEED/LINE Press FEED/LINE
ENQ
STX…ETX(3)
ACK
Status
Offline
Online
Printer status
Receiving/Analysis/
Receiving/Analysis/
Receiving/Analysis/
Editing(1)
Editing(2)
Editing(3)
Print(1)
Print(2)
NOTE: Avoid ENQ transmission (Status request) while sending the print data (STX…ETX).
This may cause return status error or print error.
2) Cancel process
Printer side
RD
SD
STX…ETX(1)
ENQ
CAN
ENQ
STX…ETX(2)
ENQ
ENQ
100ms
Status
ACK
Status
ACK
Status
ACK
Status
Online
Printer status
Status
Receiving/Analysis/
Receiving/Analysis/
Editing(1)
Editing(2)
Print(1)
Print(2)
NOTE: To send the next data, wait more than 100ms as delay time after sending the cancel request.
25
3) Error handling
Paper end occurred
Head open
Head close
ENQ
ENQ
Press FEED/LINE
Printer side
RD
STX…ETX(1)
ENQ
Status
SD
ENQ
ENQ
Status
ACK
Status
ENQ
Status
Offline
Online
Printer status
Status
Status
ENQ
Status
Online
Receiving/Analysis/
Editing(1)
*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) Pausing and resuming the printing process
Printer side
RD
*2
STX…ETX(1)
ENQ
Status
*2
DLE
ACK
STX…ETX(2)
ACK
ACK
SD
DC1
ACK
Online
Printer status
Receiving/Analysis/
Editing(1)
Status
ENQ
ACK
100ms
Receiving/Analysis/
Editing(2)
Print(2)
Print(1)
*2
CAN
ENQ
DLE is for pausing the print job.
DC1 is for resuming the print job.
26
Status
5) Information acquisition command process
Obtaining
printer
operation
Printer side
RD
SD
ENQ
Status
ENQ
ENQ
STX…ETX(1)
ACK
Status
STX…ETX(2)
Printer operation
status
Status
ENQ
ACK
Status
Online
Printer status
Receiving/Analysis/
Editing(2)
Receiving/Analysis/
Editing(1)
Print(1)
Print(2)
NOTE: Avoid executing the command to obtain the status (e.g. printer operation status) while printing.
27
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). To avoid this error, it is necessary to attach dummy data of
approximately 120 bytes by application software that enables the host computer to send the data for
printing labels.
e.g.) When sending [STX+<A>+<V>20+<H>20+<P>2+<L>0202+<X20>,1234+<Q>2+<Z>+ETX],
transfer dummy data of approximate 120 bytes shown below.
[00H+00H+
~
+00H+00H+00H+00H] + [STX
28
~
ETX]
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
Version
USB 2.0
5.2 Connector Pin Assignments
PIN No.
Description
1
VBus
2
-Data(D-)
3
+Data(D+)
4
GND
29
Shorter than 1.5 m
6
LAN
6.1 Basic Specifications
Interface board
(Onboard LAN)
Connectors
Link/Status LED
Maintenance function
Cable type
10BASE-T, 100BASE-TX
Cable length
100m and under
Lighting up when establishing the link to Ethernet device by auto negotiation.
LED
Color
Description
LINK
Green
Lighting when establishing the link
SPEED
Orange
Lighting when recognizing the connection to 10BASE-T
Lighting when recognizing the connection to 100BASE-TX
COLLISION
Red
Lighting when collision occurs
Print of LAN settings
Printing out the LAN settings on a label in user test print and factory test print.
Initialization of LAN setting
Initializing the LAN settings by [All Clear] in factory clear mode.
(Refer to the Operation Specifications for more details.)
Communication condition
The following settings can be set by the commands.
Item
Command
setting
Setting range
Protocol for driver (STATUS4) cyclic
response mode *1
Protocol for driver (STATUS4)
response mode *1
STATUS3 *2
LAN mode
<I3>
IP address
<W1>
0.0.0.0 ~ 255.255.255.255
Subnet mask
<W2>
0.0.0.0 ~ 255.255.255.255
Gateway address
<W3>
0.0.0.0 ~ 255.255.255.255
IP
setting
<WI>
Manual setting
Use of DHCP
address
ENQ
* 2-port connection (Port1024 and Port1025) or 1 port connection (Port9100)
is available.
* 1 port connection (Port1024 or 9100).
30
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.3 TCP/IP Specifications
In TCP/IP protocol environment, LPD is provided for printing. ARP and DHCP for the setup of IP address are
available.
In socket connection, print operation and status monitoring will be executed. Note that multiple sessions cannot be
established at the same time.
WindowsNT, Windows2000/XP/Server2003/Vista operating systems support LPD of TCP/IP that enables you to
print; however, Windows98/Me are not configured with LPD. In order to print directly, off-the-shelf printing utility is
required.
6.4 LPD Specifications
LPD protocol complies with RFC1179, and handles the list of logical printer name as queue name such as lp, sjis
and euc.
Queue name
Kanji filter applied
Input Kanji code
lp
Not available
N/A
sjis
Available
Shift JIS
euc
Available
EUC
When sending a job by LPR, the transmission order of data file/control file within the job will not affect print
operation.
* Notes
- Job deletion by LPR is not available.
- LPD specifications is available only in protocol for driver (STATUS4).
- Executing large quantity printing by LPD may result in data loss in the Windows specifications.
31
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
0.0.0.0
DHCP protocol
ENABLE/DISABLE
ENABLE
Socket cancel
Normal
Random alphanumeric
character strings [16]*1
Normal
root password
*1. The value inside of [
NULL(No password)
] indicates the restriction of characters.
32
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.1 Port Connection Method
In the WS4 series, STATUS3 and protocol for driver (STATUS4) are available as dedicated protocols. To use
these protocols, there are two ways to specify the port for connection.
(1) 1 port connection
Port9100 (or 1024) is used for receiving the command and returning the status.
(2) 2-port connection
Port1024 is used for receiving the command, and Port1025 is used for returning the status.
STATUS3 supports 1 port connection only while protocol for driver (STATUS4) supports both 1 port connection
and 2-port connection.
1) STATUS3 / 1 port connection
Command, Return data
Host
Printer
1024 or 9100
2) Protocol for driver (STATUS4) / 2-port connection
Command
1024
Host
Printer
Return data
1025
3) Protocol for driver (STATUS4) / 1 port connection
Host
Command, Return data
Printer
9100
*Notes
- When Port9100 is in use, the return status will be sent to status request command (ENQ) and printer
configuration request command (SOH+MG) only.
- 2-port connection and 1 port connection cannot be used at the same time.
- Each socket cannot establish multiple sessions at the same time.
- LPR can be used for sending the command other than socket connection. Socket connection cannot establish
the connection to the command reception port (1024 or 9100) during LPR connection.
Printing by LPR
Command
LPR
Host
Printer
Return data
1025 or 9100
33
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
CONNECT
(9100 or 1024)
ACCEPT
CONNECTION
Status request
(9100 or 1024)
Printer status return
(9100 or 1024)
Print data send
(9100 or 1024)
Printing
Status request
(9100 or 1024)
Printer status return
(9100 or 1024)
Print data send
(9100 or 1024)
CLOSE
(9100 or 1024)
Printing
DISCONNECTION
CLOSE
LISTEN
34
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
(1024)
(1025)
CLOSE
DISCONNECTED
LISTEN
35
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.
1) STATUS3 / ENQ response mode
When the printer received the status request command (ENQ) from the host computer, the latest printer status
is returned.
Port9100 (or 1024) is used for receiving the command and returning the status at the time of 1 port connection.
Printer
Host
LISTEN
CONNECT
9100(or 1024)
ACCEPT
CONNECTED
Status request(ENQ)
9100(or 1024)
Latest printer status
9100(or 1024)
CLOSE
9100(or 1024)
CLOSE
DISCONNECTED
LISTEN
36
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.
Printer
Host
LISTEN
CONNECT
1 port connection: 9100
2-port connection: 1024, 1025
ACCEPT
CONNECTED OK
Status request (ENQ)
1 port connection: 9100
2-port connection: 1024
Latest printer status
1 port connection: 9100
2-port connection: 1025
CLOSE
1 port connection: 9100
2-port connection: 1024, 1025
CLOSE
DISCONNECTED
LISTEN
6.7 Notes
1) When opening and closing the same port, wait for 150 to 200ms from the closing to the opening of the port to
avoid establishing a double connection.
Double connection means that the connection request (CONNECT) is sent to the port already connected
(CONNECT (Socket OPEN)). In this case, this connection request will be rejected (Socket CLOSE).
2) Connecting and disconnecting LAN cable while the printer is on may result in communication failure. In case of
communication failure, restart the printer.
37
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. The printer returns the information of specified node number as response data.
MIBs that the printer supports are as follows;
・system(1)
・interface(2)
・address translation(3)
・ip(4)
・icmp(5)
・tcp(6)
・udn(7)
・transmisson(10)
・snmp(11)
・host(25)
・printerMIB(43)
38
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
Description
Printer MIB
prtAlertTraining
prtAlertGroup
Level
prtAlertSeverity
Level
Host Resources MIB
prtAlertCode
hrPrinterDetected
ErrorState
Online
-
-
-
-
-
Offline
critical(3)
untrained(3)
generalPrinter(5)
subunitOffline(22)
bit #6 (offline)
Print pause
-
-
-
-
-
Flash ROM error
EEPROM error
Head error
Head open
Paper end error
Sensor error
Cutter error
Ribbon end
Flaming error
Low battery error
USB error
WLAN Module error
Bluetooth module error
Command error
Print head overheat
critical(3)
critical(3)
critical(3)
critical(3)
critical(3)
critical(3)
critical(3)
critical(3)
critical(3)
critical(3)
critical(3)
critical(3)
critical(3)
critical(3)
critical(3)
fieldService(5)
fieldService(5)
fieldService(5)
untrained(3)
untrained(3)
trained(4)
trained(4)
untrained(3)
other(1)
untrained(3)
other(1)
fieldService(5)
fieldService(5)
other(1)
other(1)
other(1)
other(1)
marker(10)
marker(10)
input(8)
mediaPath(13)
finDevice(30)
markerSupplies(11)
channel(14)
other(1)
other(1)
channel(14)
channel(14)
nterpreter(15)
marker(10)
other(1)
other(1)
other(1)
subunitOpened(18)
inputMediaSupplyEmpty(808)
jam(8)
separationCutterJam(31108)
markerPrintRibbonEmpty(1103)
other(1)
subunitAlmostEmpty(12)
other(1)
subunitUnrecoverableFailure(30)
subunitUnrecoverableFailure(30)
other(1)
subnitOverTemperature(36)
bit #4 (doorOpen)
bit #1 (noPaper)
bit #5 (jammed)
bit #5 (jammed)
bit #3 (noToner)
-
*1 warning (3) is set at warning during online state. Other than that, running (2) is set.
*2 printing (4) is set during printing. Other than that, idle (3) is set.
*3 running (2) is set at online, warning (3) is set at warning during online state, and down (5) is set at offline.
6.8.2.2 Supplemental explanation
1) The last error has the priority when multiple error has happened.
2) If errors and warnings happened at the same time, Host Resources MIB and Printer MIB are notified as error.
3) If a multiple warning happened, printer MIB is notified multiply (prtAlert).
39
hrDeviceStatus
running(2) / *1
warning(3)
down(5)
running(2) / *3
warning(3)/down(5)
down(5)
down(5)
down(5)
down(5)
down(5)
down(5)
down(5)
down(5)
down(5)
down(5)
down(5)
down(5)
down(5)
down(5)
down(5)
hrPrinterStatus
idle(3) /
printing(4)
other(1)
other(1)
other(1)
other(1)
other(1)
other(1)
other(1)
other(1)
other(1)
other(1)
other(1)
other(1)
other(1)
other(1)
other(1)
other(1)
other(1)
*2
7 Wireless LAN
7.1 Basic Specifications (Wireless LAN)
Status 3, Status 4
Refer to 2 Communication protocol for details.
Protocol
Setting of
conditions
communication
The following communication setting can be done in the communication setting mode of the
printer.
Setting Items
Protocol
IP Address
Subnet Mask
Gateway Address
IP Address Settings
Communication mode
SSID
Channel
Setting range
Status 3 Return
Status 4 (ENQ response mode)
0.0.0.0 - 255.255.255.255
Default Value: 192.168.1.1
0.0.0.0 - 255.255.255.255
Default Value: 255.255.255.0
0.0.0.0 - 255.255.255.255
Default Value: 0.0.0.0
DISABLE (manual setting)
ENABLE (Default Value)
Ad Hoc mode
Infrastructure mode
SSID
Default: SATO_PRINTER
1 - 13
Default Value: 11
40
Wireless
specification
LAN (1) Standard
IEEE802.1b/g/n
(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.
*A channel of the other side will be used when the other side's status is waiting for
connection in the Ad Hoc mode.
*Setting range will be different depending on the regional setting.
Region
Setting range
USA/Canada
1 - 11
Europe/Malaysia/Singapore/Korea/China
1 - 13
*Regardless of the regional setting, when the band width of the IEEE802.11n is 40MHz, the
setting range will be 3 to 11 channel.
(6) SSID
Up to 32 alphanumeric characters and symbols (from 20H to 7EH) can be set.
(7) Authentication
Open System
Shared Key
WPA/WPA2
IEEE802.1x (EAP-TLS, LEAP, EAP-TTLS, EAP-PEAP, EAP-FAST are selectable.
Hereafter written as "EAP".) .
(8) Encryption scheme
None
WEP
TKIP
AES
41
[Security Type]
Structure
Security
Encryption
scheme
Authentication
WEP
WEP
-
Dynamic WEP
WEP
-
WPA-PSK
TKIP
PSK
EAP-TLS
EAP-PEAP
WPA-EAP
TKIP
AP-TTLS
LEAP
EAP-FAST
WPA2-EAP
AES
42
EAP-TLS
EAP-PEAP
EAP-TTLS
LEAP
EAP-FAST
(9) Security (combination of authentication and encryption scheme)
Ad Hoc mode
Authentication
Open System
Encryption
scheme
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
Authentication
Shared Key
Open System
WPA + PSK
WPA + EAP
WPA2 + EAP
Encryption
scheme
None
None
WEP
TKIP
TKIP
AES
*Note
When using this printer around medical equipments/facilities, please consult with the system
administrator to confirm there is no influence to the equipments/facilities.
43
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. You can use DHCP for setting each address.
7.4 LPD
Protocol of LPD complies with RFC1179, and handles the list of logical printer name as a cue name.
Order of sending of data file and control file doesn’t affect print operation when sending job with LPR.
* Deleting job with LPR is not available.
* LPD specification is only available in Status 4/ENQ response.
* When conducting large quantity printing with LPR, some data may be skipped because of the specification of
Windows.
* Banner page printing is not available.
* Note that establishing multiple session at the same time is not available.
7.5 HTTP (Hyper Text Transfer Protocol)
HTTP sets setting items of LAN, wireless LAN.
7.5.1 Setting Items
Refer to "7.6.1 Setting item list".
7.5.2 Password Setting (for Web log in)
No. Item
Contents
1
Log in name
Attribute
(Maximum 16 characters)
44
R/W
Default
Value
"admin"
7.6 Wireless LAN settings
7.6.1 Setting Item List
7.6.1.1 Setting Tool
Classificati
Item
Setting Range
Default Values
on
IPv4
Current
IPv4
Informatio
n
Protocol
Current
Protocol
Initializatio
n
Server
Authentica
tion
WEP
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
IP Address
-
-
Current
Subnet Mask
-
-
Current
Gateway
-
-
RSSI
-
-
Network Type
Adhoc/Infra
Infra
Channel
1-13
11
SSID
1-32 characters
Usable Character Range (ASCII): 30-39H, 2DH, 41-5AH,
5FH, 61 -7AH
SATO_PRINTER
Socket Port
Number
0 or 1024-65534
9100
Current Channel
1-13
-
Current SSID
1-32 characters
-
Module Restore
Default
When you click the check box, the all settings will be default
value.
-
DHCP
Disable/Enable/Auto
AUTO
Host Name
1-32 characters
Usable Character Range (ASCII): 20-7EH (except 22H)
MAC address
xx-xx-xx-xx-xx-xx
Network
Authentication
Open/WPA-Personal/WPA2-Personal/802.1X/WPAEnterprise/WPA2-Enterprise
Open
WEP
ON/OFF
OFF
WEP Key Index
1/2/3/4
1
WEP Input Type
ASCII/HEX
ASCII
45
Classific
ation
Item
Setting Range
Default Values
ASCII 13 characters / Hex 26 characters
Usable Character Range (ASCII): 20-7EH
Usable Character Range (HEX): 20-FFH
NULL
WPA
Encryption
AUTO/TKIP/AES
* When TKIP is selected, the module will work with Legacy
(11g)
* When Auto mode is selected, the device linked with TKIP
uses Legacy and the device linked with AES uses 11n.
WPA: AUTO/TKIP
WPA2: AES
WPA Preshared Key
8-63 characters
00000000
EAP Method
LEAP/EAP-TLS/EAP-TTLS/PEAP/EAP-FAST
*When EAP-TLS is set, client certification needs to be
updated by web browser.
EAP-TTLS
EAP User
Name
1-63 characters
Usable Character Range (ASCII): 20~7EH
anonymous
EAP Password
1-32 characters
Usable Character Range (ASCII): 20~7EH
WEP
WEP Key1
WEP Key2
WEP Key3
WEP Key4
WPA
EAP
* If all characters are *, that cannot be set.
46
anonymous
7.6.1.2 Web Confgiguration
Classification 1
Classification 2
Setting Items
Setting Range
Default Values
System
TCP/IP
Information
IP Address
-
-
Subnet Mask
-
-
Default
Gateway
-
-
DHCP Server
-
-
Current SSID
-
-
Current SSID
-
-
System Name
ASCII 32 characters
Usable Character Range (ASCII):
20-7EH
If a space is input as first characeter,
that is not guranteed.
MAC address
xx-xx-xx-xx-xx-xx
Wireless LAN
Information
General
General Setting
System
Description
System Contact
System
Location
SNMP Get
Community
Name
SNMP Set
Community
Name
TCP/IP
ASCII 64 characeters
Usable Character Range (ASCII):
20-7EH
If a space is input as first characeter,
that is not guranteed.
ASCII 63 Characters
Usable Character Range (ASCII):
20-7EH
If a space is input as first characeter,
that is not guranteed.
ASCII 63 Characters
Usable Character Range (ASCII):
20-7EH
If a space is input as first characeter,
that is not guranteed.
ASCII 16 characters
Wireless LAN
" " (NULL character)
" " (NULL character)
Usable Input Range (ASCII): 30-
" " (NULL character)
39H, 41-5AH, 61 -7AH
ASCII 16 characters
Usable Input Range (ASCII):
" " (NULL character)
30-39H, 41-5AH, 61 -7AH
TCP/IP
Configuration
DHCP
AUTO/DHCP/STATIC
AUTO
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
000.000.000.000-255.255.255.255
0.0.0.0
000.000.000.000-255.255.255.255
0.0.0.0
000.000.000.000-255.255.255.255
0.0.0.0
Default
Gateway
DNS Server
(Primary)
DNS Server
(Secondary)
47
Classification 1
Classification 2
Setting Items
Setting Range
Default Values
TCP/IP
IP Protocol
Configuration
TCP/IP
ON/OFF
ON
Telnet(23)
ON/OFF
ON
HTTP(80)
ON/OFF
ON
TFTP(69)
ON/OFF
ON
SNMP(161)
ON/OFF
ON
NTP(123)
ON/OFF
ON
TCP Port(9100)
ON/OFF
ON
DHCP Server
ON/OFF
OFF
Start IP
Address
000.000.000.000-255.255.255.255
0.0.0.0
End IP Address
000.000.000.000-255.255.255.255
0.0.0.0
Subnet Mask
000.000.000.000-255.255.255.255
0.0.0.0
Default
Gateway
000.000.000.000-255.255.255.255
0.0.0.0
Lease Time
0 day 0 hour 0 minute-99 days 23
hour 59 minutes
10 days 0 hour 0 minute
Operating
Mode
Adhoc/Infra/AccessPoint
Infra
DHCP Server
Configuration
Wireless LAN
Wireless LAN
Basic
Configuration
1-32 characters
Usable Character Range
SSID
(ASCII): 30-39H, 2DH, 41-5AH,
SATO_PRINTER
5FH, 61 -7AH
WEP
Configuration
Channel
1-13
11
Network
Authentication
Open
WPA-Personal
WPA2-Personal
802.1X
WPA-Enterprise
WPA2-Enterprise
Open
WEP
ON/OFF
OFF
Key Index
1/2/3/4
1
HEX 26 characters
Usable Character Range (HEX):
" " (NULL character)
WEP Key1
WEP Key2
WEP Key3
20-FFH
WEP Key4
48
Classification 1
Classification 2
Wireless LAN
WPA/WPA2
Configuration
Setting Items
Setting Range
Default Values
Encription
Mode
AUTO/TKIP/AES
WPA: AUTO/TKIP
WPA2: AES
Pre-Shared
Key
ASCHII 8-63 characters or HEX 64
characters
Usable Character Range
(ASCII/HEX): 30-39H, 41-5AH,
00000000
61 -7AH
IEEE802.1X
Configuration
EAP
Authentication
Mode
EAP User
Name
LEAP
EAP-TLS
EAP-TTLS
PEAP
EAP-FAST
1-63 characters
Usable Character Range
(ASCII): 20~7EH
EAP-TTLS
anonymous
ASCII 1-32 characters
Usable Character Range
EAP Password
(ASCII):20~7EH
anonymous
* If all characters are *, that cannot
be set.
CA Certificate
(Optional)
Client
Certificate
Client
Certificate
Secret Key File
Smart Wireless
Setup
Password
IP Filter
Smart Wireless
Setup
Smart Wireless
Setup Execute
Password
Configuration
Add New
Range
Current Setting
-
-
Certificate File
X509 file encoded by PEM format
" " (NULL character)
Current Setting
-
-
Certificate File
X509 file encoded by PEM format
" " (NULL character)
Current Setting
-
-
Certificate File
RSA or PKCS8 encoded by PEM
format
" " (NULL character)
Password
8-63 alphanumeric characters
PIN Code
-
-
Push Button
-
-
PIN Code
-
-
New Password
0-16 characters
access
Starting
Address
IP Address
0.0.0.0
Ending Address
Manage
Configure
Ranges
-
-
-
Restart
-
-
-
-
Firmware
Update
Reference
-
-
-
Update
-
-
-
-
-
Logout
49
*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. Please refer to
the list below. After the communication with smart wireless setup succeeds, the printer works with the
setting set by smart wireless setup and the settings are kept after the printer reboot. When SSID /
Authentication / Encryption / Pre-Shared Key is manually changed, the settings by smart wireless setup
are released and the manual settings are applied.
Authentication
Encryption
Manual Setting
Smart Wireless Setup
None
○
○
WEP(128bit)
○
×
TKIP
○
○
AES
×
○
AUTO
○
○
TKIP
×
○
AES
○
○
AUTO
×
○
WEP(128bit)
○
×
TKIP
○
×
AES
×
×
AUTO
○
×
TKIP
×
×
AES
○
×
AUTO
×
×
Open
WPA-Personal
WPA2-Personal
802.1x
WPA-Enterprise
WPA2-Enterprise
(2) PIN Code Method / Push Button Method
Enrollee function can be used on smart wireless setup. The printer will connect to the access points by the
enrollee function.
PIN Code Method: When PIN Code is generated by the Generate PIN button, wireless connection is set.
Time out period is 120 seconds.
Push Button Method: Wireless connection is set by the Execute button in the web page after WPS button
on AP is executed. Timeout period is 120 seconds.
2) Internal Authentication Protocol
Authentication Protocols for Authentication Modes are as follows.
EAP Authentication Mode
LEAP
EAP-TLS
EAP-TTLS
PEAP
EAP-FAST
Authentication Protocol
Challenge Response Authentication by MD5
Server Authentication by LS Certification and Client Authentication
MS CHAPv2 Fixed
MS CHAPv2 Fixed
PAC Common Key
50
7.6.1.3 Combination of Wireless Setting and Necessary Items
WLAN Basic Configuration
Operating
Mode
SSID
Channel
Network
Authentication
WPA/WPA2
Configuration
WEP Configuration
Certificate File Configuration
(*1)
802.1X Configuration
WEP
Key Index
WEP
Key1
WEP
Key2
WEP
Key3
WEP
Key4
Encryption
Mode
PreShared
Key
EAP
Authentication
Mode
EAP User
Name
EAP
Password
Inner
Authentication
CA
Certificate
Client
Certificate
Client
Certificate
Secret
Key file
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
ON
1~4
Enable
Enable
Enable
Enable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
1~11(US)
Adhoc
Enable
Open
1~13(EU)
Enable
Enable
Enable
Enable
Disable
Open
OFF
Disable
WPA-Personal
Disable
Disable
Disable
Disable
Disable
Disable
TKIP/AUTO
Enable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
WPA2Personal
Disable
Disable
Disable
Disable
Disable
Disable
AES
Enable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
LEAP
Enable
Enable
Disable
Disable
Disable
Disable
EAP-TLS
Enable
Disable
Disable
Enable
Enable
Enable
EAP-TTLS
Enable
Enable
PAP/MSCHAPv2
Enable
Disable
Disable
PEAP
Enable
Enable
Disable
Enable
Disable
Disable
EAP-FAST
Enable
Enable
Disable
Enable
Disable
Disable
LEAP
Enable
Enable
Disable
Disable
Disable
Disable
EAP-TLS
Enable
Disable
Disable
Enable
Enable
Enable
EAP-TTLS
Enable
Enable
PAP/MSCHAPv2
Enable
Disable
Disable
PEAP
Enable
Enable
Disable
Enable
Disable
Disable
EAP-FAST
Enable
Enable
Disable
Enable
Disable
Disable
LEAP
Enable
Enable
Disable
Disable
Disable
Disable
EAP-TLS
Enable
Disable
Disable
Enable
Enable
Enable
EAP-TTLS
Enable
Enable
PAP/MSCHAPv2
Enable
Disable
Disable
PEAP
Enable
Enable
Disable
Enable
Disable
Disable
EAP-FAST
Enable
Enable
Disable
Enable
Disable
Disable
Disable
802.1X
ON
1~4
Enable
Enable
Enable
Enable
Disable
Disable
Infra.
Enable
Enable
Disable
Disable
WPAEnterprise
WPA2Enterprise
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
Disable
TKIP/AUTO
Disable
AES
*1 Certificate File Configuration can be set by Web Configuration.
51
Disable
Disable
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
No.
Imported item
1
2
Route certification
Client certification
3
Secret key
Description
File: select files of route certification
Password: input the secret password for the client certificate
File: files of client certification
Password: input password for the secret key
File: select secret files
- Necessity of ID/password and each certification in the 802.1x authentication.
EAP format
User name
Necessity (○:necessary, ×: not necessary, △: others)
Certification
Route
Client
Password
Password
certification
certification
Secret key
EAP-TLS
○
×
○
○
○
○
EAP-PEAP
EAP-LEAP
○
○
○
○
×
×
○
×
×
×
×
×
EAP-TTLS
○
○
×
○
×
×
EAP-FAST
○
○
×
○
×
×
52
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.
When using Port 9100, the printer returns only status return data and the printer operation setting request data .
Using both 2 port connection and 1 port connection at the same time is not available.
Each socket cannot connect to multiple sessions at the same time.
LPR is available for sending print data in addition to socket. During connecting LPR, connecting to print data port (Port
1024 or Port 9100) with socket communication is not available.
2 ports connection with Port 1025 and Port 9100 is not available. Please use them as 1 port connection.
1) Printing with 2 ports connection/Socket (Status 4)
Print data Port 1024
Host
Return data Port 1025
Printer
2) Printing with 1 port connection/Socket (Status 4)
Host
Print data, return data
Printer
Port 9100
3) Printing with 1 port connection/Socket (Status 3 return)
Host
Print data, return data
Printer
Port 1024 or Port 9100
4) Printing with LPR
Print Data LPR
Host
Printer
Return data
Port1025
53
7.7.1 Port Number
(1)
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).
No.
Server function
Port number
Note
1
HTTP
80
2
LPD
515
Over 1024 is recommended for the port number.
(2)
Can not be used as the print port
Can not be used as the print port
Socket error occurring
The port for Socket connection will be selected from the port numbers specified at Port 1024/Port 1025/Port
9100depending on the communication protocol (see “6.12 Socket communication”). If an error occurs during the socket
creation process, the socket communication cannot be used.
<Status 3>
No.
Port 1024
Port 1025
Port 9100
Available port
1
×
○
○
Port 9100
2
○
×
○
Port 1024, Port 9100
3
○
○
×
Port 1024
4
×
○
×
None
5
○
×
×
Port 1024
6
×
×
○
Port 9100
7
○
○
○
Port 1024, Port 9100
[○: Success, ×: Error]
* Port 1025 is not used. Even if port 1025 has an error, it doesn’t affect other valid port.
<Status 4>
No.
Port 1024
Port 1025
Port 9100
Available port
1
×
○
○
Port 9100
2
○
×
○
Port 9100
3
○
○
×
Port 1024, Port 1025
4
×
○
×
None
5
○
×
×
None
6
×
×
○
Port 9100
7
○
○
○
Port 1024, Port 1025, Port 9100
[○: Success, ×: Error]
* Port 1024 and port 1025 are used in pair. If either of port has an error, you cannot use both
ports.
54
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
LISTEN
CONNECT
(Port1024、Port1025)
ACCEPT
CONNECT success
Print data
(Port1024)
Print
Status request
(Port1024)
Printer status
(Port1025)
Print data
(Port1024)
Print
CLOSE
(Port1024、Port1025)
CONNECT END
CLOSE
LISTEN
55
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
(Port1024 or Port9100)
CONNECT END
CLOSE
LISTEN
56
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.
The printer returns the printer status by receiving the status request command sent from the host.
(2) Status 3, Status 5/ENQ response mode (1 port connection)
The printer uses port 1024 for print data port and status return, or uses port 9100 for both print data port and
status return.
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 sent from the host.
Printer driver cannot be used for label printing while using Status 3. Also, the printer setting tool cannot be used.
The switching status mode is available by changing the setting of the communication protocol and the printer status
reply timing in the interface mode of the printer. Type of status mode and the setting items in the interface setting mode
is as follows.
Setting items in the interface setting mode
Communication Protocol
Printer status reply timing
(PROTOCOL)
(REPLY TIMING)
Type of status mode
1 port or 2 port connection
ENQ response mode
Status 4 (STATUS4)
ENQ
1 port connection
ENQ response mode
Status 3 (STATUS3)
-
2) Status return data format
(1) 2 port connection (Status 4 return)
Number of send
ENQ
STX
1 byte
05H
bytes
ID
1 bytes
02H
Status
numbe
1 byte
Remaining
JOB
ETX
1 byte
03H
16 bytes
(Total: 32 bytes)
print
name
Please refer to the "2.2.3 Return status of Status 4" for the status contents.
(2) 1 port connection (Status 5 return)
STX
1 byte
02H
Specified item No.
5 bytes
Specified item
Status
2 bytes
Currently processed
item
5 bytes
Currently processed
item Status
2 bytes
Currently processed
item Number of
print
6 bytes
Please refer to the "2.2.4 Return status of Status 5" for the status contents.
(Total: 22 bytes)
(3) 1 port connection (Status 3 return)
STX
ID
Status
Remaining
ETX
1 byte
03H
Please refer to the "2.2.2 Return status of Status 3" for the status contents.
1 byte
02H
numb
1 byte
print
57
ETX
03H
1 byte
(Total: 11 bytes)
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,
or Port9100)
CONNECT SUCCESS
Connection
ACCEPT
Status request
(Port1024, Port9100)
(ENQ "05H")
CLOSE
(Port1024, Port1025
or Port9100)
CONNECT END
The latest printer status
Printer status
(Port1025、Port9100)
,
CLOSE
LISTEN
58
(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)
CONNECT SUCCESS
Connection
ACCEPT
Status request
(Port 1024 or Port 9100)
(ENQ "05H")
The latest printer status
Printer status
(Port 1024 or Port 9100)
CLOSE
(Port1024 or Port9100)
CONNECT END
CLOSE
LISTEN
59
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.
* Obtaining IP address via "ARP-s" and ping is not available.
Printer power up
NO
DHCP ENABLE?
YES
DHCP process
NO
DHCP success
YES
The printer operates with
the IP address, netmask,
and gateway acquired by
DHCP.
The printer operates with
the IP address, netmask
and gateway set at the
printer.
Finish
60
7.11 Note
7.11.1 Common to LAN/Wireless LAN interface
1)
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. If the time interval after closing the port is too short, it may cause double connection. Double connection
means that the connection request "CONNECT" is sent to the port (Port 1024, Port 1025 or Port 9100) already
connected (CONNECT (Socket OPEN)). In this case, this connection request will be rejected "Socket CLOSE".
When receiving request of double connection, the printer responds to the request for disconnection (Socket
CLOSE).
7.11.2 Wireless LAN Interface
1)
Communication distance and transmission speed between the host and the printer(wireless LAN board) varies
depending on the wireless LAN operation at the used environment.
2)
It is recommended to use the printer while the field intensity is more than "Middle" when using with the
Infrastructure mode.
3)
Communication data may be lost when wireless LAN environment is not adequate due to mobile use of the
printer or ambient conditions.
4)
Please set the frequency of channels in each group are different for more than "5 channels" when multiple
wireless LAN network groups are neighboring.
Example) When the channel of the group 1 is "1", set the channel of the group 2 for "6" or later.
7.11.3 LAN Interface
1)
Connecting and disconnecting LAN cable while the printer is connecting to the PC may result in communication
failure. Please avoid connecting or disconnecting the cable while the printer is ON. In case of communication
failure, restart the printer.
61
8 Bluetooth
Bluetooth interface of the printer complies with Bluetooth Ver.2.0 standard.
8.1 Basic Specifications
Standards
Item
Description
Bluetooth Ver. 2.1+EDR Power Class 2
Communication distance
Used profile
Operation mode
5m (at the standard measurement environment)
Serial Port Profile(SPP)
Slave mode
Service function
(Enabled when connected to
Bluetooth interface)
Bluetooth setting information print
Prints the Bluetooth setting information on the test printing.
Bluetooth setting information default
The Bluetooth setting information is defaulted by setting tool
PIN code
1 to 16 ASCII code specification (20H, 21H, 23H - 7EH)
Default Value: 0000
sniff
ASCII (7 Bits), Graphic (8 Bits)
R1
Save the link key for 1 devices
Default = 20 seconds (configurable at the host)
Power Save Mode
Code
SR mode value
Pairing
Supervision timeout
*1
*1 A method that connects 2 Bluetooth supported devices by establishing virtual serial port is defined.
[Supplemental explanation]
(1) The printer operates with the slave mode. Connect the printer by specifying printer's Bluetooth Device Address (BD
address) from the master.
(2) Connection may be failed when the PIN code of the master is different from the above settings. When the
connection is failed, check PIN code by test print, match the setting of the master and reconnect.
(3) When the link with Bluetooth is lost (out of area), disconnected from the printer after the supervision timeout time.
(4) The printer will be buffer over when the receive buffer is full. Please send print data while checking the receive buffer
status by sending ENQ.
8.2 Bluetooth Settings
The followings are Bluetooth setting items. These are configurable by the commands. Refer to the "Command
Specification" for more details.
(1) PIN code (alphanumeric characters and symbols (20H, 21H, 23H-7EH) 1-16 digits)
PIN code (Personal Identification Number, pass key)is an authentication password in 1-16 digits used for printer
identification. Link key will be generated automatically after PIN code authentication and pairing start in the printer.
Once the link key is generated, there is no need for PIN code authentication. The printer can be connected without
checking the PIN code during the pairing.
(2) Device name (alphanumeric characters and symbols (20H, 21H, 23H-7EH) 1-16 digits)
By setting device name, the name can be displayed at the connected device and the printer can be identified.
Note) Only the first start-up after setting this command will process the new settings for Wireless LAN
interface. Do not power off the printer when the printer is rebooted until the printer starts up normally.
62
8.3 Transmission Sequence
8.3.1 Normal End
8.3.1.1 Status 4
Host
Connected
(CONNECT)
Printer
ENQ
Status
(Status request command)
ID Number = [Space]
Status = "Waiting for receive"
Remaining print number = [000000]
Job name = [Space]
Print command (STX-ETX)
ID number = [05]
Print number = 100
Job name = [SATO]
ACK
(Printer status: no error)
ENQ
(Status request command)
Status
ENQ
Status
Receive/Analysis/Edit
ID number = [05]
Status = "Editing"
Remaining print number = [000000]
Job name = [SATO]
Print operation
(Status request command)
ID number = [05]
Status = "Printing"
Remaining print number = [000100]
Job name = [SATO]
Print the 1st label
Print command (STX-ETX)
Print the 2nd label
ID number = [06]
Print number = 50
Job name = [SATO]
ACK
(Printer status: no error)
ENQ
(Status request command)
Status
ENQ
Status
Receive/Analysis/Edit
Print the 3rd label
Paper end error
ID number = [05]
Status = Paper end
Remaining print number = [000098]
Job name = [SATO]
Error release
(press the LINE key)
(Status request command)
Print the 3rd label
ID number = [05]
Status = "Printing"
Remaining print number = [000098]
Job name = [SATO]
~
~
~~
ENQ
Status
ENQ
Status
~
~
(Status request command)
ID number = [05]
Status = "Printing"
Remaining print number = [000001]
Job name = [SATO]
Print the 100th label
(Status request command)
ID number = [06]
Status = "Printing"
Remaining print number = [000050]
Job name = [SATO]
Disconnected
(DISCONNECT)
63
Print the 1st label
8.3.1.2 Status 3
Printer
Host
Connected
(CONNECT)
(Status request command)
ENQ
ID Number = [Space]
Status = "Waiting for receive"
Remaining print number = [000000]
Status
Print command (STX-ETX )
ID number = [05]
Print number = 100
ACK
(Printer status: no error)
ENQ
(Status request command)
Receive/Analysis/Edit
ID number = [05]
Status = "Editing"
Remaining print number = [000000]
Status
Print operation
(Status request command)
ENQ
ID number = [05]
Status = "Printing"
Remaining print number = [000100]
Status
Print the 1st label
Print command (STX-ETX )
Print the 2nd label
ID number = [06]
Print number = 50
ACK
(Printer status: no error)
ENQ
(Status request command)
Print the 3rd label
Paper end error
Error release
(press the LINE key)
ID number = [05]
Status = Paper end
Remaining print number = [000098]
Status
Print the 3rd label
(Status request command)
ENQ
Status
~~
ENQ
Receive/Analysis/Edit
ID number = [05]
Status = "Printing"
Remaining print number = [000098]
~
~
(Status request command)
~
~
Print the 100th label
Status
ENQ
Status
ID number = [05]
Status = "Printing"
Remaining print number = [000001]
(Status request command)
ID number = [06]
Status = "Printing"
Remaining print number = [000050]
Disconnected
(DISCONNECT)
64
Print the 1st label
8.3.2 Disconnection during Print Data Sending
[Note]
1. The print data may be lost when Bluetooth communication is disconnected during the print data sending.
Please resend the data after printer power off and on.
8.3.2.1 Common to Status 3 and 4
Connected
(CONNECT)
Print command (STX-ETX)
ID number = [12]
Print number = 50
Job name = [SATO]
×
Receive/Analysis/Edit
Disconnected
or communication
failure
[Note]
1.
The print data may be lost when Bluetooth communication is disconnected during the print data sending.
Please resend the data after printer power off and on or resend the data after the print data is canceled.
8.3.3 Disconnection during Status Sending after Print Data Reception
8.3.3.1 Common to status 3 and 4
Connected
(CONNECT)
Print command (STX-ETX)
ID number = [12]
Print number = 50
Job name = [SATO]
×
Receive/Analysis/Edit
ACK
Print operation
Disconnected
or communication
failure
[Note]
1. When there is no ACK returned, stop the transmission as it appears that some sort of communication
interference is occurring.
2. ACK return may be lost when Bluetooth is disconnected before the printer returning ACK.
65
8.3.4 State transition diagram matrix (at host)
8.3.4.1 Status 3
Event A
Connect
response
(CONNECT)
B
c
Disconnect response Print request
(DISCONNECT)
D
Return status receive
E
ACK/NAK receive
F
Timeout
-
-
-
-
-
-
-
Abnormal end
G
H
Send connect request Send disconnect
(CONNECT)
request
(DISCONNECT)
Status
(1) Neutral
-
-
(2) Waiting for
connection
Connection
complete
Disconnected
-> (1)
(1) Timer register
(2) Connect request
(CONNECT)
-> (2)
Disconnected
-> (1)
(DISCONNECT)
-> (3)
(3) Connecting
-
(4) Return status Waiting for
response
(5) Waiting for
ACK
response
-
-> (1)
Disconnected
(1) Timer
-> (1) registration
(2) Status request
command send
-> (4)
Disconnected
(1) Timer release/Timer -> (1)
reregistration
(2) Normal printer status
Send the print data
-> (5)
(3) Normal printer status
-> (3)
Disconnected
Disconnected
(DISCONNECT)
-> (1)
(1) When not up to retry times
Send status request
command
-> (4)
(2) Retried until the retry
times
-> (1)
ACK/NAK receive
Disconnected
Timer release
(DISCONNECT)
-> (3)
-> (1)
-> (1)
Disconnected
(DISCONNECT)
-> (1)
Disconnected
(DISCONNECT)
-> (1)
Disconnected
(DISCONNECT)
[Note]
1. The same timer is used for waiting for connection, waiting for status return, and waiting for ACK response to be able to simplify the above matrix.
2. The printer cannot disconnect (send DISCONNECT) at the power off. Please set up time out process at the host.
3. Make sure to check the printer status by sending status request command (ENQ) before sending any print data because the printer cannot print during printer error.
4. When (5) Time out for ACK response occurred, assuming that the LINK has been disconnected, power off and on the printer and reconnect.
66
-> (1)
8.3.4.2 Status 4
Status
Event A
Connect
response
(CONNECT)
B
c
Disconnect response Print request
(DISCONNECT)
D
Return status receive
E
ACK/NAK receive
F
Timeout
-
-
-
-
-
-
-
Abnormal end
(1) Neutral
-
-
(2) Waiting for
connection
Connection
complete
Disconnected
-> (1)
G
H
Send connect request Send disconnect
(CONNECT)
request
(DISCONNECT)
(1) Timer registration (2) Connect request
(CONNECT)
-> (2)
Disconnected
-> (1)
(DISCONNECT)
-> (3)
(3) Connecting
-
(4) Return status Waiting for
response
(5) Waiting for
ACK
response
-
-> (1)
Disconnected
(1) Timer
-> (1) registration
(2) Status request
command send
-> (4)
Disconnected
(1) Timer release/Timer -> (1)
reregistration
(2) Normal printer status
Send the print data
-> (5)
(3) Normal printer status
-> (3)
Disconnected
-> (1)
Disconnected
(DISCONNECT)
-
Disconnected
(DISCONNECT)
-> (1)
-> (1)
(1) When not up to retry times
Send status request
command
-> (4)
(2) Retried until the retry
times
-> (1)
Disconnected
(DISCONNECT)
ACK/NAK receive
Disconnected
Timer release
(DISCONNECT)
-> (3)
-> (1)
Disconnected
(DISCONNECT)
-> (1)
[Note]
1. The same timer is used for waiting for connection, and waiting for status return, to be able to simplify the above matrix.
2. The printer cannot disconnect (send DISCONNECT) at the power off. Please set up time out process at the host.
3. Make sure to check the printer status by sending status request command (ENQ) before sending any print data because the printer cannot print during printer error.
4. When (5) Time out for ACK response occurred, assuming that the LINK has been disconnected, power off and on the printer and reconnect.
67
-> (1)
8.3.4.3 State transition diagram matrix (at printer)
Event A
Connect request
(CONNECT)
B
C
Disconnect request Print Data receiving
(DISCONNECT)
D
Print complete
E
Error
F
Error release
G
Power off
Ignore
-
Ignore
-
Power off
-> (4) -
Power off
-
Power off
Status
Receive connect
(1) Waiting for
connect request request
(CONNECT)
Ignore
-> (2)
(2) Connecting
Ignore
(3) Printing
Ignore
(4) Error
Ignore
Disconnect process Normal data receive
Ignore
(DISCONNECT)
ACK/NAK send
-> (3)
Abnormal data receive
-> (2)
Communication time out
Clear the received data
*1
-> (2)
Disconnect process Ignore
(DISCONNECT)
Disconnect process Ignore
(DISCONNECT)
Ignore
-> (2)
-> (4)
Ignore
Other than printing Power off
-> (2)
Printing
-> (3)
[Note]
1. When the link with Bluetooth is lost (out of area), disconnect from the printer after the supervision timeout time.
When the link between the host is lost, the printer request disconnection (DISCONNECT) after the supervision timeout time (default=20 sec (changeable from the host))
has passed.
2. It takes about 5 sec from the printer power on, installed Bluetooth module starting up to be the status of (1). Before the status of (1), it may not be connected.
3. Make sure to check the printer status by sending status request command (ENQ) before sending any print data because the printer cannot print during printer error.
68
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising