View Single Post
  #15   Spotlight this post!  
Unread 01-02-2014, 07:45
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: CAN Jaguar: could longer CAN cables cause problems?

Auto,
It doesn't matter since the wire is the same (as described in the linked doc for the jaguar) on the RS232 side as the CAN side. It is just a little more convenient when using the cable mod in the document. I would not reuse the resistors. They are so cheap why would you add another issue when you are starting over anyway. The bus is terminated at both ends effectively giving it a distributed 50 ohm impedance. This is low enough that outside noise is usually not a problem and variables in the cable tend to minimize. But think about it in terms of RF transmission line. If one of the terminations goes open (actually anything greater than 200 ohms), the bus now goes to 100 ohms (the other resistor) and the open end becomes an antenna and mismatched load. At that point, noise starts to become a problem, and reflections start to mount. Where the reflections (that is a signal pulse that bounces back from the unterminated end) become a problem as the CAN device doesn't know if the reflection is noise and should be ignored or whether it is a valid pulse and interpret it as such. CAN was developed for harsh environments so a short run on a robot should pose no big issues.
Diagnosing cable should not need a scope. Just remove all but the first device and move the termination to that output port. See if you can communicate with the device and control it. If it works take out the known good cable and add a different one until you have tested all the cable and know they are good. Then add a second device and move the termination and repeat the test. Sooner or later, you are going to find one or more bad cables and one or more bad devices. Using known good parts and substitution gets you to the root of the problem pretty quickly without fancy test equipment. The assumption is "it works for other teams so there must be a bad cable, termination, or device in my robot."
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.

Last edited by Al Skierkiewicz : 01-02-2014 at 07:49.