Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread H. Peter Anvin
David Fries wrote: On Mon, Jan 21, 2008 at 07:11:07PM -0800, H. Peter Anvin wrote: H. Peter Anvin wrote: Millikelvins would have the nice property of never being negative. :) True, but the sensor returns the value as a signed integer in C. That is where the earlier negative number problem

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread David Fries
On Wed, Jan 23, 2008 at 12:06:27AM +0300, Evgeniy Polyakov wrote: > > What about instead of breaking application just add new sysfs file, > which will only return temperature instead of full rom content. > It can be millidegrees Centigrade, another one can be millikelvins :) If someone wrote

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread David Fries
On Mon, Jan 21, 2008 at 07:11:07PM -0800, H. Peter Anvin wrote: > H. Peter Anvin wrote: > >Millikelvins would have the nice property of never being negative. :) True, but the sensor returns the value as a signed integer in C. That is where the earlier negative number problem was, it would have

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread Evgeniy Polyakov
On Wed, Jan 23, 2008 at 12:07:41AM +0300, Evgeniy Polyakov ([EMAIL PROTECTED]) wrote: > On Mon, Jan 21, 2008 at 07:11:07PM -0800, H. Peter Anvin ([EMAIL PROTECTED]) > wrote: > > >Millikelvins would have the nice property of never being negative. :) > > > > > > > Alternatively, centikelvins

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread Evgeniy Polyakov
On Mon, Jan 21, 2008 at 07:11:07PM -0800, H. Peter Anvin ([EMAIL PROTECTED]) wrote: > >Millikelvins would have the nice property of never being negative. :) > > > > Alternatively, centikelvins would fit nicely in 16 bits if anyone cares... > > 655.35 K = 382.20 °C = 719.96 °F I have no

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread Evgeniy Polyakov
Hi David. On Mon, Jan 21, 2008 at 05:15:57PM -0600, David Fries ([EMAIL PROTECTED]) wrote: > 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

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread Evgeniy Polyakov
Hi David. On Mon, Jan 21, 2008 at 05:15:57PM -0600, David Fries ([EMAIL PROTECTED]) wrote: 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

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread Evgeniy Polyakov
On Mon, Jan 21, 2008 at 07:11:07PM -0800, H. Peter Anvin ([EMAIL PROTECTED]) wrote: Millikelvins would have the nice property of never being negative. :) Alternatively, centikelvins would fit nicely in 16 bits if anyone cares... 655.35 K = 382.20 °C = 719.96 °F I have no objection on

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread Evgeniy Polyakov
On Wed, Jan 23, 2008 at 12:07:41AM +0300, Evgeniy Polyakov ([EMAIL PROTECTED]) wrote: On Mon, Jan 21, 2008 at 07:11:07PM -0800, H. Peter Anvin ([EMAIL PROTECTED]) wrote: Millikelvins would have the nice property of never being negative. :) Alternatively, centikelvins would fit

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread David Fries
On Mon, Jan 21, 2008 at 07:11:07PM -0800, H. Peter Anvin wrote: H. Peter Anvin wrote: Millikelvins would have the nice property of never being negative. :) True, but the sensor returns the value as a signed integer in C. That is where the earlier negative number problem was, it would have to

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread David Fries
On Wed, Jan 23, 2008 at 12:06:27AM +0300, Evgeniy Polyakov wrote: What about instead of breaking application just add new sysfs file, which will only return temperature instead of full rom content. It can be millidegrees Centigrade, another one can be millikelvins :) If someone wrote their

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-22 Thread H. Peter Anvin
David Fries wrote: On Mon, Jan 21, 2008 at 07:11:07PM -0800, H. Peter Anvin wrote: H. Peter Anvin wrote: Millikelvins would have the nice property of never being negative. :) True, but the sensor returns the value as a signed integer in C. That is where the earlier negative number problem

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-21 Thread H. Peter Anvin
H. Peter Anvin wrote: David Fries wrote: 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.

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-21 Thread H. Peter Anvin
David Fries wrote: 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

W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-21 Thread David Fries
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

W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-21 Thread David Fries
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

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-21 Thread H. Peter Anvin
David Fries wrote: 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