Go to Post Keep reading. - Billfred [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2016, 23:42
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 116
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
Strange mDNS behavior

On my machine, I often get into this state when connected to the robot via wireless:

1) I can ping roborio-488-FRC.local
2) I can ping roborio-488-FRC.lan

However, the FRC Driver Station has no comms. When I go to the diagnostics tab, the "Robot Radio" is green, but all other lights are not lit.

Pressing the arrow next to our team number in the Setup tab gives "None Found", even when shift-clicking.

The nimDNSResponder service is running.

If I plug in directly using USB, I have connection. Strangely enough, if I then pull out the USB cable I get "disconnected" for about 5-10 seconds, and then it connects (via wireless). This is a decent enough workaround, but still troubling.

Any suggestions? How can I debug this further?
  #2   Spotlight this post!  
Unread 11-02-2016, 23:53
tstew's Avatar
tstew tstew is offline
Alumni
AKA: Timothy Steward
FRC #3928 (Team Neutrino)
Team Role: Alumni
 
Join Date: Mar 2014
Rookie Year: 2013
Location: Ames, IA
Posts: 21
tstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud of
Re: Strange mDNS behavior

I have had similar issues with mDNS. I have found that by giving the roboRIO a static IP address of 10.te.am.2 seems to fix most issues when mDNS doesn't work. You can configure the RoboRIO to use a static ip address through the RoboRIO Webdashboard: http://wpilib.screenstepslive.com/s/...kConfiguration
  #3   Spotlight this post!  
Unread 12-02-2016, 08:45
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 520
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Strange mDNS behavior

We have also had this issue this year, and we are having issues dropping code, while testing. Last night we tried to tether the bot, but still had issue.

Will try the static ip trick on Saturday.
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #4   Spotlight this post!  
Unread 12-02-2016, 08:58
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Strange mDNS behavior

The m in mDNS stands for multi-cast, and from logs, there are times when the Windows multi-cast services seems to be using cached results and the DS is not able to resolve -- until something causes the multi-cast stuff to rebuild its tables, and then everything works again.

I have not seen this at all this year on our test system or on the robots, but I saw it occasionally last year. Other mDNS implementation gotchas were fixed, but this one didn't have an obvious workaround that we wanted to incorporate into the DS. Bringing an interface up or down seems like the sort of thing that might poke the multi-cast to rebuild. Disconnecting and reconnecting an ethernet cable would often do it when that was the interface to the robot.

I understand that static IPs are a solution of sorts, but they introduce other issues, especially when that robot shows up at an event. The robot won't connect to the field, so the CSA or FTA discovers and changes the roboRIO and DS laptop settings. But that may break the programming laptop connectivity, so the team may change it back again, ...

So if you go the static route, please report the issues that caused you to go static. Don't go static just because the cool kids are doing it. And please set your stuff back to use DHCP when you go to an event.

Thanks from a guy wearing an orange hat.
Greg McKaskle
  #5   Spotlight this post!  
Unread 12-02-2016, 09:59
Hugh Meyer's Avatar
Hugh Meyer Hugh Meyer is offline
Registered User
FRC #1741 (Red Alert Robotics)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Greenwood Indiana
Posts: 158
Hugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud of
Re: Strange mDNS behavior

Greg,

Thank you for that description about the mDNS cacheing issue. You mentioned that you could see this from the logs. Can you share where those logs are and what to look for. We have seen connection issues and a solution was to disconnect and reconnect the Ethernet cable on the robot....which is what you mentioned. Next time this happens I will try to investigate what is happening in more detail. Are there any Windoze commands to expose the multi-cast services information?

-Hugh
  #6   Spotlight this post!  
Unread 12-02-2016, 12:59
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Strange mDNS behavior

The logs I was referring to were PCAP trace logs taken using Wireshark or TCPDump. They are not easy to pour through, and thus not easy to draw definitive conclusions.

I looked briefly for command line tools that we might use to diagnose or work around the issue. I didn't find anything. I'd love to hear from others if they know of something.

Greg McKaskle
  #7   Spotlight this post!  
Unread 12-02-2016, 14:10
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 520
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Strange mDNS behavior

We are constantly having issues this year.

Labview, almost everytime we make a change and deploy we lose connection the first time, requires us to send code a second time to enable.

Many times the driver station does not detect comms. We are actually running code from the same laptop, the driver station on the same laptop does not see roborio.

I have also had the webpage up and working and the driver station not have comms.
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #8   Spotlight this post!  
Unread 12-02-2016, 14:18
tstew's Avatar
tstew tstew is offline
Alumni
AKA: Timothy Steward
FRC #3928 (Team Neutrino)
Team Role: Alumni
 
Join Date: Mar 2014
Rookie Year: 2013
Location: Ames, IA
Posts: 21
tstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud oftstew has much to be proud of
Re: Strange mDNS behavior

Quote:
Originally Posted by Greg McKaskle View Post
please report the issues that caused you to go static.
Greg McKaskle
Here is a list of issues that my team was having that went away when we gave the robot a static ip address.
  • Driver Station sometimes does not connect to the robot after a Java code deploy (Communications and Robot Code status are both red in the Driver Station). Rebooting the RoboRIO temporary resolves this.
  • A Java deploy from Eclipse on Windows sometimes can not find the robot at roboRIO-3928-FRC.local. Again, rebooting the RoboRIO temporary resolves this.
  • Riolog in Eclipse is empty, it does not show any printouts or messages from the roboRIO.

Quote:
Originally Posted by Greg McKaskle View Post
I understand that static IPs are a solution of sorts, but they introduce other issues, especially when that robot shows up at an event. The robot won't connect to the field, so the CSA or FTA discovers and changes the roboRIO and DS laptop settings. But that may break the programming laptop connectivity, so the team may change it back again, ...
Greg McKaskle
My team went to multiple competitions last year with a static ip and had no issues. There are multiple people on my team that know how to change the roboRIO's network settings if problems do arise.

Before 2015 the cRIO had a static ip address of 10.te.am.2 by default. Does anyone know why this was changed? I can not think of any case where two robots with the same team number would be on the same network.

Last edited by tstew : 12-02-2016 at 14:19. Reason: better grammer
  #9   Spotlight this post!  
Unread 13-02-2016, 09:26
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Strange mDNS behavior

Since you mention the RIOLog issue, because of the new radio, one thing you may want to try is to move the ethernet connection to the roboRIO to the other radio port. I believe you want it connected to the one next to the power connector.

While it is totally fine to list issues on CD, that isn't the same as a bug report. With the new website, I'm not certain where the official reporting location is, but perhaps the ScreenStepsLive bugs would be appropriate.

As for static IP addresses, they were never ideal, and the old system used them because it was too difficult to get DHCP and all of the other modern services up and going in all configurations. The benefit of static IPs are that it is a manually controlled, rigid, simple system. The downside is that things are manual and must adhere to the system at all times. Taking a programming laptop online to submit code or look up a manual, then back to the robot was error prone and tedious. DNS and mDNS let the computer and devices do these tasks for you, but they aren't bulletproof. Static IPs aren't bulletproof either. The roboRIO and DS fallback to static IPs, mostly as a safety net, so they should continue to work, but they are not the recommended setup, and for example, I don't know that they get much testing, beta or otherwise.

Feel free to do whatever meets your needs at your shop, but when you come to an event, it is best to follow the current FRC guidelines for configuring your radio, computers, firmware versions, etc.

Greg McKaskle
  #10   Spotlight this post!  
Unread 26-02-2016, 14:41
Ninjastahr's Avatar
Ninjastahr Ninjastahr is offline
FRC Member
FRC #3928 (Team Neutrino)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2014
Location: Iowa
Posts: 30
Ninjastahr is an unknown quantity at this point
Re: Strange mDNS behavior

On the Radio Configuration Utility, it says the Ethernet cable should be plugged in to the port farthest away from the power cable.
  #11   Spotlight this post!  
Unread 26-02-2016, 14:58
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Strange mDNS behavior

I agree that the photos on ScreenSteps show that you are to use the port away from power for configuring the radio. I didn't find anything specifying which port should be used to connect to the roboRIO. Can you point it out?

My previous post was conveying what I was told was the recommended the configuration on the robot. Honestly, I haven't seen this issue, so anything I tell you is second hand. Since there are only two ports, as soon as I see it, I will try both and have a stronger recommendation.

Greg McKaskle
  #12   Spotlight this post!  
Unread 26-02-2016, 16:26
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,817
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Strange mDNS behavior

Quote:
Originally Posted by Ninjastahr View Post
On the Radio Configuration Utility, it says the Ethernet cable should be plugged in to the port farthest away from the power cable.
See Team Update 8
at the top bolded Control System Note
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #13   Spotlight this post!  
Unread 27-02-2016, 17:10
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 520
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Strange mDNS behavior

Still having issue, spent 1 hour of out of bag time today trying to get it to communicate with drivers station, reflashed firmware on router, reconfigured router, reboot computer after router was up, hard reset roborio, gave up on wan, plugged in hard line to router, still no comms...

tried 3 laptops with driver station, new release.

put the old router on bot, everything works fine.

Not looking forward to playing week 1 with this router...
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #14   Spotlight this post!  
Unread 27-02-2016, 22:34
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Strange mDNS behavior

Are you sure your Windows firewall is completely disabled?


I *think* I fixed a Driver Station communication weirdness at our shop today. We've been having problems establishing communication with the robot right after turning everything on. Enough messing around with the network settings gets it working.

The firewall was off, but only for "private" networks. The laptop apparently makes a distinction between the two different routers even with the same SSID, and it seems to have decided that the new router has established a "public" network. Maybe turning off the other half of the firewall fixed it...or maybe doing that reached the necessary amount of messing around with the network settings, and it'll be broken again next time we try.
  #15   Spotlight this post!  
Unread 27-02-2016, 23:01
TheFox2996 TheFox2996 is offline
Registered User
AKA: Ben Fox
FRC #2996 (Cougars Gone Wired)
Team Role: Leadership
 
Join Date: Feb 2016
Rookie Year: 2013
Location: Colorado Springs
Posts: 13
TheFox2996 is an unknown quantity at this point
Re: Strange mDNS behavior

Quote:
Originally Posted by tr6scott View Post
We are constantly having issues this year.

Labview, almost everytime we make a change and deploy we lose connection the first time, requires us to send code a second time to enable.

Many times the driver station does not detect comms. We are actually running code from the same laptop, the driver station on the same laptop does not see roborio.

I have also had the webpage up and working and the driver station not have comms.
We have the exact same issue as you this year. Last year as well as this year, we have run using a static IP on the roboRIO. We had no trouble last year, but for some reason this year are having trouble deploying code every now and then. Ultimately we found that pinging team-xxxx-FRC.local, would take a while to connect and pinging 10.xx.xx.2 would connect instantly. We attempted to switch our deployment target to our static IP, and it fixed our problems with deploying, but if you choose this route, you cannot tether directly via USB because it will assign the roboRIO a different IP.

Another note, anytime we have this deployment issue, we always have a red or blank comm light. For now we have been resetting the roboRIO to get a green comm light. This is just our fix for now, and it will work for the time being. We are going to work more on it this week and will keep you posted. I'm guessing your team is having a similar problem to us, and I hope I helped to identify the problem more.
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 13:41.

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