![]() |
roboRIO not found
I've been having some trouble programming/debugging the RoboRIO. This is the tail end of the output I see in the console when attempting to deploy:
Code:
get-target-ip:In Window->Preferences->WPILib Preferences, my team number is set to 488. The roboRIO has been imaged with the v23 image (and I can confirm with the tool). I can also see and operate the robot via the Driver Station. By plugging in the USB cable, I am able to program the robot. Also, the debug environment seems to only try connecting to roborio-488.local, and doesn't work via USB. Any idea what's going on? |
Re: roboRIO not found
Did you install Java on the rRIO?
|
Re: roboRIO not found
Yes, using the JVM Wizard from FIRST.
|
Re: roboRIO not found
I did a little experiment.
First, using cmd.exe, I pinged roboRIO-488.local: Code:
C:\Users\John>ping roboRIO-488.local -4Code:
<property name="target" value="roboRIO-${team-number}.local" />Code:
<property name="target" value="169.254.82.206" />The question is... why is Eclipse unable to resolve roboRIO-488.local, while Windows (via cmd and explorer) can resolve it easily? |
Re: roboRIO not found
Quote:
|
Re: roboRIO not found
Good thinking... though I already tried disabling the Windows Firewall entirely, to no effect.
Plus, Eclipse has no issue connecting to the roboRIO, as long as I refer to it by IP and not by its mDNS address (roboRIO-488.local). |
Re: roboRIO not found
As a workaround...
Is it possible to modify the WPI plugin to get the debug command to use an IP address target instead of the "roboRio-488.local" address? And if so, how? |
Re: roboRIO not found
Well, instead of modifying the plugins, I decided to modify my machine.
I edited my hosts file (C:\Windows\System32\drivers\etc\hosts) to include this line: Code:
169.254.82.206 roboRIO-488.local |
Quote:
|
Re: roboRIO not found
The problem I had there is while I could edit the ant script to deploy code, it seemed like Eclipse would always attempt to connect to "roboRio-488.local" when opening the connection to the remote debugger.
Is there a way to mess with that? |
Re: roboRIO not found
Well, you could theoretically make a new ant run config that runs the debug-deploy target, and a new remote debug configuration that connects to the remote jvm session. I haven't tried it, but I just went and looked at the plugin source, and I think these are the parameters you'll need to set:
Connection Type: Standard (Socket Attach) Host: <YOUR IP HERE> Port: 8348 No guarantees that these are the actual correct parameters, as I didn't write any part of the plugin, but if I'm reading it correctly, then that's what you're looking for. If you're interested in taking a look yourself (if that doesn't work), then visit https://usfirst.collab.net/sf/projects/wpilib/ and follow the instructions to look at the source. The particular file I'm pulling this info from is eclipse-plugins/<long package name>.java/src/main/java/<more packages>/launching/JavaLaunchShortcut.java, in the getRemoteDebugConfig method. Hope that helps. |
Re: roboRIO not found
Have you tried roborio-0488.local?
|
Re: roboRIO not found
That address does not resolve for me. Interesting idea, though. =]
|
Re: roboRIO not found
Quote:
|
Re: roboRIO not found
Windows 7.
|
| All times are GMT -5. The time now is 10:34. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi