Lorenz Drack | 1 May 2007 11:11
Picon

Re: Data error reading DS2423 counters

Hi

I run 2.6p3-4 which is the latest port to the slug.

Previous versions don't support the AAG thermocouple device (DS2760) which I need as part of my setup.

DS2423 counters did work in 2.6p1-3 but the DS2760 didn't.

thanks

 

From: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net] On Behalf Of Rob Conway
Sent: Tuesday, 1 May 2007 7:23 AM
To: owfs-developers <at> lists.sourceforge.net
Subject: Re: [Owfs-developers] Data error reading DS2423 counters

 

see below for unslung 6.8 SLUG

 

 

I run  a DS2423 on an NSLU2 and it works fine....

"owfs - 2.6p1-3"

# /opt/bin/owread -s 3002 1D.EBEF0900000034/counters.A
     8998369#

cheers

rob

----- Original Message -----

From: Lorenz Drack

Sent: Tuesday, May 01, 2007 12:52 AM

Subject: Re: [Owfs-developers] Data error reading DS2423 counters

 

Hi all, FWIW all my DS2423 devices on the slug are now reading errors. Does anyone remember which version these still worked for?

 

From: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net] On Behalf Of Paul Alfille
Sent: Sunday, 29 April 2007 11:56 AM
To: owfs-developers <at> lists.sourceforge.net
Subject: Re: [Owfs-developers] Data error reading DS2423 counters

 

I've been looking at the code.

Can you post what kind of errors you are getting? Perhaps debug output?

Paul Alfille

On 4/27/07, Paul Alfille <paul.alfille <at> gmail.com> wrote:

Hacker's guide:

code is in: DS2423 is in module/owlib/src/c/ow_ds2423.c
debugging: --foreground --error_level=9
sniffing: use an extra "LINK" adapter and the src/sniffer/linksniff program (just run "make" in that directory).

Paul Alfille



On 4/27/07, Matthias Urlichs < smurf <at> smurf.noris.de > wrote:

Hi,

njh:
> Ok, I just soldered one up and plugged it in.  I get roughly the same
> error:

Ouch. Any ideas where that comes from?

owserver doesn't seem to actually log anything special.
A Hacker's Guide (or, if it already exists, a pointer to it) which
gives one a few pointers WRT where to start finding that kind of problem
would be appreciated.

--
Matthias Urlichs   |   {M:U} IT Design <at> m-u-it.de   |   smurf <at> smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
I WILL NOT CHARGE ADMISSION TO THE BATHROOM
                -- Bart Simpson on chalkboard in episode 9F19

-------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

 

 

-------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Paul Alfille | 1 May 2007 12:16
Picon

Re: Data error reading DS2423 counters

Ok, sounds easy to fix.

Paul Alfille
On 5/1/07, Lorenz Drack <drack <at> bigfoot.com> wrote:
>
>
>
>
> Hi
>
> I run 2.6p3-4 which is the latest port to the slug.
>
> Previous versions don't support the AAG thermocouple device (DS2760) which I
> need as part of my setup.
>
> DS2423 counters did work in 2.6p1-3 but the DS2760 didn't.
>
> thanks
>
>
>
>
>
> From: owfs-developers-bounces <at> lists.sourceforge.net
> [mailto:owfs-developers-bounces <at> lists.sourceforge.net] On
> Behalf Of Rob Conway
>  Sent: Tuesday, 1 May 2007 7:23 AM
>
>  To: owfs-developers <at> lists.sourceforge.net
>  Subject: Re: [Owfs-developers] Data error reading DS2423 counters
>
>
>
>
>
> see below for unslung 6.8 SLUG
>
>
>
>
>
>
>
>
> I run  a DS2423 on an NSLU2 and it works fine....
>
>  "owfs - 2.6p1-3"
>
>  # /opt/bin/owread -s 3002 1D.EBEF0900000034/counters.A
>       8998369#
>
>  cheers
>
>  rob
>
>
>
> ----- Original Message -----
>
>
> From: Lorenz Drack
>
>
> To: owfs-developers <at> lists.sourceforge.net
>
>
> Sent: Tuesday, May 01, 2007 12:52 AM
>
>
> Subject: Re: [Owfs-developers] Data error reading DS2423 counters
>
>
>
>
> Hi all, FWIW all my DS2423 devices on the slug are now reading errors. Does
> anyone remember which version these still worked for?
>
>
>
>
> From: owfs-developers-bounces <at> lists.sourceforge.net
> [mailto:owfs-developers-bounces <at> lists.sourceforge.net] On
> Behalf Of Paul Alfille
>  Sent: Sunday, 29 April 2007 11:56 AM
>  To: owfs-developers <at> lists.sourceforge.net
>  Subject: Re: [Owfs-developers] Data error reading DS2423 counters
>
>
>
> I've been looking at the code.
>
>  Can you post what kind of errors you are getting? Perhaps debug output?
>
>  Paul Alfille
>
>
> On 4/27/07, Paul Alfille <paul.alfille <at> gmail.com> wrote:
>
> Hacker's guide:
>
>  code is in: DS2423 is in module/owlib/src/c/ow_ds2423.c
>  debugging: --foreground --error_level=9
>  sniffing: use an extra "LINK" adapter and the src/sniffer/linksniff program
> (just run "make" in that directory).
>
>  Paul Alfille
>
>
>
>
>
>
>
> On 4/27/07, Matthias Urlichs < smurf <at> smurf.noris.de > wrote:
>
> Hi,
>
>  njh:
>  > Ok, I just soldered one up and plugged it in.  I get roughly the same
>  > error:
>
>  Ouch. Any ideas where that comes from?
>
>  owserver doesn't seem to actually log anything special.
>  A Hacker's Guide (or, if it already exists, a pointer to it) which
>  gives one a few pointers WRT where to start finding that kind of problem
>  would be appreciated.
>
>  --
>  Matthias Urlichs   |   {M:U} IT Design  <at>  m-u-it.de   |
> smurf <at> smurf.noris.de
>  Disclaimer: The quote was selected randomly. Really. |
> http://smurf.noris.de
>  - -
>  I WILL NOT CHARGE ADMISSION TO THE BATHROOM
>                  -- Bart Simpson on chalkboard in episode 9F19
>
> -------------------------------------------------------------------------
>  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 <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
>
>
>  ________________________________
>
>
> -------------------------------------------------------------------------
>  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 <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
> -------------------------------------------------------------------------
> 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 <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>

-------------------------------------------------------------------------
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/
Rob Conway | 1 May 2007 14:43

why are there 3 x owservers running on my SLUG (NSLU2)

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 website    2168 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: root <at> ttyp0
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Lorenz Drack | 1 May 2007 15:19
Picon

Re: why are there 3 x owservers running on my SLUG (NSLU2)

Hi Rob

Your message prompted me to check the processes on my slug.

PS looks a bit scarier than yours.

Why aren't old processes dying I wonder

Maybe more importantly why are new ones starting?

I 'm polling it every min to get data but I don't see why that would start processes. Not using owread, just "cat filesystem > myfile"

 

  471         root       6992   S   owserver -P /opt/var/run/owserver.pid -u -p

  484         root       6992   S   owserver -P /opt/var/run/owserver.pid -u -p

  485         root       6992   S   owserver -P /opt/var/run/owserver.pid -u -p

  487         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

  489         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

  491         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

  497         root       5912   S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -

  500         root       5912   S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -

  501         root       5912   S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -

  502         root       5912   S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -

  508         root       3832   S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002

  512         root       3832   S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002

  513         root       3832   S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002

1400         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1401         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1402         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1403         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1404         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1573         root       6992   S   owserver -P /opt/var/run/owserver.pid -u -p

 1878         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1881         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1882         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 

 

From: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net] On Behalf Of Rob Conway
Sent: Tuesday, 1 May 2007 10:43 PM
To: owfs-developers <at> lists.sourceforge.net
Subject: [Owfs-developers] why are there 3 x owservers running on my SLUG (NSLU2)

 

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 website    2168 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:
root <at> ttyp0
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Paul Alfille | 1 May 2007 15:59
Picon

Re: why are there 3 x owservers running on my SLUG (NSLU2)

owserver is multithreaded -- might separate threads appear as separate processes in uclinux?

Paul Alfille

On 5/1/07, Lorenz Drack < drack <at> bigfoot.com> wrote:

Hi Rob

Your message prompted me to check the processes on my slug.

PS looks a bit scarier than yours.

Why aren't old processes dying I wonder

Maybe more importantly why are new ones starting?

I 'm polling it every min to get data but I don't see why that would start processes. Not using owread, just "cat filesystem > myfile"

 

  471         root       6992   S   owserver -P /opt/var/run/owserver.pid -u -p

  484         root       6992   S   owserver -P /opt/var/run/owserver.pid -u -p

  485         root       6992   S   owserver -P /opt/var/run/owserver.pid -u -p

  487         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

  489         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

  491         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

  497         root       5912   S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -

  500         root       5912   S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -

  501         root       5912   S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -

  502         root       5912   S   owftpd -P /opt/var/run/owftpd.pid -s 3002 -

  508         root       3832   S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002

  512         root       3832   S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002

  513         root       3832   S   owhttpd -P /opt/var/run/owhttpd.pid -s 3002

1400         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1401         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1402         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1403         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1404         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1573         root       6992   S   owserver -P /opt/var/run/owserver.pid -u -p

 1878         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1881         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 1882         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002 /tmp/

 

 

From: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-developers-bounces <at> lists.sourceforge.net] On Behalf Of Rob Conway
Sent: Tuesday, 1 May 2007 10:43 PM
To: owfs-developers <at> lists.sourceforge.net
Subject: [Owfs-developers] why are there 3 x owservers running on my SLUG (NSLU2)

 

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 website    2168 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:
root <at> ttyp0
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


-------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Matt | 2 May 2007 04:36
Picon
Picon

Re: Data error reading DS2423 counters

I had problems with 2.6p1-3 with DS2423 devices on an NSLU2 and problems 
(less) on Debian.
In both instances I was using USB.

I eventually reverted to an old serial adaptor which worked.

Lorenz Drack wrote:
>
> Hi
>
> I run 2.6p3-4 which is the latest port to the slug.
>
> Previous versions don't support the AAG thermocouple device (DS2760) 
> which I need as part of my setup.
>
> DS2423 counters did work in 2.6p1-3 but the DS2760 didn't.
>
> thanks
>
>  
>
> *From:* owfs-developers-bounces <at> lists.sourceforge.net 
> [mailto:owfs-developers-bounces <at> lists.sourceforge.net] *On Behalf Of 
> *Rob Conway
> *Sent:* Tuesday, 1 May 2007 7:23 AM
> *To:* owfs-developers <at> lists.sourceforge.net
> *Subject:* Re: [Owfs-developers] Data error reading DS2423 counters
>
>  
>
> see below for unslung 6.8 SLUG
>
>  
>
>  
>
> I run  a DS2423 on an NSLU2 and it works fine....
>
> "owfs - 2.6p1-3"
>
> # /opt/bin/owread -s 3002 1D.EBEF0900000034/counters.A
>      8998369#
>
> cheers
>
> rob
>
>     ----- Original Message -----
>
>     *From:* Lorenz Drack <mailto:drack <at> bigfoot.com>
>
>     *To:* owfs-developers <at> lists.sourceforge.net
>     <mailto:owfs-developers <at> lists.sourceforge.net>
>
>     *Sent:* Tuesday, May 01, 2007 12:52 AM
>
>     *Subject:* Re: [Owfs-developers] Data error reading DS2423 counters
>
>      
>
>     Hi all, FWIW all my DS2423 devices on the slug are now reading
>     errors. Does anyone remember which version these still worked for?
>
>      
>
>     *From:* owfs-developers-bounces <at> lists.sourceforge.net
>     <mailto:owfs-developers-bounces <at> lists.sourceforge.net>
>     [mailto:owfs-developers-bounces <at> lists.sourceforge.net] *On Behalf
>     Of *Paul Alfille
>     *Sent:* Sunday, 29 April 2007 11:56 AM
>     *To:* owfs-developers <at> lists.sourceforge.net
>     <mailto:owfs-developers <at> lists.sourceforge.net>
>     *Subject:* Re: [Owfs-developers] Data error reading DS2423 counters
>
>      
>
>     I've been looking at the code.
>
>     Can you post what kind of errors you are getting? Perhaps debug
>     output?
>
>     Paul Alfille
>
>     On 4/27/07, *Paul Alfille *<paul.alfille <at> gmail.com
>     <mailto:paul.alfille <at> gmail.com>> wrote:
>
>     Hacker's guide:
>
>     code is in: DS2423 is in module/owlib/src/c/ow_ds2423.c
>     debugging: --foreground --error_level=9
>     sniffing: use an extra "LINK" adapter and the
>     src/sniffer/linksniff program (just run "make" in that directory).
>
>     Paul Alfille
>
>
>
>     On 4/27/07, *Matthias Urlichs* < smurf <at> smurf.noris.de
>     <mailto:smurf <at> smurf.noris.de>> wrote:
>
>     Hi,
>
>     njh:
>     > Ok, I just soldered one up and plugged it in.  I get roughly the
>     same
>     > error:
>
>     Ouch. Any ideas where that comes from?
>
>     owserver doesn't seem to actually log anything special.
>     A Hacker's Guide (or, if it already exists, a pointer to it) which
>     gives one a few pointers WRT where to start finding that kind of
>     problem
>     would be appreciated.
>
>     --
>     Matthias Urlichs   |   {M:U} IT Design  <at>  m-u-it.de
>     <http://m-u-it.de>   |   smurf <at> smurf.noris.de
>     <mailto:smurf <at> smurf.noris.de>
>     Disclaimer: The quote was selected randomly. Really. |
>     http://smurf.noris.de
>     - -
>     I WILL NOT CHARGE ADMISSION TO THE BATHROOM
>                     -- Bart Simpson on chalkboard in episode 9F19
>
>     -------------------------------------------------------------------------
>
>     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 <at> lists.sourceforge.net
>     <mailto:Owfs-developers <at> lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>      
>
>      
>
>     ------------------------------------------------------------------------
>
>     -------------------------------------------------------------------------
>     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 <at> lists.sourceforge.net
>     https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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 <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>   

-------------------------------------------------------------------------
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/
Christian Magnusson | 2 May 2007 08:33

Re: Data error reading DS2423 counters


I have changed the if-statement for the ds2423 which probably caused the
problem.
I also built new nslu2 and openwrt ipk-packages with this update.

/Christian

> -----Original Message-----
> From: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-
> developers-bounces <at> lists.sourceforge.net] On Behalf Of Matt
> Sent: den 2 maj 2007 04:36
> To: owfs-developers <at> lists.sourceforge.net
> Subject: Re: [Owfs-developers] Data error reading DS2423 counters
> 
> I had problems with 2.6p1-3 with DS2423 devices on an NSLU2 and
> problems
> (less) on Debian.
> In both instances I was using USB.
> 
> I eventually reverted to an old serial adaptor which worked.
> 
> 
> 
> Lorenz Drack wrote:
> >
> > Hi
> >
> > I run 2.6p3-4 which is the latest port to the slug.
> >
> > Previous versions don't support the AAG thermocouple device (DS2760)
> > which I need as part of my setup.
> >
> > DS2423 counters did work in 2.6p1-3 but the DS2760 didn't.
> >
> > thanks
> >
> >
> >
> > *From:* owfs-developers-bounces <at> lists.sourceforge.net
> > [mailto:owfs-developers-bounces <at> lists.sourceforge.net] *On Behalf Of
> > *Rob Conway
> > *Sent:* Tuesday, 1 May 2007 7:23 AM
> > *To:* owfs-developers <at> lists.sourceforge.net
> > *Subject:* Re: [Owfs-developers] Data error reading DS2423 counters
> >
> >
> >
> > see below for unslung 6.8 SLUG
> >
> >
> >
> >
> >
> > I run  a DS2423 on an NSLU2 and it works fine....
> >
> > "owfs - 2.6p1-3"
> >
> > # /opt/bin/owread -s 3002 1D.EBEF0900000034/counters.A
> >      8998369#
> >
> > cheers
> >
> > rob
> >
> >     ----- Original Message -----
> >
> >     *From:* Lorenz Drack <mailto:drack <at> bigfoot.com>
> >
> >     *To:* owfs-developers <at> lists.sourceforge.net
> >     <mailto:owfs-developers <at> lists.sourceforge.net>
> >
> >     *Sent:* Tuesday, May 01, 2007 12:52 AM
> >
> >     *Subject:* Re: [Owfs-developers] Data error reading DS2423
> counters
> >
> >
> >
> >     Hi all, FWIW all my DS2423 devices on the slug are now reading
> >     errors. Does anyone remember which version these still worked
> for?
> >
> >
> >
> >     *From:* owfs-developers-bounces <at> lists.sourceforge.net
> >     <mailto:owfs-developers-bounces <at> lists.sourceforge.net>
> >     [mailto:owfs-developers-bounces <at> lists.sourceforge.net] *On Behalf
> >     Of *Paul Alfille
> >     *Sent:* Sunday, 29 April 2007 11:56 AM
> >     *To:* owfs-developers <at> lists.sourceforge.net
> >     <mailto:owfs-developers <at> lists.sourceforge.net>
> >     *Subject:* Re: [Owfs-developers] Data error reading DS2423
> counters
> >
> >
> >
> >     I've been looking at the code.
> >
> >     Can you post what kind of errors you are getting? Perhaps debug
> >     output?
> >
> >     Paul Alfille
> >
> >     On 4/27/07, *Paul Alfille *<paul.alfille <at> gmail.com
> >     <mailto:paul.alfille <at> gmail.com>> wrote:
> >
> >     Hacker's guide:
> >
> >     code is in: DS2423 is in module/owlib/src/c/ow_ds2423.c
> >     debugging: --foreground --error_level=9
> >     sniffing: use an extra "LINK" adapter and the
> >     src/sniffer/linksniff program (just run "make" in that
> directory).
> >
> >     Paul Alfille
> >
> >
> >
> >     On 4/27/07, *Matthias Urlichs* < smurf <at> smurf.noris.de
> >     <mailto:smurf <at> smurf.noris.de>> wrote:
> >
> >     Hi,
> >
> >     njh:
> >     > Ok, I just soldered one up and plugged it in.  I get roughly
> the
> >     same
> >     > error:
> >
> >     Ouch. Any ideas where that comes from?
> >
> >     owserver doesn't seem to actually log anything special.
> >     A Hacker's Guide (or, if it already exists, a pointer to it)
> which
> >     gives one a few pointers WRT where to start finding that kind of
> >     problem
> >     would be appreciated.
> >
> >     --
> >     Matthias Urlichs   |   {M:U} IT Design  <at>  m-u-it.de
> >     <http://m-u-it.de>   |   smurf <at> smurf.noris.de
> >     <mailto:smurf <at> smurf.noris.de>
> >     Disclaimer: The quote was selected randomly. Really. |
> >     http://smurf.noris.de
> >     - -
> >     I WILL NOT CHARGE ADMISSION TO THE BATHROOM
> >                     -- Bart Simpson on chalkboard in episode 9F19
> >
> >     -----------------------------------------------------------------
> --------
> >
> >     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 <at> lists.sourceforge.net
> >     <mailto:Owfs-developers <at> lists.sourceforge.net>
> >     https://lists.sourceforge.net/lists/listinfo/owfs-developers
> >
> >
> >
> >
> >
> >     -----------------------------------------------------------------
> -------
> >
> >     -----------------------------------------------------------------
> --------
> >     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 <at> lists.sourceforge.net
> >     https://lists.sourceforge.net/lists/listinfo/owfs-developers
> >
> > ---------------------------------------------------------------------
> ---
> >
> > ---------------------------------------------------------------------
> ----
> > 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 <at> lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> >
> 
> -----------------------------------------------------------------------
> --
> 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 <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
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/
Lorenz Drack | 2 May 2007 11:23
Picon

Re: Data error reading DS2423 counters

thanks matt - i'm not sure a usb-> serial converter will work with the slug?

-----Original Message-----
From: owfs-developers-bounces <at> lists.sourceforge.net
[mailto:owfs-developers-bounces <at> lists.sourceforge.net] On Behalf Of Matt
Sent: Wednesday, 2 May 2007 12:36 PM
To: owfs-developers <at> lists.sourceforge.net
Subject: Re: [Owfs-developers] Data error reading DS2423 counters

I had problems with 2.6p1-3 with DS2423 devices on an NSLU2 and problems 
(less) on Debian.
In both instances I was using USB.

I eventually reverted to an old serial adaptor which worked.

Lorenz Drack wrote:
>
> Hi
>
> I run 2.6p3-4 which is the latest port to the slug.
>
> Previous versions don't support the AAG thermocouple device (DS2760) 
> which I need as part of my setup.
>
> DS2423 counters did work in 2.6p1-3 but the DS2760 didn't.
>
> thanks
>
>  
>
> *From:* owfs-developers-bounces <at> lists.sourceforge.net 
> [mailto:owfs-developers-bounces <at> lists.sourceforge.net] *On Behalf Of 
> *Rob Conway
> *Sent:* Tuesday, 1 May 2007 7:23 AM
> *To:* owfs-developers <at> lists.sourceforge.net
> *Subject:* Re: [Owfs-developers] Data error reading DS2423 counters
>
>  
>
> see below for unslung 6.8 SLUG
>
>  
>
>  
>
> I run  a DS2423 on an NSLU2 and it works fine....
>
> "owfs - 2.6p1-3"
>
> # /opt/bin/owread -s 3002 1D.EBEF0900000034/counters.A
>      8998369#
>
> cheers
>
> rob
>
>     ----- Original Message -----
>
>     *From:* Lorenz Drack <mailto:drack <at> bigfoot.com>
>
>     *To:* owfs-developers <at> lists.sourceforge.net
>     <mailto:owfs-developers <at> lists.sourceforge.net>
>
>     *Sent:* Tuesday, May 01, 2007 12:52 AM
>
>     *Subject:* Re: [Owfs-developers] Data error reading DS2423 counters
>
>      
>
>     Hi all, FWIW all my DS2423 devices on the slug are now reading
>     errors. Does anyone remember which version these still worked for?
>
>      
>
>     *From:* owfs-developers-bounces <at> lists.sourceforge.net
>     <mailto:owfs-developers-bounces <at> lists.sourceforge.net>
>     [mailto:owfs-developers-bounces <at> lists.sourceforge.net] *On Behalf
>     Of *Paul Alfille
>     *Sent:* Sunday, 29 April 2007 11:56 AM
>     *To:* owfs-developers <at> lists.sourceforge.net
>     <mailto:owfs-developers <at> lists.sourceforge.net>
>     *Subject:* Re: [Owfs-developers] Data error reading DS2423 counters
>
>      
>
>     I've been looking at the code.
>
>     Can you post what kind of errors you are getting? Perhaps debug
>     output?
>
>     Paul Alfille
>
>     On 4/27/07, *Paul Alfille *<paul.alfille <at> gmail.com
>     <mailto:paul.alfille <at> gmail.com>> wrote:
>
>     Hacker's guide:
>
>     code is in: DS2423 is in module/owlib/src/c/ow_ds2423.c
>     debugging: --foreground --error_level=9
>     sniffing: use an extra "LINK" adapter and the
>     src/sniffer/linksniff program (just run "make" in that directory).
>
>     Paul Alfille
>
>
>
>     On 4/27/07, *Matthias Urlichs* < smurf <at> smurf.noris.de
>     <mailto:smurf <at> smurf.noris.de>> wrote:
>
>     Hi,
>
>     njh:
>     > Ok, I just soldered one up and plugged it in.  I get roughly the
>     same
>     > error:
>
>     Ouch. Any ideas where that comes from?
>
>     owserver doesn't seem to actually log anything special.
>     A Hacker's Guide (or, if it already exists, a pointer to it) which
>     gives one a few pointers WRT where to start finding that kind of
>     problem
>     would be appreciated.
>
>     --
>     Matthias Urlichs   |   {M:U} IT Design  <at>  m-u-it.de
>     <http://m-u-it.de>   |   smurf <at> smurf.noris.de
>     <mailto:smurf <at> smurf.noris.de>
>     Disclaimer: The quote was selected randomly. Really. |
>     http://smurf.noris.de
>     - -
>     I WILL NOT CHARGE ADMISSION TO THE BATHROOM
>                     -- Bart Simpson on chalkboard in episode 9F19
>
>
-------------------------------------------------------------------------
>
>     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 <at> lists.sourceforge.net
>     <mailto:Owfs-developers <at> lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>      
>
>      
>
>
------------------------------------------------------------------------
>
>
-------------------------------------------------------------------------
>     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 <at> lists.sourceforge.net
>     https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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 <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>   

-------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
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/
Jan Bertelsen | 2 May 2007 23:24
Picon

DS2760 - two bugs

Hi all,

running 2.6p4 on a FC5 I get some wrong readings from a DS2760 (like -31 C
as room temperature...)

Bug 1
After some debugging I found that OW_r_int(...) (line 886 in ow_2760.c) is
returning the temperature bytes from DS2760 in reversed order. OW_r_int
has another way of reading the bytes (line 1043 in ow_2760.c) but this is
commented out.

Swapping comment of line 1043 and 1044 in ow_2760.c gives the right
temperature reading, but I can't figure out if this is the right way to do
it or if there is a general bug in UT_int16() (or maybe OW_r_sram()).

Bug 2
But still I get the wrong thermocouple temperature. After some more
debugging  I realized that an old bug has been reintroduced (see e-mail
from 5/23/06): FS_r_vis() has a special if-statement for DS2740BU (line
617,618 in ow_2760.c) which is only relevant for DS2740BU (or am I
wrong?).

After moving it to the case-statement of DS2740 (as it was in version
2.3p7) I got the right readings from the thermocouple.

Does anybody know why this if-statement has been moved??

A diff of my changes is included below.

Jan B.

[jb <at> the-cat c]$ diff ow_2760.c ow_2760.c_org
603,604d602
<               if (pn->ft->data.v)
<                 f = pn->ft->data.f;           // for DS2740BU
618a617,618
>       if (pn->ft->data.v)
>               f = pn->ft->data.f;             // for DS2740BU
1043,1044c1043,1044
<       I[0] = (((int)((int8_t)i[0])<<8) + ((uint8_t)i[1]) ) ;
<       //I[0] = UT_int16(i);
---
>       //I[0] = (((int)((int8_t)i[0])<<8) + ((uint8_t)i[1]) ) ;
>       I[0] = UT_int16(i);

-------------------------------------------------------------------------
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/
Matthias Urlichs | 3 May 2007 02:08
Picon

Re: DS2760 - two bugs

Hi,

> A diff of my changes is included below.
> 
Please ALWAYS send diffs with context (diff -u).
--

-- 
Matthias Urlichs   |   {M:U} IT Design  <at>  m-u-it.de   |  smurf <at> smurf.noris.de

-------------------------------------------------------------------------
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/

Gmane