Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FRC Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=176)
-   -   Robot OM5P-AN radio will not connect to computer (http://www.chiefdelphi.com/forums/showthread.php?t=154402)

KerbalsRock 28-01-2017 17:52

Robot OM5P-AN radio will not connect to computer
 
We have a problem similar to this recent thread. Basically, our radio will turn on and flash the correct lights, and the computer will connect to the wifi, but the driver station will still show red for communications. In diagnostics, robot radio is green and we can ping the IP successfully. The web dashboard also does not show up. We tested all of the solutions mentioned in the previously linked thread. None had any effect, except for setting our team name to the radio IP. However, this only made the robot light turn green in diagnostics; we still couldn't communicate;

But here's where is gets interesting - the only times when we do connect successfully is the first time each day. If we ever turn the robot off again, the radio start getting weird again.

Any suggestions? Thanks!

Mark McLeod 28-01-2017 18:33

Re: Robot OM5P-AN radio will not connect to computer
 
How is the first time each day defined?
Fresh boot of laptop + fresh boot of robot at the same time and it works again, or it works once every 24 hours?

Does rebooting the PC make it all work again?

KerbalsRock 04-02-2017 14:29

Re: Robot OM5P-AN radio will not connect to computer
 
So we figured out what it's doing and we can get it to work, but we're not exactly sure why. The radio assigns itself the IP of either 10.14.52.39 or 10.14.52.105, which we can find with ipconfig in Windows command prompt. The roboRIO is assigned the IP of either 10.14.52.40 or 10.14.52.106, which we think is because the radio gives it the next one up after its own address. Typing the roboRIO IP into driverstation or web dashboard allows us to connect to them, so we can use both perfectly well. Our only question now is what exactly determines whether the roboRIO is given the 40 or 106 IP, because so far as we can determine it's completely random and unrelated to whether ipconfig gives 39 or 105 for the radio. It's not a huge concern, as we can just try both very easily and it nearly always stays the same while the robot is on, but we did have one test where the IP actually switched from 106 to 40 about 3 seconds after we connected to 106, which would obviously be a problem if it occurred during competition. Any ideas on what could be causing this? Thanks!

Mark McLeod 04-02-2017 14:42

Re: Robot OM5P-AN radio will not connect to computer
 
It's called DHCP (Dynamic Host Configuration Protocol).
It's the dynamic part of it that's moving the IP assignments around.
It means IPs are assigned and they can be different all the time, but devices like PCs and roboRIOs can add-in or drop out at any time.

Instead of using IP addresses, you should be using DNS names, but you probably have a DNS suffix problem.
As a test try typing this name into the Driver Station in place of the IP address you have been using:
- roboRIO-1452-FRC.frc-robot.local

If that works, then I have something else for you to experiment with to fix your issue.

simpsonboy77 04-02-2017 15:17

Re: Robot OM5P-AN radio will not connect to computer
 
Quote:

Originally Posted by Mark McLeod (Post 1640361)
As a test try typing this name into the Driver Station in place of the IP address you have been using:
- roboRIO-1452-FRC.frc-robot.local

Isn't it roborio-1492-frc.local?

Mark McLeod 04-02-2017 15:17

Re: Robot OM5P-AN radio will not connect to computer
 
Sometimes, but if it is then the Driver Station shouldn't have problems finding it.
There is sometimes a spurious ".frc-robot." thrown into the middle.
There is an easy solution if this is the case here, but I'd like to confirm the issue, before going through that.

Mark McLeod 04-02-2017 16:46

Re: Robot OM5P-AN radio will not connect to computer
 
In fact try typing roboRIO-1452-frc as a web browser address to see if it gets to the roboRIO.


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

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