[DC2+PK] RFID Data Log Return Request (FeliCa) [SX]

CL4-SXR CL6-SXR

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

The <IP0> command returns the results of writing to the RFID tag, as well as the IDm+PMm+ID block 64-digit hexadecimal sequence.

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]


Format within f...f(k...k)

aa:bb…bb[CR][LF]

Return data

Symbol Parameter name Valid range
a

Total data byte count

* 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...)

Returned 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 of parameters c to e

c(h...) Issue date and time

YYYYMMDDHHMM

d(i...)

Write result status

0: Write failed

1: Write succeeded

* Text format.

e(j...) Error symbol

N: No error

I: IDm read error

A: All errors

* Text format.

f(k...) IDm returned data
aa

Memory specification

DM: IDm + PMm + ID block

bb

Data

* Text format

Up to 64 characters

IDm/PMm/ID-block return format

Returns a 64-digit hexadecimal numeric block as a result of IDm+PMm+ID block

IDm (16 digits) PMm (16 digits) ID block (32 digits)
03FEFFE0536C92A8 03014B024F4993FF 3031323334353637 FFE0123456789ABC

The above is just a sample.


Sample data

DM: 03FEFFE0536C92A803014B024F4993FF3031323334353637FFE0123456789ABC
                    

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>
                    

Some possible samples of [DC2]PK response

  1. When a tag with IDm 03FEFFE0536C92A8 is used for writing, the returned data will be:
    • Write succeeded (IDm read succeeded)
    • 
      [STX]89,86,202402281715,1,N,
      DM:03FEFFE0536C92A803014B024F4993FF3031323334353637FFE0123456789ABC[CR][LF][ETX]
                                      
    • Write succeeded (IDm read failed)
    • [STX]25,22,202402281715,1,I,DM:[CR][LF][ETX]
    • Write failed (IDm read failed)
    • [STX]25,22,202402281715,0,I,DM:[CR][LF][ETX]
  2. When the results of two writes are returned:
    • Write succeeded (IDm read succeeded)
    • 
      [STX]178,86,202402281715,1,N,
      DM:03FEFFE0536C92A803014B024F4993FF3031323334353637FFE0123456789ABC[CR][LF]86,
      202402281716,1,N,
      DM:03FEFFE0536C92A903014B024F4993FF3031323334353637FFE0123456789ABD[CR][LF][ETX]
                                      
  3. 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

  1. The write result & IDm are returned when [DC2]PK is received after RFID writing has been performed.
  2. Since data writing and IDm reading are performed separately, if IDm reading fails even after a successful write, the data will be returned as empty.
  3. If only code write is performed without accompanying print data, no return data containing logs will be generated.
  4. The log will be deleted after the data is returned.