Inside Secure M210 User Manual

INSIDE CONTACTLESS
DATASHEET
M210-2G - Datasheet - M210-2G
Version 1.1
M210-2G PROXIMITY READER
13.56 MHz for ISO chips
- 14 443 type A and B
- FeliCa
Chips > Packaging > Readers > more...
DS 1
Content
CHAPTER 1
M210-2G DESCRIPTION
FCC and CE compliance 7 System Integration 8 M210-2G dimensions and Pin Co-ordinates 10
Mechanical Interface – Component View 10 M210-2G Pin coordinates – Components View 10
CHAPTER 2
M210-2G CONNECTION
Power supply 12
Characteristics 12 Noise influence 12
Serial Interface 13
Character Format 13 Baud rate 13
ISO 7816 T=0 Interface 14 M210-2G coupler Input and Outputs 15
Input and Outputs characteristics 15 Out2P power PIN 15
How to reset M210-2G couplers 16
Software reset 16 Hardware reset 16
M210-2G - Datasheet - M210-2G
Version 1.1
DS 2
CHAPTER 3
COMMAND INTERFACE
REFERENCE MANUAL
HOST - COUPLER protocol 2
description 2 Block protocol 4 Protocol configuration 5 LRC 5
Coupler commands overview 7 SELECT_CARD 8 SELECT_PAGE 10 TRANSMIT 12 GET_RESPONSE 14 READ_STATUS 15 SET_STATUS 16
Modifiable parameters 17 Coupler’s INPUTs AND OUTPUTS 18 EEPROM free area 18
DISABLE_COUPLER 19 DISABLE_COUPLER ENHANCED 20 ENABLE_COUPLER 21 ASK_RANDOM 22 LOAD_KEY_FILE 23 SELECT_CURRENT_KEY 24 DIVERSIFY_KEY 25 GET_CONFIG 26
M210-2G - Datasheet - M210-2G
Version 1.1
DS 3
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 General key loading procedure 21 Terminology and notation 22 Key loading step by step 22 Algorithms 23
Key permutation 23 Checksum byte calculation 23 Load key checksum calculation 23
APPENDIX B
ERROR CODE
M210-2G - Datasheet - M210-2G
Version 1.1
DS 4
Main Features :
√√
Serial host interfaces:
√√
!ISO 7816-3 (T=0) compatible interface !RS-232 CMOS interface
√√
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
√√
TM
√√
On board antenna
√√ √√
Transparent mode for contactless data exchange
√√ √√
Supply voltage: 5V only
√√ √√
Low power consumption < 50 mA
√√ √√
Stand-by mode < 50 µA
√√ √√
Small PCB size: 61 x 41.5 mm
√√ √√
Operating temperature range: -20°C to +50°C
√√ √√
Emission approval* : FCC, IDA singapore, Canadian, CE
√√
Product Ordering Code
Product Ordering code Pack age Tools
M210-2G - DATASHEET - M210-2G
Version 1.1
Proxi m it y Coupler M210-2G M210-2G PCB -
* Note : The chassis will not allow ESD air discharge at voltage over 8 kV. The distance between the chassis and its packaging has to be superior to 0.68 mm.
DS - 5
CHAPTER 1
M210-2G DESCRIPTION
M210-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 RS-232 CMOS / ISO 7816 T=0*
""
""
" T arget applications Proximity and short range
""
applications
""
" Target chip All INSIDE’s chips, 15693 chips,
""
14443 chips (type A and type B), FELICA
You will find in this chapter ...
!!
!
two ways to build your application with INSIDE’s couplers
!! !!
!
coupler’s mechanical characteristics (PIN position, size...)
!!
TM
Afterwards, the term «coupler» stands for an electronic board that converts numeric commands into contactless chip commands using the RF interface.
* Note : The host interface is not fully compliant with the ISO 7816 T=0 protocol. But all the coupler’s commands are builded on this format so that its integration in a device using this protocol is very easy.
M210-2G - DATASHEET - M210-2G
Version 1.1
DS - 6

FCC AND CE COMPLIANCE

Model
:M210-2G
This device may not cause harmful interference
!
Complies with IDA Standards
DA102907
Canada
210
Electrical Rating:5.0V 45mA
Made in France
FCC ID : Q45M210
Federal Communications COMMISSION (FCC) Part 15 ST A TEMENT
This equipment has been tested to FCC requirements and has been found acceptable for use. The FCC requires the following statement for your information:
This equipment generates and uses radio frequency energy and if not installed and used properly, that is, in strict accordance with the manufacturer ’s instructions, may cause interference to radio and television reception. It has been type tested and found to comply with the limits for a Class B computing device in accordance with the specifications in Part 15 of FCC Rules, which are designed to provide reasonable protection against such interference in a residential installation. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures:
· If using an indoor antenna, have a quality outdoor antenna installed.
· Reorient the receiving antenna until interference is reduced or eliminated.
· Move the radio or television receiver away from the receiver/control.
· Move the antenna leads away from any wire runs to the receiver/control.
· Plug the receiver/control into a different outlet so that it and the radio or television receiver are on different branch circuits.
This device complies with part 15 of the FCC rules. Operation is subject to the following 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
If necessary , the user should consult the dealer or an experienced radio/television technician for additional suggestions. The user or master may find the following booklet prepared by the Federal Communications Commission helpful: «Interference Handbook»
This booklet is available from the U.S. Government Printing Office, Washington, DC 20402.
The user shall not make any changes or modifications to the equipment unless authorized by the Installation Instructions or User’s Manual. Unauthorized changes or modifications could void the user’s authority to operate the equipment.
M210-2G - DATASHEET - M210-2G
Version 1.1
DS - 7

System Integration

Diagrams below show coupler’s block diagram and architecture of 2 types of applications:
1. Coupler is integrated in a stand alone reader (access control, data collection...)
2. Coupler is connected to a computer
Emitter
Processor
Ant
Receiver
Com interfaces
Power supply
Stand Alone
Application
code
Microcontroller
Application data memory
Example 1: Stand Alone Reader Structure
M210-2G Block Diagram
Power Supply
Coupler
External I/O drivers
PicoTag
transponder
M210-2G - DATASHEET - M210-2G
Version 1.1
DS - 8
Driver
RS232
TTL
Power supply
Coupler
Example 2: Contactless Coupler Interface
PicoTag
transponder
M210-2G - DATASHEET - M210-2G
Version 1.1
DS - 9

M210-2G dimensions and Pin Co-ordinates

Mechanical Interface – Component View
" M210H size : 61 mm * 41.5 mm (+/- 1 mm)
M210-2G - DATASHEET - M210-2G
Version 1.1
M210-2G Pin coordinates – Components View
Pin pitch is 2.54 mm
DS - 10
CHAPTER 2
M210-2G CONNECTION
This chapter describes :
! How to power the coupler ! How to communicate with the coupler through the serial line ! How to connect the INPUT and OUTPUT ports
M210-2G - DATASHEET - M210-2G
Version 1.1
DS - 11

Power supply

Vcc

CHARACTERISTICS

To power up the coupler, just set Vdd PIN to 5V, and connect the ground.
PI N des cription Min. Typical Max. Unit
VDD DC voltage 4.75 5 5.25 V
Ripple<30MHz 50 mVss Supply c urrent 50 mA
Electrical characteristics

NOISE INFLUENCE

If coupler is integrated in a noisy environment, a PI filter on the power supply line is needed to lower the noise level. It has to be as close as possible to the coupler.
If a RS232 driver is used, it may induce noise on the power supply line, and a PI filter should be added. More over, noise induced by this kind of device is around 400kHz, which is the frequency used by the 15 693 protocol. T o avoid any problem on our coupler (noise emission), or on any other device connected to the power supply line, a PI filter should be added also on the power supply line of the RS 232 driver, as close as possible to this component.
10µF
10µH
10µF
Driver RS232
10µF
Filter component values are choosen so that frequencies under 1MHz are eliminated. This will avoid RF noise on the coupler receiver .
Serial line
Rx Tx
Vcc
Coupler
10µH
10µF
M210-2G - DATASHEET - M210-2G
Version 1.1
DS - 12

Serial Interface

8 bits
This interface allows a serial connection to the host via three wires : Configuration RST TX RX
RS-232 CMOS RS T TX RX ISO 7816 T=0 RS T I/ O I/O
RST resets the coupler microprocessor when tied to the ground.

Character Format

Data Rate 9600 baud (default value) Parity Even Number of bits 8 T ransmission Mode LSB first Stop bits 2 Flow control none
Note : If user’s UART cannot manage 2 stop bits, it is possible to communicate with our coupler using only one stop bit.
SelectCard command frame

Baud rate

The default data rate is set at 9600 baud, but this can be changed by software to select higher data rates :
! 9600 ! 19600 ! 38400 ! 57600 ! 115200
Noise
If a RS232 driver is used, it may induce noise on the power supply line, and a PI filter should be added. More over, noise induced by this kind of device is around 400kHz, which is the frequency used by the 15 693 protocol. T o avoid any problem on our coupler (noise emission), or on any other device connected to the power supply line, a PI filter should be added also on the power supply line of the RS 232 driver, as close as possible to this component.
Version 1.1
M210-2G - DATASHEET - M210-2G
DS - 13

ISO 7816 T=0 Interface

By connecting TX and RX, a single I/O inspired from ISO 7816 T=0 is obtained. This interface is fully described in the ISO 7816 standard. It allows the coupler to be driven directly as in an ISO contact connector or SAM module with the T=0 protocol, thereby utilising any existing smart card software drivers.
ISO contacts Interface
C1: VCC VD D C2: RST RS T C3: CLK (internal clock) C4: - ­C5: GND G N D C6: VPP ­C7: I/O TX – RX connected C8: -
The CLK signal used in ISO 7816 T=0 is an internal clock (default data rate = 9600 baud).
M210-2G - DATASHEET - M210-2G
Version 1.1
DS - 14

M210-2G coupler Input and Outputs

M210-2G readers has one input and 2 outputs. A PIN can be used to power up a LED (OUT2P)

Input and Outputs characteristics

Input : CMOS Schmidt trigger input
- level 0 : Vin < 1
- level 1 : Vin > 4
Output 1 : TTL 5V output
Output 2 : TTL 5V output

Out2P power PIN

This PIN is connected to the 5V through a 1K resistor. It can be used to power supply a LED for exemple.
M210-2G - DATASHEET - M210-2G
Version 1.1
DS - 15

How to reset M210-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 : 9600 bds, defaults protocols....

HARDWARE RESET

If for any reason it becomes impossible to communicate with the coupler, follow this procedure :
switch off the coupler
connect the 2 reset pins as indicated in the drawing below
power up the coupler : it will start with the default factory parameters
reset the EEPROM as indicated above
The coupler is reseted.
M210-2G - DATASHEET - M210-2G
Version 1.1
DS - 16
CHAPTER 3
COMMAND INTERF ACE
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.0
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 IS O O ut 3YesNoneISO In 4 Yes Yes ISO In / Out
Note : In case 4, dat a 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.0
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 byte s
Cla. Ins. P1 P2 P3
5 byt es
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.0
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
Cla. Ins. P1 P2 P3 Data in
Coupler
nb bytes
coupler
Ack. Data in Ack. Data out
= Ins. = Ins. Data out SW1 SW2
1 = P3 1 =P252
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.
tatus word
Coupler - Reference manual
Version 1.0

BLOCK PROTOCOL

The block mode is based on the exchange of a block sent from the host to the coupler and after a block sent back from the coupler to the host. By this way there is no break in the flow host-coupler. The diagram below describes this block protocol.
BLOCK Host Send P3
Coupler if no error in processing
Coupler if error in processing
LRC enables the user to check is the transmission has been performed correctly . See next paragraph for more information.
Note: Block protocol is only available on 2G version of our readers.
Send 5 bytes command CLASS|INS|P1|P2|P3
Data if any
Send an optional LRC
Send an acknowledge (INS) Return a status w ord
Return Data
Send an optional LRC
Return a status wo r d
Send an optional LRC
RM 4

PROTOCOL CONFIGURATION

In order that the coupler knows how much data it is supposed to receive and suppose to send back, the CLASS byte is used to indicate how it should operate. The default value for the CLASS byte is 0x80. To implement the block mode, the three first bits have been used.
CLASS BITS (MSB..LSB)
10000000 0x80 Standard ISO-7816-3 T=0 prot ocol
10000001 0x81 Block protocol w ith no data from host
10000011 0x83 Block protocol with no data down from
10000100 0x84 Block protocol with P3 data down from
10001000 0x88 Block protocol with P3 data down from
10001100 0x8C Block protocol with P3 data down from
10001110 0x8E Block protocol with P3 data down from
CLASS VALUE
MEANING
and back from c oupler
host and P 3 dat a bac k from coupler
host and no data back from c oupler
host and P 1 dat a bac k from coupler
host and P 2 dat a bac k from coupler
host and P 3 dat a bac k from coupler
LRC
The block diagram mentions an optionnal LRC (Longitudinal Redundancy Checksum) or CRC (Cyclic Redundancy Checksum) can be appended in the flow. This option is controlled by a parameter into the coupler configuration which can be set via the command SET_STATUS.
Calculation
LRC is the result of the XOR of all the bytes sent by the host including command and the P3 data bytes. If the LRC does not correspond to the LRC calculated by the coupler , the coupler will response with a status word equal to $6F$00.
The example below shows how the LRC is calculated: $82$C0$00$00$03 + $01$02$03 + $41 because $41 = $82 xor $C0 xor $00 xor $00 xor $03 xor $01 xor $02 xor $03.
The LRC calculation is equivalent to the CRC8 calculation with a poly equal to 1.
Coupler - Reference manual
Version 1.0
RM 5
Loading...
+ 46 hidden pages