Go to Post I love the smell of burning silicon in the morning. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 04-02-2010, 01:50
alex42 alex42 is offline
Registered User
FRC #1072
 
Join Date: Jan 2010
Location: San Jose
Posts: 36
alex42 is an unknown quantity at this point
No Robot Code

When we run code on the cRIO as a startup, it keeps switching between working and no robot code. Backstory in case it helps: first of all, we are using LabVIEW. For a while, we've been having minor wireless connection problems. We've been trying to solve them, but it wasn't a high priority. Yesterday, the connection started cutting out much more often and for longer. At the same time, the robot forgetting it had code entered the mix. We found that some of the IP addresses had been set wrong, and fixing that seems to have fixed the connection problems, but still the robot only remembers it has code on it about half the time.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2010, 06:43
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: No Robot Code

Is this after a cRIO button-press reboot or after a circuit breaker robot power-up?

The reason I ask, is that the power-up means devices are booting up simultaneously, and the issue we've found is that if the bridge finishes after the cRIO, the bridge will not let the cRIO receive traffic.

If the cRIO finishes booting last, or is reset when in this failure mode, the bridge will begin working again.

If these symptoms match what you are seeing, an upcoming DS patch will work around the issue by periodically telling the bridge to redo its routing tables when it seems to be unresponsive.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2010, 18:13
alex42 alex42 is offline
Registered User
FRC #1072
 
Join Date: Jan 2010
Location: San Jose
Posts: 36
alex42 is an unknown quantity at this point
Re: No Robot Code

Actually, I don't think we've ever seen what you described. We never had a problem where the robot flatly wouldn't communicate; it just would stop communicating briefly at random intervals. To be more precise, what is happening with us currently is the robot will work for a second or two, then it will stop working for a second or two as the driver station says "no robot code". This cycle will repeat at frequent but random intervals for as long as the robot is on.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2010, 23:03
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,113
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: No Robot Code

Quote:
Originally Posted by alex42 View Post
Actually, I don't think we've ever seen what you described. We never had a problem where the robot flatly wouldn't communicate; it just would stop communicating briefly at random intervals. To be more precise, what is happening with us currently is the robot will work for a second or two, then it will stop working for a second or two as the driver station says "no robot code". This cycle will repeat at frequent but random intervals for as long as the robot is on.
Is this with wireless networking? You might be getting interference from another wireless access point on the same channel your router has chosen. Some teams have corrected similar flaky communication by configuring their wireless router to another WiFi channel.
Reply With Quote
  #5   Spotlight this post!  
Unread 04-02-2010, 23:37
alex42 alex42 is offline
Registered User
FRC #1072
 
Join Date: Jan 2010
Location: San Jose
Posts: 36
alex42 is an unknown quantity at this point
Re: No Robot Code

It definitely isn't a connection problem, since the communication is fine. In fact we fixed it. We reimaged the cRIO and the problem went away. Considering we also reimaged the cRIO yesterday and that solved nothing, we have no idea why this worked. But we're going to not look a gift horse in the mouth. Anyways, inexplicable stuff happens to our robot all the time.

As for you, HotBotz, I'm probably vastly underestimating your intelligence, but make sure you're loading your code so that it will run on startup. I don't even know if it's possible to do otherwise in languages other than LabVIEW, but it is possible there. That's the only advice I can think of.
Reply With Quote
  #6   Spotlight this post!  
Unread 07-02-2010, 16:31
alex42 alex42 is offline
Registered User
FRC #1072
 
Join Date: Jan 2010
Location: San Jose
Posts: 36
alex42 is an unknown quantity at this point
Re: No Robot Code

Allow me to correct myself: We fixed it temporarily. It was fine for a few days, then the problem came back. Reimaging it again made it work again, but we're sure it won't last. If anyone happens to know a permanent fix, we'd really like to not have to reimage the cRIO regularly just to keep it working.
Reply With Quote
  #7   Spotlight this post!  
Unread 07-02-2010, 23:21
Hotbotz2640's Avatar
Hotbotz2640 Hotbotz2640 is offline
Registered User
AKA: Lily F.
FRC #2640 (Hotbotz)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Reidsville, NC
Posts: 2
Hotbotz2640 is an unknown quantity at this point
Send a message via AIM to Hotbotz2640
Re: No Robot Code

We figured it out with another team, but thank you for responding. We had several kinks in our programming.
Reply With Quote
  #8   Spotlight this post!  
Unread 08-02-2010, 15:21
alex42 alex42 is offline
Registered User
FRC #1072
 
Join Date: Jan 2010
Location: San Jose
Posts: 36
alex42 is an unknown quantity at this point
Re: No Robot Code

New information: it seems it is a communications problem. Yesterday the problem returned, and we have now reimaged the cRIO twice without fixing it. However, the code disappears much less when we are connecting directly to the cRIO than when we use wireless. It's a really weird connection problem, though, since the DS swears the connection to the cRIO is solid at all times. So it's apparently a connection problem such that the connection is never actually lost, and it's exacerbated by but not caused by connecting wirelessly rather than directly.
Reply With Quote
  #9   Spotlight this post!  
Unread 08-02-2010, 15:29
alex42 alex42 is offline
Registered User
FRC #1072
 
Join Date: Jan 2010
Location: San Jose
Posts: 36
alex42 is an unknown quantity at this point
Re: No Robot Code

Oh, and also, we just recently started having wired communications issues. Sometimes when we hook us the DS to the cRIO the communication will work, and sometimes we will have to reboot the cRIO several times and/or switch cables to make it work. Once it works, though, it will continue to work for as long as it's hooked up. I have no idea if this is related to the no code problem or if our cRIO just hates us enough to give us multiple problems at the same time.
Reply With Quote
  #10   Spotlight this post!  
Unread 09-02-2010, 09:53
goodsky's Avatar
goodsky goodsky is offline
Programming Mentor
AKA: Skyler
FRC #1902 (Exploding Bacon)
Team Role: College Student
 
Join Date: Sep 2007
Rookie Year: 2005
Location: Orlando
Posts: 55
goodsky has a spectacular aura aboutgoodsky has a spectacular aura aboutgoodsky has a spectacular aura about
Re: No Robot Code

Hey there! We were struggling with similar issues for quite a while. First we would power on the robot and we could not get connection to the robot (but it was random, sometimes we would get it and other times we would not). And then after a while we started getting robot communications but it whenever we tried to download code it would come back up saying No code '[green] robot communications [red] robot code'.

I am not certain if our fixes can help you, but it is worth a try I hope! For the communications, it was just the fact that the cRio boots faster than the wireless on the robot, and we need to press the mini reset button on the cRio after the robot is up to get comms. (It sounds like you might be doing this already).
For the robot code issue, we discovered there was an object (the DriverStationLCD to be specific) that would cause the code to not link or compile correctly. This was for C++, but possibly our problems could help you figure our yours.

Keep posting! You will figure out the problem eventually!
__________________
OINK OINK BOOM!!!
Reply With Quote
  #11   Spotlight this post!  
Unread 09-02-2010, 20:52
alex42 alex42 is offline
Registered User
FRC #1072
 
Join Date: Jan 2010
Location: San Jose
Posts: 36
alex42 is an unknown quantity at this point
Re: No Robot Code

Thanks for the suggestion, but I don't think it's that. The code seems to compile just fine, and most of the time it runs just fine. When the cRIO doesn't work, it's still the same code running, so it doesn't seem to be the code. I also don't think that the necessity of reloading the code after reimaging the cRIO is what fixes it, since we load new versions of the code all the time, and at least once we loaded new code while the problem was happening and that didn't fix it.
Reply With Quote
  #12   Spotlight this post!  
Unread 04-02-2010, 21:00
Hotbotz2640's Avatar
Hotbotz2640 Hotbotz2640 is offline
Registered User
AKA: Lily F.
FRC #2640 (Hotbotz)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Reidsville, NC
Posts: 2
Hotbotz2640 is an unknown quantity at this point
Send a message via AIM to Hotbotz2640
Re: No Robot Code

I'm not sure if I am having the same problem but I am stumped right now. When I turn on the classmate, the "communication" has a green light and the "stop button" has a green light but the "robot code" is still red. Underneath, it says "no robot code". What should i do??

Last edited by Hotbotz2640 : 04-02-2010 at 21:02. Reason: wrong word
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
No Robot Code eaglesfan10 C/C++ 6 03-02-2010 22:34
Compressor Code causes No Robot Code Error sircedric4 C/C++ 25 03-02-2010 10:13
No Robot Code mlim NI LabVIEW 10 21-01-2010 17:33
Robot Code? leftylink Programming 0 18-02-2008 14:34
Default Robot Code lvhsrobotics Programming 2 10-01-2003 16:55


All times are GMT -5. The time now is 17:01.

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