Inside Secure M2502G User Manual

INSIDE CONTACTLESS
DATASHEET
Hand’IT-2G - Preliminary Datasheet
Version 1.0
Hand’IT-2G Compact Flash READER
13.56 MHz for ISO chips
- 14 443 type A and B
- FeliCa
Chips > Packaging > Readers > more...
DS 1
Content
HAND-IT 2G Block Diagram 6
CHAPTER 1
HAND'IT-2G DESCRIPTION
HAND'IT -2G dimensions 7
Mechanical Interface – Top View 7 HAND'IT-2G with PCMCIA Compact Flash Adaptor (not supplied) 7
CHAPTER 2
HAND'IT-2G CONNECTION
Physical Description 8 Electrical Description 8
Power supply 8
Characteristics 8
8
Software & Drivers 9
9
Serial Interface 10
Character Format 10 Baud rate 10
How to reset HAND'IT-2G couplers 11
Software reset 11 Hardware reset 11
CHAPTER 3
COMMAND INTERFACE
REFERENCE MANUAL
HOST - COUPLER protocol 2
description 2
Coupler commands overview 5 SELECT_CARD 6 SELECT_PAGE 8 TRANSMIT 10 GET_RESPONSE 12 READ_STATUS 13 SET_STATUS 14
Hand’IT-2G - Preliminary Datasheet
Modifiable parameters 15 Coupler’s INPUTs AND OUTPUTS 16 EEPROM free area 16
Version 1.0
DS 2
DISABLE_COUPLER 17 DISABLE_COUPLER ENHANCED 18 ENABLE_COUPLER 19 ASK_RANDOM 20 LOAD_KEY_FILE 21 SELECT_CURRENT_KEY 22 DIVERSIFY_KEY 23 GET_CONFIG 24
CHAPTER 4
USER’S GUIDE
Managing INSIDE chips 2
Security configuration 3 Selecting a chip 4 Selecting a page 5 Reading chip memory 6 Writing chip memory 7 Halting a chip 8 How to work with several chips in the field 9
Managing INSIDE’s chips protocols 10 Managing the security 11
INSIDE chips security 11 Key loading 13 How to set a key as the active one 14 How to authentify a chip 15 How to authentify a PAGE 15 Protecting the keys 16
Managing ST ANDARD chips protocols 17
Time out adjustment 17 15 693-3 protocol 17 ISO 14 443 type A 18 ISO 14 443 type B 18 FeliCa ( new version) 18
Managing the RF field 19
How to reset the RF field ? 19 How to asleep the coupler 19 How to wake up the coupler 19
APPENDIX A
HOW TO LOAD A KEY IN A COUPLER
Exchange key 21
Hand’IT-2G - Preliminary Datasheet
Version 1.0
General key loading procedure 21 Terminology and notation 22 Key loading step by step 22 Algorithms 23
DS 3
Key permutation 23 Checksum byte calculation 23 Load key checksum calculation 23
APPENDIX B
ERROR CODE
Hand’IT-2G - Preliminary Datasheet
Version 1.0
DS 4
Main Features
√√
Security management:
√√
!Security module !Secure key loading
√√
Secured Key Storage
√√ √√
Contactless interfaces:
√√
!ISO 15 693 !ISO 14 443 type A !ISO 14 443 type B !FELICA
√√
Contactless transmission of data and energy supply
√√ √√
Carrier frequency: 13.56MHz
√√ √√
On board antenna
√√ √√
Transparent mode for contactless data exchange
√√
√√
Supply voltage: 5 or 3,3V
√√
TM
√√
Low power consumption < 50 mA
√√
√√
Idle mode < 5 mA
√√
√√
Stand-by mode < 50 µA
√√
√√
Small size: extended CF type I form factor (61 x 43 mm)
√√
√√
Operating temperature range: -20°C to +50°C
√√ √√
Emission approval* : FCC, IDA singapore, Canadian, CE
√√
Product Ordering Code
Product Ordering code Package Tools
Proximi ty Coupl er Hand'IT-2G Hand'IT-2G/F CF -
-
Hand'IT -2G -Preliminary Datasheet
Version 1.0
DS - 5
CHAPTER 1
HAND'IT -2G
DESCRIPTION
HAND'IT-2G couplers are developed by INSIDE contactless for managing the RF communication interface with 13.56 MHz standard chips.
They have the following features :
""
" Operating frequency 13.56MHz
""
""
" Host interface CF card
""
""
" Compatibility Windows 98/XP/Me/2000/PPC2002-
""
2003
""
" T arget applications Proximity and short range
""
applications
""
" Target chip All INSIDE’s chips, 15693 chips,
""
14443 chips (type A and type B), FELICA
TM
Afterwards, the term «coupler» stands for an electronic board or
device that converts numeric commands into contactless chip
commands using the RF interface.
HAND-IT 2G Block Diagram
Hand'IT -2G -Preliminary Datasheet
Version 1.0
DS - 6
HAND'IT-2G dimensions
Mechanical Interface – Top View
" HAND'IT size : L 61 mm * l 43 mm * h 3,3-8mm
HAND'IT-2G with PCMCIA Compact Flash Adaptor (not
supplied)
Hand'IT -2G -Preliminary Datasheet
Version 1.0
DS - 7
CHAPTER 2
HAND'IT -2G CONNECTION
This chapter describes :
! How to power the coupler ! How to communicate with the coupler
Physical Description
The host is connected to the Compact Flash Hand’IT 2G using a standard 50pin connector. The host must be equiped with a CF+ type 1 or 2 slot. Refer to the host user manual for the Compact Flash card insertion.
Electrical Description
The HandIT 2G acts as a standard PC Card A T A using I/O Mode. Refer to PC Card standards for details.
Power supply
CHARACTERISTICS
To power up the coupler , just insert the device into a CF type I or II slot. Note that opening the associated COM port will power on the device and closing will Power it off. Refer to the host operating system for more details.
Description M in. Typical M ax. Unit
DC voltage 3,135 3,3 3,465 V RF ac t ive current 50 TBD mA Idle Mode c urrent 5 TBD mA St andby c urrent 50 TBD µA
Electrical characteristics
Hand'IT -2G -Preliminary Datasheet
Version 1.0
DS - 8
Software & Drivers
System requirements
The Hand’It 2G works with laptops or PDAs running Microsoft Windows 98/2000/XP/CE /Pocket PC2002&2003.
Pocket PC Users
PDA running Pocket PC don’t need any specific driver to manage the Hand’IT 2G as a standard COM Port. Depending on the device, the COM port number can take any value. Refer to the Register DataBase to get the correct COM number under HKEY_LOCAL_MACHINE\ DRIVERS\ACTIVE\xx Search the Key with PnpId = Hand_It-INSIDE-D9A6 Y ou will find the COM number in the Name Field.
Laptops users
Y ou need to install the HandIT 2G drivers from the Inside installation disk Insert the HandIT 2G into the laptop (using an CF to PCCARD adapter .). Follow screen instructions and select the folder containing HandIT2G.inf file from the Ins- tallation Disk. The HandIT 2G will appear as a standard COM Port named Compact Flash HandIT. Y ou can adjust COM settings from the hardware profil menu.
Coupler Communication
Once installed, the Hand’IT 2G works as a standard coupler connected to a serial COM port.
Hand'IT -2G -Preliminary Datasheet
Version 1.0
DS - 9
Serial Interface
8 bits
This interface allows a serial connection to the host via the CF interface:
Character Format
Data Rate 115200 baud (default value) Parity Even Number of bits 8 T ransmission Mode LSB first Stop bits 2 Flow control none
SelectCard command frame
Baud rate
The default data rate is set at 115200baud, but this can be changed by software to select following data rates :
! 9600 ! 19200 ! 38400 ! 57600 ! 1 15200
Version 1.0
Hand'IT -2G -Preliminary Datasheet
DS - 10
How to reset HAND'IT-2G couplers
Resetting the coupler may be useful in two situation :
a. to set the parameters (speed, disable mode, protocol settings, keys ) to the defaults values. All these values are stored in coupler’s internal EEPROM
b. if it is impossible to communicate with the coupler (bad setting for serial communica­tion speed mainly)
SOFTWARE RESET
It is possible to reset the coupler’s EEPROM by sending 2 commands thanks to the SET ST ATUS command.
Command = $80,$F4,$80,$3E,$01 - Data = $00 Command = $80,$F4,$80,$7E,$01 - Data = $00
Then the coupler has the default setting : 1 15200 bds, defaults protocols....
HARDWARE RESET
If for any reason it becomes impossible to communicate with the coupler, follow this procedure :
remove the hand’IT 2G from the CF slot
remove the plastic top cover as shown
connect the 2 reset pins as indicated in the drawing
reinsert the Hand’IT 2G and open the COM port: it will start with the default factory
parameters
remove the hand’IT 2G from the CF slot and the the reset pins connection
Hand'IT -2G -Preliminary Datasheet
Version 1.0
DS - 11
CHAPTER 3
COMMAND INTERFACE
REFERENCE MANUAL
In this chapter you will find the command format, and the description of all the commands used by the coupler. User may refer to this chapter to find the following information :
!!
!
low level description of data exchange between coupler
!!
and host, mainly when using microcontroller or an automat
!!
!
check the signification and/or a value of a command
!!
parameter
Coupler - Reference manual
Version 1.1
RM 1
HOST - COUPLER protocol
DESCRIPTION
The commands are modeled on the ISO 7816 command set. This protocol is used by all INSIDE"s couplers
A typical protocol exchange includes:
1. The host sends a command to the coupler
2. The coupler executes the command
3. The host receives a response from the coupler
Coupler command is always constituted of 5 bytes :
CLASS : always 80h
INSTRUCTION : command to be executed by the coupler (like SelectCard)
P1 : Command parameter
P2 : Command parameter
P3 : Command parameter
Depending on the command, coupler answers data, status words.
There are 4 cases of data exchange:
Case Host to coupler Coupler to Host ISO Type
1 None None ISO None
2 None Yes ISO Out
3YesNoneISO In
4 Yes Yes ISO In / Out
Note : In case 4, data has to be sent and received from the coupler. With T=0 protocol, it is not possible in a single command, so this command has to be split into 2 commands:
Coupler - Reference manual
Version 1.1
RM 2
ISO In : The host sends a command + data and receives the status words. ISO Out : The host sends a command and receives data + the status words.
Coupler with firmware former than 40-017F has only ISO NONE, ISO IN and ISO OUT protocol available.
In all cases, status words are returned (SW1 and SW2).
Case 1: ISO None Data Exchange
Command
Host
Coupler
nb of bytes
Cla. Ins. P1 P2 P3
5 bytes
Case 2 : ISO Out Data Exchange - Coupler
Command
Host
Coupler
nb bytes
Class : always 80h Instruction : command code P1 & P2 : command parameters P3: number of data bytes expected from the coupler
Cla. Ins. P1 P2 P3
Status words
SW1 SW2
2 bytes
""
" Host
""
Ack. Data
= Ins. data SW1 SW2
1 = P3
Status words
25
Ack. : coupler acknowledgement. It is always equal to the command code, except when an error occurs. If the Acknoledgement value is different than the instruction byte, then the received byte is the first byte of a status error code coded on 2 bytes.
Data : data sent to the host by the coupler. Size of the command has to be P3.
Status word : 90 00h if correct, error code.
Case 3: ISO In Data Exchange - Host
Command
Host
Coupler
nb bytes
Cla. Ins. P1 P2 P3 Data
""
" Coupler
""
Ack. Data
= Ins. SW1 SW2
1 = P3
Status words
25
Coupler - Reference manual
Class : always 80h Instruction : command code P1 & P2 : command parameters
Version 1.1
RM 3
P3: number of data bytes sent to the coupler.
s
Ack. : coupler acknowledgement. It is always equal to the command code, except when an error occurs. If Acknowledgement value is different than instruction byte, then the received byte is the first byte of a status error code coded on 2 bytes.
Data : data sent by host to the coupler. Size of data array has to be P3.
Status word : 90 00h if correct / error code.
Error : If the Acknowledgement value is different than the instruction byte, then the received
byte is the first byte of a status error code coded on 2 bytes.
Case 4 : ISO InOut Data Exchange - Host
Command
Host
Coupler
nb bytes
Class : always 80h Instruction : command code P1 : command parameters P2 : number of data bytes expected from the coupler. P3 : number of data bytes sent to the coupler.
Ack. : coupler acknowledgement. It is always equal to the command code, except when
an error occurs. If Acknowledgement value is different than instruction byte, then the received byte is the first byte of a status error code coded on 2 bytes.
Data : data sent to the host by the coupler. Size of the command has to be P3.
Status word : 90 00h if correct / error code.
Cla. Ins. P1 P2 P3 Data in
coupler
Ack. Data in Ack. Data out
= Ins. = Ins. Data out SW1 SW2
1 = P3 1 =P252
tatus word
Coupler - Reference manual
Version 1.1
RM 4
Coupler commands overview
Command INS Description
SELECT_CARD "A4h" Selects one contactless card following list of
possible cards in the field
SELECT_PAGE "A6h" Selects a page in a multi-application chip
TRANSMIT "C2h" Sends and retrieve data from chip through
contactless interface : Transparent mode
GET_RESPONSE "C0h" Reads the internal buffer of the coupler to retrieve
chip answer for ISO 7816 T=0 protocol.
Command INS Description
READ_STATUS "F2h" Reads coupler status or EEPROM memory.
SET_STATUS "F4h" Sets the coupler status or write in EEPROM
memory.
DISABLE_COUPLER "ADh" Disables the coupler. it will only respond after a
ENABLE_COUPLER command.
ENABLE_COUPLER "AEh" Enable the coupler. It wakes up the coupler after
a DISABLE_COUPLER command.
Security module functions†:
Command INS Description
LOAD_KEY_FILE "D8h" Load new master keys for authentication
purposes.
ASK_RANDOM "84h" Ask for a random number from the coupler.
SELECT_CURRENT_KEY "52h" Select the key to be used for authentication
purposes.
Coupler - Reference manual
Version 1.1
RM 5
SELECT_CARD
Use
Select a card in order to get the serial number. This command manages anti-collision and authentication features. This command is able to test several communication protocol. It answers the number of protocol used to select the card.
Prototyping
# Command sent : A4h # Command type : ISO out
Host 80h A4h P1 P2 P3
Coupler A4h Card type Serial number 90h 00h
Parameters
Bit 76543210
Function - - Key Auth Presel. Loop Halt W ait
P1: Parameter used for contactless configuration
IMPORTANT: " - " are reserved for future use, and values should be set to 0.
WAIT :
1: Wait until a card is selected or a character received from the host (e.g. PC). 0: Exit if no card is detected after 3 attempts.
Note: When SELECT_CARD uses the option ´LOOPª, the coupler sends ACK=60h (See T=0 specifications) after each unsuccessful selection until a card is selected. When a card is selected, ´90h 00hª is returned. In order to stop this scanning, host has to send a byte through the RS232 interface.
HALT:
1: Halts card after selection for fast serial numbers capture. 0: No halt after selection.
LOOP:
1: returned a frame composed of ACK | CARD TYPE | SN | 9000h or wait character 60h 0: no loop performed.
PRE:
1: Increases pre-selection with INSIDE CONTACTLESS anti-collision and a large number of cards. 0: Standard anti-collision (best for 5 cards max.).
Coupler - Reference manual
Version 1.1
RM 6
AUTH:
1: Performs a standard INSIDE authentication. Authentication is performed if the key is set as the current key. Please refer to appendix A : ´How to low a keyª for key loading and key management operations details. 0: Does not perform an authentication.
KEY:
1: Authenticates with Debit Key (Kd = Key 1) if AUTH is set. 0: Authenticates with Credit Key (Kc = Key 2) if AUTH is set.
P2: Parameter used for selecting the card types to be read
b7 - b4 b3 b2 b1 b0
0 Protocol 3 Protocol 2 Protocol 1 Protocol 0
INSIDE couplers manage the following protocols :
- Protocol 0 : ISO 14 443 type B & Inside anticollision (only for INSIDE chip)
- Protocol 1 : ISO 15 693 & Inside anticollision (only for INSIDE chip)
- Protocol 2 : ISO 14 443 type B-3
- Protocol 3 : User defined protocol - see ´Other ISO chip managementª chapter for more information about Protocol 3 use.
If bit related to protocol x is set to one, coupler will run an anticollision using this protocol. If several protocols are selected, coupler will test all of them, starting from protocol 0 to protocol 3.
P3: Number of bytes to be return by the coupler
Set P3 = 09h for reading Pico Family Chips serial numbers.
Response: Card type (1 byte) and serial number (8 bytes) Card type is the protocol number used by the card that has been selected for its answer. For 15 693 INSIDE"s chips, card type value is 1 as protocol 1 is used for selection. This value is the one to use to indicate protocol in the transmit command.
Coupler - Reference manual
Version 1.1
RM 7
Loading...
+ 42 hidden pages