Hello
Thanks very much for so quick answers.
@Steinar No usually the lost device(s) don't re-appear after restarting owfs
and owserver. But it may vary. I have done so much tries and couldn't catch
any evidence of doing this or that solve the issue. Now I just wait and the
lost device(s) come back by itself. But it's annoying.
@Jan, Ok I'll do as you suggest. I've just installed ow-shell because it was
not installed on my system. (2.8p15 from Raspbian repo). I now have the
commands owdir, owread etc..
I have launched a small script to monitor the 1wire bus. Usually my bus
report 7 devices, this script will log the output of the commands "ls
/mnt/1wire/uncached/" and "owdir /uncached" when there is no 7 devices. So
we'll be able to see if there is any difference between those 2 commands.
Thanks for giving this path to follow. Here is my script:
#!/bin/sh
# 23 Mai 2016 -- Script to check if any device disappear from 1wire bus
while :
do
sleep 5 # check every 5 seconds
HOW_MANY=`ls -ld /mnt/1wire/uncached/??.* | wc -l` # On my system this must
return 7 when no problem
# echo $HOW_MANY
if [ $HOW_MANY -eq 7 ]; then
: # do nothing
else # log the output of "ls /mnt/1wire/uncached " and "owdir /uncached"
(filter for devices directory only)
echo "==========================================" >> /tmp/LogCheck1wire
date >> /tmp/LogCheck1wire
echo "======== ls /mnt/1wire/uncached ==========" >> /tmp/LogCheck1wire
ls -ld /mnt/1wire/uncached/??.* >> /tmp/LogCheck1wire
echo "=========== owdir /uncahed ===============" >> /tmp/LogCheck1wire
owdir /uncached | grep 00 >> /tmp/LogCheck1wire # On my system all
1wire devices end with 00 so this lists 7 devices
echo "==========================================" >> /tmp/LogCheck1wire
fi
done
By the way here is my kernel info:
$ uname -a
Linux Box 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux
Best regards
--
Guy
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers