[prev in list] [next in list] [prev in thread] [next in thread] 

List:       owfs-developers
Subject:    [Owfs-developers] owdir data stability
From:       Henry <Henry.Pootel () regall ! net>
Date:       2015-06-14 10:43:47
Message-ID: 1434278627153-11428.post () n5 ! nabble ! com
[Download RAW message or body]

Hello dear friends.

Please, check me, correct and help if you known.
I've a lab: Raspberry PI B+, Pidora (newest Raspberian don't work with owfs
3.1.p0, it has some pause,
check my messages at
http://owfs-developers.1086194.n5.nabble.com/some-problem-with-owserver-td11288.html
),
my own good compiled owfs 3.1.p0 from sources, two 20-family devices and six
28-family temp. sensors on a 1-wire bus. It's a PCB board with good
electrical contacts. 

I've wrote a simple bash script "qqq.sh":
----- cut here ----
#!/bin/bash

owdir /uncached

echo =================================

for i in {1..100}; do
  how_many_sensors=`owdir /uncached | fgrep /2 | wc -l`;
  # echo $how_many_sensors;
  if [ $how_many_sensors -lt 8 ];
  then
       echo $how_many_sensors;
  fi
done
----- cut here ----

And I've got a result:
 
 root@RASPBERRY-3:~> ./qqq.sh
/uncached/20.FA5F0E000000
/uncached/20.95670E000000
/uncached/28.FF78011B0400
/uncached/28.FF2401630400
/uncached/28.FF26C3121400
/uncached/28.FF4E061A0400
/uncached/28.FFB19F121400
/uncached/28.FF55CC121400
/uncached/bus.1
/uncached/bus.0
/uncached/settings
/uncached/system
/uncached/statistics
/uncached/structure
/uncached/simultaneous
/uncached/alarm
=================================
5
7
4
5
6
6
4

Also for test, I've added "sleep 2;" command to the loop and got the same
bad result.
By another words, errors of bus scan is 10% about, sometimes it loses some
sensors on 
the bus while scan.

Why it's posible?  


My project includes a web interface for configure some formules for mesuared
data
calculation. Firstly I need to get simple list of devices to configure
senors of devices.
Sometimes my Raspberry PI loses one or more devices by owserver. The web
information is broken and I'm very sad...

All the best.
Henry.





--
View this message in context: \
http://owfs-developers.1086194.n5.nabble.com/owdir-data-stability-tp11428.html Sent \
from the OWFS Developers mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic