Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-29 Thread Paul Alfille
Hi Jerry, We certainly could use option negotiation (although even that would require some backwards compatibility.) We also have had version numbers included in the owserver protocol since the start -- although there hasn't been a need to progress beyond version 0. We faced this issue thrice b

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-29 Thread Jerry Scharf
Paul Alfille wrote: > Hmm... > > owlib is written in C, and needs a fixed data size (string size) for > floating point output. I arbitrarily used 12 characters and the %g > printf format to be most general. > > Currently type (floating point, integer...) and certainly precision > aren't part of

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-29 Thread Paul Alfille
Hmm... owlib is written in C, and needs a fixed data size (string size) for floating point output. I arbitrarily used 12 characters and the %g printf format to be most general. Currently type (floating point, integer...) and certainly precision aren't part of the ownet messages. If we really wan

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-28 Thread Doug Collinge
It was a simple goof-up, not allowing for the possibility of a negative temperature. Here is a little patch that seems to fix it. It would actually be nice if the owlib returned a decimal point on all temperatures, even those with integer values, and with enough trailing zeroes to indicate the p

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-28 Thread Doug Collinge
nt:* den 28 juni 2007 10:20 > *To:* owfs-developers@lists.sourceforge.net > *Subject:* Re: [Owfs-developers] ownet/python crashing sporadically in > connection.py > > > > I had the same problem, and got that answer: > > > > Yes. There is a simple fix for this in the conn

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-28 Thread Doug Collinge
*Sent:* den 28 juni 2007 10:20 *To:* owfs-developers@lists.sourceforge.net *Subject:* Re: [Owfs-developers] ownet/python crashing sporadically in connection.py I had the same problem, and got that answer: Yes. There is a simple fix for this in the connection.py file which =20 is part of the

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-28 Thread Christian Magnusson
I checked in the changes to the CVS. /Christian From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Weber Sent: den 28 juni 2007 10:20 To: owfs-developers@lists.sourceforge.net Subject: Re: [Owfs-developers] ownet/python crashing sporadically in connection.py I

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-28 Thread Matthias Urlichs
Hi, Michael Weber: > Here's a diff: > Please post context diffs (diff -u) in the future. > # diff connection.py connection.py.org ... and please don't reverse the diff -- the original file should be *first*. -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [EMAIL PROTECTED] Disclaim

Re: [Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-28 Thread Michael Weber
I had the same problem, and got that answer: Yes. There is a simple fix for this in the connection.py file which =20 is part of the module. It should be in your site-python directory tree. Here's a diff: # diff connection.py connection.py.org 57c57 < interact with the ow sensors on any platform

[Owfs-developers] ownet/python crashing sporadically in connection.py

2007-06-27 Thread Doug Collinge
I'm having a problem using the python interface in ownet (from CVS) for reading a few DS18S20 thermometers. A very basic program (shown below) finds all sensors with a "temperature" attribute and then polls them continuously until the crash occurs. Sometimes this takes minutes, sometimes hours,