Ahhh!!! I always refer to the descriptions on owfs.org, which don't
show tempres so I hadn't realised that it existed.
So I assume that the resolution comments refer to the DS18B20, but the
DS18S20 is 12 bit and no possibility to change it.
If I set tempres to say 11, then write to /simultaneous/temperature will
it then read at 11 bit and update latesttemp and temperature11?
Thanks
Mick
On 10/03/2019 19:24, Jan Kandziora wrote:
Am 10.03.19 um 19:46 schrieb Mick Sulley:
OK, but looking through Jan's checklist again -
* power all sensors
* set the sensor EEPROM to 9 bit default resolution.
?? How to do that? Is it just a read temperature9 on DS18B20?
With recent OWFS, you simply write 9 to the sensor's tempres node.
Then, the readout thread is as follows:
1. trigger a 12-bit resolution conversion on each sensor for
initialization.
2. write something to /simultaneous/temperature to trigger all
temperature conversions at the same time.
3. wait a second
4. read /uncached/<sensorid>/latesttemp of each sensor
5. If the result for a sensor is not 85°C, store and go to 2.
6. 85°C. Check the resolution. If it is still 12 bit, that's a valid
reading. Store and go to 2.
?? How do I check the resolution?
Read the sensor's uncached tempres node.
Kind regards
Jan
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers