Go to Post A rule is a rule is a rule. - Cory [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2012, 15:02
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
cRIO only works in safe mode (also: where are docs?)

I can't seem to find the good comprehensive documentation like in years past on the FIRST or NI site about crio, driver station, etc... I can only find basics getting started. If someone can point me in that direction, I'd be much appreciative.

(if you don't want to read story, questions are at end)

Yesterday I was working on re-downloading our old logomotion code compiled for 2012 on a v43 formatted crio for an upcoming school open house demo. First try I downloaded and rebooted successfully, but when I enabled, the jaguars (On CAN bus) did not enable, except the last one. I presses the space bar to disable, but to my shock, horror, and dismay, it is the new estop button AND the reboot robot button is disabled, so I had to power cycle the robot manually (not fun).
Upon the next boot up and enable, the can system worked, but no motor commands were being sent (strange, since it was our final working code on same robot from last year), so I added a few printfs and commented out unneeded code. Re-dowloaded a few times with more printfs, etc, and rebooted. Then the Symptoms started.
It was taking a while to come back up, so I checked Ethernet cables, and rebooted full robot stack. It still did not come up after 5 minutes, so I direct plugged into crio (bypassing switch), which still did not work. after unplugging unnecessary-to-drive systems, making sure necessary systems were plugged in, and battery was ok, I rebooted robot stack again.
Still nothing.
I flipped the safe mode dip switch (cRIO I) and rebooted, and it came up. I re-imaged it, turned off safe mode, and rebooted. Still nothing.
I watched the netconsole, which stayed empty (no pings either)
I watched the status lights above the dip switches, and found that the "Status" light was slow blinking yellow.


So,
#1 what is the key to disable the robot? (last year was spacebar)
#2 what does this yellow blinking "Status" (above "User" light) light mean?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #2   Spotlight this post!  
Unread 07-02-2012, 15:16
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: cRIO only works in safe mode (also: where are docs?)

1. Enter is the new disable.
-During the beta test, we brought up the issue of accidental e-stops, but the FRC/NI people would not consider changing the e-stop/disable mapping to be consistent with past years.

2. No help here

3. If you can't get it to do anything, you can format the cRio in NI MAX (Measurement and Automation Explorer) - find the cRio and "Format Disk".
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #3   Spotlight this post!  
Unread 07-02-2012, 15:24
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: cRIO only works in safe mode (also: where are docs?)

Quote:
Originally Posted by apalrd View Post
1. Enter is the new disable.
-During the beta test, we brought up the issue of accidental e-stops, but the FRC/NI people would not consider changing the e-stop/disable mapping to be consistent with past years.

2. No help here

3. If you can't get it to do anything, you can format the cRio in NI MAX (Measurement and Automation Explorer) - find the cRio and "Format Disk".
1. thanks
2. what was the question you are referring to?
3. would that work in safe mode?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #4   Spotlight this post!  
Unread 07-02-2012, 15:34
frasnow's Avatar
frasnow frasnow is offline
Software
no team
Team Role: Alumni
 
Join Date: Jun 2010
Rookie Year: 2010
Location: PNW
Posts: 84
frasnow is a name known to allfrasnow is a name known to allfrasnow is a name known to allfrasnow is a name known to allfrasnow is a name known to allfrasnow is a name known to all
Re: cRIO only works in safe mode (also: where are docs?)

Every year FIRST changes the navigation of the documentation and it seems to get harder to find.

From the FRC page go to Game and Season Info-->Competition Manual-->Kit of Parts. Then use the links on the right side to navigate the various documentation pages. I had to look at the page a couple of times to figure this out, since it's not intuitive.

Most of the Java and C++ progamming related documentation is on FIRST Forge under the WPILib project. There must be links to this in the other documents on the Kit of Parts site, because I had to remember this from last year.
  #5   Spotlight this post!  
Unread 07-02-2012, 15:58
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: cRIO only works in safe mode (also: where are docs?)

Quote:
Originally Posted by frasnow View Post
Every year FIRST changes the navigation of the documentation and it seems to get harder to find.

From the FRC page go to Game and Season Info-->Competition Manual-->Kit of Parts. Then use the links on the right side to navigate the various documentation pages. I had to look at the page a couple of times to figure this out, since it's not intuitive.

Most of the Java and C++ progamming related documentation is on FIRST Forge under the WPILib project. There must be links to this in the other documents on the Kit of Parts site, because I had to remember this from last year.
That is the documentation I did find. Specifically this page: http://www.usfirst.org/roboticsprogr...control-system

However the Details on the cRIO link is broken, and I don't see any other manuals on status lights, etc...
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #6   Spotlight this post!  
Unread 07-02-2012, 18:15
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: cRIO only works in safe mode (also: where are docs?)

Update: safe mode does not work either now.
Status light sequence:

[power on]
[power light on]
half second delay
status light on
waits 3 or 4 seconds
status light off
one second delay
status blink
one second
status blink
one second
status blink
etc...
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #7   Spotlight this post!  
Unread 07-02-2012, 19:08
DavisC DavisC is offline
Registered User
FRC #0539 (Titans)
Team Role: College Student
 
Join Date: Jul 2011
Rookie Year: 2010
Location: Virginia
Posts: 200
DavisC is just really niceDavisC is just really niceDavisC is just really niceDavisC is just really nice
Re: cRIO only works in safe mode (also: where are docs?)

I found this for the FRC-cRIO 1 by doing a google search, the FRC II docs is on the NI Community
Quote:
STATUS LED
The STATUS LED is off during normal operation. The cRIO-FRC
indicates specific error conditions by flashing the STATUS LED a certain
number of times as shown in Table 3.

USER1 LED
You can define the USER1 LED to meet the needs of your application. To
define the LED, use the RT LEDs VI in LabVIEW. For more information
about the RT LEDs VI, refer to the LabVIEW Help.

Table 3. Status LED Indications
Number of Flashes Indication

1 The chassis is unconfigured. Use MAX to configure the chassis. Refer
to the Measurement & Automation Explorer Help for information about
configuring the chassis.

2 The chassis has detected an error in its software. This usually occurs
when an attempt to upgrade the software is interrupted. Reinstall
software on the chassis. Refer to the Measurement & Automation
Explorer Help for information about installing software on the chassis.

3 The chassis is in safe mode because the SAFE MODE DIP switch is in
the ON position. Refer to the Configuring DIP Switches section for
information about the Safe Mode DIP switch.

4 The software has crashed twice without rebooting or cycling power
between crashes. This usually occurs when the chassis runs out of
memory. Review your RT VI and check the memory usage. Modify
the VI as necessary to solve the memory usage issue.

Continuous flashing or solid
The device may be configured for DHCP but unable to get an IP address
because of a problem with the DHCP server. Check the network
connection and try again. If the problem persists, contact National
Instruments.
http://www.bu.edu/bufirst/files/2011/01/cRIO_Manual.pdf

Last edited by DavisC : 07-02-2012 at 19:10.
  #8   Spotlight this post!  
Unread 07-02-2012, 19:33
msulaimain's Avatar
msulaimain msulaimain is offline
Registered User
AKA: Muhammad Sulaiman
FRC #3346 ([{Kamikaze Komets}])
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2009
Location: USA
Posts: 36
msulaimain can only hope to improve
Send a message via AIM to msulaimain Send a message via Yahoo to msulaimain
Re: cRIO only works in safe mode (also: where are docs?)

I had the same problem like a day ago. I resolved it just by tinkering with the imaging tool. First I imaged it with safemode and ipreset dip switches on. But then I imaged it with all the dip switches on except for safemode which I left off. Then it worked perfectly. What your cause for the safemode and crazy lights is basically that your cRIO root files are corrupt and that is why it's causing your cRIO to go into safemode and act crazy. It needs imaging. After what I did above I didn't have any problems after that. I had to play around. I'm sure you can resolve it as well. It just takes a while and makes your head hurt.
__________________
int main()
{
::::::::: include=>commitment;
::::::::: int=>school name=>Asheboro::High
::::::::: int=>team name=>Kamikaze::Komets;
::::::::: Priority_Queue=>FRC Championship::2012;
::::::::: Max_Element=>Teamwork;
}
  #9   Spotlight this post!  
Unread 07-02-2012, 19:47
DavisC DavisC is offline
Registered User
FRC #0539 (Titans)
Team Role: College Student
 
Join Date: Jul 2011
Rookie Year: 2010
Location: Virginia
Posts: 200
DavisC is just really niceDavisC is just really niceDavisC is just really niceDavisC is just really nice
Re: cRIO only works in safe mode (also: where are docs?)

Yes, it definately makes your head hurt and I suffered early last year. When I finally figured out how I got it to work every time, I made it into a guide and I follow the guide to the point.

So, I attached it as a PDF for you.

Hope it works!
Attached Files
File Type: pdf Imaging the cRIO.pdf (191.1 KB, 125 views)
  #10   Spotlight this post!  
Unread 07-02-2012, 22:58
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: cRIO only works in safe mode (also: where are docs?)

thank you!
I'll try that tomorrow
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Closed Thread


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 01:35.

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