547
[DC2+PC] Printer device information acquisition
Command DC2 PC Parameter
Hexadecimal code <12>
16
<50>
16
<43>
16
None
Initial Value None
When turning off the power -
Valid range -
Printer operation in
progress
The command can be received even during the printer
operation.
When acquiring label
sensor information
Commands are not accepted while acquiring sensor
information. ([NAK] reply)
Valid range and term of
command
Error The command can be received even if an error is
occurring.
[Function]
This command returns the printer device information.
[Format]
DC2 (12H) + PC
[Return data format (normal)]
[STX]a...a,b...b:c...c[CR][LF](d...d:e...e[CR][LF]) ... [ETX]
[Return data]
Symbol Parameter name Valid range
a Total number of data byte
* This is the total number of bytes after parameter
b. The delimiting comma between parameters a
and b, and the ETX are not included.
Data size from the first device information
name up to before [ETX]
b(d) Device information name
* Text format
Refer to the printer device information list.
c(e) Device information data
* Text format
Refer to the printer device information list.
Data Example)
[STX]12345,MODEL: Model name[CR][LF]FW Ver:1.0.0[CR][LF]...[CR][LF] [ETX]
[Printer device information list]
No. Description Device information name Device information data
1 Model name MODEL M...M
M: Model name
2 Kernel version KERNEL Ver R...R
R: OS release number