Hi,

With a sleep in the loop, this is what I think most people do. There is an engineering compromise that balances the speed of discovery, the number of devices and the bus and processing capacity.

How quickly do you need to find the new iButton?

jerry

On 06/04/2013 05:17 AM, Giulio Carabetta wrote:
In the worst possible way: while (true) { }

Inside the loop I start looking at present objects, dropping known objects. Remaining items are compared with well-known authorized codes. Other items remaining are "aliens": I log them, and after a lot of them (in a defined time elapse) I consider it as a tampering try, so it's an alarm.

From the bus point of view, I have an owserver active, so that more modules can interact with it independently.

I didn't found a better way: I know that iButton does not send a "presence" signal when connected.

Let me know what do you think about

Giulio


2013/6/4 foster <[email protected] <mailto:[email protected]>>

    Hi.
    I'm working on the same solution DS2413P+. Also I'm planning to
    use ibutton.
    So I'd like to ask how did you solved: "and there is a continuous
    polling
    for detecting the presence of an iButton."
    Thx.


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to