IFBD-HE0708 BE07 User’s Manual
3-11
3.1.5.2. Setting Information Acquisition Command
Code <GS> ‘0’ <NUL>
Hexadecimal 1D 30 00
Function This command will get the printer’s NIC setting information (discovery data).
This command is used by Star Micronics drivers and tools.
Procedures:
1) PC to printer
After connecting to TCP #22222, send the command, and wait for the response from the printer.
(2) Response printer to PC:
After the printer returns the NIC discovery data using the next response data format, it disconnects the connection.
Whendisconnected,theresponsefromthecomputercannotbeconrmed.
Format <GS> ‘0’ <NUL> n1 n2 [Discovery data]
Hexadecimal 1D 30 00 n1 n2 [Discovery data]
Parameter n1,n2:Discoverydatadatalength(n1*256+n2)
The following shows an example communication chart.
SYN
SYN ACK
ACK
<GS> ‘0’ <NUL>
<GS> ‘0’ <NUL> n1 n2 [Discovery Data]
FIN
FIN ACK
ACK
(1) TCP Connection Request
(2) Send Command
(3) Receive Request
(4) TCP Disconnection Respons
e
(1) Receive TCP Connection
(2) Return Discovery Data
(3) Disconnect TCP
Note: In the drawing, some portions such as the <ACK> packet have been omitted.