Go to Post "Things don't get done unless somebody does them." - CaptainKirby [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 24-01-2010, 17:00
hm29168's Avatar
hm29168 hm29168 is offline
*poke poke*
FRC #2415 (WiredCats)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2010
Location: Georgia
Posts: 9
hm29168 is an unknown quantity at this point
C++ Sample Code not working...

Our team is trying to run the sample code from FIRST Forge and Cross the Road Electronics on our kitbot. All of the Jaguars work correctly, we have updated them to the correct firmware, and the programs used are just the default code from those websites. However, our 2CAN is stubbornly blinking red and green, possibly showing there might be some issue with the connection from the 2CAN to the cRIO. Anyone have any recommendations or advice on how to fix the problem? Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2010, 21:35
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 453
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
Re: C++ Sample Code not working...

Quote:
Originally Posted by hm29168 View Post
Our team is trying to run the sample code from FIRST Forge and Cross the Road Electronics on our kitbot. All of the Jaguars work correctly, we have updated them to the correct firmware, and the programs used are just the default code from those websites. However, our 2CAN is stubbornly blinking red and green, possibly showing there might be some issue with the connection from the 2CAN to the cRIO. Anyone have any recommendations or advice on how to fix the problem? Thanks.
Have you updated the firmware on the 2CAN? The color sequence you mentioned is from an earlier version of the firmware. The latest version is 1.5 and can be downloaded from our site: www.crosstheroadelectronics.com or the AndyMark website. You will also need to download the firmware utility.
__________________
Mike Copioli
CTRE Hardware Engineer
http://www.ctr-electronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions
Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2010, 18:10
hm29168's Avatar
hm29168 hm29168 is offline
*poke poke*
FRC #2415 (WiredCats)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2010
Location: Georgia
Posts: 9
hm29168 is an unknown quantity at this point
Re: C++ Sample Code not working...

Just updated the firmware for CAN (version 1.5) on to the 2CAN, but we're still having problems. Now, the CAN is blinking red, despite of whether we load the FIRST Forge code or Cross the Road Electronics code. Any advice? Everything seems to be working: we can read the Jaguars from the web interface, the code builds and delivers properly, even put a new battery in for good measure.
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2010, 22:13
Gazoogleheimer Gazoogleheimer is offline
Registered User
AKA: Tyler
FRC #2415 (Westminster Wiredcats)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Atlanta
Posts: 2
Gazoogleheimer is an unknown quantity at this point
Unhappy Re: C++ Sample Code not working...

Essentially:

Even though we've upgraded to 1.5, the disabled/no communication message has simply changed from flashing red/green to blinking red. We have installed the plugin and altered the *.ini file. We have successfully upgraded all the Jaguar firmwares and can connect to them with the 2CAN to receive telemetry data successfully.

The 2CAN is at 192.168.0.42 (does the gateway have to be something special?) and is connected between the cRIO and the camera. We can successfully retrieve live image data from the camera in this configuration.

Which sample code should we be using--FirstForge or yours?

Is there any way to confirm communication between the cRIO and the 2CAN, or even if the plugin is successfully starting? It seems like a mysterious problem, and we must have something misconfigured. Is there no field to input the 2CAN IP? (does it use broadcast / ARP sniffing in the CAN plugin on the cRIO?) I'm tempted to try and hook up a packet sniffer just to be able to see what is going on (or not going on, as the case may be.)

We have had a deadline imposed on us of Thursday, and I was really looking forward to using CAN this year--so any guidance would be greatly appreciated, especially because we are planning on using 8 (tan) jaguars for our robot.
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2010, 16:40
hm29168's Avatar
hm29168 hm29168 is offline
*poke poke*
FRC #2415 (WiredCats)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2010
Location: Georgia
Posts: 9
hm29168 is an unknown quantity at this point
Re: C++ Sample Code not working...

Finally decided to open up the target console when testing the program, after changing cRIOs, and realized that we were having the same error message as this thread (http://www.chiefdelphi.com/forums/sh...ad.php?t=80821) (-52010). Is it probably the same plugin problem?
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2010, 20:59
Gazoogleheimer Gazoogleheimer is offline
Registered User
AKA: Tyler
FRC #2415 (Westminster Wiredcats)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Atlanta
Posts: 2
Gazoogleheimer is an unknown quantity at this point
Smile Re: C++ Sample Code not working...

Problem resolved, thanks to the new *.out plugin!

Green-flashing 2CAN's are happy 2CAN's!
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
Help Autonomous code not working team550 Programming 5 14-01-2008 10:35
Incrementation Code not working benhulett Programming 6 12-02-2007 17:39
easyc demo code not working sniggel Programming 5 28-01-2007 16:40
2007 demo code not working thefro526 Programming 4 12-01-2007 23:43
Camera code not working.... DemonYawgmoth Programming 5 11-02-2006 09:21


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

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