|
-
Aug 13th, 2010, 11:03 AM
#1
Re: Timer in a Thread
 Originally Posted by Shaggy Hiker
He has to poll for the presence of a tag.
The whole thing is kind of awkward, which makes me think that there might be a better design. The RFID reader I deal with HAS a better design, so I don't have to deal with all the garbage you are going through, but that's life.
My question is whether or not you will have multiple hardware readers? In my case, two RFIDs within the field will interfere with each other and neither will be seen. How is it that you can have multiple reads?
I am thinking of a design closer to a TCP server, where one thread is doing the reading, then when something is seen, it spawns a new thread to handle that item and passes off to that new thread. I'm not sure that such a thing is possible in your case, because I am not familiar with an RFID reader that would allow for multiple reads, nor do I know whether or not there is any further work to do.
I did not want to assume that.
If that is correct then the timer should be sending the poll frequently enough that it doesn't miss anything. If there is a tag in view the response should trigger the handler.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|