Go to Post Without programmers there would only be a robotic beauty contest. - mallot1243 [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-09-2016, 14:21
Wasabi Fan Wasabi Fan is offline
Registered User
FRC #0488
 
Join Date: Dec 2015
Location: Washington
Posts: 15
Wasabi Fan is an unknown quantity at this point
Can I branch the CAN to go to two separate places?

So far, we've always been wiring CAN devices in series so that one pair of CAN wires on a device feeds directly into a pair on the next device, and all devices are in series. What would happen if I were to branch the CAN so that the output wires on a device split and I sent the two resultant pairs to different devices? I've read technical documentation on the CAN so I have some ideas, but I'd like to get an opinion from someone who knows about this in detail before I draw a (potentially incorrect) conclusion.
Reply With Quote
  #2   Spotlight this post!  
Unread 24-09-2016, 14:31
teslalab2's Avatar
teslalab2 teslalab2 is offline
RogueBotix LLC
VRC #8091
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Austin MN
Posts: 109
teslalab2 will become famous soon enoughteslalab2 will become famous soon enough
Re: Can I branch the CAN to go to two separate places?

If you get it Phased correctly it should work. Do you have the access to just try it? I am curios to find out.
__________________
I need a jaguar development board for reprogramming a jaguars bootloader. if you have one that you want to sell, pm me. thanks

Run you CanJaguars on arduino with ArduRIO, you can also easily control Talons, Victors,Jaguars and Sparks on PWM. https://sourceforge.net/projects/ardurio/
Reply With Quote
  #3   Spotlight this post!  
Unread 24-09-2016, 14:40
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is offline
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 2,551
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: Can I branch the CAN to go to two separate places?

It's not recommended but I've seen teams do it and not have any issues. It's probably one of those things where it may work, but it may also cause problems. If you start seeing anything strange like devices not responding it would be a good place to start troubleshooting.

The CAN network seems pretty resilient, I've seen teams run with out any termination in the line. We've used a variety of interconnects between nodes without any issues, etc.
__________________

Team 647 | Cyber Wolf Corps | Alumni | 2003-2006 | Shoemaker HS
Team 2587 | DiscoBots | Mentor | 2008-2011 | Rice University / Houston Food Bank
Team 3847 | Spectrum | Coach | 2012-20... | St Agnes Academy
LRI | Alamo Regional | 2014-20...
"Competition has been shown to be useful up to a certain point and no further, but cooperation, which is the thing we must strive for today, begins where competition leaves off." - Franklin D. Roosevelt
Reply With Quote
  #4   Spotlight this post!  
Unread 24-09-2016, 14:40
Wasabi Fan Wasabi Fan is offline
Registered User
FRC #0488
 
Join Date: Dec 2015
Location: Washington
Posts: 15
Wasabi Fan is an unknown quantity at this point
Re: Can I branch the CAN to go to two separate places?

Yes, we're planning to try it and see how it goes. My main concerns are that it is either not legal (and by extension we would fail inspection) or not functional (the protocol depends on it being sequential and would not function correctly without it). Am I correct that I would theoretically need to add a 120-ohm termination resistor to whichever end doesn't ultimately end up in the PDP? And what do you mean by "phased correctly"?
Reply With Quote
  #5   Spotlight this post!  
Unread 24-09-2016, 15:14
dirtbikerxz's Avatar
dirtbikerxz dirtbikerxz is online now
Captain | Driver | CAD | Junior
AKA: Rohit Gondi
FRC #3991 (KnightVision)
Team Role: Driver
 
Join Date: Nov 2014
Rookie Year: 2015
Location: Baton Rouge, LA
Posts: 454
dirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud of
Re: Can I branch the CAN to go to two separate places?

My advice would just be to not do that. I get that you might have one talon on one end of your bot, and another talon on the other end. But can wire is so thin anyway, just run a really long strip. No point in introducing points of failure into an already relatively "fragile" system.
__________________

Team 3991: Driver since freshman (2015-), Captain since sophomore (2016-), CADer
"The human condition is not perfect. We are not perfect specimens, any of us. We're not robots." - Michael Ovitz
My posts may or may not reflect the views of my team, they are my opinions, and mine alone.
Reply With Quote
  #6   Spotlight this post!  
Unread 24-09-2016, 15:34
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Can I branch the CAN to go to two separate places?

When you split a terminated bus like this you create the probability of reflections. If you look up a tool called TDR:
https://en.wikipedia.org/wiki/Time-domain_reflectometer

It is not recommended to do this.
Certain patterns of communication traffic might become garbled.
Resulting in intermittent errors you can't see a cause for.

Leaving an end unterminated is actually worse, as well would be using the wrong value terminators.

Last edited by techhelpbb : 24-09-2016 at 15:40.
Reply With Quote
  #7   Spotlight this post!  
Unread 24-09-2016, 17:42
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Can I branch the CAN to go to two separate places?

Quote:
Originally Posted by dirtbikerxz View Post
just run a really long strip. No point in introducing points of failure into an already relatively "fragile" system.
From both a CSA and a head electrical's perspective these seem like two conflicting points. I've seen a great deal of wire cut because of things like drilling, nuts/bolts, zip ties, or just normal wear and tear (robot on robot action). Resilience does not favor one or the other in an "all encompassing" scenario.
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
Reply With Quote
  #8   Spotlight this post!  
Unread 24-09-2016, 19:32
jnicho15's Avatar
jnicho15 jnicho15 is offline
Registered User
AKA: Dan
FRC #0548 (Robostangs)
Team Role: Electrical
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Northville, Michigan, USA
Posts: 120
jnicho15 is just really nicejnicho15 is just really nicejnicho15 is just really nicejnicho15 is just really nice
Re: Can I branch the CAN to go to two separate places?

Early in the season, we tried using a central distribution panel for our SRXs in order to decrease the chance of cascading failures. Although this should work since CAN is wired in parallel, we had many problems especially since we were using "PWM" connectors to each one. We then switched to a soldered chain and had fewer problems.
__________________
2014: MIHOW DCA, Finalist


2015: MISOU Finalist; MILIV DCA, Winner; MIBED Winner; MICMP Winner, Engineering Excellence


2016: MISOU KPCB Entrepreneurship Award; MILIV DCA; MICMP 16th Alliance- 8-F winner
Reply With Quote
  #9   Spotlight this post!  
Unread 24-09-2016, 21:37
ratdude747's Avatar
ratdude747 ratdude747 is offline
Official Scorekeeper
AKA: Larry Bolan
no team
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Madison, IN
Posts: 1,064
ratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond repute
Re: Can I branch the CAN to go to two separate places?

Quote:
Originally Posted by techhelpbb View Post
When you split a terminated bus like this you create the probability of reflections. If you look up a tool called TDR:
https://en.wikipedia.org/wiki/Time-domain_reflectometer

It is not recommended to do this.
Certain patterns of communication traffic might become garbled.
Resulting in intermittent errors you can't see a cause for.

Leaving an end unterminated is actually worse, as well would be using the wrong value terminators.
QFT. Any time termination matters (such as CAN), you've entered the wonderful world of RF where reflections and the like are real. In RF you get to throw away everything you know about electricity and circuits, aside from Kirchoff's laws. Ohm's law? Kiss it goodbye, it doesn't apply any more. Wire spacing and twist rate do matter a ton.

Generally RF rules apply if you're at high frequency (such as CAN, ethernet, or Wifi/Bluetooth) or you're over a massively long distance (such as a 10 mile power transmission line).

TLDR: Don't branch CAN wires, while it seems like it will work in reality it's asking for trouble.
__________________
Dean's List Semi-finalist 2010
1747 Harrison Boiler Robotics 2008-2010, 2783 Engineers of Tomorrow 2011, Event Volunteer 2012-current

DISCLAIMER: Any opinions/comments posted are solely my personal opinion and does not reflect the views/opinions of FIRST, IndianaFIRST, or any other organization.
Reply With Quote
  #10   Spotlight this post!  
Unread 26-09-2016, 12:14
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Can I branch the CAN to go to two separate places?

If the entire collection of CAN devices and wiring is physically small enough, you can get away with just about any topology without it breaking.

My advice: don't tempt fate. Use the system as specified and as designed, with a single "chain" of devices each having their own internal very short tap on the bus. Troubleshooting will be much more straightforward.
Reply With Quote
  #11   Spotlight this post!  
Unread 26-09-2016, 12:19
jee7s jee7s is offline
Texan FIRSTer, ex-frc2789, ex-frc41
AKA: Jeffrey Erickson
FRC #6357
 
Join Date: Nov 2007
Rookie Year: 1997
Location: Dripping Springs, TX
Posts: 315
jee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond repute
Re: Can I branch the CAN to go to two separate places?

Quote:
Originally Posted by jnicho15 View Post
Early in the season, we tried using a central distribution panel for our SRXs in order to decrease the chance of cascading failures. Although this should work since CAN is wired in parallel, we had many problems especially since we were using "PWM" connectors to each one. We then switched to a soldered chain and had fewer problems.
Emphasis above is mine.

For the record, CAN is "wired in parallel" if and only if you regard the conductors as ideal. The real world scenario has imperfections like resistance, inductance, and capacitance, that make for a much more complicated electrical reality than "wired in parallel". Particularly at 1Mb/s, those lumped elements and the aforemnetioned reflection problem mean that the CAN topology is best implemented as a terminated bus with short branches. The PWM connectors are not the issue, and many teams use that style of connector in a canonical implementation of CAN with no issue. Go back to the Jaguar and the CAN bus uses RJ style connectors with no issues if the connectors are properly assembled and inserted. Connectors in CAN are perfectly acceptable, it's the network topology that needs to be respected.

In other words, like Alan and others have said, don't tempt fate. Wire CAN as recommended in the documentation for best results.
__________________

2013 Alamo Regional Woodie Flowers Finalist Award Winner
2012 Texas Robot Roundup Volunteer of the Year
Texas Robot Roundup Planning Committee, 2012-present
FRC 6357 Mentor, 2016-
FRC 2789 Mentor, 2009-2016 -- 2 Golds, 2 Silvers, 8 Regional Elimination Appearances

FRC 41 Mentor 2007-2009
FLL Mentor 2006
FRC 619 Mentor 2002
FRC 41 Student 1998-2000

Last edited by jee7s : 26-09-2016 at 12:22.
Reply With Quote
  #12   Spotlight this post!  
Unread 26-09-2016, 14:11
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Re: Can I branch the CAN to go to two separate places?

The CAN standards allow "star" configurations for low data rates over long distances. For your peace of mind, it is probably best to avoid using the star configuration if it can be avoided. With the (low) quality of the wiring I have seen in many FRC robots, a bad connection is at least as likely to be the real cause of their CAN Bus problems.

It is the high edge-rate (short rise-time and fall-time) of the signal that directly leads to reflections, not the data rate. Of course, as the data rate rises, faster edge-rates are required to maintain signal integrity. Many of the CAN transceiver chips have the ability to reduce the edge-rate to minimize reflections when running at lower data rates. Without looking at CTRE and NI's schematics, it is difficult to know if they are using such a feature.

The length of the various line lengths determines whether a reflection causes interference or not. With the rule-of-thumb signal propagation delay of 2 nsec/foot, your CAN wiring would have to be pretty long (in the order of 100 ft.) for it to have an effect on a 1 Mbps signal, longer than one could reasonably put on an FRC robot.

If one wires the CAN Bus with the PDP "at the end of the chain" then one should always have the terminations. With a star configuration (or multi-star), the PDP should still be the furthest from the RoboRio.


Quote:
Originally Posted by ratdude747 View Post
QFT. Any time termination matters (such as CAN), you've entered the wonderful world of RF where reflections and the like are real. In RF you get to throw away everything you know about electricity and circuits, aside from Kirchoff's laws. Ohm's law? Kiss it goodbye, it doesn't apply any more. Wire spacing and twist rate do matter a ton.

Generally RF rules apply if you're at high frequency (such as CAN, ethernet, or Wifi/Bluetooth) or you're over a massively long distance (such as a 10 mile power transmission line).

TLDR: Don't branch CAN wires, while it seems like it will work in reality it's asking for trouble.
My coworkers and I are puzzled by some your statements.
Reply With Quote
  #13   Spotlight this post!  
Unread 26-09-2016, 16:06
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Can I branch the CAN to go to two separate places?

Do NOT do this! Your goal is to make the robot as robust as possible. One way to make the robot more robust is to wire the power, sensors and control lines per the recommendations of the relevant standards committees or OEMs. Use the correct tools and the correct techniques then test everything over and over again.

Could you get lucky? Sure

Is it worth it? No, a hundred times no

Is it a "professional" thing to do? No buyer would sign off and pay you for something wired incorrectly. You might be thinking "if it works then who cares"? This is where engineering ethics comes in - you are not compliant and you know it. So fix it!

That is my two cents. I've delivered many dozens of high performance systems. And I've been on the receiving end of non-compliant subsystems and made them fix everything (using their own money).
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #14   Spotlight this post!  
Unread 26-09-2016, 16:17
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Can I branch the CAN to go to two separate places?

Quote:
Originally Posted by ratdude747 View Post
QFT. Any time termination matters (such as CAN), you've entered the wonderful world of RF where reflections and the like are real. In RF you get to throw away everything you know about electricity and circuits, aside from Kirchoff's laws. Ohm's law? Kiss it goodbye, it doesn't apply any more. Wire spacing and twist rate do matter a ton.
All the normal rules still apply but there are additional rules (terms in the equations). You are looking at the complex impedance of the load (which did not factor in at low frequencies) rather than simple resistance. The size and shape of the wire and connector pins all matter because they help determine the reactance portion of the impedance (resistance plus reactance). Balancing the impedance of the source and the load become important to reduce mismatches that can cause ringing (reflected waves bouncing around willy-nilly).

So for CANbus the sources have a particular output impedance that performs best when the load has a matching impedance (same resistance and opposite reactance). To keep things simple use wire much like the green/yellow that comes with the Talons. Use connectors with cross sections close to the cross section of the wire. Wire things in series from source to load (like CTE recommends and the CANbus standards dictate). Use a 100-ish ohm resistor for the load (termination). To do otherwise is to ask for troubles that are very difficult to diagnose.
__________________
Fast, cheap or working - pick any two!

Last edited by wireties : 26-09-2016 at 16:20.
Reply With Quote
  #15   Spotlight this post!  
Unread 26-09-2016, 16:26
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Can I branch the CAN to go to two separate places?

Quote:
Originally Posted by philso View Post
The CAN standards allow "star" configurations for low data rates over long distances.
QFT - I should have mentioned this. But on the roboRio the CANbus is running near full-speed. You would have to slow the bus down and all kinds of things might stop working (PCM control loops not closing, not enough bandwidth to query/set Talons etc).
__________________
Fast, cheap or working - pick any two!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi