Go to Post We figured it out. - benjiengi [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 17-03-2013, 13:46
mcvittal mcvittal is offline
Registered User
FRC #3756
 
Join Date: Mar 2013
Location: London, Ontario
Posts: 5
mcvittal has a spectacular aura aboutmcvittal has a spectacular aura about
Automatically configuring your IPv4 settings

Discovered this useful windows batch command and thought I'd share.

netsh int ip set address "wireless network connection" static 10.37.56.25 255.0.0.0

Change the 10.37.56.25 to your appropriate team number (If you're on team 1234, you'd have 10.12.34.25).

Save it as a batch file, run it as administrator, and now your drive laptop is set up for connecting to the robot! If anyone knows the appropriate command to set it back to obtaining an IP address automatically, please share

Good luck at the competitions!
  #2   Spotlight this post!  
Unread 17-03-2013, 13:47
dheerm's Avatar
dheerm dheerm is offline
Drive Team and Head Programmer
AKA: Dheer Mirchandani
FRC #0224 (The Tribe)
Team Role: Programmer
 
Join Date: Oct 2012
Rookie Year: 2010
Location: Piscataway
Posts: 37
dheerm will become famous soon enough
Re: Automatically configuring your IPv4 settings

Or you could just go to the driver station, go to setup, and type in your team number again. It does the exact same thing but requires less memorization.
__________________
"All you need is duct tape and a dream"

Team 224:
District Champions @TCNJ w/ Team 56 and Team 293

8th alliance captain at MAR championships w/ (take a guess) , Team 56 and Team 293.

www.team224.com
  #3   Spotlight this post!  
Unread 17-03-2013, 13:51
mcvittal mcvittal is offline
Registered User
FRC #3756
 
Join Date: Mar 2013
Location: London, Ontario
Posts: 5
mcvittal has a spectacular aura aboutmcvittal has a spectacular aura about
Re: Automatically configuring your IPv4 settings

I just set up our desktop background so that the batch file is a really large shortcut - Its easier for our drivers to click a large icon if I forget to change the IP setting back Click image for larger version

Name:	Screenshot.png
Views:	128
Size:	224.4 KB
ID:	14365
  #4   Spotlight this post!  
Unread 17-03-2013, 19:55
Fletch1373's Avatar
Fletch1373 Fletch1373 is offline
Registered User
AKA: Fletch
FRC #3181 (Panthers)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Rochester, NY
Posts: 251
Fletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud of
Re: Automatically configuring your IPv4 settings

Quote:
Originally Posted by mcvittal View Post
Discovered this useful windows batch command and thought I'd share.

netsh int ip set address "wireless network connection" static 10.37.56.25 255.0.0.0

Change the 10.37.56.25 to your appropriate team number (If you're on team 1234, you'd have 10.12.34.25).

Save it as a batch file, run it as administrator, and now your drive laptop is set up for connecting to the robot! If anyone knows the appropriate command to set it back to obtaining an IP address automatically, please share

Good luck at the competitions!
To set it back, just follow the previous instructions, but the command should be:
Code:
netsh int ip set address "wireless network connection" dhcp
__________________
Student:
<04: FRC0213> <05-08: FRC1373>
Mentor:
<09-10: FRC0809> <11-12: FRC3555> <12-14: FRC0073> <15-??: FRC3181>
Volunteer:
<FTAA> <CSA> <Defense Coordinator> <Scorekeeper> <Robot Inspector> <Official Scorer>
2016 Tour:
CTWAT [DefCoord] > Pittsburgh[Mentor/DefCoord] > TVR[FTAA] > FLR[CSA] > NE DCMP[CSA] > CMP[CSA]
  #5   Spotlight this post!  
Unread 17-03-2013, 22:34
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Automatically configuring your IPv4 settings

Thanks to all who contributed to this thread.

These are really handy tips for anyone who needs to switch back and forth between robot networks, and an internet connection.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
  #6   Spotlight this post!  
Unread 17-03-2013, 23:23
mcvittal mcvittal is offline
Registered User
FRC #3756
 
Join Date: Mar 2013
Location: London, Ontario
Posts: 5
mcvittal has a spectacular aura aboutmcvittal has a spectacular aura about
Re: Automatically configuring your IPv4 settings

Quote:
Originally Posted by Fletch1373 View Post
Code:
netsh int ip set address "wireless network connection" dhcp
Thanks Fletch, this'll save me so much time!

And as said by Mr. Lim, thanks for everyone's posts! Hopefully this'll help loads of teams that want to do the same thing that I want to do. After all it is nice to just switch between robot connection to internet in two clicks to google an obscure error
  #7   Spotlight this post!  
Unread 18-03-2013, 02:59
Fletch1373's Avatar
Fletch1373 Fletch1373 is offline
Registered User
AKA: Fletch
FRC #3181 (Panthers)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Rochester, NY
Posts: 251
Fletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud of
Re: Automatically configuring your IPv4 settings

Quote:
Originally Posted by mcvittal View Post
Thanks Fletch, this'll save me so much time!

And as said by Mr. Lim, thanks for everyone's posts! Hopefully this'll help loads of teams that want to do the same thing that I want to do. After all it is nice to just switch between robot connection to internet in two clicks to google an obscure error
Just an FYI/PSA. This command will only switch the wireless interface on the laptop. At most regional events, you will not be provided wireless internet access, and will not be allowed(by FRC rules, and the way the robot radio is configured) to connect to the robot wirelessly. For testing purposes at your school/workshop, this will work nicely, but please help the field volunteers at the event by keeping the wireless on your driver station laptop OFF and disabled.
__________________
Student:
<04: FRC0213> <05-08: FRC1373>
Mentor:
<09-10: FRC0809> <11-12: FRC3555> <12-14: FRC0073> <15-??: FRC3181>
Volunteer:
<FTAA> <CSA> <Defense Coordinator> <Scorekeeper> <Robot Inspector> <Official Scorer>
2016 Tour:
CTWAT [DefCoord] > Pittsburgh[Mentor/DefCoord] > TVR[FTAA] > FLR[CSA] > NE DCMP[CSA] > CMP[CSA]
  #8   Spotlight this post!  
Unread 25-03-2013, 22:41
gluxon's Avatar
gluxon gluxon is offline
\n
AKA: Brandon Cheng
FRC #0178 (The 2nd Law Enforcers)
Team Role: Leadership
 
Join Date: Apr 2012
Rookie Year: 2011
Location: Connecticut
Posts: 65
gluxon has a spectacular aura aboutgluxon has a spectacular aura aboutgluxon has a spectacular aura about
Re: Automatically configuring your IPv4 settings

An even better solution might be to setup the DHCP server on the D-Link. It's in the advanced section as "DHCP Server" in the left sidebar.

Of course, this won't work during competitions since access to the admin panel is locked.
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 03:11.

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