On Dec 23, 2007 4:50 PM, decibels.drop <[EMAIL PROTECTED]> wrote:
> I've been trying to get Owfs to start at boot, but lot of times it just
> doesn't see the
> hub and get this instead:
> # ls /mnt/owire
> bus.0 settings statistics structure system uncached
>
Clearly owfs is working, it's owserver that doesn't always pick up the
1-wire hub.
>
> Just to test it and show what it should look like I stopped it. It took 4
> stop/starts
> before got this:
> decibelshelp decibels # ls /mnt/owire
> 1F.66BD04000000 1F.67BD04000000 bus.0 settings statistics structure
> system uncached
>
If you start owserver as:
/usr/bin/owserver -F -d /dev/ttyS1 -p 127.0.0.1:3001 --foreground
--error_level=9 <http://127.0.0.1:3001/>
you should see the actual problem with the serial port
>
> Currently I am using Gentoo AMD64, fuse-2.7.0, owfs-2.7_p0-r2
>
Hate to suggest it, but owfs 2.7p2 has several fixes for the DS2409 hub (see
http://owfs.org/statcvs/2007-12.html)
can you upgrade?
> Hardware: Hobby-Board 6-channel master hub (one channel is bad that
> is why only two of the hub switches show up.)
>
> Not sure what debug info you would want so waiting for input on that. I
> even
> adding a check in the init script to look for one of the files and if not
> stop
> and start owfs again, but with it sometimes taking more than 2 times to
> make
> it work right I would have to have a loop in there. There has to be a
> better
> way or I am missing something.
>
> Tried added a sleep between starting owserver and owfs, but that didn't
> seem to help, thought it did at first, but that wasn't true. The basic
> part of
> the script commands to start up are:
> /usr/bin/owserver -F -d /dev/ttyS1 -p 127.0.0.1:3001
> /usr/bin/owfs -F -s 127.0.0.1:3001 --allow_other -m /mnt/owire
>
If interested, you can see the actual traffic with:
/usr/bin/owserver -F -d /dev/ttyS1 -p 127.0.0.1:3001
owtap -s 120.0.0.1:3001 -p 127.0.0.1:3002
/usr/bin/owfs -F -s 127.0.0.1:3002 <http://127.0.0.1:3001/> --allow_other
-m /mnt/owire
>
> Any help appreciated. I am wanting to add control for my hvac, but if
> don't get a reliable startup that isn't going to work.
>
We'll get it working. Don't dispair. In fact, we can use your setup as a
test system to make sure the start-up is robust.
Paul Alfille
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers