Hi all, We have a system where there are many iButton-type devices on a single 1-wire bus, and they are continuously connected to and disconnected from the bus. We poll the owfs uncached directory to detect when an iButton is connected.
Now during stress testing we discovered that when a device is removed from the bus, it sometimes happen that other devices (that are still connected) also disappear. Further investigation turned up that the problem is caused by the "1,1" condition on the bus when the search algorithm [1] is used. This condition means "No devices participating in search". However, this is not really true, because we can only get in that situation when there was a device participating but it disappeared during the search. The attached patch solves this by erroring out in the "1,1" condition, instead of considering the search finished. This corresponds to what Maxim's application note [1] describes. If you all agree that this is the best way to approach it, you can apply the patch in follow-up. Regards, Arnout [1] https://www.maximintegrated.com/en/app-notes/index.mvp/id/187 ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers