AN1949 STMicroelectronics, AN1949 Datasheet - Page 11

no-image

AN1949

Manufacturer Part Number
AN1949
Description
RFID Reader using STMicroelectronics PSD MCU and CRX14 Coupler to Implement a China National ID Card Reader
Manufacturer
STMicroelectronics
Datasheet
Communication Protocol between PC and µPSD
<Need to add a few sentences to explain about this custom protocol, such as: is it same for RS-232 and
USB? What is data transfer rate?>
Table 1. Read processing: Terminal to PC (Read Data Send) Data Frame Format
Table 2. Write processing: PC to Terminal to PC (Write Data Send) Data Frame Format
Table 3. Terminal to PC (Acknowledgement) Data Frame Format
Note: 55h indicates that the write was successful; AAh indicates that there was a write error.
NATIONAL ID CARD DEMONSTRATION STRUCTURE
For this demonstration, the National ID card uses SRIX4K tag, from STMicroelectronics. It involves the
storage of 147 bytes in 37 blocks, mapped in the way described next. In fact, the SRIX4K tag provides
121 blocks (484 bytes) to the user.
Block 7-9 (11 Bytes)
Table 4.
Block 10-13 (16 Bytes)
Block 14-23 (40 Bytes)
Block 24-43 (80 Bytes)
Status (55h or AAh)
Gender
Command (20h)
Command (21h)
ID number (BCD code): 9 bytes
Gender and Nation: 1 byte
Effective period (BCD code): 1 byte
Name (Unicode): at most 8 bytes (4 characters) (fixed)
Birth Date (BCD code): 4 bytes
Issue Date (BCD code): 4 bytes
Issue Department (Unicode): at most 40 bytes (fixed)
Address (Unicode): at most 80 bytes (40 characters) (fixed)
7
Gender: 1 indicates male; 0 indicates female.
Nation Code: an integer from 0 to 55, standing for 1 of 56 nations.
6
Len (94h)
Len (94h)
5
4
Data[0] to Data[m]
Data[0] to Data[m]
3
Nation Code
AN1949 - APPLICATION NOTE
2
1
CRC16
CRC16
0
11/22

Related parts for AN1949