Go to Post Who has time for boredom? - Dr Theta [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 13-02-2011, 15:38
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
Can't enumerate the entire bus

Hi all,
Last night I finally got CAN working reliably (or so I thought). This morning I came in and decided to write code for using the Jags on the cRIO instead of just using BDC-COMM. Somewhere when testing I started to get errors about a firmware version being 0. I connected it to BDC-COMM again and found that it wasn't enumerating the second jag on the bus. I switched the order that the Jags were wired and it recognized the one that became the first Jag after the switch (the one that wasn't getting enumerated before). Then I tried using 3 Jags and was able to (unreliably) read the second but not the last jag in the chain.

Any ideas guys?

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2011, 10:59
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: Can't enumerate the entire bus

Hmm... This sounds like cabling and/or termination problems. Make sure that your terminators haven't shorted out. The picture that has you putting the 100 Ohm resistor in the RJ-12 jack is misleading. If you use that approach, it's real easy to bend the resistor leads and short them out leading to a lot of CAN weirdness.

I typically create a small pigtail coming out of the RJ-12 and solder the terminator resistor to that and insulate it w/ some heat shrink. I also put the terminator resistor in the DB9 shell (run 6C wire from the RJ-12 to the DB9 and put the terminator in the shell where it's protected). That approach has lead to very solid CAN performance.

HTH,

Mike
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2011, 11:08
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: Can't enumerate the entire bus

Quote:
Originally Posted by taichichuan View Post
Hmm... This sounds like cabling and/or termination problems. Make sure that your terminators haven't shorted out. The picture that has you putting the 100 Ohm resistor in the RJ-12 jack is misleading. If you use that approach, it's real easy to bend the resistor leads and short them out leading to a lot of CAN weirdness.

I typically create a small pigtail coming out of the RJ-12 and solder the terminator resistor to that and insulate it w/ some heat shrink. I also put the terminator resistor in the DB9 shell (run 6C wire from the RJ-12 to the DB9 and put the terminator in the shell where it's protected). That approach has lead to very solid CAN performance.

HTH,

Mike
I use the wires to make a terminator plug approach as well. I also made another one just to be sure. The only thing I haven't swapped out is the DB9 to rj12 connector although I tested it with a multimeter and the resistance on the middle two pins seems fine as well as the continuity between the proper serial and RJ12 pins. I'm pretty stumped.
Oliver
Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2011, 12:09
Hugh Meyer's Avatar
Hugh Meyer Hugh Meyer is offline
Registered User
FRC #1741 (Red Alert Robotics)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Greenwood Indiana
Posts: 158
Hugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud of
Re: Can't enumerate the entire bus

Be absolutely sure you have each Jaguar assigned a unique ID number. Sometimes they forget who they are and revert back to the default, or mistakenly get programmed the same as another.

When programming them it is best to have only one at a time on the bus, like it says in the manual.

-Hugh
Reply With Quote
  #5   Spotlight this post!  
Unread 14-02-2011, 15:53
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: Can't enumerate the entire bus

So I just reflashed two jags individually and reassigned the IDs to them and still no luck. Even if both are hooked up hitting assign does not make them both flash green, only the first one meaning that even broadcasting does not reach the second one in the chain. I'm out of ideas so I'm really hoping for some magic fix from you guys.

Oliver
Reply With Quote
  #6   Spotlight this post!  
Unread 14-02-2011, 19:43
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: Can't enumerate the entire bus

WE GOT IT WORKING!!!!!

Okay now that I'm done with the excitement outburst I will let you all know how. Turns out the issue was the impedence (as many people said). The problem exactly was our 100ohm resistors were not enough for a terminator plug. Instead we are using 680ohm resistors on both ends of the bus. That worked for 2 Jags and we are seeing if it will work with more.
Reply With Quote
  #7   Spotlight this post!  
Unread 15-02-2011, 08:29
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: Can't enumerate the entire bus

Actually it's not working quite as well as it seemed. It can't do more than two and it seems to fail on longer wires. . Oh well looks like PWM for this year and I'll try to figure out CAN on off season,
Reply With Quote
  #8   Spotlight this post!  
Unread 15-02-2011, 20:36
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Can't enumerate the entire bus

You say the 680 ohm resistors worked as termination when the 100 ohm didn't?
I would double-check the cabling. Are they all straight-through?
__________________
-- Marshal Horn
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2011, 11:17
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: Can't enumerate the entire bus

Quote:
Originally Posted by linuxboy View Post
So I just reflashed two jags individually and reassigned the IDs to them and still no luck. Even if both are hooked up hitting assign does not make them both flash green, only the first one meaning that even broadcasting does not reach the second one in the chain. I'm out of ideas so I'm really hoping for some magic fix from you guys.

Oliver
This sounds to me like you made a cross over cable instead of a strait through cable. The middle two wires must not be switched!
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 08:44.

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