Am Samstag, 16. Dezember 2006 02:11 schrieb Paul Alfille:
> There are some subtilties with deeper branching. OWFS kee[s trak of the
> last selected path to reduce redundant path selection (you have to turn off
> all sister DS2409s at each level). I'll add a flag that marks the stored
> path as untrustworthy.
>
There seem to be a problem with this flag now. As we have now a "discharge"
and a "clearevent" node in the DS2409 code, I'll just left out setting this
flag in the latter one to demonstrate the following:
janskiste:~ # tclsh
% package require ow ; OW::init /dev/i2c-1 ; OW::get uncached
bus.7/,bus.6/,bus.5/,bus.4/,bus.3/,bus.2/,bus.1/,bus.0/,29.A74101000000/,29.8F4101000000/,1F.141B05000000/,1F.0F1B05000000/,alarm/
% OW::get alarm
29.A74101000000/,29.8F4101000000/
--- Connect keys in both keylocks ---
% OW::get alarm
29.A74101000000/,29.8F4101000000/,1F.141B05000000/,1F.0F1B05000000/
% OW::put 1F.141B05000000/discharge 1
% OW::get alarm
29.A74101000000/,29.8F4101000000/
%
Huh? Both alarms were cleared?
--- Connect keys in both keylocks again ---
% OW::get alarm
29.A74101000000/,29.8F4101000000/,1F.141B05000000/,1F.0F1B05000000/
% OW::put 1F.141B05000000/clearevent 1
% OW::get alarm
29.A74101000000/,29.8F4101000000/,1F.0F1B05000000/
%
Ahh, that's better.
It seems to me the entire state of the DS2409 in the level directly *below*
the discharged line is invalidated, too.
Kind regards
Jan
--
Microsoft should switch to the vacuum cleaner business where people
actually want products that suck.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers