background image

AET63 Reference Manual                                                                                    

version 1.8 September 2006 

 Advanced Card Systems Ltd. 

Page 10 of 29

 

 

byte 

4  

01 

H

  

91 

H

 

03 

H

 

11 

H

 

22 

H

 

33 

H

 

93

 H

 

 

7.1.2

 

Extended Command   

A  command  consists  of  six  protocol  bytes  and  a  variable  number  of  data  bytes  and  has  the  following 

structure: 

byte 

6 ... N+5  (N>0) 

N+6 

Header  

Instruction 

Data Length = N 

Data 

Checksum      

 

 

FF

H

 

Data Length N 

 

 

 

Header

 

 01

H

  to indicate the start of a standard command. 

 

02

H

    to  indicate  the  start  of  an  encrypted  command  (support  from  firmware  0.67  onwards, 

only used in PTVerifySC

(*)

 and PTVerifySCAll

(*) 

Instruction 

 

The instruction code of the command to be carried out by the AET63. 

Data Length

 

 Number  of  subsequent  data  bytes,  and  is  encoded  in  3  bytes.    The  first  byte  is  FF

H

.    The 

second byte and the third byte represent data length N. 

Data

 

 Data contents of the command. 

 

 For a READ command, for example, the data bytes would specify the start address and the 

number of bytes to be read. For a WRITE command, the data bytes would specify the start 

address and the data to be written to the card. 

 

 The  data  bytes  can  represent  values  to  be  written  to  a  card  and/or  command  parameters 

such as an address, a counter, etc.  

Checksum

 

The  checksum  is  computed  by  XORing  all  command  bytes  including  header,  instruction, 

data length and all data bytes. 

 

Note (*) :  

Please  refer  to  “BioTRUSTKey  API  Manual.doc”  for  the  descriptions  of  PTVerifySC  and 

PTVerifySCAll. 

 

7.2  Response 

The response from the AET63 to any command depends on whether the command has been received by the 

reader without error (e.g., checksum error). 

 

7.2.1

 

No transmission error with normal response (Length < 255 bytes) 

The  response  by  the  AET63  to  a  correctly  received  command  consists  of  three  protocol  bytes,  two  status 

bytes and a variable number of data bytes and has the following structure: 

 

Содержание AET63 BioTRUSTKey

Страница 1: ...n 1 8 09 2006 Unit 1008 10th Floor Hongkong International Trade and Exhibition Centre 1 Trademart Drive Kowloon Bay Hong Kong Tel 852 2796 7873 Fax 852 2796 1286 Email info acs com hk Website www acs...

Страница 2: ...transmission error with normal response Length 255 bytes 10 7 2 2 No transmission error with extended response 12 7 2 3 Transmission error 12 7 3 Card Status Message 13 7 4 Transmission Protocol 13 8...

Страница 3: ...AET63 Reference Manual version 1 8 September 2006 Advanced Card Systems Ltd Page 3 of 29 Appendix A Supported Card Types 27 Appendix B Response Status Codes 28 Appendix C Technical Specifications 29...

Страница 4: ...art card operation which are in many cases not relevant for the implementation of a smart card system The AET63 BioTRUSTKey is connected to the computer through USB interface The reader accepts comman...

Страница 5: ...orms the Protocol and Parameters Selection PPS procedure as specified in ISO7816 3 1997 When the card ATR indicates the specific operation mode TA2 present bit b5 of TA2 must be 0 and that particular...

Страница 6: ...owever this selection is only accepted and carried out by the reader through the PPS when the card inserted in the reader supports both protocol types Whenever an MCU based card supports only one prot...

Страница 7: ...the device First Green LED Indicates power supply to the device i e the device is receiving power from the computer As long as the device is connected to the PC this LED light is on Second Green LED...

Страница 8: ...s working in low speed mode i e 1 5 Mbps USB Interface Wiring Pin Signal Function 1 VBUS 5V power supply for the reader 2 D Differential signal transmits data between AET63 and PC 3 D Differential sig...

Страница 9: ...255 N 4 Header Instruction Data length N Data Checksum Header 01H to indicate the start of a standard command 02H to indicate the start of an encrypted command support from firmware 0 67 onwards only...

Страница 10: ...a Data contents of the command For a READ command for example the data bytes would specify the start address and the number of bytes to be read For a WRITE command the data bytes would specify the sta...

Страница 11: ...alues of the status bytes SW1 and SW2 and the corresponding meaning is given in Appendix B Data Length Number of subsequent data bytes 0 N 255 Data Data contents of the command For a READ_DATA command...

Страница 12: ...ossible values of the status bytes SW1 and SW2 and the corresponding meaning is given in Appendix B Data Length Number of subsequent data bytes and is encoded in 3 bytes The first byte is FFH The seco...

Страница 13: ...by the reader after a reset The Card Status Messages have the following structure and contents Card Status Message for Card Insertion byte 1 2 3 4 5 Header SW1 SW2 Data length Checksum 01 H FF H 01 H...

Страница 14: ...instruction code A2H and one data byte with the value 3DH The command has the following structure byte 1 2 3 4 5 Header Instruction Data length Data Checksum 01H A2H 01H 3DH 9FH This command is transm...

Страница 15: ...whether a card is inserted and powered up Command format Instruction Code Data length 01 H 00 H Response data format INTERNAL MAX_C MAX_R C_TYPE C_SEL C_STAT INTERNAL 10 bytes data for internal use o...

Страница 16: ...ESET This section describes the RESET command only for the case when no card type is selected or when the card type 00H is selected For all other cases please refer to the specific section described f...

Страница 17: ...nstruction Code Data length Data Option 07 H 01 H Option Bit 0 LSB bit Select for PPS mode Specifies reader card communication speed 0 baud rate to from the card is from 9600 bps to 96000 bps default...

Страница 18: ...the EEPROM memory 8 2 2 EEPROM_WRITE_DATA This command is used to write the specified data bytes to the specified address of the EEPROM Note The EEPROM used in AET63 is 24C512 with a page size of 64 b...

Страница 19: ...BYTE 2 BYTE 3 BYTE N BYTE x Data bytes returned by the TFM please refer to TFM API Documentation 8 3 2 TFM_RESET This command resets the TFM and then waits for the ATR returned from the TFM Command fo...

Страница 20: ...ed information Response data format No response data Address 0x7F00 Address 0x0900 Address 0x0800 Address 0x0700 Address 0x0600 Address 0x0500 Address 0x0400 Address 0x0300 Address 0x0200 Address 0x01...

Страница 21: ...4 TFM_OPEN_SECURE_SESSION This command sends 24 bytes of random number to AET63 The random number is used to general the session key Command format Instruction Code Data length Data LEN 9F H 18 H Dat...

Страница 22: ...ATR is only returned in the AET63 response if the communication protocol of the card is compatible with the reader i e if the card can be processed by the AET63 Otherwise the AET63 returns an error st...

Страница 23: ...than 0 in an EXCHANGE_APDU command when a T 0 card is in the reader If both parameters have a value greater than 0 the AET63 does not execute the command and returns an error status Response data for...

Страница 24: ...sponse Command format Instruction Code Data length Data SM 88 H 01 H SM Must be 0 reserve for future use Response data format ATR ATR Answer To Reset as transmitted by the card according to ISO7816 3...

Страница 25: ...r byte 1 P2 APDU parameter byte 2 Lc APDU command data length BYTE x APDU command data Le Expected APDU response data length Le 0 menas no data is expected from the card NOTE With the T 0 communicatio...

Страница 26: ...Protocol Data Unit command response pair between the SAM card inserted in the AET63 and the host computer using T1 protocol Command format Instruction Code Data length Data LEN T1 BLOCK FRAME B1 H LEN...

Страница 27: ...type to be used and how the bits in the response to the GET_ACR_STAT command correspond with the respective card types Cyber mouse card type code Card Type 00H Auto select T 0 or T 1 communication pr...

Страница 28: ...the SELECT_CARD_TYPE command 60 01 No card type selected 60 02 No card in reader 60 03 Wrong card type specified 60 04 Card not powered up This status code is also returned in a response if the card w...

Страница 29: ...ollowing two conditions 1 This device may not cause harmful interference and 2 This device must accept any interference received including interference that may cause undesired operation Warning Chang...

Отзывы: