login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
22
Re: W1: w1_slave units, standardize 1C or .001C? Break API
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
H. Peter Anvin <hpa@...>
To: David Fries <david@...>
Cc: Evgeniy Polyakov <johnpol@...>, <linux-kernel@...>
Subject:
Re: W1: w1_slave units, standardize 1C or .001C? Break API
Date: Monday, January 21, 2008 - 9:08 pm
David Fries wrote:
quoted text
> The ds18b20 one wire temperature sensor conversion routine is > returning the units in degrees C while the ds1820 (ds18s20) is > returning it in .001 degrees C. 20C vs 20312C. Once you know the > units I'm liking the latter as it gives a higher precision. Time to > break user applications so the driver can give the temperature in the > same units for both sensors. > > I only have the ds18b20 sensor model. Here is the current output from > the sys file for this sensor. > /sys/devices/w1_bus_master1/28-0000000e84a2/w1_slave > 45 01 4b 46 7f ff 0b 10 84 : crc=84 YES > 45 01 4b 46 7f ff 0b 10 84 t=20 > > I ran the example data from the specification for the ds1820 through > it's conversion routine and found that t= was 1000 times the value. > What should the displayed units be? > > This is the same ds18b20 conversion *1000. Is everyone ok or is any > objecting to .001 degrees C for the units? Patch will follow. The > .001 C does truncate one bit of precision from the ds18b20 by the way. >
Millikelvins would have the nice property of never being negative. :) -hpa --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
W1: w1_slave units, standardize 1C or .001C? Break API
, David Fries
, (Mon Jan 21, 7:15 pm)
Re: W1: w1_slave units, standardize 1C or .001C? Break API
, Evgeniy Polyakov
, (Tue Jan 22, 5:06 pm)
Re: W1: w1_slave units, standardize 1C or .001C? Break API
, H. Peter Anvin
, (Mon Jan 21, 9:08 pm)
Re: W1: w1_slave units, standardize 1C or .001C? Break API
, H. Peter Anvin
, (Mon Jan 21, 11:11 pm)
Re: W1: w1_slave units, standardize 1C or .001C? Break API
, David Fries
, (Wed Jan 23, 12:09 am)
Re: W1: w1_slave units, standardize 1C or .001C? Break API
, H. Peter Anvin
, (Wed Jan 23, 12:22 am)
Re: W1: w1_slave units, standardize 1C or .001C? Break API
, Evgeniy Polyakov
, (Tue Jan 22, 5:07 pm)
Re: W1: w1_slave units, standardize 1C or .001C? Break API
, Evgeniy Polyakov
, (Tue Jan 22, 5:12 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Re: Announce: Linux-next (Or Andrew's dream :-))
Greg KH
[patch 26/73] NET: Correct two mistaken skb_reset_mac_header() conversions.
Greg Kroah-Hartman
[PATCH 007/196] Chinese: add translation of stable_kernel_rules.txt
Alan Cox
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git
:
linux-netdev
:
Alexey Dobriyan
Re: [GIT]: Networking
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Andrew Morton
Re: [BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
1060 guests
online.
Online users
strcmp
zeekec
Syndicate