Paul Alfille | 3 Nov 12:23 2006
Picon

Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

>From the forum:
----------------------

Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3993682
By: rob_conway


First post to this group however have been usinf owfs for a couple fo months
and want to grow my network.  I have loaded owfs on my NSLU2 "aka SLUG" and
have a number of devices off the link.  It works great 99.9% of the time and
am very pleased.  I log the data and sync to NTP time and display this on a
web page.


I was wondering if anybody else has seen the following with respect to the DS2450
(4 ch A/D)

a/ A PIO channel sometimes, maybe once per month, change from 1 to 0 thus disabling
the analog input channel.  I then go back into the interface (web page) and
change it back to 1 and all is well again.  It can happen on any of the the
four channels however only 1 channel PIO gets changed.  I have no scripts quering
PIO.x  I suppose a fix maybe to query the PIO.x's and set it if its 0.

b/ The analog input reading seems very noisy ie the values change +/- 0.1 volts
on the Volt.x register ie 0-5v scale.  I have ended up doing a number of reads
and averaging the result over a 15 minute period.

c/ You will also see on the attached link below a spike on one of the temperature
inputs.  This can happen very infrequent and also late in the morning so I have
discounted any type of interference.
http://img.photobucket.com/albums/v319/rjconway/1wire.jpg


cheers

rob

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=292718

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Christian Magnusson | 3 Nov 13:40 2006

Re: Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

How do you read your sensors from the NSLU2?

 

Are the grahps generated on the actual NSLU2?

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Do you use the Bonjour/Zeroconf feature on the NSLU2?

 

I'm just trying to figure out if it could be a network problem (either hardware or owfs-network code), fuse-related problem, mDNS bugs (in my quick compilation), or problem the new owshell commands.

 

/Christian

 

 

Från: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net] För Paul Alfille
Skickat: den 3 november 2006 12:24
Till: owfs-developers <at> lists.sourceforge.net
Ämne: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

>From the forum:
----------------------

Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3993682
By: rob_conway


First post to this group however have been usinf owfs for a couple fo months
and want to grow my network.  I have loaded owfs on my NSLU2 "aka SLUG" and
have a number of devices off the link.  It works great 99.9% of the time and
am very pleased.  I log the data and sync to NTP time and display this on a
web page.


I was wondering if anybody else has seen the following with respect to the DS2450
(4 ch A/D)

a/ A PIO channel sometimes, maybe once per month, change from 1 to 0 thus disabling
the analog input channel.  I then go back into the interface (web page) and
change it back to 1 and all is well again.  It can happen on any of the the
four channels however only 1 channel PIO gets changed.  I have no scripts quering
PIO.x  I suppose a fix maybe to query the PIO.x's and set it if its 0.

b/ The analog input reading seems very noisy ie the values change +/- 0.1 volts
on the Volt.x register ie 0-5v scale.  I have ended up doing a number of reads
and averaging the result over a 15 minute period.

c/ You will also see on the attached link below a spike on one of the temperature
inputs.  This can happen very infrequent and also late in the morning so I have
discounted any type of interference.
http://img.photobucket.com/albums/v319/rjconway/1wire.jpg


cheers

rob

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=292718

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Rob Conway | 3 Nov 14:11 2006

Re: Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Christian
I did a standard ipkg install and just rebooted, owfs picked up the 4 devices on the network and I did not do anything else.  Basically I use it as a data collector and simple web server "owfs + rrdtool + thttpd + smtpclient + NTP
 
I have used the TOP command to monitor CPU load and thttpd only takes 1-2 % CPU load to serve web pages and my script when it runs takes less than 1% load.  rrdtool can take up to 90% cpu utilisation.

today did an ipkg update and it reported an update to  "owlib on root from 2.4p1-1 to 2.5p5-4..."

 

 

 

How do you read your sensors from the NSLU2?

Answer:  just use a bash script to gather the data...see below... didn't know ifI should use cached or uncached so I used uncached

 
  ## Read script ############
 
  #!/bin/bash
  PH=$(/opt/bin/awk '{printf "%4.2f\n",((($0-1)/2.6667)+5.5)}' /tmp/1wire/uncached/20.B71F05000000/volt.A)
  US=$(/opt/bin/awk '{printf "%5.1f\n",($0*100)}' /tmp/1wire/uncached/20.B71F05000000/volt.B)
  T_DEGC=$(/opt/bin/awk '{printf "%3.1f\n",((($0-1)*5)+20)}' /tmp/1wire/uncached/20.B71F05000000/volt.C)
  CO2=$(/opt/bin/awk -v PH="$PH" '{printf "%4.1f\n",((3*$0)*(10^(7-PH)))}' /public/kh_value)
  TDS=$(/opt/bin/awk -v COND="$US" '{printf "%3.1f\n",(COND*$0)}' /public/tds_factor)
  LITRES=$(/opt/bin/awk '{printf "%3.1f\n",(($0-3.1)*65)}' /tmp/1wire/uncached/20.952A05000000/volt.D)
  rrdtool update /public/aquaph.rrd N:$PH
  rrdtool update /public/aquadegc.rrd N:$T_DEGC
  rrdtool update /public/aquaco2.rrd N:$CO2
  rrdtool update /public/aquacond.rrd N:$US
  rrdtool update /public/level.rrd N:$LITRES
##########################

 

Are the grahps generated on the actual NSLU2?

Answer: Yes I use rrdtool, on the NSLU2

 

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Answer: I just read from the file system

 

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Answer: Everything is running on the NSLU2,

 

Do you use the Bonjour/Zeroconf feature on the NSLU2?

Answer: ??? Don't know what this is, must have a look ? never touched any of the owfs configuration files.  Just use the :3001 web page to view some data and reset the PIO.x flags.

 
 
Is it normal to have all these processes running for 4 off 1wire devices on the network ?
 
## Output of ps ################
446 root        848 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  456 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  462 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  464 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  466 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  471 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  474 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  475 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  476 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  481 root        488 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  484 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  488 website    4056 S   /usr/sbin/thttpd -C /etc/thttpd-website.conf
  639 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  640 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  641 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  644 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  702 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  715 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  789 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5218 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5219 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5220 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 9222 root        824 S   upnpd &>/dev/null
10012 root       1828 S   sshd: root <at> ttyp0
10014 root        568 S   -sh
10236 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
10237 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
 
 
cheers from australia
 
 
 
 
 
 
----- Original Message -----
Sent: Friday, November 03, 2006 11:40 PM
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

How do you read your sensors from the NSLU2?

 

Are the grahps generated on the actual NSLU2?

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Do you use the Bonjour/Zeroconf feature on the NSLU2?

 

I'm just trying to figure out if it could be a network problem (either hardware or owfs-network code), fuse-related problem, mDNS bugs (in my quick compilation), or problem the new owshell commands.

 

/Christian

 

 

Från: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net] För Paul Alfille
Skickat: den 3 november 2006 12:24
Till: owfs-developers <at> lists.sourceforge.net
Ämne: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

>From the forum:
----------------------

Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3993682
By: rob_conway


First post to this group however have been usinf owfs for a couple fo months
and want to grow my network.  I have loaded owfs on my NSLU2 "aka SLUG" and
have a number of devices off the link.  It works great 99.9% of the time and
am very pleased.  I log the data and sync to NTP time and display this on a
web page.


I was wondering if anybody else has seen the following with respect to the DS2450
(4 ch A/D)

a/ A PIO channel sometimes, maybe once per month, change from 1 to 0 thus disabling
the analog input channel.  I then go back into the interface (web page) and
change it back to 1 and all is well again.  It can happen on any of the the
four channels however only 1 channel PIO gets changed.  I have no scripts quering
PIO.x  I suppose a fix maybe to query the PIO.x's and set it if its 0.

b/ The analog input reading seems very noisy ie the values change +/- 0.1 volts
on the Volt.x register ie 0-5v scale.  I have ended up doing a number of reads
and averaging the result over a 15 minute period.

c/ You will also see on the attached link below a spike on one of the temperature
inputs.  This can happen very infrequent and also late in the morning so I have
discounted any type of interference.
http://img.photobucket.com/albums/v319/rjconway/1wire.jpg


cheers

rob

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=292718

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Rob Conway | 3 Nov 14:24 2006

Re: Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Christian
The DS2450 PIO description seems alittle confusing..see below  I know the corresponding PIO.x has to be set (1) to be able to read from the Volt.x parameters, otherwise the Volt.x parameter are always 0.0000 irrespective of the channels input.
 
extract from DS2450
PIO.A ... PIO.D PIO.ALL read-write, yes-no Pins used for digital control. 1 turns the switch on (conducting). 0 turns the switch off (non-conducting). Control is specifically enabled. Reading volt will turn off this con- trol. ALL is an aggregate of the voltages. Readings are made separately.
----- Original Message -----
From: Rob Conway
Sent: Saturday, November 04, 2006 12:11 AM
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Christian
I did a standard ipkg install and just rebooted, owfs picked up the 4 devices on the network and I did not do anything else.  Basically I use it as a data collector and simple web server "owfs + rrdtool + thttpd + smtpclient + NTP
 
I have used the TOP command to monitor CPU load and thttpd only takes 1-2 % CPU load to serve web pages and my script when it runs takes less than 1% load.  rrdtool can take up to 90% cpu utilisation.

today did an ipkg update and it reported an update to  "owlib on root from 2.4p1-1 to 2.5p5-4..."

 

 

 

How do you read your sensors from the NSLU2?

Answer:  just use a bash script to gather the data...see below... didn't know ifI should use cached or uncached so I used uncached

 
  ## Read script ############
 
  #!/bin/bash
  PH=$(/opt/bin/awk '{printf "%4.2f\n",((($0-1)/2.6667)+5.5)}' /tmp/1wire/uncached/20.B71F05000000/volt.A)
  US=$(/opt/bin/awk '{printf "%5.1f\n",($0*100)}' /tmp/1wire/uncached/20.B71F05000000/volt.B)
  T_DEGC=$(/opt/bin/awk '{printf "%3.1f\n",((($0-1)*5)+20)}' /tmp/1wire/uncached/20.B71F05000000/volt.C)
  CO2=$(/opt/bin/awk -v PH="$PH" '{printf "%4.1f\n",((3*$0)*(10^(7-PH)))}' /public/kh_value)
  TDS=$(/opt/bin/awk -v COND="$US" '{printf "%3.1f\n",(COND*$0)}' /public/tds_factor)
  LITRES=$(/opt/bin/awk '{printf "%3.1f\n",(($0-3.1)*65)}' /tmp/1wire/uncached/20.952A05000000/volt.D)
  rrdtool update /public/aquaph.rrd N:$PH
  rrdtool update /public/aquadegc.rrd N:$T_DEGC
  rrdtool update /public/aquaco2.rrd N:$CO2
  rrdtool update /public/aquacond.rrd N:$US
  rrdtool update /public/level.rrd N:$LITRES
##########################

 

Are the grahps generated on the actual NSLU2?

Answer: Yes I use rrdtool, on the NSLU2

 

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Answer: I just read from the file system

 

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Answer: Everything is running on the NSLU2,

 

Do you use the Bonjour/Zeroconf feature on the NSLU2?

Answer: ??? Don't know what this is, must have a look ? never touched any of the owfs configuration files.  Just use the :3001 web page to view some data and reset the PIO.x flags.

 
 
Is it normal to have all these processes running for 4 off 1wire devices on the network ?
 
## Output of ps ################
446 root        848 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  456 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  462 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  464 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  466 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  471 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  474 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  475 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  476 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  481 root        488 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  484 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  488 website    4056 S   /usr/sbin/thttpd -C /etc/thttpd-website.conf
  639 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  640 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  641 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  644 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  702 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  715 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  789 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5218 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5219 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5220 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 9222 root        824 S   upnpd &>/dev/null
10012 root       1828 S   sshd: root <at> ttyp0
10014 root        568 S   -sh
10236 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
10237 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
 
 
cheers from australia
 
 
 
 
 
 
----- Original Message -----
Sent: Friday, November 03, 2006 11:40 PM
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

How do you read your sensors from the NSLU2?

 

Are the grahps generated on the actual NSLU2?

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Do you use the Bonjour/Zeroconf feature on the NSLU2?

 

I'm just trying to figure out if it could be a network problem (either hardware or owfs-network code), fuse-related problem, mDNS bugs (in my quick compilation), or problem the new owshell commands.

 

/Christian

 

 

Från: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net] För Paul Alfille
Skickat: den 3 november 2006 12:24
Till: owfs-developers <at> lists.sourceforge.net
Ämne: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

>From the forum:
----------------------

Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3993682
By: rob_conway


First post to this group however have been usinf owfs for a couple fo months
and want to grow my network.  I have loaded owfs on my NSLU2 "aka SLUG" and
have a number of devices off the link.  It works great 99.9% of the time and
am very pleased.  I log the data and sync to NTP time and display this on a
web page.


I was wondering if anybody else has seen the following with respect to the DS2450
(4 ch A/D)

a/ A PIO channel sometimes, maybe once per month, change from 1 to 0 thus disabling
the analog input channel.  I then go back into the interface (web page) and
change it back to 1 and all is well again.  It can happen on any of the the
four channels however only 1 channel PIO gets changed.  I have no scripts quering
PIO.x  I suppose a fix maybe to query the PIO.x's and set it if its 0.

b/ The analog input reading seems very noisy ie the values change +/- 0.1 volts
on the Volt.x register ie 0-5v scale.  I have ended up doing a number of reads
and averaging the result over a 15 minute period.

c/ You will also see on the attached link below a spike on one of the temperature
inputs.  This can happen very infrequent and also late in the morning so I have
discounted any type of interference.
http://img.photobucket.com/albums/v319/rjconway/1wire.jpg


cheers

rob

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=292718

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Alfille, Paul H.,M.D. | 3 Nov 16:07 2006

Re: Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

So you use the FUSE system.
I gather that pH and Conductivity Temperature and Liters(?) are directly measured, CO2 is derived.
It looks like all the DS2450 values stop briefly at the same time.
It's hard to tell how many samples are dropped. Can you look at the statistics for the error statistics. If there are a lot of rereads, bus errors, reconnections, etc then we'd have an answer.
 
Paul Alfille
-----Original Message-----
From: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net]On Behalf Of Rob Conway
Sent: Friday, November 03, 2006 8:12 AM
To: owfs-developers <at> lists.sourceforge.net
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)
 
  ## Read script ############
 
  #!/bin/bash
  PH=$(/opt/bin/awk '{printf "%4.2f\n",((($0-1)/2.6667)+5.5)}' /tmp/1wire/uncached/20.B71F05000000/volt.A)
  US=$(/opt/bin/awk '{printf "%5.1f\n",($0*100)}' /tmp/1wire/uncached/20.B71F05000000/volt.B)
  T_DEGC=$(/opt/bin/awk '{printf "%3.1f\n",((($0-1)*5)+20)}' /tmp/1wire/uncached/20.B71F05000000/volt.C)
  CO2=$(/opt/bin/awk -v PH="$PH" '{printf "%4.1f\n",((3*$0)*(10^(7-PH)))}' /public/kh_value)
  TDS=$(/opt/bin/awk -v COND="$US" '{printf "%3.1f\n",(COND*$0)}' /public/tds_factor)
  LITRES=$(/opt/bin/awk '{printf "%3.1f\n",(($0-3.1)*65)}' /tmp/1wire/uncached/20.952A05000000/volt.D)
  rrdtool update /public/aquaph.rrd N:$PH
  rrdtool update /public/aquadegc.rrd N:$T_DEGC
  rrdtool update /public/aquaco2.rrd N:$CO2
  rrdtool update /public/aquacond.rrd N:$US
  rrdtool update /public/level.rrd N:$LITRES
##########################

 

Are the grahps generated on the actual NSLU2?

Answer: Yes I use rrdtool, on the NSLU2

 

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Answer: I just read from the file system

 

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Answer: Everything is running on the NSLU2,

 

Do you use the Bonjour/Zeroconf feature on the NSLU2?

Answer: ??? Don't know what this is, must have a look ? never touched any of the owfs configuration files.  Just use the :3001 web page to view some data and reset the PIO.x flags.

 
 
Is it normal to have all these processes running for 4 off 1wire devices on the network ?
 
## Output of ps ################
446 root        848 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  456 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  462 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  464 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  466 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  471 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  474 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  475 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  476 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  481 root        488 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  484 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  488 website    4056 S   /usr/sbin/thttpd -C /etc/thttpd-website.conf
  639 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  640 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  641 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  644 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  702 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  715 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  789 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5218 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5219 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5220 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 9222 root        824 S   upnpd &>/dev/null
10012 root       1828 S   sshd: root <at> ttyp0
10014 root        568 S   -sh
10236 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
10237 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
 
 
cheers from australia
 
 
 
 
 
 
----- Original Message -----
Sent: Friday, November 03, 2006 11:40 PM
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

How do you read your sensors from the NSLU2?

 

Are the grahps generated on the actual NSLU2?

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Do you use the Bonjour/Zeroconf feature on the NSLU2?

 

I'm just trying to figure out if it could be a network problem (either hardware or owfs-network code), fuse-related problem, mDNS bugs (in my quick compilation), or problem the new owshell commands.

 

/Christian

 

 

Från: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net] För Paul Alfille
Skickat: den 3 november 2006 12:24
Till: owfs-developers <at> lists.sourceforge.net
Ämne: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

>From the forum:
----------------------

Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3993682
By: rob_conway


First post to this group however have been usinf owfs for a couple fo months
and want to grow my network.  I have loaded owfs on my NSLU2 "aka SLUG" and
have a number of devices off the link.  It works great 99.9% of the time and
am very pleased.  I log the data and sync to NTP time and display this on a
web page.


I was wondering if anybody else has seen the following with respect to the DS2450
(4 ch A/D)

a/ A PIO channel sometimes, maybe once per month, change from 1 to 0 thus disabling
the analog input channel.  I then go back into the interface (web page) and
change it back to 1 and all is well again.  It can happen on any of the the
four channels however only 1 channel PIO gets changed.  I have no scripts quering
PIO.x  I suppose a fix maybe to query the PIO.x's and set it if its 0.

b/ The analog input reading seems very noisy ie the values change +/- 0.1 volts
on the Volt.x register ie 0-5v scale.  I have ended up doing a number of reads
and averaging the result over a 15 minute period.

c/ You will also see on the attached link below a spike on one of the temperature
inputs.  This can happen very infrequent and also late in the morning so I have
discounted any type of interference.
http://img.photobucket.com/albums/v319/rjconway/1wire.jpg


cheers

rob

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=292718

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Alfille, Paul H.,M.D. | 3 Nov 16:11 2006

Re: Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Rob,
 
You aren't using the DS2450 as a switch, just a volt meter. You needn't touch the PIO values. In fact, we are so measurement favoring that any switch settings will be reset whenever you try to read voltages.
 
(The confusion is that the same A/D volt-reading pins can be used for switching. The man page tries to warn you that the volt reading will wipe out switch activity).
 
Paul Alfille
-----Original Message-----
From: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net]On Behalf Of Rob Conway
Sent: Friday, November 03, 2006 8:24 AM
To: owfs-developers <at> lists.sourceforge.net
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Christian
The DS2450 PIO description seems alittle confusing..see below  I know the corresponding PIO.x has to be set (1) to be able to read from the Volt.x parameters, otherwise the Volt.x parameter are always 0.0000 irrespective of the channels input.
 
extract from DS2450
PIO.A ... PIO.D PIO.ALL read-write, yes-no Pins used for digital control. 1 turns the switch on (conducting). 0 turns the switch off (non-conducting). Control is specifically enabled. Reading volt will turn off this con- trol. ALL is an aggregate of the voltages. Readings are made separately.
----- Original Message -----
From: Rob Conway
Sent: Saturday, November 04, 2006 12:11 AM
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Christian
I did a standard ipkg install and just rebooted, owfs picked up the 4 devices on the network and I did not do anything else.  Basically I use it as a data collector and simple web server "owfs + rrdtool + thttpd + smtpclient + NTP
 
I have used the TOP command to monitor CPU load and thttpd only takes 1-2 % CPU load to serve web pages and my script when it runs takes less than 1% load.  rrdtool can take up to 90% cpu utilisation.

today did an ipkg update and it reported an update to  "owlib on root from 2.4p1-1 to 2.5p5-4..."

 

 

 

How do you read your sensors from the NSLU2?

Answer:  just use a bash script to gather the data...see below... didn't know ifI should use cached or uncached so I used uncached

 
  ## Read script ############
 
  #!/bin/bash
  PH=$(/opt/bin/awk '{printf "%4.2f\n",((($0-1)/2.6667)+5.5)}' /tmp/1wire/uncached/20.B71F05000000/volt.A)
  US=$(/opt/bin/awk '{printf "%5.1f\n",($0*100)}' /tmp/1wire/uncached/20.B71F05000000/volt.B)
  T_DEGC=$(/opt/bin/awk '{printf "%3.1f\n",((($0-1)*5)+20)}' /tmp/1wire/uncached/20.B71F05000000/volt.C)
  CO2=$(/opt/bin/awk -v PH="$PH" '{printf "%4.1f\n",((3*$0)*(10^(7-PH)))}' /public/kh_value)
  TDS=$(/opt/bin/awk -v COND="$US" '{printf "%3.1f\n",(COND*$0)}' /public/tds_factor)
  LITRES=$(/opt/bin/awk '{printf "%3.1f\n",(($0-3.1)*65)}' /tmp/1wire/uncached/20.952A05000000/volt.D)
  rrdtool update /public/aquaph.rrd N:$PH
  rrdtool update /public/aquadegc.rrd N:$T_DEGC
  rrdtool update /public/aquaco2.rrd N:$CO2
  rrdtool update /public/aquacond.rrd N:$US
  rrdtool update /public/level.rrd N:$LITRES
##########################

 

Are the grahps generated on the actual NSLU2?

Answer: Yes I use rrdtool, on the NSLU2

 

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Answer: I just read from the file system

 

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Answer: Everything is running on the NSLU2,

 

Do you use the Bonjour/Zeroconf feature on the NSLU2?

Answer: ??? Don't know what this is, must have a look ? never touched any of the owfs configuration files.  Just use the :3001 web page to view some data and reset the PIO.x flags.

 
 
Is it normal to have all these processes running for 4 off 1wire devices on the network ?
 
## Output of ps ################
446 root        848 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  456 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  462 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  464 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  466 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  471 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  474 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  475 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  476 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  481 root        488 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  484 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  488 website    4056 S   /usr/sbin/thttpd -C /etc/thttpd-website.conf
  639 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  640 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  641 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  644 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  702 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  715 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  789 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5218 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5219 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5220 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 9222 root        824 S   upnpd &>/dev/null
10012 root       1828 S   sshd: root <at> ttyp0
10014 root        568 S   -sh
10236 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
10237 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
 
 
cheers from australia
 
 
 
 
 
 
----- Original Message -----
Sent: Friday, November 03, 2006 11:40 PM
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

How do you read your sensors from the NSLU2?

 

Are the grahps generated on the actual NSLU2?

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Do you use the Bonjour/Zeroconf feature on the NSLU2?

 

I'm just trying to figure out if it could be a network problem (either hardware or owfs-network code), fuse-related problem, mDNS bugs (in my quick compilation), or problem the new owshell commands.

 

/Christian

 

 

Från: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net] För Paul Alfille
Skickat: den 3 november 2006 12:24
Till: owfs-developers <at> lists.sourceforge.net
Ämne: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

>From the forum:
----------------------

Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3993682
By: rob_conway


First post to this group however have been usinf owfs for a couple fo months
and want to grow my network.  I have loaded owfs on my NSLU2 "aka SLUG" and
have a number of devices off the link.  It works great 99.9% of the time and
am very pleased.  I log the data and sync to NTP time and display this on a
web page.


I was wondering if anybody else has seen the following with respect to the DS2450
(4 ch A/D)

a/ A PIO channel sometimes, maybe once per month, change from 1 to 0 thus disabling
the analog input channel.  I then go back into the interface (web page) and
change it back to 1 and all is well again.  It can happen on any of the the
four channels however only 1 channel PIO gets changed.  I have no scripts quering
PIO.x  I suppose a fix maybe to query the PIO.x's and set it if its 0.

b/ The analog input reading seems very noisy ie the values change +/- 0.1 volts
on the Volt.x register ie 0-5v scale.  I have ended up doing a number of reads
and averaging the result over a 15 minute period.

c/ You will also see on the attached link below a spike on one of the temperature
inputs.  This can happen very infrequent and also late in the morning so I have
discounted any type of interference.
http://img.photobucket.com/albums/v319/rjconway/1wire.jpg


cheers

rob

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=292718

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Junkmail@srjava.cjb.net | 3 Nov 17:12 2006
Picon

Re: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Rob,
I can't help you with your question, but I am *VERY* interested in what you are doing.  I'm also looking to control/monitor my saltwater aquarium using 1-wire as you look to be.  Can you contact me off the OWFS list?  I'd love to get some info on your hardware, etc setup for monitoring the tank params.

Here's a disposable email address for you to use to contact me (that way I don't leave my main address on the list for hungry spammers )

owfs-rob.5.emale <at> spamgourmet.com

Thanks
-Scott


Alfille, Paul H.,M.D. wrote:
Rob,
 
You aren't using the DS2450 as a switch, just a volt meter. You needn't touch the PIO values. In fact, we are so measurement favoring that any switch settings will be reset whenever you try to read voltages.
 
(The confusion is that the same A/D volt-reading pins can be used for switching. The man page tries to warn you that the volt reading will wipe out switch activity).
 
Paul Alfille
-----Original Message-----
From: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net]On Behalf Of Rob Conway
Sent: Friday, November 03, 2006 8:24 AM
To: owfs-developers <at> lists.sourceforge.net
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Christian
The DS2450 PIO description seems alittle confusing..see below  I know the corresponding PIO.x has to be set (1) to be able to read from the Volt.x parameters, otherwise the Volt.x parameter are always 0.0000 irrespective of the channels input.
 
extract from DS2450
PIO.A ... PIO.D PIO.ALL read-write, yes-no Pins used for digital control. 1 turns the switch on (conducting). 0 turns the switch off (non-conducting). Control is specifically enabled. Reading volt will turn off this con- trol. ALL is an aggregate of the voltages. Readings are made separately.
----- Original Message -----
From: Rob Conway
Sent: Saturday, November 04, 2006 12:11 AM
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Christian
I did a standard ipkg install and just rebooted, owfs picked up the 4 devices on the network and I did not do anything else.  Basically I use it as a data collector and simple web server " owfs + rrdtool + thttpd + smtpclient + NTP
 
I have used the TOP command to monitor CPU load and thttpd only takes 1-2 % CPU load to serve web pages and my script when it runs takes less than 1% load.  rrdtool can take up to 90% cpu utilisation.

today did an ipkg update and it reported an update to  "owlib on root from 2.4p1-1 to 2.5p5-4..."

 

 

 

How do you read your sensors from the NSLU2?

Answer:  just use a bash script to gather the data...see below... didn't know ifI should use cached or uncached so I used uncached

 
  ## Read script ############
 
  #!/bin/bash
  PH=$(/opt/bin/awk '{printf "%4.2f\n",((($0-1)/2.6667)+5.5)}' /tmp/1wire/uncached/20.B71F05000000/volt.A)
  US=$(/opt/bin/awk '{printf "%5.1f\n",($0*100)}' /tmp/1wire/uncached/20.B71F05000000/volt.B)
  T_DEGC=$(/opt/bin/awk '{printf "%3.1f\n",((($0-1)*5)+20)}' /tmp/1wire/uncached/20.B71F05000000/volt.C)
  CO2=$(/opt/bin/awk -v PH="$PH" '{printf "%4.1f\n",((3*$0)*(10^(7-PH)))}' /public/kh_value)
  TDS=$(/opt/bin/awk -v COND="$US" '{printf "%3.1f\n",(COND*$0)}' /public/tds_factor)
  LITRES=$(/opt/bin/awk '{printf "%3.1f\n",(($0-3.1)*65)}' /tmp/1wire/uncached/20.952A05000000/volt.D)
  rrdtool update /public/aquaph.rrd N:$PH
  rrdtool update /public/aquadegc.rrd N:$T_DEGC
  rrdtool update /public/aquaco2.rrd N:$CO2
  rrdtool update /public/aquacond.rrd N:$US
  rrdtool update /public/level.rrd N:$LITRES
##########################

 

Are the grahps generated on the actual NSLU2?

Answer: Yes I use rrdtool, on the NSLU2

 

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Answer: I just read from the file system

 

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Answer: Everything is running on the NSLU2,

 

Do you use the Bonjour/Zeroconf feature on the NSLU2?

Answer: ??? Don't know what this is, must have a look ? never touched any of the owfs configuration files.  Just use the :3001 web page to view some data and reset the PIO.x flags.

 
 
Is it normal to have all these processes running for 4 off 1wire devices on the network ?
 
## Output of ps ################
446 root        848 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  456 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  462 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  464 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  466 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  471 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  474 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  475 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  476 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  481 root        488 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  484 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  488 website    4056 S   /usr/sbin/thttpd -C /etc/thttpd-website.conf
  639 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  640 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  641 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  644 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  702 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  715 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  789 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5218 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5219 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5220 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 9222 root        824 S   upnpd &>/dev/null
10012 root       1828 S   sshd: root <at> ttyp0
10014 root        568 S   -sh
10236 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
10237 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
 
 
cheers from australia
 
 
 
 
 
 
----- Original Message -----
Sent: Friday, November 03, 2006 11:40 PM
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

How do you read your sensors from the NSLU2?

 

Are the grahps generated on the actual NSLU2?

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Do you use the Bonjour/Zeroconf feature on the NSLU2?

 

I'm just trying to figure out if it could be a network problem (either hardware or owfs-network code), fuse-related problem, mDNS bugs (in my quick compilation), or problem the new owshell commands.

 

/Christian

 

 

Från: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net] För Paul Alfille
Skickat: den 3 november 2006 12:24
Till: owfs-developers <at> lists.sourceforge.net
Ämne: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

>From the forum:
----------------------

Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3993682
By: rob_conway


First post to this group however have been usinf owfs for a couple fo months
and want to grow my network.  I have loaded owfs on my NSLU2 "aka SLUG" and
have a number of devices off the link.  It works great 99.9% of the time and
am very pleased.  I log the data and sync to NTP time and display this on a
web page.


I was wondering if anybody else has seen the following with respect to the DS2450
(4 ch A/D)

a/ A PIO channel sometimes, maybe once per month, change from 1 to 0 thus disabling
the analog input channel.  I then go back into the interface (web page) and
change it back to 1 and all is well again.  It can happen on any of the the
four channels however only 1 channel PIO gets changed.  I have no scripts quering
PIO.x  I suppose a fix maybe to query the PIO.x's and set it if its 0.

b/ The analog input reading seems very noisy ie the values change +/- 0.1 volts
on the Volt.x register ie 0-5v scale.  I have ended up doing a number of reads
and averaging the result over a 15 minute period.

c/ You will also see on the attached link below a spike on one of the temperature
inputs.  This can happen very infrequent and also late in the morning so I have
discounted any type of interference.
http://img.photobucket.com/albums/v319/rjconway/1wire.jpg


cheers

rob

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=292718

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Owfs-developers mailing list Owfs-developers <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Rob Conway | 4 Nov 00:57 2006

Re: Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Thanks paul,
I have never seen any error's at all.  As I have just upgraded and rebooted yesterday I will monitor the statistics/errors, at the moment they are all 0 and wait for a spike and see if their is any correlation.
 
cheers
 
----- Original Message -----
Sent: Saturday, November 04, 2006 2:07 AM
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

So you use the FUSE system.
I gather that pH and Conductivity Temperature and Liters(?) are directly measured, CO2 is derived.
It looks like all the DS2450 values stop briefly at the same time.
It's hard to tell how many samples are dropped. Can you look at the statistics for the error statistics. If there are a lot of rereads, bus errors, reconnections, etc then we'd have an answer.
 
Paul Alfille
-----Original Message-----
From: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net]On Behalf Of Rob Conway
Sent: Friday, November 03, 2006 8:12 AM
To: owfs-developers <at> lists.sourceforge.net
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)
 
  ## Read script ############
 
  #!/bin/bash
  PH=$(/opt/bin/awk '{printf "%4.2f\n",((($0-1)/2.6667)+5.5)}' /tmp/1wire/uncached/20.B71F05000000/volt.A)
  US=$(/opt/bin/awk '{printf "%5.1f\n",($0*100)}' /tmp/1wire/uncached/20.B71F05000000/volt.B)
  T_DEGC=$(/opt/bin/awk '{printf "%3.1f\n",((($0-1)*5)+20)}' /tmp/1wire/uncached/20.B71F05000000/volt.C)
  CO2=$(/opt/bin/awk -v PH="$PH" '{printf "%4.1f\n",((3*$0)*(10^(7-PH)))}' /public/kh_value)
  TDS=$(/opt/bin/awk -v COND="$US" '{printf "%3.1f\n",(COND*$0)}' /public/tds_factor)
  LITRES=$(/opt/bin/awk '{printf "%3.1f\n",(($0-3.1)*65)}' /tmp/1wire/uncached/20.952A05000000/volt.D)
  rrdtool update /public/aquaph.rrd N:$PH
  rrdtool update /public/aquadegc.rrd N:$T_DEGC
  rrdtool update /public/aquaco2.rrd N:$CO2
  rrdtool update /public/aquacond.rrd N:$US
  rrdtool update /public/level.rrd N:$LITRES
##########################

 

Are the grahps generated on the actual NSLU2?

Answer: Yes I use rrdtool, on the NSLU2

 

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Answer: I just read from the file system

 

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Answer: Everything is running on the NSLU2,

 

Do you use the Bonjour/Zeroconf feature on the NSLU2?

Answer: ??? Don't know what this is, must have a look ? never touched any of the owfs configuration files.  Just use the :3001 web page to view some data and reset the PIO.x flags.

 
 
Is it normal to have all these processes running for 4 off 1wire devices on the network ?
 
## Output of ps ################
446 root        848 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  456 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  462 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  464 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  466 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  471 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  474 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  475 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  476 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  481 root        488 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  484 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  488 website    4056 S   /usr/sbin/thttpd -C /etc/thttpd-website.conf
  639 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  640 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  641 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  644 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  702 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  715 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  789 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5218 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5219 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5220 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 9222 root        824 S   upnpd &>/dev/null
10012 root       1828 S   sshd: root <at> ttyp0
10014 root        568 S   -sh
10236 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
10237 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
 
 
cheers from australia
 
 
 
 
 
 
----- Original Message -----
Sent: Friday, November 03, 2006 11:40 PM
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

How do you read your sensors from the NSLU2?

 

Are the grahps generated on the actual NSLU2?

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Do you use the Bonjour/Zeroconf feature on the NSLU2?

 

I'm just trying to figure out if it could be a network problem (either hardware or owfs-network code), fuse-related problem, mDNS bugs (in my quick compilation), or problem the new owshell commands.

 

/Christian

 

 

Från: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net] För Paul Alfille
Skickat: den 3 november 2006 12:24
Till: owfs-developers <at> lists.sourceforge.net
Ämne: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

>From the forum:
----------------------

Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3993682
By: rob_conway


First post to this group however have been usinf owfs for a couple fo months
and want to grow my network.  I have loaded owfs on my NSLU2 "aka SLUG" and
have a number of devices off the link.  It works great 99.9% of the time and
am very pleased.  I log the data and sync to NTP time and display this on a
web page.


I was wondering if anybody else has seen the following with respect to the DS2450
(4 ch A/D)

a/ A PIO channel sometimes, maybe once per month, change from 1 to 0 thus disabling
the analog input channel.  I then go back into the interface (web page) and
change it back to 1 and all is well again.  It can happen on any of the the
four channels however only 1 channel PIO gets changed.  I have no scripts quering
PIO.x  I suppose a fix maybe to query the PIO.x's and set it if its 0.

b/ The analog input reading seems very noisy ie the values change +/- 0.1 volts
on the Volt.x register ie 0-5v scale.  I have ended up doing a number of reads
and averaging the result over a 15 minute period.

c/ You will also see on the attached link below a spike on one of the temperature
inputs.  This can happen very infrequent and also late in the morning so I have
discounted any type of interference.
http://img.photobucket.com/albums/v319/rjconway/1wire.jpg


cheers

rob

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=292718

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Rob Conway | 4 Nov 01:27 2006

Fw: Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Paul,
It happens so infrequently (once a month) it only really effects my SMTP alarm generation as it gives a false alarm.  I'll monitor the errors when either a spike happens or the PIO.x mystically goes to 0 to try and narrow down the problem.  The spike maybe my voltage source anyhow, hard to prove.
 
Switch function
I assumed that when not reading voltage you would set PIO.x to 1 = on 0 = off
 
Voltage reading
I thought that normal operation (ie reading voltage) the PIO.x values would of been set to 0, however they have to be set to 1 to read voltage.  1 is the default setting anyhow.  That would then mean when I read voltage owfs should "reset" the PIO.x which must mean we turn these PIO.x to 1.
 
Reliable output switching
On the basis a network is healthy, have you seen any unreliable switching of the 1wire switch outputs.  The biggest thing this is stopping me doing is providing control outputs via the 1wire switch's.  I did want to control some water solenoids (non critical, although potentially very wet)  and I did not really want these to maybe false trigger, like my DS2450's PIO.x.  I was thinking of using the output of a 1wire switch as an input to a external PICaxe with the PIC having a simple program monitoring its input for a pulse train (say three pulses) and provide a supervised latched output.  Can you think of any other  way to provide a secure switched output, maybe two switches in series ? 
 
thanks for your help...owfs is such a great development,  
 
 
rob
SLUG + 1wire + owfs + rrdtool + thttpd + smtpclient + NTP = 1 rock'n little SLUG for data collection
 
 
 
----- Original Message -----
Sent: Saturday, November 04, 2006 2:11 AM
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Rob,
 
You aren't using the DS2450 as a switch, just a volt meter. You needn't touch the PIO values. In fact, we are so measurement favoring that any switch settings will be reset whenever you try to read voltages.
 
(The confusion is that the same A/D volt-reading pins can be used for switching. The man page tries to warn you that the volt reading will wipe out switch activity).
 
Paul Alfille
-----Original Message-----
From: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net]On Behalf Of Rob Conway
Sent: Friday, November 03, 2006 8:24 AM
To: owfs-developers <at> lists.sourceforge.net
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Christian
The DS2450 PIO description seems alittle confusing..see below  I know the corresponding PIO.x has to be set (1) to be able to read from the Volt.x parameters, otherwise the Volt.x parameter are always 0.0000 irrespective of the channels input.
 
extract from DS2450
PIO.A ... PIO.D PIO.ALL read-write, yes-no Pins used for digital control. 1 turns the switch on (conducting). 0 turns the switch off (non-conducting). Control is specifically enabled. Reading volt will turn off this con- trol. ALL is an aggregate of the voltages. Readings are made separately.
----- Original Message -----
From: Rob Conway
Sent: Saturday, November 04, 2006 12:11 AM
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

Christian
I did a standard ipkg install and just rebooted, owfs picked up the 4 devices on the network and I did not do anything else.  Basically I use it as a data collector and simple web server "owfs + rrdtool + thttpd + smtpclient + NTP
 
I have used the TOP command to monitor CPU load and thttpd only takes 1-2 % CPU load to serve web pages and my script when it runs takes less than 1% load.  rrdtool can take up to 90% cpu utilisation.

today did an ipkg update and it reported an update to  "owlib on root from 2.4p1-1 to 2.5p5-4..."

 

 

 

How do you read your sensors from the NSLU2?

Answer:  just use a bash script to gather the data...see below... didn't know ifI should use cached or uncached so I used uncached

 
  ## Read script ############
 
  #!/bin/bash
  PH=$(/opt/bin/awk '{printf "%4.2f\n",((($0-1)/2.6667)+5.5)}' /tmp/1wire/uncached/20.B71F05000000/volt.A)
  US=$(/opt/bin/awk '{printf "%5.1f\n",($0*100)}' /tmp/1wire/uncached/20.B71F05000000/volt.B)
  T_DEGC=$(/opt/bin/awk '{printf "%3.1f\n",((($0-1)*5)+20)}' /tmp/1wire/uncached/20.B71F05000000/volt.C)
  CO2=$(/opt/bin/awk -v PH="$PH" '{printf "%4.1f\n",((3*$0)*(10^(7-PH)))}' /public/kh_value)
  TDS=$(/opt/bin/awk -v COND="$US" '{printf "%3.1f\n",(COND*$0)}' /public/tds_factor)
  LITRES=$(/opt/bin/awk '{printf "%3.1f\n",(($0-3.1)*65)}' /tmp/1wire/uncached/20.952A05000000/volt.D)
  rrdtool update /public/aquaph.rrd N:$PH
  rrdtool update /public/aquadegc.rrd N:$T_DEGC
  rrdtool update /public/aquaco2.rrd N:$CO2
  rrdtool update /public/aquacond.rrd N:$US
  rrdtool update /public/level.rrd N:$LITRES
##########################

 

Are the grahps generated on the actual NSLU2?

Answer: Yes I use rrdtool, on the NSLU2

 

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Answer: I just read from the file system

 

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Answer: Everything is running on the NSLU2,

 

Do you use the Bonjour/Zeroconf feature on the NSLU2?

Answer: ??? Don't know what this is, must have a look ? never touched any of the owfs configuration files.  Just use the :3001 web page to view some data and reset the PIO.x flags.

 
 
Is it normal to have all these processes running for 4 off 1wire devices on the network ?
 
## Output of ps ################
446 root        848 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  456 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  462 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  464 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  466 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  471 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  474 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  475 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  476 root        628 S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -p 0.0.0.0:
  481 root        488 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  484 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  488 website    4056 S   /usr/sbin/thttpd -C /etc/thttpd-website.conf
  639 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  640 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  641 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  644 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  702 root        492 S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002 -p 3001
  715 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
  789 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5218 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5219 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 5220 root        928 S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/1wire
 9222 root        824 S   upnpd &>/dev/null
10012 root       1828 S   sshd: root <at> ttyp0
10014 root        568 S   -sh
10236 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
10237 root        852 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
 
 
cheers from australia
 
 
 
 
 
 
----- Original Message -----
Sent: Friday, November 03, 2006 11:40 PM
Subject: Re: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

How do you read your sensors from the NSLU2?

 

Are the grahps generated on the actual NSLU2?

Do you read from a mounted fuse-filesystem on the NSLU2, or are you connecting to a running owserver on the NSLU2?

Do you use the owshell-commands on a NSLU2 or some other remote-server?

Do you use the Bonjour/Zeroconf feature on the NSLU2?

 

I'm just trying to figure out if it could be a network problem (either hardware or owfs-network code), fuse-related problem, mDNS bugs (in my quick compilation), or problem the new owshell commands.

 

/Christian

 

 

Från: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net] För Paul Alfille
Skickat: den 3 november 2006 12:24
Till: owfs-developers <at> lists.sourceforge.net
Ämne: [Owfs-developers] Fwd: [owfs - Help] DS2450 and the NSLU2 (SLUG)

 

>From the forum:
----------------------

Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3993682
By: rob_conway


First post to this group however have been usinf owfs for a couple fo months
and want to grow my network.  I have loaded owfs on my NSLU2 "aka SLUG" and
have a number of devices off the link.  It works great 99.9% of the time and
am very pleased.  I log the data and sync to NTP time and display this on a
web page.


I was wondering if anybody else has seen the following with respect to the DS2450
(4 ch A/D)

a/ A PIO channel sometimes, maybe once per month, change from 1 to 0 thus disabling
the analog input channel.  I then go back into the interface (web page) and
change it back to 1 and all is well again.  It can happen on any of the the
four channels however only 1 channel PIO gets changed.  I have no scripts quering
PIO.x  I suppose a fix maybe to query the PIO.x's and set it if its 0.

b/ The analog input reading seems very noisy ie the values change +/- 0.1 volts
on the Volt.x register ie 0-5v scale.  I have ended up doing a number of reads
and averaging the result over a 15 minute period.

c/ You will also see on the attached link below a spike on one of the temperature
inputs.  This can happen very infrequent and also late in the morning so I have
discounted any type of interference.
http://img.photobucket.com/albums/v319/rjconway/1wire.jpg


cheers

rob

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=292718

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Matt | 4 Nov 08:05 2006

Problems


Hi,

I've been trying to integrate owfs with my Nagios (www.nagios.org)
installation at work this week and have had a few problems.

The system is Debian Sarge, kernel 2.6.8.

I run ./configure in the owfs-2.5p5 folder, this seems to complete ok.
Ends with :

Current configuration:

    Deployment location: /opt/owfs

Compile-time options:
                  Caching is enabled
                      USB is DISABLED
                      I2C is enabled
                   HA7Net is enabled
           Multithreading is enabled
    Parallel port DS1410E is enabled
        TAI8570 barometer is enabled
             Thermocouple is enabled
             Debug-output is enabled
                Profiling is DISABLED
       Zeroconf (Bonjour) is DISABLED

Module configuration:
        owfs is enabled
     owhttpd is enabled
      owftpd is enabled
    owserver is enabled
      owcapi is enabled
        swig is enabled
      owperl is enabled
       owphp is DISABLED
    owpython is enabled
       owtcl is DISABLED

Then I run `make`, which appears to chug along happily for a while and then
borks with the following :
make[4]: Entering directory `/root/owfs/owfs-2.5p5/module/swig/python'
/usr/bin/swig -python -o ow_wrap.c ../ow.i
python setup.py build
running build
running build_py
running build_ext
building '_OW' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-fPI                                                 C
-I../../owlib/src/include -I../../../src/include -I/usr/include/python2.3 -c
o                                                 w_wrap.c -o
build/temp.linux-i686-2.3/ow_wrap.o
ow_wrap.c:703: warning: function declaration isn't a prototype
ow_wrap.c:885: warning: function declaration isn't a prototype
ow_wrap.c:1288: warning: function declaration isn't a prototype
ow_wrap.c:1310: warning: function declaration isn't a prototype
ow_wrap.c:1350: warning: function declaration isn't a prototype
ow_wrap.c:1526: warning: function declaration isn't a prototype
ow_wrap.c:1749: warning: function declaration isn't a prototype
ow_wrap.c:214: warning: `SWIG_TypeDynamicCast' defined but not used
ow_wrap.c:402: warning: `SWIG_UnpackDataName' defined but not used
ow_wrap.c:472: warning: `SWIG_TypeClientData' defined but not used
ow_wrap.c:482: warning: `SWIG_PropagateClientData' defined but not used
ow_wrap.c:1181: warning: `SWIG_Python_MustGetPtr' defined but not used
ow_wrap.c:1195: warning: `SWIG_Python_ConvertPacked' defined but not used
ow_wrap.c:1860: warning: `SWIG_Python_addvarlink' defined but not used
gcc -pthread -shared build/temp.linux-i686-2.3/ow_wrap.o
-L../../owlib/src/c/.li                                                 bs
-Wl,-R/opt/owfs/lib -low -o build/lib.linux-i686-2.3/ow/_OW.so
make[4]: Leaving directory `/root/owfs/owfs-2.5p5/module/swig/python'
make[3]: Leaving directory `/root/owfs/owfs-2.5p5/module/swig/python'
Making all in tcl
make[3]: Entering directory `/root/owfs/owfs-2.5p5/module/swig/tcl'
sed -e '/^#/d' -e '/^$/d' -e 's/\"/\\"/g' -e 's/^/"/' -e 's/$/\\n"/' <ow.tcl
> o                                                 w.tcl.h || { /bin/rm
ow.tcl.h; exit 1; }
if /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.                                                  -I../../../src/include
-I../../owlib/src/include -I ../../owcapi/src/include
-fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual
-Wcast-align
-Wstrict-prototypes -Wredundant-decls -D_FILE_OFFSET_BITS=64
-DTCL_PACKAGE_PA                                                 TH=\"''\"
-DOWTCL_PACKAGE_PATH=\"/owtcl-0.1\" -g -O2 -pthread -MT ow.lo -MD -MP
-MF ".deps/ow.Tpo" -c -o ow.lo ow.c; \
then mv -f ".deps/ow.Tpo" ".deps/ow.Plo"; else rm -f ".deps/ow.Tpo"; exit 1;
fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include
-I../../owlib/src/include -I
../../owcapi/src/include -fexceptions -Wall -W -Wundef -Wshadow
-Wpointer-arith                                                  -Wcast-qual
-Wcast-align -Wstrict-prototypes -Wredundant-decls -D_FILE_OFFSET_B
ITS=64 -DTCL_PACKAGE_PATH=\"\" -DOWTCL_PACKAGE_PATH=\"/owtcl-0.1\" -g -O2
-pthre                                                 ad -MT ow.lo -MD -MP
-MF .deps/ow.Tpo -c ow.c  -fPIC -DPIC -o .libs/ow.o
ow.c:14:17: tcl.h: No such file or directory
ow.c:39: error: syntax error before '*' token
ow.c:40: warning: function declaration isn't a prototype
ow.c: In function `owtcl_ErrorMsg':
ow.c:47: error: `Tcl_Obj' undeclared (first use in this function)
ow.c:47: error: (Each undeclared identifier is reported only once
ow.c:47: error: for each function it appears in.)
ow.c:47: error: `obj' undeclared (first use in this function)
ow.c:49: warning: implicit declaration of function `va_start'
ow.c:49: error: `format' undeclared (first use in this function)
ow.c:55: warning: implicit declaration of function `Tcl_NewStringObj'
ow.c:58: warning: implicit declaration of function `va_end'
ow.c:62: warning: implicit declaration of function `Tcl_SetObjResult'
ow.c:62: error: `interp' undeclared (first use in this function)
ow.c: At top level:
ow.c:65: error: syntax error before "clientData"
ow.c:66: warning: function declaration isn't a prototype
ow.c: In function `Owtcl_Connect':
ow.c:67: error: `clientData' undeclared (first use in this function)
ow.c:70: error: `TCL_OK' undeclared (first use in this function)
ow.c:71: error: `objc' undeclared (first use in this function)
ow.c:71: warning: implicit declaration of function `Tcl_IncrRefCount'
ow.c:71: error: `objv' undeclared (first use in this function)
ow.c:74: error: `interp' undeclared (first use in this function)
ow.c:75: error: `TCL_ERROR' undeclared (first use in this function)
ow.c:78: warning: implicit declaration of function `Tcl_GetStringFromObj'
ow.c:78: warning: assignment makes pointer from integer without a cast
ow.c:89: warning: implicit declaration of function `Tcl_DecrRefCount'
ow.c: At top level:
ow.c:93: error: syntax error before "clientData"
ow.c:94: warning: function declaration isn't a prototype
ow.c: In function `Owtcl_Delete':
ow.c:95: error: `clientData' undeclared (first use in this function)
ow.c:97: error: `interp' undeclared (first use in this function)
ow.c:98: error: `objc' undeclared (first use in this function)
ow.c:99: error: `objv' undeclared (first use in this function)
ow.c:104: error: `TCL_OK' undeclared (first use in this function)
ow.c: At top level:
ow.c:107: error: syntax error before "clientData"
ow.c:108: warning: function declaration isn't a prototype
ow.c: In function `Owtcl_Put':
ow.c:109: error: `clientData' undeclared (first use in this function)
ow.c:112: error: `TCL_OK' undeclared (first use in this function)
ow.c:113: error: `objc' undeclared (first use in this function)
ow.c:113: error: `objv' undeclared (first use in this function)
ow.c:116: warning: implicit declaration of function `Tcl_AppendResult'
ow.c:116: error: `interp' undeclared (first use in this function)
ow.c:117: error: `TCL_ERROR' undeclared (first use in this function)
ow.c:122: warning: implicit declaration of function `Tcl_WrongNumArgs'
ow.c:129: warning: assignment makes pointer from integer without a cast
ow.c:132: warning: assignment makes pointer from integer without a cast
ow.c: At top level:
ow.c:149: error: syntax error before "clientData"
ow.c:150: warning: function declaration isn't a prototype
ow.c: In function `Owtcl_Get':
ow.c:151: error: `clientData' undeclared (first use in this function)
ow.c:153: error: `TCL_OK' undeclared (first use in this function)
ow.c:155: error: `Tcl_Obj' undeclared (first use in this function)
ow.c:155: error: `resultPtr' undeclared (first use in this function)
ow.c:156: error: `objc' undeclared (first use in this function)
ow.c:156: error: `objv' undeclared (first use in this function)
ow.c:159: error: `interp' undeclared (first use in this function)
ow.c:160: error: `TCL_ERROR' undeclared (first use in this function)
ow.c:167: warning: assignment makes pointer from integer without a cast
ow.c:177: warning: assignment makes pointer from integer without a cast
ow.c:193: warning: implicit declaration of function `Tcl_NewListObj'
ow.c:196: warning: implicit declaration of function
`Tcl_ListObjAppendElement'
ow.c:200: warning: redundant redeclaration of `Tcl_ListObjAppendElement' in
same                                                  scope
ow.c:196: warning: previous declaration of `Tcl_ListObjAppendElement'
ow.c:200: warning: redundant redeclaration of `Tcl_NewStringObj' in same
scope
ow.c:196: warning: previous declaration of `Tcl_NewStringObj'
ow.c:202: warning: redundant redeclaration of `Tcl_NewStringObj' in same
scope
ow.c:196: warning: previous declaration of `Tcl_NewStringObj'
ow.c:205: warning: redundant redeclaration of `Tcl_NewStringObj' in same
scope
ow.c:196: warning: previous declaration of `Tcl_NewStringObj'
ow.c: At top level:
ow.c:214: error: syntax error before "clientData"
ow.c:215: warning: function declaration isn't a prototype
ow.c: In function `Owtcl_Version':
ow.c:216: error: `clientData' undeclared (first use in this function)
ow.c:218: error: `Tcl_Obj' undeclared (first use in this function)
ow.c:218: error: `resultPtr' undeclared (first use in this function)
ow.c:222: error: `objc' undeclared (first use in this function)
ow.c:223: error: `objv' undeclared (first use in this function)
ow.c:227: error: `interp' undeclared (first use in this function)
ow.c:228: error: `TCL_OK' undeclared (first use in this function)
ow.c: At top level:
ow.c:231: error: syntax error before "clientData"
ow.c:232: warning: function declaration isn't a prototype
ow.c: In function `Owtcl_IsDir':
ow.c:233: error: `clientData' undeclared (first use in this function)
ow.c:237: error: `TCL_OK' undeclared (first use in this function)
ow.c:238: error: `Tcl_Obj' undeclared (first use in this function)
ow.c:238: error: `resultPtr' undeclared (first use in this function)
ow.c:240: error: `objc' undeclared (first use in this function)
ow.c:240: error: `objv' undeclared (first use in this function)
ow.c:243: error: `interp' undeclared (first use in this function)
ow.c:244: error: `TCL_ERROR' undeclared (first use in this function)
ow.c:257: warning: assignment makes pointer from integer without a cast
ow.c:264: warning: implicit declaration of function `Tcl_GetObjResult'
ow.c:266: warning: implicit declaration of function `Tcl_SetIntObj'
ow.c: At top level:
ow.c:300: error: syntax error before '*' token
ow.c:300: warning: function declaration isn't a prototype
ow.c: In function `Ow_Init':
ow.c:311: warning: implicit declaration of function `Tcl_PkgRequire'
ow.c:311: error: `interp' undeclared (first use in this function)
ow.c:313: warning: comparison between pointer and integer
ow.c:314: error: `TCL_ERROR' undeclared (first use in this function)
ow.c:324: warning: implicit declaration of function `Tcl_CreateObjCommand'
ow.c:324: error: `Tcl_ObjCmdProc' undeclared (first use in this function)
ow.c:324: error: syntax error before ')' token
ow.c:330: warning: implicit declaration of function `Tcl_CallWhenDeleted'
ow.c:331: error: `Tcl_InterpDeleteProc' undeclared (first use in this
function)
ow.c:331: error: syntax error before ')' token
ow.c:334: warning: implicit declaration of function `Tcl_PkgProvide'
ow.c:334: error: `TCL_OK' undeclared (first use in this function)
ow.c:342: warning: implicit declaration of function `Tcl_Eval'
ow.c:342: warning: implicit declaration of function `Tcl_IsSafe'
ow.c: At top level:
ow.c:356: error: syntax error before '*' token
ow.c:356: warning: function declaration isn't a prototype
ow.c: In function `Ow_SafeInit':
ow.c:359: error: `interp' undeclared (first use in this function)
make[3]: *** [ow.lo] Error 1
make[3]: Leaving directory `/root/owfs/owfs-2.5p5/module/swig/tcl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/owfs/owfs-2.5p5/module/swig'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/owfs/owfs-2.5p5/module'
make: *** [all-recursive] Error 1

After all that, I was able to run owserver and connect to a Link Hub.
If I run owserver with --forground, it's fine, I can access readings with
owread (which is great btw).
Running in background though, any attempt to owread results in owserver
unloading.

Not knowing how to fix all this, but still keen to make some progress, I had
a look at the python bindings.
I hacked together this script.

#! /usr/bin/env python 

import ow 
import sys 

def main(argv=None): 
    if argv is None: 
      argv = sys.argv 
    if len( argv ) < 2: 
      print "usage: temperature.py serial_port_path ID temperature|humidity
CriticalLow WarningLow WarningHigh CriticalHigh"

      return 3 
    else: 
      ow.init(argv[1]) 
      sensor=ow.Sensor(argv[2]) 
      if argv[3]=="temperature": 
        v=float(sensor.temperature) 
      elif argv[3]=="humidity": 
        v=float(sensor.humidity) 

    if v>float(argv[7]) or v<float(argv[4]): 
        print "CRITICAL: ", v 
        return 2 
    elif v>float(argv[6]) or v<float(argv[5]): 
        print "WARNING: ", v 
        return 1 
    else : 
        print "OK:", v 
        return 0 

if __name__ == "__main__": 
    sys.exit(main()) 

This runs and works fine if I run it manually, but when nagios runs it
fails.
I narrowed it down to this line :

sensor=ow.Sensor(argv[2])

if I comment this out and fake the data it all works, nagios accepts the
results of the script.
With it in something fails.

Thanks for reading, sorry it's so long.

Matt

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane