Go to Post What’s in a name? That which we call a robot, by any other word would smell of magic smoke. - Jack Jones [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 Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 10-01-2015, 13:59
TheMechanic40 TheMechanic40 is offline
Registered User
FRC #3506 (YETI Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: North Carolina
Posts: 31
TheMechanic40 is an unknown quantity at this point
Eclipse won't connect to roboRIO

My team, 3506, has been using netbeans to upload to code to our robots in previous years, however the roboRIO no longer supports plugins for netbeans and my team has had to switch to using eclipse. We code our robots in Java and after going through the long process of setting up the roboRIO for Java attempted to upload some code. Here's the problem: three of the six people on my programming team can upload code to it (two using roboRIO-3506.local and one using 10.35.6.2), but the rest of can't. The three of us that can't upload code can ping the roborio at both addresses and consistently get replies, but whenever we try to upload code from eclipse we all get the same error message: roboRIO not found, please check that the roboRIO is connected, imaged and that the team number is set properly in Eclipse. Our team numbers are all properly set, and we know that it is properly imaged and connected because the others can upload code and we can ping it. Does anyone have any possible solutions?
  #2   Spotlight this post!  
Unread 10-01-2015, 17:04
ANiyaz ANiyaz is offline
Registered User
FRC #0868 (TechHOUNDS)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2013
Location: Carmel, IN
Posts: 14
ANiyaz is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

Have you guys tried installing Java onto the RoboRio??
  #3   Spotlight this post!  
Unread 10-01-2015, 17:16
TheMechanic40 TheMechanic40 is offline
Registered User
FRC #3506 (YETI Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: North Carolina
Posts: 31
TheMechanic40 is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

Yes we have. We were having trouble installing java onto it, but we managed to do it. This allowed three of us to deploy code, but the rest of us are left scratching our heads.
  #4   Spotlight this post!  
Unread 10-01-2015, 21:41
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Eclipse won't connect to roboRIO

Can they upload code through the USB connection?
  #5   Spotlight this post!  
Unread 10-01-2015, 21:44
TheMechanic40 TheMechanic40 is offline
Registered User
FRC #3506 (YETI Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: North Carolina
Posts: 31
TheMechanic40 is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

Those that can upload code have not tried to do so via USB and those that can't upload have tried, but with no results.
  #6   Spotlight this post!  
Unread 10-01-2015, 22:17
Joey1939's Avatar
Joey1939 Joey1939 is offline
Registered User
AKA: Joey Holliday
FRC #1939 (Kuhnigits)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Kansas City, Missouri
Posts: 144
Joey1939 has a spectacular aura aboutJoey1939 has a spectacular aura aboutJoey1939 has a spectacular aura about
Re: Eclipse won't connect to roboRIO

Your operating system might be blocking Eclipse's communications with the roboRIO. I know I had to accept a Warning when I first uploaded code. Try disabling your firewall and see if that fixes anything.

EDIT: Also please post a full build/run log
  #7   Spotlight this post!  
Unread 10-01-2015, 22:19
TheMechanic40 TheMechanic40 is offline
Registered User
FRC #3506 (YETI Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: North Carolina
Posts: 31
TheMechanic40 is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

Unfortunately, we have already tried that, I disabled my anti-virus software and my firewall and nothing changed.
  #8   Spotlight this post!  
Unread 14-01-2015, 20:06
TheMechanic40 TheMechanic40 is offline
Registered User
FRC #3506 (YETI Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: North Carolina
Posts: 31
TheMechanic40 is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

Sorry for the late response, here is the full build log.

Buildfile: C:\Users\Sam\Documents\Eclipse Workspace\Recycle Rush 2015\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\Sam\Documents\Eclipse Workspace\Recycle Rush 2015\build
[delete] Deleting directory C:\Users\Sam\Documents\Eclipse Workspace\Recycle Rush 2015\dist
compile:
[mkdir] Created dir: C:\Users\Sam\Documents\Eclipse Workspace\Recycle Rush 2015\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\Sam/wpilib/java/current/lib/WPILib.jar:C:\Users\Sam/wpilib/java/current/lib/NetworkTables.jar to build
[javac] Compiling 1 source file to C:\Users\Sam\Documents\Eclipse Workspace\Recycle Rush 2015\build
jar:
[echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
[mkdir] Created dir: C:\Users\Sam\Documents\Eclipse Workspace\Recycle Rush 2015\dist
[mkdir] Created dir: C:\Users\Sam\Documents\Eclipse Workspace\Recycle Rush 2015\build\jars
[echo] [athena-jar] Copying jars from C:\Users\Sam/wpilib/java/current/lib/WPILib.jar:C:\Users\Sam/wpilib/java/current/lib/NetworkTables.jar to build/jars.
[copy] Copying 2 files to C:\Users\Sam\Documents\Eclipse Workspace\Recycle Rush 2015\build\jars
[jar] Building jar: C:\Users\Sam\Documents\Eclipse Workspace\Recycle Rush 2015\dist\FRCUserProgram.jar
get-target-ip:
[echo] Trying Target: roboRIO-3506.local
[echo] roboRIO not found via mDNS, falling back to static USB
[echo] roboRIO not found via USB, falling back to static address of 10.35.6.2

BUILD FAILED
C:\Users\Sam\wpilib\java\current\ant\build.xml:45: Assertion failed boolean test.
roboRIO not found, please check that the roboRIO is connected, imaged and that the team number is set properly in Eclipse

Total time: 19 seconds
  #9   Spotlight this post!  
Unread 15-01-2015, 19:06
vps vps is offline
Registered User
FRC #3021 (The Agency)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2011
Location: United States
Posts: 30
vps is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

Have y'all re-imaged the roboRIO?
  #10   Spotlight this post!  
Unread 15-01-2015, 19:12
Joey1939's Avatar
Joey1939 Joey1939 is offline
Registered User
AKA: Joey Holliday
FRC #1939 (Kuhnigits)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Kansas City, Missouri
Posts: 144
Joey1939 has a spectacular aura aboutJoey1939 has a spectacular aura aboutJoey1939 has a spectacular aura about
Re: Eclipse won't connect to roboRIO

From the computer that you are trying to push code from can you ping the roboRIO at roboRIO-3506.local or 10.35.6.2. I am trying to figure out if its an eclipse problem or a computer problem.
  #11   Spotlight this post!  
Unread 15-01-2015, 19:12
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 359
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Eclipse won't connect to roboRIO

I realize this isn't exactly the answer you're looking for.

But I wanted to repeat the note I saw above about using USBLAN over the USB cable to program and debug the RoboRIO. This has worked every time I've tried it, it's very reliable in my experience.

We haven't yet found a completely reliable way to connect over wifi to the RoboRio. It works many times, but not all the time.

Also, make sure that if connecting over wifi to the roborio, that you have disconnected from any other wifi connection (for instance, the wifi connection you use to access the Internet). Also, we have found that even after disconnecting from another wifi connections, we sometimes have to disconnect and then reconnect to the roborio's Wifi connection to get things to work.

Hope that helps....
  #12   Spotlight this post!  
Unread 15-01-2015, 19:30
TheMechanic40 TheMechanic40 is offline
Registered User
FRC #3506 (YETI Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: North Carolina
Posts: 31
TheMechanic40 is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

Quote:
Originally Posted by vps View Post
Have y'all re-imaged the roboRIO?
Yes we have imaged the roborio.
  #13   Spotlight this post!  
Unread 15-01-2015, 19:31
TheMechanic40 TheMechanic40 is offline
Registered User
FRC #3506 (YETI Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: North Carolina
Posts: 31
TheMechanic40 is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

Quote:
Originally Posted by Joey1939 View Post
From the computer that you are trying to push code from can you ping the roboRIO at roboRIO-3506.local or 10.35.6.2. I am trying to figure out if its an eclipse problem or a computer problem.
Yes I can ping it at both addresses.
  #14   Spotlight this post!  
Unread 15-01-2015, 23:13
msonnier msonnier is offline
Engineering Mentor
FRC #2992 (SS Prometheus)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: United States
Posts: 10
msonnier is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

I think your problem is mDNS is failing. See thread http://www.chiefdelphi.com/forums/sh...d.php?t=132597 where this is discussed at some length.

The root cause appears to be your PC and the RoboRIO deciding they want to use IPv6 instead of IPv4 -- the mDNS lookup is returning a v6 address instead of v4. This unfortunately doesn't work for the Eclipse ANT script I think or for the DS.

The solution we found was to disable IPv6 on the Laptop/PC (or Mac presumably) for that interface. Couldn't figure out how to disable it on the DLink. Presumably you could kill it on the RoboRIO in Linux config but I don't know offhand how to do that.

Regards
Mike
  #15   Spotlight this post!  
Unread 16-01-2015, 18:19
RushAHead RushAHead is offline
President and Pun-Master
FRC #3103 (Iron Plaid)
Team Role: Electrical
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Texas
Posts: 7
RushAHead is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

My team ran into the same problem in a C++ environment. We ended up having to add the below line of code to our build.xml file at the bottom of the rest of the "property file" lines (including this one, we had 3), clean project, and build. Not sure if it'll work for you guys, but I hope it does!

<property file="${user.home}/wpilib/cpp/${version}/ant/build.properties"/>
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 02:53.

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