wiegand reader connection
Hi
I'm a newbee but I like using the javeline stamp for some projects. I want to connect a acces controle standard reader (like from HID or indala) to my Pic by using the industrial standard wiegand connection (D0 and D1) so i can make my own litle acces controle system.
Has someone suggestions on how to do this. I don't know how to read the pulses on the two lines comming from the reader. It is a standard in acces controle but I can't fine much information on it.
(pardon for my englich but it is not my mother language)
Can somebody help me on this subject. Any help is welcom.
I'm a newbee but I like using the javeline stamp for some projects. I want to connect a acces controle standard reader (like from HID or indala) to my Pic by using the industrial standard wiegand connection (D0 and D1) so i can make my own litle acces controle system.
Has someone suggestions on how to do this. I don't know how to read the pulses on the two lines comming from the reader. It is a standard in acces controle but I can't fine much information on it.
(pardon for my englich but it is not my mother language)
Can somebody help me on this subject. Any help is welcom.
Comments
http://www.nettwerked.net/HID-access.txt
There are converters so you can deal with rs232
(perfect for javelin, so data·is·received in the background)
http://www.cypressworld.com/CD/HTML/cvt2000.htm
regards peter
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·
Has many schematics and command descriptions and data formats.
http://www.cypressworld.com/CD/PDF/cvt/CVX-1200.pdf
Simple Wiegand converter with JAL pic sources
(you could translate this into sx or javelin code)
http://www.remember.ro/scripts/wiegand.php
AVR 2004 design contest: wiegand to serial converter
http://www.circuitcellar.com/avr2004/DA3616.html
click on entry to download sources and schematics
regards peter
Post Edited (Peter Verkaik) : 11/1/2006 6:07:14 AM GMT
Thanks for the information. I know that thier are converters on the maket but I realy want to have everything in my hand and create it self. It is to easy to buy something. Thier is more pleasure when you can get something to work when it is created by yourself.
So, Do you think it is possible with the javeline stamp. I already created some nice things with it. It is very easy to connect a display on it (I use a BPI-216L) and a real time clock (I use a ds1302). Or is the pic to slow to handel the signals comming from the wiegand.
I was thinking to use the pulsin command but i'm not shure how to set it up to look at two pins at the same time.
Any help are sugestions are welcome.
regards stef
I don't think the javelin can do that without missing pulses.
You could use an sx48 protoboard, but then you do need
a sxblitz or sxkey. You could convert the avr code or the
jal source from the links I posted. There is a free jal compiler
that generates pic assembly. On sxlist.com there is
a utility that converts pic assembly into sx assembly.
The protoboard has a prototype area on which you
can mount a javelin. It already provides you with a 1A 5V supply.
Then use a serial connection beween javelin and sx.
The javelin would deal with the higher level aspects of your project.
regards peter
I have an sxkey and 50 sx28ac/DP pic's. So you think it is doable with this one.
The problem is I don't have mutch knollage of that one. I orderd the stater kit for playing with it but I find it more difficult then the javeline stamp. I also have a basic compiler for this one.
So if i'm understanding it. You propose to use the sx28 to handel the wiegand convertion and connect him by rs232 to a javeline stamp. Can y use the basic compiler to create a software for the sx28, ccompile it and puch it in the pic. Does it matther on what feq he is running? I only hafe 50Mhz Xtals.
I know this is not the right post but dos someone knows where i can find some help for the sx28.
stef
I would start with the jal source. Download the files here: http://www.remember.ro/dl/wiegand/wiegand.tar.gz
See here for JAL compiler: http://www.voti.nl/jal/index_1.html
Compile the jal source.
Then go here:
http://www.sxlist.com/cgi-bin/mpasm2sasm2.exe
paste the pic assembly source (from jal source) and convert to sx assembly source
Save the sx assembly source as a .src file.
Load it into the sxkey editor and try to assemble.
It probably will generate some errors, but you'll have a start.
You can get support for the sx28 at the sx forum:
http://forums.parallax.com/forums/default.aspx?f=7
regards peter
I will give it a try. I will swith over to sx28 and give it also a go on that forum if i stumbel on questions. It will happen, i know myself.
best reguards
·
here is a link to the basic stamp forum, discussing wiegand with sx28 using SX/B.
http://forums.parallax.com/showthread.php?p=570417
You could start from there and skip the whole jal conversion.
regards peter
This is realy helpful.
·
I know very little about the Javelin ;( but if you have access to the port B edge detect register I think you could make it work. Because although the pulses are only about 40-50uSec there is about 2mSec between them. So you could use the portB edge detect register to "capture" the quick pulses.
Just a thought....
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·
if only...
The javelin is an interpreter for java bytecodes.
The tick used by javelin is 8.68 uSec, but the time
required to do a pulseIn() (meaning fetch,decode,execute)
is much longer. Having to monitor two pins would require a port bytewide read,
comparing to the previous state and act upon the result.
That all just takes too long.
regards peter
Yes, but the port B edge detect register will LATCH the pulse. So you only need to examine the latch every 2 milliseconds.
It was just a thought...
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·
I've also found this ones with several wiegand converters (rs-232, 485, usb, etc).
They seem nice, small and light. I also requested a quotation and its less expensive than others.
website: www.etconcept.com/Wiegand.htm
Best regards