OCCRA
Go to Post I am really glad that FIRST gives teams the choice to use either students or adults in this role. - dtengineering [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-23-2014, 03:09 PM
Ido_Wolf's Avatar
Ido_Wolf Ido_Wolf is offline
LabVIEW Addict
AKA: Ido
FRC #2230 (General Angels)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Israel
Posts: 42
Ido_Wolf is an unknown quantity at this point
Black Jaguars bricked after 2CAN update

We just tried to connect our Jaguars through a CAN chain connected to a 2CAN 2.0, running latest firmware. We managed to get into the Web Dashboard and 2 out of 4 nodes were recognized.

When we tried to update each Jaguar's firmware to latest through the "Node Update" section, the Jaguars bricked and now they don't output any light through the indicator LED. We've also used the latest *.bin file for the task, of course.

Also, after we updated one Jaguar, the 2CAN's indicator LED turned from a steady green to a fast red strobe.

How can we restore the Jaguars, if it's possible at all?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-23-2014, 03:36 PM
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 344
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Black Jaguars bricked after 2CAN update

I have come across this problem myself, and *should* be reversible. The bad part is, if you do not already have a serial to CAN adapter handy, this will be the time to make one.

Included in the Driver Station software and Utility Updates, there is a program called BDC-Comm. Start that up with only one of the bricked Jaguars plugged into the CAN port (For serial communications, you must plug your serial adapter into the left port of the Jaguar. Remember to terminate the other port.) Once BDC-Comm has started, there should be a menu item somewhere along the lines of "Recover Firmware" (IIRC, it's in the File menu). Select your firmware bin and flash it using the recovery feature. This should bring your Jaguar back to its normal life.

The fast red strobe would indicate a CAN error. Make sure you have your termination resistor in place for the network to run correctly.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #3   Spotlight this post!  
Unread 01-23-2014, 03:40 PM
Ido_Wolf's Avatar
Ido_Wolf Ido_Wolf is offline
LabVIEW Addict
AKA: Ido
FRC #2230 (General Angels)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Israel
Posts: 42
Ido_Wolf is an unknown quantity at this point
Re: Black Jaguars bricked after 2CAN update

Quote:
Originally Posted by Cecil View Post
I have come across this problem myself, and *should* be reversible. The bad part is, if you do not already have a serial to CAN adapter handy, this will be the time to make one.

Included in the Driver Station software and Utility Updates, there is a program called BDC-Comm. Start that up with only one of the bricked Jaguars plugged into the CAN port (For serial communications, you must plug your serial adapter into the left port of the Jaguar. Remember to terminate the other port.) Once BDC-Comm has started, there should be a menu item somewhere along the lines of "Recover Firmware" (IIRC, it's in the File menu). Select your firmware bin and flash it using the recovery feature. This should bring your Jaguar back to its normal life.

The fast red strobe would indicate a CAN error. Make sure you have your termination resistor in place for the network to run correctly.
An error box comes up saying "Unable to contact the boot loader!" upon starting the Recover Device process
Reoccures no matter which Jaguar is connected to the PC
Reply With Quote
  #4   Spotlight this post!  
Unread 01-23-2014, 04:19 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,764
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Black Jaguars bricked after 2CAN update

Have you proven that your serial CAN adapter works on a known good jaguar?
Reply With Quote
  #5   Spotlight this post!  
Unread 01-23-2014, 04:34 PM
Ido_Wolf's Avatar
Ido_Wolf Ido_Wolf is offline
LabVIEW Addict
AKA: Ido
FRC #2230 (General Angels)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Israel
Posts: 42
Ido_Wolf is an unknown quantity at this point
Re: Black Jaguars bricked after 2CAN update

Quote:
Originally Posted by Joe Ross View Post
Have you proven that your serial CAN adapter works on a known good jaguar?
Well it did work just a few days ago, and on previous seasons. I'm almost certain it's not the cable. What else can I do?
Reply With Quote
  #6   Spotlight this post!  
Unread 01-24-2014, 04:38 AM
Ido_Wolf's Avatar
Ido_Wolf Ido_Wolf is offline
LabVIEW Addict
AKA: Ido
FRC #2230 (General Angels)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Israel
Posts: 42
Ido_Wolf is an unknown quantity at this point
Re: Black Jaguars bricked after 2CAN update

Does anyone have another suggestion, please?
Reply With Quote
  #7   Spotlight this post!  
Unread 01-24-2014, 08:40 AM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,126
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Black Jaguars bricked after 2CAN update

Quote:
Originally Posted by Ido_Wolf View Post
Well it did work just a few days ago, and on previous seasons. I'm almost certain it's not the cable.
Wires do break on occasion.

Quote:
What else can I do?
You can verify that your serial CAN adapter works on a known good jaguar.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-24-2014, 11:30 PM
Levansic's Avatar
Levansic Levansic is offline
Registered User
AKA: Len Evansic
FRC #0585 (Cyber Penguins)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Tehachapi, CA
Posts: 201
Levansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud of
Re: Black Jaguars bricked after 2CAN update

We hit something similar today. In our case, we had issues with Windows Firewall, and new Internet Explorer, and Java; all three having an internal slap fight.

Our solution was to use the 2Can BDC-COM to do the update. It wasn't completely smooth sailing. We got the same "Bootloader not found" - which accompanied an extinguishing of the Jaguar's LED (PANIC!). Recover did not work in this case, with the Jaguar disappearing from visibility from the BDC-COM.

We cycled the power on the Jaguar, and re-attempted the flash, which worked. Almost all of our Jaguars required this second-attempt.

Important points:
1. Make sure the 2CAN has the 2.29 firmware that comes with the 2CAN BDC-COM.
2. Make sure that you terminate the Jaguar, and only have one on the 2CAN at a time.
3. Don't move the BDC-COM from the folder that has the required .dll's (all are unzipped together).
4. This method does need the firewall to allow the program, but it does not depend on any browser or Java working correctly.

-- Len
Reply With Quote
  #9   Spotlight this post!  
Unread 01-27-2014, 02:08 PM
Peleg2230's Avatar
Peleg2230 Peleg2230 is offline
Registered User
FRC #2230 (General Angels)
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Israel
Posts: 26
Peleg2230 is an unknown quantity at this point
Re: Black Jaguars bricked after 2CAN update

Thanks guys, we have a new problem now: we managed to connect a few jaguars through 2CAN successfully, but when we try to control the jaguars using actual LabVIEW code (motors' mode is set to CAN jaguar and all, running example code), the jaguars' LED remains in solid amber (disabled) even when we enable and pass a value to them.

We set the jaguars' numbers through the web dashboard.
__________________
General Angels #2230 :
2009 IS champions + chairman's award
2011 IS finalists
Reply With Quote
  #10   Spotlight this post!  
Unread 01-27-2014, 02:48 PM
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 344
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Black Jaguars bricked after 2CAN update

Could you please post screenshots of your code? That way we can rule out anything being wrong there.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #11   Spotlight this post!  
Unread 01-27-2014, 03:14 PM
Peleg2230's Avatar
Peleg2230 Peleg2230 is offline
Registered User
FRC #2230 (General Angels)
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Israel
Posts: 26
Peleg2230 is an unknown quantity at this point
Re: Black Jaguars bricked after 2CAN update

Here it is
Attached Thumbnails
Click image for larger version

Name:	Begin.PNG
Views:	24
Size:	4.7 KB
ID:	15980  Click image for larger version

Name:	Teleop.PNG
Views:	25
Size:	24.8 KB
ID:	15981  
__________________
General Angels #2230 :
2009 IS champions + chairman's award
2011 IS finalists
Reply With Quote
  #12   Spotlight this post!  
Unread 01-27-2014, 03:22 PM
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 344
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Black Jaguars bricked after 2CAN update

Alright, your code looks good. When you look at your 2CAN, what color is the light? If it is anything but green, there is an error there.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #13   Spotlight this post!  
Unread 01-27-2014, 03:25 PM
Peleg2230's Avatar
Peleg2230 Peleg2230 is offline
Registered User
FRC #2230 (General Angels)
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Israel
Posts: 26
Peleg2230 is an unknown quantity at this point
Re: Black Jaguars bricked after 2CAN update

The 2CAN is Blinking Green and Web Dashboard says the 2CAN connection is successful.
__________________
General Angels #2230 :
2009 IS champions + chairman's award
2011 IS finalists
Reply With Quote
  #14   Spotlight this post!  
Unread 01-27-2014, 04:09 PM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,126
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Black Jaguars bricked after 2CAN update

How are you adjusting the "Output" control in Teleop? Give a detailed description of exactly what we'd see you do as you try to make the motor go in one direction, then in the other.
Reply With Quote
  #15   Spotlight this post!  
Unread 01-27-2014, 04:19 PM
Ido_Wolf's Avatar
Ido_Wolf Ido_Wolf is offline
LabVIEW Addict
AKA: Ido
FRC #2230 (General Angels)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Israel
Posts: 42
Ido_Wolf is an unknown quantity at this point
Re: Black Jaguars bricked after 2CAN update

Quote:
Originally Posted by Alan Anderson View Post
How are you adjusting the "Output" control in Teleop? Give a detailed description of exactly what we'd see you do as you try to make the motor go in one direction, then in the other.
Currently we're just trying to get the motors to move/respond. When we change the output control to 1 (and control mode is set to vBus in Begin.vi), the jaguars remain in solid amber state and do not seem to move the motors forward.
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 03:37 PM.

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