Hi, I never faced the issue myself but I'm just wondering, can't we just check the CRC for those failed conversions ? Is the CRC correct in that case ?
Rgds. -Romain On Wed, Sep 19, 2012 at 12:38 PM, Marcus Priesch <mar...@priesch.priv.at> wrote: > Well, 80 normally means that you dont have enough power to do the temp > conversion ... are you doing parasite powering ? - then you should > consider using another wire to get 5v to the temp sensor ... > > i will look what OW_get internally does and check the return code ... > > regards, > marcus. > > On Mit, 2012-09-19 at 10:43 +0200, Sophana K wrote: >> It seems that res could be 0, so None could be returned. >> >> I'll see if that happen. >> This is because one of my sensors is in my living room, and the 1wire >> signal goes though my telephone lines all over my house. >> It is not very reliable. >> Before I upgraded from an old debian to ubuntu precise, the bad value >> was something like 80degres. >> It is now 0 degres, and this triggers my HVAC. >> I need a way to detect a wrong value. >> None would be ok for me. >> >> On Tue, Sep 18, 2012 at 7:54 PM, Marcus Priesch <mar...@priesch.priv.at> >> wrote: >> > res = self.libcapi.OW_get \ >> > (path, ctypes.byref (buf_p), ctypes.byref (buf_len)) >> > if res >= 0 : >> > res = "".join ([i for i in buf_p [:buf_len.value]]) >> > self.libc.free (buf_p) >> > else : >> > res = None >> > return res >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Owfs-developers mailing list >> Owfs-developers@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/owfs-developers >> > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/owfs-developers ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers