On 8/12/2011 13:05, Mark Richards wrote:

I *do not *see all the devices which exist beyond the first DS2408 in the root of the mounted owfs directory through my program or an ls /mnt/1-wire. I also only see bus.0. However, when I use the owfs utility owget, I see the two buses.

My physical network looks like this:
USB /dev/ttyUSB0 -> USB TO SERIAL ADAPTER -> [DS2480B] -> [DS2413 (0x3A)] USB /dev/ttyUSB0 -> USB TO SERIAL ADAPTER -> [DS2480B] -> [DS2409 (0x1F)] ->{main} -> {sensors} USB /dev/ttyUSB0 -> USB TO SERIAL ADAPTER -> [DS2480B] -> [DS2409 (0x1F)] ->{aux} -> {sensors}

USB /dev/ttyUSB1 -> USB TO SERIAL ADAPTER -> [DS2480B] -> [DS2413 (0x3A)] USB /dev/ttyUSB1 -> USB TO SERIAL ADAPTER -> [DS2480B] -> [DS2409 (0x1F)] ->{main} -> {sensors} USB /dev/ttyUSB1 -> USB TO SERIAL ADAPTER -> [DS2480B] -> [DS2409 (0x1F)] ->{aux} -> {sensors}


Here's how I load owserver (and owfs):

#/usr/bin/owserver --device=/dev/ttyUSB0 /dev/ttyUSB1 -p 4304 --allow_other #/usr/bin/owfs -slocalhost:4304 --mountpoint=/mnt/1-wire/ --allow_other

When I ls /mnt/1-wire I see:
1F.5A1D02000000 1F.F79002000000 3A.953300000000 3A.F59800000000 bus.0 settings statistics structure system uncached

And in my application:

    OW_init(-s localhost:4304);
    OW_get("/", &get_buffer, &get_length);
    printf("\n%s\n",get_buffer);

3A.953300000000/,1F.F79002000000/,3A.F59800000000/,1F.5A1D02000000/,bus.0/,uncached/,settings/,system/,statistics/,structure/

When I run *owget* at the command line:
    owget -s localhost:4304
    /3A.F59800000000
    /1F.5A1D02000000
    /3A.953300000000
    /1F.F79002000000
    /bus.1
    /bus.0
    /uncached
    /settings
    /system
    /statistics
    /structure


Note to self.

As my owcapi use of OW_init() connects to owserver, it makes sense that all I see is /bus.0. It is for the tcp connection:

    #cat /mnt/1-wire/bus.0/interface/settings/name    ->     tcp

Once I look in /bus.0, I see:
1F.5A1D02000000 3A.953300000000 bus.0 interface statistics system 1F.F79002000000 3A.F59800000000 bus.1 settings structure
    uncached

 cat /mnt/1-wire/bus.0/bus.0/interface/settings/name    -> DS9097U
 cat /mnt/1-wire/bus.0/bus.0/interface/settings/address  -> /dev/ttyUSB0
 cat /mnt/1-wire/bus.0/bus.1/interface/settings/address  -> /dev/ttyUSB1

So perhaps just a matter of discovering how things are laid out.

/m
------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy 
to use, easy to manage, easy to install, easy to extend. 
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to