Go to Post Swerve Drive (n.) - a set of mechanisms to ensure the robot will sit dead on the field for half of that robot's first event - Kevin Leonard [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 Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 10-01-2015, 22:31
virtuald's Avatar
virtuald virtuald is offline
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,102
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
Not able to connect to roborio mDNS name on OSX

This afternoon, while we were testing robot stuff, I noticed that our Windows driverstation was able to resolve roborio-1418.local, and our OSX machines were not able to do so. This struck me as strange, as I hadn't had problems with resolving the address in the past.

However, tonight while looking around for other things, I found this message in the logfile '/var/log/messages':

Code:
Jan 10 21:43:38 roboRIO-1418 nimDNSResponder: Local Hostname roboRIO-1418.local already in use; will try roboRIO-1450.local instead
After seeing this, I decided to look at my local mDNS settings, and lo and behold I found my roborio as 'roboRIO-1450.local' instead! I suspect there's a bug in the NI mdns responder.. or at least some unanticipated behavior. Any thoughts?
__________________
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
  #2   Spotlight this post!  
Unread 11-01-2015, 00:24
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,756
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: Not able to connect to roborio mDNS name on OSX

I haven't seen that error message before. I was wondering if you are using the USB connection. I commonly used mDNS from my mac, but of course it only works on ethernet or wifi, as I don't have a mac driver for enet over USB.

Greg McKaskle
  #3   Spotlight this post!  
Unread 11-01-2015, 00:26
virtuald's Avatar
virtuald virtuald is offline
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,102
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: Not able to connect to roborio mDNS name on OSX

Quote:
Originally Posted by Greg McKaskle View Post
I haven't seen that error message before. I was wondering if you are using the USB connection. I commonly used mDNS from my mac, but of course it only works on ethernet or wifi, as I don't have a mac driver for enet over USB.

Greg McKaskle
I was not using the USB connection at that time.
__________________
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
  #4   Spotlight this post!  
Unread 11-01-2015, 16:42
cal3d cal3d is offline
Registered User
FRC #0467 (Shrewsbury Colonials)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Shrewsbury, MA
Posts: 8
cal3d is an unknown quantity at this point
Re: Not able to connect to roborio mDNS name on OSX

We're seeing the same issue on both of our RoboRIO. For now, we've worked around the problem by using static addresses - it would be good to have this working though.
  #5   Spotlight this post!  
Unread 12-01-2015, 19:06
cal3d cal3d is offline
Registered User
FRC #0467 (Shrewsbury Colonials)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Shrewsbury, MA
Posts: 8
cal3d is an unknown quantity at this point
Re: Not able to connect to roborio mDNS name on OSX

We found a potential solution. Setting the IPV6 configuration on the router to auto configure - rather than link local appears to solve the issue.
  #6   Spotlight this post!  
Unread 24-01-2015, 12:21
virtuald's Avatar
virtuald virtuald is offline
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,102
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: Not able to connect to roborio mDNS name on OSX

Greg,

We did some investigation on this on the robot's network, and the two mdns processes are definitely conflicting with each other. I can't imagine why both are enabled -- I suspect an oversight?

Anyways, I disabled the avahi-daemon from starting, and the problem went away. I would recommend that NI/FIRST remove one of the mdns daemons from future images.

Interestingly, I don't have this problem when the robot is connected to my network at home, only on the network connected to an FRC configured router.

I tried the link-local thing, and I'm not sure if it made a difference. I don't think it did.
__________________
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 25-01-2015, 16:47
virtuald's Avatar
virtuald virtuald is offline
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,102
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: Not able to connect to roborio mDNS name on OSX

Interesting update -- we have found that:

When we disable avahi-daemon and enable NI's mDNSResponder, then the Driver Station software can no longer connect to the robot, but OSX can resolve the robot's .local address.

When we disable NI's mDNSResponder and enable avahi-daemon, then the Driver Station software can connect to the robot, but OSX cannot resolve the robot's .local address.

When we enable both, then the Driver Station software works, but OSX cannot resolve the robot's local address. Additionally, we get the errors in the /var/log/messages.
__________________
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
  #8   Spotlight this post!  
Unread 01-03-2015, 14:54
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Not able to connect to roborio mDNS name on OSX

Quote:
Originally Posted by virtuald View Post
We did some investigation on this on the robot's network, and the two mdns processes are definitely conflicting with each other. I can't imagine why both are enabled -- I suspect an oversight?
It is actually not an oversight as it turns out. I was as surprised as you at first. I dug into the reason and found out that the system configuration people have settled on avahi as the mDNS software for the platform. Unfortunately for the vision group, avahi does not have an API to return all of the IP address records returned by the queried device. The way Axis implemented mDNS on their cameras is incompatible with this since it returns a link-local address (If link-local could work consistently when you have more than one network interface it wouldn't matter.) even when the camera has a DHCP or static configured address, and in an unreliable order. The maintainer of avahi, Lennart Poettering, has made it clear that he doesn't want to support returning more than one IP address. This limitation does not exist with mdns-responder, so the vision team opted to run that as well!

I'm not sure there is a way to stop running both and still support Axis cameras, but hopefully there is a way to make avahi responses make it back to the mac. Do you have pcap files showing the working vs. non-working traffic?
  #9   Spotlight this post!  
Unread 01-03-2015, 15:16
virtuald's Avatar
virtuald virtuald is offline
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,102
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: Not able to connect to roborio mDNS name on OSX

Quote:
Originally Posted by jhersh View Post
It is actually not an oversight as it turns out. I was as surprised as you at first. I dug into the reason and found out that the system configuration people have settled on avahi as the mDNS software for the platform. Unfortunately for the vision group, avahi does not have an API to return all of the IP address records returned by the queried device. The way Axis implemented mDNS on their cameras is incompatible with this since it returns a link-local address (If link-local could work consistently when you have more than one network interface it wouldn't matter.) even when the camera has a DHCP or static configured address, and in an unreliable order. The maintainer of avahi, Lennart Poettering, has made it clear that he doesn't want to support returning more than one IP address. This limitation does not exist with mdns-responder, so the vision team opted to run that as well!

I'm not sure there is a way to stop running both and still support Axis cameras, but hopefully there is a way to make avahi responses make it back to the mac. Do you have pcap files showing the working vs. non-working traffic?
I don't have any at the moment, and won't have access to our unbagged roboRIO until Thursday. I might be able to collect some pcap files then.
__________________
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
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 02:51.

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