Aa R500SP Im
Aa R500SP Im
Aa R500SP Im
AAID Security Solutions, Inc 101 TDK BLVD Suite E Peachtree City, GA 30269 Phone: 770-632-8878 Toll Free: 866-800-2243 Fax: 770-632-8810 Email: techsupport@autoaccessid.com or sales@autoaccessid.com Website: www.autoaccessid.com
2/7/06 Page 1 of 26
AAID
TABLE OF CONTENTS
SCOPE .......................................................................................................................... 3
1.1 Identification ......................................................................................................................................... 3 1.2 Product Overview ................................................................................................................................. 3 1.3 Functional Diagram .............................................................................................................................. 4
NETWORKING .............................................................................................................. 5
2.1 Single Network structure ...................................................................................................................... 5 2.2 Basic Network Operation...................................................................................................................... 6 2.3 Establishing Node ID Addressing (automatic assignment) ................................................................... 8 2.4 Packet Control ...................................................................................................................................... 9 2.5 Addressing Techniques ...................................................................................................................... 11
DIAGNOSTICS ............................................................................................................ 23
5.1 Diagnostic LEDS ................................................................................................................................ 23 5.1.1 5.1.2 5.1.3 Normal Mode ...............................................................................................................................23 Auto Poll Mode (Master reader only) ...........................................................................................23 Communications Reset (Start-up) ...............................................................................................24
SPECIFICATIONS....................................................................................................... 25
6.1 Technical Specification....................................................................................................................... 25
2/7/06 Page 2 of 26
AAID
1
1.1
SCOPE
Identification
The AA-R500SP is provided by AAID Security Solutions for use in conjunction with the Auto Access Tagging System. The AA-R500SP reader is a PC tuneable range reader. This means the range adjustment is accomplished by changing a value in the reader using the AA-CUSC programming cable and software. When the reader is used in a wiegand application it is referred to as an AA-R500WP. This includes the AAR500SP reader and AA-W100 Wiegand interface. When the reader is used in a serial application it is referred to as an AA-R500SP. Please note that the SP and WP refer to the same reader. When referring to the reader by itself (without specifying wiegand or serial applications) the reader shall be specified as an AAR500SP Reader. The Reader is used in either system to perform the following functions: Receive, decode and validate data from Auto Access Tags. Output relevant tag data onto a Reader Network, into an AA-W100 Wiegand Interface, or into an AAC2000 Control Panel.
1.2
Product Overview
The AA-R500SP reader is not designed to be installed outdoors. If you are mounting the reader outdoors you must use a NEMA 4 outdoor enclosure. You may use AAIDs AA-NEM4, AA-PLRE, or AA-BSRE to house the reader outdoors. For proper RF signalling the reader should be mounted at least 5 feet high. The reader should not be mounted directly to metal or housed in a metal enclosure, even if the antenna is mounted outside the enclosure.
The Reader consists of the following functionality and properties: RF Module (RF Receiver and Demodulator). Micro-controller LED indicators on the output connectors.
2/7/06 Page 3 of 26
AAID
A basic Reader block diagram is illustrated in Figure 1. * The Auto Access Reader can be used with the following AAID Antennas: AA-SANT, AA-WANT, AARADK, AA-RAEK and any other 433.92MHz antenna that has a 50 Ohm termination resistance.
1.3
Functional Diagram
RF Receiver Module
Memory
Microprocessor Controller
Indication LED's
RS232 Port
Program Port
This receiver consists of a microprocessor controller with onboard firmware that communicates directly with the RF Receiver module and connects to the outside world via 3 serial interfaces. A program port is provided to allow for on site updating of the firmware as well as the setting of parameters directly through this port instead of via the network. Data can be sent independently to and from the 2 RS485 ports and will be simultaneously represented on the RS232 port. All connections are done via 2 RJ45 connectors and are protected against EMI and ESD noise.
2/7/06 Page 4 of 26
AAID
2
2.1
NETWORKING
SINGLE NETWORK STRUCTURE
The AA-R500SP readers are connected together in a daisy chain type format. That is, Reader 1 is connected to Reader 2 is connected to Reader 3 etc. The network can handle a maximum of 254 readers because of addressing constraints. Communications between readers is done via a 2 wire RS485 connection. Connections from reader 1 to the PC can be done via the RS232 or Left RS485 ports. This network need not necessarily connect to a PC, but can be some other device such as a buffer or handheld computer etc.
PC
Power RS485
Power RS485
Power RS485
Power RS485
2/7/06 Page 5 of 26
AAID
important that a stable power supply is used. If more than one power supply is used it is important that the first command sent after the power has stabilised is the Reset Network command.
2.2
Data passed up and down this network is arranged in a packet format (Explained later). Each reader can be individually addressed via 2 address techniques, or the entire network can be broadcast to by assigning the destination address as value 255. These addressing techniques will also be explained later.
Figure 4: The RS485 ports on each reader are defined as a left port and a right port.
Data transmitted from the right port of a reader would be received in the left port of the reader to the right of it and vice versa. With this kind of configuration, it is possible for the reader to control the direction that the data is flowing, and handle it accordingly. The complete network would look as follows:-
R 2 wire RS485
R 2 wire RS485
R 2 wire RS485
R 2 wire RS485
PC
2/7/06 Page 6 of 26
AAID
Data Flow
Figure 5:
This network works on a Command/Response type operation. That is, a command is sent down to a specific reader in a left to right direction, while the response is sent back from right to left. Simply, commands run left to right, while responses run from right to left.
PC
R 2 wire RS485
2 wire RS485
2 wire RS485
2 wire RS485
Command Data Response Data Figure 6: Each Command and Response is formatted into a specific packet of data with error checking etc included in the protocol format. Data can only flow in one direction at a time since the hardware is using a single serial port to control all this serial data. In order to make the installation of this system easier, it was necessary to stop the need of having to give each reader and individual address via a dipswitch or other plug in computer methods. Because this system is able to determine data direction, it is possible to establish which reader is number 1 and from there the consecutive addresses can be established. As mentioned earlier, there are 2 distinct methods of addressing a reader when sending out a command. The first address is called the NODE ID. This is the electrical address of the reader and is defined automatically by its position in the network. The first reader (very left) would be assigned NODE ID 1 and increment consecutively to the right until a maximum of 254. The second address is called the READER ID. This address is defined by the user and is written to the non-volatile memory of each reader and can be from 1 to 254. If a reader is removed from the network, or simply bypassed, the NODE ID's will naturally change. The function of the READER ID is therefore to allow a consistent and permanent address assignment to each reader. Logically, one would use NODE ID addresses in a command packet to assign a READER ID to a specific reader. NODE ID's provide a failsafe method of always accessing the correct reader if the network structure is known.
2/7/06 Page 7 of 26
AAID
2.3
At power up, the NODE ID's are automatically established from the readers' connection position on the network. Basically, how this works is that Reader 1 needs to be established. From there, each subsequent reader can be assigned its NODE ID. This whole process takes about 3.5 seconds at power up and consists of the following sequences. 1. Each reader powers up and sets its data flow in a right hand direction. 2. Each reader then continuously sends ' * ' s out of their right hand RS485 ports, and prepares to receive this character in their left hand RS485 ports. This character is sent out in single bursts every 25ms. This avoids any framing errors should a reader not be able to lock onto the data stream in the correct position from start up. 3. If an ' * ' is received in the left RS485 port, the TAG LED (slave indicator) is illuminated to indicate this. Each reader, except Reader 1, will therefore receive this character on its left hand RS485 port. 4. Reader 1 has now been established. 5. This process of sending out the right hand RS485 port lasts for 1 second.
R 2 wire RS485
R 2 wire RS485
R 2 wire RS485
R 2 wire RS485
PC
Figure 7:
6. Once Reader 1 has been established, it will start continuously sending its NODE ID out of the right hand RS485 port. This will be a continuous ' 1 ' and lasts for 500ms. 7. Each remaining reader, on receiving a byte, assumes it to be the NODE ID of the reader to the left of it, adds 1 to this value and assigns it as its own NODE ID. This new NODE ID is passed again to the right. This continuous sending of NODE ID's to the right has a ripple down effect on the network, until every receiver has been assigned its NODE ID and the network has stabilised.
R 2 wire RS485
R 2 wire RS485
R 2 wire RS485
Page 8 of 26
AAID
2 Figure 8:
8. Although the Reader 1 only sends the NODE ID 1 out for 500ms, the rest of the network remains in this receive - add 1 - transmit mode for a full second. This prevents any erroneous data from Reader 1 corrupting the whole network assignment. 9. There is now a further 1 second delay before the whole network is now ready and active. Reader 1 actually waits a further 2 seconds after its 500ms timeout before it becomes active, making it active 500ms after the others.
2.4
PACKET CONTROL
As explained earlier, data is passed up and down this network in a specific packet format. It would be too slow for a reader to receive a complete packet before transmitting it on to the next reader. Because of this, the packet is transmitted byte for byte as it is received. The reader at the opposite end of the network would therefore have its packet delayed by the time taken to transmit a single byte down the length of the network. This is a relation of the baud rate and the number of readers on the network. After start up, the readers are all set into the idle condition, waiting for either a command or response packet. Here they will wait until they receive a command from the PC or a response packet from another reader. The IDLE/OK status LED will be on at this stage. Command packets (Left to Right) are transmitted across the entire length of the network.
R 2 wire RS485
PC
2 wire RS485
2 wire RS485
2 wire RS485
"ABCDE"
A B C D E A B C D A B C A B
2/7/06 Page 9 of 26
AAID
D E
C D E
B C D E
Figure 9:
In the idle mode, data can be received from either direction. Since there is only one serial port on the microprocessor, the header byte received will determine from which direction the packet is being received. Once this byte has been received, the communication drivers are immediately set-up to flow the data in the correct direction. They will stay in this direction until the entire packet has been received, or the communications has timed out, whereby the reader will go back into the idle mode. While this data is being transmitted down the network, each reader assembles the packet in its memory for analysis when completed. Once a complete command packet is received, the contents are analysed for errors and addressing. Should this be a Command packet, the addressed reader(s) will then respond. After receiving a complete packet, each reader will immediately switch back into the idle mode. (Receive from both directions). In this mode, the next packet (should there be any) will automatically be passed in the correct direction. Should there be a break of more than 25ms between any bytes of the data packet, each reader will automatically switch back into the idle mode and ignore that packet. In this way, any communications failure will not result in the network locking up. Should a spontaneous response packet be initiated e.g. Network Reset as a result of a power glitch, the packet will be passed back to the PC
3 1 2 4 n
R 2wire RS485
R 2 wire RS485
R 2 wire RS485
R 2 wire RS485
PC
Figure 10:
Each time a valid packet is received, the Packet RX LED will flash. This can be used to determine whether valid communications is taking place. Response packets are now sent back exactly the same way as the command packet, but in the opposite direction. Each reader would assemble the packet as it passed through to determine when the response is complete. Once it has received a complete response, the reader will switch into the idle mode, ready for the next Command packet.
2/7/06 Page 10 of 26
AAID
R 2 wire RS485
R 2 wire RS485
R 2 wire RS485
R 2 wire RS485
PC
2.5
ADDRESSING TECHNIQUES
The addressing systems for these networks have been made as flexible as possible. This will allow for various configurations and keep the system open for later expansion. When addressing a reader, there are 3 addresses to take into account:1. Network ID - Identifies the network ( used in multi-network configurations ) 2. Reader ID - User defined address for a specific reader - Permanent address defined by the user 3. Node ID - Hardware address. This address is defined by the readers' position on the network
All three of these bytes are settable in the header bytes of the command packet. If a zero is placed into any of these positions, it is an indication to the firmware to ignore this parameter, and only use the remaining addresses to determine the reader being addressed. If a value of 255 is placed into any of these addresses, it is an indication to the reader that this co mmand is being broadcast to that appropriate level. A 255 value in the Network ID byte means that the command is being broadcast over all the networks. Whereas, a 255 in either the Receiver ID bytes or Node ID bytes means that the command is being broadcast to all the readers in that network. Node ID addresses take priority over Reader ID addresses. That is, a valid Node ID address will be accepted before a valid Reader ID. When commands are broadcast, there is no response packet generated. The only exception for this is the Reset Network Command.
2/7/06 Page 11 of 26
AAID
Ignore Command
Start
N
Network ID = Reader
Network ID = 255
Network ID =0
Node ID = Reader
Node ID = 255
Node ID =0
Accept Command
Y Y
Reader ID = Reader
Y Y N
Reader ID = 255
Reader ID =0
N
Ignore Command Figure 12:
Y
Invalid Address
2/7/06 Page 12 of 26
AAID
Some examples would be as follows:Network ID 0 0 0 0 1 1 1 255 255 255 255 0 Receiver ID 0 12 0 12 0 4 0 12 0 255 0 255 Node ID 0 0 5 5 0 0 123 0 45 0 255 255 Effect Invalid - will have no response Access Reader with Reader ID = 12 Access Reader 5 on the network Access Reader 5 on the network. Reader ID address is ignored Invalid - will have no response Access Reader with Reader ID = 4 on Network 1 Access Reader 123 on the Network 1 Access all Readers with Reader ID = 12 on all the networks Access Reader 45 on all the Networks Access all possible readers Access all possible readers Access all possible readers Etc
2/7/06 Page 13 of 26
AAID
COMMAND DETAILS
Reset Network Command
3.1.1
The function of this command is to reset the entire network, and re-establish the NODE ID addresses. The NODE ID address in the command packet should hold a 255 ( broadcast value ) to ensure that the entire network enters into the reset sequence. Only reader 1 will respond with the reply packet. This is the only condition under which a response is sent from a broadcast command. Note: receiving a reset network reply packet at any point where no reset command was sent, will imply that a spontaneous reset has occurred. This would probably be as the result of a power problem.
3.1.2
The function of this command is to set Reader 1 into an Automatic Polling sequence. It sets the Auto Polling flag in the Data EEPROM to enable Auto Polling after power up. It will establish the size of the network by sending out tag requests until such time that it gets no response. This will determine the number of readers on the network. Once this has been established, it will sequentially poll each reader indefinitely. Data responses from the readers pass through reader 1 and onto the PC. Readers without a valid tag will respond with an empty packet of data. This will enable the monitoring software to determine if any readers are no longer responding. This command can be addressed directly to reader 1, or on a broadcast basis. When broadcasting, any reader that is not Reader 1, will disable its Auto Polling flag in its Data EEPROM to avoid any problems in the future because of incorrect parameters. This command is used to restart the Auto Polling if it has been stopped by a break character. ( See Auto Polling section )
3.1.3
The function of this command is to disable future Auto Polling after power up by resetting the Auto Polling flag in the Data EEPROM. This command can be addressed directly to reader 1, or on a broadcast basis.
3.1.4
The Ping Command is simply used to check if a reader is on the network and responding correctly. It can be used to read back Network ID's, Reader ID's and Node ID's. Inserted into the response from a Ping Co mmand is and Error Number. This number refers to the last error the respective reader has experienced. Once read, this number is cleared. To clear all the errors on all the readers, simply broadcast a Ping Command.
2/7/06 Page 14 of 26
AAID
Error Numbers are as follows: Error Number 0 1 2 3 4 5 6 7 8 9 No errors encountered Unknown reader command received Tag Table underflow error Command Packet checksum error RF Module - Unknown command response RF Module - Unknown general response RF Module - Re-sync failure RF Module - Command response failure RF Module - Receive response failure No response packet received from polled reader Definition
3.1.5
The function of this command is to assign the Network ID as well as commit it to the Data EEPROM.
3.1.6
The function of this command is to assign the Reader ID as well as commit it to the Data EEPROM.
3.1.7
This will be the most used command on any system. Its function to request a Tag from the reader if there is one ready for sending. A tag is removed from the tag buffer, and returned with this command, making room for a new tag. New tags from the RF Module are written over existing tags in the Tag Buffer in order to keep the data fresh. Should no tag be ready for sending, and empty packet is sent back. That is, no data in the Data field.
3.1.8
This command will set the RSSI value and commit it to the Data EEPROM. It also initiates an RF Module reset and writes the new value to the RF Module. Broadcasts here are useful to set all the readers to their most sensitive etc. The RSSI Value ranges from 0 to 255. 0 being the most sensitive.
3.1.9
This command will return the RSSI value it is currently using, and defined in the Data EEPROM.
2/7/06 Page 15 of 26
AAID
2/7/06 Page 16 of 26
AAID
2/7/06 Page 17 of 26
AAID
Rate 0 = 115200 baud Rate 1 = 57600 baud Rate 2 = 38800 baud Rate 3 = 19200 baud Rate 4 = 9600 baud
RF Module versions are read directly from the module itself. This data is in the following format:
2/7/06 Page 18 of 26
AAID
CFV - Controller Firmware Version RFV - RF Module Firmware Version CHV - Controller Hardware Version RHV - RF Module Hardware Version
2/7/06 Page 19 of 26
AAID
4
4.1
The interface standards are as follows: Interface Baud Parity Start bit Stop Data Bits Serial RS232 / RS485 115 kB/s, 57.6 kB/s, 38.4 kB/s, 19.2 kB/s, 9.6 kB/s Selectable via program port None 1 1 8
4.2
CONNECTIONS
2/7/06 Page 20 of 26
AAID
Please not this picture show the reader white. The reader is typically grey in color. RJ45 Socket Left Side (In) Pin 1. 2. 3. 4. 5. 6. 7. 8. Pin Name RS232 RXD RS232 TXD PWR GND RS485+ RS485TTL TXD TTL RXD Description RS232 Receiver Pin RS232 Transmit Pin 6V 18V DC Ground Non-Inverted RS485 Inverted RS485 TTL RS232 Transmit Pin TTL RS232 Receive Pin
Note that all the various communications levels (RS232, RS485 and TTL) are at all times carrying the same data, i.e. the exact same for the LEFT (IN) RJ45 RS485, will be on RS232 as well as TTL. RJ45 Socket Right Side (Out) Pin 1. 2. 3. 4. 5. 6. 7. 8. Pin Name SCK RST PWR GND RS485+ RS485MOSI MISO Description Programming Programming 6V 18V DC Ground Non-Inverted RS485 Inverted RS485 Programming Programming
When connecting these readers onto a network only 4 wires must be used, ie: Power Ground RS485+ RS485These wires are arranged in such a way on the connector that a straight through connection between readers is all that is needed. These connections are located in the centre of the 8 pin RJ45 connector and are wired as follows:
2/7/06 Page 21 of 26
AAID
OUT RJ45 3 4 5 6
IN RJ45 3 4 5 6
2/7/06 Page 22 of 26
AAID
5
5.1
DIAGNOSTICS
DIAGNOSTIC LEDS
The 4 LED's on the RJ45 connectors indicate functions of the system and are used entirely for diagnostic purposes. Their assignments are as follows (from left to right):
5.1.1
Normal Mode LED Colour Orange Green Orange Green Function Successful Poll of current reader Valid Packet Received From either direction Valid Tag received from the RF Module Indicates that the system communications are Idle and OK
5.1.2
Auto Poll Mode (Master reader only) LED Colour Orange Green Orange Green Function Successful Poll of current reader Valid Packet Received Return packet only Valid Tag received from the RF Module Command request packet sent
2/7/06 Page 23 of 26
AAID
5.1.3
Communications Reset (Start-up) LED Colour Orange Green Orange Green Function Reader identified as Master reader Not used Reader identified as Slave reader Startup break characters transmitting
2/7/06 Page 24 of 26
AAID
6
6.1
SPECIFICATIONS
TECHNICAL SPECIFICATION RF Specifications Rx Frequency Demodulation Sensitivity Bandwidth Stability Electrical Specifications Supply Voltage Max current consumption ESD protection Interface Environmental Operational temperature Storage temperature Humidity Physical Size Weight Colour Type of material Input/Output Connections
Function / Value
433 Mhz ASK -103 dBm 700 kHz 2ppm / C 6V DC 18V DC 72 to 90 mA 2kV Human Body Model RJ45 connectors -10 C to +60 C -20 C to +70 C 5% to 90% (non condensing) 84 mm x 40 mm x 19 mm 45 grams White PVC (ultrasonically sealed) 2 x RJ45 Sockets
2/7/06 Page 25 of 26
AAID
Certification
The following standards applied in accordance with Article 5 of the directive, 1999/5/EC: EN 300 220-1 V1.2.1 (1997-11)
2/7/06 Page 26 of 26