On Sat, Mar 6, 2010 at 10:11 PM, Marc MERLIN <[email protected]> wrote:

> I'm migrating from digitemp and with digitemp if I was getting errors with
> my serial or USB adapter or bus, I got clear errors from the program.
>

Great, but digitemp and owfs have quite different approaches. Digitemp is
really meant to run in foreground and diagnose, while OWFS runs mostly in
the background as a service to other programs. That makes reporting more
difficult.

>
> With owfs, I didn't find a clear explanation of what happens if I'm trying
> to read a temperature from the virtual filesystem, and:
>
> - bus is too long/unstable and the read yields a CRC error
>

After 3 attempts (like digitemp) you get an error returned (EINVAL). There
are error statistics under statistics/bus/... and statistics/read/... that
can be monitored to see if the hardware is marginal. There is a program
(owmon) that is supposed to show the errors in the foreground, but I haven't
tested it recently.

>
> - the 1 wire bus gets unplugged from the interface, so all devices
> disappear
>
You can an error (and all the devices disappear. Again there are errors in
statistics, and lots of data if you run with debugging on.


>
> - the USB interface (DS2490) locks up
>
I'm not sure what you mean by locks up. Unplgged? replugged?

>
> - the serial interface (DS9097U) has some other kind of error
>
> I realize that something will likely end up in the logs for this, but what
> happens to my read system call on the temperature file in the 4 different
> cases listed above?
>
Error and timeouts.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to