[Owfs-developers] Simple program switching a DS2405??!

2008-01-20 Thread Paul Alfille
-- weitergeleitete email ---
von:: cettl
an:: owfs-developers@lists.sourceforge.net
betreff:: Simple program switching a DS2405??!
datum:: 19.01.08 23:49

Hello sourceforge community!

This is my first mail directly to you, and I hope, someone here can help me
(Please)!!

I?m a newbie in all this 1-wire things and Unix. I have a DS2405 which I
want to control with the help of the NSLU2 from a web browser. With
hardware, I have no problem (since I?m an analog designer), but with
software, hehe!
Here is my status, what is working and what not:
What?s already functioning now, are the commands:
owwrite 05.24302C00/PIO 1
owwrite 05.24302C00/PIO 0
I can see this DS2405 also in the web browser of the owfs written by Paul
Alfille (http://192.168.1.77:3001/Serial_Number_of_device). Unfortunately,
the PIO changes only from ?off? to ?on?. I also tried the perl temperature
reading program by Paul Alfille. Over the web browser, I can see the
temperature, but the program running on the NSLU2 gives back an error
message.

However, I have absolutely no idea about is how I do this web browser
connection by MYSELF. Yes, in principle, this web browser from Paul does
exactly the same thing I want, but with the difference that all this is
somewhere written and distributed in the 10 files of this owfs. So what
I badly would need is a VERY SIMPLE program which does change the output of
the DS2405 when clicking with the mouse. But now, everything is integrated
somehow (and I cannot follow how) in this large owfs. I have to start with a
very simple program and then, it should be no problem for me to add some
code to make more functions I want.

What I want at the end is making a water plant system: The NSLU over the
1-wire measures the water level on a plant and controls a DS2405 which
controls a valve to water it. This system should run on itself and for
maintanance or for adding a plant I want to connect the computer and see on
the web browser which plant got how much water and so on.

And now I beg if anyone could be so nice and write me this very little
program which does the following: When I click with the mouse on the button
?ON?, this DS2405 should switch on, when I click on the button ?OFF?. For
me, it is important that it is a very simple program, consisting only of
some lines (I heard, perl would be good). As I said, it?s no problem for me
to continue by myself and enlarge this little program with more functions
etc., but now, I have absolutely no idea how to start. I tried already some
perl programs (e.g. reading the temperature from a DS

THANK YOU in advance for your willingness to help me!!
Bernd2700
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] DS1821 Thermostat support and reset circuit

2008-01-20 Thread Paul Alfille
Your choice.

Either send the code and the schematic/instructions to me, or get added as a
developer and add it yourself.

And thank you.

Paul Alfille

On Jan 20, 2008 9:44 PM, Doug Collinge [EMAIL PROTECTED] wrote:

 I have just completed support for the DS1821 thermostat chip,
 implementing all the features in the datasheet.  It is tested and
 ready to commit as far as I can tell.  What should I do with it?

 One of the little issues with the DS1821 is that, once you program it
 to be a thermostat it stops listening to the 1-wire bus so you can't
 unprogram it anymore.  That is, unless you generate a magic reset
 sequence, which you can't generate on the 1-wire bus.

 Not to worry...  I designed a little two-chip circuit that generates
 the necessary sequence that you could whip up in 20 minutes on a
 protoboard.  You might even have all the parts on hand...

 It's all documented and ready to upload if you think anyone else might
 find it useful.

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] DS1821 Thermostat support and reset circuit

2008-01-22 Thread Paul Alfille
Very nicely done, Doug. Code, man page, circuit schematic with explanation,
timing diagrams and photographs.

Just to remind everyone, the DS1821 is a pseudo-1wire chip. It has no unique
address. It can be taken out of 1-wire mode by software, which then makes it
unreachable.

We get around the no-address problem by blindly sending commands to and
reading from device thermostat. Any DS1821 in 1-wire mode will respond
appropriately.

Doug's circuit gets around the second problem -- switching the DS1821 back
into 1-wire mode.

Paul Alfille
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Possibly two small bugs in owfs

2008-01-22 Thread Paul Alfille
Ok, did an experiment -- the AAG TIA8540 (in the stainless canister) vs
Amprobe TH-2 benchtop meter:

AMPROBEOWFS
C  %   C %
17.2   31.219.0  29.0
18.5   32.320.22 28.4
damp towel
16.3   82.318.5  74.5
15.6   86.118.1  78.3
15.2   88.717.4  81.7
14.8   90.016.7  83.6
14.4   92.815.9  89.9

It appears that the Stainless humidity sensor housing has some more thermal
mass and thus lags, but tracks closely.

Paul Alfille
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Bits to produce a .deb file

2008-01-24 Thread Paul Alfille
dpkg-buildroot is poorly documented, and I am struggling.

Debian etch

apt-get install dpkg-dev (who new?)
dpkg-buildpackage -rfakeroot owfs.git-debian.tar.gz
just shows the help page. Any suggestions?

Paul Alfille

On Dec 26, 2007 11:59 AM, Matthias Urlichs [EMAIL PROTECTED] wrote:

 Hi,

 Paul Alfille:
  Can the build be automated?
 
 I'll set that up soon(ish :-/ ).

 The packaging isn't quite correct yet, but should work. I'm using these
 as-is on my main server (and, built for ARM, on my slugs).

  How do these packages correspond to the normal owfs binaries:
  owfs, owhttpd, owftpd, owserver?

   libowfs27_2.7p2-1_i386.deb

 Library.

   owfs_2.7p2-1_i386.deb

 Main utilities if they don't depend on anything else.

   fuseowfs_2.7p2-1_i386.deb

 owfs; depends on libfuse in addition to the other stuff so it gets its
 own package (for now; we'll see what the Debian FTP maintainers have to
 say about that).

   owfs-dev_2.7p2-1_i386.deb

 Development headers and library.

   libow-perl_2.7p2-1_i386.deb

 Perl support (direct).

   python-ow_2.7p2-1_i386.deb

 Python support (direct).

   libownet-perl_2.7p2-1_i386.deb

 ownet support for Perl.

   python-ownet_2.7p2-1_i386.deb

 ownet support for Python.

   owfs-tcl_2.7p2-1_i386.deb

 TCL bindings and everything that needs TCL.

   libownet-php_2.7p2-1_i386.deb

 ownet support for PHP.

   owfs-doc_2.7p2-1_all.deb

 Manpages and stuff.

   owfs-dbg_2.7p2-1_i386.deb

 Debugging symbols for all of the above.

  Are the two utilities: owtap and owmon included?

 Yes.


 --
 Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |
 [EMAIL PROTECTED]
 Disclaimer: The quote was selected randomly. Really. |
 http://smurf.noris.de
  - -
 * liw prefers not to have Linus run Debian, because then /me would
  have to run Red Hat, just to keep the power balance :)
-- #Debian

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Bits to produce a .deb file

2008-01-25 Thread Paul Alfille
On Jan 25, 2008 3:00 AM, Michael Weber [EMAIL PROTECTED] wrote:

 Usually one unpacks the source, cds into the source dir (the one that
 contains the debian/ dir), and there

 cd owfs-2.7

doesn't exist in that directory

 dpkg-buildpackage -r fakeroot

complains about no debian/changelog


 Michael

 On Jan 25, 2008 4:32 AM, Paul Alfille [EMAIL PROTECTED] wrote:
  dpkg-buildroot is poorly documented, and I am struggling.
 
  Debian etch
 
  apt-get install dpkg-dev (who new?)
  dpkg-buildpackage -rfakeroot owfs.git-debian.tar.gz
  just shows the help page. Any suggestions?
 
  Paul Alfille
 
 
 
  On Dec 26, 2007 11:59 AM, Matthias Urlichs [EMAIL PROTECTED] wrote:
   Hi,
  
   Paul Alfille:
  
Can the build be automated?
   
   I'll set that up soon(ish :-/ ).
  
   The packaging isn't quite correct yet, but should work. I'm using
 these
   as-is on my main server (and, built for ARM, on my slugs).
  
  
How do these packages correspond to the normal owfs binaries:
owfs, owhttpd, owftpd, owserver?
  
  
 libowfs27_2.7p2-1_i386.deb
  
   Library.
  
  
 owfs_2.7p2-1_i386.deb
  
   Main utilities if they don't depend on anything else.
  
  
 fuseowfs_2.7p2-1_i386.deb
  
   owfs; depends on libfuse in addition to the other stuff so it gets its
   own package (for now; we'll see what the Debian FTP maintainers have
 to
   say about that).
  
  
 owfs-dev_2.7p2-1_i386.deb
  
   Development headers and library.
  
  
 libow-perl_2.7p2-1_i386.deb
  
   Perl support (direct).
  
  
 python-ow_2.7p2-1_i386.deb
  
   Python support (direct).
  
  
 libownet-perl_2.7p2-1_i386.deb
  
   ownet support for Perl.
  
  
 python-ownet_2.7p2-1_i386.deb
  
   ownet support for Python.
  
  
 owfs-tcl_2.7p2-1_i386.deb
  
   TCL bindings and everything that needs TCL.
  
  
 libownet-php_2.7p2-1_i386.deb
  
   ownet support for PHP.
  
  
 owfs-doc_2.7p2-1_all.deb
  
   Manpages and stuff.
  
  
 owfs-dbg_2.7p2-1_i386.deb
  
   Debugging symbols for all of the above.
  
  
Are the two utilities: owtap and owmon included?
  
   Yes.
  
  
  
   --
   Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |
  [EMAIL PROTECTED]
   Disclaimer: The quote was selected randomly. Really. |
  http://smurf.noris.de
- -
   * liw prefers not to have Linus run Debian, because then /me would
have to run Red Hat, just to keep the power balance :)
  -- #Debian
  
  
  
  
  
 -
   This SF.net email is sponsored by: Microsoft
   Defy all challenges. Microsoft(R) Visual Studio 2005.
   http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
   ___
   Owfs-developers mailing list
   Owfs-developers@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/owfs-developers
  
 
 
 
 -
  This SF.net email is sponsored by: Microsoft
  Defy all challenges. Microsoft(R) Visual Studio 2008.
  http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
  ___
  Owfs-developers mailing list
  Owfs-developers@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/owfs-developers
 
 



 --
 Dr. Michael Weber | +49 331 7499 - 632 | fax - 200 | [EMAIL PROTECTED]
 Astrophysikalisches Institut Potsdam (AIP)
 An der Sternwarte 16, D-14482 Potsdam
 Vorstand: Prof. Dr. Matthias Steinmetz, Peter A. Stolz
 Stiftung privaten Rechts, Stiftungsverzeichnis Brandenburg: III/7-71-026

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Bits to produce a .deb file

2008-01-25 Thread Paul Alfille
On Jan 25, 2008 3:29 AM, Matthias Urlichs [EMAIL PROTECTED] wrote:

 Hi,

 Paul Alfille:
  dpkg-buildroot is poorly documented, and I am struggling.
 
 Something like this should work:

 # apt-get install dpkg-dev fakeroot

also
apt-get install debhelper
apt-get install python2.5-dev
apt-get install tcl8.4-dev
apt-get install automake1.9

Still complains
1. no python-dev =2.5
2. source version without epoch
/usr/bin/fakeroot: line 150: debian/rules: Permission denied

Any suggestions?

Paul Alfille



 # tar xfvz owfs.tar.gz
 # cd owfs
 # dpkg-buildpackage -rfakeroot -b
 # cd ..
 # ls *.deb  :-)

 My autobuilder currently has the hiccups; I'll see what I can do. :-/

 --
 Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |
 [EMAIL PROTECTED]
 Disclaimer: The quote was selected randomly. Really. |
 http://smurf.noris.de
  - -
 Thou shalt remember the Eleventh Commandment and keep it Wholly.

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Fwd: CMC industrial Electronics Ltd 1-wire module

2008-01-28 Thread Paul Alfille
On Jan 28, 2008 12:54 PM, Doug Collinge [EMAIL PROTECTED] wrote:

 Wire(R) - 8 bit CRC. The family code for the sensor is 178 decimal or B2
 Hex. The sensor

0xB2 is an alias of 0x32 -- the DS2780 (see
http://owfs.org/index.php?page=standard-devices)
which should be supported.

According to the datasheet, or
http://owfs.org/index.php?page=voltage-measurement, the DS2780 is
essentially a 0-5V chip, suggesting there is some conditioning circuitry in
the device.

Paul Alfille
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] Fwd: CMC industrial Electronics Ltd 1-wire module

2008-01-28 Thread Paul Alfille
From: Lapointe, Claude
Date: 2008/1/25
Subject: CMC industrial Electronics Ltd 1-wire module
To: Paul Alfille [EMAIL PROTECTED]


 Hi Paul,

I buy recently a 4-20 ma Analog Input Module 1-wire of CMC Industrial
Electronics Ltd model mAM001

http://www.cmciel.com/Commercial%20Monitoring.htm

The owfs don't find this sensor.

Do you know this compagny and his product?  Because I want use the 1-wire to
4-20ma convertor to connect old 4-20ma humidity sensor and read it with
owfs.


Claude Lapointe, ing.
Transports Québec
Service des technologies d'exploitation
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Bits to produce a .deb file

2008-01-31 Thread Paul Alfille
Failed to fetch
http://alt.smurf.nois.de/debian/dists/stable/smuft/binary-i386/Packages.bz2Sub-process
bzip2 returned an error code (2)

Is this a problem with my setup?

Paul Alfille

On Jan 28, 2008 10:30 AM, Matthias Urlichs [EMAIL PROTECTED] wrote:


 Make that mostly cleanly. :-/

 deb http://alt.smurf.noris.de/debian stable smurf

 Feedback is, of course, welcome.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] New OWFS non-root access USB udev rule

2008-02-10 Thread Paul Alfille
The website now includes both methods:
http://owfs.org/index.php?page=udev-and-usb

Tell me if I got the details correct.

Paul Alfille

On Feb 8, 2008 9:03 AM, Sven Geggus [EMAIL PROTECTED] wrote:

 Hm, does not look simple enough to me!

 Im using this one:

 --cut--
  ~/ # cat /etc/udev/rules.d/owfs.rules
 SUBSYSTEM!=usb_device, ACTION!=add, GOTO=owfs_rules_end

 # DS2490 1-Wire adapter
 SYSFS{idVendor}==04fa, SYSFS{idProduct}==2490, MODE=660,
 GROUP=owfs

 LABEL=owfs_rules_end
 --cut--

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] Fwd: 1wire hardware

2008-02-16 Thread Paul Alfille
-- Forwarded message --
From: Marco Tozzini [EMAIL PROTECTED]
Date: Feb 16, 2008 4:16 AM
Subject: Re: 1wire hardware
To: Paul Alfille [EMAIL PROTECTED]
Cc: Marco Tozzini [EMAIL PROTECTED]


Hi Paul

Sorry for delay in reply
I found some problem running OWFS under Openwrt kamikaze 7.09 and ASUS
WL500gP
packages for 7.07 works also for 7.09 but only for kernel 2.6
I need kernel 2.4 to make wifi working too (there is still nod driver
for broadcom wifi on asus and kernel 2.6)
I try to compile OWFS for 7.09 but OWFS has a strange (FOR ME)
configuration way and I'm not able to figure out how to do a complete
compilation
I wonder if you can address me to how to compile the owfs also for
kamikaze 7.09 (I think the same way you did for 7.07 is enough good)

Thanks

Ciao
Marco

P.S.
I'm using OWFS on ASUS WL500gP and it works good also with internal
serial port (2.4 = /dev/tts/1 or 2.6 = /dev/ttyS1)
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Problems with AAG TAI8558/DS2408 and DS9097U

2008-02-18 Thread Paul Alfille
The AAG microhub (DS2409-based) humidity probe (DS2438 based) and barometer
(DS2406x2) all work perfectly with OWFS.

The TAI8558 http://www.aagelectronica.com/pdf%20docs/TAI_8558.pdf is a
DS2408, but looks like it needs to be powered, or have something done with
JP1.

The TAI8555
http://www.aagelectronica.com/pdf%20docs/tai8555%20switch%20(ingles).pdf is
DS2406 based, doesn't seem to touch the power line, and should have no
issues.

Do either of the AAG items work individually?

Paul Alfille
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Problems with AAG TAI8558/DS2408 and DS9097U

2008-02-18 Thread Paul Alfille
You aren't using telephone cable, are you? The phone standard has a
cross-over in it.

If you hold the two ends of your RJ11 cable side-by-side in the same
orientation, the colors should be in the same order.

Paul Alfille

On Feb 18, 2008 6:18 PM, Chris Maresca [EMAIL PROTECTED] wrote:

 I just plugged it together with some RJ11 cabling.   Both the RJ11 cable
 and the blue dot cable have the same wires connected (green and red, if
 you are looking at them from the latch side).  Perhaps the sockets are
 wired differently?

 According to AAG's manual, the RJ11 socket is wired with pin 3 as OW
 Data and pin 4 as OW Rtn.The datasheet is here

 http://www.aagelectronica.com/pdf%20docs/TAI8558%201-Wire%20IO%20Module.pdf
 It would seem that the DS9097U is wired the same, according to this
 http://datasheets.maxim-ic.com/en/ds/DS9097U-009-DS9097U-S09.pdf
 datasheet (in confusing fashion, the pin numbering is reversed, but they
 should be physically the same...).   The DS9490R is wired the same way
 http://pdfserv.maxim-ic.com/en/ds/DS9490-DS9490R.pdf including the
 correct pin numbering.

 So, I'm assuming my wiring is OK.   I did get confused for a second
 reading the datasheets because of the different number

 Any other ideas?

 Chris


 Matthias Urlichs wrote:
  Hi,
 
  Chris Maresca:
 
  After successfully installing OWFS and reading some 1wire data with a
  DS9097U and a blue dot connector, I added some devices and problems
  started to appear
 
 
  How did you wire the AAG to your bus? The RJ12(?) pin-out which the
  thing uses is decidedly non-standard, IIRC.
 
  NB: my AAG wind vane fell off a few weeks ago (didn't tighten the lower
  nut forcefully enough... now it's gone :-/ )  Can somebody please check
  which thread size the thing has? Mine is way up on the roof ...
 
 

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-18 Thread Paul Alfille
Should be fairly simple (but I'll test to make sure it still works).

The source code is generated by SWIG under modules/swig/ow.i (C-code).

There is a man page, and a POD page, and documentation on the Web site.
And example code.

In general:
use OW ;
OW::init(-u) ;
print OW::get(/) ;
OW::finish() ;

Paul Alfille

Another option is to use OWNet.pm -- it connects to owserver and is fully
object-compatible.
Available on CPAN and sourceforge.

On Feb 18, 2008 8:07 PM, Chris Maresca [EMAIL PROTECTED] wrote:

 But it's working fine, now I'm off to figure out how to use OW.pm.
  From the looks of the docs, reading the source might be the most
 expedient way to figure out the capabilities

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Problems with AAG TAI8558/DS2408 and DS9097U

2008-02-18 Thread Paul Alfille
I think 1-wire preceded common RJ45 usage.

Paul Alfille

On Feb 18, 2008 8:12 PM, njh [EMAIL PROTECTED] wrote:

 One question is why the system wasn't designed around standard cables in
 the first place - perhaps even cat5/rj45.  Having a few extra conductors
 would be nice :)

 njh

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-18 Thread Paul Alfille
On Feb 18, 2008 8:46 PM, Chris Maresca [EMAIL PROTECTED] wrote:

 I did look at the man page, but it doesn't seem like there was much in
 the way of actual functions. To be fair, I haven't looked at the POD
 page yet, so perhaps there is more.   I did run the example, but it gave
 me a blob of info rather than more digestible chunks.  That's alright,
 but I'm unclear what the OWserver gets me beyond OW.pm (or even what
 OW.pm gets me beyond what OWFS has) if I'm using everything on
 localhost

POD and man are the same, I think.



 One think I am trying to get (either directly or indirectly) is
 signals/callbacks/alerts when new devices are added.   It seems I can
 either poll the interface or watch the file systems (which is
 effectively the same thing, AFAIK).   Watching the file system seems
 like a pretty easy, standard way to do this, although I wish there was
 some way to set refresh rate lower than 1 second.

Slower or faster?
1-wire isn't all that fast in the first place, you know.
I think the SELECT function is used for shorter delays.


 Which leads to a question.  Does the owserver 'push' new data to
 clients, or does it expect clients to poll?  It seems like it expects
 clients to poll.

Pull model. (Like a filesystem).
Note that 1-wire itself doesn't reliably notify of updates. (A least not in
multiuser environment when other data transfer can mask a presence pulse.)

Some of the 1-wire low-level communication has direct polling (keeps sending
0's until the measurement is complete). We don't use that since it stalls
the bus and prevents all other communication. It's a design choice.

Paul Alfille
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-19 Thread Paul Alfille
uncached?

On Feb 19, 2008 2:29 PM, Chris Maresca [EMAIL PROTECTED] wrote:

 I wrote the code in Perl.   Basically, it's a giant while() statement
 that calls OW::get twice each loop.  Each time OW::get is called, it
 stuffs the list of whatever gets returned into an array, then compares
 the two arrays for differences.  If there is a difference, it prints out
 the device ID.

 It works, but not very reliably.  I found I had to insert a sleep
 statement (for 1 second) or it would not pickup new devices.   I'm now
 thinking that perhaps I should only do the baseline scan every 10 loops
 or something.

 Chris.

 Paul Alfille wrote:
  In my tests, OWFS can read and respond in  0.1 second.
 
  There are some tricks for fast operation:
  1. Segment the 1-wire bus with separate a BUSMASTER for the chips
  being polled.
  2. Don't use a DS2409
  3. Make sure your script doesn't have process start-up delays in the
 loop.
 
  What language are you planning to ue?
 
  Paul Alfille
 
  On Feb 19, 2008 2:12 AM, Chris Maresca
 
  Why is it that you think a PC couldn't handle this?  I've built CNC
  machines with tolerances in the thousandths of an inch using
 real-time
  Linux, talking to a 1wire bus is trivial by comparison
 
 
  
 
 
 -
  This SF.net email is sponsored by: Microsoft
  Defy all challenges. Microsoft(R) Visual Studio 2008.
  http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
  
 
  ___
  Owfs-developers mailing list
  Owfs-developers@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/owfs-developers
 

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-20 Thread Paul Alfille
On Wed, Feb 20, 2008 at 8:28 AM, Matthias Urlichs [EMAIL PROTECTED]
wrote:

 Hi,
 However, that's too low-level for me. Suppose the main system fails in
 mid-winter? No central heating until I can get a replacement hard disk?

Use an embedded device with a flash disk (router, NSLU2, etc) ?

Paul Alfille
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] ds9490, usb_bulk_read timeout on RH ES5

2008-02-22 Thread Paul Alfille
Hello George,

I forwarded your note to the owfs-developers maillist.

There are udev updates from Sven Geggus and *Jan Kandziora summarized at
http://owfs.org/index.php?page=udev-and-usb.

I'm not familiar with ES[3-5] and google was too non-specific when I first
saw your query. RedHat versions?

Paul Alfille
*
On Fri, Feb 22, 2008 at 3:56 PM, George Follis [EMAIL PROTECTED]
wrote:

 Paul,
 your owfs project seems to be the most current code out there that
 attempts to access the Dallas Semiconductor devices. I'm getting
 desperate ... I have code from Dallas Semi that worked properly on ES3 /
 ES4 Red Hat now when compiled on ES5 it fails during a 'Get Status' call
 with a timeout error. The first request to DS was of no help - they
 simply replied that they were not aware of anyone having issues on ES5.

 If some one could point me in the proper direction - hopefully one that
 I didn't know existed. I think I could get this going. I discovered the
 udev changes and created the need scripts to change the access mode of
 the device. Anything else? Thanks.

 GRFollis

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] Fwd: [Owfs-forums] [owfs - Help] OWFS Install Problem

2008-03-01 Thread Paul Alfille
-- Forwarded message --
From: SourceForge.net [EMAIL PROTECTED]
Date: Sat, Mar 1, 2008 at 5:33 PM
Subject: [Owfs-forums] [owfs - Help] OWFS Install Problem
To: [EMAIL PROTECTED]



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

Hello,

I am having a problem getting OWFS to install to a Fedora Core 2 box.  I get
the following error:

make[5]: *** No rule to make target
`/usr/lib/perl5/5.8.8/i386-linux-thread-multi/Config.pm', needed by
`Makefile'.
Stop.

Here is the end of the output of the 'make install'.  Any help would be
greatly
appreciated.

Regards,

Eric

/usr/bin/install -c ownet.php /opt/owfs/bin/
make[4]: Leaving directory `/usr/local/src/owfs-2.6p8/module/ownet/php'
make[3]: Leaving directory `/usr/local/src/owfs-2.6p8/module/ownet/php'
Making install in python
make[3]: Entering directory `/usr/local/src/owfs-2.6p8/module/ownet/python'
make[4]: Entering directory `/usr/local/src/owfs-2.6p8/module/ownet/python'
make[4]: Nothing to be done for `install-exec-am'.
python setup.py install --root=/
running install
running build
running build_py
running install_lib
make[4]: Leaving directory `/usr/local/src/owfs-2.6p8/module/ownet/python'
make[3]: Leaving directory `/usr/local/src/owfs-2.6p8/module/ownet/python'
Making install in perl5
make[3]: Entering directory `/usr/local/src/owfs-2.6p8/module/ownet/perl5'
make[4]: Entering directory `/usr/local/src/owfs-2.6p8/module/ownet/perl5'
make[4]: Nothing to be done for `install-exec-am'.
make -C OWNet install DESTDIR=
make[5]: Entering directory
`/usr/local/src/owfs-2.6p8/module/ownet/perl5/OWNet'
make[5]: *** No rule to make target
`/usr/lib/perl5/5.8.8/i386-linux-thread-multi/Config.pm', needed by
`Makefile'.
Stop.
make[5]: Leaving directory `/usr/local/src/owfs-2.6p8
/module/ownet/perl5/OWNet'
make[4]: *** [install-data-local] Error 2
make[4]: Leaving directory `/usr/local/src/owfs-2.6p8/module/ownet/perl5'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/usr/local/src/owfs-2.6p8/module/ownet/perl5'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/owfs-2.6p8/module/ownet'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/owfs-2.6p8/module'
make: *** [install-recursive] Error 1
Press any key to continue...


__
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

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Owfs-forums mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/owfs-forums
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] Fwd: Simple perl program?!

2008-03-04 Thread Paul Alfille
I'm surprised that the straight web-server doesn't work with a DS2405. In
fact, measuring resistance across the pins seems to show a change from
24ohms to 10 Mohms.  (This is with the current version and owhttpd using the
USB adapter.

I'm not going to write custom code for you, but will be glad to help you
understand the process.

If you know anything about CGI programming, it should be easy to bind a
button press to a shell process. (There will be some permissions issues,
since by default CGI programs aren't allowed to do arbitrary hardware
access.) Google cgi shell tutorial.

Paul Alfille


-- Forwarded message --
From: [EMAIL PROTECTED]
Date: Mon, Mar 3, 2008 at 7:42 AM
Subject: Simple perl program?!
To: Paul Alfille [EMAIL PROTECTED]


Dear Paul!

I have waited now a good time to see responses to my problem. However, it
seems, that nobody has an answer to that. Is my English not so good or did I
explain it somehow wrong?
Could you, maybe, please write for me a simple Perl program, where I can
click in a web browser with the mouse on a button on and off and switch
the DS2405 with its address 0524202C0045 on and off using this
OWnet.pm module?
It would be really great because I didn't have any further progress since my
very first mail to you.
You remember, the commands
owwrite 05.24202C00/PIO 1
owwrite 05.24202C00/PIO 0
are working when I directly type them into the console of the NLSU2, but I
have no idea  how to combine these 2 commands with a web perl program to
click with the mouse.
I would be very delighted if you could help me a little bit in my bad case.

Thank you very much in advance  nice greetings,
Bernd
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] New release: 2.7p4

2008-03-04 Thread Paul Alfille
I'm releasing a new OWFS version: 2.7p4

The major change is better configuration file format.

The man page is at http://owfs.org/index.php?page=configuration-file

But the new feature is program-specific lines. An example:

owfs.conf
--
# set up owserver's port
server: p=4304 # only owserver sees this line
!server: s=4304 # all programs BUT owserver see this line

server: u # only owserver connects to the USB device
F # All programs use Farenheit
http: p=3001  # owhttpd is on port 3001
ftp: p=2121 # and owftpd is here
fs: m=~/1wire # owfs sees this mountpoint


Then all programs can use the same configuration file. Prior to this,
general configuration options could be shared, but port addresses would
conflict.

owserver -c owfs.conf
owhttpd -c owfs.conf
owfs -c owfs.conf
owftpd -c owfs.conf

The point of this is to ease configuration of embedded platforms.

Paul Alfille
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] Fwd: Simple perl program

2008-03-09 Thread Paul Alfille
-- Forwarded message --
From: [EMAIL PROTECTED]
Date: Sun, Mar 9, 2008 at 3:29 PM
Subject: Simple perl program
To: Paul Alfille [EMAIL PROTECTED]


Dear owfs-developers!

As recommended by you, Paul, I googled cgi shell tutorial and I found some
things. I get sites with CGI with Rebol or Apache and I wrote a
program like

#!/usr/bin/perl
print Content-type: text/html\n\n;
print Hello, World.;

and put this into the folder /var into the NSLU2. Then, I gave it an
execute right and started it from the command shell. I get

Content-type: text/html

Hello, World.


O.k.Then, I entered the following URL in my web browser 
http://192.168.1.77/var/hello_world.pl;, but of course it did not work. Do I
have to add a port or do I have to save it onto the hard-disc of my computer
and call it remote from the NSLU

ANYWAY, I'M WILLING TO LEARN AND UNDERSTAND THE SYSTEM, BUT I HAVE ABSOLUTE
NO IDEA ABOUT ANY BASICS OF THIS CGI AND I HAVE NO IDEA IF I HAVE TO USE
THE REBOL OR THE APACHE CODE OR WHATEVER IT IS OR WHATEVER ELSE AND I
HAVE ABSOLUTELY NO IDEA WHERE TO START THE PROGRAM AND WHERE TO SEARCH IN
THE INTERNET FOR IT. AND SINCE THERE IS OBVIOUSLY NO OTHER USER IN THIS
WORLD WHO CAN TELL ME A LITTLE MORE CONCRETE THINGS ABOUT HOW THIS WORKS,
THERE ARE TOO MANY POSSIBLE COMBINATIONS WHERE IS THE ERROR AND WHERE I
SHOULD START TRYING. SO FOR ME, I FIND IT A LITTLE BIT NOT O.K. OF YOU ALL
IF EVERYONE SAYS IT'S EASY, BUT I GET NO REAL HELP! I WRITE THIS, RISKING
THAT I WILL NEVER RECEIVE ANY ANSWER FROM YOU ALL AGAIN, OR YOU WILL DELETE
MY MAIL AT ALL, BUT I CAN LIVE WITH IT.
I'M RATHER GOOD IN ANALOG CIRCUIT DESIGN AND IT'S THE SAME THING IF ANYONE
OF YOU (LET'S SUPPOSE) WANTS DRIVE A LAMP FROM A LED. THIS HAPPEND IN THE
PAST. I COULD HAVE SAID TO THIS PERSON IT'S EASY: SIMPLY USE A TRANSISTOR
AND HE 'NEVER' WOULD HAVE BEEN ABLE TO GET A WORKING CIRCUIT, CAUSE THERE
ARE MILLIONS OF TRANSISTORS AVAILABLE AND THERE ARE A HUGE AMOUNT OF
COMBINATIONS TO MAKE IT WRONG. INSTEAD I HAVE DRAWN FOR HIM A LITTLE CIRCUIT
WHICH COST ME 15min OF MY VALUABLE TIME AND HE BUILT IT AND IT WAS WORKING
AND HE WAS HAPPY. WITH THIS BASICS, HE WAS ABLE TO ENLARGE HIS SYSTEM BY HIS
OWN.
AS I SAID, I ALSO WANT TO UNDERSTAND THE SYSTEM AND I AM WILLING TO LEARN
AND I DO NOT NEED ANYBODY WHO WRITES THE COMPLETE CODE FOR MY WATERING
PLANT SYSTEM, BUT A VERY LITTLE CODE EXAMPLE WHICH IS WORKING AND WHERE
ANYONE TELLS ME: PUT EXACTLY THIS FILE IN THIS FOLDER THERE AND START IT
WITH... WOULD HAVE BEEN NICE.

Bye,
Bernd2700
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] Fwd: [Owfs-forums] [owfs - Help] Building OWFS for openwrt kamikaze on NLSU2

2008-03-11 Thread Paul Alfille
-- Forwarded message --
From: SourceForge.net [EMAIL PROTECTED]
Date: Tue, Mar 11, 2008 at 11:43 AM
Subject: [Owfs-forums] [owfs - Help] Building OWFS for openwrt kamikaze on
NLSU2
To: [EMAIL PROTECTED]



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

Hello,

I'm trying to build the latest version of OWFS for openwrt kamikaze on NLSU2
starting from the Makefile prepared by Christian Magnusson I found here
http://home.mag.cx/openwrt/source/mk/kamikaze/

I'm getting an error and I'm not really an expert programmer, so I'm
wandering
if anyone can give me a suggestion. This is the last part of the output I'm
getting from

make V=99

..
v -f .deps/globals.Tpo .deps/globals.Po
armeb-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../../../../src/[EMAIL PROTECTED]
__isrc@
-I/opt/openwrt/kamikaze/staging_dir/armeb/usr/include -I../include
-D_FILE_OFFSET_BITS=64 -I../../../owlib/src/include -fexceptions -Wall -W
-Wundef
-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes
-Wredundant-decls  -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time
-fhonour-copts -msoft-float  -MT owdir.o -MD -MP -MF .deps/owdir.Tpo -c -o
owdir.o
owdir.c
mv -f .deps/owdir.Tpo .deps/owdir.Po
make[8]: LIBTOOL@: Command not found
make[8]: *** [owdir] Error 127
make[8]: Leaving directory
`/opt/openwrt/kamikaze/build_dir/armeb/owfs-2.7p4/module/owshell/src/c'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory
`/opt/openwrt/kamikaze/build_dir/armeb/owfs-2.7p4/module/owshell/src'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory
`/opt/openwrt/kamikaze/build_dir/armeb/owfs-2.7p4/module/owshell'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`/opt/openwrt/kamikaze/build_dir/armeb/owfs-2.7p4/module'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/opt/openwrt/kamikaze/build_dir/armeb/owfs-2.7p4
'
make[3]: *** [/opt/openwrt/kamikaze/build_dir/armeb/owfs-2.7p4/.built] Error
2
make[3]: Leaving directory `/opt/openwrt/kamikaze/package/owfs'
make[2]: *** [package/owfs/compile] Error 2
make[2]: Leaving directory `/opt/openwrt/kamikaze'
make[1]: ***
[/opt/openwrt/kamikaze/staging_dir/armeb/stamp/.package_compile]
Error 2
make[1]: Leaving directory `/opt/openwrt/kamikaze'
make: *** [world] Error 2


Thanks a lot in advance for any help
Regards
Martin




__
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

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Owfs-forums mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/owfs-forums
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] Fwd: Simple perl program

2008-03-12 Thread Paul Alfille
-- Forwarded message --
From: [EMAIL PROTECTED]
Date: Wed, Mar 12, 2008 at 5:50 PM
Subject: Simple perl program
To: [EMAIL PROTECTED]


Dear Paul, dear Jan!

Thanks for your answers!
Paul, I followed your steps and the program is working. I could switch on
and off the DS2405. However, I think it was a misunderstanding. This program
is executed on my real computer just linking to another URL which controls
the owfs running on the NSLU. What I need is a simple perl program executed
on the NSLU but being controlled from the real PC only. Since my watering
plant system should run stand alone on the NSLU and for changing some
parameters I connect my computer to it. This means, I would need a e.g a
simple program (maybe describe it in a better, different way:) running on
the NSLU which, e.g. every second toggles the DS2405 and by connecting the
PC with Firefox, I change this time to every 2 seconds. This interface is
the thing which is absoultely not clear to me. What must run on the NSLU and
how do I access it from a web browser.
E.g. I wrote some code for the ATMEL ATMEGA. Here, it's clear: The program
is executed there and from time to time, I connect the PC and over the RS232
I change some parameters. But with this OWFS I don't understand anything how
it's working. For instance, if I connect a new device, it's perfectly
recognized by this OWFS and displayed in my web browser. My main question
is, how can I MAKE USE of this nice system? And here are only you who can
explain me in this case. E.g. if, for instance, I have to learn better a
programming language, I just buy a book and start to study it, it's easy.
But here, how the executed program on the NSLU is working together with the
firefox I have no idea. Therefore I need such a simple program, to start to
understand the connection.
Jan, sorry, I didn't understand anything you tried to explain to me.
1. What's a Content-Type:... header and what does mean CHECK.
2. What is wwwrun, a certain file in a certain folder and if so, where it
is placed in the NSLU or on my PC?
3. As far as I know, I have no web SERVER, do I? I have only a web BROWSER
named Firefox. By the way, I don't know what Apache is.
4. What do you mean by enable an extension? I'm used to files which HAVE a
certain extension, the thing after the full stop, e.g. .mp3 or .jpg. Did
you mean I should create an extension, that the file gets the name test.cgi
for instance?
So, after all, do you have a more concrete example for me? As I said, I have
this Unslung 6.8 running on my NSLU2 with also a running OWFS 2.7 on
it. It's IP address is 192.168.1.77. Over Ethernet I'm connected to a PC
with Windows XP and Firefox. Does this help you?

Paul, by the way, how can I directly post to the mail listing. For sure it's
not convenient for you to put my mails there every time. I registered on
sourceforge but I still cannot post. I always get the error message: You
are not allowed to post to this mailing list, and your message has been
automatically rejected. If you think that your messages are being rejected
in error, contact the mailing list owner at
[EMAIL PROTECTED].

Thanks again a lot for your answers  nice greetings,
Bernd
---
Ok, you certainly weren't clear in your requirements.

To run a U2 is easy. You wouldn't run it in a web server or browser, but
rather stand-alone.
Something like:

#!/bin/sh
while :
  do
  owwrite /tmp/1wire/05.2342342343/PIO 1
  sleep 1
  owwrite /tmp/1wire/05.2342342343/PIO 0
  sleep 1
done



Now to make changes from your host, there are several ways. Since the NSLU2
is a file server, just have the configuration file be writeable from your XP
host. Or ssh. Or set a web interface (but it certainly is harder to do).

As for the mailing list. Did you try subscribing from this page?
https://sourceforge.net/mail/?group_id=85502

Paul Alfille
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Simple perl program

2008-03-13 Thread Paul Alfille
I just noticed I screwed up the syntax for owwrite.

owwrite writes to the owserver and uses the pure path for the 1-wire device:
e.g. owwrite 05.2342342343/PIO 1
or more formally:
owwrite -s localhost:4304 05.2342342343/PIO 1

If using the FUSE filesystem, then your need a valid filesystem path.
e.g.
echo 1  /tmp/1wire/05.2342342343/PIO
(If owfs is mounted at /tmp/1wire)

Sorry for any confusion.

Paul Alfille



 #!/bin/sh
 while :
   do
   owwrite 05.2342342343/PIO 1
   sleep 1
   owwrite 05.2342342343/PIO 0
   sleep 1
 done



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] help - was working - now it isn't,,,

2008-03-15 Thread Paul Alfille
If you start it with the --foreground --error_level=9 as the first two
parameters, you should get some output about the mode of death.

Paul Alfille

On Sat, Mar 15, 2008 at 4:46 PM, Leland [EMAIL PROTECTED]
wrote:

  Hi all –



 I'm running owhttpd on Ubuntu Gutsy (7.10), it's been working well until
 recently. Earlier this week all of a sudden owhttpd quit running, and I
 can't get it to run again. I've rebooted and have tried restarting the
 program, however it almost immediately quits running in the system monitor.
 I don't know if there are log files or where they are located, so I'm at a
 little of a dead end to figure out what's going on. I'm going to check
 hardware connections, etc. in a little bit, if there's any suggestions
 anyone can give to point me in the right direction it would be very helpful.



 Thanks,



 Leland





 Leland, [EMAIL PROTECTED]

 Remember, if it ain't broke, you're not tryin'!!

 The sooner you fall behind, the more time you will have to catch up

 A common mistake people made when designing something completely foolproof
 was to underestimate the ingenuity of complete fools

 Remember: An amateur built the Ark. The Titanic was built by
 professionals.



 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Fwd: Simple perl program

2008-03-16 Thread Paul Alfille
 in, it says, I should find the project I?m interested in and there
 will be other infos. So I got to ?owfs and owhttpd? but I couldn?t find any
 info for registering.


Look in www.owfs.org for documentation.
For the shell programs like owwrite, owread, owdir see:
http://owfs.org/index.php?page=owshell
For the DS2405, see: http://owfs.org/index.php?page=ds2405
etc...

Paul Alfille
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Working Openwrt/Freewrt setup Anybody?

2008-03-18 Thread Paul Alfille
On 3/18/08, Eric Allen [EMAIL PROTECTED] wrote:

 I've had great experience with a WRT54G running OpenWRT and OWFS, and I'd
 definitely recommend the platform. I'm not sure about OWFS USB support in
 the OpenWRT package (I used a serial port and a DS2480B), but I think it's
 there. The development environment for cross compiling packages for OpenWRT
 is a snap to use, and the distro is very easy to tailor to your needs.


http://owfs.org/index.php?page=asus-wirelesswim-heirman
http://owfs.org/index.php?page=wl-hdd
USB works great in OpenWRT

Paul Alfille
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] can anyone suggest a device to run OWFS on ?

2008-03-19 Thread Paul Alfille
On Wed, Mar 19, 2008 at 9:24 AM, Matt [EMAIL PROTECTED] wrote:


 Hi all,

 I've been running OWFS on various old computers over the years, I'd like
 to move to a solid state device, no moving parts.
 I'm leaning towards an NSLU2 with debian etch on an 8gb USB.

 Are there any other options, ethernet only is fine, wireless not required.

 Gumstick ?

 Some other options:
ASUS eee http://en.wikipedia.org/wiki/ASUS_Eee_PC
Foxboard http://www.acmesystems.it/?id=29
MicroClient Jr http://www.norhtec.com/products/mcjr/index.html

Paul Alfille
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OWFS+arm cross compilation problem !!!

2008-03-20 Thread Paul Alfille
Sounds like that combination of configuration parameters excluded some
variable declarations. I'll fix. Is this against 2.7p4?

Paul Alfille

On Thu, Mar 20, 2008 at 5:14 AM, greg h [EMAIL PROTECTED] wrote:

 hello,
 I try to cross compile owfs with uclibc toolchain (arm-linux-gcc-4.2.1,
 uclibc-0.9.29).

 1- ./configure --target=arm-linux --build=i386-linux --host=arm-linux
 --with-fuseinclude=/home/grp62/bus/fuse-2.7.3/temp/include/
 --with-fuselib=/home/grp62/bus/fuse-2.7.3/temp/lib/
 --prefix=/home/grp62/bus/owfs-2.7p4/temp/ --disable-owperl --disable-owphp
 --disable-owpython --disable-owtcl --disable-usb --disable-parport
 --disable-tai8570 --disable-ha7 --disable-thermocouple

 2- make

 owlib.c: In function 'LibStart':
 owlib.c:58: error: '__pthread_initial_thread_bos' undeclared (first use in
 this function)
 owlib.c:58: error: (Each undeclared identifier is reported only once
 owlib.c:58: error: for each function it appears in.)
 owlib.c:59: warning: implicit declaration of function
 '__pthread_initialize'
 owlib.c:63: warning: implicit declaration of function
 'pthread_mutexattr_settype'
 make[5]: *** [owlib.lo] Erreur 1

 I made a test by disabling the multithreading (--disable-mt ) but i got
 the following error:

 ow_connect.c: In function 'FreeIn':
 ow_connect.c:126: error: 'struct connection_in' has no member named
 'bus_mutex'
 make[5]: *** [ow_connect.lo] Erreur 1

 Any ideas ?
 thanks in advance

 --
 Envoyé avec Yahoo! 
 Mailhttp://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52420/*http://fr.docs.yahoo.com/mail/overview/index.html
 .
 La boite email la plus appreciée au monde.

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Compilation on Freewrt

2008-03-23 Thread Paul Alfille
Are you using the last release (2.7p4) or the CVS? I'd advise the last
release, not the CVS at this point.

Paul Alfille

On Sun, Mar 23, 2008 at 6:27 AM, Sven Geggus [EMAIL PROTECTED]
wrote:


 Unfortunately I get the following error while trying to compile owfs:

 owlib.c: In function  ibStart':
 owlib.c:58: error:  _pthread_initial_thread_bos' undeclared (first use in
 this function)

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OWFS+arm cross compilation problem !!!

2008-03-26 Thread Paul Alfille
I reorganized the code a bit -- can you try the CVS version easily?

Paul Alfille

On Wed, Mar 26, 2008 at 1:57 PM, Sven Geggus [EMAIL PROTECTED]
wrote:

 Christian Magnusson [EMAIL PROTECTED] wrote:

  * This workaround will probably be fixed in uClibc-0.9.28

 Has this been fixed in uClibc-0.9.28?

 The Question I ask ist because I get the same error when trying to
 compile owfs-2.7p4 on freewrt trunk which is using uClibc-0.9.28.

 Sven

 --
 The main thing to note is that when you choose open source you don't
 get a Windows operating system.
  (from http://www.dell.com/ubuntu)
 /me is [EMAIL PROTECTED], http://sven.gegg.us/ on the Web

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.

 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OWFS+arm cross compilation problem !!!

2008-03-26 Thread Paul Alfille
Perhaps this is one of those uclibc variances.
The code compiles on glibc.
I thought the problem was with reader/writer locks -- pthread_rwlock_t,
specifically.

Looking though the uClibc source code, the function IS there:
http://uclibc.org/cgi-bin/viewcvs.cgi/trunk/uClibc/libpthread/linuxthreads/rwlock.c?rev=13745view=log

I'm confused.

Paul Alfille

On Wed, Mar 26, 2008 at 5:44 PM, Sven Geggus [EMAIL PROTECTED]
wrote:

 Paul Alfille [EMAIL PROTECTED] wrote:

  can you try the CVS version easily?

 As I try to use the official freewrt build-script I needed to fake a
 newer release. This is however easy enough :)

 CVS code now results in another compile error:

 In file included from ../../../owlib/src/include/ow.h:207,
 from ow_dnssd.c:17:
 ../../../owlib/src/include/ow_mutexes.h:70: error: parse error before
 pthread_rwlock_t
 ../../../owlib/src/include/ow_mutexes.h:70: warning: no semicolon at end
 of struct or union
 ../../../owlib/src/include/ow_mutexes.h:76: error: parse error before '}'
 token
 ../../../owlib/src/include/ow_mutexes.h:76: warning: type defaults tont'
 in declaration of
 utex'
 ../../../owlib/src/include/ow_mutexes.h:76: warning: data definition has
 no type or storage class

 Regards

 Sven

 --
 All bugs added by David S. Miller [EMAIL PROTECTED]
 Linux Kernel boot message from /usr/src/linux/net/8021q/vlan.c

 /me is [EMAIL PROTECTED], http://sven.gegg.us/ on the Web

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.

 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OWFS+arm cross compilation problem !!!

2008-03-29 Thread Paul Alfille
Hmmm... looks like you aren't using the current CVS version (or you are
linking against older libs).
If nothing else, try to add --disable-ownet to the ./configure options

Paul

On Sat, Mar 29, 2008 at 3:53 PM, Sven Geggus [EMAIL PROTECTED]
wrote:

 Paul Alfille [EMAIL PROTECTED] wrote:

  I put in an easier solution, a custom rolled reader/writer lock. It's
 inthe
  CVS, and if it works for you, I'll expand it's use to other areas that
 would
  benefit. (Cache reads, and the rare write locking of the available
 adapters
  when zero-config scanning is implemented).

 Unfortunately the saga continues :(

 back to __pthread_initial_thread_bos undeclared


 /home/sven/openwrt/www.freewrt.org/trunk/freewrt/cross_mipsel/host/bin/mipsel-linux-uclibc-gcc\
 -DHAVE_CONFIG_H -I. -I. -I../../../../../src/include -isystem \

 /home/sven/openwrt/www.freewrt.org/trunk/freewrt/cross_mipsel/target/include\
 -isystem
 /home/sven/openwrt/www.freewrt.org/trunk/freewrt/cross_mipsel/target/usr/include\
 -DNDEBUG -I../include -fexceptions -Wall -W -Wundef -Wshadow\
 -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes\
 -Wredundant-decls -D_FILE_OFFSET_BITS=64 -D__EXTENSIONS__\
 -pthread -Os -fno-ident -fwrapv -fhonour-copts\
 -D_XOPEN_SOURCE=500 -c owlib.c  -fPIC -DPIC -o .libs/owlib.o
 owlib.c: In function 'LibStart':
 owlib.c:58: error: ` _pthread_initial_thread_bos' undeclared (first use in
 this function)

 Sven

 --
 The American news-media is no longer a news source; it is a
 cheerleading squad. (unknown source)

 /me is [EMAIL PROTECTED], http://sven.gegg.us/ on the Web

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.

 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OWFS+arm cross compilation problem !!!

2008-03-31 Thread Paul Alfille
Great.

OWNet (C library) uses a subset of the full owlib. (Basically just the
parameter parsing and networking parts). Unfortunately that means it's code
can look similar, but out of sync with owlib, and compilation errors can be
confusing.

Paul Alfille

On Sun, Mar 30, 2008 at 9:21 AM, Sven Geggus [EMAIL PROTECTED]
wrote:

  If nothing else, try to add --disable-ownet to the ./configure options

 OK, tried the latter which at least gave me a successful
 compilation. I will have to check now, if this actually works :)

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OWFS+arm cross compilation problem !!!

2008-04-02 Thread Paul Alfille
On Wed, Apr 2, 2008 at 6:05 PM, Christian Magnusson [EMAIL PROTECTED] wrote:



 I fixed some problem in the CVS now… Had problem to cross-compile
 everything.

 Made some changes in many Makefiles which should add the correct defines
 in all cases.

 thanks

 sem.h was missing in a src/include/Makefile.am as well.



thanks

 Found a bug in rwlock.h, which results into semaphore.h is never used….
 since HAVE_SEMAPHORE is used… (should be HAVE_SEMAPHORE_H)

 Is this done by purpose to test the replacement semaphores perhaps??



no, im just careless


 It builds correct for me now at least… Haven't tried the binaries yet
 though.



great

 /Christian





 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *Paul Alfille
 *Sent:* den 31 mars 2008 15:33
 *To:* owfs-developers@lists.sourceforge.net
 *Subject:* Re: [Owfs-developers] OWFS+arm cross compilation problem !!!



 Great.

 OWNet (C library) uses a subset of the full owlib. (Basically just the
 parameter parsing and networking parts). Unfortunately that means it's code
 can look similar, but out of sync with owlib, and compilation errors can be
 confusing.

 Paul Alfille

 On Sun, Mar 30, 2008 at 9:21 AM, Sven Geggus [EMAIL PROTECTED]
 wrote:

  If nothing else, try to add --disable-ownet to the ./configure options

 OK, tried the latter which at least gave me a successful
 compilation. I will have to check now, if this actually works :)



 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.

 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] My OWFS driven website update (Aquarium)

2008-04-03 Thread Paul Alfille
Looks great. How are you storing the data and generating the graphs?

Paul

On Thu, Apr 3, 2008 at 4:38 AM, Rob Conway [EMAIL PROTECTED] wrote:

  I have not had to post recently however have had lot of help getting to
 where I am.  Thus I thought I would share my revamped web monitor.  It's
 taken quite a while to build up my html knowledge to a point of being able
 to visualize what I've wanted to do on the web site.



 If you care to take a browse…any constructive feedback welcome, direct to
 my email.   For those new to owfs if you click the [maint] tab you will see
 the network and I also log daily owfs errors under the [system error] tab
 and I collect owfs error history under the [History} tab.  You will see I
 still get a couple of glitches every day however when you calculate how many
 reads I do it is very acceptable.



 I recently added power monitoring however not really done enough with
 visualization of the data.  Web site redesign took over.



 Thanks again to all the OWFS contributors that make this possible.



 www.rjconway.homeip.net



 rob

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] owfs on openwrt

2008-04-03 Thread Paul Alfille
Alessio,

It's a little hard to tease out FUSE problems and owfs problems at times.

Could you try doing the samehardware test with either:
1. owserver and owdir/owread
or
2. owhttpd and wget or a remote web browser

Paul Alfille

On Thu, Apr 3, 2008 at 11:24 AM, Alessio Sangalli [EMAIL PROTECTED]
wrote:

 Alessio Sangalli wrote:

  I have attached a USB to serial converter to the Asus (the very same
  setup works on my laptop as I mentioned) and tried to issue the command
  below.

 I forgot to mention, all the tests I have made were done with 2.7p4 and
 also with 2.6p8

 bye
 Alessio


 PS isn't there a IRC channel about OWFS? I really feel it would be very
 useful. There is a kind of link on OWFS home page but it doesn't seem to
 correspond to any real server/channel


 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.

 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] owfs on openwrt

2008-04-03 Thread Paul Alfille
On Thu, Apr 3, 2008 at 6:52 PM, Alessio Sangalli [EMAIL PROTECTED] wrote:

 owhttpd -p 3001 -d /dev/ttyUSB0 # works
 owhttpd -p 3001 -d /dev/ttyS1 # does NOT work;


Very nice work-through of the problem.

The datasheet says 4.5V to 5.5V. I can't tell you if 3.3V is supported.
http://datasheets.maxim-ic.com/en/ds/DS2480B.pdf

Paul Alfille
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] owfs on openwrt

2008-04-03 Thread Paul Alfille
On Thu, Apr 3, 2008 at 5:33 PM, Alessio Sangalli [EMAIL PROTECTED] wrote:


 mh... ok maybe I misunderstood how the OW* software works, isn't owfs
 and fuse anyway necessary for any other tool?


No. I'm sorry it's not clear.

The same syntax and library is used by all the tools (owfs, owhttpd owserver
owftpd) but fuse is only needed if you want a virtual filesystem.

So possible combinations are:
1. owfs (with fuse) and any local access of standard file system.
2. owhttpd and any local or remote web browser
3. owftpd and any ftp client
4. owserver and the shell programs owdir owread and owwrite

Not to mention all the more sophisticated alternatives like owperl, owphp,
owtcl, owcapi.

Also owserver can be used with many clients simultaneously like all the
owfs, owhttpd,...
and owshell (owdir, owread, owwrite) and the ownet clients

Sometimes the flexibility of the system makes it hard to explain.
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] My OWFS driven website update (Aquarium)

2008-04-03 Thread Paul Alfille
As answered in another thread, FUSE is only needed for owfs (the virtual
filesystem). It's a little confusing since the whole package is called owfs
(for historical reasons). owhttpd, owserver, and all the others don't use
FUSE.

I'll take Robert Conway's word that he finds owserver/owshell more robust
than owfs. The first uses the owserver protocol (tcp/ip messages) to answer
1-wire queries, the later uses FUSE and filesystem callbacks. YMMV on this,
I've had a owfs/FUSE data collection system running for literally years.

FUSE is more finicky about kernel versions, user permissions and startup
sequence. On the other hand, every single program in the world knows how to
read a file, and owfs/FUSE looks just like a regular file.

Paul Alfille

As far as the architecture goes, almost all the code is shared between the
programs, in libow. owfs, owhttpd and owserver are only thin layers with the
unique features, linking in libow with all the 1-wire knowledge, networking,
caching, address parsing, argument processing, etc. That's why using
owserver and calling owread 10.012345667/temperature or using owfs and
reading file 1wire/10.012345667/temperature give the same result.

On Thu, Apr 3, 2008 at 6:10 PM, Gregg Levine [EMAIL PROTECTED] wrote:

 FUSE assists in the file-system creation for most of the OWFS
 binaries. You'd need to ask more questions.

 Paul? That's your cue.

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] NSLU2: owhttpd Webserver not reachable with browser

2008-04-03 Thread Paul Alfille
That's right. The multiple listing is not a bug. Multithreaded programs are
listed for each thread.

I notice that you are running oww and owfs. They will probably compete for
the actual 1-wire adapter. oww is particular will poll the 1-wire bus
periodically.
At some point a shim oww to access the 1-wire bus via owfs is planned, but
it's a slow process.

I'm not sure why you can see the 1-wire bus with owfs but not owhttpd. One
problem might be that owhttpd isn't on port 3001. I can't tell which port
from the command lines shown. If no owhttpd port is specified, an ephemeral
port is assigned by the OS, usually relatively random and hard to locate.
Can you show the startup script or configuration file?

Paul Alfille

On Thu, Apr 3, 2008 at 5:41 PM, Alessio Sangalli [EMAIL PROTECTED] wrote:

 stevester1 wrote:
  I have the same problem PLEASE HELP!
  #ps
  shows multiple processes running for OWFS, OWFTPD, OWSERVER, OWHTTPD
 
  Has anyone found a solution, or why this is happening???

 Maybe you have activated threads support in OWFS? Beware, I'm a very
 novice in OWFS I might very well be wrong.

 bye
 Alessio



 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.

 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] why are there 3 x owservers running on my SLUG (NSLU2)

2008-04-03 Thread Paul Alfille
Not a bug.

On Thu, Apr 3, 2008 at 5:01 PM, stevester1 [EMAIL PROTECTED] wrote:


 I have the same problem. Was this ever figured out?

 THanks.

 Steve



 bad inferno wrote:
 
  I have noticed using top that owserver takes 16% of my little slugs
  memory when idle and 29% when my owread script kicks in..  This has led
 me
  to wonder why I have three owservers running on my slug.
 
  The only owfs services script remaining is the S70owserver script.  The
  other startup scripts (S80owfs, S80owftpd, S80owhttpd) I have moved out
 of
  /opt/etc/init.d so they do not startup.  I only have one data gathering
  script which continuously runs and polls 1wire data every 90 seconds.
  This script uses owwrite owread commands.
 
  I have used the standard ipkg install process..   Anybody know why I
 have
  three owservers running ?
 
  PS OUTPUT
   371 root   1928 S   /usr/sbin/CheckResetButton
373 root   1196 S   /usr/sbin/CheckPowerButton
375 root   1196 S   /usr/sbin/do_umount
430 root   3208 S   /opt/sbin/sshd
438 root   4912 S   owserver -P /opt/var/run/owserver.pid -u -p
 3002
442 website2168 S   /usr/sbin/thttpd -C /etc/thttpd-website.conf
448 root   4912 S   owserver -P /opt/var/run/owserver.pid -u -p
 3002
449 root   4912 S   owserver -P /opt/var/run/owserver.pid -u -p
 3002
450 root   2084 S   /bin/bash /public/aquaread
  15546 root   5900 R   sshd: [EMAIL PROTECTED]
  15548 root   1932 S   -sh
  15742 root   1908 S   sleep 90
  15751 root   2220 R   ps
 
  TOP COMMAND
  Mem: 28108K used, 2416K free, 0K shrd, 12612K buff, 8516K cached
  Load average: 1.01 1.11 1.19
PID USER STATUS   VSZ  PPID %CPU %MEM COMMAND
  16106 root R   2232 15548  0.5  7.3 top
  15546 root S   5900   430  0.3 19.3 sshd
318 root S   6152 1  0.0 20.1 smbd
335 root S   6152   318  0.0 20.1 smbd
448 root S   4912   438  0.0 16.0 owserver  (This does
 peak
  to 29% for maybe 2 seconds when my script kicks in and reads data)
449 root S   4912   448  0.0 16.0 owserver
438 root S   4912 1  0.0 16.0 owserver
320 root S   4824 1  0.0 15.7 nmbd
430 root S   3208 1  0.0 10.4 sshd
442 website  S   2168 1  0.0  7.0 thttpd
294 root S   2136 1  0.0  6.9 thttpd
 
 
 
 
 
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Owfs-developers mailing list
  Owfs-developers@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/owfs-developers
 
 

 --
 View this message in context:
 http://www.nabble.com/why-are-there-3-x-owservers-running-on-my-SLUG-%28NSLU2%29-tp10268553p16472358.html
 Sent from the OWFS - Dev mailing list archive at Nabble.com.


 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.

 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] My OWFS driven website update (Aquarium)

2008-04-04 Thread Paul Alfille
On 4/4/08, Dag Erlandsson [EMAIL PROTECTED] wrote:

 I have a NSLU2 used for logging temperatures etc. I use owserver/owread.
 The NSLU2 also runns backups of some desctop computers.

 What I have seen is that the number of glitches or read with error
 increases when running backups e.g. the machine is loaded.


This is interesting. In theory, most of the 1-wire transaction have
checksums to ensure accuracy. Are the glitches dropped data points, or
inaccurate readings?

Paul Alfille
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] owfs on openwrt

2008-04-05 Thread Paul Alfille
If you're asking how to ping the DS2480B, that's what OWFS does in the
startup sequence to test if its a DS2480B or passive adapter.

owhttpd --foreground --error_level=9 -d /dev/ttyS1 -p 3001
will show that attempt.

The code is from the datasheet and  also can be seen in the public domain
kit and digitemp.

Is it possible that your signal levels are ok, but the power supply too low?

Paul Alfille

On Sat, Apr 5, 2008 at 1:21 AM, Alessio Sangalli [EMAIL PROTECTED] wrote:

 Alessio Sangalli wrote:
  Paul Davis wrote:
  That's a good bet. The polarity is inverted between the logic side and
  the RS232 side of the line driver. It could explain your problem.
 
 
  I connected the POL pin to GND but the problem seem to stay ... :(

 I need to go lower level. I would like a mean to debug out this
 situation where:

 - I can use the system with a USB to serial adapter and a MAX233- this
 means the circuit on the 1W side is ok
 - I cannot connect the 1W through the internal serial port, but I can
 use that serial port to communicate (through the same MAX233)

 The key here seems the MAX233, without it I cannot communicate. The
 question is, without using the OWFS tools, how can I ping or see if
 the DS2480B is 'alive'? Can I send a character on the serial port and
 expect an answer? The protocol must not be very difficult. How can I
 perform this test?

 Thank you
 Alessio



 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Register now and save $200. Hurry, offer ends at 11:59 p.m.,
 Monday, April 7! Use priority code J8TLD2.

 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] owcapi: return-value of OW_init?

2008-04-05 Thread Paul Alfille
Yes. There is no hello sequence with owserver. Your program will wait
until owserver is available. Clearly waiting for data from owserver will
time out. Think of init more like starting a web browser.

This way, you can start owcapi with  series of adapters listed (serial, usb,
owserver) and the valid ones will be used.

Paul Alfille

On Sat, Apr 5, 2008 at 7:23 AM, Sven Geggus [EMAIL PROTECTED]
wrote:

 Hello,

 OW_init does not seem to return a non-zero value if no owserser is
 running on a given port! Is this the intended behaviour?

 Try this:

 #include stdio.h
 #include owcapi.h
 int main() {
  int ret;
  ret=OW_init(localhost:12345);
  printf(ret: %d\n,ret);
 }

 I would expect to get a non-zero return value, if no owserver ist
 running on port 12345 in this case?

 Regards

 Sven

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] 1WRJ45 Standard(?)

2008-04-07 Thread Paul Alfille
As far a I can tell, Maxim doesn't make a product with RJ45. All their kits
are RJ11.

You probably should follow HobbyBoard's wiring scheme
http://hobby-boards.com/catalog/howto_wiring_diagram.php

iButtonlink seems compatible with this, as does AAG from my experience.

Paul Alfille

On Mon, Apr 7, 2008 at 9:37 AM, Tom Collins [EMAIL PROTECTED] wrote:

 I'm working with a company on an embedded device that will include an RJ45
 jack to interface to 1-Wire sensors.  I'm wondering just how much of a
 standard 1WRJ45 became after it was proposed.  Who manufactures the majority
 of 1-Wire sensor assemblies, and what pinouts have they followed?
 At the moment, we're planning to follow the Dallas RJ11/RJ12 standard, but
 just use the RJ45 jack on our board with the outer two pins unconnected.
  (We're using RJ45 instead of RJ11 because the board can be configured with
 a serial port or 1-Wire on the RJ45 jack).

 -Tom

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] New ipkg-packages

2008-04-07 Thread Paul Alfille
Yup I see the error. owtap was useful. It's a misinterpretation of
/uncached/bus.0/bus.0 as uncached/bus.0/uncached

It'll take me a day or so to fix.

Paul

On Mon, Apr 7, 2008 at 2:35 PM, Christian Magnusson [EMAIL PROTECTED] wrote:

  It still seem to be a bug in the CVS-source which I checked out 2 days
 ago.  Paul, do you want to look at it when you have time?



 # owserver –fake 10 –p 

 # owfs –s 127.0.0.1: /mnt/1wire2



 This will show a duplicate uncache-directory.

 [EMAIL PROTECTED] ~]# ls -l /mnt/1wire2/bus.0/uncached/

 total 0

 drwxrwxrwx  1 root root  8 Apr  7 20:29 10.67C6697351FF/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 alarm/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 interface/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 settings/

 drwxrwxrwx  1 root root  8 Apr  7 20:29 simultaneous/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 statistics/

 drwxr-xr-x  1 root root 30 Apr  7 20:29 structure/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 system/

 *drwxr-xr-x  1 root root  8 Apr  7 20:29 uncached/  **ß***





 The uncached is always showed when /bus.x is used in the path-name.



 This will now show a duplicate uncached-path…

 [EMAIL PROTECTED] ~]# ls -l /mnt/1wire2/uncached/

 total 0

 drwxrwxrwx  1 root root  8 Apr  7 20:31 10.67C6697351FF/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 alarm/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 bus.0/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 settings/

 drwxrwxrwx  1 root root  8 Apr  7 20:31 simultaneous/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 statistics/

 drwxr-xr-x  1 root root 30 Apr  7 20:29 structure/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 system/



 But adding bus.0 will show uncached again…

 [EMAIL PROTECTED] ~]# ls -l /mnt/1wire2/uncached/bus.0/

 total 0

 drwxrwxrwx  1 root root  8 Apr  7 20:31 10.67C6697351FF/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 alarm/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 interface/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 settings/

 drwxrwxrwx  1 root root  8 Apr  7 20:31 simultaneous/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 statistics/

 drwxr-xr-x  1 root root 30 Apr  7 20:29 structure/

 drwxr-xr-x  1 root root  8 Apr  7 20:29 system/

 *drwxr-xr-x  1 root root  8 Apr  7 20:29 uncached/ **ß***





 /Christian







 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *
 [EMAIL PROTECTED]
 *Sent:* den 7 april 2008 09:17

 *To:* owfs-developers@lists.sourceforge.net
 *Subject:* Re: [Owfs-developers] New ipkg-packages



 My current owlib version is:

 owlib - 2.7p4-2 - 1-wire library

 Is that still the old library?



 Before I re-installed (per your directions) I did have an old version
 (owlib - 2.7p2-1 - 1-wire library).



 Yes..doing a 'find / -name ow* -print  gives a output that goes on
 forever



 Is this directory problem a current bug(do you see it on your system?), or
 just a bug with my version(s)?





 Steve J.

 - Original Message 
 From: Christian Magnusson [EMAIL PROTECTED]
 To: owfs-developers@lists.sourceforge.net
 Sent: Monday, April 7, 2008 2:05:59 AM
 Subject: Re: [Owfs-developers] New ipkg-packages

 You seemed to have an old owlib installed on you nslu2…



 I'm not sure how Paul wants to solve that /bus.0/uncached/uncached/
 directory… but it should be fixed to make it possible to do a complete
 directory listing with find or owcapi.

 The example module/swig/perl5/example/test.pl loops forever since there
 are unlimited uncached directories as well..



 /Christian





 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *
 [EMAIL PROTECTED]
 *Sent:* den 7 april 2008 08:28
 *To:* owfs-developers@lists.sourceforge.net
 *Subject:* Re: [Owfs-developers] New ipkg-packages



 Here's my packages installed:



 # ipkg list_installed | grep ow
 owcapi - 2.7p4-2 - 1-wire CAPI library and includes
 owfs - 2.7p4-2 - 1-Wire filesystem (http://owfs.sf.net)
 owlib - 2.7p2-1 - 1-wire library
 owshell - 2.7p4-2 - 1-wire shell utilities
 oww - 0.82.1-1 - Oww reads from a DalSemi/AAG weather station.

 I removed them all and installed

 #ipkg install owfs owlib owshell



 # ipkg list_installed | grep ow
 owfs - 2.7p4-2 - 1-Wire filesystem (http://owfs.sf.net)
 owlib - 2.7p4-2 - 1-wire library
 owshell - 2.7p4-2 - 1-wire shell utilities

 #



 # owfs -V
 owfs version:
 2.7p4
 libow version:
 2.7p4
 #



 Now, I have the problem with  recursive directory structure:



 # pwd

 /tmp/1wire/bus.0/uncached/uncached/uncached/uncached/uncached/uncached/uncached/
 uncached/uncached/uncached/uncached/uncached/uncached
 #


 I thought this problem was fixed in p4?



 Not sure where to go from here.



 Steve J.





 - Original Message 
 From: Christian Magnusson [EMAIL PROTECTED]
 To: owfs-developers@lists.sourceforge.net
 Sent: Monday, April 7, 2008 12:57:33 AM
 Subject: Re: [Owfs-developers] New ipkg-packages



 You are missing the packate owlib-2.7p4-2 …. Can you see which packages
 you have 

Re: [Owfs-developers] owfs on openwrt

2008-04-08 Thread Paul Alfille
I think you are now the world expert.

On Tue, Apr 8, 2008 at 7:06 PM, Alessio Sangalli [EMAIL PROTECTED] wrote:

 The same OW circuit tested with a WRT54GL, which has the same 3.3V TTL
 serial ports, works perfectly:

 [EMAIL PROTECTED]:~# owhttpd --foreground --error_level=9 -d /dev/ttyS1 -p 
 3001
   CALL: PARSENAME path=[]
   DEBUG: ServerProcessOut = 1026
  DEBUG: ServerProcessAccept 3001[1026] try lock 0
  DEBUG: ServerProcessAccept 3001[1026] locked 0

 Is there something wrong with Asus serial ports?

 bye
 as





 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Register now and save $200. Hurry, offer ends at 11:59 p.m.,
 Monday, April 7! Use priority code J8TLD2.

 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] New ipkg-packages

2008-04-08 Thread Paul Alfille
Fixed in the CVS

On Mon, Apr 7, 2008 at 9:59 PM, Paul Alfille [EMAIL PROTECTED] wrote:

 Yup I see the error. owtap was useful. It's a misinterpretation of
 /uncached/bus.0/bus.0 as uncached/bus.0/uncached

 It'll take me a day or so to fix.

 Paul

 On Mon, Apr 7, 2008 at 2:35 PM, Christian Magnusson [EMAIL PROTECTED] wrote:

   It still seem to be a bug in the CVS-source which I checked out 2 days
  ago.  Paul, do you want to look at it when you have time?
 
 
 
  # owserver –fake 10 –p 
 
  # owfs –s 127.0.0.1: /mnt/1wire2
 
 
 
  This will show a duplicate uncache-directory.
 
  [EMAIL PROTECTED] ~]# ls -l /mnt/1wire2/bus.0/uncached/
 
  total 0
 
  drwxrwxrwx  1 root root  8 Apr  7 20:29 10.67C6697351FF/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 alarm/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 interface/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 settings/
 
  drwxrwxrwx  1 root root  8 Apr  7 20:29 simultaneous/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 statistics/
 
  drwxr-xr-x  1 root root 30 Apr  7 20:29 structure/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 system/
 
  *drwxr-xr-x  1 root root  8 Apr  7 20:29 uncached/  **ß***
 
 
 
 
 
  The uncached is always showed when /bus.x is used in the path-name.
 
 
 
  This will now show a duplicate uncached-path…
 
  [EMAIL PROTECTED] ~]# ls -l /mnt/1wire2/uncached/
 
  total 0
 
  drwxrwxrwx  1 root root  8 Apr  7 20:31 10.67C6697351FF/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 alarm/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 bus.0/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 settings/
 
  drwxrwxrwx  1 root root  8 Apr  7 20:31 simultaneous/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 statistics/
 
  drwxr-xr-x  1 root root 30 Apr  7 20:29 structure/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 system/
 
 
 
  But adding bus.0 will show uncached again…
 
  [EMAIL PROTECTED] ~]# ls -l /mnt/1wire2/uncached/bus.0/
 
  total 0
 
  drwxrwxrwx  1 root root  8 Apr  7 20:31 10.67C6697351FF/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 alarm/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 interface/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 settings/
 
  drwxrwxrwx  1 root root  8 Apr  7 20:31 simultaneous/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 statistics/
 
  drwxr-xr-x  1 root root 30 Apr  7 20:29 structure/
 
  drwxr-xr-x  1 root root  8 Apr  7 20:29 system/
 
  *drwxr-xr-x  1 root root  8 Apr  7 20:29 uncached/ **ß***
 
 
 
 
 
  /Christian
 
 
 
 
 
 
 
  *From:* [EMAIL PROTECTED] [mailto:
  [EMAIL PROTECTED] *On Behalf Of *
  [EMAIL PROTECTED]
  *Sent:* den 7 april 2008 09:17
 
  *To:* owfs-developers@lists.sourceforge.net
  *Subject:* Re: [Owfs-developers] New ipkg-packages
 
 
 
  My current owlib version is:
 
  owlib - 2.7p4-2 - 1-wire library
 
  Is that still the old library?
 
 
 
  Before I re-installed (per your directions) I did have an old version
  (owlib - 2.7p2-1 - 1-wire library).
 
 
 
  Yes..doing a 'find / -name ow* -print  gives a output that goes on
  forever
 
 
 
  Is this directory problem a current bug(do you see it on your system?),
  or just a bug with my version(s)?
 
 
 
 
 
  Steve J.
 
  - Original Message 
  From: Christian Magnusson [EMAIL PROTECTED]
  To: owfs-developers@lists.sourceforge.net
  Sent: Monday, April 7, 2008 2:05:59 AM
  Subject: Re: [Owfs-developers] New ipkg-packages
 
  You seemed to have an old owlib installed on you nslu2…
 
 
 
  I'm not sure how Paul wants to solve that /bus.0/uncached/uncached/
  directory… but it should be fixed to make it possible to do a complete
  directory listing with find or owcapi.
 
  The example module/swig/perl5/example/test.pl loops forever since there
  are unlimited uncached directories as well..
 
 
 
  /Christian
 
 
 
 
 
  *From:* [EMAIL PROTECTED] [mailto:
  [EMAIL PROTECTED] *On Behalf Of *
  [EMAIL PROTECTED]
  *Sent:* den 7 april 2008 08:28
  *To:* owfs-developers@lists.sourceforge.net
  *Subject:* Re: [Owfs-developers] New ipkg-packages
 
 
 
  Here's my packages installed:
 
 
 
  # ipkg list_installed | grep ow
  owcapi - 2.7p4-2 - 1-wire CAPI library and includes
  owfs - 2.7p4-2 - 1-Wire filesystem (http://owfs.sf.net)
  owlib - 2.7p2-1 - 1-wire library
  owshell - 2.7p4-2 - 1-wire shell utilities
  oww - 0.82.1-1 - Oww reads from a DalSemi/AAG weather station.
 
  I removed them all and installed
 
  #ipkg install owfs owlib owshell
 
 
 
  # ipkg list_installed | grep ow
  owfs - 2.7p4-2 - 1-Wire filesystem (http://owfs.sf.net)
  owlib - 2.7p4-2 - 1-wire library
  owshell - 2.7p4-2 - 1-wire shell utilities
 
  #
 
 
 
  # owfs -V
  owfs version:
  2.7p4
  libow version:
  2.7p4
  #
 
 
 
  Now, I have the problem with  recursive directory structure:
 
 
 
  # pwd
 
  /tmp/1wire/bus.0/uncached/uncached/uncached/uncached/uncached/uncached/uncached/
  uncached/uncached/uncached/uncached/uncached/uncached
  #
 
 
  I thought this problem was fixed in p4?
 
 
 
  Not sure where to go from here

Re: [Owfs-developers] Humidity

2008-04-09 Thread Paul Alfille
I believe it's been supported since 2006. See
http://article.gmane.org/gmane.comp.file-systems.owfs.devel/2828/match=hih+4000

So the same circuit, just just different calibration.

Paul Alfille

On Wed, Apr 9, 2008 at 8:08 AM, Alessio Sangalli [EMAIL PROTECTED] wrote:

 Hi, I would like to build a humidity sensor. I can easily find a
 Honeywell HIH-4000 (for about 36EUR + taxes, www.farnell.com ); is hit
 design supported out of the box by owfs or what? I see no schematics
 on the website:

 http://owfs.org/index.php?page=humidity

 shall I use the schematics for the HIH-36XX project and just drop in the
 HIH-4000?

 Thanks
 Alessio


 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Don't miss this year's exciting event. There's still time to save $100.
 Use priority code J8TL2D2.

 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] DS2413 problem

2008-04-22 Thread Paul Alfille
On Tue, Apr 22, 2008 at 8:49 AM, Alessio Sangalli [EMAIL PROTECTED]
wrote:

 I am a bit confused...
 So I should write PIO.A/B to set and read latch.A/B to get the status,
 is this what you mean?


Well, I guess it's technically tri state logic. The PIO pin can be
closed -- non-conducting, and sense the voltage applied, or it can be
conducting and connect the external voltage to ground.  Usually when
conducting, the sensed voltage will be ground, since it's essentially
grounded.

The names are from the data sheet, latch is the conducting state (what you
SET) and PIO the sensed state (when read).

I suppose we could call the property you set the latch for writing, but
that's not how it's described in the data sheet.

Paul Alfille
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] temperature control

2008-04-23 Thread Paul Alfille
For a couple of sensors, you may as well just monitor directly. You can do
more sophisticated temperature control that way as well (rate of change,
etc)

You will have to do temperature measurements in any case. The alarms only
make sense if you have many non-parasitic sensors and do a simultaneous
conversion and then use alarm to find the sensors out of range.

Paul Alfille

On Wed, Apr 23, 2008 at 6:43 AM, Alessio Sangalli [EMAIL PROTECTED]
wrote:

 Hi, in my embedded application I want to monitor a couple of temperature
 sensors and, when the value goes below a certain amount, switch on some
 heaters using a pin of the DS2413.

 Now: what would you use? A simple script that polls the sensors with
 owread and turn on/off the heaters with a owwrite in case, or something
 more advanced using alarms and so on?

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] How to find what version your running

2008-04-24 Thread Paul Alfille
Right

or owfs -V

I hope, however, that any regressions have been resolved.

Paul Alfille

On Thu, Apr 24, 2008 at 7:28 AM, Mark Cheeseman [EMAIL PROTECTED] wrote:

 owfs --version ...?

 -Mark

 Rob Conway wrote:
  I am going to rebuild my server this weekend and have found I have owfs
  src files for many versions……and I forget which version I ended up
  finally running with.  As I did have trouble with reading counter values
  some time back.
 
 
 
  SO
 
 
 
  How do I find out what version of owfs is running on my server ?
 
 
 
 
 
  Thanks
 
 
 
  rob
 
 
 
 
  
 
  -
  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
  Don't miss this year's exciting event. There's still time to save $100.
  Use priority code J8TL2D2.
 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 
 
  
 
  ___
  Owfs-developers mailing list
  Owfs-developers@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/owfs-developers

 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Don't miss this year's exciting event. There's still time to save $100.
 Use priority code J8TL2D2.

 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] DS2413 problem

2008-04-25 Thread Paul Alfille
On Tue, Apr 22, 2008 at 9:19 PM, Alessio Sangalli [EMAIL PROTECTED]
wrote:

 I had some other troubles. Embedded development is exciting ;)

 I just tested the latest cvs version; I now have used owserver +
 owwrite. The fact is, the CVS version does not work (I am unable to
 switch on and off the relay) but 2.7p4 works well. With both versions,
 cvs and 2.7p4, I can read the temperature sensors.

So the issue with the CVS is only reading PIO?


 With owhttpd, the problem I showed in the other email persists.

 Also, both owserver and owhttpd cannot be killed normally but I have to
 use -9.

This must a an embedded issue. I can do killall owhttpd and owserver on a
standard desktop.
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] DS2413 problem

2008-04-25 Thread Paul Alfille
On Tue, Apr 22, 2008 at 9:19 PM, Alessio Sangalli [EMAIL PROTECTED]
wrote:

 owwrite. The fact is, the CVS version does not work (I am unable to
 switch on and off the relay) but 2.7p4 works well. With both versions,
 cvs and 2.7p4, I can read the temperature sensors.


Can you try the newest version?

Paul Alfille
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] temperature control

2008-04-28 Thread Paul Alfille
On Mon, Apr 28, 2008 at 1:10 PM, Jim Kusznir [EMAIL PROTECTED] wrote:

 And currently the temperature alarming is very, very broke.



This is the first report on this problem. Can you tell me more?

Looking through the data sheet (
http://datasheets.maxim-ic.com/en/ds/DS18B20.pdf) the alarm
should be set whenever the temperature is out of range. No explicit alarm
activation or clearing is given.
So either owfs isn't setting the Temperature limits correctly, or it isn't
searching the alarm register correctly.

I'll try some tests, but if you have more information that would be helpful.

Thanks,

Paul Alfille
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] temperature control

2008-04-28 Thread Paul Alfille
Reading:
Latch shows what you set
PIO shows what it senses (only useful if switch is off).

On Mon, Apr 28, 2008 at 5:38 PM, Alessio Sangalli [EMAIL PROTECTED]
wrote:

 Paul Alfille wrote:

  Have you seen my report about the cvs and DS2413?
 
  Yes, can you test again?


 Sorry I've been busy in the last couple of days.
 I'm going to test it in the next few minutes but tell me one thing:

 where should I read the current status of the switches? PIO.A/B or
 latch.A/B???

 bye
 Alessio



 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Don't miss this year's exciting event. There's still time to save $100.
 Use priority code J8TL2D2.

 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] DS2423 support

2008-04-28 Thread Paul Alfille
The DS2423 works.

On Mon, Apr 28, 2008 at 4:25 PM, Gregg C Levine 
[EMAIL PROTECTED] wrote:

 Hello!
 Paul, all of this discussion surrounding issues for the DS2413 reminds me
 of
 the problems I had earlier for the DS2423 device.

 Would it be safe to state that support for that gizmo is firmly installed
 in
 the latest release, (both numbered and available as a download, and from
 CVS) for our product?

 I've got a few ideas taking shape that will probably require one, plus a
 few
 DS2406 devices, which I've always gotten to work without any problems.
 --
 Gregg C Levine [EMAIL PROTECTED]
 The Force will be with you always. Obi-Wan Kenobi





 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Don't miss this year's exciting event. There's still time to save $100.
 Use priority code J8TL2D2.

 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] DS2450 and voltages

2008-05-01 Thread Paul Alfille
It's certainly possible to give the raw byte sequence. There is a slight
wrinkle that the DS2450 does A/D conversion either 0-2.5V or 0-5V and we use
the requested property to transparently set the correct resolution.

From modules/owlib/src/c/ow_2450.c:

// data conversions
f[0] = (resolution ? 7.8126192E-5 : 3.90630961E-5) * UINT) data[1])
 8) | data[0]);
f[1] = (resolution ? 7.8126192E-5 : 3.90630961E-5) * UINT) data[3])
 8) | data[2]);
f[2] = (resolution ? 7.8126192E-5 : 3.90630961E-5) * UINT) data[5])
 8) | data[4]);
f[3] = (resolution ? 7.8126192E-5 : 3.90630961E-5) * UINT) data[7])
 8) | data[6]);

Are you using a platform where floating point arithmetic is inconvenient?
I'm told the true resolution is only 8 bit even though 16bit is set, so
rounding errors are probably irrelevant.

If you want the raw reading, can you suggest a good name? A2D ? raw_read?

Paul Alfille
On Thu, May 1, 2008 at 4:25 PM, Alessio Sangalli [EMAIL PROTECTED] wrote:

 Hi, I am using a DS2450 to control voltages.

 I use a voltage divider, 33K + 10K resistors and measure the voltage in
 the middle to measure up to about 20V.

 I have to calibrate each ADC to get an accurate reading depending on the
 real value of the resistors.

 In this operation I would be more comfortable to use the raw 16bit
 reading from the sensor, is it possible to have it available or the
 DS2450 just sends the voltage reading?

 bye thank you
 Alessio



 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Don't miss this year's exciting event. There's still time to save $100.
 Use priority code J8TL2D2.

 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] DS2450 and voltages

2008-05-02 Thread Paul Alfille
Allesio

After a conversion (measurement) is done, the raw data can be read from
memory (page 0).

This is a little less efficient since the memory page is read twice, once
for the voltage and once for the page. Still, data A/D is probably the
slowest part of the sequence.

The data sheet calls these the conversion readout or conversion registers.
Not the best name for a property.

Paul

On Fri, May 2, 2008 at 3:45 AM, Alessio Sangalli [EMAIL PROTECTED] wrote:

 Paul Alfille wrote:
  It's certainly possible to give the raw byte sequence. There is a slight

  Are you using a platform where floating point arithmetic is
  inconvenient? I'm told the true resolution is only 8 bit even though
  16bit is set, so rounding errors are probably irrelevant.

 Well I do not have an FPU, but floating point is possible anyway, and
 this application will just do a FP multiplication every now and so, it
 should not be a problem.

 From the DS2450 datasheet, page 22:
 In the shaded areas [8 bit resolution] the accuracy is less than the
 resolution. The conversion results may include random noise.
 I'd keep the 16 bit value anyway, just the value that comes from the
 device (I assume the device always outputs a 16bit value)

  If you want the raw reading, can you suggest a good name? A2D ?
 raw_read?

 Well, difficult question :) I think both names make sense. What is the
 name the Maxim datasheet refer to this value?

 bye
 Alessio



 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Don't miss this year's exciting event. There's still time to save $100.
 Use priority code J8TL2D2.

 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Three issues in need of answers

2008-05-07 Thread Paul Alfille
On Tue, May 6, 2008 at 9:33 PM, Gregg C Levine 
[EMAIL PROTECTED] wrote:

 Hello!
 Paul what is the oldest of the 2.4 series of Linux kernels that will
 support
 both the FUSE module, and the OWFS routines, as applied to the serial
 devices for the One Wire devices?


Serial support in OWFS itself probablu extends back to the 1.2 kernels
Certainly 2.0 and 2.2 are supported.
FUSE is a little more difficult. This page has data:
http://fuse.sourceforge.net/wiki/index.php/OperatingSystems


 And next, Paul, are you aware that we are running against the quota as
 used
 by Sourceforge? There's a note regarding that issue on my user's account
 e-mail address.

Christian Magnusson has addressed this.


 And this is a general question, would anyone know when Dallas
 Semiconductor
 and Maxim decided to discontinue the Java enabled family of buttons? I
 asked
 them directly about this, but naturally no one there had the answer to
 hand
 as it were.

Not sure. 2004?
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OWFS and WRT54GL

2008-05-08 Thread Paul Alfille
I can't answer about assembled WRT54GL, but there are a number of devices
with functioning USB ports:

WRT54G(S), ASUS-WL500gd, ASUS-WL500W for wireless routers

NSLU2 for USB and wired device.

Paul Alfille

I've sent your query to the developer's list for other input.

On Thu, May 8, 2008 at 7:29 PM, Quark IT - Hilton Travis 
[EMAIL PROTECTED] wrote:

  Hi Paul,



 I've been running WRT54GL (and some earlier G and GS) units at client sites
 for some time now with various OSes installed (default, OpenWRT, DD-WRT) and
 have been pretty impressed with the longevity of these units and the variety
 of software and hardware mods that have been cooked up for them.  It just
 goes to show what a good dev platform can be used for when the community
 gets behind it!  J



 Anyway, I'm about to purchase some pythons from a mate and due to the
 amount of electronic gear at my place, am a little concerned that if I'm not
 here and the temps get a little carried away, that maybe this will stress
 the snakes and cause issues I'd rather not cause them.  Out of interest,
 I've just bought 2 * Jungle Python yearlings (about 2 feet long) (general
 images at http://www.southernxreptiles.com/JUNGLEGALLERY.htm) and a 3'
 Bredli (general images at http://en.wikipedia.org/wiki/Morelia_bredli)
 from him.



 What I'm looking at is using a WRT54GL with a serial port hack and OWFS to
 monitor some TAI8540D units (http://www.aagelectronica.com/aag/index.html)
 so I can measure both temp and relative humidity.  If possible with OWFS,
 I'd also like to be able to use the TAI8555 1-Wire Switch module to control
 a relay to a fan, light source, heat source, cooling source or something
 else.  An alternate device to a hacked WRT54GL would be the Asus WL-500G
 Premium (WL-500GPV2) that has an inbuilt USB port and using a USB 1-Wire
 adapter instead of a serial one.



 So, what I'm basically asking is if you still have any assembled modules
 available or if you know of anyone who has assembled modules available for
 the WRT54GL.  I don't mind drilling a few holes in the case and plugging a
 connector into the onboard header, but I don't really have the gear for
 soldering together components or making a circuit board.  Or do you know if
 the DS9490R USB Adapters work with OWFS and a USB-equipped WRT54-like
 device?



 The really good thing about this as a solution is the ability, I'm
 thinking, to be able to record this data for quite a while on the device
 itself, or better still, to be able to send the results via syslog (or other
 method) to another box via Wi-Fi, meaning that these units could be
 scattered wherever needed and not need Ethernet cabling to hook them all
 into the network!  Would be really nice if your snakes, fish, birds or
 whatever are not near your computers yet you'd like to monitor them.



 Any and all information will be much appreciated.



 Regards,



 [image: Hilton Travis, Manager, Quark IT 
 http://www.QuarkIT.com.au/]http://www.quarkit.com.au/

 War doesn't determine who is right. War determines who is left.

 This document and any attachments are for the intended recipient only.
 It may contain confidential, privileged or copyright material which
 must not be disclosed or distributed.

 Quark Group Pty Ltd T/A Quark Automation, Quark AudioVisual, Quark IT



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] lrint() changes

2008-05-10 Thread Paul Alfille
Sorry for causing problems with lrint. It seemed sensible to use an existing
rounding/conversion routine rather than rolling our own. I didn't realize
we'd need to bring in a whole new library with it.

Paul

On Sat, May 10, 2008 at 7:16 PM, Doug Collinge [EMAIL PROTECTED]
wrote:

 I only used that for a quick fix to a problem connected with the 1821
 returning negative temperatures and causing a crash.  I agree that it's not
 worth creating a dependency for so I would be happy to code it into the 1821
 support if you give me a few days to code and test.

 On Sat, May 10, 2008 at 1:00 PM, Christian Magnusson [EMAIL PROTECTED] 
 wrote:



 We have to make some more changes in configure.ac after lrint() is used
 in ow_1821.c. This function is located in libm.so, and this is the first
 dependency to this library.

 I think it's a waste of memory to add a new dynamic library if we only use
 one single function in it from owlib…. Especially on the embedded systems.



 Anyway… the dependency could be added with this row in configure.ac.

 AC_SEARCH_LIBS(lrint, m, AC_DEFINE(HAVE_LRINT, 1, [Define if you have
 lrint]))



 I have added some changes in the CVS to make this check.



 /Christian



 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Don't miss this year's exciting event. There's still time to save $100.
 Use priority code J8TL2D2.

 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers



 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Don't miss this year's exciting event. There's still time to save $100.
 Use priority code J8TL2D2.

 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] The 25¢ I2C Adapter DS2482 + o wfs?

2008-05-17 Thread Paul Alfille
The DS2482 is supported, as accessed by /dev/i2c. Is this clever hack
supported by the kernel?

Paul Alfille

On Sat, May 17, 2008 at 12:59 PM, Sven Geggus [EMAIL PROTECTED]
wrote:

 Dear owfs developers,

 I came across this article:
 http://www.paintyourdragon.com/uc/i2c/index.html

 Do you think, that one might be able to adapt DS2482 and owfs?

 Regards

 Sven

 --
 If we want hardware to work to its full potential, we need to claim to
 be a recent version of Windows. (Matthew Garrett)

 /me is [EMAIL PROTECTED], http://sven.gegg.us/ on the Web

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Strange behavior with DS2450

2008-05-20 Thread Paul Alfille
Could you try the embedded CD version to see?

2.6p2 is back from 2/2007.

By the way, your code: cat /var/ow/uncached/28.F7668900/power ;echo 1
is a little strange.

Paul Alfille

On Tue, May 20, 2008 at 11:13 AM, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:

   I have a DS2450 that seems to be giving me troubles.  It's measuring
 voltage in the 0-2v range, but seems to fail very frequently (80+ percent
 read failures at times).  Also, it is powered, but reports 0 for the power
 attribute. The first example below is a temp sensor, the second is my
 unruly  DS2450, both of which are externally powered.

 [EMAIL PROTECTED]:~# cat /var/ow/uncached/28.F7668900/power ;echo
 1
 [EMAIL PROTECTED]:~# cat /var/ow/uncached/20.4E8E0C00/power ;echo
 0
 [EMAIL PROTECTED]:~#

 Also when I try to cat the type of the DS2450, I get a bunch of garble:

 [EMAIL PROTECTED]:~# cat /var/ow/uncached/20.4E8E0C00/type
 DS2450ð·  [EMAIL PROTECTED]
 presentH   r_addresshr_id  r_locator¸
 temperature12X
 temperatureà
 temperature9temphightemplow¸trimà

 trimblankettrimvalid(tytemperature12X
 temperature9temphightemplow¸y
 p±ð·p±ð·à
  trimblankettrimvalid(typeH.h..
 volthigh.C¸
 volthigh.Dà
voltlow.ALL  voltlow.Aù
 p±ð·p±ð·voltlow.BX  voltlow.C
 voltlow.D 
 .À..BUS_tcsetattr_errorsBUS_write_errors8BUS_write_interrupt_errors`
 CRC16_errors
 CRC16_tries°
 CRC8_errorsØ
 CRC8_tries

 [EMAIL PROTECTED] 
 DS2480_sendout_data_errorsÐDS2480_write_interruptedÿÿÿNET_accept_errorsùp±ð·p±ð·àvolt2.D.
 ¡p±ð·p±ð·voltlow.BX  voltap±ð·p±ð·   voltlow.D .À..
 page.82
 page.83À
 page.84à
 page.85
page.86
page.87@
page.88`
page.89
   page.90

 page.91À
   page.92à
   page.93
 page.94
 page.95@
 page.96`
 page.97
 page.98
 page.99À
 page.100à
 page.109ÿÿÿpage.110page.111page.112page.113ÿÿÿpage.114page.115page.116page.117ÿÿÿpage.118page.119page.120page.121ÿÿÿpage.122page.123page.124page.125ÿÿÿpage.126cat:
 /var/ow/uncached/20.4E8E0C00/type: Numerical result out of range
 [EMAIL PROTECTED]:~#


 Any Ideas why?  All my temp sensors work just fine.  I'm running version
 2.6p2 on an Ubuntu machine.  Has there been any development on the DS2450 in
 newer versions that it's worth upgrading to a recent build?  I'd rather not
 upgrade my [generally] working environment unless I know there's been a
 change to warrant it :)

 -Scott



 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers


-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] ds2482+strong pull up

2008-05-22 Thread Paul Alfille
Yes.

2008/5/22 greg h [EMAIL PROTECTED]:

 hi,
 I'd like to know if the strong pullup is supported in the 1-wire linux code
 for the DS2482.
 thanks in advance.
 greg


 __
 Do You Yahoo!?
 En finir avec le spam? Yahoo! Mail vous offre la meilleure protection
 possible contre les messages non sollicités
 http://mail.yahoo.fr Yahoo! Mail

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] using css to place 1wire data in web pages

2008-05-24 Thread Paul Alfille
Very interesting.

So Javascript would be running on the client, in their browser. To pull OWFS
data, would you use owhttpd/text  and parse the data? Can you read a URL
into a javascript variable?

Could be quite powerful.

Paul Alfille

On Sat, May 24, 2008 at 10:40 AM, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:

 You'd use your favorite scripting language to output a file of valid
 javascript statements that you can then use in the HTML to display at
 runtime.  The template file with owfs values you'd generate should be in the
 same folder as the display page and might look something like:

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OWFS - Debian problems

2008-06-03 Thread Paul Alfille
Hi Jason.

The most obvious test would be to disconnect your RJ-14 cable (and the
DS18S20 attached to it) and see if the bare DS9490R and it's internal DS2411
work ok.

Please report what you get. I suspect it's an unrecognized short circuit or
miswiring, but this is the first step in figuring it out.

Paul Alfille

On Tue, Jun 3, 2008 at 5:34 PM, Jason Antman [EMAIL PROTECTED] wrote:

 Hi,

 I've built FUSE, OWFS, etc. from source on a Debian (4.0) machine. I'm
 using a DS9490R USB adapter from Hobby-Boards.com with (for now) one
 DS18S20P wired directly to it (RJ-14 pin 3 (DQ) to chip pin 2, RJ-14 pin
 4 to chip pin 1 (Gnd)).

 As far as I can tell, everything is wired and installed correctly.
 However, I keep getting short circuit errors:

 [EMAIL PROTECTED]:~$ sudo /opt/owfs/bin/owfs -u -m /mnt/1wire
 --foreground --error_level 9 --error_print 2 | tee /home/jantman/owfs-try1
 CONNECT: fuse mount point: /mnt/1wire
   CALL: PARSENAME path=[]
 CONNECT: Adapter found: 001/005
 DEFAULT: Opened USB DS9490 adapter at 001/005.
   DATA: DS9490_setup_adapter: done (ret=0)
  DEBUG: Start of directory path= device=00 00 00 00 00 00 00 00
  DEBUG: Selecting a path (and device) path= SN=00 00 00 00 00 00 00 00
 last path=00 00 00 00 00 00 00 00
  DEBUG: Clearing root branch
   DATA: DS9490_reset
   DATA: DS9490_getstatus: Status byte[0]: A
   DATA: DS9490_getstatus(): short detected
   DATA: DS9490_reset: short detected
 CONNECT: 1-wire bus short circuit.
   DATA: BUS_first failed during connect [001/005] (Probably non-DS9490
 device and empty bus).
  DEBUG: fuse_mnt_opt=[(null)]
  DEBUG: fuse_open_opt=[(null)]

 I can't find anything on Google about this error message. If anyone can
 provide some guidance, or a starting point, I would greatly appreciate it.

 I can't find any obvious wiring errors. I do, however, just have the
 ends of the Cat5 wrapped around the pins on the DS18S20P, though I've
 separated them enough that it should prevent any interference.

 Thanks,
 Jason Antman
 Rutgers University

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OWFS - Debian problems

2008-06-03 Thread Paul Alfille
On Tue, Jun 3, 2008 at 9:55 PM, Jason Antman [EMAIL PROTECTED] wrote:

 1) Do I need to restart OWFS after adding a device, or can I just keep
 everything as is and plug in the temperature probe?
 2) More important - am I correct in my findings that my DS18S20P
 (sampled from Maxim) does NOT require Vdd to be shorted to ground for
 parasite power? I've tried it both ways...


Great. Should be a simple fix.

To answer your questions:

1. No (though it might be easier). The bus contents are cached for up to 2
minutes. If you use the uncached directory, you should force an immediate
re-read.
2. According to the datasheet (for the DS18S20-PAR which I assume is what
you have) http://datasheets.maxim-ic.com/en/ds/DS18S20-PAR.pdf pin 3 is NC
-- not connected.

Paul Alfille
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Unable to build

2008-06-10 Thread Paul Alfille
Do you think there is a problem with the include files? Has the structure
changed in Etch?

It sounds like this person can't build from source.

Paul Alfille

On Tue, Jun 10, 2008 at 1:01 PM, Matthias Urlichs [EMAIL PROTECTED]
wrote:

 Hi,

  I'm trying to build OWFS on a Debian Etch box.
 
 Bah. I seem to need to update my Debian packaging.

 --
 Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |
 [EMAIL PROTECTED]
 Disclaimer: The quote was selected randomly. Really. |
 http://smurf.noris.de
  - -
 If you aren't rich you should always look useful.
-- Louis-Ferdinand Celine

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] PL2303 DS9097U Don't commuicate

2008-06-15 Thread Paul Alfille
In general, the USB/serial conversion should work transparently.

Obviously your would specify -d /dev/ttyUSB0 on the command line --
assuming
that is the assignment linux is making (dmesg should confirm this).

I suppose some USB/serial adapters might not be as faithful. The DS9097U
does
need to steal power from the line.

I notice that one device is seen, a DS2502. Is this correct? (Family code
09)

Paul Alfille
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Lots of configure/Makefile updates

2008-06-17 Thread Paul Alfille
So after we fix the alarm bug, are there any outstanding issues before a new
release?

Paul

On Tue, Jun 17, 2008 at 9:16 AM, Christian Magnusson [EMAIL PROTECTED] wrote:

  Global is a reserved variable-name, so I had to rename it to Globals
 instead.

 All shared libraries are now compiled with –fPIC to generate position
 independent code as well. This should be done long time ago to generate
 correct code, and it's strange nobody has complained about it before.

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] PL2303 DS9097U Don't commuicate

2008-06-17 Thread Paul Alfille
Let's try some simple steps.

If you disconnect all the devices, does the base DS9097U seems to work?

Can you run the device with --foreground --error_level=9 and post the
results?

Paul Alfille

On Sun, Jun 15, 2008 at 9:12 AM, William Brown [EMAIL PROTECTED]
wrote:

 Here's where the DS2502 is:
 DS9097U-009 DB-9, with DS2502 ID Chip.

 DS9097 needs +5V minimum to operate, I need to verify that the serial
 port supplies this.  I think the 1.5V is just to operate the circuits,
 it should pass the +5V if it is to specs as the documentation states.

 Paul Alfille wrote:
  In general, the USB/serial conversion should work transparently.
 
  Obviously your would specify -d /dev/ttyUSB0 on the command line --
  assuming
  that is the assignment linux is making (dmesg should confirm this).
 
  I suppose some USB/serial adapters might not be as faithful. The
  DS9097U does
  need to steal power from the line.
 
  I notice that one device is seen, a DS2502. Is this correct? (Family
  code 09)
 
  Paul Alfille
  
 
  -
  Check out the new SourceForge.net Marketplace.
  It's the best place to buy or sell services for
  just about anything Open Source.
  http://sourceforge.net/services/buy/index.php
  
 
  ___
  Owfs-developers mailing list
  Owfs-developers@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/owfs-developers
 


 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] DS1923

2008-06-30 Thread Paul Alfille
Support for the 1921's, 1922's and 1923's has been a stalled for while. Part
of the problem was coming up wth a coherent filesystem for a very complex
device. The other problem was aliases -- changing one property (starting a
mission) changes the state of items like running, etc.

Recently the alias problem has been fixed with. the sibling functions
which have first been applied to switches (PIO an sensed for example).

I have 1921,2,3 to test with. And clearly there is interest in the devices.

The only outstanding architecture issue is handling passwords for the 1922
and 1923.

Paul Alfille

On Sun, Jun 29, 2008 at 3:21 PM, Christian Magnusson [EMAIL PROTECTED] wrote:


 Paul, do you have any DS1923 devices at home?


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] Check return codes everywhere

2008-07-01 Thread Paul Alfille
Moved from the Bug reports because this is more an architecture and design
issue.

Bugs item #1650477, was opened at 2007-02-02 11:30
Submitted By: Markus Elfring (elfring)
Summary: Check return codes everywhere

Comment By: Markus Elfring (elfring)
Date: 2007-02-27 15:53

I am a bit concerned about program corretness. I imagine that failed log
messages can matter.
Would you like to achieve complete and correct error handling?

--

 Submitted By: Markus Elfring (elfring)

 Initial Comment:
 Some checks for return codes are missing.

 Examples:
 1. Would you like to add more error handling for return values from fputs
 like in the function err_msg?

 http://owfs.cvs.sourceforge.net/owfs/owfs/module/owlib/src/c/error.c?revision=1.12view=markup

 2. How do you think to add safety checks for the calls of
 pthread_mutex_... in your ..._r functions?

 http://owfs.cvs.sourceforge.net/owfs/owfs/module/owlib/src/c/getaddrinfo.c?revision=1.8view=markup

 --

 Comment By: Christian Magnusson (d1mag)
 Date: 2007-02-27 15:22


 All thread-locks are currently done without error checking. It would
 require tons of changes and the calls are not likely to fail.
 error-handling in the error-print-function is a bit unnecessary.

 --


 Comment By: Markus Elfring (elfring)
 Date: 2008-07-01 09:54

 Would you like to look at the opinions from the discussion on the issue
 PTHREAD_MUTEX_INITIALIZER?
 http://groups.google.de/group/comp.programming.threads/msg/6c58abccbf1d19c2

 --



 Comment By: Paul Alfille (alfille)
 Date: 2008-07-01 16:31

 I've looked at the documentation for pthread_mutex_lock/unlock
 http://www.opengroup.org/onlinepubs/007908799/xsh/pthread_mutex_lock.html

 Most of the error codes are relevant to rcursive or error mutexes. For
 normal static mutexes, either you get a deadlock or it works. The
 deadlocks get figured out early in development.

 With our locking wrapped in macros, the error handling would be an abort
 in any case.

 --


 Comment By: Markus Elfring (elfring)
 Date: 2008-07-01 16:49

 How do you think about a cooperation with the function
 
 http://opengroup.org/onlinepubs/009695399/functions/pthread_cleanup_push.html
 ?

 Would you like to reduce the efforts for error code checking by an
 exception class hierarchy?
 http://dietmar-kuehl.de/mirror/c++-faq/exceptions.html#faq-17.1
 http://cexcept.sourceforge.net/

 --


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Check return codes everywhere

2008-07-01 Thread Paul Alfille

 Comment By: Markus Elfring (elfring)
 Date: 2008-07-01 16:49

 How do you think about a cooperation with the function
 
 http://opengroup.org/onlinepubs/009695399/functions/pthread_cleanup_push.html
 ?

 Would you like to reduce the efforts for error code checking by an
 exception class hierarchy?
 http://dietmar-kuehl.de/mirror/c++-faq/exceptions.html#faq-17.1
 http://cexcept.sourceforge.net/

 --


Since OWFS is C rather than C++ exception classes would be hard to
implement. Converting to C++ wouldn't be impossible, just quite a chore.

More to the point, problems in OWF have been with hardware -- network and
serial/USB handling and 1-wire device protocols. In general, the mutex
issues have been with subtle incompatibilities between glibc and uclibc.

That said, it is hard to argue against program correctness. Perhaps a
special testing option that adds a check to every mutex operation and abort
if there is an error? I suspect you are more likely to deadlock than see an
error.

Paul Alfille
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] How to Use Simultaneous

2008-07-12 Thread Paul Alfille
Your second use i the correct one.

Write 1 to simultaneous to trigger a conversion. That also clears the
cache. A normal read will read immeadiately the already measured temperature
ready in the device.

Paul Alfille

On Sat, Jul 12, 2008 at 8:28 PM, Doug Collinge [EMAIL PROTECTED]
wrote:

 I'm writing myself a little Python code here and trying to use
 'simultaneous' but getting results that are inconsistent with my
 understanding.

 I have multiple DS1820 devices on a bus.  They are all powered devices.  I
 want to simultaneously convert them all, wait, then read them all.  I'm
 expecting that when I go to read them, since I have signalled a simultaneous
 conversion, that they will all be already converted and ready to send their
 data, .except perhaps the first one if I haven't waited long enough for the
 conversion.

 I'm writing a 1 to '/simultaneous', processing some other stuff, then
 reading them all.  If I read from '/uncached/temperature' it takes
 600-some-odd milliseconds to read each one, which sounds like they are all
 doing a fresh conversion.  If I read from '/temperature' then I get them
 read in much faster but I don't get a fresh conversion each time.

 What I want is for writing to '/simultaneous' to always kick off a fresh
 conversion of all the devices so that I always get a new sample when I read
 them, and never take data out of the cache.  How can I accomplish this?

 -
 Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
 Studies have shown that voting for your favorite open source project,
 along with a healthy diet, reduces your potential for chronic lameness
 and boredom. Vote Now at http://www.sourceforge.net/community/cca08
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] How to Use Simultaneous

2008-07-13 Thread Paul Alfille
Documented? Apparently not well. This note should help:
http://www.mail-archive.com/owfs-developers@lists.sourceforge.net/msg02524.html



On Sun, Jul 13, 2008 at 3:25 AM, Doug Collinge [EMAIL PROTECTED]
wrote:

 Ah, writing to '/simultaneous' actually seems to wait for the conversion to
 complete.  I didn't realize that.  I'd better check the code here ...

 ... Yes, it does poll for completion of the conversion.  I think that
 explains a few things. I'll go back to the drawing board with this new info.

 Is there anywhere where this behaviour of '/simultaneous/temperature' is
 documented?  I mean, clears cache, polls for conversion.


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] need help in sharing owfs 1wire data between multiple BASH scripts

2008-07-21 Thread Paul Alfille
Hi Rob,

Interesting questions.

1. Each of the owshell programs (owread, owwrite, ...) are small utilities.
They do require a process creation and a tcp connection setup (no persistent
connections), but that may be quite acceptable on a modern server -- the
1-wire bus tends to be the limiting step.

2. owserver handles the multiple requests (I assume from different looping
scripts so concurrent) fairly efficiently. The whole bus is locked when
required, and individual devices are locked if a longer transaction is
needed. Still, there is no prioritization on lock or device access. It
wouldn't be hard to do, but we should establish a need before adding more
complexity.

3. Sharing data between processing is easiest with a database, Probably
ram-based. An alternative would be using perl with OWNET.pm where a complex
loop would be easy with shared data

4. Looking at the perl threading model,
http://migo.sixbit.org/papers/Perl_Threads/ it appears that sharing data
between threads is possible
http://search.cpan.org/~jdhedden/threads-shared-1.24/shared.pm but I'd have
to investigate further whether the module is reaqlly thread-safe (there is a
small amount of state data on the network connection and persistence that
might not like being shared, though each thread could set up it's own
connection to owserver).

Paul Alfille
On Mon, Jul 21, 2008 at 5:55 AM, Rob Conway [EMAIL PROTECTED] wrote:

  As the owfs threads have been quiet for a while I hope you don't mind
 this question about data gathering…..I know this is really a scripting
 question however thoucght someone might want to share there thoughts in how
 best to scan lots of 1wire data to be shared between multiple scripts.

  I just use multiple bash scripts at the moment, sometimes multiple scripts
 read the same data via OWFS and it is getting harder to manage



 *Objective*   - I want to optimize the data gathering to be the fastest
 and most reliable as possible thus decouple the data reading from the
 various scripts I use.   However If I optimize data reading (fastest
 possible) will the DO get reliably sent. ? This is very important and should
 take priority over reading data.





 *My Data*

 12 analog signals from 3 off DS2450 (quad A/D)..  This gets sampled every
 90 seconds and averaged with the last three readings.  The 2450 is only 8
 bits and I need to average 4 samples to get repeatable readings  .

 4 counter inputs from DS2423 (dual channel counters)  This data get read
 every 5 minutes…No need to average

 Digital I/O from 8 off DS2405/06 gets read every 2 seconds. (1 second would
 be great)



 *Considerations*

 I use a Ubuntu server and use owread and owwrite, I do not use FUSE.  I
 understand FUSE could possibly assist however as I need to average and
 provide calculations on the data to get it to engineering units,  I cannot
 use FUSE directly.  The digital inputs are from push buttons and level
 switches so I need to read uncached data.  I use rrdtools to collect the
 data.



 *Current thoughts*



 A dedicated read script shoving data into text files that the other scripts
 can read,

 Or

 maybe setup ~30 system variables that the OWFS read script uses as
 storage.  I have never created system variables, I assume they are located
 in ram.  Is there any contention between multiple scripts reading from
 system variables ?  Does anybody use this technique ?  How best to handle
 writing to digital outputs. ? Would another scripting language assist (i.e.
 perl)



 cheers

 rob







 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Interaction between open(file, O_NONBLOCK) and write() system call

2008-07-27 Thread Paul Alfille
Thank you, Charles. We're always happy to get a bug report with analysis and
a solution.

A couple of questions:
1. This doesn't seem unique to the LINK. Should it be used for all serial
writes?
2. Why would the write block?

About the specific code:
Is there a guaranteed exit to the loop?
Also do we need the pause for non EWOULDBLOCK errors?

Paul Alfille

On Sun, Jul 27, 2008 at 3:53 PM, Charles Spirakis [EMAIL PROTECTED] wrote:

 +   do {
 +   LEVEL_DEBUG(erc: %d\n,
 ewouldblock_retry_count++);
 +   // Not all versions of gcc/linux touch the
 +   // errno on success, so make sure there is no
 +   // garbage left in errno from a previous access
 +   errno = 0;
 +   write_or_error =
 write(pn-selected_connection-file_descriptor, buf,

 left_to_write);
 -   Debug_Bytes(Link write, buf, left_to_write);
 -   //printf(Link write = %d\n,(int)write_or_error);
 +   Debug_Bytes(Link write, buf, left_to_write);
 +   //printf(Link woe = %d\n,(int)write_or_error);
 +   if ((write_or_error  0)  (EWOULDBLOCK == errno))
 {
 +   usleep(1000);
 +   }
 +   } while (EWOULDBLOCK == errno);

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] What is the meaning of 85C?

2008-07-31 Thread Paul Alfille
It's the generic error value generated by the sensor. OWFS repeat the
measurement once. digitemp repeats twice. No reset should be needed, unless
you have more informtion.

Paul Alfille
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] Fwd: [Owfs-forums] [owfs - Help] Single i2c bus, but multiple DS2482-800

2008-08-07 Thread Paul Alfille
-- Forwarded message --
From: SourceForge.net [EMAIL PROTECTED]
Date: Thu, Aug 7, 2008 at 7:46 AM
Subject: [Owfs-forums] [owfs - Help] Single i2c bus, but multiple DS2482-800
To: [EMAIL PROTECTED]



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

I have to face the challenge to talk to 5 DS2482-800 on a single i2c bus. My
understanding is that neither linux kernel drivers nor owf can handle this
situation.
I checked various sources to come to this statement. Am I right? Or is there
a way around beside doing my own development?

Thanks in advance!

Hans

__
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

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Owfs-forums mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/owfs-forums
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] [Owfs-forums] [owfs - Help] Single i2c bus, but multiple DS2482-800

2008-08-07 Thread Paul Alfille
 From: SourceForge.net [EMAIL PROTECTED]
 Date: Thu, Aug 7, 2008 at 7:46 AM
 Subject: [Owfs-forums] [owfs - Help] Single i2c bus, but multiple
 DS2482-800
 To: [EMAIL PROTECTED]



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

 I have to face the challenge to talk to 5 DS2482-800 on a single i2c bus.
 My
 understanding is that neither linux kernel drivers nor owf can handle this
 situation.
 I checked various sources to come to this statement. Am I right? Or is
 there
 a way around beside doing my own development?

 Thanks in advance!

 Hans



Technically, you can set individual i2c addresses for the ds2482 (3 bits = 8
chips).
http://datasheets.maxim-ic.com/en/ds/DS2482-800-DS2482S-800.pdf
1. I haven't tested this
2. I've read that a bug in the Maxim i2c implementation makes sharing the
i2c line fail in certain circumstances (search their archives).
3. you can specify the i2c address in the linux device name (/dev/i2c-xxx),
but again untested,
4. Why? Each 1-wire line can support hundreds of devices, and you want 40
lines?
5. OWFS doesn't mind lots of 1-wire busses (essentailly unlimited)
6. OWFS shouldn't mind multiple DS2482-800s (though untested).
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] [Owfs-forums] [owfs - Help] Single i2c bus, but multiple DS2482-800

2008-08-07 Thread Paul Alfille

 2. I've read that a bug in the Maxim i2c implementation makes sharing the
 i2c line fail in certain circumstances (search their archives).


Here is the reference:
http://discuss.dalsemi.com/index.php?showtopic=391hl=

Paul Alfille
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] [Owfs-forums] [owfs - Help] Single i2c bus, but multiple DS2482-800

2008-08-09 Thread Paul Alfille
On Sat, Aug 9, 2008 at 6:23 AM, Matthias Urlichs [EMAIL PROTECTED]wrote:

 Sometimes the bus is blocked for too long to share it.

 Polling e.g. a motion sensor or a door contact a couple of times per
 second doesn't work when there's e.g. a temperature sensor on the same
 bus, as reading that thing takes 1 second.


Good point.
Some suggestions:
1. The DS2482-800 lines have some cross-contention (only one can be read at
a time), but the 1 second conversion delay with the bus powered high should
be ok.
2. OWFS spawns a separate thread for each request, so queries on different
busses should be fine. The only time a request ties up all the busses is
when OWFS is finding the location of a device, and when simultaneous
conversion is requested.
  a. You can specify the exact location of a device by /bus.1/10.1231231231
although it's a little fragile.
  b. The locations are cached. If the design is fairly static, increasing
that timeout would be more efficient.

Paul Alfille
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Single i2c bus, but multiple DS2482-800, again

2008-08-11 Thread Paul Alfille
I'm no i2c expert, but can you try /dev/i2c-1 /dev/i2c-2 ... ?

owfs merely performs: open(/dev/i2c-0,O_RDWR) so the real answer is
whatever device name is linked to the correct major/minor device.

Perhaps dmesg or /proc can offer more information.

Paul Alfille

On Mon, Aug 11, 2008 at 11:56 AM, Hans Detter [EMAIL PROTECTED] wrote:

 Hello,

 Thanks for the replies!
 However I can not see the first reply from Paul anymore, but hopefully
 it is still present in my memory.

 Some background to my problem:

 I was given an arm CPU based prototype HW used for a multi channel data
 acquisition purpose. The HW design has a single I2C bus connected to a
 bunch of I2C devices (GPIO multiplexer, EEPROM and the 5 DS2482-800).
 The reason for the quantity of 5 DS2482-800 is, that  we need to know
 where a Dallas ID is connected to (The sensor connector in our case), so
 we need dedicated one-wire lines.
 All of our I2C devices run on different I2C addresses, so there is no
 address conflict on the one and only I2C bus I have.
 Now I tried to find a convenient way to talk to my DS2482-800. I came
 across the owfs project and tried the owhttpd first.
 Using the -d /dev/i2c-0 parameter I found out, that just one of my
 DS2482-800 was detected and used. I also read, that I can append further
 -d parameter to owhttpd, but I do not know how to specify the I2C
 addresses of my 5 DS2482-800 I have on my HW.

 Is my approach doable with owfs?

 Thanks again for your effort.

 Hans

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Single i2c bus, but multiple DS2482-800, again

2008-08-13 Thread Paul Alfille
Ok, I looked through the documentation.

You have multiple I2C slaves on a single bus. We currently cycle through the
available addresses and take the first responding one, ignoring the rest.

It looks quite doable to add support for more i2c adapters, but there are
some architectural issues.
1. OWFS design, accessing the separate slaves.
a. does the slave address need to be set before every access.
b. do I need to share the same file-descriptor for the different slaves.

2. Command line interface
a. automatic detection
b. specifying a specific address
c. more than one instance of OWFS assigned to different i2c slaves.
Basically a balance between convenience and precision.

One thought is to use the same strategy as the USB,
--usb=1 --usb=all, ... = --i2c=all (although this could be the default,
except it would be different from usb)
Unlike USB, however, the i2c slaves can be distinguished by their address.

I need input on the best design.

Paul

On Tue, Aug 12, 2008 at 5:20 AM, Hans Detter [EMAIL PROTECTED] wrote:

 thanks for your reply.
 My I2C understanding is, that the number x of /dev/i2c-x specifies the
 adapter number only, not the addresses of the I2C devices I have. I my
 case I can only use /dev/i2c-0 since this is what I have on my HW board,
 all I2C devices are connected to it.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Single i2c bus, but multiple DS2482-800, again

2008-08-13 Thread Paul Alfille
I'm not sure if scanning all the i2c busses is safe. There seems to be a
list of available i2c adapters in
/sys/class/i2c-adapter/
and the names can be shown by:
cat /sys/class/i2c-adapter/*/device/name

I'm not sure if a non-root user can see or access all this.

The potential addresses for the DS2482-800 are 0x18 through 0x1F. Although
it's not hard to specify, I'd like that to be the non-default.

So what do you think of:

--i2c=/dev/i2c-0# first DS2482 on that i2c master
--i2c=/dev/i2c-0:1D   # Specific i2c master and DS2482 slave
--i2c=/dev/i2c-0:all# Every DS2482 on that i2c master
--i2c=all   # Every i2c master and DS2482 slave

Paul Alfille

On Wed, Aug 13, 2008 at 7:26 AM, Matthias Urlichs [EMAIL PROTECTED]wrote:

 If you want to go all out:

--i2c=/dev/i2c-0:2

for the device on i2c bus zero with address 2.

--i2c=/dev/i2c-1

for the first device on bus 1 that you can find

--i2c=any:2

a device is on address 2, but you don't know which bus
 number
(bus numbers can change between reboots, so this is not just
 idle
fanciness)

--i2c=all

scan for, and use, all devices.

 Personally, though, I see no need for any but the last option, provided
 that you can reliably identify 1wire adapters -- which I have no
 experience with WRT i2c.


---


 However, I do see a need for signalling owserver that it should re-scan
 the i2c buses for new / missing adapters. (This BTW also applies to USB.)


How about a general entry in under interface to reconnect

Paul Alfille
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] newbie help

2008-08-18 Thread Paul Alfille
Hi Calvin,
1. The 1-wire bus certainly is hot-plugable. In fact whole industries are
made using intermittent contact of ibuttons for security locks, watchman
rounds, etc. There is a delay in registering the new device under OWFS
unless you look at the uncached directory (just for performance, so the
bus need not be completely scanned for before every access).

2. The directory being hosed: This is a fuse issue, I've found that
umount /tmp/1-wire resets things.

3. owhttpd is actually easy to use.

In your case:
after booting, do:
/opt/owfs/bin/owserver -u  -p 4304
mkdir /tmp/1-wire
/opt/owfs/bin/owfs -s 4304 -F -m /tmp/1-wire --allow_other
/opt/owfs/bin/owhttpd -s 4304 -F -p 3000

Note the differences:
1. owserver now controls the USB port, and owfs talks to it.
2. owhttpd also talks to owserver (that's why we started owserver).
3. the web access is localhost:3000 on that machine, and ipaddress:3000
elsewhere.

Please report your success or problems.

Paul Alfille
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] OWFS on Ubuntu 8.04

2008-08-18 Thread Paul Alfille
My hard disk crashed solid. Ouch. So I set up Ubuntu 8.04 (64-bit)

Here's the steps for OWFS.

Basic ubuntu install and added lots of fluff.

Then for OWFS ---

sudo apt-get install cvs

sudo apt-get install autoconf
sudo apt-get install automake
sudo apt-get install libtool

# For filesystem (FUSE)
sudo apt-get install libfuse-dev

# For USB support
sudo apt-get install libusb-dev
sudo apt-get install libusb++-dev

# For languages
sudo apt-get install swig
sudo apt-get install php5
sudo apt-get install php5-dev
sudo apt-get install python-dev
sudo apt-get install libperl-dev
sudo apt-get install tcl-dev

cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/owfs login
#   (no password)
cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/owfs co owfs

cd owfs
./bootstrap
./configure
make
sudo make install
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] newbie help

2008-08-20 Thread Paul Alfille
On Tue, Aug 19, 2008 at 11:37 PM, cmitcham [EMAIL PROTECTED] wrote:


 thanks again, but of course now i want more. that php library sounds
 interesting. is there a step-by-step for how to use that?



owphp:
Here's the best start: http://owfs.sourceforge.net/owphp.html
The man page is succinct (but ugly): http://owfs.org/index.php?page=owphp
There is an example program in the code with some comments.
The syntax is the same as the rest of owfs -- the same device names and
property names.

Paul Alfille
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OWFS on Ubuntu 8.04

2008-08-24 Thread Paul Alfille
Do you have a fix?

Paul

On Sun, Aug 24, 2008 at 5:58 PM, Boyan Biandov
[EMAIL PROTECTED]wrote:

 You know guys I have been monitoring the mailing list for years, ever
 since owfs was in its infancy but lately I see no post addressing few
 bugs that simply make the source unusable.

 I discovered this just recently when I got the latest svn (I have been
 running an older version for 3 years) - there was a DTR line fix which
 makes serial LINK modules not work since they don't get their power

 Has this been fixed? Is it just me NOT using USB adaptors any more hence
 no one had complained about that?

 Thanks
 B

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OWFS on Ubuntu 8.04

2008-08-25 Thread Paul Alfille
I'm confused. This patch seems to have been implemented back in June. I
guess the problem is that there aren't any new releases. I'll release one
today.

In fact, browsing the code in Sourceforge:
http://owfs.cvs.sourceforge.net/owfs/owfs/module/owlib/src/c/ow_com.c?view=markupshows
your code.

How were you getting your version?

Paul Alfille

On Mon, Aug 25, 2008 at 2:42 AM, Boyan Biandov
[EMAIL PROTECTED]wrote:

  I did find a fix, it is not mine but I can confirm that it does work:


 http://www.nabble.com/Cannot-detect-DS2480-DS9097-interface-on--dev-ttyS0-td16727947.html

 Terminal parameters were not correctly setup in COM_open().
 Following *patch* fixes this. Please consider to apply this *patch* in
 your branch for next distributions.

 *owfs*-2.7p4/module/owlib/src/c/ow_com.c  2008-04-17
 16:45:56.0 +0200

 @@ -53,18 +53,19 @@ int COM_open(struct connection_in *in)
ERROR_CONNECT(Trouble setting port speed: %s\n,
 SAFESTRING(in-name));
}
// Set to non-canonical mode, and no RTS/CTS handshaking
 -   newSerialTio.c_iflag = IGNBRK | IGNPAR | IXANY;
 -   //newSerialTio.c_oflag = ~(OPOST);
 -   newSerialTio.c_oflag = 0;
 -   newSerialTio.c_cflag = CLOCAL | CS8 | CREAD;
 -   //newSerialTio.c_lflag =
 ~(ECHO|ECHOE|ECHOK|ECHONL|ICANON|IEXTEN|ISIG);
 -   newSerialTio.c_lflag = 0;
 +   newSerialTio.c_iflag =
 ~(BRKINT|ICRNL|IGNCR|INLCR|INPCK|ISTRIP|IXON|IXOFF|PARMRK);
 +   newSerialTio.c_iflag |= IGNBRK|IGNPAR;
 +   newSerialTio.c_oflag = ~(OPOST);
 +   newSerialTio.c_cflag = ~(CRTSCTS|CSIZE|HUPCL|PARENB);
 +   newSerialTio.c_cflag |= (CLOCAL|CS8|CREAD);
 +   newSerialTio.c_lflag =
 ~(ECHO|ECHOE|ECHOK|ECHONL|ICANON|IEXTEN|ISIG);
newSerialTio.c_cc[VMIN] = 0;
newSerialTio.c_cc[VTIME] = 3;
if (tcsetattr(in-file_descriptor, TCSAFLUSH, newSerialTio)) {
ERROR_CONNECT(Cannot set port attributes: %s\n,
 SAFESTRING(in-name));
return -EIO;
}
 +   tcflush(in-file_descriptor, TCIOFLUSH);
//fcntl(pn-si-file_descriptor, F_SETFL,
 fcntl(pn-si-file_descriptor, F_GETFL, 0)  ~O_NONBLOCK);
return 0;
   }
 The interestring thing is that a message from Apr 17, 2008 says the patch
 has been applied but when I download the source from sf.net the ow_com.c
 file does not seem to contain the patch? Once I edit ow_com.c and made the
 changes my LINK started working

 ~Boyan


  --
 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *Paul Alfille
 *Sent:* Sunday, August 24, 2008 5:39 PM
 *To:* owfs-developers@lists.sourceforge.net
 *Subject:* Re: [Owfs-developers] OWFS on Ubuntu 8.04

  Do you have a fix?

 Paul

 On Sun, Aug 24, 2008 at 5:58 PM, Boyan Biandov [EMAIL PROTECTED]
  wrote:

 You know guys I have been monitoring the mailing list for years, ever
 since owfs was in its infancy but lately I see no post addressing few
 bugs that simply make the source unusable.

 I discovered this just recently when I got the latest svn (I have been
 running an older version for 3 years) - there was a DTR line fix which
 makes serial LINK modules not work since they don't get their power

 Has this been fixed? Is it just me NOT using USB adaptors any more hence
 no one had complained about that?

 Thanks
  B

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers



 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] OWFS on Ubuntu 8.04

2008-08-26 Thread Paul Alfille
Upstream will accept them.

On Tue, Aug 26, 2008 at 5:05 AM, Sven Geggus
[EMAIL PROTECTED]wrote:

 Matthias Urlichs [EMAIL PROTECTED] wrote:

  It's probably too late for Lenny (blame the fact that some other jobs
  help me to actually feed my family :-/ )

 Probably it would be a good Idea to submit the Debian specific changes to
 the upstream Version. This should reduce your workload as a maintainer at
 least in teh long run.

 Sven

 --
 Kernel panic: I have no root and I want to scream
 (Linux Kernel Error Message)

 /me is [EMAIL PROTECTED], http://sven.gegg.us/ on the Web

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] 85C problem with DS18B20

2008-08-30 Thread Paul Alfille
Do you want to try this patch and see if it helps? Essentially we are
filtering for 85C and retrying unpowered.
Index: module/owlib/src/c/ow_1820.c
===
RCS file: /cvsroot/owfs/owfs/module/owlib/src/c/ow_1820.c,v
retrieving revision 1.101
diff -B -b -w -i -U3 -r1.101 ow_1820.c
--- module/owlib/src/c/ow_1820.c18 Jun 2008 15:05:44 -1.101
+++ module/owlib/src/c/ow_1820.c30 Aug 2008 18:41:15 -
@@ -578,6 +578,7 @@
 BYTE pow;
 int res = Resolutions[resolution - 9].config;
 UINT delay = Resolutions[resolution - 9].delay;
+UINT longdelay = delay * 1.5 ; // failsafe
 BYTE mask = Resolutions[resolution - 9].mask;
 int oldres;
 struct transaction_log tunpowered[] = {
@@ -590,6 +591,12 @@
 TRXN_WRITE1(convert),
 TRXN_END,
 };
+// failsafe
+struct transaction_log tunpowered_long[] = {
+TRXN_START,
+{convert, convert, longdelay, trxn_power},
+TRXN_END,
+};
 //LEVEL_DATA(OW_22temp\n);
 /* powered? */
 if (OW_power(pow, pn)) {
@@ -614,6 +621,7 @@
 }

 /* Conversion */
+// first time
 if (!pow) {// unpowered, deliver power, no
communication allowed
 LEVEL_DEBUG(Unpowered temperature conversion -- %d msec\n,
delay);
 if (BUS_transaction(tunpowered, pn)) {
@@ -634,12 +642,35 @@
 if (OW_r_scratchpad(data, pn)) {
 return 1;
 }
-//printf(Temperature Got bytes %.2X %.2X\n,data[0],data[1]) ;
+if ( data[1]!=0x05  data[0]!=0x50 ) { // not 85C
+temp[0] = (_FLOAT) ((int16_t) ((data[1]  8) | (data[0]  mask)))
* .0625;
+return 0;
+}
+
+// second time
+LEVEL_DEBUG(Temp error. Try unpowered temperature conversion -- %d
msec\n, delay);
+if (BUS_transaction(tunpowered, pn)) {
+return 1;
+}
+if (OW_r_scratchpad(data, pn)) {
+return 1;
+}
+if ( data[1]!=0x05  data[0]!=0x50 ) { // not 85C
+temp[0] = (_FLOAT) ((int16_t) ((data[1]  8) | (data[0]  mask)))
* .0625;
+return 0;
+}

-//*temp = .0625*(((char)data[1])8|data[0]) ;
-// Torsten Godau [EMAIL PROTECTED] found a problem with 9-bit
resolution
+// third and last time
+LEVEL_DEBUG(Temp error. Try unpowered long temperature conversion --
%d msec\n, longdelay);
+if (BUS_transaction(tunpowered_long, pn)) {
+return 1;
+}
+if (OW_r_scratchpad(data, pn)) {
+return 1;
+}
 temp[0] = (_FLOAT) ((int16_t) ((data[1]  8) | (data[0]  mask))) *
.0625;
 return 0;
+
 }

 /* Limits Tindex=0 high 1=low */


On Sat, Aug 30, 2008 at 12:55 PM, Christof Egner [EMAIL PROTECTED] wrote:

 Hello,

 I'm using several DS18B20 in powered mode connected to a DS9490R USB
 adapter. OWFS version is 2.7p4 (I have tried today's CVS version, too).

 The temperature is always showing 85C, which seems to be some kind of
 error code. But reading the sensors with digitemp works.

 I saw some older post regarding this topic, but I couldn't find a
 general solution.

 Is there a patch available? Any hints?


 Regards,
 Christof

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] 85C problem with DS18B20

2008-09-01 Thread Paul Alfille
Can you run with full logging (error_level=9) and see if it takes 2 or 3
attempts every time? I wonder if it's the attempts, or the code for powered
reads that is the problem.

Paul

On Sun, Aug 31, 2008 at 6:42 AM, Christof Egner [EMAIL PROTECTED] wrote:

 Hello Paul,

 thanks for your patch, it works great!


 Best Regards
 Christof

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Branches, hubs, and multiple master

2008-09-01 Thread Paul Alfille
Yes, the bus.0 entries can be used to explore the topology.

On Mon, Sep 1, 2008 at 3:07 PM, Stuart Poulton 
[EMAIL PROTECTED] wrote:

 Hi.
 I've not looked to well at the docs, but in a system with multiple master,
 a hub, or even an DS2482-800 is it possible to see which adaptor / port a
 device is connected to, and hence build a tree type view of the 1-wire net ?

 Cheers

 Stuart

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


<    2   3   4   5   6   7   8   9   10   11   >