Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=177)
-   -   Onboard coprocessors/DHCP at events (http://www.chiefdelphi.com/forums/showthread.php?t=134977)

fovea1959 20-02-2015 16:32

Onboard coprocessors/DHCP at events
 
We've going with a second computer on-board this year for the first time.

In years past, everything got static addresses, so our setup would have worked at home, on the field, and in the pits (where we have no DHCP).

This year, everything is using DHCP and letting mDNS sort things out (thank you, FIRST, this was a relief when switching between the robot and the school network).

but...

at the event, are we going to have to switch things back to static addresses so they work in the pits? or is there a better solution?

Joe Ross 20-02-2015 22:19

Re: Onboard coprocessors/DHCP at events
 
Are you using mDNS to find the coprocessor? If so, it should continue to work as long as the coprocessor assigns a link local address when there isn't a dhcp server.

fovea1959 22-02-2015 20:04

Re: Onboard coprocessors/DHCP at events
 
coprocessor is Debian-based, and we have avahi installed so we would have mDNS working, and avahi-autoipd takes care of allocating a LL address, so all is well. tested with roboRIO, coprocessor, and laptop on a hub with no DHCP in sight....

never done zeroconf before, this is pretty cool!

billbo911 22-02-2015 20:22

Re: Onboard coprocessors/DHCP at events
 
Our on board coprocessor is using the static address 10.20.73.25.
Is this going to cause an issue?

Joe Ross 22-02-2015 20:36

Re: Onboard coprocessors/DHCP at events
 
Quote:

Originally Posted by billbo911 (Post 1448492)
Our on board coprocessor is using the static address 10.20.73.25.
Is this going to cause an issue?

Based on http://forums.usfirst.org/showthread...P-on-the-field you should choose an IP address outside of 20-199 and shouldn't expect the roboRIO or Driver Station to be at a certain IP address.

billbo911 22-02-2015 20:53

Re: Onboard coprocessors/DHCP at events
 
Quote:

Originally Posted by Joe Ross (Post 1448494)
Based on http://forums.usfirst.org/showthread...P-on-the-field you should choose an IP address outside of 20-199 and shouldn't expect the roboRIO or Driver Station to be at a certain IP address.

Thanks Joe! Simple change.

fovea1959 22-02-2015 21:44

Re: Onboard coprocessors/DHCP at events
 
billbo911: I suspect that when you are in the pits or on the practice field at an event with the radio in bridge mode, you won't have any DHCP server, so your laptop and roborio will come up with a 169.254.x.x link local address, your coprocessor will be 10.xx.yy.zz, and your coprocessor won't be able to communicate to the rest of your setup. That's only in the pits or on the practice field.

This was the situation I was worried about, but Joe advised to make sure that everything fell back to using a link local address, and that seems to be ok.

is your coprocessor Linux based? if so, install the avahi utilities, and they will take care mDNS and link local addressing.


All times are GMT -5. The time now is 20:16.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi