Go to Post I can't wait till FIRST starts giving anti-gravity kits inside the kit of parts. - Rob Colatutto [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 21-01-2011, 20:03
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 453
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
Re: Consistent CANTimeoutException via CAN-serial interface

Quote:
Originally Posted by MattG_3165 View Post
OK, looks like it was a signal/noise issue - we are using 6-conductor flat cable for our serial link. Your comment about the 115200bps connection got us thinking about noise, so we shortened our serial cable from six feet down to 2 feet, and now we have our first successful serial connection from the cRIO to the Jag.

Maybe we'll switch our cabling to twisted pair in the future.

Thanks!
Twisted pair is not necessary for CAN even a 1Mbps. You should not have any problem using 6' of cable. We have tested using 30' of cable without any issue. the CAN spec states up to 25 meters of cable may be used at 1mbps. We even removed the termination resistor at the far end of the bus without any CAN errors. In fact when the 2CANS are tested prior to shipping only one termination resistor is used on a bus of 12 2CANs. All can traffic is logged during the test and if ANY CAN errors are detected the unit fails.

I think your problem is probably elsewhere. Check the quality of connection of your termination resistors and cable connectors. If you have access to a CAN tool use it to determine if CAN errors are occurring. If you do not have a CAN tool you may use the 2CAN web dash to determine if there are any errors.
__________________
Mike Copioli
CTRE Hardware Engineer
http://www.ctr-electronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions
Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2011, 20:06
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 453
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
Re: Consistent CANTimeoutException via CAN-serial interface

Also you may have CAN id conflict. Have you verified the individual ID's are in fact discrete by pressing the user button on each Jag?
__________________
Mike Copioli
CTRE Hardware Engineer
http://www.ctr-electronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions
Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2011, 20:36
MattG_3165 MattG_3165 is offline
Registered User
FRC #3165 (Newbots)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Oregon
Posts: 16
MattG_3165 is an unknown quantity at this point
Re: Consistent CANTimeoutException via CAN-serial interface

@Mike: After 48 hours of consistent connection failures between the cRIO and the Jaguar, we've now gone the last two hours without a timeout since shortening the cable. My concern about noise is not on the CAN side, but on the serial connection from the cRIO to the Jaguar. We are running on flat wire, and we put the CAN terminator in the DB9 on the cRIO side of the connection. Running the two protocols on parallel wire pairs within the same cable may have caused crosstalk or noise problems on the serial, especially since the serial connection is at such a high bitrate.

@Joe: I really like your suggestion of moving the CAN terminating resistor over to the RJ-12 connector in order to isolate the serial line, or I may even remove the resistor entirely if it turns out that it's not really necessary (per Mike).
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2011, 23:32
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 453
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
Re: Consistent CANTimeoutException via CAN-serial interface

Quote:
Originally Posted by MattG_3165 View Post
@Mike: After 48 hours of consistent connection failures between the cRIO and the Jaguar, we've now gone the last two hours without a timeout since shortening the cable. My concern about noise is not on the CAN side, but on the serial connection from the cRIO to the Jaguar. We are running on flat wire, and we put the CAN terminator in the DB9 on the cRIO side of the connection. Running the two protocols on parallel wire pairs within the same cable may have caused crosstalk or noise problems on the serial, especially since the serial connection is at such a high bitrate.

Ahh, I misunderstood your statement about the cable length.


Quote:
Originally Posted by MattG_3165 View Post
@
@Joe: I really like your suggestion of moving the CAN terminating resistor over to the RJ-12 connector in order to isolate the serial line, or I may even remove the resistor entirely if it turns out that it's not really necessary (per Mike).
I was not suggesting that you remove one of the resistors, just pointing out that it can work in most cases with only one resistor. We recommend and use both resistors in practice.
__________________
Mike Copioli
CTRE Hardware Engineer
http://www.ctr-electronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions
Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
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 15:29.

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