Hi folks, 

I was able to find a DS2780 on eBay, and decided to have a go at making my own 
thermocouple reader. great fun. 

Anyhow, after soldering the tiny TSSOP onto a breakout board, i was afraid i'd 
zapped it! 

The temperature reading was constantly 0. Other functions worked, voltage, PIO, 
etc. 

I sucked down the memory, and was able to look at the datasheet and figure that 
0x0A and 0x0B held the temperature. To my delight, the temperature was there 
and seemed accurate! 

OWFS still returned it as 0 though. 

I scanned through the code and found the problem. There's a typo which is 
making the DS2780 use the memory offset for the DS2760. 

here's a patch. Tested and working. This is against owfs-2.7p27, btw. 

Cheers, and thanks for a great package. 

-tmk 

--- broken/module/owlib/src/c/ow_2760.c 2010-01-19 22:11:16.000000000 -0800 
+++ module/owlib/src/c/ow_2760.c 2010-01-19 22:05:04.000000000 -0800 
@@ -832,7 +832,7 @@ 
switch (pn->sn[0]) { 
case 0x32: //DS2780 
case 0x3D: //DS2781 
- off = _1W_DS2760_TEMPERATURE; 
+ off = _1W_DS2780_TEMPERATURE; 
break; 
default: 
off = _1W_DS2760_TEMPERATURE; 

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to