Go to Post It's always better to figure out why a design actually works and the best ways to implement it than to just assume upgrading to a "better" material will make everything work. - Cory [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 05-10-2010, 12:31 AM
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Re: Set Jaguar device number via cRIO

Quote:
Originally Posted by kamocat View Post
Buy the cable? It's just a female RJ25 connected to a female DB9. Is the digikey part specially shielded? I don't have shielding over any of my CAN bus.
No, there is no shielding in the digikey adapter.

It seems that in other adapters (maybe only the ones I bought), that the spacing between the side of the adapter and the pins was slightly off.
The slot was large enough to allow the 6 pin cord to fit in and latch, but the off spacing would make the pins not line up causing no comms in either direction.

Try a continuity test between the pins of the 6 pin cord and the cords inside the adapter (or the DB9 pins).
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!
Reply With Quote
  #2   Spotlight this post!  
Unread 05-10-2010, 02:08 AM
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: Set Jaguar device number via cRIO

Watch out for the 100 Ohm resistor legs if you tried to put the resistor into the 6P6C connector itself. I experienced many problems with the resistor shorting itself out if I tried building it like the manual says. I found that connecting the resistor to a wire pigtail coming out of the modular connector to be much more reliable.

HTH,

Mike
Reply With Quote
  #3   Spotlight this post!  
Unread 05-10-2010, 02:35 AM
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Re: Set Jaguar device number via cRIO

Quote:
Originally Posted by taichichuan View Post
Watch out for the 100 Ohm resistor legs if you tried to put the resistor into the 6P6C connector itself. I experienced many problems with the resistor shorting itself out if I tried building it like the manual says. I found that connecting the resistor to a wire pigtail coming out of the modular connector to be much more reliable.

HTH,

Mike
There is nothing a little epoxy can't fix!

After crimping the resistor into the connector (and verifying that it works), take a little 2 part epoxy mixed well and cover the resistor and its legs.

Once it is cured, the resistor won't be able move and the legs will not short each other out.
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!
Reply With Quote
  #4   Spotlight this post!  
Unread 05-10-2010, 08:54 PM
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: Set Jaguar device number via cRIO

Quote:
Originally Posted by biojae View Post
It seems that in other adapters. the spacing between the side of the adapter and the pins was slightly off.
The slot was large enough to allow the 6 pin cord to fit in and latch, but the off spacing would make the pins not line up causing no comms in either direction.

Try a continuity test between the pins of the 6 pin cord and the cords inside the adapter (or the DB9 pins).
Yes, it seems fine. Less than 0.5 ohms per wire. (The leads on my meter are about 0.2 ohms)
I also double-checked my wires, and they are straight-through.
I've tried the terminating resistor both with and without a pigtail. I think with the pigtail is both more reliable, and easier to create.
__________________
-- Marshal Horn

Last edited by kamocat : 05-10-2010 at 08:56 PM.
Reply With Quote
  #5   Spotlight this post!  
Unread 05-10-2010, 09:11 PM
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: Set Jaguar device number via cRIO

Could somebody unplug their termination resistor, and try enumeration (with the cRIO or the BDC-COMM utility)?
Does it say there's no no devices on the network at all, or does it say there's one device with a device number of 0?
__________________
-- Marshal Horn
Reply With Quote
  #6   Spotlight this post!  
Unread 05-10-2010, 11:59 PM
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Re: Set Jaguar device number via cRIO

Quote:
Originally Posted by kamocat View Post
Could somebody unplug their termination resistor, and try enumeration (with the cRIO or the BDC-COMM utility)?
Does it say there's no no devices on the network at all, or does it say there's one device with a device number of 0?
Neither.

I can still enumerate all 4 devices on the CAN bus.
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!
Reply With Quote
  #7   Spotlight this post!  
Unread 05-11-2010, 12:13 AM
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: Set Jaguar device number via cRIO

Is that with a single termination resistor, or with none whatsoever?
__________________
-- Marshal Horn
Reply With Quote
  #8   Spotlight this post!  
Unread 05-11-2010, 12:20 AM
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Re: Set Jaguar device number via cRIO

Quote:
Originally Posted by kamocat View Post
Is that with a single termination resistor, or with none whatsoever?
Single termination (one inside the db9 to 6p-6c adapter)
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!
Reply With Quote
  #9   Spotlight this post!  
Unread 05-11-2010, 12:45 AM
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: Set Jaguar device number via cRIO

Okay. The Getting Started guide said small networks may still work with a single termination. I'm not going to ask you to clip off your resistor.
__________________
-- Marshal Horn
Reply With Quote
  #10   Spotlight this post!  
Unread 05-11-2010, 01:01 AM
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Re: Set Jaguar device number via cRIO

Quote:
Originally Posted by kamocat View Post
Okay. The Getting Started guide said small networks may still work with a single termination. I'm not going to ask you to clip off your resistor.
I would do it if I had a second (or third) working adapter.
But, the only adapter that I have gotten to work is the digikey one, and we only ordered one of them.
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!
Reply With Quote
  #11   Spotlight this post!  
Unread 05-11-2010, 01:09 AM
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: Set Jaguar device number via cRIO

Quote:
Originally Posted by kamocat View Post
Okay. The Getting Started guide said small networks may still work with a single termination. I'm not going to ask you to clip off your resistor.
The problem with digital communication is that it works perfectly until it doesn't -- Stating that something works is poor proof that it will continue to work after something changes. You really want to look at the signal in analog land before making these determinations.

It is quite possible / easy to get small CAN networks to work with poor bus layout / terminations.
Reply With Quote
  #12   Spotlight this post!  
Unread 05-11-2010, 10:00 AM
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: Set Jaguar device number via cRIO

I think if the enumeration worked, then the other CAN communications would work. However, I don't know what would cause the enumeration to respond like this.
What does it mean when it says there's only one device on the network, and its address is 0? Why doesn't it just say there are no devices there?
__________________
-- Marshal Horn
Reply With Quote
  #13   Spotlight this post!  
Unread 05-11-2010, 04:44 PM
rrossbach rrossbach is offline
Registered User
AKA: Ron R
FRC #2607 (RoboVikings)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Warrington PA
Posts: 90
rrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to behold
Re: Set Jaguar device number via cRIO

Sorry if this is a dumb question, but I'm not clear on what behavior you're seeing.

How many Jaguars do you have connected to the CAN bus? If it's only one, and you are just seeing an enum response with device id 0, have you tried resetting the id of that Jag to something >=2 via bdc-comm? If not, follow the steps on page 10 of the bdc-comm user's guide and let us know the results.

If you still have multiple Jags on the CAN bus, let us know what you see in bdc-comm.....do you see all the Jags except the one with device id 0?

You may just need to assign a new id to the Jaguar that currently thinks it is id 0.

- Ron
Team #2607 controls mentor

[EDIT: to answer your question, the enum responding that there's one device with id 0 is (I'm almost positive) a valid response, provided that's the actual situation on the CAN bus]

Last edited by rrossbach : 05-11-2010 at 04:46 PM.
Reply With Quote
  #14   Spotlight this post!  
Unread 05-14-2010, 01:12 AM
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: Set Jaguar device number via cRIO

Quote:
Originally Posted by rrossbach View Post
Sorry if this is a dumb question, but I'm not clear on what behavior you're seeing.

How many Jaguars do you have connected to the CAN bus? If it's only one, and you are just seeing an enum response with device id 0, have you tried resetting the id of that Jag to something >=2 via bdc-comm? If not, follow the steps on page 10 of the bdc-comm user's guide and let us know the results.

If you still have multiple Jags on the CAN bus, let us know what you see in bdc-comm.....do you see all the Jags except the one with device id 0?

You may just need to assign a new id to the Jaguar that currently thinks it is id 0.

- Ron
Team #2607 controls mentor

[EDIT: to answer your question, the enum responding that there's one device with id 0 is (I'm almost positive) a valid response, provided that's the actual situation on the CAN bus]
Well, I've tried resetting the Jaguar's ID, but it has no effect. I even tried replacing it with a different black Jaguar, but no change.
I'm pretty sure 0 is not a valid ID for a device on the CAN network, but I don't know if the host might appear as having an ID of 0 (regardless of whether the CAN bus itself is working or not).
When I connect another Jaguar, the enumeration still only reports a single device with an ID of 0.
Currently I am working with the BDC-COMM, and a USB to Serial device (Keyspan brand). Once I get that working, I'll move back to the cRIO.
__________________
-- Marshal Horn
Reply With Quote
  #15   Spotlight this post!  
Unread 05-14-2010, 02:22 AM
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Re: Set Jaguar device number via cRIO

Quote:
Originally Posted by kamocat View Post
Well, I've tried resetting the Jaguar's ID, but it has no effect. I even tried replacing it with a different black Jaguar, but no change.
I'm pretty sure 0 is not a valid ID for a device on the CAN network, but I don't know if the host might appear as having an ID of 0 (regardless of whether the CAN bus itself is working or not).
When I connect another Jaguar, the enumeration still only reports a single device with an ID of 0.
Currently I am working with the BDC-COMM, and a USB to Serial device (Keyspan brand). Once I get that working, I'll move back to the cRIO.
So, I just ran BDC-COMM without anything connected to my serial port.

It enumerates a Jaguar with an ID of 0.

This means that you have a communication problem between your computer and the black jag.
There are several points of failure, if one of them doesn't work, then none of it will.

Chances are, if you couldn't connect with the cRio, or the computer that the problem lies either with the 6-pin cord from the adapter or the adapter itself.
Attached Thumbnails
Click image for larger version

Name:	No Jags attached.JPG
Views:	20
Size:	40.3 KB
ID:	9096  
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!
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
Set computer to receive it's IP via DHCP? grosh FRC Control System 21 05-28-2010 04:33 PM
Set Jaguar device number via cRIO kamocat FRC Control System 0 05-08-2010 08:41 PM
CAN Jaguar code set up as a VxWorks Library taichichuan CAN 0 02-21-2010 10:16 PM
Unable to set team number Erebos FRC Control System 4 01-27-2009 05:00 PM
Can not set team number on DS TekClaz FRC Control System 2 12-23-2008 02:25 PM


All times are GMT -5. The time now is 03:58 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