![]() |
Re: Can I branch the CAN to go to two separate places?
Quote:
The so-called "normal" rules are really a number of simplifications and assumptions that apply at DC that don't apply when there is change in the signal. Even the complex impedance is a simplification that applies to lumped element models. Fundamentally, both of these are case specific subsets/simplifications of Maxwell's Equations, which are the set of laws that govern electromagnetism at non-relativistic conditions. I say this because I think it further illustrates the bad thinking I highlighted earlier: one must acknowledge the assumptions that are used (like assuming conductors are ideal) before applying a concept. It's one thing to use a suitable simplification because a set of conditions are met. I don't think any engineering would happen if we needed to do vector calculus when determining a load instead of using V=IR. But, as a good engineer, you need to know when you can simplify the model and when you cannot. As an aside, @ratdude: even Kirchhoff's Laws don't always apply, particularly if a changing magnetic flux is present. |
Re: Can I branch the CAN to go to two separate places?
Quote:
|
Re: Can I branch the CAN to go to two separate places?
Quote:
What do you mean by "slow the bus down"? Do you mean a slower data-rate or do you mean a slower edge-rate? |
Re: Can I branch the CAN to go to two separate places?
Quote:
Quote:
Quote:
Otherwise, obviously I agree. |
Re: Can I branch the CAN to go to two separate places?
Quote:
Quote:
|
Re: Can I branch the CAN to go to two separate places?
Quote:
Since CAN signals are NRZ digital (with the 1&0 voltages dependent on the PHY layer design) they represent a typical digital square wave of odd-integer harmonics with differential signal. The issue, and the TDR neatly demonstrates this concept, is that an analysis over time (not at any given instant) can produce reflections when the termination or legs (even the legs of the circuit inside the devices) get too long. So it's not merely the real component of the terminator resistance at work. It's the capacitance, inductance and impedance of the circuit as a whole. (Active AC components tend to introduce mathematical imaginary or polar numbers into circuit analysis so when I say real resistance I mean DC resistance.) Long story short - I don't think anyone in the last few posts disagrees that students shouldn't follow the guidelines. No one wants to have intermittent phantom problems that only happen when a certain pattern of traffic is sent over that CAN bus. I don't think I've ever seen a FRC team test their CAN bus with a BERD/BERT even though the speed is pretty high on that circuit (a T1 digital telephone circuit is basically 1.544Mbps and these are usually tested with something like a T-BERD). There's limited rational reason in the last few years of robots that the CAN bus configuration as recommended can't be achieved. Even if you somehow put a Talon 14 feet up an end-effector you could avoid doubling back with the CAN buss wire (which given you'd be running the power up there seems sort of strange) by simply ending the buss up there. There are some good examples of why a star configuration has advantages if you suspect your devices might fail to be connected. However, like in computer networking, how far does one want to go to get a star network without the circuit implications? Active CAN hubs? How about a CAN switch? (NOTE: I am making no suggesting the 2 links I provided are FRC legal or even recommended, just pointing out that such devices exist with evidence.) |
Re: Can I branch the CAN to go to two separate places?
Quote:
Related notes, from discussions with CTRE and beta testing the CAN BUS is fixed at 1Mbps (raw rate, not payload) and will not auto negotiate down. I don't think this has changed since then. Related note if I'm understanding the CAN spec correctly, if a star configuration is used, the termination resistor values need to change so the effective resistance is still ~100 ohms. This would be interesting in conjunction with the fixed values inside the roboRIO & PDP. |
Re: Can I branch the CAN to go to two separate places?
Quote:
Most of the CAN transceiver chips, like the ones I am using at work, are rated by their manufacturers for operation up to a maximum data-rate of 1 Mbps but that does not mean the system they are installed in are running at that data-rate. Data-rate is a measure (bits per second) of the instantaneous rate at which the data is transmitted over the bus, when there is data. One can also measure the average data-rate taking into account the time when the bus is inactive (unused) and any error correction made necessary due to noise or other problems (resending of packets). Edge-rate is a measure (volts per microsecond) of how fast the high-to-low and low-to-high state transitions take place. It is the high frequency energy contained in fast transitions that causes reflections. It is possible to have a CAN bus system with a low data-rate (say 1 bit per second) that has significant reflections because there are impedance mismatches AND the edge-rate is very high (the parts I am using have a spec of 35 nsec. minimum). Once a CAN Bus system is assembled, the line lengths, actual line characteristic impedances, actual termination resistance values, impedance mismatches and actual edge-rates are what determine what the peak voltage and the duration of the reflections will be. The characteristics of the reflections will generally remain constant unless the system is changed in some way. The CAN Bus receivers are connected to a circuit (usually incorporated in the microprocessor) that roughly synchronizes with the bit edges. The state of each bit is sampled in the middle of the bit period, often multiple times. As long as the reflections after a bit transition has died down by the middle of the bit period, the detected state of the bit will be accurate. This technique was developed a long time ago to make it easier for communication systems like CAN Bus to minimize the effects of reflections in the system. Many of the CAN transceiver chips can be set to produce lower edge-rates, often using an external resistor. This allows the system/circuit designer to reduce the energy in the reflections (and hence their peak voltage and duration) in the system based on his/her knowledge of the length of the transmission lines (bus length), the amount of impedance mismatch expected and the maximum data-rate required. The long and the short of it is that the CAN Bus standards were set up with the ability to tolerate some amount of reflections since the people developing the standards understood that the world is not perfect and that the systems will not be manufactured and installed perfectly. Therefore, while it is best to avoid using the star configuration since it is non-ideal, it is not "certain death" to use a star configuration or to add a branch as long as one is taking some simple precautions. Because of the inherent robustness, CAN Bus systems have found many applications outside of the original intended use in cars. |
Re: Can I branch the CAN to go to two separate places?
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Re: Can I branch the CAN to go to two separate places?
Quote:
Quote:
Quote:
Quote:
For an example, consider a branch on a CAN Bus that is 10 ft long to reach a Talon SRX that is mounted on some arm on the robot using the same wire as the rest of the system. With a 1 Mbps data-rate, the bit time is 1000 nsec. With a rule of thumb value for the propagation time for a pulse down the transmission line of 2 nsec/ft, a 10 ft long branch would cause a reflection that returns in 40 nsec. after the bit transition that caused it. Assuming that the proper termination resistances at the RoboRio and the PDP are in place, it is reasonable to expect that the amplitude of the reflections would have diminished to become insignificant by the middle of the bit time, 500 nsec. after the bit transition. Based on the calculation shown above, I would determine that the risk of using the 10 ft long branch is minimal. Since each person/team is willing to accept different levels of risk, I can understand if you choose not to use such a branch. |
Re: Can I branch the CAN to go to two separate places?
Quote:
|
Re: Can I branch the CAN to go to two separate places?
As I am a CSA: I usually make my recommendations and explain that the default recommended configuration includes ample consideration of system traits, that a star configuration adds risk.
If a team proceeds, has issues, and refuses to change course there is nothing I can do than to keep suggesting that using the branches/star puts additional potential for issues into that system. Sure if all the connections are great the reflection shouldn't be an issue, but then again if those CAN bus wires are moving around... With the telephone style Jaguar CAN/serial connectors and a Jaguar say 15 feet away on an end-effector are you really sure the connector will not move at all so you can predict the characteristic of that network? Maybe on a bench test this would be okay but what about when that extended end-effector gets smacked by another robot? |
Re: Can I branch the CAN to go to two separate places?
Quote:
Quote:
I may have overlooked them but I don't recall seeing strict limits on the wire size and the twists per foot for the CAN Bus wires to make the characteristic impedance of the wiring more uniform in any documentation from NI, CTRE or any other FRC related sources. I also don't recall seeing requirements for shielding of the CAN Bus wires. There is no requirement that the termination resistors are high accuracy types. Those are the sorts of things one would have to do to make the CAN Bus characteristics more stable but doing those things probably takes one past the point of diminishing returns and greater/unnecessary cost/effort. With regard to risk management, please keep in mind that the size of the CAN Bus network in an FRC robot is a small fraction of the maximum size intended in the standard. Digital communication systems like the CAN Bus are developed with significant noise margins to guarantee successful implementations by relatively unskilled installers. That is where the restrictions such as the maximum length of the bus come from. As long as one is only using a fraction of the noise margin that has been built into the technology, one should be pretty certain of success. Looking at the big picture, by following some fairly simple recommendations, the risk of the CAN Bus being the cause of a failure on the field is significantly less than other sources of risk such as choosing the wrong sort of drive train or scoring mechanism. |
Re: Can I branch the CAN to go to two separate places?
Quote:
I am not being overly critical of the Jaguar, but FRC11 finally decided to stop fielding them and they now are in a box in my one shop as a result. They were too complex to debug in the 6 week season, changed manufacturer too many times to get fixes and we had some design issues that the Jaguars took heat for. There were some teams that stood out as Jaguar success stories and credit goes where it was well deserved, but it was not the best investment of FRC11 time and resources. I look at branches and star in a similar way. It would seem to be an interesting rabbit hole. The recommended design does work so why invest in the alternative? |
Re: Can I branch the CAN to go to two separate places?
Quote:
|
| All times are GMT -5. The time now is 09:49. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi