HelloI succesfully compiled 2.9p1 on sheevaplug. I now use the last
build.Unfortunately, I've still the same issue.Here is my test script php
where I read DS18S20 by 3 differents ways:
#!/usr/bin/php -q <?php // Check to make sure the file ownet.php
existsif(file_exists("/opt/owfs/share/php/OWNet/ownet.php"))    {               
require
"/opt/owfs/share/php/OWNet/ownet.php";  } else if(file_exists("ownet.php")) 
{               require "ownet.php";    } else {                die("File 
'ownet.php' is not found.\n");
}echo "mesure with owserver and ownet
library\n";$sonde_adresse="sheevaplug@1W@/uncached/1F.4E2904000000/main/temperature_cave_vin/temperature";list($source_hostname,$source_type,$source_adresse)
= explode ("@",$sonde_adresse);$ow=new
OWNet("tcp://$source_hostname",$timeout=5);$sonde_mesure_brute=($ow->read($source_adresse,$parse_value=true));echo
"mesure s1
uncached:$sonde_mesure_brute\n";$sonde_adresse="sheevaplug@1W@/1F.4E2904000000/main/temperature_cave_vin/temperature";list($source_hostname,$source_type,$source_adresse)
= explode
("@",$sonde_adresse);$sonde_mesure_brute=($ow->read($source_adresse));echo
"mesure s1 cached:$sonde_mesure_brute\n";echo "\nmesure with owfs\n";echo
"mesure s1
cached:".file_get_contents('/mnt/1wire/1F.4E2904000000/main/temperature_cave_vin/temperature')."\n";echo
"mesure s1
uncached:".file_get_contents('/mnt/1wire/uncached/1F.4E2904000000/main/temperature_cave_vin/temperature')."\n";
echo "\nmesure with
owhttpd\n";$sonde_adresse="sheevaplug@1W@/1F.4E2904000000/main/temperature_cave_vin/temperature";list($source_hostname,$source_type,$source_adresse)
= explode ("@",$sonde_adresse);                echo "mesure s1
cached:".file_get_contents("http://$source_hostname:3001$source_adresse";)."\n";$sonde_adresse="sheevaplug@1W@/uncached/1F.4E2904000000/main/temperature_cave_vin/temperature";list($source_hostname,$source_type,$source_adresse)
= explode ("@",$sonde_adresse);echo "mesure s1
uncached:".file_get_contents("http://$source_hostname:3001$source_adresse";)."\n";
?>
And here is the result
root@sheevaplug:domotique# ./ds18s20.phpmesure with owserver and ownet
librarymesure s1 uncached:mesure s1 cached:          21mesure with
owfsmesure s1 cached:          21mesure s1 uncached:     21.0625mesure with
owhttpdmesure s1 cached:1-Wire Web:
1F.4E2904000000/main/temperature_cave_vin/temperature
OWFS     Bus listing </>         OWFS homepage <http://www.owfs.org>     
Dallas/Maxim
<http://www.maxim-ic.com>       by  Paul H Alfille
<mailto://[email protected]>  
1F.4E2904000000/main/temperature_cave_vin/temperature
uncached version
</uncached/1F.4E2904000000/main/temperature_cave_vin/temperature>  
<CODE> </1F.4E2904000000/main/temperature_cave_vin/> up         directory
temperature          21.0625
mesure s1 uncached:1-Wire Web:
uncached/1F.4E2904000000/main/temperature_cave_vin/temperature
OWFS     Bus listing </>         OWFS homepage <http://www.owfs.org>     
Dallas/Maxim
<http://www.maxim-ic.com>       by  Paul H Alfille
<mailto://[email protected]>  
uncached/1F.4E2904000000/main/temperature_cave_vin/temperature
<CODE> </uncached/1F.4E2904000000/main/temperature_cave_vin/> up        
directory
temperature          21.0625




--
View this message in context: 
http://owfs-developers.1086194.n5.nabble.com/Issue-with-simple-DS18S20-reading-cached-uncached-with-PHP-ownnet-or-owhttpd-tp9841p9845.html
Sent from the OWFS Developers mailing list archive at Nabble.com.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to