Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Eclipse won't connect to roboRIO (http://www.chiefdelphi.com/forums/showthread.php?t=132556)

TheMechanic40 10-01-2015 13:59

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?

ANiyaz 10-01-2015 17:04

Re: Eclipse won't connect to roboRIO
 
Have you guys tried installing Java onto the RoboRio??

TheMechanic40 10-01-2015 17:16

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.

Joe Ross 10-01-2015 21:41

Re: Eclipse won't connect to roboRIO
 
Can they upload code through the USB connection?

TheMechanic40 10-01-2015 21:44

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.

Joey1939 10-01-2015 22:17

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

TheMechanic40 10-01-2015 22:19

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.

TheMechanic40 14-01-2015 20:06

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

vps 15-01-2015 19:06

Re: Eclipse won't connect to roboRIO
 
Have y'all re-imaged the roboRIO?

Joey1939 15-01-2015 19:12

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.

slibert 15-01-2015 19:12

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....

TheMechanic40 15-01-2015 19:30

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by vps (Post 1428936)
Have y'all re-imaged the roboRIO?

Yes we have imaged the roborio.

TheMechanic40 15-01-2015 19:31

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Joey1939 (Post 1428938)
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.

msonnier 15-01-2015 23:13

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

RushAHead 16-01-2015 18:19

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"/>


All times are GMT -5. The time now is 02:39.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi