|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Static IP vs DHCP
Last year, we had a heck of a time with connectivity dropping, and not 100% sure why. Things like the camera feed via mjpg wouldn't load up reliably and the like. While I'm sure a part of it was bandwidth, I'm wondering if a part of it could be also be mdns configs vs using static IPs. I've personally never had much luck with MDNS in other projects.
Is there a concern by statically configuring IP's for myd river station, roborio, and co-processor as long as their in the correct team number subnet, i.e. 10.59.29.xx for us, 5929? |
|
#2
|
||||
|
||||
|
Re: Static IP vs DHCP
Quote:
1) Use Static IPs where possible. 2) Ensure gateways and subnet masks are set correctly. 3) Ensure connectivity of vital components prior to start of the match by building a dashboard or script. 4) Don't use the words 'balls' and 'fuel' interchangeably on ChiefDelphi.* * This one isn't strictly related and hasn't been tested yet. |
|
#3
|
||||
|
||||
|
Re: Static IP vs DHCP
There should be no concern but I would recommend telling any FTA/FTAA/CSA that is working with your robot that you intentionally set static IPs so they do not assume that you are on mDNS.
Items 2 and 3 and 4 on Marshall's list are great points. |
|
#4
|
|||
|
|||
|
Re: Static IP vs DHCP
At CHS last year we were having similar issues so we talked to an FTA that basically said she thought FIRST had switched to MDNS prematurely, and the FMS couldn't keep up with all the robots. She told us to switch to static IPs and our issues disappeared.
Just for reference, we had two Axis cameras and a Raspberry-Pi on the network in addition to the robo-RIO and driver laptop. |
|
#5
|
||||
|
||||
|
Re: Static IP vs DHCP
This is also a good point. Do make sure any FTA's know what you have done if you are troubleshooting it with them.
|
|
#6
|
|||
|
|||
|
Re: Static IP vs DHCP
Awesome, that was the answer I was hoping for. I agree, mDNS was a bit premature, and as a working network professional myself, I'm not a fan of it in the first place.
Since we're a python shop, our interactions with the majority of FTA/FTAA/CSA is limited due to the non-supported nature, but it's a good thing to keep in mind. as for #4, I'd like to put that should apply to the majority of discussions in person as well. We had a few interesting design discussions about how our robot would be good at ball handling, would store balls in a ball sack, and that we should find a way to empty the ball sack quickly and accurately with our shooter. |
|
#7
|
||||
|
||||
|
Re: Static IP vs DHCP
To echo what others have said, mDNS and static IP are equally supported by FIRST, and maybe one day mDNS will actually work. But I recommend anyone doing dashboards/coprocessors/etc to use static IPs.
|
|
#8
|
|||
|
|||
|
Re: Static IP vs DHCP
My team uses Static IP's, and have avoided a lot of problems.
Make sure you use the default addresses. I believe they are: 10.XX.YY.zz Where XXYY is your team number ZZ is 1 Radio 5 RoboRio 10 Driver Station 12 Camera I'm sure if I am wrong, someone will correct me. |
|
#9
|
||||
|
||||
|
Re: Static IP vs DHCP
Quote:
|
|
#10
|
||||
|
||||
|
Re: Static IP vs DHCP
|
|
#11
|
||||
|
||||
|
Re: Static IP vs DHCP
Quote:
I am all for letting teams stick with what they found has worked, I was posting what I used for reference for anyone new to setting their own static IP addresses. |
|
#12
|
||||
|
||||
|
Re: Static IP vs DHCP
Quote:
Quote:
EDIT: On the plus side, just threw the Q&A team a softball. Last edited by marshall : 12-01-2017 at 13:41. |
|
#13
|
||||
|
||||
|
Re: Static IP vs DHCP
We had some interesting times trying to connect to the field at he beginning of the season. It was suggested we try a static IP by our awesome FTA and the connection problems disappeared. I so no downside to setting static IP's on your 'bots as long as you put each item in the expected range.
|
|
#14
|
|||
|
|||
|
Re: Static IP vs DHCP
Going to just highlight this one from marshall's post.
Driver Station - Static 10.TE.AM.5 would be a reasonable choice, subnet mask must be 255.0.0.0 When there is a communication problem on a DS and they have informed me they are using static IPs, or I drag it out of them after getting the deer-in-the-headlights look when I ask, this is very often the issue. Everyone is so used to using /24 submasks (255.255.255.0) when this particular one must be a /8 (255.0.0.0). The funny thing is that most versions of Windows that I know of automatically default to a /8 when you enter a 10. IP. |
|
#15
|
||||
|
||||
|
Re: Static IP vs DHCP
This is one area that I have a strong opinion on.
If reliability is one of your team's goals for the season, then why take a risk on mDNS? Yes, usually mDNS works just fine. But, I did say usually. Why not just lock down your IPs to KNOWN values and move on. They won't change, you know where each device is addressed, and connections on the field will JUST WORK! What more could you ask for? Well, OK, you could ask for an easy to find guide to setting your IP's statically. Fortunately, this thread already has what you really need to know. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|