Go to Post I would suggest spending a few more hours digesting the manual before you finalize your designs. You seem to have missed a few key rules. - GaryVoshol [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
  #1   Spotlight this post!  
Unread 31-01-2014, 08:10
nuttle nuttle is offline
Registered User
AKA: Allen Nuttle
FRC #4080
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: United States
Posts: 104
nuttle has much to be proud ofnuttle has much to be proud ofnuttle has much to be proud ofnuttle has much to be proud ofnuttle has much to be proud ofnuttle has much to be proud ofnuttle has much to be proud ofnuttle has much to be proud of
Re: CAN Jaguar: could longer CAN cables cause problems?

If you made your own serial adapter (it sounds as though this is what you are using), be sure you included a termination resistor in it...
  #2   Spotlight this post!  
Unread 31-01-2014, 08:56
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,792
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?

About 90% of all CAN issues I have seen are traceable to the termination loads. Remember that the wiring is a transmission line just like coax to an antenna. Without the correct loading, there are a lot of reflections of signal along the line. The CAN bus requires a termination at both ends of the line so if you made your own RS232 interface, this requires a resistor as well. The termination resistor is 100 ohms. Using something other than 100 ohms is almost as bad as no termination. The flat cable that the phone company uses in lengths of 20 feet or less, emulate a twisted pair transmission line at 1MHz just fine. Yes, it is not hard to make your own RJ11 plugs but you can screw it up too. Just be careful and follow the instructions. The Jaguar Getting Started Guide on the FIRST website or IFI site has some great instructions in Chapter 6.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.

Last edited by Al Skierkiewicz : 31-01-2014 at 09:01.
  #3   Spotlight this post!  
Unread 31-01-2014, 16:17
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?

Our RS232 converter wire does have a resistor on it, but the resistor is on the CAN plug's end instead of the serial end. Does anyone think that could cause some signal reflection between the resistor and the serial connector? Also - in the case of the Jaguars - could a longer cable length cause more signal reflection? Do the Jaguars increase the baud rate to accommodate for the increased length, or is it constant? Cause I know that increased baud rate could cause more signal reflection. Is there a way we could lower the baud rate via BDC-COMM? We are planning on make a better RS232 cord in the future.

We should have an oscilloscope and CAN tap available to us on Saturday, so I will try to get a scope trace uploaded if further investigation is needed afterwards. I think trying the shorter cables is a good plan as well as checking the plugs. I think we still have the Jaguar board from our older robot mostly assembled, so that's another thing we should try using. Then we could swap out parts to diagnose the bad components. We have used the resistors on the terminator and RS232 plug for many years, but I suppose we should check those to see if some of the wiring has moved in there, causing a short.

Honestly I'm a little troubled by the fact that we could only talk to #3 and #5 with BDC-COMM, #2 (and #4 too I think) wouldn't even respond to BDC. Yet I was able to get as far as accessing #2 from the cRIO JagTest program I made... Further attempts later on might yield different results. Perhaps the NET ports just need to be cleaned somehow? Maybe there's dust getting in there causing problems? This seems like the CAN network is being severed or isn't being completely connected, considering the "sometimes it works, sometimes it doesn't" nature of this problem.

I hope I can post back on Saturday night with useful information and even a solution. As recommended, I will make an emphasis on testing the resistors on both ends.
__________________
"Mecanum drivetrains, like every other, have advantages and disadvantages, but some of the disadvantages being discussed here are overstated and/or misinformation." -buchanan
  #4   Spotlight this post!  
Unread 31-01-2014, 16:57
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,792
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,
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.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #5   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.
  #6   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
  #7   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
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 03:53.

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