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

TheMechanic40 17-01-2015 10:42

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by msonnier (Post 1429052)
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

I have disabled my Ipv6 and now when I ping the roborio at roborio-3506.local I get a reply with an IPv4 address, but I still can't delpoy code and I still get the same build log:

Buildfile: C:\Users\Sam\Documents\Eclipse Workspace\Test Command Robot\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\Sam\Documents\Eclipse Workspace\Test Command Robot\build
compile:
[mkdir] Created dir: C:\Users\Sam\Documents\Eclipse Workspace\Test Command Robot\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 13 source files to C:\Users\Sam\Documents\Eclipse Workspace\Test Command Robot\build
jar:
[echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
[mkdir] Created dir: C:\Users\Sam\Documents\Eclipse Workspace\Test Command Robot\dist
[mkdir] Created dir: C:\Users\Sam\Documents\Eclipse Workspace\Test Command Robot\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\Test Command Robot\build\jars
[jar] Building jar: C:\Users\Sam\Documents\Eclipse Workspace\Test Command Robot\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: 27 seconds

EDIT: When I ping the roborio at roborio-3506.local I get a reply of 10.35.6.2

BradAMiller 17-01-2015 17:28

Re: Eclipse won't connect to roboRIO
 
If you can ping the roboRIO, maybe it's a problem with eclipse specifically. Can you try disabling the firewall just to be sure that it's not blocking eclipse? Also, you can try some of the other programs like SmartDashboard (but remember to set the team number in it's preferences) to see if they can connect.

Also does the Driver Station connect on the same computer?

TheMechanic40 17-01-2015 17:37

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by BradAMiller (Post 1429770)
If you can ping the roboRIO, maybe it's a problem with eclipse specifically. Can you try disabling the firewall just to be sure that it's not blocking eclipse? Also, you can try some of the other programs like SmartDashboard (but remember to set the team number in it's preferences) to see if they can connect.

Also does the Driver Station connect on the same computer?

We have tried disabling the firewall and nothing changes. We can use SmartDashboard successfully, and we do not have the 2015 driverstation on this computer.

TimTheGreat 17-01-2015 21:43

Re: Eclipse won't connect to roboRIO
 
I had a problem where I couldn't upload code. I fixed it by making sure that my computer was using the right ip when connected to the router. If you aren't on 10.TE.AM.23 (or any random last number) than you won't be able to connect. Double check that

TheMechanic40 17-01-2015 22:51

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by TimTheGreat (Post 1429934)
I had a problem where I couldn't upload code. I fixed it by making sure that my computer was using the right ip when connected to the router. If you aren't on 10.TE.AM.23 (or any random last number) than you won't be able to connect. Double check that

The roborio uses mDNS so we shouldn't have to set a static IP. Everyone else is either uploading through mDNS or 10.35.6.2 and no one has to set a static IP, but I will try that to see how it works an follow up.

loafdog 21-01-2015 17:29

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by msonnier (Post 1429052)
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

For linux users having problems with mdns and resolving hostnames, see my post: http://www.chiefdelphi.com/forums/sh...0&postcount=12

one_each 21-01-2015 18:08

Re: Eclipse won't connect to roboRIO
 
My (Windows 7) laptop will occasionally refuse to connect to the RoboRIO. When that happens I follow these steps to get it talking again.
  • Disconnect all network connections
  • Power off the RoboRIO
  • Power on the RoboRIO
  • Wait until the AP is ready then wait about 10 seconds more
  • Connect with wifi

YMMV

Cryptogenic 24-01-2015 01:52

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by TheMechanic40 (Post 1428386)
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

I get the exam same error. Does it take long for you when you are pinging roborio-TEAM.local?

TheMechanic40 24-01-2015 01:54

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cryptogenic (Post 1433142)
I get the exam same error. Does it take long for you when you are pinging roborio-TEAM.local?

The time it takes to ping it varies, it can take as long as 500 ms or be as quick as around 5 ms.

Cryptogenic 24-01-2015 02:20

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by RushAHead (Post 1429385)
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"/>

I am going to try it tomorrow when I get back to the lab. But, just in case anyone just copies and pastes it and doesn't notice, make sure to change cpp to java:

<property file="${user.home}/wpilib/java/${version}/ant/build.properties"/>

Cryptogenic 24-01-2015 12:42

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by TheMechanic40 (Post 1433143)
The time it takes to ping it varies, it can take as long as 500 ms or be as quick as around 5 ms.

For me it says it takes 3ms even if takes minutes...

Cryptogenic 24-01-2015 12:54

Re: Eclipse won't connect to roboRIO
 
I feel like there is something that didn't download correctly on my computer since it works on everyone else's computer including the ones that members bring and the ones our team has.

Cryptogenic 24-01-2015 12:55

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cryptogenic (Post 1433147)
I am going to try it tomorrow when I get back to the lab. But, just in case anyone just copies and pastes it and doesn't notice, make sure to change cpp to java:

<property file="${user.home}/wpilib/java/${version}/ant/build.properties"/>

I tried this. With both cpp and java in the line of code and neither one worked. They both gave me the same error.

TheMechanic40 24-01-2015 13:57

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cryptogenic (Post 1433243)
I feel like there is something that didn't download correctly on my computer since it works on everyone else's computer including the ones that members bring and the ones our team has.

I know, I feel like that happened as well because me and three other people are using Windows 8.1, two others are using Windows 7 and the last one is using a mac (not sure about his operating system's version) and one of the first things I tried was uninstalling and reinstalling eclipse and reinstalling the WPI plugins.

joshtt 24-01-2015 18:23

Re: Eclipse won't connect to roboRIO
 
I was experiencing the same problem. The wpilib jar in eclipse prompted me to update, and when I did, the problem went away. Hope this is the same for you

Cryptogenic 25-01-2015 00:13

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by TheMechanic40 (Post 1433285)
I know, I feel like that happened as well because me and three other people are using Windows 8.1, two others are using Windows 7 and the last one is using a mac (not sure about his operating system's version) and one of the first things I tried was uninstalling and reinstalling eclipse and reinstalling the WPI plugins.

I am also using windows 8.1

I am going to use m friends laptop tomorrow which also uses 8.1 to test it. It seems like it would be a problem with 8.1 and the station.

Anyone else using windows 8.1 and getting the same error?

Cryptogenic 25-01-2015 00:14

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by joshtt (Post 1433400)
I was experiencing the same problem. The wpilib jar in eclipse prompted me to update, and when I did, the problem went away. Hope this is the same for you

Are you using Windows 8.1?

TheMechanic40 25-01-2015 00:18

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by joshtt (Post 1433400)
I was experiencing the same problem. The wpilib jar in eclipse prompted me to update, and when I did, the problem went away. Hope this is the same for you

I checked for updates in eclipse and found one for robot java development so I will follow up on this in a few days when I am next with the robot.

virtuald 25-01-2015 00:50

Re: Eclipse won't connect to roboRIO
 
You might want to check out the end of http://www.chiefdelphi.com/forums/sh...d.php?t=132607.

After some investigation, I found that there are two mDNS services running on the roborio, and I believe they are fighting each other. Once we disabled one of them, we were able to resolve the roboRIO's address without any problems.

I suspect that the reason this hasn't been a problem for anyone yet is that there are a few different mDNS implementations being used, and some work differently in the face of conflict than others.

TheMechanic40 25-01-2015 00:56

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by virtuald (Post 1433582)
You might want to check out the end of http://www.chiefdelphi.com/forums/sh...d.php?t=132607.

After some investigation, I found that there are two mDNS services running on the roborio, and I believe they are fighting each other. Once we disabled one of them, we were able to resolve the roboRIO's address without any problems.

I suspect that the reason this hasn't been a problem for anyone yet is that there are a few different mDNS implementations being used, and some work differently in the face of conflict than others.

Ok thanks, I will try this the next chance I can.

Cryptogenic 25-01-2015 12:08

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by virtuald (Post 1433582)
You might want to check out the end of http://www.chiefdelphi.com/forums/sh...d.php?t=132607.

After some investigation, I found that there are two mDNS services running on the roborio, and I believe they are fighting each other. Once we disabled one of them, we were able to resolve the roboRIO's address without any problems.

I suspect that the reason this hasn't been a problem for anyone yet is that there are a few different mDNS implementations being used, and some work differently in the face of conflict than others.

I will also try this when I get to the lab to test it out. But if this is the problem, why can other computers compile to it?

Cryptogenic 26-01-2015 00:38

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by virtuald (Post 1433582)
You might want to check out the end of http://www.chiefdelphi.com/forums/sh...d.php?t=132607.

After some investigation, I found that there are two mDNS services running on the roborio, and I believe they are fighting each other. Once we disabled one of them, we were able to resolve the roboRIO's address without any problems.

I suspect that the reason this hasn't been a problem for anyone yet is that there are a few different mDNS implementations being used, and some work differently in the face of conflict than others.

I spent a part of today investigating this, but I don't see where you saw the two mDNS services. If you could post a pic of where you found it, I would greatly appreciate it.

virtuald 26-01-2015 00:44

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cryptogenic (Post 1433986)
I spent a part of today investigating this, but I don't see where you saw the two mDNS services. If you could post a pic of where you found it, I would greatly appreciate it.

I don't have the roborio available, so no pictures. I did grab some logfiles, however. If you ssh into the roborio, check out /var/log/messages. You'll find messages like this:

Code:

Jan 25 16:55:38 roboRIO-1418 nimDNSResponder: Local Hostname roboRIO-1418.local already in use; will try roboRIO-1479.local instead
Jan 25 16:55:40 roboRIO-1418 nimDNSResponder: mDNSCoreReceiveResponse: Received from 10.14.18.20:5353  20 20.18.14.10.in-addr.arpa. PTR roboRIO-1418.local.
Jan 25 16:55:40 roboRIO-1418 nimDNSResponder: mDNSCoreReceiveResponse: Unexpected conflict discarding  20 20.18.14.10.in-addr.arpa. PTR roboRIO-1479.local.

Looking at the log closer, you'll see messages from avahi-daemon and nimdnsresponder, which have the same purpose. However, if you look at my other post, some further investigation today has shown that if I disable one or the other, then I end up with different effects. Apparently the driver station requires the avahi-daemon, but my OSX machines cannot resolve the hostname when it's enabled.

You can also use "ps -Af" to see avahi-daemon and nimdnsresponder both running.

You might check to see if you have iTunes/bonjour installed, as they provide a similar mDns service, and it might have the same problems that we have on OSX.

You can find rc.d symlinks to activate the services in /etc/rc5.d/...avahi-daemon and /etc/rc5.d/...nimdnsresponder

Cryptogenic 26-01-2015 09:48

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by virtuald (Post 1433989)
I don't have the roborio available, so no pictures. I did grab some logfiles, however. If you ssh into the roborio, check out /var/log/messages. You'll find messages like this:

Code:

Jan 25 16:55:38 roboRIO-1418 nimDNSResponder: Local Hostname roboRIO-1418.local already in use; will try roboRIO-1479.local instead
Jan 25 16:55:40 roboRIO-1418 nimDNSResponder: mDNSCoreReceiveResponse: Received from 10.14.18.20:5353  20 20.18.14.10.in-addr.arpa. PTR roboRIO-1418.local.
Jan 25 16:55:40 roboRIO-1418 nimDNSResponder: mDNSCoreReceiveResponse: Unexpected conflict discarding  20 20.18.14.10.in-addr.arpa. PTR roboRIO-1479.local.

Looking at the log closer, you'll see messages from avahi-daemon and nimdnsresponder, which have the same purpose. However, if you look at my other post, some further investigation today has shown that if I disable one or the other, then I end up with different effects. Apparently the driver station requires the avahi-daemon, but my OSX machines cannot resolve the hostname when it's enabled.

You can also use "ps -Af" to see avahi-daemon and nimdnsresponder both running.

You might check to see if you have iTunes/bonjour installed, as they provide a similar mDns service, and it might have the same problems that we have on OSX.

You can find rc.d symlinks to activate the services in /etc/rc5.d/...avahi-daemon and /etc/rc5.d/...nimdnsresponder

As you were saying about having iTunes since that has similar mDNS service as OSX, does that mean it is just having that apple software on your computer?

virtuald 26-01-2015 12:09

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cryptogenic (Post 1434068)
As you were saying about having iTunes since that has similar mDNS service as OSX, does that mean it is just having that apple software on your computer?

If I recall correctly, iTunes installs Bonjour, which is an implementation of Apple's mDNS. I'm curious to see if people who are having the same problems I am happen to have that installed.

If not, then no correlation. If there is a correlation, that could be interesting to look into more.

Cryptogenic 26-01-2015 12:23

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by virtuald (Post 1434108)
If I recall correctly, iTunes installs Bonjour, which is an implementation of Apple's mDNS. I'm curious to see if people who are having the same problems I am happen to have that installed.

If not, then no correlation. If there is a correlation, that could be interesting to look into more.

I disabled bonjour on my computer(remember how you did this since it will disable iTunes with it) and tried to recompile and encountered the same error.

Thursday I will have my friend install iTunes on his computer and try compiling again. If anyone wants to test this before then, please do.

Cryptogenic 28-01-2015 20:36

Re: Eclipse won't connect to roboRIO
 
Other members on my team upgraded to 8.1 and they are now not able to compile to the robot. So the problem is something within 8.1, not the roboRIO.

So if anyone finds a way to get around 8.1 not being able to compile, please post it.

TheMechanic40 28-01-2015 21:15

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cryptogenic (Post 1435428)
Other members on my team upgraded to 8.1 and they are now not able to compile to the robot. So the problem is something within 8.1, not the roboRIO.

So if anyone finds a way to get around 8.1 not being able to compile, please post it.

This is interesting because I have 8.1 and 3 other members of my team also have 8.1 and they can compile using mDNS just fine.

Cryptogenic 29-01-2015 00:06

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by TheMechanic40 (Post 1435446)
This is interesting because I have 8.1 and 3 other members of my team also have 8.1 and they can compile using mDNS just fine.

Did the computer start with 8.1? The computers that we tested on were originally 8 and upgraded to 8.1 are the ones that don't work. We don't have any computers that were originally 8.1 to test it on.

Alan Anderson 29-01-2015 07:17

Re: Eclipse won't connect to roboRIO
 
Were the computers upgraded to 8.1 after the programming tools were installed? Perhaps the upgrade modified a path setting, or replaced a .dll file, or moved a folder. Has anyone tried uninstalling and reinstalling Eclipse and the plugins after doing the upgrade?

Cryptogenic 29-01-2015 09:44

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Alan Anderson (Post 1435540)
Were the computers upgraded to 8.1 after the programming tools were installed? Perhaps the upgrade modified a path setting, or replaced a .dll file, or moved a folder. Has anyone tried uninstalling and reinstalling Eclipse and the plugins after doing the upgrade?

I tried doing this. It was actually one of the first things I did. It didn't change anything. I think that some files need some drivers or something similar that isn't supported when you upgrade your computer to 8.1.

TheMechanic40 29-01-2015 11:53

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cryptogenic (Post 1435512)
Did the computer start with 8.1? The computers that we tested on were originally 8 and upgraded to 8.1 are the ones that don't work. We don't have any computers that were originally 8.1 to test it on.

My computer came with windows 8.1, but I'm not sure about the others. One person has a surface so I assume it started with it and I know she can use mDNS because we have to use it to install java to the roboRIO. Although, the members that have Windows 7 can't use mDNS, but can upload code using the IPv4 address 10.35.6.2

Cryptogenic 14-02-2015 10:29

Re: Eclipse won't connect to roboRIO
 
There was an NI update. So I downloaded that yesterday, and hopefully it will work today. I will find out when I get to the lab, and I will post the outcome.

TheMechanic40 14-02-2015 11:39

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cryptogenic (Post 1443932)
There was an NI update. So I downloaded that yesterday, and hopefully it will work today. I will find out when I get to the lab, and I will post the outcome.

I downloaded the update and just tried to deploy code to the roboRIO, but still I get the same error: 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

Cryptogenic 15-02-2015 14:53

Re: Eclipse won't connect to roboRIO
 
So turns out is in the Windows Firewall. But not in such an obvious spot. Click the <windows> key, then search for "Windows Firewall" and click on windows firewall with advanced security on Local Computer.

https://drive.google.com/open?id=0B3...ZVE&authuser=0

Then, in the domain section, you have to change inbound to allow.

https://drive.google.com/open?id=0B3...aWs&authuser=0

Then save everything and it will compile :) It worked on mine

TheMechanic40 15-02-2015 16:02

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cryptogenic (Post 1444552)
So turns out is in the Windows Firewall. But not in such an obvious spot. Click the <windows> key, then search for "Windows Firewall" and click on windows firewall with advanced security on Local Computer.

https://drive.google.com/open?id=0B3...ZVE&authuser=0

Then, in the domain section, you have to change inbound to allow.

https://drive.google.com/open?id=0B3...aWs&authuser=0

Then save everything and it will compile :) It worked on mine

I'm not exactly sure what you're saying because I need permission to view the links you have provided.

Cryptogenic 17-02-2015 00:34

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cryptogenic (Post 1444552)
So turns out is in the Windows Firewall. But not in such an obvious spot. Click the <windows> key, then search for "Windows Firewall" and click on windows firewall with advanced security on Local Computer.

https://drive.google.com/open?id=0B3...ZVE&authuser=0

Then, in the domain section, you have to change inbound to allow.

https://drive.google.com/open?id=0B3...aWs&authuser=0

Then save everything and it will compile :) It worked on mine

I fixed the links. The first link is:

https://drive.google.com/file/d/0B3z...ew?usp=sharing

The second link is:

https://drive.google.com/file/d/0B3z...ew?usp=sharing

TheMechanic40 17-02-2015 00:37

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cryptogenic (Post 1445490)

Thank you, I will post my results as soon as I can.

TheMechanic40 17-02-2015 18:32

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cryptogenic (Post 1445490)

Unfortunately, I still can't deploy code despite me changing the firewall settings.

Cyan 17-02-2015 18:53

Re: Eclipse won't connect to roboRIO
 
I think my team used to have a similar problem. Re-imaging the roboRIO worked for us. You said that you imaged it, but have you tried re-imaging?

Also, you might want to check under "Eclipse > Window > Preferences > Java > Installed JREs" and make sure you have the JDK selected instead of the JRE. I think that this also caused this problem for one of our teammates.

Cryptogenic 18-02-2015 00:54

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cyan (Post 1446001)
I think my team used to have a similar problem. Re-imaging the roboRIO worked for us. You said that you imaged it, but have you tried re-imaging?

Also, you might want to check under "Eclipse > Window > Preferences > Java > Installed JREs" and make sure you have the JDK selected instead of the JRE. I think that this also caused this problem for one of our teammates.

And you should also check, in the Preferences section for the WPILIB section and make sure you have the team number. My computer did not make it pop up and never asked me to set my team number, it would just fail to deploy.

TheMechanic40 18-02-2015 00:55

Re: Eclipse won't connect to roboRIO
 
Quote:

Originally Posted by Cryptogenic (Post 1446183)
And you should also check, in the Preferences section for the WPILIB section and make sure you have the team number. My computer did not make it pop up and never asked me to set my team number, it would just fail to deploy.

We have checked everything it told to check in the console.


All times are GMT -5. The time now is 22:13.

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