[DC2+PK] RFID Data Log Return Request (ISO/IEC15693) [SX]
HEX code
| DC2 | <12>16 |
|---|---|
| PK |
<50>16<4B>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 cannot be received during printing operation. ([NAK] return) |
| Error | The command cannot be received during error occurrence. ([NAK] return) |
| When the settings screen is displayed | The command can be received when the settings screen is displayed. |
| Unauthentication | Commands can be received even if authentication is not in progress using the [DC2+PS] command. |
Function
Returns the status of RFID tag write by <RK> command and UID.
Format
[DC2]PK
[DC2]PK return data format (normal)
[STX]a…a,b…b,cccccccccccc,d,e,f…f(g…g,hhhhhhhhhhhh,i,j,k…k)[ETX]
f…f(k…k)内のフォーマット
aa:bb…bb[CR][LF]
Return data
| Symbol | Parameter name | Valid range | ||||||
|---|---|---|---|---|---|---|---|---|
| a |
Total number of data byte * This is the total number of bytes after parameter b. The delimiter comma between parameters a and b, and ETX are not included. |
Data size from the first write result status to before [ETX] |
||||||
| b(g...) |
Return data byte count * This is the total number of bytes after parameter c. The delimiter comma between parameters b and c, and ETX are not included. |
Data size from parameter c to e |
||||||
| c(h...) | Issued date and time |
YYYYMMDDHHMM |
||||||
| d(i...) |
Write result status |
0: Write failure 1: Write success * Text format. |
||||||
| e(j...) | Error symbol |
N: No error D: UID read error A: All error * Text format. |
||||||
| f(k...) | UID return data
|
|||||||
Return data format (when a command error occurs)
[NAK]<15>16
Exception processing
| Parameter name | Exception condition: A value outside the range is specified |
Exception condition: The specified size and received size are different |
|---|---|---|
| Identifier | Command error | Identifier |
| Terminology | Description |
|---|---|
| Command error | The data received after a command error is determined is not considered as a parameter of this command. |
| Invalid receive data | The data corresponding to Byte 2 and thereafter of the identifier is ignored. |
Coding Sample
<A>
<RU>01
<RK>2,D13,4912345678904
<XM>4912345678904
<Z>
Sample of status reply
- When a tag with UID E0123456789ABCDE is used for writing, the returned data will be:
- Write succeeded (UID read succeeded)
- Write succeeded (UID read failed)
- Write failed (UID read failed)
[STX]41,38,202402281715,1,N,UI:E0123456789ABCDE[CR][LF][ETX][STX]25,22,202402281715,1,U,UI:[CR][LF][ETX][STX]25,22,202402281715,0,U,UI:[CR][LF][ETX] - When the results of two writes are returned:
- Write succeeded (UID read succeeded)
[STX]82,38,202402281715,1,N,UI:E0123456789ABCDE[CR][LF] 38,202402281716,1,N,UI:E0123456789ABCDF[CR][LF][ETX] - When no write was performed before sending [DC2]PK, the returned data will be:
- All errors
[STX]6,0,A, [CR][LF][ETX]
Supplemental explanation
- The write result & UID are returned when [DC2]PK is received after RFID writing has been performed.
- Since data writing and UID reading are performed separately, if UID reading fails even after a successful write, the data will be returned as empty.
- If only code write is performed without accompanying print data, no return data containing logs will be generated.
- The log will be deleted after the data is returned.