Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=177)
-   -   Can't connect to the robot (http://www.chiefdelphi.com/forums/showthread.php?t=153371)

OreNPluS 10-01-2017 10:15

Can't connect to the robot
 
Hello everyone !
my team got a new programming leptop for this year, we got labVIEW set-up and everything on the computer, but i can't get the communication light on the driver station to be green (only red...)(using Wi-Fi), the problem isn't the roboRIO itself because i can connect from every another computer i try...

when i try netstat command on the cmd, the computer did find the ip of the robot, 169.254.175.10, but i when i ping that ip or roboRIO-1577-FRC.local, i am getting:

when pinging 169.254.175.10:
Reply from 169.254.66.43: Destination host unreachable (x4 times)

when pinging roboRIO-1577-FRC.local, it just says it could not find the host...


another funny thing is, when trying to connect using ethernet cable diractly from the computer to the roboRIO, everything work just fine
(the usb port of the roboRIO is unreachable, don't ask.... but i guss it will also work just fine like the ethernet cable)

any ideas ?

teletype-guy 10-01-2017 14:24

Re: Can't connect to the robot
 
I am unsure about your ethernet issue, as I have not dug into the new radio setup (which uses 10.x.x.x, and I don't want to change my laptop from 192.x.x.x). I am testing with just an old router in place of the radio and it works fine.

However, USB should work -- connect a usb cable and disconnect the radio cable. In a browser (with SilverLight added) and go to 172.22.11.2 to get to roboRIO-(team-number)-FRC Sys Config page. Driverstation also works over usb, I believe, for tethered tests.

gil

OreNPluS 10-01-2017 15:03

Re: Can't connect to the robot
 
Quote:

Originally Posted by teletype-guy (Post 1628711)
I am unsure about your ethernet issue, as I have not dug into the new radio setup (which uses 10.x.x.x, and I don't want to change my laptop from 192.x.x.x). I am testing with just an old router in place of the radio and it works fine.

However, USB should work -- connect a usb cable and disconnect the radio cable. In a browser (with SilverLight added) and go to 172.22.11.2 to get to roboRIO-(team-number)-FRC Sys Config page. Driverstation also works over usb, I believe, for tethered tests.

gil

that is the thing, using ethernet cable it works fine, usb should work also ...
my problem is, when connecting to the roboRIO using Wi-Fi, i cant get communication on the driverstation ....

Mark McLeod 10-01-2017 17:50

Re: Can't connect to the robot
 
I assume your PC wireless connects to the robot AP just fine.

Try disabling the Windows firewall and any anti-virus you may have running. Those can block the FRC handshake depending on how the connection is treated (Private, etc).

rich2202 10-01-2017 18:15

Re: Can't connect to the robot
 
First thing to check if the IP address of the Programming Laptop is: 169.254.175.xxx. If not, you will have trouble.

Is the IP Address of the Programming Laptop: 169.254.66.xxx? Why is Ping returning 169.254.66.43 if you asked for 169.254.175.10?

I am not a fan of mDNS. I prefer to give everything a valid IP address.

Use IPCONFIG from the CMD box to find out your IP Address.

mdballard 14-01-2017 16:01

Re: Can't connect to the robot
 
I have seen a possibly related problem where the radio sets a frc-robot.local domain on all DHCP clients. This causes pings to the roborio-xxxx-frc.local address to fail and the driver station will not connect. I flashed the ac radio with th 17.2 version of the radio configuration tool. There is no way to configure the domain on it.

I'm still tracking down the issue.

nickmcski 14-01-2017 18:40

Re: Can't connect to the robot
 
Quote:

Originally Posted by rich2202 (Post 1628855)
Is the IP Address of the Programming Laptop: 169.254.66.xxx? Why is Ping returning 169.254.66.43 if you asked for 169.254.175.10?

That second IP address would be the IP of his computer.

The problem I am seeing is you are getting and APIPA address. Do you have the Ethernet cable directly connected from your laptop to the roboRIO? You should make sure that your openmesh radio is imaged and configured for you team.

rich2202 16-01-2017 08:20

Re: Can't connect to the robot
 
Quote:

Originally Posted by nickmcski (Post 1631261)
That second IP address would be the IP of his computer.

It would eventually be a problem if the first 3 numbers in the IP address did not match.

pascal_bergeron 22-01-2017 14:31

Re: Can't connect to the robot
 
Quote:

Originally Posted by mdballard (Post 1631190)
I have seen a possibly related problem where the radio sets a frc-robot.local domain on all DHCP clients. This causes pings to the roborio-xxxx-frc.local address to fail and the driver station will not connect. I flashed the ac radio with th 17.2 version of the radio configuration tool. There is no way to configure the domain on it.

I'm still tracking down the issue.

Where you able to solve this?
We seem to be having the same problem with the wifi connection. We can connect through the radio by ethernet cable, but not by wifi.

When connected by wifi, we can ping the roborio by ip address (10.xx.xx.21) but not by name (roborio-xxxx-frc.local). The driver connection cannot connect however. It seems to be a problem with name resolution.

mdballard 26-01-2017 20:31

Re: Can't connect to the robot
 
So our solution to the name resolution problem was to install Apple Bonjour (part of iTunes). Bonjour is a working implementation of mDNS for Windows.

I asked another mentor who works for Microsoft to check and see if Microsoft was working on any fixes related to mDNS and as of right now it is not a high priority for their development team.

mastachyra 27-01-2017 00:51

Re: Can't connect to the robot
 
Sorry, if I'm starting with too simple a solution, but just a hunch:

The radio Ethernet port furthest from the power input is used for connecting to your computer. The Ethernet port adjacent to the power input is for connecting to the roborio.

Also, it's important to know that the radio power must come from the 12 volt/2 amp outputs of the VRM. (Different than previous years)

BSV 27-01-2017 18:54

Re: Can't connect to the robot
 
We're having the same problem.

When we log in to the roboRio over the USB, the IP address says 0.0.0.0.

We can't log into the router to get the IP or see what's going on because the web interface no longer works.

We ran the radio config utility and same issue.

Old radio works fine.

BSV 28-01-2017 23:34

Re: Can't connect to the robot
 
Bumping because we'd like to be able to control the robot without needing the USB cable plugged in.

We installe iTunes and it didn't help.

Other ideas? Thanks!

Mark McLeod 29-01-2017 07:49

Re: Can't connect to the robot
 
If (1) the roboRIO is connected to the radio by Ethernet, and (2) you connect at the same time via USB and browse to the roboRIO webserver, and (3) the Ethernet address is 0.0.0.0, then the radio is not providing an IP address.
That usually means that the roboRIO is not detecting anything connected to the Ethernet connection.

Does the Ethernet connection on the roboRIO light up with the yellow & green status lights?

Is the roboRIO Ethernet connector plugged into the radio port closest to the power connector?

BSV 30-01-2017 22:44

Re: Can't connect to the robot
 
Quote:

Originally Posted by Mark McLeod (Post 1637716)
Does the Ethernet connection on the roboRIO light up with the yellow & green status lights?

Thanks. The 0.0.0.0 was a bad ethernet cable. We got it to connect.

However, on the driver station, we have to enter the IP address of the RoboRio rather than the team number to get it to connect, and the same with the webcam.

roborio-2723-frc.local address is not recognize on the laptop, and since the IP address changes sometimes there is no guarantee we can guess the correct one. Seems like a laptop networking issue, but we're not sure how to solve it.

Mark McLeod 31-01-2017 08:41

Re: Can't connect to the robot
 
It'd be so much easier if you'd tell us what troubleshooting steps you have taken.
What other directions suggested in this thread and others have you followed?

- Does last year's radio still work as you said before?

- Turn off all firewalls, anti-virus, and third party network management software on your PC. Those all can block communications depending on how they were configured.

- Disable all other network connections (Disable not unplug)

- You can also try pinging roborio-6026-frc.local, roborio-6026-frc.lan, roborio-6026-frc.frc-robot.local

Judge2005 31-01-2017 20:29

Re: Can't connect to the robot
 
We were having very similar problems as described in the first post in this thread. This fixed it:
  1. Open a cmd window as admin.
  2. Type: netsh int ip reset c:\resetlog.txt and press enter
  3. Restart your computer

Hope this works for anyone looking for a solution to this.

BSV 01-02-2017 00:42

Re: Can't connect to the robot
 
Quote:

Originally Posted by Mark McLeod (Post 1638528)
It'd be so much easier if you'd tell us what troubleshooting steps you have taken.
What other directions suggested in this thread and others have you followed?

- Does last year's radio still work as you said before?

- Turn off all firewalls, anti-virus, and third party network management software on your PC. Those all can block communications depending on how they were configured.

- Disable all other network connections (Disable not unplug)

- You can also try pinging roborio-6026-frc.local, roborio-6026-frc.lan, roborio-6026-frc.frc-robot.local

Sorry, I should have said that we looked at the WPI troubleshooting here: http://wpilib.screenstepslive.com/s/...anual-id=24193

as well as trying the other suggestions on this thread.

After your response, we tried a "ping roborio-2723-frc.lan" (did not work, couldn't find IP) "ping roborio-2723-frc.local" (also failed) and "ping roborio-2723-frc.frc-robot.local" (which got a response).

There is no firewall running. It seems that the DNS name is getting assigned incorrectly or not at all by the router, but I'm not a networking expert so I've no idea. Hopefully we can try again with the old radio in the next couple of days to compare results more closely.

Quote:

Originally Posted by Judge2005
Open a cmd window as admin.
Type: netsh int ip reset c:\resetlog.txt and press enter
Restart your computer

This worked... for about 5 seconds before the driver station lost connection again. "ping roborio-2723-frc.local" continued to work after this, though, at least until we restarted the RoboRio to try to get the connection back. When we reconnected after the reboot, that address failed again.

Entering the IP address in the driver station in place of the team number seems to work, but, like I said, it's kind of a guess. It usually comes up as 10.27.23.21 but not always.

Thanks for the suggestions.

Mark McLeod 01-02-2017 08:09

Re: Can't connect to the robot
 
Since it works, you can type roborio-2723-frc.frc-robot.local into the Driver Station in place of the team number. That should keep you connected.

There does appear to be an oddity in the construction of the roboRIO DNS name on some setups where it throws that extra frc-robot into the mix.

It really disrupts Java/C++ downloads which check a variety of addresses to connect, but not that extra frc-robot address.
Then you have to add that extra address to the list it checks.

buchanan 01-02-2017 12:42

Re: Can't connect to the robot
 
Quote:

Originally Posted by Mark McLeod (Post 1638936)
Since it works, you can type roborio-2723-frc.frc-robot.local into the Driver Station in place of the team number. That should keep you connected.

There does appear to be an oddity in the construction of the roboRIO DNS name on some setups where it throws that extra frc-robot into the mix.

It really disrupts Java/C++ downloads which check a variety of addresses to connect, but not that extra frc-robot address.
Then you have to add that extra address to the list it checks.

Thanks Mark! This is the condition we've been struggling with.It's great to know someone understands the problem; a solution is sure to follow. No pressure. :)

The "what do we do meanwhile" bottom line appears to be:
1) The DS won't connect. The workaround you gave handles this.
2) Cannot deploy from Eclipse. Direct connection via USB works around this. Back to the old IFI days.

Greg McKaskle 01-02-2017 13:37

Re: Can't connect to the robot
 
Can you clarify what the web page says that the device name is? Is it roboRIO-####-frc or does the name shown in the web page end in .frc-robot?

If so, can you remove .frc-robot to get it to work?

Greg McKaskle

Mark McLeod 01-02-2017 14:00

Re: Can't connect to the robot
 
In the cases I've seen the roboRIO has the expected
  • Hostname: roboRIO-team#-FRC
But with
  • DNS Name: roboRIO-team#-FRC.frc-robot.local
I can't edit the DNS name through the web browser and I haven't tried other methods.

On the PC connected to run the Driver Station it might or might not include a DNS Suffix Search List: frc-robot.local (from an ipconfig /all).
It appears to be somewhat random on any particular PC, i.e., I can have two side-by-side PC's attempting to connect and one will work, but the other fail. After disconnecting/restarting the radio both PCs may work.
Depending on if the PC has the search suffix then the Driver Station will connect, but code download still might fail probably from not including the unexpected DNS suffix.

I made Kevin aware of the issue.

buchanan 02-02-2017 00:28

Re: Can't connect to the robot
 
Quote:

Originally Posted by Mark McLeod (Post 1639095)
roboRIO-team#-FRC.frc-robot.local

The unexpected ".frc-robot" is apparently confusing both the DS and Eclipse deployment.

What I have seen on my system (Windows 10):

1) Somebody, somewhere, is setting the "Connection-specific DNS Suffix" for the wireless adapter to "frc-robot.local" (see "ipconfig /all"). I don't know how this is happening but it looks broken to me. Radio firmware?

2) If you go to Control Panel->Network and Internet->Network and Sharing Center->Change Adapter Settings->(select) Wi-Fi->(tab)Change settings of this connection->(in dialog, select)Internet Protocol Version 4->Properties->Advanced->(tab)DNS, you'll see what appear to be a couple of ways to override the above setting:

a) Change "Append primary..." to "Append these..." and put "local" in the list.
-or-
b) Put "local" into the "DNS suffix for this connection" box.

In very limited testing either seems to work for me.

I am NOT a Windows expert (and wouldn't admit it if I were). If those who are disagree, trust them not me.

Mark McLeod 02-02-2017 09:59

Re: Can't connect to the robot
 
Quote:

Originally Posted by buchanan (Post 1639350)
a) Change "Append primary..." to "Append these..." and put "local" in the list.
-or-
b) Put "local" into the "DNS suffix for this connection" box.

I've had success with this as well, but I haven't been able to vet it in all cases yet. I have to make my team rounds.
I had one case where it didn't help, because the PC suffix was wrong, but I didn't try adding frc-robot.local as an ending on that one.

Judge2005 02-02-2017 13:46

Re: Can't connect to the robot
 
One more observation to throw into the mix: everything works for over Ethernet. Interestingly, if I ping the roboRIO over Ethernet, it uses an IPv6 address.

Also, further to my post about netsh: for us it works until we switch the wifi to the Internet. Then when we switch back it is all broken again.

The only solution we have which seems to work for eclipse and the drive station (and hopefully GRIP) is to set a static IP address on the roboRIO, then add all host name variants to the Windows host file.

This makes me very nervous though: What is going to happen when we get to competition? We really need a permanent solution to this soon.

Judge2005 03-02-2017 06:56

Re: Can't connect to the robot
 
One more observation to throw into the mix: everything works for over Ethernet. Interestingly, if I ping the roboRIO over Ethernet, it uses an IPv6 address.

Also, further to my post about netsh: for us it works until we switch the wifi to the Internet. Then when we switch back it is all broken again.

The only solution we have which seems to work for eclipse and the drive station (and hopefully GRIP) is to set a static IP address on the roboRIO, then add all host name variants to the Windows host file.

This makes me very nervous though: What is going to happen when we get to competition? We really need a permanent solution to this soon.

SOBS7 04-02-2017 10:42

Re: Can't connect to the robot
 
We're expecting the Sam problem and easy fixes yet?

SOBS7 04-02-2017 10:46

Re: Can't connect to the robot
 
Unable to ping the Wifi but able to ping with USB cable to RoboRio.

SOBS7 04-02-2017 15:09

Re: Can't connect to the robot
 
Don't know how to edit previous post sorry. We solved our problem by simply disabling all wifi connections on the PC except the robot and it connected perfectly. It appears the wifi connection to the internet on the PC was the problem.


All times are GMT -5. The time now is 11:58.

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