5.15. Code meanings in response frames .......................................................... 38
6. MEANING OF SYMBOLS USED IN THE SPECIFICATION ......................... 38
7. MECHANISM OF MASTER ID ...................................................................... 38
8. RESET TO DEFAULT SETTINGS ................................................................ 39
9. OPERATION EXAMPLE OF TRANSPONDER............................................. 39
CTU
-
Mxx
NETRONIX CTU-Mxx
5
1. Introduction
CTU-M device series is OEM miniature RFID card reader operating at frequency of
13,56 MHz
Main features:
• Support of Mifare S50, S70, Ultralight, Desfire
• built-in antenna
• card memory with build-in lock driver,
• lots of communication interfaces type, depend on version (see table below)
• Built-in relay and buzzer
• Built-in push-button for reset to default settings
• 2 configurable inputs/outputs
• Two-state outputs control
• Read-out of two-state input
• changeable format of sending ID
• MAD functionality
• Data password protected
• Software update via serial interface using NEFIR program
CTU-M reader series
Module type
GPIO
Card memory
Event memory
Relay
Power supply
RS-232
CTU-M2R*
CTU-M4R
CTU-M5N*
CTU-M5R
CTU-M2RM
40
40
40
40
1000 4000
7-16
7-16
5
5
7-16
* - standard version, rest of version for special order
INTERFACES
RS-485
RS-232TTL
SPI
I2C
WIEGAND
1WIRE
NETRONIX .
CTU
-
Mxx
NETRONIX CTU-Mxx
6
2. General specification
Supported functionality depending on transponder / card type:
Transponder
type
ID number
read-out
Full write and read-out of memory blocks
S50 YES YES
S70 YES YES
Ultralight YES YES
Desfire YES NO
CTU-Mxx module parameters
Supply voltage (M2R, M4R model) 7-16 V
Supply voltage (M5R model ) 4,5 - 5,5 V
Max. supply current 120 mA
Rated operation radio frequency of module 13,56MHz
Working temperature
-20°c - +65°c
Max. relay current 2A
Appr. read distance for S50 7 cm
Max. output current for GPIO 20mA
Transmission parameters for
RS232/RS485/RSTTL
2400, 4800, 9600, 19200, 38400, 57600,
115200 bps,
8 data bits, 1 stop bit, no parity
compliant with „Netronix Protocol”
Address on I2C bus 0xC0
1WIRE family code,address (configurable) 0x01,0x01
WIEGAND number of bits 37
• configure to factory settings – press button for 8 seconds
• change interface and RFID transponder type – press button in schematic:
STEP
1 MENU1 – interface
Number of press 1
2 3 4 5 6
- RS232/485 SPI WIEGAND 1WIRE I2C
selection*
2 Triple beep
* - type of interface depends on CTU-M model
5. Transmission protocols
5.1.RS-232/485 transmission protocol
In this data sheet RS-232/485 protocol has been confined to descriptions of
commands, responses and their parameters. Header and CRC control sum exist
always and are compliant with full “Netronix Protocol” document.
RS protocol operation can be tested by means of development tools including free of
charge “FRAMER” software”.
5.2. Protocol for I2C transmission
5.2.1. Data exchange algorithm
A module configured depending on table showed on point 4. operates in I2C
interface mode in following sequences:
1. Master (external device) writes command with parameters if necessary into slave
device (CTU module)
2 The command is performed (immediately after receiving byte sent quantity declared
in frame)
3. Master device reads response, its parameters and operation code. In case of
receiving busy byte 0xCB, repeat attempt to read the response after ca. 1 ms
NETRONIX .
CTU
-
Mxx
NETRONIX CTU-Mxx
9
(N bytes)
START
0b110000a0
STOP
TAK
NIE
(commands connected with write to/and read from transponders can last up to 100
ms).
We write inquiry-command to CTU module:
START
SLAVE ADDRESS (1B)
0
NUMBER OF BYTES(1B)
COMMAND (1B)
PARAMETERS (0...n B)
The „number of bytes” field must contain information on byte quantity sent directly
“command” fields and “parameters”.
We have then:
START
SLAVE ADDRESS (1B)
1
Number of bytes N or 0xCB
PARAMETERS + OPERATION CODE
STOP
I2C SEND
I2C SEND:
Number of bytes,command,[data]
I2C SEND:
Wait 1ms
I2C START
I2C SEND:
0b110000a1
Wait for ACK
I2C READ 1 byte:N
N= 0xCB ?
Receive N bytes
I2C SEND
NETRONIX .
CTU
-
Mxx
NETRONIX CTU-Mxx
10
5.2.2. Timings
Module sends and receives data at 400 kHz clock frequency considering
timings showed below.
Note 2: Reader keeps in low state first clock pulse of each byte sent until
proper state is placed on SDA line.
5.3. Protocol for 1WIRE (Dallas) bus.
NETRONIX .
CTU
-
Mxx
NETRONIX CTU-Mxx
11
Family code ID1…ID5 Address CRC
1 byte 5 bytes 1 byte 1 bytet
ID1...5 – unique ID number of transponder
CRC_DAL- check sum of data send
The format conforms 1-WIRE Dallas (e.g.. DS1990A). It means, that described
module could be used as a replacement of DS1990A drop.
During operation, a module tries to read-out transponder periodically. If it fails (no
successful read-out), module does not response for pulses sent from 1-WIRE master
unit. Bus does not "see" the module, which corresponds with lack of reader applying, it
means applying the DS1990A drop to drop reader. If module reads out the
transponder, the module starts to send data via 1-WIRE bus.
Calculate the CRC value
According to DS1990A specification C value is calculated from equation
x^8+x^5+x^4+1 with initial value equal to 0x00. The CRC is calculated on basis of all
frame bytes excluding the last one.
An example of CRC value calculation procedure written in C language
The format conforms WIEGAND protocol specification for N bits. During operation,
a module tries to read-out transponder periodically. If it fails (no successful read-out),
module does not send data (bus does not "see" the module). If module reads out the
transponder, the module starts to send data via Wiegand bus.
Pulse sequence from left to right.
L level
H level
L level
1 1 0 0 1 ............. 1 0 0 encoding DATA
......
Total number of pulses (level L) is equal to N. The first being bit sent complements up
to parity the bits from first half of total bits. The last bit N complements up to non-parity
the bits from second half of bits being sent.
It means, that two bits out of N bits assure the transmission correctness. Information is
being sent is written by means bits 2 to N-1, it gives N information bits.
Check sums for bit sequence:
for even N:
EXXXXXXXXXXXXYYYYYYYYYYYYO
or for odd N:
EXXXXXXXXXXXXXXXXXX..................
..................YYYYYYYYYYYYYYYYYYO
Where:
E = bit complementing up to parity
O = bit complementing up to non-parity
X = mask for parity calculation
Y = mask for non-parity calculation
NETRONIX .
CTU
-
Mxx
NETRONIX CTU-Mxx
13
5.5. Key management
Key management feature includes key loading to internal key memory. For security
reasons, these keys cannot be red-out.
To maintain the highest level of data security, employed a particular philosophy
of working with these keys.
It allows unit or person who possesses the highest level of confidence to load a
key. Such loading operation can be made one time only, or very rarely.
Reader operation in given application is based on using a key not directly, but on
recalling key number, to login to sector.
The result is that, in substance, key does not appear in data bus in given application.
Additionally, a user is advised to make sure key should have proper access
rights to sectors. This is accomplished by card initialization process, where new
confidential keys are loaded to cards with proper access rights, which are assigned to
these keys.
Keys A and B are assigned to each sector.
Commands C_LoadKeyToSKB and C_LoadKeyToDKB load these keys to reader
memory without information on key type (A or B).
During logging to sector, user has to input as a parameter value of 0xAA or 0xBB, if he
wants, the key which is being recalled would be treated as an A or B.
5.5.1. Key loading into dynamic key memory
Dynamic memory features of automatic content delete in case of supply decay. The
memory can be overwritten many times.
block
SourceBlockNo Source block
TargetBlockNo Target block for data
**Sector and block numeration
Response frame:
Header C_CopyBlock +1 OperationCode CRC
5.6.8. Writing the page content into Mifare UL
Command frame:
Header C_WritePage4B PageAdr, Data1...4 CRC
Where:
Parameter name Parameter description Value range
C_WritePage4B Writing the page content into Mifare UL 0x26
PageAdr Page number in transponder 0x00…0x0f
Data1...4 Data, which are to be written whichever
0x00 – permanently off
0x01 – permanently on
0x02 – driven via serial
interface
0x03 – driven via serial with
automatic reset(edge
emulation)
TypeOfOutput
Source of driving signal
0x04 – driven by internal
access control mechanism
ACM.
This output is driven in case of
applying the card to reader,
which is written into internal
card base.
0x05 – set in case of applying
freely selected card to reader.
Time of maintaining the on state after
actuation stopped. This time is
specified as:
Hold-up x 100 ms
Hold-up
During “hold-up” time, it is possible to
configure the output, whish is able to
generate rectangular wave. By
means of following parameters are
configured “Logic 1” time and “Logic
0” time:
0Time Logic 0 time
1Time Logic 1 time
If we set a port as a input, IOConfigData1…n parameters would be as below:
Dir, Triger, TypeOfInput, Delay,
Where:
Parameter name Parameter description Value range
C_SetIOConfig
Writing the configuration of freely selected
port.
0x50
IONo I/O port number, which is to be configured. 0x00,0x01,0x07
Dir Port direction 0x01 – input
TypeOfInput Input type 0x03
Delay Delay 0x00
NETRONIX .
CTU
-
Mxx
NETRONIX CTU-Mxx
25
5.7.4. Reading-out the configuration of freely selected port
5.10.3. Writing the “automatic read” configuration
This command sets operation method of automatic device, reading the unique
transponder number UID.
The reader described below makes possible to hold-on operation of automatic
device for a while, in case of suitable transmission via serial interface.
If the reader will operate in mixed mode i.e.:
- automatic reading device UID is enabled and:
- master device (computer, controller) communicates with reader or with transponders
via reader,
it is required, to configure the reader correctly, so in case of communication with a
reader or transponder, automatic reading device would hold-on its operation.
5.10.4. Reading-out the configuration of automatic device
Command frame:
Header C_ GetAutoReaderConfig CRC
Where:
Parameter name Parameter description Value range
C_GetAutoReaderConfig
Read-out of automatic device
configuration.
0x5a
Response frame:
Header
C_ GetAutoReader
Config +1
ATrig, AOfflineTime, ASerial,
Abuzz,Amulti
OperationCode CRC
Where:
The meaning of response parameters is the same as described before.
5.10.5. Setting the date and time
Following setting has no influence for reader operation today.
Command frame:
Header C_SetRtc Year, Month, Day, Hour, Minute, Second CRC
Where:
Parameter name Parameter description Value range
C_SetRtc Date and time set-up 0xb8
Year year 0…99
Month month 1…12
Day day 1…31
Hour hour 0…23
Minute minute 0…59
Second second 0…59
Response frame:
Header C_SetRtc +1 OperationCode CRC
5.10.6. Reading-out the date and time
Command frame:
Header
C_GetRtc CRC
Where:
NETRONIX .
CTU
-
Mxx
NETRONIX CTU-Mxx
31
Parameter name Parameter description Value range
C_GetRtc Read-out of date and time 0xb6
Response frame:
Header C_GetRtc+1
Year, Month, Day, Hour, Minute,
Second
OperationCode CRC
Where:
The meaning of response parameters is the same as described before.
5.11. Configuring the UART serial interface
5.11.1. Writing the configuration of serial port
Command:
C_SetInterfaceConfig Mode, Adr, Baudrate
Where:
Parameter name Parameter description Value range
C_SetInterfaceConfig
Serial interface configuration write 0x54
Mode 0x01
Adr Address on RS-485 bus 0x01…0xfe
0x01=2400 bps
0x02=4800 bps
0x03=9600 bps
Baudrate Data baud rate on RS-485 bus
0x04=19200 bps
0x05=38400 bps
0x06=57600 bps
0x07=115200 bps
Response:
C_SetInterfaceConfig +1 OperationCode
5.11.2. Reading the configuration of serial interface
Command:
C_ GetInterfaceConfig
Where:
Parameter name Parameter description Value range
C_GetInterfaceConfig
Serial interface configuration read-out 0x56
Odpowiedź:
C_ GetInterfaceConfig +1 Mode, Adr, Baudrate OperationCode
Where:
The meaning of response parameters is the same as described before.
NETRONIX .
CTU
-
Mxx
NETRONIX CTU-Mxx
32
5.12. Managing the events
The CTU-MxxM series readers has equipped with event memory of capacity
4400 records. Reason of event can be operation related to card or state changing on
reader outputs. The readers does not have RTC clock with battery back-up. After
supply failure, clock is reset to defaults: date: 1 January 2000, time: 00:00:00. Event
counter is not reset.
5.12.1. Setting the event recorder
Command frame:
Header C_SetEventTrig CardTrig, IO1Trig CRC
Wherein:
Parameter name Parameter description Value range
C_SetEventTrig
0x7C
CardTrig
In1Trig-In4Trig
Setting the event masking 0x7C
Masking the events related to card
(see below)
Masking the events related to inputs
(see below)
0x00 - 0xFF
0x00-0xFF
Response frame:
Header C_SetEventTrig+1 OperationCode CRC
Masking byte of events related to card
Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1
Reserve Out of
memory
Card
removal
Card
adding
Reserve Master
card
Outside
base card
Inside
base
card
E.g. byte 0x25(00100101) means that events will be written in case of:
inside base card has been red-out,
card written as master has been written,
inside base card has been removed
Masking bytes related to inputs state change
Byte Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1
CapH:CapL – two-byte value, which defines event memory capacity.
PointerH:PointerL – two-byte value, which marks from first free event.
TotB3:TotB2:TotB1:TotB0 – four-byte value, which defines number of events recorded
from the moment of counter reset.
Events are recorded in sequence from index 0 up to Cap-1. In the moment memory
gets full, the counter is being “overturned”, and older inputs are overwritten.
NETRONIX .
CTU
-
Mxx
NETRONIX CTU-Mxx
34
Out of
Example:
If using C_GetEventParam command, we have red that event memory capacity is
4400 inputs; the total value of input events is 5678. For instance, if we want to read
the event with no. 5600, event index event of interest will be 5678-4400=1278.
If we want to read the last event, we can use Pointer value. The last event index will
be Pointer-1.
5.12.4. Reading the events
Command frame:
Header C_GetEvent EvNoL, EvNoH CRC
Wherein:
Parameter name Parameter description Value range
C_GetEvent
0x7a
Reading the event 0x7a
EvNoL,EvNoH LSB and MSB of event index
Response frame:
Header C_GetEvent+1
YY,MM,DD,hh,mm,ss,type,
B1,B2,B3,B4,B5
OperationCode CRC
YY,MM,DD – year, month, day of event occurrence
hh,mm,ss - hour, minute, second of event occurrence
type - event type
Depending on value “type” the 8-th bit of byte, there are distinguished two
assignments:
Bit8 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1
0 – card
memory
Removed Added reserved Master Outside
base
Inside
base
1 -inputs reserved reserved reserved N4 N2 N1 N0
N4:N0 –number of input, on which event trigger signal appeared.
If given event was related to card, the B1-B5 bytes comprise card ID number.
B1 B2 B3 B4 B5
UID1 UID2 UID3 UID4 UID5 (Unique)
If event is related to input change, B1-B5 bytes comprise information regarding
Before you run C_GetSectorMadNext command, perform sector searching operation
using C_GetSectorMad, command, of which pursuing result was other than 0.
If response byte is 0x00, it will mean, than no more sectors have been found for given
application.
C_FirmwareVersion Read-out of reader software version 0xfe
Response frame:
Header C_FirmwareVersion+1 Data1…..n OperationCode CRC
Where:
Data1…n is sequence of dots, which are written as an ASCII codes.
5.14.3. Change buzzer volume
Use this command to set and store setting in EEPROM memory.
Command frame:
Header C_BuzzerConfig volume CRC
Gdzie:
Parameter name Parameter description Value range
C_BuzzerConfig 0xD8
volume Buzzer volume value 0x00-0x0a
Response frame:
Header C_BuzzerConfig+1 OperationCode CRC
NETRONIX .
CTU
-
Mxx
NETRONIX CTU-Mxx
38
5.15.Code meanings in response frames
Operation code name Description Value
OC_Error Error 0x00
OC_ParityError Parity error 0x01
OC_RangeError Parameter range error 0x02
OC_LengthError Data quantity error 0x03
OC_ParameterError Parameter error 0x04
OC_Busy Internal modules are busy at the moment. 0x05
OC_NoACKFromSlave No internal communication 0x22
OC_CommandUnknown
OC_WrongPassword Wrong password or last password terminated i.e.
OC_NoCard No transponder 0x0a
OC_BadFormat Wrong data format. 0x18
OC_FrameError Transmission error. Noise occurrence possible. 0x19
OC_NoAnswer No response from transponder. 0x1E
OC_TimeOut Operation time out. No transponder in reader field
For S50 cards:
SectorNo=0x00…0x0f
BlockNo=0x00…0x03
For S70 cards:
SectorNo=0x00…0x20 BlockNo=0x00…0x03
SectorNo=0x21…0x27 BlockNo=0x00…0x0f
7. Mechanism of Master ID
Master ID mechanism is based on principle the quick adding/removing of user card
to/out of reader memory by means of „master card”.
If you want to register a card as a „master card”, it is required to clear card
memory first by means of reset function to factory defaults.
NETRONIX .
CTU
-
Mxx
NETRONIX CTU-Mxx
39
After clearing the memory, apply selected card to module, whenever you like. This
moment, the card becomes “master card”. It is impossible to remove or add the
master card by means of other card.
If you want to register a card as a “user card”, apply “master card” to reader first,
and next during five seconds, apply registered card.
If you want to remove “user card” from memory, apply “master card” to reader
first, and next during five seconds apply card which is being removed.
After applying to a reader the “user card”, the reader enables electric output, which
has been programmed as a controlled by internal access control mechanism.
8. Reset to default settings
To restore default settings, connect reset terminal with ground for 2 s or longer. During
restoring the defaults following reader parameters are fixed:
Parameter name or functionality Value or setting
Address on serial bus 0x01
Baud rate on serial bus 9600 bps
Access password 0x0 - no password
Port 0 Common purpose input
Port 1 Common purpose input
Port 2 lock “on” indication
Port 3 lock “on” indication
“Autoreader” configuration 0x2,0x14,0x1,0x1,0x01,0xff
Transponder type Unique
Whole internal memory of transponders with
Master card
0xff 0xff 0xff 0xff means “memory
cleared”
9. Operation example of transponder
After correct connection of reader and achieving the bi-directional communication
between the reader and master computer, it is possible to perform read-out and write
operation of transponder memory.
Following operation assumes, that reader is in default condition, and applied S50
card is in default condition too. It means this card has full access rights and both 0xff ff
ff ff ff ff keys.
Logging to the reader is to make changes in its factory configuration.
C_LoginUser, 0x31, 0x32, 0x33, 0x34, 0x00
Because during manual experiments, time between subsequent commands sent via
serial interface is large and reaches values from some second to some minutes, it is
required to disable internal UID automatic read-out device.
It should be done by means of command:
NETRONIX .
CTU
-
Mxx
NETRONIX CTU-Mxx
40
SetAutoReaderConfig with parameters: 0x00, 0x00, 0x00, 0x00.
To read-out the transponder, first load key to key memory.
So load the key to SKB, by means of:
C_LoadKeyToSKB, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00
Enable the field.
TurnOnAntennaPower, 0x01
Apply transponder to reader.
Select transponder
C_Select, 0x00
Login to e.g. sector 3.
C_LoginWithSKB, 0x03, 0xAA, 0x00
Read-out 2nd block content in 3rd sector.
C_ReadBlock, 0x02
If all Operation Codes in response frames were marked as OC_Successful, so
obtained values are the values which have been red-out from the block.
Latest news concerning to
products
http://www.netronix.pl/
NETRONIX .
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.