RFID reader based on Innovations ID-12
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rocrail |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
The MERG rfid starter kit and others available are built around the Innovations ID-12 reader.
This is a complete module, with RFID antenna and logic all in one enclosure, all it needs is +5V and then it outputs the data.
There is loads of documentation on various projects using the ID-12 reader. From one of these sites:
Quote:
The Data OutPut Format – ASCII
STX (ASCII 02) DATA (10 ASCII) CHECK SUM (2 ASCII) CR (ASCII 13) LF (ASCII 10) ETX (ASCII 03)
The communication starts with a start-of-
- serial line setting: 9600 baud, 8 bits, no parity, hardware handshake.
- The checksum is calculated as follows:
It outputs serial data in the following format. Each [] is one ascii byte.
[STX]
[D1] [D2] [D3] [D4] [D5] [D6] [D7] [D8] [D9] [D10]
[CS1] [CS2]
[CR]
[LF]
[ETX]
D1-D10 is the actual data, 10 ascii charactors. CS1 and CS2 are 2 ascii charactors that are the checksum for the data. Here is how the data sheet says the checksum is done to the data
if the 10 digits of ascii come in and lets say they equal
2 4 0 0 C C 5 7 8 3
and the check sum is
3 C
then to get the checksum you need to take pairs of ascii and convert them into one HEX byte and then XOR the hex bytes. which would look like this.
2 4 0 0 C C 5 7 8 3
becomes
[24] [00] [CC] [57] [83]
and 3 C becomes [3C]
then you can do a simple [24] ^ [00] ^ [CC] ^ [57] ^ [83] (^ is XOR) to see if it = [3C]
- The reader outputs the serial data any time it reads a valid RFID tag, it doesn't need to be polled.
- If a 8-port concentrator is used, it connects 8 readers and converts them to a single serial port; to identify the reader, it overwrites the [STX] character of the above data format with the bankid ( 1 to 8 ) in ASCII.
Related branches
Changed in rocrail: | |
importance: | Undecided → Wishlist |
Changed in rocrail: | |
status: | New → In Progress |
Changed in rocrail: | |
status: | Fix Committed → Fix Released |
The concentrator cannot be daisy chained with other concentrators so a reader offset address is needed if multiple concentrators are needed in the Rocrail setup.
Bus 5 must be used to setup the RFID's: wiki.rocrail. net/doku. php?id= sensor- int-en
http://