Just ask for the device, even if it isn't in the directory listing. We only cache existence, not non-existence.
For the record, owserver doesn't regularly scan the bus. One of the underlying design points of OWFS is that all 1-wire communication is on demand, only. There is no background threads chewing up CPU cycles. OWFS will be quite happy in "suspend mode", as long as the USB or serial port comes back functional. With "reconnect" even that might not be essential. Cache flushing, thread cleanup, and network communication is all on demand as well. Only owftp has a background thread to close stale sessions.
Now your 1-wire topology will give the purists fits. I'm no expert, but having a splitter risks signal reflections that confuse the adapter. There is pleanty written on the subject, or you can make your own empirical tests.
Paul Alfille
Paul Alfille
On 9/16/06, Philipp Haeuser <[EMAIL PROTECTED]> wrote:
Alfille, Paul H.,M.D. wrote:
Hi Paul,
> Believe it or not, the problem is in your command line:
> /opt/owfs/bin/owserver -C -d "DS9097U" /dev/ttyS0 -p 3333
>
> OWFS interprests this as two devices: "DS9097U" and /dev/ttyS0
> Clearly only the second one is a real adapters, the first is NOT a serial device
> (its a text string) and so is a BadAdapter.
Oh. Now THAT was simple. :-) Thanks!
> Intermittent los of devices is not unusual. The 1-wire bus can be a little
> flaky, especially with a "hub" that sounds like a line spltter.
I don't know what it is exactly, but as it cost only about $10, you are
most likely right.
From what I've read so far, the search for devices on the bus
tends to cause the most errors in flaky conditions, and the reading of
sensors is not that critical.
owserver probably regularly scans the bus, and if it "misses" a device,
that device is "gone" and inaccessible until the next sucessful scan is
performed. Am I correct with that?
Is there a way of just giving owserver a list of devices (the IDs etc.)
that it always expects on the bus in addition to what is scans? If not,
I think that would be a nice new feature to have, e.g. via command line
options or a file that can be dumped/read.
What do you think of that? It would probably solve all my
intermittent loss problems. The one other 1wire home automation
system I know (a commercial product sold im Germany) offers this
solution with a sensor database it keeps, so they thought it's not a bad
idea, at least...
Philipp
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
