Hi,

I have owfs running on a Gumstix Overo Earth, with a DS9490 bus master,
which in turn is connected to a Hobby-Boards DS2409-based 8 channel hub
(bought years ago when the DS2409 was still around, wish they still were).
The bus then branches out to several directions, carrying a total of ~10
sensors, mostly DS18.20 with the odd DS18S20/HIH3610 combo thrown in, so
far using ch1 main and the aux of the hub.

On ch2 aux I have a DS2762 based moisture meter board. Board was working
fine for a few days in test, but when I disconnected it to be moved to its
final location, I noticed that the script taking the readings every 30
seconds kept returning values even after the board was disconnected. More
precisely, the values read are either 0 or very close to 0 (-7.8125E-05 for
current), but the surprising thing is that the whole file structure remains
in place even days after the board is disconnected:

This is what it looks like 3 days after disconnecting the moisture meter
board:


# ls -al /mnt/owfs/1F.F96B08000000/aux       # <- this is ch2 of the hub
total 0
drwxr-xr-x 1 root root 8 Apr 16 09:34 .
drwxrwxrwx 1 root root 8 Apr 16 09:41 ..


But reading the DS2762 as if it was still connected:

# ls -al /mnt/owfs/1F.F96B08000000/aux/30.4CF9B8120000
total 0
drwxrwxrwx 1 root root   8 Apr 16 09:49 .
drwxr-xr-x 1 root root   8 Apr 16 09:34 ..
--w--w--w- 1 root root   1 Apr 16 09:49 PIO
drwxrwxrwx 1 root root   8 Apr 16 09:49 WS603
-r--r--r-- 1 root root  16 Apr 16 09:34 address
-rw-rw-rw- 1 root root 256 Apr 16 09:34 alias
-rw-rw-rw- 1 root root  12 Apr 16 09:49 amphours
-rw-rw-rw- 1 root root   1 Apr 16 09:49 cc
-rw-rw-rw- 1 root root   1 Apr 16 09:49 ce
-rw-rw-rw- 1 root root   1 Apr 16 09:49 coc
-r--r--r-- 1 root root   2 Apr 16 09:34 crc8
-r--r--r-- 1 root root  12 Apr 16 09:34 current
-rw-rw-rw- 1 root root  12 Apr 16 09:34 currentbias
-rw-rw-rw- 1 root root   1 Apr 16 09:49 dc
-rw-rw-rw- 1 root root   1 Apr 16 09:49 de
-rw-rw-rw- 1 root root   1 Apr 16 09:49 defaultpmod
-rw-rw-rw- 1 root root   1 Apr 16 09:49 defaultswen
-rw-rw-rw- 1 root root   1 Apr 16 09:49 doc
-r--r--r-- 1 root root   2 Apr 16 09:34 family
-r--r--r-- 1 root root  12 Apr 16 09:34 id
-r--r--r-- 1 root root  16 Apr 16 09:34 locator
-rw-rw-rw- 1 root root   1 Apr 16 09:49 lock.0
-rw-rw-rw- 1 root root   1 Apr 16 09:49 lock.1
-rw-rw-rw- 1 root root   3 Apr 16 09:49 lock.ALL
-rw-rw-rw- 1 root root 256 Apr 16 09:34 memory
-r--r--r-- 1 root root   1 Apr 16 09:49 mstr
-rw-rw-rw- 1 root root   1 Apr 16 09:49 ov
drwxrwxrwx 1 root root   8 Apr 16 09:49 pages
-r--r--r-- 1 root root   1 Apr 16 09:49 pmod
-rw-rw-rw- 1 root root   1 Apr 16 09:49 ps
-r--r--r-- 1 root root  16 Apr 16 09:34 r_address
-r--r--r-- 1 root root  12 Apr 16 09:34 r_id
-r--r--r-- 1 root root  16 Apr 16 09:34 r_locator
-r--r--r-- 1 root root   1 Apr 16 09:49 sensed
-r--r--r-- 1 root root   1 Apr 16 09:49 swen
-r--r--r-- 1 root root  12 Apr 16 09:49 temperature
-r--r--r-- 1 root root  32 Apr 16 09:34 type
drwxrwxrwx 1 root root   8 Apr 16 09:49 typeB
drwxrwxrwx 1 root root   8 Apr 16 09:49 typeE
drwxrwxrwx 1 root root   8 Apr 16 09:49 typeJ
drwxrwxrwx 1 root root   8 Apr 16 09:49 typeK
drwxrwxrwx 1 root root   8 Apr 16 09:49 typeN
drwxrwxrwx 1 root root   8 Apr 16 09:49 typeR
drwxrwxrwx 1 root root   8 Apr 16 09:49 typeS
drwxrwxrwx 1 root root   8 Apr 16 09:49 typeT
-rw-rw-rw- 1 root root   1 Apr 16 09:49 uv
-rw-rw-rw- 1 root root  12 Apr 16 09:49 vbias
-r--r--r-- 1 root root  12 Apr 16 09:49 vis
-r--r--r-- 1 root root  12 Apr 16 09:49 volt
-rw-rw-rw- 1 root root  12 Apr 16 09:49 volthours


# cat /mnt/owfs/1F.F96B08000000/aux/30.4CF9B8120000/type
DS2760

# cat /mnt/owfs/1F.F96B08000000/aux/30.4CF9B8120000/volt
0

# cat /mnt/owfs/1F.F96B08000000/aux/30.4CF9B8120000/current
-7.8125E-05


Trying the same thing (ie.reading them after they're disconnected) with any
other sensor returns file not found, as expected.

Just out of curiosity I took this a bit further and tried reading from
30.4CF9B8120000
via a port it was never connected to:

# ls -al /mnt/owfs/1F.B06808000000/main/30.4CF9B8120000/
total 0
drwxrwxrwx 1 root root   8 Apr 16 09:59 .
drwxr-xr-x 1 root root   8 Apr 16 09:34 ..
--w--w--w- 1 root root   1 Apr 16 09:59 PIO
drwxrwxrwx 1 root root   8 Apr 16 09:59 WS603
-r--r--r-- 1 root root  16 Apr 16 09:34 address
-rw-rw-rw- 1 root root 256 Apr 16 09:34 alias
-rw-rw-rw- 1 root root  12 Apr 16 09:59 amphours
-rw-rw-rw- 1 root root   1 Apr 16 09:59 cc
-rw-rw-rw- 1 root root   1 Apr 16 09:59 ce
-rw-rw-rw- 1 root root   1 Apr 16 09:59 coc
-r--r--r-- 1 root root   2 Apr 16 09:34 crc8
-r--r--r-- 1 root root  12 Apr 16 09:34 current
-rw-rw-rw- 1 root root  12 Apr 16 09:34 currentbias
-rw-rw-rw- 1 root root   1 Apr 16 09:59 dc
-rw-rw-rw- 1 root root   1 Apr 16 09:59 de
-rw-rw-rw- 1 root root   1 Apr 16 09:59 defaultpmod
-rw-rw-rw- 1 root root   1 Apr 16 09:59 defaultswen
-rw-rw-rw- 1 root root   1 Apr 16 09:59 doc
-r--r--r-- 1 root root   2 Apr 16 09:34 family
-r--r--r-- 1 root root  12 Apr 16 09:34 id
-r--r--r-- 1 root root  16 Apr 16 09:34 locator
-rw-rw-rw- 1 root root   1 Apr 16 09:59 lock.0
-rw-rw-rw- 1 root root   1 Apr 16 09:59 lock.1
-rw-rw-rw- 1 root root   3 Apr 16 09:59 lock.ALL
-rw-rw-rw- 1 root root 256 Apr 16 09:34 memory
-r--r--r-- 1 root root   1 Apr 16 09:59 mstr
-rw-rw-rw- 1 root root   1 Apr 16 09:59 ov
drwxrwxrwx 1 root root   8 Apr 16 09:59 pages
-r--r--r-- 1 root root   1 Apr 16 09:59 pmod
-rw-rw-rw- 1 root root   1 Apr 16 09:59 ps
-r--r--r-- 1 root root  16 Apr 16 09:34 r_address
-r--r--r-- 1 root root  12 Apr 16 09:34 r_id
-r--r--r-- 1 root root  16 Apr 16 09:34 r_locator
-r--r--r-- 1 root root   1 Apr 16 09:59 sensed
-r--r--r-- 1 root root   1 Apr 16 09:59 swen
-r--r--r-- 1 root root  12 Apr 16 09:59 temperature
-r--r--r-- 1 root root  32 Apr 16 09:34 type
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeB
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeE
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeJ
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeK
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeN
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeR
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeS
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeT
-rw-rw-rw- 1 root root   1 Apr 16 09:59 uv
-rw-rw-rw- 1 root root  12 Apr 16 09:59 vbias
-r--r--r-- 1 root root  12 Apr 16 09:59 vis
-r--r--r-- 1 root root  12 Apr 16 09:59 volt
-rw-rw-rw- 1 root root  12 Apr 16 09:59 volthours


And yet another one:

# ls -al /mnt/owfs/1F.B06808000000/aux/30.4CF9B8120000/
total 0
drwxrwxrwx 1 root root   8 Apr 16 09:59 .
drwxr-xr-x 1 root root   8 Apr 16 09:34 ..
--w--w--w- 1 root root   1 Apr 16 09:59 PIO
drwxrwxrwx 1 root root   8 Apr 16 09:59 WS603
-r--r--r-- 1 root root  16 Apr 16 09:34 address
-rw-rw-rw- 1 root root 256 Apr 16 09:34 alias
-rw-rw-rw- 1 root root  12 Apr 16 09:59 amphours
-rw-rw-rw- 1 root root   1 Apr 16 09:59 cc
-rw-rw-rw- 1 root root   1 Apr 16 09:59 ce
-rw-rw-rw- 1 root root   1 Apr 16 09:59 coc
-r--r--r-- 1 root root   2 Apr 16 09:34 crc8
-r--r--r-- 1 root root  12 Apr 16 09:34 current
-rw-rw-rw- 1 root root  12 Apr 16 09:34 currentbias
-rw-rw-rw- 1 root root   1 Apr 16 09:59 dc
-rw-rw-rw- 1 root root   1 Apr 16 09:59 de
-rw-rw-rw- 1 root root   1 Apr 16 09:59 defaultpmod
-rw-rw-rw- 1 root root   1 Apr 16 09:59 defaultswen
-rw-rw-rw- 1 root root   1 Apr 16 09:59 doc
-r--r--r-- 1 root root   2 Apr 16 09:34 family
-r--r--r-- 1 root root  12 Apr 16 09:34 id
-r--r--r-- 1 root root  16 Apr 16 09:34 locator
-rw-rw-rw- 1 root root   1 Apr 16 09:59 lock.0
-rw-rw-rw- 1 root root   1 Apr 16 09:59 lock.1
-rw-rw-rw- 1 root root   3 Apr 16 09:59 lock.ALL
-rw-rw-rw- 1 root root 256 Apr 16 09:34 memory
-r--r--r-- 1 root root   1 Apr 16 09:59 mstr
-rw-rw-rw- 1 root root   1 Apr 16 09:59 ov
drwxrwxrwx 1 root root   8 Apr 16 09:59 pages
-r--r--r-- 1 root root   1 Apr 16 09:59 pmod
-rw-rw-rw- 1 root root   1 Apr 16 09:59 ps
-r--r--r-- 1 root root  16 Apr 16 09:34 r_address
-r--r--r-- 1 root root  12 Apr 16 09:34 r_id
-r--r--r-- 1 root root  16 Apr 16 09:34 r_locator
-r--r--r-- 1 root root   1 Apr 16 09:59 sensed
-r--r--r-- 1 root root   1 Apr 16 09:59 swen
-r--r--r-- 1 root root  12 Apr 16 09:59 temperature
-r--r--r-- 1 root root  32 Apr 16 09:34 type
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeB
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeE
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeJ
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeK
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeN
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeR
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeS
drwxrwxrwx 1 root root   8 Apr 16 09:59 typeT
-rw-rw-rw- 1 root root   1 Apr 16 09:59 uv
-rw-rw-rw- 1 root root  12 Apr 16 09:59 vbias
-r--r--r-- 1 root root  12 Apr 16 09:59 vis
-r--r--r-- 1 root root  12 Apr 16 09:59 volt
-rw-rw-rw- 1 root root  12 Apr 16 09:59 volthours

Found this originally on 2.7p28, then quickly compiled a fresh one, all the
prints above taken with:

# owfs --version
owfs version:
        2.9p3
libow version:
        2.9p3

I've also tried rebooting the gum of course, no change.

Any ideas?

cheers,
Ors
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to