Paul,
I can confirm it (see attach). Version CVS 20061118. All devices have an
external power. Earlier there was a version CVS 20060526 all correctly
works. I did not try intermediate versions.
test-owshell and test-owtcl are similar test-owfs.
Paul Alfille wrote:
Well, the simultaneous gets around the problem (when it works).
Looking at the code, there may be issues with the internal caching of
the "powered" state. I'll have to run some tests.
Paul
On 11/20/06, *Jerry Scharf* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Paul Alfille wrote:
> If the device is powered, the bus is released during the conversion
> process. Another thread, or separate program can access the bus
during
> this period.
>
> To do this effectively, you need a parallel structure to your
program --
> either threads, or forking model.
>
> Paul Alfille
>
Paul,
To be clear, I think this is unrelated to my simultaneous convert
problem. Correct?
jerry
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
_______________________________________________
Owfs-developers mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
#!/bin/sh
base=/mnt/1wire
echo OWFS
echo "write simultaneous/temperature=1"
echo 1 >$base/simultaneous/temperature
echo "read simultaneous/temperature=`cat $base/simultaneous/temperature`"
c=`date '+%s'`
echo "time: 0"
echo "28.BDD6ED000000: `cat $base/28.BDD6ED000000/temperature`"
s=`date '+%s'`; echo "time: `expr $s - $c`"
echo "28.C98DED000000: `cat $base/28.C98DED000000/temperature`"
s=`date '+%s'`; echo "time: `expr $s - $c`"
echo "28.CB85ED000000: `cat $base/28.CB85ED000000/temperature`"
s=`date '+%s'`; echo "time: `expr $s - $c`"
echo "28.A2C9ED000000: `cat $base/28.A2C9ED000000/temperature`"
s=`date '+%s'`; echo "time: `expr $s - $c`"
echo "28.F74BED000000: `cat $base/28.F74BED000000/temperature`"
s=`date '+%s'`; echo "time: `expr $s - $c`"
echo "28.97FBED000000: `cat $base/28.97FBED000000/temperature`"
s=`date '+%s'`; echo "time: `expr $s - $c`"
echo "28.2312EE000000: `cat $base/28.2312EE000000/temperature`"
s=`date '+%s'`; echo "time: `expr $s - $c`"
echo "28.8D15EE000000: `cat $base/28.8D15EE000000/temperature`"
s=`date '+%s'`; echo "time: `expr $s - $c`"
echo "28.B4CAED000000: `cat $base/28.B4CAED000000/temperature`"
s=`date '+%s'`; echo "time: `expr $s - $c`"
echo "28.75AFED000000: `cat $base/28.75AFED000000/temperature`"
s=`date '+%s'`; echo "time: `expr $s - $c`"
echo "28.0FACED000000: `cat $base/28.0FACED000000/temperature`"
s=`date '+%s'`; echo "time: `expr $s - $c`"
# ./test-owfs
OWFS
write simultaneous/temperature=1
read simultaneous/temperature=0
time: 0
28.BDD6ED000000: 27.9375
time: 1
28.C98DED000000: 19.6875
time: 3
28.CB85ED000000: 19.5
time: 4
28.A2C9ED000000: 18.625
time: 5
28.F74BED000000: 19.9375
time: 6
28.97FBED000000: 31.5625
time: 7
28.2312EE000000: 28.125
time: 9
28.8D15EE000000: 24.75
time: 10
28.B4CAED000000: 20.25
time: 11
28.75AFED000000: 17.6875
time: 12
28.0FACED000000: 19.0625
time: 13
# ./test-owshell
OWSHELL
write simultaneous/temperature=1
read simultaneous/temperature=1
time: 0
28.BDD6ED000000: 27.9375
time: 2
28.C98DED000000: 19.6875
time: 3
28.CB85ED000000: 19.5
time: 4
28.A2C9ED000000: 18.625
time: 5
28.F74BED000000: 20
time: 7
28.97FBED000000: 31.5625
time: 8
28.2312EE000000: 28.125
time: 9
28.8D15EE000000: 24.75
time: 10
28.B4CAED000000: 20.25
time: 11
28.75AFED000000: 17.625
time: 12
28.0FACED000000: 19.0625
time: 14
# ./test-owtcl
OWTCL
write simultaneous/temperature=1
read simultaneous/temperature=0
time: 0
28.BDD6ED000000: 27.875
time: 2
28.C98DED000000: 19.5625
time: 3
28.CB85ED000000: 19.5
time: 4
28.A2C9ED000000: 18.625
time: 5
28.F74BED000000: 19.9375
time: 6
28.97FBED000000: 31.5625
time: 7
28.2312EE000000: 28.0625
time: 8
28.8D15EE000000: 24.75
time: 10
28.B4CAED000000: 20.1875
time: 11
28.75AFED000000: 17.75
time: 12
28.0FACED000000: 19.125
time: 13
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers