Go to Post guys, don't forget not to scare the new girls - Lisa Rodriguez [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
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 11-12-2011, 05:07 PM
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,112
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: Jaguars not passing CAN communications

Rule of thumb: When you have a problem on a CAN bus, look for a termination issue at the other end of the chain from where the problem manifests itself. If the first couple of Jaguars work but any farther ones do not, check the termination at the end closest to the cRIO.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-18-2011, 10:34 AM
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Jaguars not passing CAN communications

I have four black jaguars i want to include in my network. Right now I can only see one jaguar at a time. I am able to communicate with all four Jaguars individually but if I try to chain two together i only see the first in the chain.

Quote:
Originally Posted by linuxboy View Post
Hi all,
So I made a post a while ago about only seeing the first Jaguar in the chain.
Can you post a link for that thread here? It may be helpful to me.

Quote:
Originally Posted by Alan Anderson View Post
Rule of thumb: When you have a problem on a CAN bus, look for a termination issue at the other end of the chain from where the problem manifests itself. If the first couple of Jaguars work but any farther ones do not, check the termination at the end closest to the cRIO.
I made the cable to connect the rs232 port to the first black Jag. I included the terminating resistor in the CAN plug end of the cable instead of in the RS-232 plug. The cable is probably 2 or 3 feet long. Do you think this could be causing the issue i described above? I can explain my cable construction more clearly if required..
Reply With Quote
  #3   Spotlight this post!  
Unread 11-18-2011, 10:58 AM
linuxboy linuxboy is offline
Registered User
AKA: Oliver Graff
FRC #3780
Team Role: Alumni
 
Join Date: Nov 2010
Rookie Year: 2009
Location: MI, USA
Posts: 217
linuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud of
Re: Jaguars not passing CAN communications

Hi,
Here is the old thread, I don't know that it ever got resolved.

You need a terminating resistor on both ends of the cable (the serial port end and the terminator end).

I managed to get it working by remaking the DB9 connector a couple times. I highly recommend this tutorial on it as it is pretty easy to understand.

Oliver
Reply With Quote
  #4   Spotlight this post!  
Unread 11-18-2011, 11:17 AM
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Jaguars not passing CAN communications

Quote:
Originally Posted by linuxboy View Post
You need a terminating resistor on both ends of the cable (the serial port end and the terminator end).
The following is from the MDL-BDC-24 - Getting Started Guide:
Quote:
RS232 Cable Assembly
Follow these steps to complete cable assembly (shown in Figure A-4):
1. Take the Modular Adapter and cut the black wire as short as possible. This wire is unused.
2. Cut off the terminals on the Red and Green wires. Strip then solder the Red and Green wires
to the 100 resistor. Use a section of heat shrink to protect the resistor and solder connections.
3. Insert remaining terminals into the DB9 receptacle. Pin numbers are indicated on the plastic
connector body.
– WhitePin 3
– Blue2
– YellowPin 5
4. Slide the back-shell over the connector, then insert the modular cable to complete the
assembly.
This sounds like they only expect 1 terminating restistor to be part of the RS232 - CAN cable, at the RS232 end. I looked at the guide you linked to and it does seem they expect a resistor at each end of the cable..seems like a conflict here but the "Getting Started Guide" does look more official to me. I attached this document. I guess it makes sense that this cable should only contain one resistor. If i understand correctly you want one resistor at each end of your network. If this cable contains two resistors it seems you would end up with three total resistors once you add one at the tail end of you daisy chain..
Attached Files
File Type: pdf MDL-BDC24_GSG.pdf (833.2 KB, 12 views)
Reply With Quote
  #5   Spotlight this post!  
Unread 11-18-2011, 11:46 AM
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,886
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Jaguars not passing CAN communications

Terminating resistor has nothing to do with the RS232 bus. It terminates the RS422 bus that is in the same plug. The other terminating resistor is in the unused port on the last Jag in the daisy chain (making a total of 2). The bus will mostly run without the terminating resisters, but will be subject to noise. It will also be the first troubleshooting question.

I found to get all the Jags to communicate that I had to power up the jags with them all connected & then restart the BCD-COMM com. A little concerning because it seems to me that the new jags should be recognized as they are plugged in.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-18-2011, 12:09 PM
linuxboy linuxboy is offline
Registered User
AKA: Oliver Graff
FRC #3780
Team Role: Alumni
 
Join Date: Nov 2010
Rookie Year: 2009
Location: MI, USA
Posts: 217
linuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud of
Re: Jaguars not passing CAN communications

Quote:
Originally Posted by FrankJ View Post
I found to get all the Jags to communicate that I had to power up the jags with them all connected & then restart the BCD-COMM com. A little concerning because it seems to me that the new jags should be recognized as they are plugged in.
This is something I noticed as well that I forgot to mention. It seems like some of the time hotplugging works, and other times, it does not, and you need to power on all the Jags at the same time. I don't know if that really is necessary, but its worth a shot.

Oliver
Reply With Quote
  #7   Spotlight this post!  
Unread 11-18-2011, 03:29 PM
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Jaguars not passing CAN communications

Probably restating the obvious here, but make sure that you reprogram the CAN IDs on the Jags before plugging them into the bus. By default, the Jags all come with the same ID set. So, even if the termination is correct, you'll only see one of them. You can reprogram the IDs using the BDC_COMM application. Follow the getting started guide for details. BTW, you can get a complete set of working CAN cables w/ terminators and the RS-232 cable from http://www.estoprobotics.com/estore/ if you're interested.

HTH,

Mike
Reply With Quote
  #8   Spotlight this post!  
Unread 11-18-2011, 04:13 PM
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Jaguars not passing CAN communications

Quote:
Originally Posted by taichichuan View Post
BTW, you can get a complete set of working CAN cables w/ terminators and the RS-232 cable from http://www.estoprobotics.com/estore/ if you're interested.
Yes! I will be buying a couple of those starter packs. I would like to think i am capable of making the cables myself but at this point I just want to take some of the mystery out of this and using cables that i can reasonably assume are proper will go along way towards maintaining my sanity!
Reply With Quote
  #9   Spotlight this post!  
Unread 01-11-2012, 04:37 PM
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Jaguars not passing CAN communications

Quote:
Originally Posted by jwakeman View Post
Yes! I will be buying a couple of those starter packs. I would like to think i am capable of making the cables myself but at this point I just want to take some of the mystery out of this and using cables that i can reasonably assume are proper will go along way towards maintaining my sanity!
We got the cables from e-stop electronics. Unfortunately, I am still seeing some flakiness in the CAN network. I have successfully had all four nodes on the network at once but it is still not reliable. I am looking for some specific diagnostics steps I can perform. I suspect it could be noisy/poor power supply, grounding issues, cable issues (even though i bought them). Armed with a oscilloscope and multimeter are their specific measurements i can make to look for termination/noise issues? Thanks!
Reply With Quote
  #10   Spotlight this post!  
Unread 01-11-2012, 04:49 PM
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: Jaguars not passing CAN communications

Quote:
Originally Posted by jwakeman View Post
We got the cables from e-stop electronics. Unfortunately, I am still seeing some flakiness in the CAN network. I have successfully had all four nodes on the network at once but it is still not reliable. I am looking for some specific diagnostics steps I can perform. I suspect it could be noisy/poor power supply, grounding issues, cable issues (even though i bought them). Armed with a oscilloscope and multimeter are their specific measurements i can make to look for termination/noise issues? Thanks!
Do you have access to a 2CAN? If you do you may use it to help diagnose the problem. An o-scope will not tell you much unless you know how CAN operates, the 2CAN however can diagnose if your CAN connectivity is the issue.
__________________
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
  #11   Spotlight this post!  
Unread 01-11-2012, 04:53 PM
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Jaguars not passing CAN communications

I don't have one yet but I am trying to get one. What kind of diagnostics does it provide? It would give me some kind of indication of the quality of the network?


Also, other suggestions please in case I don't get the 2CAN for a few weeks.
Reply With Quote
  #12   Spotlight this post!  
Unread 01-11-2012, 09:42 PM
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: Jaguars not passing CAN communications

Quote:
Originally Posted by jwakeman View Post
I don't have one yet but I am trying to get one. What kind of diagnostics does it provide? It would give me some kind of indication of the quality of the network?.
The 2CAN LED will tell you if you have good CAN connectivity and whether or not you are communicating with the plugin on the crio (Ethernet connectivity). The web dash will show information on each Jaguar on the bus such as voltage, current, ID, temperature and throttle and allows firmware to be loaded onto the Jags.

In the mean time check your cabling, reduce your number of Jags on the BUS down to 1 until you are successful (I see you have already done this but this reduces the possibility that you have more than one jag on the bus with the same ID.) And yes the CAN bus will not operate without at least one 120 ohm termination resistor, although the BUS will work with only one you should have both in place at each end of the BUS as this is what CAN is designed around. If you are using 100 ohms that is fine as well. Even though the CAN spec and the TI data sheet for the CAN PHY both say it should be 120 ohms, using a 100 ohm resistor will probably work fine. Make sure you are not trying to write to Jags that are not present on the BUS as this will cause you pain and the -44087 timeout error.

I hope this helps.
__________________
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 03:52 AM.

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