Go to Post So we can bring 6x more to the Lunar Regional than all other regionals? no fair to those not going! - BBray_T1296 [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-02-2016, 17:17
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,068
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Static IPs on the field

Quote:
Originally Posted by Mark McLeod View Post
There are other issues with setting only the roboRIO to a static IP, as in it won't work in the pits at competition...
This is already an issue. In fact, I'd say its worse, since it occasionally does work, but not usually. With no DHCP server, it has to use self assigned IP's, which do not seem to work often, especially noticeable with newer computers and OS's for some reason. We exclusively use USB for pre-match tethering specifically because of this.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
  #2   Spotlight this post!  
Unread 23-02-2016, 17:22
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,683
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: Static IPs on the field

Using only a USB tether means you can't use your IP camera in the pit.
For PC's that won't give up the field IP assignment use ipconfig /renew

Most of the half hearted home grown solutions cause problems for teams that copy it, but don't understand how IP works.

There was some pre-ship scrimmage that was surprised when teams got different robot cameras because they used a flat network and all the cameras had identical names.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-02-2016 at 17:25.
  #3   Spotlight this post!  
Unread 23-02-2016, 17:40
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,116
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Static IPs on the field

This worked in the past (and should currently work too):

1) Static IP Address on the RoboRio 10.x.y.2
2) DHCP on the Radio
3) Static IP Address on the 1st Camera 10.x.y.12
4) Static IP Address for the DS Hard Wire Connection 10.x.y.5
5) Dynamic IP Address for the DS WiFi

The only time DS is connected by hardwire is when it is tethered to the robot, or the FMS system. So, no IP Conflict ever happens.

When the DS is connected by Wifi, it is either to the Robot, or the School's Wifi. Either the Radio or the School's wifi gives it an IP address, so there is no conflict.

If some people use a hardwire internet connection, that could be a problem.

Note: We have 4 DS, and they never talk to each other directly, so there is no IP conflict.
  #4   Spotlight this post!  
Unread 23-02-2016, 17:54
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,116
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Static IPs on the field

I asked a Q&A to be allowed to go back to the old method of Static IP addresses.

Q901
  #5   Spotlight this post!  
Unread 23-02-2016, 18:05
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,116
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Static IPs on the field

Quote:
Originally Posted by Thad House View Post
With no DHCP server, it has to use self assigned IP's, which do not seem to work often, especially noticeable with newer computers and OS's for some reason.
My guess is that your setup is: Dynamic IP address on the Driver Station Hardwire Port.

When you tether into a port on the Radio, everything works fine because it gets an IP address from the Radio.

However, when you tether directly to the RoboRio, it may or may not work. It works if the last IP address it got was from the Radio. If it wasn't then it has a random IP address and can't find the RoboRio.

Newer computers and OS's may be a problem because they may drop the old IP address faster, and give you a random one if it doesn't get one from a DHCP server. Assigning a Static IP address (self assigned) should work regardless of age of computer and OS.
  #6   Spotlight this post!  
Unread 24-02-2016, 08:44
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,748
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: Static IPs on the field

When you believe that either IP assignment or mDNS are failing, what type of network connection is it? USB, ethernet, or wifi? I use USB more than the others just because of how I set my stuff up. The team uses wifi almost exclusively -- except for the times when the OpenMesh made a bad channel choice and plays the retransmission game.

It would be good to get a sense of whether this is more common to direct tethered ethernet and self-assigned IPs, or to situations when the OpenMesh is involved.

I'll change my habits and use one of the other laptops to see if I can see this happen. Meanwhile, if you get in this situation, please use a command window and ipconfig to see if your laptop IP makes sense (DHCP should give out addresses above 20 I'm pretty sure, and when the OpenMesh isn't involved, the ethernet should be 169.254.xx.xx. The USB should always be 172.22.11.1.

Also, if you get in this situation, one thing to try is to shutdown other interfaces. Try shutting down wifi to see if direct ethernet works.

And of course, please post things that seem to help.
Greg McKaskle
  #7   Spotlight this post!  
Unread 24-02-2016, 11:45
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 61
dvanvoorst is an unknown quantity at this point
Re: Static IPs on the field

Using static IPs was not an issue last year. As CSA I helped a handful of teams switch everything to static to resolve issues with communicating with their Axis cameras. This was done after consulting with FIRST technical support. This provided consistent camera operation both in the pits and on the field.
  #8   Spotlight this post!  
Unread 24-02-2016, 12:40
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Static IPs on the field

Quote:
Originally Posted by dvanvoorst View Post
Using static IPs was not an issue last year. As CSA I helped a handful of teams switch everything to static to resolve issues with communicating with their Axis cameras. This was done after consulting with FIRST technical support. This provided consistent camera operation both in the pits and on the field.
A counterpoint from another CSA:

I too helped a few teams go full-static IP in order to get their Axis cameras to work in the pit. In some cases this caused them to fail to get an FMS connection on the field until they set the Driver Station back to dynamic, though we never pinned down exactly why it wouldn't work. The defaults and fallbacks should have made everything happy.

The more stable fix was to keep everything dynamic and reconfigure the camera with the expected "axis-camera" name. This never failed on the field. It was only an issue off the field if the team's computer was one of the few to be unreasonably reluctant to release a DHCP-assigned ID, and the workaround of disabling/reenabling the Ethernet device always worked in that case.
  #9   Spotlight this post!  
Unread 27-02-2016, 01:48
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: Static IPs on the field

yeah last year was funny...I made my team use a static ip because my vision program didnt like the non static. we NEVER had any connection problem but some of the other teams did when they had a non static ip. I told them to switch to static and helped them do it and boom, they had a working robot again! I was even told by a fms guy that if we had any connection problems it would be our fault...well we didnt...I would go with the static ip and will probably encourage my team to do so...
  #10   Spotlight this post!  
Unread 27-02-2016, 11:19
cbf cbf is offline
Registered User
FRC #2877
 
Join Date: Feb 2012
Location: Newton, MA
Posts: 73
cbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nice
Re: Static IPs on the field

People -- the OpenMesh OM5P-AN radio can run a DHCP server. Enable it!

Then set a DHCP reservation to put your Robrio at the .2 address (e.g. for us that's 10.28.77.2). Set a reservation for your IP camera, if you have one (I think the old convention was the use the .5 address for the camera, or was it .11?). The OM5P-AN should be at the .1 address of course.

This is much better than statically assigned addresses because you don't have to worry about manually changing the Robrio, drive laptop, and/or camera back and forth between static and dynamic address assignment when you're testing, or at the competition -- or simply moving the laptop connection from the robot to your local WiFi because you to look something up on the Internet.
  #11   Spotlight this post!  
Unread 27-02-2016, 11:21
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Static IPs on the field

Quote:
Originally Posted by cbf View Post
People -- the OpenMesh OM5P-AN radio can run a DHCP server. Enable it!

Then set a DHCP reservation to put your Robrio at the .2 address (e.g. for us that's 10.28.77.2). Set a reservation for your IP camera, if you have one (I think the old convention was the use the .5 address for the camera, or was it .11?). The OM5P-AN should be at the .1 address of course.

This is much better than statically assigned addresses because you don't have to worry about manually changing the Robrio, drive laptop, and/or camera back and forth between static and dynamic address assignment when you're testing, or at the competition -- or simply moving the laptop connection from the robot to your local WiFi because you to look something up on the Internet.
This will not work at the event. Your radio will be programmed with a password by the radio kiosk at the event and you won't be able to enable the DHCP server.
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 05:19.

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