Go to Post Last I looked, FIRST wasn't an acronym for inspiration and recognition of robots. It was and is an acronym for inspiration and recognition of science and technology. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 11-01-2015, 13:09
robert1356 robert1356 is offline
Registered User
AKA: Robert Palmer
FRC #3824 (RoHAWKtics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Knoxville, TN
Posts: 48
robert1356 is an unknown quantity at this point
mDNS with router not working correctly

We are running into problems while using the router. If we connect directly with ethernet cable, then roborio-3824.local works fine. However, once we insert the router, using roborio-3824.local only works if the machine from which we are connecting is set to a fixed IP (10.38.24.x) rather than using DHCP. I need to do a little more investigation to be sure the machine is receiving the correct DHCP address, but it appears the router is causing the issue.
  #2   Spotlight this post!  
Unread 11-01-2015, 14:34
dubiousSwain's Avatar
dubiousSwain dubiousSwain is offline
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
dubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond repute
Re: mDNS with router not working correctly

Have you used the radio configuration utility?
__________________
2015 MAR District Champions




  #3   Spotlight this post!  
Unread 17-01-2015, 09:37
robert1356 robert1356 is offline
Registered User
AKA: Robert Palmer
FRC #3824 (RoHAWKtics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Knoxville, TN
Posts: 48
robert1356 is an unknown quantity at this point
Re: mDNS with router not working correctly

We are seeing this problem quite a bit, actually multiple "we's". There are three teams working at the same facility and all three teams are having various similar issues.

(yes, we have run the radio config utility).

I have not been able to completely isolate the issue. Generally it comes to this: computer connects to wifi successfully, computer can connect to roborio if IP address is used, computer fails to connect if mDNS name is used (roborio-team.local).

A quick fix is to set the computer to a static IP address, it will begin to work, then if you change back to a DHCP address, it will continue to work (at least for a while, I haven't verified it it works indefinitely or if it fails again later).

IPv6 may have some relation to the issue as the PC ping responses, when they work initially, have IPv6 addresses instead of IPv4 addresses.

Also - mDNS always works when connected directly via ethernet cable to the roborio.

What I have done is run some tests and collected wireshark network traces (attached).

In the traces, I can see the mDNS requests being sent, but never see a response from the roborio.

Here is what I did in my test:
  • powered robot on (roborio and router)
  • connected a PC to the network wirelessly
  • from PC "ping roborio-3824.local" - worked, but response was on IPV6 address
  • logged into DLINK to look at DHCP assignments
  • roborio-3824.local --> 10.38.24.24
  • pc --> 10.38.24.20
  • DHCP range specified as 10.38.24.20 through 199, subnet mask 255.255.255.0
  • connected Mac OS X to wireless network
  • mac received IP 10.38.24.21, subnet 255.255.255.0
  • checked on DLINK - it shows the mac assigned to 10.38.24.21
  • ... so far, everything looks good ...
  • Mac: "ping roborio-3824.local" -- result:
  • Code:
    Dropkick-Murphys:~ robert$ ping roborio-3824.local
    ping: cannot resolve roborio-3824.local: Unknown host
  • changed Mac to static IP and ping'd - worked
  • changed Mac back to DHCP and ping'd - worked after route failure:
  • Code:
    ping: sendto: No route to host
    ping: sendto: No route to host
    Request timeout for icmp_seq 0
    ping: sendto: No route to host
    Request timeout for icmp_seq 1
    ping: sendto: No route to host
    Request timeout for icmp_seq 2
    ping: sendto: No route to host
    Request timeout for icmp_seq 3
    ping: sendto: No route to host
    Request timeout for icmp_seq 4
    ping: sendto: No route to host
    Request timeout for icmp_seq 5
    ping: sendto: No route to host
    Request timeout for icmp_seq 6
    ping: sendto: No route to host
    Request timeout for icmp_seq 7
    ping: sendto: No route to host
    Request timeout for icmp_seq 8
    Request timeout for icmp_seq 9
    64 bytes from 10.38.24.24: icmp_seq=10 ttl=64 time=1.695 ms
    64 bytes from 10.38.24.24: icmp_seq=11 ttl=64 time=5.960 ms

The shorter name is a capture from using the Mac in DHCP only
The longer name was when I wanted to test using static IP. I did a ping from the Mac while in DHCP, then switched to static, did a ping, then switched back to DHCP and did a ping.
Attached Files
File Type: zip wireshark captures.zip (25.3 KB, 4 views)
  #4   Spotlight this post!  
Unread 19-01-2015, 12:53
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: mDNS with router not working correctly

To clarify, when you say router, do you mean the Dlink DAP-1522 bridge/ap, or do you mean an actual router that multiple teams are connecting to wirelessly?


The following is assuming the latter:

What router are you using? We are using the WRT610N from the KOP in 2009. We've noticed that mDNS does not make it across network interfaces on the router. For example If the robot radio is in bridge 5ghz, mdns does not work on a computer connected to the router's 2.4ghz signal or through ethernet to the router.

Is your router also connected to the internet? Some ISPs have misbehaving DNS servers that will respond to a .local address, which breaks mDNS.
  #5   Spotlight this post!  
Unread 19-01-2015, 18:01
robert1356 robert1356 is offline
Registered User
AKA: Robert Palmer
FRC #3824 (RoHAWKtics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Knoxville, TN
Posts: 48
robert1356 is an unknown quantity at this point
Re: mDNS with router not working correctly

Quote:
Originally Posted by Joe Ross View Post
To clarify, when you say router, do you mean the Dlink DAP-1522 bridge/ap, or do you mean an actual router that multiple teams are connecting to wirelessly?
Actually I meant the Dlink DAP-1522 bridge, configured in AP mode. Sorry for the confusion.
  #6   Spotlight this post!  
Unread 11-02-2015, 00:51
virtuald's Avatar
virtuald virtuald is online now
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,084
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: mDNS with router not working correctly

Did you ever solve this? We are mostly OSX too, and none of our computers can properly resolve the roborio-XXX.local address. Our driver station works just fine though.

I did a little bit of messing around with the settings, and every once in awhile I get it to work. However, I never arrive at a solid conclusion -- as the working state isn't consistent.

I saw some posts online that the DAP-1522 has mDNS problems, and theorized that it may be related to QoS.. and the first time that I disabled QoS it worked. Subsequent times did not work, however.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #7   Spotlight this post!  
Unread 11-02-2015, 09:53
robert1356 robert1356 is offline
Registered User
AKA: Robert Palmer
FRC #3824 (RoHAWKtics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Knoxville, TN
Posts: 48
robert1356 is an unknown quantity at this point
Re: mDNS with router not working correctly

No, I have not solved it. All three of the teams working in our facility are seeing issues, but have worked around it by using static IP addresses. I have a hunch there are many other teams that are having the problem but not reporting it because they have the static IP workaround and we're in a time crunch. I would encourage ANY team that has an issue of mDNS failing to resolve to report the issue.

Go here: http://wpilib.screenstepslive.com/s/...port-resources

Under Forums: NI FRC Community Discussion Section
and
WPILibBug Tracker at the bottom

You can add comments to my reports (search mDNS) or create a new one.
  #8   Spotlight this post!  
Unread 11-02-2015, 10:01
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: mDNS with router not working correctly

Quote:
Originally Posted by virtuald View Post
Did you ever solve this? We are mostly OSX too, and none of our computers can properly resolve the roborio-XXX.local address. Our driver station works just fine though.
Have you tried disabling IPV6? That apparently fixed the problem for someone, but I can't find the thread where it was reported.
  #9   Spotlight this post!  
Unread 11-02-2015, 10:29
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 325
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: mDNS with router not working correctly

One of the suggestions came from here:

http://www.chiefdelphi.com/forums/sh...7&postcount=13

Our team has seen a couple of issues with the mDNS. Most recently we were noticing that when we had two laptops connected, one with the DS (classmate), one connected using LabVIEW (not a classmate). The DS could ping the mDNS name but the LabVIEW machine could not. Manually disconnecting and reconnecting the LabVIEW machine fixed the issue immediately.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
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 00:54.

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