I've been using 4 ds18B20 temp. sensors w/my homebrew python 1-wire program for a few weeks with no problems.
Just received HB rain gauge and I can establish communications with it (I get the serial #), but I can't access the counter.
[codebox]#this code works great for reading ds18B20
ser.write("r")
ser.write("b55"+sensors+"44\r")
time.sleep(.5)
ser.write("r")
ser.write("b55"+sensors+"BEFFFF\r")
s=ser.read(70)
*********************************
#This code doesn't work for accessing counter
ser.write("r")
ser.write("b55"+sensors+"\r")
ser.write("bA5\r")
ser.write("bC0\r")
ser.write("b01\r")
s=ser.read(256)
[/codebox]
I tried different memory pages, but not getting any results.
Can anyone see anything obvious?
Thanks
Just received HB rain gauge and I can establish communications with it (I get the serial #), but I can't access the counter.
[codebox]#this code works great for reading ds18B20
ser.write("r")
ser.write("b55"+sensors+"44\r")
time.sleep(.5)
ser.write("r")
ser.write("b55"+sensors+"BEFFFF\r")
s=ser.read(70)
*********************************
#This code doesn't work for accessing counter
ser.write("r")
ser.write("b55"+sensors+"\r")
ser.write("bA5\r")
ser.write("bC0\r")
ser.write("b01\r")
s=ser.read(256)
[/codebox]
I tried different memory pages, but not getting any results.
Can anyone see anything obvious?
Thanks