Go to Post There is always a way, you just have to find it. - Arefin Bari [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 31-01-2014, 18:29
zbrozek zbrozek is offline
Registered User
None #1700
 
Join Date: Jan 2014
Location: Sunnyvale, CA
Posts: 19
zbrozek will become famous soon enough
Re: CAN Jaguar: could longer CAN cables cause problems?

I read the Jaguar source code last night, mostly just for my own amusement. The CAN baud rate is not dynamic. There's basically no support for handling accumulated errors.

That said, I'm nearly certain you have a wiring problem. An oscilloscope and some diligent cable wiggling while watching the bus will almost certainly reveal your problem. The hard part is when you have multiple problems - de-convolving many problems is really hard.
  #17   Spotlight this post!  
Unread 31-01-2014, 18:45
AutoBotAM AutoBotAM is offline
Registered User
AKA: Christian Reese
FRC #2077 (Laser Robotics (Laserbots))
Team Role: Programmer
 
Join Date: Mar 2012
Rookie Year: 2010
Location: Wisconsin
Posts: 34
AutoBotAM is an unknown quantity at this point
Re: CAN Jaguar: could longer CAN cables cause problems?

Quote:
Originally Posted by Al Skierkiewicz View Post
Auto,
You should remake terminations every year. If you are following the instructions and crimped a plug onto the resistor leads, the connection is not gas tight and likely deteriorated over the year or two since you made it. terminating in the CAN side of the RS232 cable is the recommended practice. If you didn't change the baud rate, I don't think the Jaguars can do that by themselves.
A deteriorating resistor connection sounds like it would cause the issues we've been having. One of our mentors from Rockwell said that putting the resistor on the serial side would possibly prevent signal reflection from occurring. I will mention that it is recommended to do it the other way around, or we will at least save moving it as a last resort. Just out of curiosity, why is there an advantage to terminating at the CAN side vs. terminating at the serial side? Should signal reflection be an issue either way?

About remaking the terminators, do we only need to replace the deteriorated CAN crimp connector? Or do we need to replace the resistor as well? For the RS232 cable, should we need to get a new CAN cable for it?

EDIT:
zbrozek, while using the oscilloscope, is there a way to tell if there's termination failure due to a deteriorated CAN crimp connection? Is there a way to tell how bad the deterioration is? It'd be nice to estimate the lifetimes of our terminators and whether they're "expired".
__________________
"Mecanum drivetrains, like every other, have advantages and disadvantages, but some of the disadvantages being discussed here are overstated and/or misinformation." -buchanan

Last edited by AutoBotAM : 31-01-2014 at 19:05. Reason: Just read zbrozek's last post
  #18   Spotlight this post!  
Unread 31-01-2014, 23:39
Kevin Selavko's Avatar
Kevin Selavko Kevin Selavko is offline
Registered User
AKA: Voltonless
FRC #3260 (SHARP)
Team Role: Electrical
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Beaver PA USA
Posts: 155
Kevin Selavko is on a distinguished road
Re: CAN Jaguar: could longer CAN cables cause problems?

Quote:
Originally Posted by AutoBotAM View Post
EDIT:
zbrozek, while using the oscilloscope, is there a way to tell if there's termination failure due to a deteriorated CAN crimp connection? Is there a way to tell how bad the deterioration is? It'd be nice to estimate the lifetimes of our terminators and whether they're "expired".
Female RJ11 connected to a multimeter?
__________________
Team SHARP
Pittsburgh Regional Champions 2014
Vex Pittsburgh Excellence Award 2014
Vex Pittsburgh Champions 2014
Vex Maryland Champions 2014
Pittsburgh Regional Finalists 2013
Buckeye Regional Finalists 2013
  #19   Spotlight this post!  
Unread 01-02-2014, 03:30
codes02 codes02 is offline
Randolph aka Roxbury aka R_______
AKA: Cody Schafer
no team (Formerly: Team 11, MORT)
 
Join Date: Oct 2007
Rookie Year: 2008
Location: MA, USA
Posts: 57
codes02 is on a distinguished road
Re: CAN Jaguar: could longer CAN cables cause problems?

Quote:
Originally Posted by Joe Ross View Post
That is for the NI CAN modules, which we don't use. Per the Jaguar Datasheet, the total cable length shouldn't exceed 20ft.
No, the link I provided describes the length limitations of standard CAN. that said , I'm not supprised that the jaguars aren't up to spec.
  #20   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,798
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.
  #21   Spotlight this post!  
Unread 01-02-2014, 11:59
AutoBotAM AutoBotAM is offline
Registered User
AKA: Christian Reese
FRC #2077 (Laser Robotics (Laserbots))
Team Role: Programmer
 
Join Date: Mar 2012
Rookie Year: 2010
Location: Wisconsin
Posts: 34
AutoBotAM is an unknown quantity at this point
Re: CAN Jaguar: could longer CAN cables cause problems?

Alright, so our CAN Jaguar setup is up and running now.

Solution: We were using flat CAN cables, we switched them out with twisted-pair CAN cables with much more favorable results. If you are a team having CAN issues similar to this, replace your flat CAN cables with twisted pair cables! They help!

Also, apparently our resistors (or at least the one on the tail end) are actually soldered onto the wire instead of crimped, so they are functioning now. I'd advise other teams to solder their resistors as well, as it could increase the lifetime.

When we make our new RS232 CAN cable, we will probably put the terminator at the serial side, since that's what our mentor recommends to prevent extra signal reflection, and to have resistance all the way through the network.

Thank you all for your help and insight!

EDIT:

Apparently we are also getting intermittent connections in our RS232 cable (so the resistor was probably crimped on that end, or it's just dying of old age). Anyway, we're going to make a couple of new ones, then we should have a good signal!
__________________
"Mecanum drivetrains, like every other, have advantages and disadvantages, but some of the disadvantages being discussed here are overstated and/or misinformation." -buchanan

Last edited by AutoBotAM : 02-02-2014 at 11:54.
Closed Thread


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 14:15.

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