>> hmmm. I seem to recall seeing it done elsewhere (not owfs) as:
>>
>> tell all the temperature sensors to start a conversion
>> wait 300ms
>> read all the sensors
>Actually, that's what that "simultaneous" entry is for.
>echo "1" > /1wire/simultaneous/temperature
Cool!
>The delay will still be 1sec (300 is too slow for 12 bits on the DS18S20),
>but all the sensors will be ready after that second.
I misremembered the 300 msec number. This is what my old code does:
switch(o->type) {
case TEMPERATURE_1820:
o->conversion_time = 350; // cold sensors really need this much
break;
case TEMPERATURE_18B20:
case TEMPERATURE_1822:
o->conversion_time = 750;
break;
All determined empirically years ago. I must have never tried an 18S20.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers