Go to Post Chances are it's an electrical or mechanical problem... - mechanicalbrain [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2010, 13:00
Dale's Avatar
Dale Dale is offline
Head Coach & Mentor
AKA: Dale Yocum
FRC #1540 (Flaming Chickens)
Team Role: Coach
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Portland, OR
Posts: 504
Dale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud of
CAN Bus Layout

A slightly different CAN problem has now emerged. Some of our Jaguars are working and some not. As soon as the CAN daisy chain reaches one of the inoperable Jaguars, all of the rest of the Jaguars downstream from it are invisible.

Are the pins on both of the CAN sockets on the Jaguar wired together in parallel or does the Jaguar process the CAN bus signal in some way and rebroadcast it? Could a bad firmware load or some setting we accidentally made cause this?

A related question would be does it matter, except for RS232, which of the two connectors you plug the CAN cables into? We've been careful to always go into the one with the 10101 on it and out the other but if this is a true bus I suspect it doesn't matter.
__________________
2016 PNW Championship Chairman's; 2016 Winner Oregon City District, 2015 PNW Championship Chairman's; 2015 PNW District Engineering Inspiration; 2015 PNW District Finalist; 2014 PNW Championship Chairman's; 2014 Championship Innovation in Controls; 2013 Chairman's (Oregon); 2013 Finalist (OKC); 2012 Winner (OKC); 2012 Chairman's (OKC); 2012 Woody Flowers (Oregon); 2011 Volunteer of the Year (Oregon); 2011 Finalist & Captain (San Diego); 2011 Innovation in Control (San Diego); 2010 & 2007 Chairman's (Oregon); 2010 Regional Champions (Colorado); 2010 Innovation in Control (Colorado); 2009 & 2008 Engineering Inspiration (Oregon); 2008 Regional Champions (Oregon); 2007 Regional Finalist (Oregon); 2005 Rookie Inspiration (PNW)
  #2   Spotlight this post!  
Unread 02-02-2010, 13:32
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,685
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: CAN Bus Layout

The schematic shows all the pins as parallel. If there's an electrical problem with the jaguar that's holding one of the data lines high or low, then that should affect all/most of the jaguars on the bus, not just the ones "downstream" from the bad jaguar. Perhaps your have a jag with a bad connector on it? You should be able to make a pigtail cable for each port and check for continuity between each pin. There should be continuity between pins 2-5 from one connector to the other.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #3   Spotlight this post!  
Unread 02-02-2010, 13:34
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: CAN Bus Layout

There is no rebroadcasting, the signals just pass right through.

I'm guessing you have a bad cable going from the last operational jaguar to the first invisible jaguar.
  #4   Spotlight this post!  
Unread 02-02-2010, 13:37
Dale's Avatar
Dale Dale is offline
Head Coach & Mentor
AKA: Dale Yocum
FRC #1540 (Flaming Chickens)
Team Role: Coach
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Portland, OR
Posts: 504
Dale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud of
Re: CAN Bus Layout

It's more than one Jaguar that's causing the problem. The only thing I can think of is maybe there's a problem with the terminator we made. We'll check that today. That might explain why the first few Jags in the chain work but further out some work and some don't.

We've swapped cables around from known good ones earlier in the chain. That didn't help.

We're just using standard RJ11 connectors. Is that okay?

Any other ideas if that one doesn't pan out?
__________________
2016 PNW Championship Chairman's; 2016 Winner Oregon City District, 2015 PNW Championship Chairman's; 2015 PNW District Engineering Inspiration; 2015 PNW District Finalist; 2014 PNW Championship Chairman's; 2014 Championship Innovation in Controls; 2013 Chairman's (Oregon); 2013 Finalist (OKC); 2012 Winner (OKC); 2012 Chairman's (OKC); 2012 Woody Flowers (Oregon); 2011 Volunteer of the Year (Oregon); 2011 Finalist & Captain (San Diego); 2011 Innovation in Control (San Diego); 2010 & 2007 Chairman's (Oregon); 2010 Regional Champions (Colorado); 2010 Innovation in Control (Colorado); 2009 & 2008 Engineering Inspiration (Oregon); 2008 Regional Champions (Oregon); 2007 Regional Finalist (Oregon); 2005 Rookie Inspiration (PNW)

Last edited by Dale : 02-02-2010 at 13:40.
  #5   Spotlight this post!  
Unread 02-02-2010, 14:11
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 189
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: CAN Bus Layout

How many Jaguars do you have on your bus?

How long is the total length of your CAN cables?

Check out Table 8-1 "CAN Wiring Parameters" on page 26 of the MDL-BDC24 Getting Started Guide. It states the total length of cable should be 20 ft or less. Start with 20 ft of cable, and cut all your cables from that length.

Also, make sure that your terminator resistors (in the RS232 housing and at the other end of the chain) are both 100 ohms.

And, no, it doesn't matter, except for RS232, which side you plug a CAN-only cable to.

Hope this helps!

-David
  #6   Spotlight this post!  
Unread 02-02-2010, 14:21
Dale's Avatar
Dale Dale is offline
Head Coach & Mentor
AKA: Dale Yocum
FRC #1540 (Flaming Chickens)
Team Role: Coach
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Portland, OR
Posts: 504
Dale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud of
Re: CAN Bus Layout

The total length of our bus is only a few feet at most. We're using the 2CAN so it has an internal 120 ohm resister at one end. The other end is the terminator we haven't really tested.

The total system will have 10 Jaguars though for debugging purposes we've shortened that to five.
__________________
2016 PNW Championship Chairman's; 2016 Winner Oregon City District, 2015 PNW Championship Chairman's; 2015 PNW District Engineering Inspiration; 2015 PNW District Finalist; 2014 PNW Championship Chairman's; 2014 Championship Innovation in Controls; 2013 Chairman's (Oregon); 2013 Finalist (OKC); 2012 Winner (OKC); 2012 Chairman's (OKC); 2012 Woody Flowers (Oregon); 2011 Volunteer of the Year (Oregon); 2011 Finalist & Captain (San Diego); 2011 Innovation in Control (San Diego); 2010 & 2007 Chairman's (Oregon); 2010 Regional Champions (Colorado); 2010 Innovation in Control (Colorado); 2009 & 2008 Engineering Inspiration (Oregon); 2008 Regional Champions (Oregon); 2007 Regional Finalist (Oregon); 2005 Rookie Inspiration (PNW)
  #7   Spotlight this post!  
Unread 02-02-2010, 14:28
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 189
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: CAN Bus Layout

You replied while I was writing this:

"I just noticed the 2CAN documentation states that there needs to be 120 ohm terminators on the network. This is a standard value for CAN.

However, in the Jaguar documentation, 100 ohm terminators are specified because they help reduce errors on the bus when the node count gets higher."

So I'm pretty sure it will work if you remove the jumper on the 2CAN, and add your own 100 ohm resistor to each end.

Keep me updated,
David
  #8   Spotlight this post!  
Unread 02-02-2010, 15:25
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 Bus Layout

Quote:
Originally Posted by Dale View Post
The only thing I can think of is maybe there's a problem with the terminator we made. We'll check that today. That might explain why the first few Jags in the chain work but further out some work and some don't.
Here's a bit of lore that has helped me track down similar problems. Termination issues tend to cause trouble at the other end of the bus from where the fault is. If the "far" devices are where the flakiness is showing up, focus on the "near" terminator.

In this case, the built-in 2CAN resistor might not be the right value for your heavily loaded bus.
  #9   Spotlight this post!  
Unread 02-02-2010, 19:31
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 523
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: CAN Bus Layout

We have ran 6 jaguars with a 2can and one end and 120 ohm resistor on the other with no problems. Our total cable length was also only a few feet.

I would like to know if anyone has had issues solved by replacing the 120 ohm with 100 ohm. ISO11898 specs 120 ohm at each end of the Dual Wire CAN, and I have never seen an automotive CAN network that deviated from this.
  #10   Spotlight this post!  
Unread 02-02-2010, 20:11
Dale's Avatar
Dale Dale is offline
Head Coach & Mentor
AKA: Dale Yocum
FRC #1540 (Flaming Chickens)
Team Role: Coach
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Portland, OR
Posts: 504
Dale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud of
Re: CAN Bus Layout

We seem to have isolated the problem to a batch of bad RJ11 connectors. It seems the connectors we got (from Fry's) don't reliably mate with the ones in the Jaguars. Is there a particular brand or vendor we should be using?
__________________
2016 PNW Championship Chairman's; 2016 Winner Oregon City District, 2015 PNW Championship Chairman's; 2015 PNW District Engineering Inspiration; 2015 PNW District Finalist; 2014 PNW Championship Chairman's; 2014 Championship Innovation in Controls; 2013 Chairman's (Oregon); 2013 Finalist (OKC); 2012 Winner (OKC); 2012 Chairman's (OKC); 2012 Woody Flowers (Oregon); 2011 Volunteer of the Year (Oregon); 2011 Finalist & Captain (San Diego); 2011 Innovation in Control (San Diego); 2010 & 2007 Chairman's (Oregon); 2010 Regional Champions (Colorado); 2010 Innovation in Control (Colorado); 2009 & 2008 Engineering Inspiration (Oregon); 2008 Regional Champions (Oregon); 2007 Regional Finalist (Oregon); 2005 Rookie Inspiration (PNW)
  #11   Spotlight this post!  
Unread 02-02-2010, 20:31
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 523
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: CAN Bus Layout

We've been using RJ12s from radioshack.
  #12   Spotlight this post!  
Unread 08-02-2010, 11:56
Dale's Avatar
Dale Dale is offline
Head Coach & Mentor
AKA: Dale Yocum
FRC #1540 (Flaming Chickens)
Team Role: Coach
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Portland, OR
Posts: 504
Dale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud of
Re: CAN Bus Layout

To close the loop on our CAN saga. We have it all working now with 10 black Jaguars. It was quite a haul but it CAN be done

What we found:
The Jaguar's seem more sensitive than we would have thought to the RJ11 connectors used in them. Things didn't get reliable for us until we used the actual AMP/Tyco RJ11 connectors specified by Luminary Micro. There are no doubt others that will work but, for example, the ones from Frys and Home Depot were quite flaky for us. Ours came from Mouser http://mouser.com/Search/Refine.aspx?Keyword=5-641335

We tried making the terminator by just crimping the wires of the 100 ohm resistor into the RJ11 connector. That turned out to be unreliable in our case. Everything is fine now that we're soldering the resistor on the end of a short cable (the same stuff use use for the other CAN cables) coming out of the connector.

We're using the 2CAN Ethernet/CAN adapter distributed by AndyMark. It's nice in that you get loads of diagnostic data, don't have to worry about sending commands too fast, and it downloads firmware to the Jaguars in a couple of seconds rather than forever with the RS-232 interface. The RS-232 interface can probably work fine, too, but we were so excited to finally get something to work with CAN we didn't want to mess with it any more.

Triple check that all of your Jaguars have the new firmware downloaded from http://www.luminarymicro.com/jaguar
__________________
2016 PNW Championship Chairman's; 2016 Winner Oregon City District, 2015 PNW Championship Chairman's; 2015 PNW District Engineering Inspiration; 2015 PNW District Finalist; 2014 PNW Championship Chairman's; 2014 Championship Innovation in Controls; 2013 Chairman's (Oregon); 2013 Finalist (OKC); 2012 Winner (OKC); 2012 Chairman's (OKC); 2012 Woody Flowers (Oregon); 2011 Volunteer of the Year (Oregon); 2011 Finalist & Captain (San Diego); 2011 Innovation in Control (San Diego); 2010 & 2007 Chairman's (Oregon); 2010 Regional Champions (Colorado); 2010 Innovation in Control (Colorado); 2009 & 2008 Engineering Inspiration (Oregon); 2008 Regional Champions (Oregon); 2007 Regional Finalist (Oregon); 2005 Rookie Inspiration (PNW)
  #13   Spotlight this post!  
Unread 08-02-2010, 20:44
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,785
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 Bus Layout

Dale,
You have found by experiment that some types of crimp connectors are not designed to terminate solid wire, the resistors. They are designed for the stranded, flat wires generally available where phone parts are also stocked.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
CAN bus Jaguar intermittent errors bear1511 Programming 1 27-01-2010 22:49
New Jaguars on CAN bus ellisk C/C++ 4 21-01-2010 09:53
Bus accident? BobC General Forum 186 17-01-2010 18:04
data bus sciguy125 Electrical 10 06-09-2007 20:53


All times are GMT -5. The time now is 05:34.

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