Am 09.06.2013 10:42, schrieb foster:
> Present is deprecated in actual version of owfs.
>
I doubt it will ever go away or change its semantics.


> Anyway I don't understand why I couldn't check if path exist. The whole
> problem is that if I remove ibutton, directory in owfs disappear,
>
Because the onewire is slow, owfs will not issue any command on the bus
if it can be avoided. You'll have to read a property of the chip from
the "uncached" directory to trigger actual bus action. Because the
ID-iButtons don't have a property, you'll have to check "present" for
these chips. Owfs will issue a "Match ROM" command for the chip then.


> but python still answer that directory exists.
> 
That is because it *exists*. This is not limited to python or any other
binding to owfs

$ ls /tmp/ow/uncached/
81.9E982F000000  bus.0  settings  statistics  structure  system

Connect 01.34F196150000

$ ls /tmp/ow/uncached/
01.34F196150000  81.9E982F000000  bus.0  settings  statistics  structure
 system

Disconnect 01.34F196150000

$ ls /tmp/ow/uncached/01.34F196150000
address  alias  crc8  family  id  locator  r_address  r_id  r_locator  type
$ ls /tmp/ow/uncached/01.34F196150000/id
/tmp/ow/uncached/01.34F196150000/id


After a while, owfs will forget about these disconnected chips. This can
be tuned by the --timeout_presence option. This may be ok for simpler
applications, for a large network I'd still go for "present".


Kind regards

        Jan


------------------------------------------------------------------------------
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