EmbeddedRelated.com
Forums
Memfault Beyond the Launch

2- HID Weigand Reader interface with RCM3000

Started by pra_shant3000 April 19, 2005


Is it possible to interface, two HID weigand reader interface with
the RCM3000?
Is yes? please , tell me how?




Hi,
I did it with a RCM3700, DC9 comes with a Wiegand.lib, using this lib
you will be able to handle any wiegand reader. You can handle 4
wiegand readers with an RCM3700.

Regards,
Mario --- In rabbit-semi@rabb..., "pra_shant3000"
<pra_shant3000@y...> wrote:
>
>
> Is it possible to interface, two HID weigand reader interface with
> the RCM3000?
> Is yes? please , tell me how?



Hi,
    Ohh.....great ........But have you  used 4 interrupt lines?  or  ordinary I/O lines?
Can microprocessor handle two inerrupts at the same time? Because I tried using  4 interrupt lines PE0,PE1,PE4,PE5 of port E. But my the flags get currupted when I swipe 2 proximity cards (weigand o/p) at the same time on two HID weigand readers..
   Which method you followed? .please tell me.
  Thanks for immediate reply..........
  

mgonzalezrdz <m...@yahoo.com.mx> wrote:

Hi,
I did it with a RCM3700, DC9 comes with a Wiegand.lib, using this lib
you will be able to handle any wiegand reader. You can handle 4
wiegand readers with an RCM3700.

Regards,
Mario--- In r...@yahoogroups.com, "pra_shant3000"
<pra_shant3000@y...> wrote:
>

>   Is it possible to interface, two HID weigand reader interface with
> the RCM3000?
>   Is yes? please , tell me how?

__________________________________________________

No, you have to use External interrupts, look at the
Wiegand.lib and Wiegand.c, it is included in DC9.
--- Prashant Y <pra_shant3000@pra_...> wrote:
> Hi,
> Ohh.....great ........But have you used 4
> interrupt lines? or ordinary I/O lines?
> Can microprocessor handle two inerrupts at the same
> time? Because I tried using 4 interrupt lines
> PE0,PE1,PE4,PE5 of port E. But my the flags get
> currupted when I swipe 2 proximity cards (weigand
> o/p) at the same time on two HID weigand readers..
> Which method you followed? .please tell me.
> Thanks for immediate reply.......... > mgonzalezrdz <mgonzalezrdz@mgon...> wrote:
>
> Hi,
> I did it with a RCM3700, DC9 comes with a
> Wiegand.lib, using this lib
> you will be able to handle any wiegand reader. You
> can handle 4
> wiegand readers with an RCM3700.
>
> Regards,
> Mario > --- In rabbit-semi@rabb..., "pra_shant3000"
> <pra_shant3000@y...> wrote:
> >
> >
> > Is it possible to interface, two HID weigand
> reader interface with
> > the RCM3000?
> > Is yes? please , tell me how? > ---------------------------------
> Yahoo! Groups Links
>
> To > __________________________________________________
>

_________________________________________________________
Hi,
                I  interfaced  2 HID  Weigand readers to 2 external interrupts INT0 & INT1
 (i.e. 4 I/O lines PE0,PE1,PE4 & PE5). But when I swipes 2 HID weigand cards at the same time, only one of them is detected correctly & another gives incorrect  data. I think no any processor can handle 2 interrupts at the same time. I kept both interrupts on same priority.I cant keep 2 interrupts on different priorities. Because, Reading of the weigand cards is the Highest priority in my project [Anti -Pass-Back ].
 
              When I swipes the 2 weigand cards in front of the 2 readers, exactly at the same instant ,  immediately both data will be transmitted  by the Weigand reader to the interrupt lines of Rabbit. But microprocessor will not handle 2 data , at the same time. Similarly , readers also will not wait  for microprocessor . Readers will go on sending the data, contineously . It will take some miliseconds[ 53.3ms = 26 bits * 2050 microseconds]. I am using 26 bits Weigand  card. So microprocessor will be busy for certain miliseconds. When 2 interrupts arises at the same time , either one of them will be executed properly  or both will be partially executed & the flags  gets currupted. Ultimately, microprocessor will be unble to execute the code, which is written for, reader's weigand data detection.  After some time ,microprocessor  will come out of  the program execution.
       
               I  explained this in detail , because I am trying for  Anti-Pass-back [Access Control System] using Rabbit3000. But anti-pass-back feature  requires 2 weigand readers interface.
Please, help me. If there is any other  solution or alternative for this , please reply me. 
 
              Please,  suggest me the best alternative  for Anti-Pass-back using Rabbit3000.
 
[ Data pulse Width= 50 microseconds, Gap between 2 data bits= 2000 microcesonds]
[Total Period= 2050microseconds for one weigand data bit.]

Mario Gzz <m...@yahoo.com.mx> wrote:
No, you have to use External interrupts, look at the
Wiegand.lib and Wiegand.c, it is included in DC9.
--- Prashant Y <p...@yahoo.com> wrote:
> Hi,
>     Ohh.....great ........But have you  used 4
> interrupt lines?  or  ordinary I/O lines?
> Can microprocessor handle two inerrupts at the same
> time? Because I tried using  4 interrupt lines
> PE0,PE1,PE4,PE5 of port E. But my the flags get
> currupted when I swipe 2 proximity cards (weigand
> o/p) at the same time on two HID weigand readers..
>    Which method you followed? .please tell me.
>   Thanks for immediate reply..........
>   
>
> mgonzalezrdz <m...@yahoo.com.mx> wrote:
>
> Hi,
> I did it with a RCM3700, DC9 comes with a
> Wiegand.lib, using this lib
> you will be able to handle any wiegand reader. You
> can handle 4
> wiegand readers with an RCM3700.
>
> Regards,
> Mario> --- In r...@yahoogroups.com, "pra_shant3000"
> <pra_shant3000@y...> wrote:
> >
> > 
> >   Is it possible to interface, two HID weigand
> reader interface with
> > the RCM3000?
> >   Is yes? please , tell me how?> ---------------------------------
> Yahoo! Groups Links
>
>    To > __________________________________________________
> /

_________________________________________________________
I have no idea how much a reader costs, but why not
create a multi-CPU system where you have a single RCM
per reader? You can then have "master" CPU which
collects BUFFERED data from reader CPUs.

--- Prashant Y <pra_shant3000@pra_...> wrote:

> Hi,
> I interfaced 2 HID Weigand
> readers to 2 external interrupts INT0 & INT1
> (i.e. 4 I/O lines PE0,PE1,PE4 & PE5). But when I
> swipes 2 HID weigand cards at the same time, only
> one of them is detected correctly & another gives
> incorrect data. I think no any processor can handle
> 2 interrupts at the same time. I kept both
> interrupts on same priority.I cant keep 2 interrupts
> on different priorities. Because, Reading of the
> weigand cards is the Highest priority in my project
> [Anti -Pass-Back ].
>
> When I swipes the 2 weigand cards in
> front of the 2 readers, exactly at the same instant
> , immediately both data will be transmitted by the
> Weigand reader to the interrupt lines of Rabbit. But
> microprocessor will not handle 2 data , at the same
> time. Similarly , readers also will not wait for
> microprocessor . Readers will go on sending the
> data, contineously . It will take some miliseconds[
> 53.3ms = 26 bits * 2050 microseconds]. I am using 26
> bits Weigand card. So microprocessor will be busy
> for certain miliseconds. When 2 interrupts arises at
> the same time , either one of them will be executed
> properly or both will be partially executed & the
> flags gets currupted. Ultimately, microprocessor
> will be unble to execute the code, which is written
> for, reader's weigand data detection. After some
> time ,microprocessor will come out of the program
> execution.
>
> I explained this in detail , because
> I am trying for Anti-Pass-back [Access Control
> System] using Rabbit3000. But anti-pass-back feature
> requires 2 weigand readers interface.
> Please, help me. If there is any other solution or
> alternative for this , please reply me.
>
> Please, suggest me the best
> alternative for Anti-Pass-back using Rabbit3000.
>
> [ Data pulse Width= 50 microseconds, Gap between 2
> data bits= 2000 microcesonds]
> [Total Period= 2050microseconds for one weigand data
> bit.]
>
> Mario Gzz <mgonzalezrdz@mgon...> wrote:
> No, you have to use External interrupts, look at the
> Wiegand.lib and Wiegand.c, it is included in DC9. >
> --- Prashant Y <pra_shant3000@pra_...> wrote:
> > Hi,
> > Ohh.....great ........But have you used 4
> > interrupt lines? or ordinary I/O lines?
> > Can microprocessor handle two inerrupts at the
> same
> > time? Because I tried using 4 interrupt lines
> > PE0,PE1,PE4,PE5 of port E. But my the flags get
> > currupted when I swipe 2 proximity cards (weigand
> > o/p) at the same time on two HID weigand readers..
> > Which method you followed? .please tell me.
> > Thanks for immediate reply..........
> >
> >
> > mgonzalezrdz <mgonzalezrdz@mgon...> wrote:
> >
> > Hi,
> > I did it with a RCM3700, DC9 comes with a
> > Wiegand.lib, using this lib
> > you will be able to handle any wiegand reader. You
> > can handle 4
> > wiegand readers with an RCM3700.
> >
> > Regards,
> > Mario
> >
> >
> > --- In rabbit-semi@rabb...,
> "pra_shant3000"
> > <pra_shant3000@y...> wrote:
> > >
> > >
> > > Is it possible to interface, two HID weigand
> > reader interface with
> > > the RCM3000?
> > > Is yes? please , tell me how?
> >
> >
> >
> >
> >
> > ---------------------------------
> > Yahoo! Groups Links
> >
> > To
> >
> >
> > __________________________________________________
> >
_________________________________________________________
>




I'm not familiar with Weigand readers, so I may not fully understand your problem. But are you sitting in an interrupt routine for 53.3 milliseconds waiting for data? I would hope not. At the data rates you are talking about, I see no reason why the Rabbit can't handle two inputs. I suspect it has to do more with your implementation than any deficiency in the rabbit.
 
Steve


Prashant Y <p...@yahoo.com> wrote:
Hi,
                I  interfaced  2 HID  Weigand readers to 2 external interrupts INT0 & INT1
 (i.e. 4 I/O lines PE0,PE1,PE4 & PE5). But when I swipes 2 HID weigand cards at the same time, only one of them is detected correctly & another gives incorrect  data. I think no any processor can handle 2 interrupts at the same time. I kept both interrupts on same priority.I cant keep 2 interrupts on different priorities. Because, Reading of the weigand cards is the Highest priority in my project [Anti -Pass-Back ].
 
              When I swipes the 2 weigand cards in front of the 2 readers, exactly at the same instant ,  immediately both data will be transmitted  by the Weigand reader to the interrupt lines of Rabbit. But microprocessor will not handle 2 data , at the same time. Similarly , readers also will not wait  for microprocessor . Readers will go on sending the data, contineously . It will take some miliseconds[ 53.3ms = 26 bits * 2050 microseconds]. I am using 26 bits Weigand  card. So microprocessor will be busy for certain miliseconds. When 2 interrupts arises at the same time , either one of them will be executed properly  or both will be partially executed & the flags  gets currupted. Ultimately, microprocessor will be unble to execute the code, which is written for, reader's weigand data detection.  After some time ,microprocessor  will come out of  the program execution.
       
               I  explained this in detail , because I am trying for  Anti-Pass-back [Access Control System] using Rabbit3000. But anti-pass-back feature  requires 2 weigand readers interface.
Please, help me. If there is any other  solution or alternative for this , please reply me. 
 
              Please,  suggest me the best alternative  for Anti-Pass-back using Rabbit3000.
 
[ Data pulse Width= 50 microseconds, Gap between 2 data bits= 2000 microcesonds]
[Total Period= 2050microseconds for one weigand data bit.]

Mario Gzz <m...@yahoo.com.mx> wrote:
No, you have to use External interrupts, look at the
Wiegand.lib and Wiegand.c, it is included in DC9.
--- Prashant Y <p...@yahoo.com> wrote:
> Hi,
>     Ohh.....great ........But have you  used 4
> interrupt lines?  or  ordinary I/O lines?
> Can microprocessor handle two inerrupts at the same
> time? Because I tried using  4 interrupt lines
> PE0,PE1,PE4,PE5 of port E. But my the flags get
> currupted when I swipe 2 proximity cards (weigand
> o/p) at the same time on two HID weigand readers..
>    Which method you followed? .please tell me.
>   Thanks for immediate reply..........
>   
>
> mgonzalezrdz <m...@yahoo.com.mx> wrote:
>
> Hi,
> I did it with a RCM3700, DC9 comes with a
> Wiegand.lib, using this lib
> you will be able to handle any wiegand reader. You
> can handle 4
> wiegand readers with an RCM3700.
>
> Regards,
> Mario> --- In r...@yahoogroups.com, "pra_shant3000"
> <pra_shant3000@y...> wrote:
> >
> > 
> >   Is it possible to interface, two HID weigand
> reader interface with
> > the RCM3000?
> >   Is yes? please , tell me how?> ---------------------------------
> Yahoo! Groups Links
>
>    To > __________________________________________________
> /

_________________________________________________________


Thanks for reply.
                         I don't want to use two RCM3000 modules. But I will try to interface AT89c52/ 89s52 with RCM3000 through its serial port. Because I have used all I/o ports of RCM3000. Only one serial port is remained. I will connect one weigand reader & keypad(4*4 matrix) with AT89c52. Users records will be stored in the RCM3000 . 2nd Weigand
reader will be interfaced with RCM3000. I think this will be a multiple CPU system, which will handle 2 interrupts separately & it will be a cost effective.
                       
Please,Tell me your opinion , about the possibility of interfacing of 89c52 with RCM3000.   


George Georgiev <g...@sbcglobal.net> wrote:

I have no idea how much a reader costs, but why not
create a multi-CPU system where you have a single RCM
per reader? You can then have "master" CPU which
collects BUFFERED data from reader CPUs.

--- Prashant Y wrote:

> Hi,
> I interfaced 2 HID Weigand
> readers to 2 external interrupts INT0 & INT1
> (i.e. 4 I/O lines PE0,PE1,PE4 & PE5). But when I
> swipes 2 HID weigand cards at the same time, only
> one of them is detected correctly & another gives
> incorrect data. I think no any processor can handle
> 2 interrupts at the same time. I kept both
> interrupts on same priority.I cant keep 2 interrupts
> on different priorities. Because, Reading of the
> weigand cards is the Highest priority in my project
> [Anti -Pass-Back ].
>
> When I swipes the 2 weigand cards in
> front of the 2 readers, exactly at the same instant
> , immediately both data will be transmitted by the
> Weigand reader to the interrupt lines of Rabbit. But
> microprocessor will not handle 2 data , at the same
> time. Similarly , readers also will not wait for
> microprocessor . Readers will go on sending the
> data, contineously . It will take some miliseconds[
> 53.3ms = 26 bits * 2050 microseconds]. I am using 26
> bits Weigand card. So microprocessor will be busy
> for certain miliseconds. When 2 interrupts arises at
> the same time , either one of them will be executed
> properly or both will be partially executed & the
> flags gets currupted. Ultimately, microprocessor
> will be unble to execute the code, which is written
> for, reader's weigand data detection. After some
> time ,microprocessor will come out of the program
> execution.
>
> I explained this in detail , because
> I am trying for Anti-Pass-back [Access Control
> System] using Rabbit3000. But anti-pass-back feature
> requires 2 weigand readers interface.
> Please, help me. If there is any other solution or
> alternative for this , please reply me.
>
> Please, suggest me the best
> alternative for Anti-Pass-back using Rabbit3000.
>
> [ Data pulse Width= 50 microseconds, Gap between 2
> data bits= 2000 microcesonds]
> [Total Period= 2050microseconds for one weigand data
> bit.]
>
> Mario Gzz wrote:
> No, you have to use External interrupts, look at the
> Wiegand.lib and Wiegand.c, it is included in DC9.>
> --- Prashant Y wrote:
> > Hi,
> > Ohh.....great ........But have you used 4
> > interrupt lines? or ordinary I/O lines?
> > Can microprocessor handle two inerrupts at the
> same
> > time? Because I tried using 4 interrupt lines
> > PE0,PE1,PE4,PE5 of port E. But my the flags get
> > currupted when I swipe 2 proximity cards (weigand
> > o/p) at the same time on two HID weigand readers..
> > Which method you followed? .please tell me.
> > Thanks for immediate reply..........
> >
> >
> > mgonzalezrdz wrote:
> >
> > Hi,
> > I did it with a RCM3700, DC9 comes with a
> > Wiegand.lib, using this lib
> > you will be able to handle any wiegand reader. You
> > can handle 4
> > wiegand readers with an RCM3700.
> >
> > Regards,
> > Mario
> >
> >
> > --- In r...@yahoogroups.com,
> "pra_shant3000"
> > wrote:
> > >
> > >
> > > Is it possible to interface, two HID weigand
> > reader interface with
> > > the RCM3000?
> > > Is yes? please , tell me how?
> >
> >
> >
> >
> >
> > ---------------------------------
> > Yahoo! Groups Links
> >
> > To
> >
> >
> > __________________________________________________
> >
>

>
_________________________________________________________
>

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/rabbit-semi/

<*> To unsubscribe from this group, send an email to:
r...@yahoogroups.com

<*

__________________________________________________


Memfault Beyond the Launch