Go to Post "Is it possible to cut enough holes in the robot to weight reduce 8 lbs?" - ScoutingNerd175 [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 29-01-2011, 06:50
Gary Bonner Gary Bonner is offline
Registered User
FRC #3974
 
Join Date: Jan 2002
Rookie Year: 2000
Location: PA
Posts: 120
Gary Bonner has a spectacular aura aboutGary Bonner has a spectacular aura about
CAN Issues

We are looking into using CAN this year and are having difficult getting started. We are first trying to get a single Jaguar to operate in CAN mode. We used BDC-COMM to assign a new ID (2), updated the firmware, re-imaged the cRIO with the Black Jaguar CAN option, and inserted this into the code:
Click image for larger version

Name:	CAN.jpg
Views:	85
Size:	68.0 KB
ID:	9873
When we run the program and enable the robot, the Jaguar LED is steady amber, however, it doesn't respond to the joystick. We've tried replacing the joystick with a front panel control, but still no response. Are we missing something?

Thanks.

Last edited by Gary Bonner : 29-01-2011 at 06:53.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2011, 21:42
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 Issues

Everything you've mentioned is correct, and your code looks fine.

Do you have the RS232-CAN adapter wired to the left CAN port on the Jaguar?

Are you getting any errors on the Driver Station? (Go to the diagnostics tab)
__________________
-- Marshal Horn
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2011, 00:07
ratdude747's Avatar
ratdude747 ratdude747 is offline
Official Scorekeeper
AKA: Larry Bolan
no team
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Madison, IN
Posts: 1,064
ratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond repute
Re: CAN Issues

solid amber rules out a wiring fault as long as all jaguars have solid yellow.

make sure your motor is connected and good

in the worst case, use bdc-comm to manually test the jaguar (use the "mode" tab and drag the slider to set the speed)
__________________
Dean's List Semi-finalist 2010
1747 Harrison Boiler Robotics 2008-2010, 2783 Engineers of Tomorrow 2011, Event Volunteer 2012-current

DISCLAIMER: Any opinions/comments posted are solely my personal opinion and does not reflect the views/opinions of FIRST, IndianaFIRST, or any other organization.
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2011, 00:27
Gary Bonner Gary Bonner is offline
Registered User
FRC #3974
 
Join Date: Jan 2002
Rookie Year: 2000
Location: PA
Posts: 120
Gary Bonner has a spectacular aura aboutGary Bonner has a spectacular aura about
Re: CAN Issues

When I got back to the shop today and hooked everything up, it worked. As far as I could tell, nothing had changed. We then tried adding another Jaguar. It shows up with Enum, but doesn't respond to joystick input. Didn't have time to do any debugging.
Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2011, 01: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: CAN Issues

Perhaps your Jaguar is powering up after it is supposed to be initialized, and thus missing the "voltage mode enable" command in Begin.vi. This can happen in systems with low battery voltage or noisy power supplies.

To test this, you can place a "get output" VI and see what output your Jaguar says it's getting. If it's not enabled, it will say its output is zero.
(This differs from the "output voltage" status in that this will change depending on the control mode the Jaguar is in, whereas the "output voltage" will always give you the voltage provided at the motor terminals)
__________________
-- Marshal Horn
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2011, 01:11
Gary Bonner Gary Bonner is offline
Registered User
FRC #3974
 
Join Date: Jan 2002
Rookie Year: 2000
Location: PA
Posts: 120
Gary Bonner has a spectacular aura aboutGary Bonner has a spectacular aura about
Re: CAN Issues

Thanks, I'll give that a try when I'm back in the shop on Tuesday.
Reply With Quote
  #7   Spotlight this post!  
Unread 01-02-2011, 19:53
Gary Bonner Gary Bonner is offline
Registered User
FRC #3974
 
Join Date: Jan 2002
Rookie Year: 2000
Location: PA
Posts: 120
Gary Bonner has a spectacular aura aboutGary Bonner has a spectacular aura about
Re: CAN Issues

The "get output" for the second Jaguar (id #4) always returns 0. The other Jag (# 2) works fine. This is the case regardless of the order of the Jags (cRIO-2-4, or cRIO-4-2). Both show up in enum. Any suggestions?
Reply With Quote
  #8   Spotlight this post!  
Unread 01-02-2011, 21:30
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 Issues

It sounds like #4 isn't getting enabled in Begin.vi, for some reason or another.
Try "enabling" the motor again at the start of Teleop, and see if it helps.

Another thing you can do is check the "power status" on Jaguar #4. If indicates a power reset more than once, then you need to check its power wiring.
__________________
-- Marshal Horn
Reply With Quote
  #9   Spotlight this post!  
Unread 06-02-2011, 13:53
Mr.D's Avatar
Mr.D Mr.D is offline
Randy Decker
FRC #0829 (Warren Robotics "The Digital Goats")
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Warren Central HS; Indianapolis, IN
Posts: 84
Mr.D is just really niceMr.D is just really niceMr.D is just really niceMr.D is just really nice
Re: CAN Issues

Quote:
Originally Posted by Gary Bonner View Post
We are looking into using CAN this year and are having difficult getting started. We are first trying to get a single Jaguar to operate in CAN mode. We used BDC-COMM to assign a new ID (2), updated the firmware, re-imaged the cRIO with the Black Jaguar CAN option, and inserted this into the code:
Attachment 9873
When we run the program and enable the robot, the Jaguar LED is steady amber, however, it doesn't respond to the joystick. We've tried replacing the joystick with a front panel control, but still no response. Are we missing something?

Thanks.
I'm having a setup issue with our Black Jaguars. I am unable to assign a new ID and when I try to update the firmware I get an "Unable to contact the boot loader!" message.

Mode tab: I am able to move the slider to adjust the settings at the bottom of the BDC-COMM screen when connected.

System tab: Board information is: none,none; Hardware Version: 0; Firmware Version: 0; New Board ID: 1

Ideas??
__________________
Randy Decker
Computer/Networking Technology, PLTW DE/IED,
and Electronic Systems Technician Teacher
Walker Career Center
Indianapolis, IN

www.warrenrobotics.org
2008 Boilermaker Regional J&J Gracious Professionalism Award
2008 Bloomington Vex Champion
2007 St. Louis Regional Champion


Reply With Quote
  #10   Spotlight this post!  
Unread 06-02-2011, 14:02
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 Issues

Quote:
Originally Posted by Mr.D View Post
I'm having a setup issue with our Black Jaguars. I am unable to assign a new ID and when I try to update the firmware I get an "Unable to contact the boot loader!" message.

Mode tab: I am able to move the slider to adjust the settings at the bottom of the BDC-COMM screen when connected.

System tab: Board information is: none,none; Hardware Version: 0; Firmware Version: 0; New Board ID: 1

Ideas??
Yes, you have a communication issue.
Check your wiring. Especially make sure your RS232-CAN adapter is correct. When looking at RJ14 connector with the gold terminals up, as if to plug it into a socket directly in front of you, the color order (left to right) should be:
white, black, red, green, yellow, blue.

Have you gotten this to work with other Jaguars?
__________________
-- Marshal Horn
Reply With Quote
  #11   Spotlight this post!  
Unread 06-02-2011, 14:18
Mr.D's Avatar
Mr.D Mr.D is offline
Randy Decker
FRC #0829 (Warren Robotics "The Digital Goats")
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Warren Central HS; Indianapolis, IN
Posts: 84
Mr.D is just really niceMr.D is just really niceMr.D is just really niceMr.D is just really nice
Re: CAN Issues

Quote:
Originally Posted by kamocat View Post
Yes, you have a communication issue.
Check your wiring. Especially make sure your RS232-CAN adapter is correct. When looking at RJ14 connector with the gold terminals up, as if to plug it into a socket directly in front of you, the color order (left to right) should be:
white, black, red, green, yellow, blue.

Have you gotten this to work with other Jaguars?
No, this was the first attempt and we made the cables yesterday. We're using RJ12 connectors with Cat5e cable with the green pair removed.
__________________
Randy Decker
Computer/Networking Technology, PLTW DE/IED,
and Electronic Systems Technician Teacher
Walker Career Center
Indianapolis, IN

www.warrenrobotics.org
2008 Boilermaker Regional J&J Gracious Professionalism Award
2008 Bloomington Vex Champion
2007 St. Louis Regional Champion


Reply With Quote
  #12   Spotlight this post!  
Unread 06-02-2011, 14:22
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 Issues

Quote:
Originally Posted by Mr.D View Post
No, this was the first attempt and we made the cables yesterday. We're using RJ12 connectors with Cat5e cable with the green pair removed.
I would think that would be more difficult than flat ribbon cable.
__________________
-- Marshal Horn
Reply With Quote
  #13   Spotlight this post!  
Unread 08-01-2012, 04:57
Alex698's Avatar
Alex698 Alex698 is offline
Sparky
FRC #2449 (Out of Orbit Robotics)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Arizona
Posts: 114
Alex698 is a jewel in the roughAlex698 is a jewel in the roughAlex698 is a jewel in the rough
Send a message via AIM to Alex698
Re: CAN Issues

Quote:
Originally Posted by Mr.D View Post
I'm having a setup issue with our Black Jaguars. I am unable to assign a new ID and when I try to update the firmware I get an "Unable to contact the boot loader!" message.

Mode tab: I am able to move the slider to adjust the settings at the bottom of the BDC-COMM screen when connected.

System tab: Board information is: none,none; Hardware Version: 0; Firmware Version: 0; New Board ID: 1

Ideas??
I was having the same problem, it turned out that I had switched the TX and RX pins on the custom adapter cable. Also be sure you've connected GND to GND on the adapter cable. The yellow solid light can be acquired by connecting the V+ and CAN_L or CAN_H to the DB9 adapter. Hope this helps
__________________
Eat, Sleep, Build Robots
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 07:54.

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