One of my temp-sensors was defect so I switched it out for a new one, 
but then my application started to spew out exceptions when trying to 
read the temperature from the sensor.
After some looking and scratching my head I noticed that the new sensor 
was an DS18B20 where all my other sensors was DS18S20.

I went lowlevel with owdir and owread and this is what I found out:

pi@raspberrypi /opt/jel $ owdir -s 192.168.10.110:4304 
/uncached/28.3F28AE060000
/uncached/28.3F28AE060000/address
/uncached/28.3F28AE060000/alias
/uncached/28.3F28AE060000/crc8
/uncached/28.3F28AE060000/errata
/uncached/28.3F28AE060000/family
/uncached/28.3F28AE060000/fasttemp
/uncached/28.3F28AE060000/id
/uncached/28.3F28AE060000/latesttemp
/uncached/28.3F28AE060000/locator
/uncached/28.3F28AE060000/power
/uncached/28.3F28AE060000/r_address
/uncached/28.3F28AE060000/r_id
/uncached/28.3F28AE060000/r_locator
/uncached/28.3F28AE060000/scratchpad
/uncached/28.3F28AE060000/temperature
/uncached/28.3F28AE060000/temperature10
/uncached/28.3F28AE060000/temperature11
/uncached/28.3F28AE060000/temperature12
/uncached/28.3F28AE060000/temperature9
/uncached/28.3F28AE060000/temphigh
/uncached/28.3F28AE060000/templow
/uncached/28.3F28AE060000/type
pi@raspberrypi /opt/jel $ owread -s 192.168.10.110:4304 
/uncached/28.3F28AE060000/temperature
       24.1875pi@raspberrypiowread -s 192.168.10.110:4304 
/uncached/28.3F28AE060000/temperature9
          24.5pi@raspberrypiowread -s 192.168.10.110:4304 
/uncached/28.3F28AE060000/temperature12
       24.1875pi@raspberrypiowread -s 192.168.10.110:4304 
/uncached/28.3F28AE060000/latesttemp
ServerRead: Data error on /uncached/28.3F28AE060000/latesttemp
pi@raspberrypi /opt/jel $ owdir -s 192.168.10.110:4304 
/uncached/10.B74C8A010800
/uncached/10.B74C8A010800/address
/uncached/10.B74C8A010800/alias
/uncached/10.B74C8A010800/crc8
/uncached/10.B74C8A010800/errata
/uncached/10.B74C8A010800/family
/uncached/10.B74C8A010800/id
/uncached/10.B74C8A010800/latesttemp
/uncached/10.B74C8A010800/locator
/uncached/10.B74C8A010800/power
/uncached/10.B74C8A010800/r_address
/uncached/10.B74C8A010800/r_id
/uncached/10.B74C8A010800/r_locator
/uncached/10.B74C8A010800/scratchpad
/uncached/10.B74C8A010800/temperature
/uncached/10.B74C8A010800/temphigh
/uncached/10.B74C8A010800/templow
/uncached/10.B74C8A010800/type
pi@raspberrypi /opt/jel $ owread -s 192.168.10.110:4304 
/uncached/10.B74C8A010800/temperature
       22.6875pi@raspberrypi /opt/jel $ owread -s 192.168.10.110:4304 
/uncached/10.B74C8A010800/latesttemp
       22.6875pi@raspberrypi /opt/jel $

Above you can see that owdir can detect the DS18B20 and read all the 
temperature properties EXCEPT "latesttemp" where as the DS18S20 is 
hardwired to 9 bit(?) resolution and thus lack the 
"temperature[9-12]"-properties but has a working "latesttemp".

Could someone have a look at this possible bug? Since my own C-knowledge 
is lacking and this feature is better than sliced bread (in the Owfs 
universe at least).

Many Thanks! And I for sure would be glad to help out testing any 
patches send my way!

// Henrik


------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to