Thanks,
that was easy. I used to get at least one reading error per hour, now
there are none so far.
After reading your email I also decided to wait with any 1wire
software upgrades.
Michael
On 09.01.2007, at 15:40, Paul Davis wrote:
Yes. There is a simple fix for this in the connection.py file which
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 supported by
Python.
---
> inteact with the ow sensors on any platform supported by Python.
96c96
<
---
>
114c114
< if payload_len >= 0:
---
> if payload_len:
119d118
< # ping response
168c167
< if payload_len > 0:
---
> if payload_len:
172d170
< # end of dir list or 'ping' response
The payload_length was not being checked for the case where a
'ping' response is given back to the client.
Sooner or later you may also receive a "struct.error: unpack str
size does not match format". If you do encounter it, let me know,
and I'll post that patch as well. I would post a complete diff, but
I don''t feel all the changes are quite ready.
Paul
On Jan 9, 2007, at 5:11 AM, Michael Weber wrote:
I have some problems running a PID-Temperature Controller. It
works fine most of the time, but tends to crash with varying
frequency (months to hours).
So yesterday, I changed from the old python module to the ownet
interface (but still use the old v2.4.1 owserver binary) and
encountered the following error (obviously during the read of a
temperature sensor)
ValueError: negative buffersize in recv
The program is very simple: It reads the temperature every minute,
calculates the updated P, and I gains and the correction terms
from those. If the term is 0 or 1, the heater is turned off or on,
if it is inbetween, the heater is put into PWM mode. Most of the
writing I encapsulated in "try." already, but since yesterday I
know that the problem seems to be (also?)the temperature reading.
Any suggestions? Since the first implementation of this regulator,
I rewired the bus using CAT5 cables, and I removed all the "star"-
parts from the topology. Cable length is less than 50m, the
connection is done via a MOXA port server, a serial-to-1wire
converter including a filter.
The circuits we use are available at
http://www.aip.de/People/wbittner/1wire/index.html
Sorry, only in German:
"Spannungseinspeisung am Master Kabel auch hier!" is the serial-
ow converter
"Temperatursensor für Daisy Chain Verkabelung mit RJ12 Anschluß
für Sensoren" is the Temperature sensor
"PWM Modul für Heizungsregelung" is the PWM-heater module
Dr. Michael Weber
Astrophysikalisches Institut Potsdam
An der Sternwarte 16
D-14482 Potsdam
Tel: 0331 7499 351
Fax: 0331 7499 200
email: [EMAIL PROTECTED]
---------------------------------------------------------------------
----
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT & business topics through brief surveys - and earn
cash
http://www.techsay.com/default.php?
page=join.php&p=sourceforge&CID=DEVDEV_______________________________
________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
----------------------------------------------------------------------
---
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?
page=join.php&p=sourceforge&CID=DEVDEV________________________________
_______________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Dr. Michael Weber
Astrophysikalisches Institut Potsdam
An der Sternwarte 16
D-14482 Potsdam
Tel: 0331 7499 351
Fax: 0331 7499 200
email: [EMAIL PROTECTED]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers