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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Rob Conway
Sent: Friday, November 03, 2006 8:24 AM
To: owfs-developers@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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Paul Alfille
Skickat: den 3 november 2006 12:24
Till: owfs-developers@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@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@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@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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to