Go to Post Being in FIRST and putting the focus on the robot is like building a robot and putting the focus on the bandsaw (or mill or lathe, or whatever you do your machining with). The robot is a tool we use to play the game, the game is a tool we use to inspire and teach. - GeeTwo [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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-02-2017, 21:32
BetaBlues's Avatar
BetaBlues BetaBlues is offline
Registered User
FRC #5975 (Beta Blues)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Portland, Oregon
Posts: 13
BetaBlues is an unknown quantity at this point
Question Driver Station No Robot Code Connection Error

Hello everyone! We are having trouble with the FRC Driver Station. We deploy our code from Eclipse which builds fine, but then when we go to the driver station it shows red on "code connection". We cannot enable the robot to test our code. We have tried pushing older code that we know works from Github but it still isn't working. Has anyone had this problem before and what can we do?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2017, 21:35
Bkeeneykid's Avatar
Bkeeneykid Bkeeneykid is offline
#wheatcoastneatcoast
AKA: Devin Keeney
FRC #1982 (Cougar Robotics); Season Long Fantasy FIRST (F3)
Team Role: Leadership
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Lenexa, Kansas
Posts: 368
Bkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud of
Re: Driver Station No Robot Code Connection Error

This is most likely because your code is crashing directly on boot. Check the log (RioLog) and see if it has an error. If it doesn't, there's must be an issue with deploying the code. SSH into the rio and make sure that the executable is actually on the Rio.
__________________

F4 Network Website Designer

2010-2012: A Whole Buncha FLL Teams; Team Spirit, Gracious Professionalism Award winner
2015-Current: FRC 1982, Captain, Electrical Lead
Beginning FIRST Volunteer

Moderator on the FIRSTwiki
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2017, 14:13
BetaBlues's Avatar
BetaBlues BetaBlues is offline
Registered User
FRC #5975 (Beta Blues)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Portland, Oregon
Posts: 13
BetaBlues is an unknown quantity at this point
Re: Driver Station No Robot Code Connection Error

We are using Windows 7 to talk to the roborio. What's the easiest way to use SSH on this system? Thank you!
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2017, 15:08
BetaBlues's Avatar
BetaBlues BetaBlues is offline
Registered User
FRC #5975 (Beta Blues)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Portland, Oregon
Posts: 13
BetaBlues is an unknown quantity at this point
Re: Driver Station No Robot Code Connection Error

We are able to ssh into the roborio. Where are the executable and the log file located? Thank you!
Reply With Quote
  #5   Spotlight this post!  
Unread 04-02-2017, 15:10
vauc2000 vauc2000 is offline
Registered User
FRC #1797 (Phoenix 1797)
Team Role: Programmer
 
Join Date: Feb 2017
Rookie Year: 2016
Location: London, UK
Posts: 6
vauc2000 is an unknown quantity at this point
Re: Driver Station No Robot Code Connection Error

One of the easiest ways to ssh into the RoboRIO would be to download PuTTY. This SSH client works on Windows, as well as other operating systems. Make sure you are connected to the RoboRIO network, and then input the robot hostname (RoboRIO-[your team number without leading zeroes]-FRC.local). For example, your hostname would be RoboRIO-5975-FRC.local.

On another note, have you renamed the Robot class? Another reason why the driver station may be providing the error of "No Robot Code" could be that you renamed the main Robot class without updating the build.properties file.
Reply With Quote
  #6   Spotlight this post!  
Unread 04-02-2017, 15:29
BetaBlues's Avatar
BetaBlues BetaBlues is offline
Registered User
FRC #5975 (Beta Blues)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Portland, Oregon
Posts: 13
BetaBlues is an unknown quantity at this point
Re: Driver Station No Robot Code Connection Error

We are logged in as admin. Do we need to be logged in as root to see the Riolog and the executable? We ask a lot of questions (and appreciate the answers)
Reply With Quote
  #7   Spotlight this post!  
Unread 04-02-2017, 15:42
vauc2000 vauc2000 is offline
Registered User
FRC #1797 (Phoenix 1797)
Team Role: Programmer
 
Join Date: Feb 2017
Rookie Year: 2016
Location: London, UK
Posts: 6
vauc2000 is an unknown quantity at this point
Re: Driver Station No Robot Code Connection Error

You should not need to be logged in as root to see the executable, admin is fine. To ensure that the executable is in place, type the command "ls /home/lvuser" and see if a file called "FRCUserProgram.jar" (if you are using Java) is in the list of filenames outputted. If you are using c++, I assume the user program would be called FRCUserProgram or something similar, but I am not entirely sure.

To check the RioLog, the simplest way would be to look at the right side of the driver station.
Reply With Quote
  #8   Spotlight this post!  
Unread 04-02-2017, 15:43
BetaBlues's Avatar
BetaBlues BetaBlues is offline
Registered User
FRC #5975 (Beta Blues)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Portland, Oregon
Posts: 13
BetaBlues is an unknown quantity at this point
Re: Driver Station No Robot Code Connection Error

Quote:
Originally Posted by vauc2000 View Post
One of the easiest ways to ssh into the RoboRIO would be to download PuTTY. This SSH client works on Windows, as well as other operating systems. Make sure you are connected to the RoboRIO network, and then input the robot hostname (RoboRIO-[your team number without leading zeroes]-FRC.local). For example, your hostname would be RoboRIO-5975-FRC.local.

On another note, have you renamed the Robot class? Another reason why the driver station may be providing the error of "No Robot Code" could be that you renamed the main Robot class without updating the build.properties file.
So we found PuTTY. It's lovely <3. We are able to log into the RoboRio as admin. We don't know the password for root. We're using Java; how do we check the build.properties file?
Reply With Quote
  #9   Spotlight this post!  
Unread 04-02-2017, 15:49
vauc2000 vauc2000 is offline
Registered User
FRC #1797 (Phoenix 1797)
Team Role: Programmer
 
Join Date: Feb 2017
Rookie Year: 2016
Location: London, UK
Posts: 6
vauc2000 is an unknown quantity at this point
Re: Driver Station No Robot Code Connection Error

The build.properties file is on the top level of the package hierarchy in eclipse. It should appear under the folders labeled "build" and "dist".
Reply With Quote
  #10   Spotlight this post!  
Unread 04-02-2017, 16:03
BetaBlues's Avatar
BetaBlues BetaBlues is offline
Registered User
FRC #5975 (Beta Blues)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Portland, Oregon
Posts: 13
BetaBlues is an unknown quantity at this point
Re: Driver Station No Robot Code Connection Error

Quote:
Originally Posted by vauc2000 View Post
The build.properties file is on the top level of the package hierarchy in eclipse. It should appear under the folders labeled "build" and "dist".
Our top tabs are as follows:
Flie
Edit
Source
Refactor
Navigate
Search
Project
WPIlib
Run
Window
Help

We are confused - where do we find the package hierarchy/folders labeled "build" and "dist"? Thank you
Reply With Quote
  #11   Spotlight this post!  
Unread 04-02-2017, 16:07
vauc2000 vauc2000 is offline
Registered User
FRC #1797 (Phoenix 1797)
Team Role: Programmer
 
Join Date: Feb 2017
Rookie Year: 2016
Location: London, UK
Posts: 6
vauc2000 is an unknown quantity at this point
Re: Driver Station No Robot Code Connection Error

Unless you have changed your eclipse layout, you should have a tab on the lefthand side of your eclipse window labelled "Package Explorer". In that view, you can see all of your Java projects. Click on the project you want to check, and it should expand so you can now see the files and folders in the project. Check there for the build.properties file.
Reply With Quote
  #12   Spotlight this post!  
Unread 04-02-2017, 16:22
BetaBlues's Avatar
BetaBlues BetaBlues is offline
Registered User
FRC #5975 (Beta Blues)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Portland, Oregon
Posts: 13
BetaBlues is an unknown quantity at this point
Re: Driver Station No Robot Code Connection Error

Quote:
Originally Posted by vauc2000 View Post
Unless you have changed your eclipse layout, you should have a tab on the lefthand side of your eclipse window labelled "Package Explorer". In that view, you can see all of your Java projects. Click on the project you want to check, and it should expand so you can now see the files and folders in the project. Check there for the build.properties file.
Thank you so much, however it looks like that is not the problem. This is what the build.properties has -> package=org.usfirst.frc.team5975.robot
robot.class=${package}.Robot

This is what we have in our robot.java file
package org.usfirst.frc.team5975.robot;
public class Robot extends IterativeRobot
Reply With Quote
  #13   Spotlight this post!  
Unread 04-02-2017, 16:49
vauc2000 vauc2000 is offline
Registered User
FRC #1797 (Phoenix 1797)
Team Role: Programmer
 
Join Date: Feb 2017
Rookie Year: 2016
Location: London, UK
Posts: 6
vauc2000 is an unknown quantity at this point
Re: Driver Station No Robot Code Connection Error

Quote:
Originally Posted by BetaBlues View Post
Thank you so much, however it looks like that is not the problem. This is what the build.properties has -> package=org.usfirst.frc.team5975.robot
robot.class=${package}.Robot

This is what we have in our robot.java file
package org.usfirst.frc.team5975.robot;
public class Robot extends IterativeRobot
Ah well, it was worth a shot. Have you tried locating the FRCUserProgram on the RoboRIO yet?
Reply With Quote
  #14   Spotlight this post!  
Unread 04-02-2017, 17:40
BetaBlues's Avatar
BetaBlues BetaBlues is offline
Registered User
FRC #5975 (Beta Blues)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Portland, Oregon
Posts: 13
BetaBlues is an unknown quantity at this point
Re: Driver Station No Robot Code Connection Error

Quote:
Originally Posted by vauc2000 View Post
Ah well, it was worth a shot. Have you tried locating the FRCUserProgram on the RoboRIO yet?
So it all turned out to be a coding problem lol, but your help was very useful! Thank you so much!!
Reply With Quote
  #15   Spotlight this post!  
Unread 05-02-2017, 20:44
Harshal Harshal is offline
Registered User
FRC #4678
Team Role: Mentor
 
Join Date: Feb 2017
Rookie Year: 2013
Location: Canada
Posts: 3
Harshal is an unknown quantity at this point
Re: Driver Station No Robot Code Connection Error

It could be due to mapping multiple objects to the same port. For example using the same PCM port twice in the initialization of a solenoid.
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 09:44.

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