Go to Post Finish... what an interesting concept. I'm still hoping to do that to our 2003 bot. - Joshua May [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 15-03-2016, 18:17
ROULT ROULT is offline
Registered User
AKA: pepemanboy
FRC #4403 (ROULT)
Team Role: Mentor
 
Join Date: Mar 2013
Rookie Year: 2013
Location: Mexico
Posts: 32
ROULT is an unknown quantity at this point
Axis camera IP changes during the game

We have configured the axis camera according to the instructions in WPILib 2016.

At the beginning of matches, the camera has effectively an IP corresponding to our team's number (10.44.3.5) but at the half of the game, it changes to something like 192.168...

Has anybody faced the same issue or knows how to solve it?

Thanks in advance for your help and time.
  #2   Spotlight this post!  
Unread 15-03-2016, 18:19
TylerS's Avatar
TylerS TylerS is offline
Registered User
AKA: Tyler Stark
FRC #1747 (Harrison Boiler Robotics)
Team Role: Mentor
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Indiana
Posts: 65
TylerS will become famous soon enough
Re: Axis camera IP changes during the game

Are you using DHCP to assign the axis camera IP or is it static? I recommend going static and retesting to see if that resolves the issue.
__________________
Purdue University 2019 - Aerospace Engineering
2016 - Team 1747 - Design & Build Mentor
2015 - Team 303 - Coach/Build Captain
2014 - Team 303 - Build Captain
2013 - Team 303 - Driver
2012 - Team 303 - Programming Leader
  #3   Spotlight this post!  
Unread 15-03-2016, 18:37
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Re: Axis camera IP changes during the game

There's a setting in there that has it fall back to a 192.168 IP by default if it can't acquire or loses its DHCP assignment.

You can turn that off. Make it either DHCP only or Static IP only.
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
  #4   Spotlight this post!  
Unread 15-03-2016, 19:08
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
Re: Axis camera IP changes during the game

When making it static only, should one specify a router (like 10.30.45.1, or 10.30.45.129)?
Thanks,
Martin Haeberli
(de-)mentor, FRC 3045 Gear Gremlins (formerly SWAT)
  #5   Spotlight this post!  
Unread 15-03-2016, 19:32
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Re: Axis camera IP changes during the game

I've had good luck of setting it to 10.xx.yy.250 on actual fields at events I've CSA'd at.

Static IPs are the last resort. We're typically able to get them all fixed up while using mDNS and DNS.
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
  #6   Spotlight this post!  
Unread 15-03-2016, 20:02
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,906
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: Axis camera IP changes during the game

The field DHCP serves addresses in the .20 to .199 range if I remember correctly.
So static addresses for cameras or other IP devices can use .10 to .19 safely.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #7   Spotlight this post!  
Unread 15-03-2016, 20:25
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
Re: Axis camera IP changes during the game

The Axis camera setup page:

http://wpilib.screenstepslive.com/s/...an-axis-camera

for the 2016 control system says you can use the range .3 to .19 safely for fixed IP addresses.

Quote:
Originally Posted by Mark McLeod View Post
The field DHCP serves addresses in the .20 to .199 range if I remember correctly.
So static addresses for cameras or other IP devices can use .10 to .19 safely.
Martin Haeberli
(de-)mentor, FRC 3045 Gear Gremlins (formerly SWAT)
  #8   Spotlight this post!  
Unread 15-03-2016, 21:16
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,906
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: Axis camera IP changes during the game

By FRC convention static IP addresses use .1 for the radio, .2 for the roboRIO, .4 for an AP to work with the robot radio as bridge, .5 for the DS laptop Ethernet port, .6 for a separate programming PC, .9 for at home DS wireless port, .11 for the first IP camera.

staying somewhat with the conventions makes it easier for others to help you debug, but that's all.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 16-03-2016 at 09:30.
  #9   Spotlight this post!  
Unread 15-03-2016, 22:05
BenjaminWard BenjaminWard is offline
Programming/Controls
FRC #0612 (Chantilly Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Chantilly, VA
Posts: 9
BenjaminWard is an unknown quantity at this point
Re: Axis camera IP changes during the game

I want to point out that your Axis *should* always be available at axis-camera.local. It uses a similar mDNS setup as the robot, so anyone who has the driver station or any other mDNS software (Bonjour through ITunes, etc) will see the camera there.
  #10   Spotlight this post!  
Unread 15-03-2016, 22:08
Poseidon5817's Avatar
Poseidon5817 Poseidon5817 is offline
Founder and CEO, DeadMemes Studios
AKA: Mitchel Stokes
FRC #5817 (Uni-Rex)
Team Role: Mentor
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Clovis, CA
Posts: 407
Poseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud of
Re: Axis camera IP changes during the game

Quote:
Originally Posted by BenjaminWard View Post
I want to point out that your Axis *should* always be available at axis-camera.local. It uses a similar mDNS setup as the robot, so anyone who has the driver station or any other mDNS software (Bonjour through ITunes, etc) will see the camera there.
This is what worked for us. Prior to us figuring this out (but after our IP address that we used in the shop stopped working) we would scan the IP range before every match, find the camera, and enter it in the camera feed. This worked, although it was just another annoying thing on our already huge list of annoying things to do to set up for a match.
__________________
My FRC History:

2014 - Team 1671: Central Valley Regional Finalist and Chairman's Award Winner, Sacramento Regional Finalist, Archimedes Quarterfinalist
2015 - Team 1671: Central Valley Regional Semifinalist, Sacramento Regional Semifinalist and Chairman's Award Winner, Newton Winner, Einstein Winner
2016 - Team 5817: Central Valley Regional Finalist and Rookie All-Star, Orange County Regional Quarterfinalist and Rookie All-Star, Newton Division
2017 - Team 5817: Return of the bench grinder


  #11   Spotlight this post!  
Unread 15-03-2016, 23:24
hardcopi hardcopi is offline
Registered User
AKA: Rich Lester
FRC #2959 (The Robotarians)
Team Role: Mentor
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Coloma, MI
Posts: 274
hardcopi has much to be proud ofhardcopi has much to be proud ofhardcopi has much to be proud ofhardcopi has much to be proud ofhardcopi has much to be proud ofhardcopi has much to be proud ofhardcopi has much to be proud ofhardcopi has much to be proud ofhardcopi has much to be proud of
Re: Axis camera IP changes during the game

Ours didn't work the entire first day. The FTA's tried to get it working but it needed a static ip and we had to set up the windows host file to force axis-camera.local to 10.29.59.11 (our camera's static ip). Just wouldn't be seen on the dashboard until we forced windows to see it. Mdns just wasn't cutting it.
  #12   Spotlight this post!  
Unread 16-03-2016, 08:12
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Axis camera IP changes during the game

[minor rant]

It's very unfortunate that using static IPs is has become obfuscated. It pretty much cost us the first 3/4 of our first event as I stupidly believed that static IPs wouldn't work and/or were against the rules. It would be nice if the documentation was explicit, or at least it said somewhere that it is okay to do it if you follow these guidelines.

[/minor rant]


[important part]

After I read on chiefdelphi.com that people were using static IDs and it was indeed allowed, I then looked for what IDs we could use. That wasn't easy to find. When I finally found what I was looking for, it is stupidly simple. So here it goes:

1) Find the documentation for the FRC control system from 2014 (or earlier). 2) Set the IPs as described. 3) Profit

[sub minor rant]What bothered me is that they could have just said "you can continue to use the same static IP ranges from past years".[/sub minor rant]

For those without past years' documentation, here it is:

Set roboRIO to 10.xx.yy.2
Set driver station to 10.xx.yy.5
Set camera 1 to 10.xx.yy.11
Set camera 2 to 10.xx.yy.12

(where xx.yy is your team number, so 2112's roboRIO would be 10.21.12.2 and team 51's would be 10.00.51.2).
__________________
-
An ounce of perception is worth a pound of obscure.

Last edited by Chris Hibner : 16-03-2016 at 08:18.
  #13   Spotlight this post!  
Unread 16-03-2016, 09:27
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 992
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: Axis camera IP changes during the game

Quote:
Originally Posted by mhaeberli View Post
for the 2016 control system says you can use the range .3 to .19 safely for fixed IP addresses.
It's wrong (slightly). You should not use .4.

This is the address of something on the field (router, AP interface, etc.) that is set as the gateway for the roboRIO as part of the DHCP address served by the field (you can see this if you USB tether to the robot and pull up the web interface without turning the robot off after a match.
  #14   Spotlight this post!  
Unread 16-03-2016, 09:38
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Axis camera IP changes during the game

Quote:
Originally Posted by Chris Hibner View Post
[minor rant]

It's very unfortunate that using static IPs is has become obfuscated. It pretty much cost us the first 3/4 of our first event as I stupidly believed that static IPs wouldn't work and/or were against the rules. It would be nice if the documentation was explicit, or at least it said somewhere that it is okay to do it if you follow these guidelines.

[/minor rant]
It's documented in this years documentation. http://wpilib.screenstepslive.com/s/...g-at-the-event

Quote:
Originally Posted by Chris Hibner View Post
For those without past years' documentation, here it is:

Set roboRIO to 10.xx.yy.2
Set driver station to 10.xx.yy.5
Set camera 1 to 10.xx.yy.11
Set camera 2 to 10.xx.yy.12

(where xx.yy is your team number, so 2112's roboRIO would be 10.21.12.2 and team 51's would be 10.00.51.2).
As documented at the link above, the driver station netmask must be 255.0.0.0 or else it won't connect to FMS.
  #15   Spotlight this post!  
Unread 16-03-2016, 09:40
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 535
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Axis camera IP changes during the game

Another observation from this, and also having major pain in the a$$ with mdns in our setup, still to be "working" but no root cause of why Aaron spent two hours in our pit on Thursday at Waterford.. I feel for you Chris.

Please note that once your radio is programmed at the event, the DHCP server is turn off on your robot radio. The field is the only DHCP server while at the event.

So when you are in your pit, and testing there is no DHCP server to hand out IP addresses, so everything kind of defaults back to the 169. address space. For others this seems to work... For us, not so much...

When we were in the pit at Waterford, I used an old dlink configured to our home settings, when I needed to test and program. (which was all the time)


Thanks for the info on the static IP's
__________________
The sooner we get behind schedule, the more time we have to catch up.

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 01:31.

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