Wed Sep 05, 2018 10:07 pm
Hi, folks,
I had the same issue with 1-wire bus length, and found the maxim's app notes not too helpful at first.
Firstly, it is vitally important to understand one thing: The "data" line will be held up by the pull-up resistor until one master or one slave will pull it down according to the protocol. So signalling is created by pulling down this line.
If now the line is too "heavy" (app note) that a single slave can pull it all down, or there are collisions due to signal reflections, serial communication must fail.
So let's start thinking the easy way: On a very short wire, this won't ever become a real problem. But, as others here already wrote, even on 3 metres (which is not even considered a "stub" at maxims, in my case I had those "85000"-readings at some 8 mtrs single line) may fail. Now why?
First of all, it has to do with proper cabling. My line was ok when testing, but then went along with other - relatively high frequency - data and even powered ac-powerlines. So shielded cable is one of the first things to cater for if talking about distances.
Then, Farads come into play: Those of you who remember ol' "10BaseT" coax-networking cables will surely remember this "terminating resistor", which was usually 50 ohms. With 1-wire, this is not really necessary any more, but hey, what was that thing good for at all...?
It feathered those signal reflections that occur at "unterminated line terminals", i. e. signal lines that simply end. Full stop. - Here, capacities are being bounced back into the capacitance (wire), disturbing data communication.
Last then is the design question, how to put all this together. Quoting the app note, there are many uncertainties regarding reliability, "like temperature, humidity and a unpredictable diversion in the device timings" [they use other words there, but the idea may be clear; scale is microseconds].
In so far this odd "application note" of maxims is really good: The don't promote any formulas like "if you want this, do that", but they are honest and say "just try". One subscriber here even had a 470ft coil and got it working (with a booster, though), so it is not a bus problem, but one of the proper wiring.
Hope this helps, cheers, Jack.
====
My eyes see "MicroSoft", my brain reads "NanoWeak" - Linux since Kernel 1.0.36
====
My eyes see "MicroSoft", my brain reads "NanoWeak" - Linux since Kernel 1.0.36