Go to Post I put the encrypted manual file onto a 5-1/4" floppy disk, so I'll have it with me when I go to the kickoff event and pick up the kit. - MrForbes [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
  #16   Spotlight this post!  
Unread 17-01-2015, 10:42
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 msonnier View Post
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

Last edited by TheMechanic40 : 17-01-2015 at 10:53.
  #17   Spotlight this post!  
Unread 17-01-2015, 17:28
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
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?
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #18   Spotlight this post!  
Unread 17-01-2015, 17:37
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 BradAMiller View Post
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.
  #19   Spotlight this post!  
Unread 17-01-2015, 21:43
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 238
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
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
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
  #20   Spotlight this post!  
Unread 17-01-2015, 22:51
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 TimTheGreat View Post
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.
  #21   Spotlight this post!  
Unread 21-01-2015, 17:29
loafdog loafdog is offline
Registered User
AKA: Maciej
FRC #2876 (DevilBotz)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2009
Location: Burlington, MA
Posts: 39
loafdog is on a distinguished road
Re: Eclipse won't connect to roboRIO

Quote:
Originally Posted by msonnier View Post
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
  #22   Spotlight this post!  
Unread 21-01-2015, 18:08
one_each one_each is offline
Registered User
FRC #4057 (KB Bots)
Team Role: Mentor
 
Join Date: Jun 2012
Rookie Year: 2012
Location: Klamath Falls, Or
Posts: 25
one_each is an unknown quantity at this point
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
  #23   Spotlight this post!  
Unread 24-01-2015, 01:52
Cryptogenic Cryptogenic is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: United States
Posts: 19
Cryptogenic is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

Quote:
Originally Posted by TheMechanic40 View Post
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?
  #24   Spotlight this post!  
Unread 24-01-2015, 01:54
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 Cryptogenic View Post
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.
  #25   Spotlight this post!  
Unread 24-01-2015, 02:20
Cryptogenic Cryptogenic is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: United States
Posts: 19
Cryptogenic is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

Quote:
Originally Posted by RushAHead View Post
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"/>
  #26   Spotlight this post!  
Unread 24-01-2015, 12:42
Cryptogenic Cryptogenic is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: United States
Posts: 19
Cryptogenic is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

Quote:
Originally Posted by TheMechanic40 View Post
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...
  #27   Spotlight this post!  
Unread 24-01-2015, 12:54
Cryptogenic Cryptogenic is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: United States
Posts: 19
Cryptogenic is an unknown quantity at this point
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.
  #28   Spotlight this post!  
Unread 24-01-2015, 12:55
Cryptogenic Cryptogenic is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: United States
Posts: 19
Cryptogenic is an unknown quantity at this point
Re: Eclipse won't connect to roboRIO

Quote:
Originally Posted by Cryptogenic View Post
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.
  #29   Spotlight this post!  
Unread 24-01-2015, 13:57
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 Cryptogenic View Post
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.
  #30   Spotlight this post!  
Unread 24-01-2015, 18:23
joshtt joshtt is offline
Registered User
FRC #1891
 
Join Date: Jan 2015
Location: Meridian, ID
Posts: 1
joshtt is an unknown quantity at this point
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
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