Go to Post amazing stuff. - Specialagentjim [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
  #16   Spotlight this post!  
Unread 10-05-2010, 23:59
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
  #17   Spotlight this post!  
Unread 11-05-2010, 00:13
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
  #18   Spotlight this post!  
Unread 11-05-2010, 00:20
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
  #19   Spotlight this post!  
Unread 11-05-2010, 00:45
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
  #20   Spotlight this post!  
Unread 11-05-2010, 01:01
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
  #21   Spotlight this post!  
Unread 11-05-2010, 01: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: 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
  #22   Spotlight this post!  
Unread 11-05-2010, 10:00
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
  #23   Spotlight this post!  
Unread 11-05-2010, 16:44
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 : 11-05-2010 at 16:46.
Reply With Quote
  #24   Spotlight this post!  
Unread 14-05-2010, 01:12
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
  #25   Spotlight this post!  
Unread 14-05-2010, 02:22
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
  #26   Spotlight this post!  
Unread 15-05-2010, 16:08
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, thanks!
Strangely, my setup enumerates nothing when I disconnect the black jaguar. However, I will recheck this when I have the chance.
__________________
-- Marshal Horn
Reply With Quote
  #27   Spotlight this post!  
Unread 10-06-2010, 00:00
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

This title has become misleading, so I'm going to defer to another thread, and come back to this if this is actually an issue.
__________________
-- Marshal Horn
Reply With Quote
  #28   Spotlight this post!  
Unread 12-06-2010, 00:52
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

Nope, problem solved.
Thank you everyone for your help!
__________________
-- Marshal Horn
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 28-05-2010 16:33
Set Jaguar device number via cRIO kamocat FRC Control System 0 08-05-2010 20:41
CAN Jaguar code set up as a VxWorks Library taichichuan CAN 0 21-02-2010 22:16
Unable to set team number Erebos FRC Control System 4 27-01-2009 17:00
Can not set team number on DS TekClaz FRC Control System 2 23-12-2008 14:25


All times are GMT -5. The time now is 02:56.

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