![]() |
RoboRIO / FMS / mDNS / lessons learned
Hi folks,
We're having a good time in Duluth. We learned a few things about the Roborio and the new mDNS stuff the hard way. In hindsight, they're fairly obvious, but I thought I'd share our experience in the hope it saves someone else some of our puzzlement. (Nicely, the good FIRST people helped us figure it out in the practice rounds, so no Q round harmed). We learned two things the hard way: 1. Once you get to the regional, and have the D-link configured, you are in bridge mode, and there is no DHCP server. 2. If you use static IPs, you *must* use a netmask of 255.0.0.0 or you won't work on the field. Some subtleties of #1: a. The mDNS stuff will keep working. But the Robo Rio and your windows laptop will use a 169.XXX address, and other devices (like our Axis camera and our Pi) will use the last leased address, in our case 10.28.23.X. So you won't be able to communicate in the Pit. Ironically, there is a dhcp server on the field, so you *will* be able to communicate on the field. b. If you had the D-link assign a particular IP to a device, you lose that once the router is reconfigured. For example, we had the d-link give the axis a set address. The camera was still in DHCP mode, but it always got assigned .11. That meant we could keep using the basic smart dashboard widget, which only accepts a numeric IP address. Of course, that falls apart when you no longer have a DHCP server... So the solution to #1 was to switch over to using static IPs. *It turns out that this is really easy*. Hit roborio-XXXX.local with a web browser, click on the network configuration, one easy choice, and you are done. (This presumes you're still good at doing static ips for your other devices). The *catch* is that the default netmask the RoboRio will suggest is 255.255.0.0. That will work great in the pits, but the FMS requires a netmask of 255.0.0.0. (If you think about it, that's obvious :-/). At any rate, I hope this helps someone else, and good luck to you all. And a shout out to the Lake Superior staff for doing a great job of running a smooth week 1. Cheers, Jeremy |
Re: RoboRIO / FMS / mDNS / lessons learned
Quote:
Quote:
|
Re: RoboRIO / FMS / mDNS / lessons learned
Quote:
accepts numeric ips. I didn't find a bug report for it, so I've entered it here: https://usfirst.collab.net/sf/go/artf4028 (and boy that is not especially easy or obvious; you have to 'Plan' to add an artifact...) Quote:
Cheers, Jeremy |
Re: RoboRIO / FMS / mDNS / lessons learned
Quote:
Thanks for posting this! We'll definitely be setting up a static IP configuration at the comp, as we're using macs. |
Re: RoboRIO / FMS / mDNS / lessons learned
Very interesting subtleties. I can see those being very annoying.
During Alpha testing I was very postivie of moving to DHCP and taking away the need to set static IPs. This was especially useful for programming laptops that were switching constantly between robot networks (static) and internet connections (DHCP). I still am a big fan of DHCP, but recognize there are instances like this where a lack of mDNS support by some peripherals (IP-based cameras, embedded computers for co-processing, etc) could be an issue. The pros outweigh the cons for sure, however. I'd have to agree with jhersh in saying that the best situation is to get all devices on dynamic IPs via DHCP + mDNS, then address them only by their hostnames. Of course not everything supports mDNS. The RPi can probably do it with some additional software: http://www.howtogeek.com/167190/how-...-raspberry-pi/ The newer Axis Cameras (M1011 onwards) should also support Apple Bonjour, which actually should provide mDNS services. I haven't tried either so I'm not speaking from experience, but they are both worth a shot trying to configure. Alternatively, I think a cool potential solution would be to have the RoboRIO detect whether a DHCP server is present on the network, and if not, act as a DHCP+DNS server. It would then need to shut down and hand off the leases to the FMS's DHCP server when connected to the field, which would probably be the hard part. Multiple DHCP servers on the same network aren't ideal. |
Re: RoboRIO / FMS / mDNS / lessons learned
Quote:
Quote:
It is a work-around to an actual problem that teams obviously are dealing with. Thanks for sharing! |
Re: RoboRIO / FMS / mDNS / lessons learned
Quote:
|
Re: RoboRIO / FMS / mDNS / lessons learned
Quote:
Also, are you aware of this? : https://discussions.apple.com/thread/6607871 |
Re: RoboRIO / FMS / mDNS / lessons learned
Just to be sure everyone who is looking at this thread knows about the documentation for the network configuration in FRC 2015, I want to provide the link: https://wpilib.screenstepslive.com/s...rio-networking
|
Re: RoboRIO / FMS / mDNS / lessons learned
Quote:
A prior thread about this is here: http://www.chiefdelphi.com/forums/sh...d.php?t=132607 Thinking about it, maybe it'll just work for us since we'll always be tethered at the comp, and mDNS worked just fine for me when I was connected via ethernet. |
Re: RoboRIO / FMS / mDNS / lessons learned
Quote:
But if you can persuade all your other devices to do the same, and all your software can use names, you should indeed be in great shape. (A lazy 5 minute Google and read of the M1011 manual suggests possibilities, but not clear paths to doing that. The M1011 appears to let you set *two* addresses; not sure which gets the 'axis-camera.local' name. The Pi can use avahi to set a link local address. It's not clear to me if there is an easy or clean way to have the dhcp server fall back. I suspect another 20 minutes of Googling might help...) Quote:
Quote:
Cheers, Jeremy |
Re: RoboRIO / FMS / mDNS / lessons learned
Quote:
Quote:
Sure. Disclaimer, this is all meant in a constructive way, and I know that you have little control over collab.net. Just trying to cheerfully and positively illustrate my experience. Nit #1 - this page: http://wpilib.screenstepslive.com/s/...-documentation At the bottom, there is a list of what to do with an unresolved problem. That list, or elements of it, could be drawn out on the 'Troubleshooting' main page; or be somewhat more visible. I only found it because I knew you wouldn't have asked me to file a bug if I there wasn't a link, so I just kept digging until I found it. And then, really minor nit, I think the list of three action items should be bullets; my eye scans better that way. (I found the link with a ctrl-F on collab, *not* by seeing it). Super dooper teeny nit: the url could be an href... Nit #2: this page: https://usfirst.collab.net/sf/projects/wpilib/ Doesn't really have good guidance for someone new to all this. The welcome tells me how to clone the code, and points me back to the same documentation I just came from it I want more help. The 'getting around' and 'how to participate' sections are empty. Be nice to have more newb friendly advice. (The opening could be, if you are a developer, then...to report a bug, then ....) Okay, now I've been a good boy, and remembered that I'm supposed to do something with Trackers. So I click on 'Trackers' (not bugs; nowhere on this page does it say what to do if I want to report a bug). As as exercise, click on that with an icognito window to get the newb experience. Nowhere on that page is there an obvious way to enter a bug. You're in list mode. Now let's say you get lucky, and you click 'Plan' mode. Now you're invited to pick a planning folder. Or maybe 3. Who knows? You just want to enter a bug... But let's say you try it, and you pick Java. Gee, that '+' button is greyed out, with no tooltip. So then you make an account, repeat the exercise, and then finally you enter, not a bug, mind you, but an 'Artifact'. And then you have apparently done it. And then you go back and write a disclaimer because you're not really grumpy :-). Cheers, Jeremy |
Re: RoboRIO / FMS / mDNS / lessons learned
Quote:
|
Re: RoboRIO / FMS / mDNS / lessons learned
I can testify that running Avahi on a rPi works just fine in the pits, on the field, and in practice.
The axis camera would still be a problem. We finally abandoned ours and went to a Lifecam on the roboRIO.... |
Re: RoboRIO / FMS / mDNS / lessons learned
How do we get the default dashboard to use the mDNS in place of the IP addresses. After a match we could sometimes tether and after a few minutes would loose the tether and seemed to have a very dificult time to re establish communications.
|
| All times are GMT -5. The time now is 07:40. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi