[DC2+PC] Printer Device Information Acquisition [SX]

CL4-SXR CL6-SXR

HEX code

DC2 <12>16
PC

<50>16<43>16

Parameter

None

Default value

None

Valid range and term of command [CL4-SXR/CL6-SXR]

When turning off the power switch -
Valid range -
Printer operation in progress The command can be received even during printing operation.
Error The command can be received even if an error is occurring.
When the settings screen is displayed The command can be received when the settings screen is displayed.
Unauthentication Commands cannot be received even if authentication is not in progress using the [DC2+PS] command. ([NAK] return)

Function

This command returns the printer device information.

Format

[DC2]PC

Return data format (normal)

[STX]a...a,b...b:c...c[CR][LF](d...d:e...e[CR][LF]) ... [ETX]

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. Meaning Device Information Name Device Information Data
1 Model name MODEL

M…M

M: Model name

2 Printer serial PR_SN

XXXXXXXX

X:Alphanumeric

3 Kernel version KERNEL Ver

R…R

R: OS release number

4 Main firmware version MAIN FW Ver

V…V

V: Version

5 Main firmware creation date MAIN FW Date

YYYYMMDD_HHMMSS TTT

T: Time zone

6 Printer module
Main firmware
version
MODULE MAIN FW Ver

VV

V: Version

7 CONT board FPGA version CONT FPGA Ver

VV

V: Version

8 CONT board PLD version CONT PLD Ver

VV

V: Version

9 CONT board PCB revision CONT PCB REV

VV

V: Version

10 Engine board FPGA version P-ENGINE FPGA Ver

VV

V: Version

11 LAN MAC address LAN MAC

XX:XX:XX:XX:XX:XX

X: Alphanumeric

12 WLAN MAC address WLAN MAC

XX:XX:XX:XX:XX:XX

X: Alphanumeric

13 WLAN RSSI WLAN_RSSI

Numeric specified (unit: dBm)

If AP is not connected, specify "-"

14 BD address BD

XXXXXXXX

X: Alphanumeric

15 LTE module firmware version LTE MODULE FW Ver

VV

V: Version

16 LTE module IMEI number LTE IMEI

XXXXXXXX

X: Alphanumeric

17 RFID UHF module type RFID UHF MODULE TYPE

XXXXXXXX

X: Alphanumeric

18 RFID UHF module firmware version RFID UHF MODULE FW Ver

VV

V: Version

19 RFID HF module type RFID HF MODULE TYPE

XXXXXXXX

X: Alphanumeric

20 RFID HF module firmware version RFID HF MODULE FW Ver

VV

V: Version

21 Head counter 1 HEAD COUNT1 Numeric specified (unit: mm)
22 Head counter 2 HEAD COUNT2 Numeric specified (unit: mm)
23 Head counter 3 HEAD COUNT3 Numeric specified (unit: mm)
24 Lifecounter LIFE COUNT Numeric specified (unit: mm)
25 Cutter counter CUT COUNT Numeric specified (unit: count)
26 Dispense counter DISP COUNT Numeric specified (unit: mm)
27 User area free size MEM_FROM

Numeric specified (unit: byte)

statvfs() to obtain the statistics of the file system mounted on /mnt/data/, and calculate the free size in bytes as follows:

"Number of blocks freed for non-privileged users × fragment size"

28 USB memory free size
(First USB memory found)
MEM_USB1 Numeric specified (unit: byte)
29 USB memory free size
(Second USB memory found)
MEM_USB2 Numeric specified (unit: byte)
30 SBPL form overlay SLOT1
Registration count, registration byte count
SBPL_FOL_SLOT1

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

31 SBPL form overlay SLOT1
Registration No.
SBPL_FOL_SLOT1_No

XXX(,XXX,XXX・・・)

X: Registration No., repeat for each registration No.

*If there is no registration count, the value is empty.

32 SBPL format SLOT1
Registration count, registration byte count
SBPL_FMT_SLOT1

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

33 SBPL format SLOT1
Registration No.
SBPL_FMT_SLOT1_No

XXX(,XXX,XXX・・・)

X: Registration No., repeat for each registration No.

*If there is no registration count, the value is empty.

34 SBPL graphic SLOT1
Registration count, registration byte count
SBPL_GRA_SLOT1

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

35 SBPL graphic SLOT1
Registration No.
SBPL_GRA_SLOT1_No

XXX(,XXX,XXX・・・)

X: Registration No., repeat for each registration No.

*If there is no registration count, the value is empty.

36 SBPL BMP file SLOT1
Registration count, registration byte count
SBPL_BMP_SLOT1

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

37 SBPL BMP file SLOT1
Registration No.
SBPL_BMP_SLOT1_No

XXX(,XXX,XXX・・・)

X: Registration No., repeat for each registration No.

*If there is no registration count, the value is empty.

38 SBPL PCX file SLOT1
Registration count, registration byte count
SBPL_PCX_SLOT1

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

39 SBPL PCX file SLOT1
Registration No.
SBPL_PCX_SLOT1_No

XXX(,XXX,XXX・・・)

X: Registration No., repeat for each registration No.

*If there is no registration count, the value is empty.

40 SBPL external character SLOT1
Registration count, registration byte count
SBPL_EXC_SLOT1

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

41 SBPL external character SLOT1
Registration No.
SBPL_EXC_SLOT1_No

XXX(,XXX,XXX・・・)

X: Registration No., repeat for each registration No.

*If there is no registration count, the value is empty.

42 SBPL TrueType font SLOT1
Registration count, registration byte count
SBPL_TTF_SLOT1

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

43 SBPL TrueType font SLOT1
Registration No.
SBPL_TTF_SLOT1_No

XXX(,XXX,XXX・・・)

X: Registration No., repeat for each registration No.

*If there is no registration count, the value is empty.

44 SBPL form overlay SLOT2
Registration count, registration byte count
SBPL_FOL_SLOT2

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

45 SBPL form overlay SLOT2
Registration No.
SBPL_FOL_SLOT2_No

XXX(,XXX,XXX・・・)

X: Registration No., repeat for each registration No.

*If there is no registration count, the value is empty.

46 SBPL format SLOT2
Registration count, registration byte count
SBPL_FMT_SLOT2

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

47 SBPL format SLOT2
Registration No.
SBPL_FMT_SLOT2_No

XXX(,XXX,XXX・・・)

X: Registration No., repeat for each registration No.

*If there is no registration count, the value is empty.

48 SBPL graphic SLOT2
Registration count, registration byte count
SBPL_GRA_SLOT2

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

49 SBPL graphic SLOT2
Registration No.
SBPL_GRA_SLOT2_No

XXX(,XXX,XXX・・・)

X: Registration No., repeat for each registration No.

*If there is no registration count, the value is empty.

50 SBPL BMP file SLOT2
Registration count, registration byte count
SBPL_BMP_SLOT2

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

51 SBPL BMP file SLOT2
Registration No.
SBPL_BMP_SLOT2_No

XXX(,XXX,XXX・・・)

X: Registration No., repeat for each registration No.

*If there is no registration count, the value is empty.

52 SBPL PCX file SLOT2
Registration count, registration byte count
SBPL_PCX_SLOT2

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

53 SBPL PCX file SLOT2
Registration No.
SBPL_PCX_SLOT2_No

XXX(,XXX,XXX・・・)

X: Registration No., repeat for each registration No.

*If there is no registration count, the value is empty.

54 SBPL external character SLOT2
Registration count, registration byte count
SBPL_EXC_SLOT2

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

56 SBPL TrueType font SLOT2
Registration count, registration byte count
SBPL_TTF_SLOT2

XXXX,YYYYYYYYYY

X: Registration count

Y: Registration byte count

57 SBPL TrueType font SLOT2
Registration No.
SBPL_TTF_SLOT2_No

XXX(,XXX,XXX・・・)

X: Registration No., repeat for each registration No.

*If there is no registration count, the value is empty.

Precautions during use

  1. The printer device information update cycle must be five seconds or longer. When sending this command in continuation, be sure to set an interval of five seconds or more.
  2. When a USB memory is used, only the available space of the memory connected first is returned even when a connection is established via the HUB.
  3. It takes more than one second to create the return data immediately after the startup in order to obtain the checksum of the module.
  4. It takes more time to create the return data when there are a lot of registrations by SBPL command.
    (It takes approx. 1.5 seconds to register 10,000 data.)