If you are trying to read from a serial port, you don't need to poll or
interrupt. Just do a normal blocking read() or select() on the serial device
- the call will only return when there is data to read. (Basically what Jim
said)
Using select() you can add a timeout if you want so you could print a message
every minute or so saying "still nothing" .. "still nothing".
--- In Walter Marvin <> wrote:
>
> If all your doing is reading the tags polling is as good a method as any.
> Otherwise don't let these guys dissuade you from perusing interrupts, just
> because they don't know how to do them.
>
>
>
> ________________________________
> From: Jim Jackson <>
> To:
> Sent: Saturday, April 7, 2012 12:56 PM
> Subject: Re: [ts-7000] TS7260 Serial Interrupt
>
>
> Â
>
>
> On Wed, 4 Apr 2012, Paddy wrote:
>
> > I am currently working on the TS7260, I am a newbie to this embedded
> > board and am trying to interface a RFID reader to the TS7260.
>
> > I am currently able to poll and get the required information but I would
> > prefer that when the tag is presented to the RFID reader which is
> > connected to COM2 would generate an interrupt.
>
> Does the RFID reader send anything on the serial when a tag is presented -
> if not then, as far as I can see, you have to poll. If it does send some
> character(s) on the serial link, then simply have a process wating for the
> char(s) suffices, no?
>
> > Is there any sample software that could help me investigate how this is
> > accomplished?
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|