Yes, directories would be good, but thinking about my original post 
more, what I actually want is the ability to emulate a hub to make sure 
my code is properly walking the entire tree when it is finding all the 
sensors.  In a hub, there are several "root" nodes that have one or 
more sensors hanging off of them.  I want to make sure I'm transiting 
each segment of the hub properly.

j

On Monday 01 November 2010, Paul Alfille elucidated thus:
> You're right, "tester" (and "fake" and "mock") don't emulate the
> DS2409 properties or directories.
>
> In general the "fake" adapters aren't very faithful emulations of the
> real devices.
>
> That said, we've improved the properties in the past based on
> requests (like making the simulated temperatures stay in a
> configurable range). Would simulating the DS2409 directories be
> helpful?
>
> Paul Alfille
>
> On Mon, Nov 1, 2010 at 2:45 AM, Joshua J. Kugler <[email protected]> 
wrote:
> > So, I'd like to construct a unit test that ensures my code walks a
> > tree of sensors (such as might be hanging off of a DS2409.
> >  However, the --tester parameter detailed at
> > http://owfs.org/index.php?page=tester-adapter doesn't show a way to
> > create a tree. In other words, all sensors show up on '/':
> >
> > Simulated-Computed - /
> > DS18S20 - /10.000010EF0000
> >  DS1822 - /22.000022DD0100
> >  DS2781 - /3D.00003DC20200
> >
> > A command line such as this:
> >
> > ./tree.py --tester=10,22,3D -u --tester=01,05,1F,11
> > (That's the example pythontree program from the OWFS source code)
> >
> > Still only gives me:
> >
> > Simulated-Computed - /
> > DS18S20 - /10.000010EF0000
> >  DS1822 - /22.000022DD0100
> >  DS2781 - /3D.00003DC20200
> >
> > Is there a way to specify a tree in a --tester parameter?
> >
> > Also, specifying the DS2409 family (1F) in the --tester list,
> > causes this to happen:
> >
> >  DS2409 - /1F.00001FE00000
> >  DS2409 - /1F.00001FE00000/main/1F.00001FE00000
> >  DS2409 -
> > /1F.00001FE00000/main/1F.00001FE00000/main/1F.00001FE00000
> >
> > DS2409 -
> > /1F.00001FE00000/main/1F.00001FE00000/main/1F.00001FE00000/main/1F.
> >00001FE00000
> >
> > DS2409 -
> > /1F.00001FE00000/main/1F.00001FE00000/main/1F.00001FE00000/main/1F.
> >00001FE00000/main/1F.00001FE00000
> >
> > DS2409 -
> > /1F.00001FE00000/main/1F.00001FE00000/main/1F.00001FE00000/main/1F.
> >00001FE00000/main/1F.00001FE00000/main/1F.00001FE00000
> >
> > And so on...getting longer and longer.  It seems like a bug in the
> > tester code.
> >
> > Insights appreciated!
> >
> > j


-- 
Joshua J. Kugler - Fairbanks, Alaska
Azariah Enterprises - Programming and Website Design
[email protected] - Jabber: [email protected]
PGP Key: http://pgp.mit.edu/  ID 0x73B13B6A

------------------------------------------------------------------------------
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware, 
phishing sites, and compromised hosts - saving your company time, 
money, and embarrassment.   Learn More! 
http://p.sf.net/sfu/hpdev2dev-nov
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to