crt 591 m001 protocol - lenh (1 byte) lenl (1 byte) cmt (1 byte) cm (1 byte) pm (1 byte) data (n...

Download CRT 591 M001 Protocol - LENH (1 byte) LENL (1 byte) CMT (1 byte) CM (1 byte) PM (1 byte) DATA (N bytes)

Post on 06-Jul-2020

2 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • Model No. CRT-591-M SPECIFICATION Date 2013/07/02 Ver. 1.0

    Communication Protocol Page 1/50

    CRT-591-M001 communication protocol

    Catalog

    1. SERIAL PORT CONTROL SPECIFICATION:..................................................................................................... 5

    1.1.1 Communication format...................................................................................................................................... 5 1.1.2 Communication control method ........................................................................................................................ 5

    1.2 COMMUNICATION FORMAT AND CONTROL CHARACTER ............................................................................................. 5 1.2.1 Send command package format......................................................................................................................... 5 1.2.2 Successful responsive package format and character ....................................................................................... 6 1.2.3 Failed responsive package format and character ............................................................................................. 6

    1.3 ADDRESS SET FOR MULTI-UNITS COMMUNICATION:................................................................................................. 7 1.4 COMMUNICATION METHOD:....................................................................................................................................... 8

    1.4.1 Ordinary Operation : (command and response)................................................................................................ 8 1.4.2 Irregular operation : (command and response) ................................................................................................ 8

    2. COMMAND LIST:(INCLUDING STATUS AND ERROR CODE) ................................................................. 10

    2.1.1 Command list................................................................................................................................................... 10 2.1.2 Status code information format: ................................................................................................................... 12

    2.2 E1, E0 ERROR CODE TABLE ................................................................................................................................... 12

    3. COMMAND SPECIFICATION: .............................................................................................................................. 15

    3.1 CARD DISPENSER OPERATION .................................................................................................................................. 15 3.1.1 Reset (Initialization) ........................................................................................................................................ 15 3.1.2 Status Request Command ................................................................................................................................ 15 3.1.3 Move card: ...................................................................................................................................................... 16 3.1.4 Entry Command: ............................................................................................................................................. 16

    3.2 CPU CARD OPERATION: ........................................................................................................................................... 17 3.2.1 CPU Card Reset (Activate): ............................................................................................................................ 17 3.2.2 CPU Card Power off:...................................................................................................................................... 18 3.2.3 Inquire CPU Card Status................................................................................................................................. 18 3.2.4 T=0 protocol CPU Card APDU Operation .................................................................................................... 18 3.2.5 T=1 Protocol CPU Card APDU Operation .................................................................................................... 19 3.2.6 CPU Card Warm Reset .................................................................................................................................... 20 3.2.7 T=1, T=0 CPU Card Protocol Automatic Communication............................................................................. 21

    3.3 SAM(SECURE APPLICATION MODULE) CONTROL COMMAND ................................................................................. 22 3.3.1 Active SAM Command:.................................................................................................................................... 22 3.3.2 Deactivate SAM Command.............................................................................................................................. 22 3.3.3 Inquire SAM Status Command ........................................................................................................................ 23 3.3.4 SAM Communication T=0............................................................................................................................... 23 3.3.5 SAM Communication T=1............................................................................................................................... 24 3.3.6 SAM Warm Reset............................................................................................................................................. 24 3.3.7 Auto-Check SAM Card T=0/T=1 Protocol ..................................................................................................... 25

  • Model No. CRT-591-M SPECIFICATION Date 2013/07/02 Ver. 1.0

    Communication Protocol Page 2/50

    3.3.8 Select SAM....................................................................................................................................................... 25 3.4 SLE4442/4428 CARD OPERATION ............................................................................................................................ 26

    3.4.1 SLE4442/4428 card reset (activation): ........................................................................................................... 26 3.4.2 Deactivate SLE4442/4428 :............................................................................................................................. 26 3.4.3 Inquire status of SLE4442/4428:..................................................................................................................... 26 3.4.4 SLE4442 Control:............................................................................................................................................ 27

    3.4.4.1 Data read from main memory on SLE4442: .............................................................................................................27 3.4.4.2 Data read from protection memory on SLE4442: .....................................................................................................27 3.4.4.3 Data read from security memory on SLE4442.............................................................................................................28 3.4.4.4 Data write main memory on SLE4442: .......................................................................................................................28 3.4.4.5 Data write to security memory on SLE4442:...............................................................................................................30 3.4.4.6 Verification data present to SLE4428: .........................................................................................................................30

    3.4.5 SLE4428 control:.......................................................................................................................................... 31 3.4.5.1 Data Reading of main-memory of SLE4428:............................................................................................................31 3.4.5.2 Reading of protection-bit of SLE4428: .....................................................................................................................32 3.4.5.3 Data writing to main-memory of SLE4428:..............................................................................................................32 3.4.5.4 Verification of SLE4428 with protecting:.................................................................................................................33 3.4.5.5 Written with protection-bit:.......................................................................................................................................34 3.4.5.6 Verification of password present to SLE4428: ............................................................................................................34

    3.5 I2C MEMORY CARD OPERATION: .......................................................................................................................... 35 3.5.1 Activate I2C memory card:........................................................................................................................... 35 3.5.2 Deactivate I2C memory card:....................................................................................................................... 35 3.5.3 Inquire Status of I2C memory card ...........................................................................................................