![]() |
Holy crap, check out the Dangerous Things store! |
Wiegand26 protocol |
Post Reply
|
| Author | |
rookie
Newbie
Joined: 22 November 2011 Status: Offline Points: 10 |
Post Options
Thanks(0)
Quote Reply
Topic: Wiegand26 protocolPosted: 05 January 2012 at 9:06am |
|
How is the output from a wiegand26 protocol reader vs output from a serial parallax reader? I am assuming both will transmit over a rx/tx line to any device i hook to it? does the wiegand just need a layer of decoding to extract the chip ID?
|
|
![]() |
|
amal
Admin Group
Joined: 22 November 2005 Location: United States Status: Offline Points: 2065 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 January 2012 at 10:45am |
|
Hi rookie, There are actually two questions wrapped up together; 1) How are the physical protocols different (signal voltage, signal rate, data pins/lines, etc.)? 2) How are the data schema different (packet format, bit meaning, etc.)? Let's take a look at #1 - the physical. Basically, the Wiegand protocol is messed up. There is no official baud rate as there is in typical TTL or RS232 serial communication. There is often a clock rate, which is used to time against the bits coming out of the data wires. Some readers that emulate Wiegand will output the data at a pre-set baud rate (2400 or 9600 usually). Also, if the reader is following the Wiegand interface standard, there will be two data lines. Here's what Wikipedia has to say about it; The Wiegand interface uses three wires, one of which is a common ground and two of which are data transmission wires usually called DATA0 and DATA1 but sometimes also labeled Data Low and Data High. When no data is being sent both DATA0 and DATA1 are at the high voltage. When a 0 is sent the Data Low wire (also called DATA0) is at a low voltage while the Data High wire stays at a high voltage. When a 1 is sent Data High is at the low voltage while Data Low stays at the high voltage. The high voltage level is usually +5VDC to accommodate for long cable runs (most reader manufacturers publish a maximum of 500 feet) from the door readers to the associated access control panel typically located in a secure closet. The bottom line is, Wiegand as a physical interface, is all screwy. It came about in the 80's and was based on a proprietary access control/security application using "Wiegand wires". The "Wiegand effect" however is kind of fascinating, and worth a read. Ok, let's move on to #2 - the data. Again, from Wikipedia; The communications protocol used on a Wiegand interface is known as the Wiegand protocol. The original Wiegand format had one parity bit, 8 bits of facility code, 16 bits of ID code, and a trailing parity bit for a total of 26 bits. The first parity bit is calculated from the first 12 bits of the code and the trailing parity bit from the last 12 bits. However many inconsistent implementations and extensions to the basic format exist. An advantage of the Wiegand signaling format is that it allows very long cable runs, far longer than other interface standards of its day allowed. A reader emulating Wiegand (no true "Wiegand sensors" are used anymore) will simply read other tag formats and output 24 bits of the tag ID data across the data0 and data1 wires according to the physical interface requirements. The problem with a 24 bit identity is that it is very small, and other types of tags have much larger identity bit layouts. For example, the EM4102 family has a 40 bit identity tucked into it's 64 bit schema, and many "Wiegand compatible" readers will read them just fine. However, when the reader outputs the first 24 bits of the tag ID, it truncates or drops the rest. This means a massive amount of EM4102 tags will appear to have the same tag ID. For more information, search this forum for other posts about the Wiegand interface. Edited by amal - 05 January 2012 at 10:47am |
|
|
Amal ;)
www.amal.net |
|
![]() |
|
amal
Admin Group
Joined: 22 November 2005 Location: United States Status: Offline Points: 2065 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 January 2012 at 3:49pm |
|
I also found this PDF from HID Corp that might be somewhat useful; Understanding Wiegand
|
|
|
Amal ;)
www.amal.net |
|
![]() |
|
rookie
Newbie
Joined: 22 November 2011 Status: Offline Points: 10 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 January 2012 at 4:25pm |
|
As if RFID didn't have enough security issues with out lopping off almost half the ID string!
Just so tempting to use a cheap reader from ebay that uses wiegand26 protocol. Do you have any tips on where to get inexpensive serial based rfid readers? The redbee and parallax are really nice but projects get spendy really quick when using multiples of those readers, and I can't find anymore parallax boards for ten bucks on ebay! |
|
![]() |
|
amal
Admin Group
Joined: 22 November 2005 Location: United States Status: Offline Points: 2065 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 January 2012 at 9:02pm |
|
Yeah, I don't know of any retail prices that are in the $10 range for LF readers. eBay can be a great source for small numbers of units, but if you have a project that requires large quantities or ongoing, budgetable requirements, you might consider partnering with a manufacturer to get cheaper OEM pricing.
|
|
|
Amal ;)
www.amal.net |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |