Go to Post STEM is the new cool, STEM is the new fun, but nobody said STEM is the new easy. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 09-10-2013, 21:53
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Communication issues?

That's at least what I assume it is. My team recently agreed to present our robot at sports event (football game?) to show our support for breast-cancer awareness, and we forgot to check that the robot works first (how can you turn that down?). We booted up the robot today to do some diagnostics with the solenoids not properly functioning, and we found a new issue. The first time we turned it on, it was okay. It could drive and actuate two of the three solenoids. I was told to redeploy the code (because the hardware is apparently flawless), and we began having trouble. I should mention that before we started it up, we switched the target server to the proper one for a 4 slot cRIO. When it booted up, the "Robot Code" and "Communications" lights were on, but the robot itself was unresponsive. We tried re-imaging the cRIO, restarting the DriverStation, restarting the computer, and rebooting the robot. Every time resulting in a similar message:
Code:
Warning <Code> 44002 occurred at Ping Results:  link-GOOD,  DS radio(.4)-bad,  robot radio(.1)-bad,  cRIO(.2)-GOOD,  FMS-bad Driver Station
<time>10/9/2013 5:50:26 PM<unique#>12
FRC:  Driver Station ping status has changed.
WARNING <Code> 44008 occurred at FRC_NetworkCommunications <radioLostEvents>  6.501 <radioSeenEvents>
FRC:  Robot radio detection times.
Warning <Code> 44003 occurred at Driver Station
<time>10/9/2013 5:47:36 PM<unique#>11
FRC:  No robot code is currently running.
WARNING <Code> 44007 occurred at FRC_NetworkCommunications <secondsSinceReboot> 3.279
FRC:  Time since robot boot.
Warning <Code> 44002 occurred at Ping Results:  link-GOOD,  DS radio(.4)-bad,  robot radio(.1)-bad,  cRIO(.2)-GOOD,  FMS-bad Driver Station
<time>10/9/2013 5:47:20 PM<unique#>10
FRC:  Driver Station ping status has changed.
Warning <Code> 44002 occurred at Ping Results:  link-GOOD,  DS radio(.4)-bad,  robot radio(.1)-bad,  cRIO(.2)-bad,  FMS-bad Driver Station
<time>10/9/2013 5:47:15 PM<unique#>9
FRC:  Driver Station ping status has changed.

Warning <Code> 44004 occurred at Driver Station
<time>10/9/2013 5:47:15 PM<unique#>8
FRC:  The Driver Station has lost communication with the robot.
Code:
Warning <Code> 44002 occurred at Ping Results:  link-GOOD,  DS radio(.4)-bad,  robot radio(.1)-bad,  cRIO(.2)-GOOD,  FMS-bad Driver Station
<time>10/9/2013 5:44:05 PM<unique#>4
FRC:  Driver Station ping status has changed.
WARNING <Code> 44008 occurred at FRC_NetworkCommunications <radioLostEvents>  102.504 <radioSeenEvents>
FRC:  Robot radio detection times.
WARNING <Code> 44007 occurred at FRC_NetworkCommunications <secondsSinceReboot> 104.262
Warning <Code> 44001 occurred at No Change to Network Configuration: "Ethernet"<noNICConfig>
FRC:  Time since robot boot.

Driver Station
<time>10/9/2013 5:43:38 PM<unique#>3

ERROR <Code> -44009 occurred at Driver Station
<time>10/9/2013 5:43:38 PM<unique#>2
FRC:  A joystick was disconnected while the robot was enabled.

Warning <Code> 44006 occurred at Driver Station
<time>10/9/2013 5:43:38 PM<unique#>1
FRC:  Custom I/O is not enabled or is not connected to the driver station.
Most of these we've seen (switching network types, disconnecting the joystick, etc), but we're not sure what to make of some of these things. Were thinking it might be the DriverStation itself, because of something we had done earlier that day. We tried to set up the gyro on another robot (with an 8 slot cRIO). It was miserable. It starts at some huge number and counts up at an increasingly fast rate. This dynamic message continues to display on the DriverStation regardless of which robot (if any) is currently connected (by the way, we never got the gyro to work). Does anyone have any ideas as to what the cause of the problem is? Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 10-10-2013, 21:54
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Communication issues?

The fact that the communication and robot code lights were on makes me strongly suspect that communication between the cRIO and the driver station is not the issue.

Questions:
  1. You said the problems started when you downloaded new code. Are you sure you put the correct, and functioning, code on the robot?
  2. Does the Robot Signal Light show the correct slow blink when the robot is enabled for teleop? (on for approx. 2 seconds, off for approx. 0.5 seconds)
  3. Do you get any messages in NetConsole?
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor

Last edited by RyanCahoon : 10-10-2013 at 22:01. Reason: Removed some questions, add another
Reply With Quote
  #3   Spotlight this post!  
Unread 10-10-2013, 22:06
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Re: Communication issues?

Quote:
You said the problems started when you downloaded new code. Are you sure you put the correct, and functioning, code on the robot?
I'm sure that the code functions. I stripped the entire code down to the bare minimum for driving
Quote:
LabVIEW, Java, or C++?
The code I downloaded was C++, and so was the code prior to re-imaging the cRIO
Quote:
What do you mean by "switched the target server to the proper one"?
In WindRiver, you have to select the target depending on weather you are using a cRIO or cRIO-II (I'm not 100% sure of the terminology... I'm working from memory)
Quote:
Does the Robot Signal Light show the correct slow blink when the robot is enabled for teleop? (on for approx. 3 seconds, off for approx. 0.5 seconds)
Is that a light on the cRIO? The only light whose blinking patterns I can remember are the ones on the Talons (orange, same time on as off; Pretty sure it should be solid orange when enabled). I appreciate the response :)
Reply With Quote
  #4   Spotlight this post!  
Unread 10-10-2013, 22:15
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Communication issues?

Quote:
Originally Posted by ekapalka View Post
The code I downloaded was C++ [...] In WindRiver, you have to select the target depending on weather you are using a cRIO or cRIO-II
Thanks for clarifying. I only looked at your linked picture after I posted and that answered the question of which language. The answer about the target server came shortly thereafter. I've mostly programmed in LabVIEW and Java, so I didn't remember that.

Quote:
Originally Posted by ekapalka View Post
Is that a light on the cRIO? The only light whose blinking patterns I can remember are the ones on the Talons (orange, same time on as off; Pretty sure it should be solid orange when enabled).
The RSL is the orange dome light that connects to a separate port on the digital sidecar. If you don't have one connected, there's a small LED on the DSC next to the RSL port that mirrors the RSL, so you can use that instead.

It's helpful to know the state of the Talons as well. If they were solid orange when the robot was enabled, than that basically answers the same question.


New question: Is your program printing any error messages in NetConsole? Can you try printing the values that you're sending to the motors? (I believe in C++ you can just use printf or cout)
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
Reply With Quote
  #5   Spotlight this post!  
Unread 11-10-2013, 07:51
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: Communication issues?

The messages you post are not all that unusual. I can help interpret some of it.

Quote:
Warning <Code> 44006 occurred at Driver Station
<time>10/9/2013 5:43:38 PM<unique#>1
FRC: Custom I/O is not enabled or is not connected to the driver station.
This means that calls to read and control the Cypress I/O board failed. This often isn't an issue, but if you expected it to work, the message helps verify that there was an issue.

Quote:
ERROR <Code> -44009 occurred at Driver Station
<time>10/9/2013 5:43:38 PM<unique#>2
FRC: A joystick was disconnected while the robot was enabled.
This means what it says. While the robot was enabled, a joystick was disconnected or stopped working. If you didn't physically disconnect it, this message indicates that power management, static electricity, or cabling is causing you to lose the joysticks.

Quote:
WARNING <Code> 44007 occurred at FRC_NetworkCommunications <secondsSinceReboot> 104.262
Warning <Code> 44001 occurred at No Change to Network Configuration: "Ethernet"<noNICConfig>
Messages like this are normal and tell us how long the cRIO had been up before it was connected to the DS and that the DS didn't need to change the network config for "Ethernet".

Quote:
WARNING <Code> 44008 occurred at FRC_NetworkCommunications <radioLostEvents> 102.504 <radioSeenEvents>
FRC: Robot radio detection times.
This one indicates that the radio was rebooted and some details that matter sometimes.

Quote:
Warning <Code> 44002 occurred at Ping Results: link-GOOD, DS radio(.4)-bad, robot radio(.1)-bad, cRIO(.2)-GOOD, FMS-bad Driver Station
<time>10/9/2013 5:44:05 PM<unique#>4
FRC: Driver Station ping status has changed.
This message is produced anytime that a ping to a device changes.

The better way to look at this info is in the DS Log file viewer. It condenses these messages and filters them. It also places them on a time line along with CPU and voltage levels and helps identify many more issues.

As for what is wrong with the robot, it doesn't seem to be a communications issue. It seems to be enabled at one point, but the code and/or electrical isn't doing what it should. Since it sounds like you made significant changes to the code -- even simplifications count as changes -- I'd start there. Use the Charts tab to see how the code is running. Add print statements to see what code is running, etc.

To debug the gyro, you should probably break it down. If you were using LabVIEW, I'd suggest you run the example project for the gyro on your cRIO. If it works, use it as a template to compare against. If it also doesn't work, look at the wiring, the sensor, etc. I assume you have similar examples in C++.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 12-10-2013, 13:46
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Re: Communication issues?

Soo... we can't print any information to the Driver Station or Netconsole.... The orange light, when enabled on either robot, stays on for about two seconds and then off for about half of one, and when disabled it's about an equally timed on/off sequence. Now neither robot is functioning. I'm beginning to think that WindRiver is just re-using the old *.out file (because the "gyro reading" [accumulator] continues to count up no matter which robot is attached)... any ideas?
Reply With Quote
  #7   Spotlight this post!  
Unread 13-10-2013, 02:05
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Communication issues?

Quote:
Originally Posted by ekapalka View Post
The orange light, when enabled on either robot, stays on for about two seconds and then off for about half of one, and when disabled it's about an equally timed on/off sequence.
Sounds right. I'm pretty sure this is a program issue, and not a comm issue.

Quote:
Originally Posted by ekapalka View Post
Soo... we can't print any information to the Driver Station or Netconsole.... Now neither robot is functioning. I'm beginning to think that WindRiver is just re-using the old *.out file (because the "gyro reading" [accumulator] continues to count up no matter which robot is attached)... any ideas?
Double-check your build log to see if there are any errors. Completely different IDE and everything, but I've seen Visual Studio get into weird states where it will report permission errors and won't overwrite its old build files.

What happens if you manually delete the existing .out file and rebuild?
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
Reply With Quote
  #8   Spotlight this post!  
Unread 13-10-2013, 02:34
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Re: Communication issues?

Quote:
Originally Posted by RyanCahoon View Post
Sounds right.
[...]
What happens if you manually delete the existing .out file and rebuild?
Firstly, I'm glad that something is working properly :D You mean the *.out file in the IDE? The same thing happens when I delete it. I'm thinking I may need to FTP wipe the thing from the cRIO... I'm working on my FileZilla skills, but I haven't got a robot to test on at... 12:30am.... Thanks for the reply!
Reply With Quote
  #9   Spotlight this post!  
Unread 15-10-2013, 10:26
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Re: Communication issues?

Here's an update. We finally properly deleted the *.out file from WindRiver, and I believe we may have caused new problems in our search to find the original issue. Now, there is no flashing light on the Digital Sidecar, no errors in the build, and no gyro reading (yes!). For some odd reason, when we re-image the cRIO (which we've done quite a few times in the last day or so), the module which connects to the Digital Sidecar is now red, where it was green before in the same location (slot 3). According to the control system information:
Quote:
Any red modules are either missing or not installed in the correct slot
...so does that mean we burnt out or damaged the module? Thanks!
Reply With Quote
  #10   Spotlight this post!  
Unread 15-10-2013, 10:29
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,830
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Communication issues?

The normal location for the Digital module (where the Digital Sidecar attaches) is slot 2.

Slot 3 is for the pneumatics module.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 05:28.

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