Go to Post Can't engineers be jesters? - danielkitchener [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #31   Spotlight this post!  
Unread 16-03-2015, 12:51
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 325
fovea1959 will become famous soon enough
Re: RoboRIO / FMS / mDNS / lessons learned

Quote:
Originally Posted by Mr. Lim View Post
Also, if the RoboRIO's DHCP server hands out a bunch of leases BEFORE connecting to the FMS, would this necessarily be a bad thing? I'm not sure there is a downside. All the devices would get proper 10.te.am.zz IPs, and assuming mDNS is still configured, everything should be addressable by hostname, even if the FMS doesn't know everyone's IP address via DHCP.
I suspect this might be a bad thing, everyone would have 10.te.am.zz IPs, but would they be *unique*? What if the FMS assigns an address that the RoboRIO previously assigned, but to a different machine?

Would it be correct to say that anything that (correctly) does DHCP, and falls back to link local addresses, and uses mDNS for name lookups works fine? If so, the setup right now works, we just need to take care of the "not correctly" cases (i.e. reusing DHCP-assigned addresses across disconnects/reconnects). Or am I over-simplifying?
Reply With Quote
  #32   Spotlight this post!  
Unread 16-03-2015, 13:26
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,886
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: RoboRIO / FMS / mDNS / lessons learned

Quote:
Originally Posted by Alan Anderson View Post
The problem is that the roboRIO itself doesn't connect to the FMS, and it can't know whether or not to be a DHCP server until after it is already talking to the Driver Station.

I can't think of a reliable way to have a DHCP server decide to be active only when the FMS is not present. There are too many chances for it to be running before the DS has made the FMS connection. My preference would be for a separate physical device in the Ethernet tether between DS and robot bridge.
I expect the FMS DHCP is in the FMS's radio (access point might be a better name.) Since you are on a VPN at that point, each team would have their own DHCP. The RoboRIO cannot connect to the DS until it has an IP in the DS's subnet so it has to get that from the DHCP first. It would be interesting to know if the RoboRIOs subnet mask was still 255.255.255.0 at this point.

A couple of options for DCHP in the pits would be one on your DS. Probably not a good idea since you would have to remember to turn it on & off. Another would be a wired router. You would have to remember to plug it into the the robot radio before turning it on. Or you could go back to static IPs as outlined in screen steps

Other than it taking annoyingly long, we did not have issues connecting in the pit using to default method.
__________________
If you don't know what you should hook up then you should read a data sheet
Reply With Quote
  #33   Spotlight this post!  
Unread 17-03-2015, 09:50
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,695
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: RoboRIO / FMS / mDNS / lessons learned

Here's an example of the PDP fuses working their way out by the time eliminations rolled around.
They were never pushed in all the way.

Properly inserted there should only be about 1/4" showing, and are not removable by hand any longer.
If you can easily remove the fuses by hand, then they are not seated all the way.

Attached are three variations:
- fuses on a robot in Semi-Finals that have worked their way out
- fuses properly seated
- one good/one badly seated fuse to compare
Attached Thumbnails
Click image for larger version

Name:	Mini-fuses.jpg
Views:	134
Size:	204.5 KB
ID:	18665  Click image for larger version

Name:	Good.JPG
Views:	132
Size:	182.3 KB
ID:	18666  Click image for larger version

Name:	Good-Bad.JPG
Views:	128
Size:	132.0 KB
ID:	18667  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #34   Spotlight this post!  
Unread 06-04-2015, 18:37
jgalbraith jgalbraith is offline
Registered User
AKA: James Galbraith
FRC #0231 (High Voltage)
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Houston
Posts: 4
jgalbraith is an unknown quantity at this point
Re: RoboRIO / FMS / mDNS / lessons learned

We ran into this problem at LoneStar on a regular basis (i.e. failure to reconnect to robot after returning to the pit, Driver Station showing a 169.254.X.X address). The key here (as already noted) is the 169.254.X.X address. Ever since Windows Vista (/ward against evil eye), the Windows IP stack generates the 169.254.X.X address if it cannot find a DNS server. This default address is also sticky and hard to flush from the standard GUI interfaces.

The problem lies with the driver station running Windows 7+. The roboRIO seems to be doing what its supposed to do, its just not being sent a DNS query by the driver station.

The fix - reset the ethernet adapter IP system.

The solution: Generate a batch file in Notepad that invokes the windows command line net shell interface. Use it to reset the IP system.

One line, should read:

Code:
netsh int ip reset
Or you could write it out fully:

Code:
netsh interface ip reset
Save the file as with a .bat extension somewhere handy with a memorable title (e.g. reset_ip.bat). Execute it by double clicking on it or any other conventional method.

Our experience is that this fixes the problem in seconds.

Hope this helps. Good luck in this last week of District competitions and at Championship if you are fortunate enough to go.
Reply With Quote
Reply


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 22:04.

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