Go to Post Looks like I'm late, but in the grand tradition of Chief Delphi, I'll butt in and beat the dead horse anyway! - PayneTrain [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: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 24-02-2014, 14:34
Cbastias4966 Cbastias4966 is offline
Registered User
FRC #4966
 
Join Date: Jan 2014
Location: Chile
Posts: 6
Cbastias4966 is an unknown quantity at this point
automatic IP FRC team changer by:CFR #4966

Hi:

My name is camilo, from condor force robot (Chile). We created a application that change the ip of your team for connect to the crio automatically, without enter to control panel, and network configuration.This application decreases the work of configuring your ip every moment that you want connect to the robot,it's more quickly.
Application only runs in windows 7 and windows 8.

download here

PD: any problem, contact to cbastias@condorforcerobot.cl

thanks.
atte
Camilo Bastias
#4966
Condor Force robot

Last edited by Cbastias4966 : 24-02-2014 at 14:58.
  #2   Spotlight this post!  
Unread 24-02-2014, 18:46
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Re: automatic IP FRC team changer by:CFR #4966

You could just write a batch script for that.

Code:
netsh interface ip set address "<interface name>" static <addr> <netmask> <gateway>
netsh interface ip set dns "<interface name>" static <dns_addr>
Make a file called robotIp.bat and run as Admin

Alex Brinister
  #3   Spotlight this post!  
Unread 24-02-2014, 19:23
Cbastias4966 Cbastias4966 is offline
Registered User
FRC #4966
 
Join Date: Jan 2014
Location: Chile
Posts: 6
Cbastias4966 is an unknown quantity at this point
Re: automatic IP FRC team changer by:CFR #4966

Quote:
Originally Posted by AlexBrinister View Post
You could just write a batch script for that.

Code:
netsh interface ip set address "<interface name>" static <addr> <netmask> <gateway>
netsh interface ip set dns "<interface name>" static <dns_addr>
Make a file called robotIp.bat and run as Admin

Alex Brinister
this .exe do that, without edit the batch script
  #4   Spotlight this post!  
Unread 24-02-2014, 19:27
cmwilson13's Avatar
cmwilson13 cmwilson13 is offline
Registered User
AKA: Christopher Wilson
FRC #1771 (N. G. R.)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: buford GA
Posts: 89
cmwilson13 has a spectacular aura aboutcmwilson13 has a spectacular aura aboutcmwilson13 has a spectacular aura about
Re: automatic IP FRC team changer by:CFR #4966

the driver station already does it as well i believe
__________________
"Like the WWF, but for smart people." -George HW Bush

Team Member 1771 2008-2009
Team Mentor 1771 2010-2012 2014- Future
Team Mentor 4509 2013-2014
Team Mentor 3998 2013-2014
  #5   Spotlight this post!  
Unread 24-02-2014, 19:54
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,751
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: automatic IP FRC team changer by:CFR #4966

The driver station checks the IP info -- using netsh. If it doesn't meet the expected settings, it will set it to a static IP.

It does not automatically restore the settings, but it does create a restore file and script in the Public Documents directory named "FRC Restore My Network Settings.bat".

You could pretty easily put an alias to it on the desktop.

Greg McKaskle
  #6   Spotlight this post!  
Unread 26-02-2014, 01:23
AlexanderTheOK AlexanderTheOK is offline
Guy
no team
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Los Angeles
Posts: 146
AlexanderTheOK is just really niceAlexanderTheOK is just really niceAlexanderTheOK is just really niceAlexanderTheOK is just really nice
Re: automatic IP FRC team changer by:CFR #4966

The script the driver station uses doesn't revert the IP settings back to dhcp as far as I remember, you'd have to make that part with your own batch file. Its a pretty simple command though:

Code:
 netsh interface ip set address "<your internet name>" dhcp
?

I think thats right. My sleep schedule has been wrecked lately but I think that't it.
  #7   Spotlight this post!  
Unread 27-02-2014, 06:03
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,751
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: automatic IP FRC team changer by:CFR #4966

If the DS changes the IP settings, it performs a dump to a text file. It doesn't explicitly set the PC to DHCP, but attempts to restore it to how it initially found it. Originally, it was going to restore when quitting, but this was actually quite annoying, especially on a programming laptop. This step needed to be independent of the DS.

Below is the documentation on dump. I haven't used it in years.

Greg McKaskle



C:\Windows\system32>netsh interface ip dump /?

Usage: dump

Remarks:
Creates a script that contains the current configuration. If saved to a
file, this script can be used to restore altered configuration settings.
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 02:33.

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