Giuliano | 3 Jul 2007 12:39
Picon

NSLU2 and DS2408

Hi,
i just installed an NSLU2 with unslug 6.8.
My network is very simple, i need to control a DS2408 , the connection to the
NSLU2 is realized via an DS9490R. The DS2408 is on an AAG TAI8558 board.
I connected that network to a desktop computer running ubuntu and everything
works fine either trough owfs or owhttpd  .
Connecting the network to the NSLU2 give me lot of problems: i am able to browse
the network ie: the devices are recognized but as soon as i try to access the
devices i get "Error: invalid argument" either on the owfs or owhttpd (the
latter without fuse).
The version of owfs is 2.6p5.
Thanks for your help 
Giuliano

-------------------------------------------------------------------------
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 | 3 Jul 2007 15:13

Re: NSLU2 and DS2408


It sounds like you have the problem with AAG products and USB-adapters like
many other people have stumbled into.
http://www.aagelectronica.com/aag/en-us/pg_10.html#Q29

You could try to start "owserver -u --altUSB" and then tweek the usb-timings
and see if it solves the problem.
Edit the file /opt/etc/owfs/owserver and add
  OPTIONS="-u -p 3002 --altUSB"

Restart owserver

# kill-owfs
# run-owfs
# echo 3  > /tmp/1wire/bus.0/system/adapter/pulldownslewrate.0	(Valid: 0-7)
# echo 10 > /tmp/1wire/bus.0/system/adapter/writeonelowtime.0	(Valid:
8-15)
# echo 8  > /tmp/1wire/bus.0/system/adapter/datasampleoffset.0	(Valid:
3-10)
(Those are the default values...)

First try if --altUSB flag helped you... if not, try changing the values to
some different...
Especially try change the slewrate to get rid of the signal reflections and
read errors.
The meaning of value 0 to 7 is described below.
 * PARMSET_Slew15Vus   0x0
 * PARMSET_Slew2p20Vus 0x1
 * PARMSET_Slew1p65Vus 0x2
 * PARMSET_Slew1p37Vus 0x3 (default)
(Continue reading)

Christian Magnusson | 4 Jul 2007 00:40

Re: NSLU2 and DS2408


I'm afraid my last update didn't work... slewrate and altUSB settings was
NEVER used in the current version.

I read the manual, and I had to change the 1-wire speed to flexible (not
regular which it always has been until now).

I have made some updates here, but I couldn't checkin the changes to the cvs
right now... don't know why... But I'll
try again tomorrow morning.

/Christian

> -----Original Message-----
> From: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-
> developers-bounces <at> lists.sourceforge.net] On Behalf Of Christian
> Magnusson
> Sent: den 3 juli 2007 15:13
> To: owfs-developers <at> lists.sourceforge.net
> Subject: Re: [Owfs-developers] NSLU2 and DS2408
> 
> 
> It sounds like you have the problem with AAG products and USB-adapters
> like
> many other people have stumbled into.
> http://www.aagelectronica.com/aag/en-us/pg_10.html#Q29
> 
> You could try to start "owserver -u --altUSB" and then tweek the usb-
> timings
> and see if it solves the problem.
(Continue reading)

Matt | 4 Jul 2007 03:45
Picon
Picon

Weathervane using DS2450. Volt.ALL query.


I'm using owserver and python to take reading of a 1wire weathervane.
It uses some reed switches to determine the direction.

Here's some output from owhttpd

type    DS2450
volt.ALL    0.0597665, 4.38921, 4.53233, 1.11635
volt.A    0.770246
volt.B    4.38741
volt.C    4.5278
volt.D    4.65609

I've been using volt.ALL thinking it was a comma separated catenation of 
A, B,C, D,  but the output does show that.

Can anyone help explain what I'm seeing ?

Thanks

Matt

-------------------------------------------------------------------------
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/
Paul Alfille | 4 Jul 2007 03:53
Picon

Re: Weathervane using DS2450. Volt.ALL query.

Separate readings.
What should the values be?

Paul

On 7/3/07, Matt <mjoyce <at> iinet.net.au> wrote:

I'm using owserver and python to take reading of a 1wire weathervane.
It uses some reed switches to determine the direction.

Here's some output from owhttpd

type    DS2450
volt.ALL    0.0597665, 4.38921, 4.53233, 1.11635
volt.A    0.770246
volt.B    4.38741
volt.C    4.5278
volt.D    4.65609

I've been using volt.ALL thinking it was a comma separated catenation of
A, B,C, D,  but the output does show that.

Can anyone help explain what I'm seeing ?

Thanks

Matt

-------------------------------------------------------------------------
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 | 4 Jul 2007 06:00
Picon
Picon

Re: Weathervane using DS2450. Volt.ALL query.

Well, for the example given I expected
volt.All    0.770246, 4.38741, 4.5278, 4.65609

But it's not, and don't know if that's because there's a problem with 
volt.All, or I've misunderstood what volt.ALL is.

Paul Alfille wrote:
> Separate readings.
> What should the values be?
>
> Paul
>
> On 7/3/07, *Matt* <mjoyce <at> iinet.net.au <mailto:mjoyce <at> iinet.net.au>> 
> wrote:
>
>
>     I'm using owserver and python to take reading of a 1wire weathervane.
>     It uses some reed switches to determine the direction.
>
>     Here's some output from owhttpd
>
>     type    DS2450
>     volt.ALL    0.0597665, 4.38921, 4.53233, 1.11635
>     volt.A    0.770246
>     volt.B    4.38741
>     volt.C    4.5278
>     volt.D    4.65609
>
>     I've been using volt.ALL thinking it was a comma separated
>     catenation of
>     A, B,C, D,  but the output does show that.
>
>     Can anyone help explain what I'm seeing ?
>
>     Thanks
>
>     Matt
>
>     -------------------------------------------------------------------------
>
>     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/
Jan Kandziora | 4 Jul 2007 10:38
Picon
Picon

Re: Weathervane using DS2450. Volt.ALL query.

Am Mittwoch, 4. Juli 2007 03:45 schrieb Matt:
> I'm using owserver and python to take reading of a 1wire weathervane.
> It uses some reed switches to determine the direction.
>
> Here's some output from owhttpd
>
> type    DS2450
> volt.ALL    0.0597665, 4.38921, 4.53233, 1.11635
> volt.A    0.770246
> volt.B    4.38741
> volt.C    4.5278
> volt.D    4.65609
>
> I've been using volt.ALL thinking it was a comma separated catenation of
> A, B,C, D,  but the output does show that.
>
> Can anyone help explain what I'm seeing ?
>
Reading a volt.* node triggers a separate reading. The input voltages may have 
changed between the readings.

Kind regards

	Jan
--

-- 
There's light at the other end of the the Windows.

-------------------------------------------------------------------------
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/
giuliano | 4 Jul 2007 11:49
Picon

Re: NSLU2 and DS2408

Christian Magnusson <mag <at> mag.cx> writes:

> 
> 
> I'm afraid my last update didn't work... slewrate and altUSB settings was
> NEVER used in the current version.
> 
> I read the manual, and I had to change the 1-wire speed to flexible (not
> regular which it always has been until now).
> 
> I have made some updates here, but I couldn't checkin the changes to the cvs
> right now... don't know why... But I'll
> try again tomorrow morning.
> 
> /Christian
> 
>
cut
.
.
cut

Ok Christian,
 anyway, this is  the output of 
# grep -v " 0" /tmp/1wire/bus.0/statistics/errors/*

/tmp/1wire/bus.0/statistics/errors/CRC16_errors:         408
/tmp/1wire/bus.0/statistics/errors/CRC16_tries:         408
/tmp/1wire/bus.0/statistics/errors/CRC8_tries:           5

seems to be a problem with the crc , i wish to remember you that the same
hardware (even the cables) works without problems in a desktop with ubuntu.
Thanks for your help
Giuliano

-------------------------------------------------------------------------
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 | 4 Jul 2007 15:15

Re: NSLU2 and DS2408 (flexible speed is now default)


I have checked in the changes to the cvs, and rebuilt the nslu2 packages.
The shell-server at sourceforge is down right now, so I couldn't upload the
new packages.

You can download the packages from my temporary repository if you want at:
http://home.mag.cx/nslu2/packages/

owfs_2.6p5-15_armeb.ipk
owlib_2.6p5-15_armeb.ipk

This new version defaults into flexible speed, which makes it possible to
set the slewrate to a lower value than 15V/us.
This should lower the risk to get signal-distortion in the cables,
especially when it's a bigger 1-wire network.

echo 0 > /tmp/1wire/bus.0/system/adapter/overdrive.0   for regular speed
(always 15V/us)
echo 1 > /tmp/1wire/bus.0/system/adapter/overdrive.0   for flexible speed,
slewrate tunable.
echo 2 > /tmp/1wire/bus.0/system/adapter/overdrive.0   for overdrive speed
(always 15V/us)

Can you try this new version and tell me if your crc-errors disappears?

/Christian

> -----Original Message-----
> From: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-
> developers-bounces <at> lists.sourceforge.net] On Behalf Of giuliano
> Sent: den 4 juli 2007 11:49
> To: owfs-developers <at> lists.sourceforge.net
> Subject: Re: [Owfs-developers] NSLU2 and DS2408
> 
> Christian Magnusson <mag <at> mag.cx> writes:
> 
> >
> >
> > I'm afraid my last update didn't work... slewrate and altUSB settings
> was
> > NEVER used in the current version.
> >
> > I read the manual, and I had to change the 1-wire speed to flexible
> (not
> > regular which it always has been until now).
> >
> > I have made some updates here, but I couldn't checkin the changes to
> the cvs
> > right now... don't know why... But I'll
> > try again tomorrow morning.
> >
> > /Christian
> >
> >
> cut
> .
> .
> cut
> 
> 
> Ok Christian,
>  anyway, this is  the output of
> # grep -v " 0" /tmp/1wire/bus.0/statistics/errors/*
> 
> 
> /tmp/1wire/bus.0/statistics/errors/CRC16_errors:         408
> /tmp/1wire/bus.0/statistics/errors/CRC16_tries:         408
> /tmp/1wire/bus.0/statistics/errors/CRC8_tries:           5
> 
> seems to be a problem with the crc , i wish to remember you that the
> same
> hardware (even the cables) works without problems in a desktop with
> ubuntu.
> Thanks for your help
> Giuliano
> 
> 
> 
> 
> -----------------------------------------------------------------------
> --
> 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/
Giuliano | 4 Jul 2007 20:25
Picon

Re: NSLU2 and DS2408 (flexible speed is now default)

Christian Magnusson <mag <at> mag.cx> writes:

> 
> 
> I have checked in the changes to the cvs, and rebuilt the nslu2 packages.
> The shell-server at sourceforge is down right now, so I couldn't upload the
> new packages.
> 
> You can download the packages from my temporary repository if you want at:
> http://home.mag.cx/nslu2/packages/
> 

> Can you try this new version and tell me if your crc-errors disappears?
> 
> /Christian
> 

Christian,
i will test the new verson this evening.
Giuliano

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