Go to Post Commence the year of the brown out! - Jared Russell [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 01-03-2010, 21:24
jngleofinsanity jngleofinsanity is offline
Registered User
FRC #2658 (Pedestrian)
Team Role: Electrical
 
Join Date: Feb 2008
Rookie Year: 2007
Location: San Diego
Posts: 6
jngleofinsanity is an unknown quantity at this point
Black Jaguar CAN Issues

Hey there,

We have run into an interesting problem. We had an old testboard with one black Jaguar serving as an RS232 gateway to CAN from the cRIO, and daisy chained to several Grey Jaguars working just fine. But when we shifted to our actual electrical board, with only Black Jaguars daisy chained to each other (and all flashed correctly with the v89 Firmware and different ID's), our programmers could not get a response from any jaguar but the initiating one. We swapped out both Jaguars and cables in an effort to solve the issue, but to no avail. Running our Jaguars over CAN is crucial to us since we want to wire our encoders directly into them.

Does anyone have some advice as to how we can solve this issue?

Thanks
--Jay
Reply With Quote
  #2   Spotlight this post!  
Unread 01-03-2010, 21:52
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Black Jaguar CAN Issues

What do you mean by no response? No actuation? Yellow blinking lights?

Does the bus work through BDC-comm?

Are you using the camera right now? If the camera is still booting while trying to use the CAN bus the system gets a little messed up. Once the camera finishes booting it should work normally again
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #3   Spotlight this post!  
Unread 01-03-2010, 22:26
jngleofinsanity jngleofinsanity is offline
Registered User
FRC #2658 (Pedestrian)
Team Role: Electrical
 
Join Date: Feb 2008
Rookie Year: 2007
Location: San Diego
Posts: 6
jngleofinsanity is an unknown quantity at this point
Re: Black Jaguar CAN Issues

Thanks for the quick response!

We see yellow blinking lights, and we told the cRIO to give a bit of text in the readout for each jaguar it managed to access, but it only gave it off for the first one each time.

Apparently, the bus works through BDC-COMM

And no, as of right now we are not using the Camera, but we hope to implement it in the near future. Any additional tips on that front?

Last edited by jngleofinsanity : 01-03-2010 at 22:28.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-03-2010, 22:44
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,695
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Black Jaguar CAN Issues

How do you have the Black Jaguar ports chained?
RS232 port-RS232 port CAN port-CAN port ?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 02-03-2010, 00:10
jngleofinsanity jngleofinsanity is offline
Registered User
FRC #2658 (Pedestrian)
Team Role: Electrical
 
Join Date: Feb 2008
Rookie Year: 2007
Location: San Diego
Posts: 6
jngleofinsanity is an unknown quantity at this point
Re: Black Jaguar CAN Issues

Wait, I'm not sure whether or not I actually "daisy-chained" them correctly

The wires go from RS232 on the cRIO to RS232-to-CAN on Black Jaguar, then from CAN on one jaguar to the open RS232-to-CAN on Black Jaguar #2, and from the CAN port on that jaguar to the open RS232-to-CAN on Black Jaguar #3, so on and so forth.

Is it supposed to go CAN-CAN-CAN-CAN (only reason this would've worked on grey jags then is because they're all CAN ports)? Or RS232-RS232-RS232-RS232? And doesn't that mean you need to mash more than one RJ11 cable into the same crimp?
Reply With Quote
  #6   Spotlight this post!  
Unread 02-03-2010, 08:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,695
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Black Jaguar CAN Issues

You see the problem. This is a CAN-bus we're dealing with, not an alternating CAN/RS232 hybrid. A CAN-port won't talk to an RS232-port of course, they speak different languages.

The Black Jaguars are intended only as a converter from RS232 to CAN at the start of an uninterrupted CAN bus, they don't have enough CAN ports to form a traditional CAN daisy chain, only the Gray's have the CAN ports to continue a daisy chain.

You'd have to try a different style of CAN bus using what's called vampire taps, where you have a continuous CAN cable with splices for side cables split off to feed your Black Jags. You still need to terminate the cable with a 100 ohm resistor. This is essentially what the Gray Jags are actually doing, just internally. I haven't tried running a continuous outside cable for a string of Black Jags myself though.

You might be able to chain two Black Jags together the prescribed FRC way, as long as you terminate the 2nd Jag's RS232 port with a 100ohm resister, the same way you terminated the first RS232 cable. But I haven't tried this either.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-03-2010 at 08:46.
Reply With Quote
  #7   Spotlight this post!  
Unread 02-03-2010, 22:05
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Black Jaguar CAN Issues

Quote:
Originally Posted by Mark McLeod View Post
You see the problem. This is a CAN-bus we're dealing with, not an alternating CAN/RS232 hybrid. A CAN-port won't talk to an RS232-port of course, they speak different languages.

The Black Jaguars are intended only as a converter from RS232 to CAN at the start of an uninterrupted CAN bus, they don't have enough CAN ports to form a traditional CAN daisy chain, only the Gray's have the CAN ports to continue a daisy chain.
That's not quite true. While CAN and RS232 are completely different, the wires for them are also completely different. If you put together the RS232 to CAN adapter, you put a resistor between the Red and Green wires. Those are the 2 CAN wires. All the other ones plugged into the DB-9 connector are the Serial wires. As long as the CAN to CAN cables were assembled properly (double check that btw), 2 Black Jags should be able to be on the same bus.

Also, try messing with your configuration. Change the order of jags daisy-chained, try a different jag as the serial to CAN, swap around cables. You might have happened to put a bad connection between the source black jag and the 2nd one, breaking the bus
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #8   Spotlight this post!  
Unread 03-03-2010, 12:04
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: Black Jaguar CAN Issues

On a Gray Jag the two ports are both 6-position 4-conductor (6p4c) modular plugs. On a Black Jag the left port is 6p6c and the right port is 6p4c. The extra two conductors on the left port are serial lines. This means the left port on the Black Jag is dual function, and can be daisy chained like the Gray Jags in the CAN-only part of the network.
Reply With Quote
  #9   Spotlight this post!  
Unread 03-03-2010, 12:09
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: Black Jaguar CAN Issues

I found the "enumerate" function to be really helpful for this sort of stuff. I don't have LV in front of me at the moment, but this command will tell you what IDs it sees on the CAN bus at the moment. I just stick it in a slow (5 second?) loop and have an indicator hooked to the output.

This will give you a better idea of what is going on.
Reply With Quote
  #10   Spotlight this post!  
Unread 08-03-2010, 19:48
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: Black Jaguar CAN Issues

Hi Gang,

When I run into these sorts of problems, it's almost always related to bus termination. The approach of putting the terminator into the RJ-12 is simply too prone to shorting out. It's best to run a short length of wire out of the RJ-12 and solder the terminator externally w/ some heat shrink to keep it safe.

HTH,

Mike
Reply With Quote
  #11   Spotlight this post!  
Unread 10-03-2010, 17:20
movax movax is offline
Registered User
no team
 
Join Date: Mar 2010
Location: Michigan
Posts: 4
movax is an unknown quantity at this point
Re: Black Jaguar CAN Issues

I can't stress enough the importance of a termination resistor on the bus. Without the proper termination, you will get nasty signal reflection on fast edges and that will result in error frames/communication errors.

If you remember SCSI drives, that is why a terminator was necessary on SCSI cabling as well.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bricked black Jaguar after bad firmware update FRC4ME CAN 13 19-02-2010 16:52
Black Jaguar Not Taking New Address duane CAN 1 06-02-2010 19:55
Black Jaguar RS232->CAN - anyone? oddjob C/C++ 12 22-01-2010 16:25
Release Announcement for the MDL-BDC24 (Black Jaguar) JDNovak FRC Control System 2 16-12-2009 18:13
The Black Jaguar David Doerr FRC Control System 5 25-11-2009 15:43


All times are GMT -5. The time now is 20:16.

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