Go to Post Or, to put it another way: It's a sport where you build your own athlete. - EricH [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-10-2010, 12:04
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
ipconfig

I am trying to set up a laptop PC (Vista) to replace the Classmate for non-competition use. The laptop has LabVIEW and Driver Station software installed with all updates. There will be a wired connection from the laptop to the WRT610N router, and a wireless connection from the router to the bridge.

The router and the bridge are already set up properly (they work fine with the Classmate).

Can someone please post the necessary ipconfig commands to configure the LAN on the laptop? Also, the ipconfig commands to change it back to the way it is now.

I have attached a copy of the ipconfig/all output from the laptop.

Thanks.



Attached Files
File Type: txt ipconfig_all.txt (2.7 KB, 46 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 05-10-2010, 12:41
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,846
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: ipconfig

Is this what you mean (with 3.58 replaced by your team #)?
I don't have much Vista specific experience though.

Code:
netsh interface ip set address name="Local Area Connection" static 10.3.58.6 255.0.0.0 10.3.58.4 1

Code:
netsh interface ip set address "Local Area Connection" dhcp
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 05-10-2010, 12:53
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: ipconfig

Quote:
Originally Posted by Mark McLeod View Post
Is this what you mean (with 3.58 replaced by your team #)?
I don't have much Vista specific experience though.

Code:
netsh interface ip set address name="Local Area Connection" static 10.3.58.6 255.0.0.0 10.3.58.4 1

Code:
netsh interface ip set address "Local Area Connection" dhcp
Yes, I think that's it. I couldn't remember the "netsh" command.

Thanks! I will give that a try.



Reply With Quote
  #4   Spotlight this post!  
Unread 05-10-2010, 15:06
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,752
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: ipconfig

When you launch the DS, it lists the NICs, and tries to determine which will be used to connect to the robot. In the situation where multiple NICs could be used, it presents a dialog allowing you to select.

With the standard setting, each launch of the DS will check and configure the NIC. If you would like to reset the IP after running the DS, you should be able to invoke the script "FRC Restore My Network Settings.bat" which is located in the Public Users Public Documents folder next to the ini file.

If you do not want the DS to configure the IP, you can update the ini file to contain a line setting the value of
NICName = <noNICConfig>.

You should also see a message describing any IP change to the Messages box -- helping understand what NIC was modified, what IP was set to, etc.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 05-10-2010, 15:23
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: ipconfig

Quote:
C:\z>netsh interface ip set address name="Local Area Connection" static 10.73.37.6 255.0.0.0 10.73.37.4 1

The requested operation requires elevation.
Does "elevation" in this context simply mean it requires admin privileges?

(I would have just tried it rather than post this question, but the person who has the admin password is not presently available).



Reply With Quote
  #6   Spotlight this post!  
Unread 05-10-2010, 15:27
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,846
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: ipconfig

Yes, it's just restricting the netsh operation to an administrator account.
E.g., right click on Command Prompt and click on "Run as..." once you get an administrators account.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-10-2010 at 15:38.
Reply With Quote
  #7   Spotlight this post!  
Unread 05-10-2010, 16:10
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: ipconfig

Quote:
With the standard setting, each launch of the DS will check and configure the NIC.
Does the DS, like the netsh command, also require admin privileges in order to configure the NIC?

Does the DS get the info it needs (to configure the NIC) from the information contained in the FRC DS Data Storage.ini file? If so, do I need to edit that file to put the team number and ip address info in there? (I looked, and that info is not presently in there).

Quote:
If you would like to reset the IP after running the DS, you should be able to invoke the script "FRC Restore My Network Settings.bat" which is located in the Public Users Public Documents folder next to the ini file.
The BAT file uses netsh to read the original settings from the text file FRC Original Network Settings Dump.txt. Do I need to edit that txt file to put the original settings into it? (I looked at the file, and it doesn't look like it has the original settings in it).

Quote:
If you do not want the DS to configure the IP, you can update the ini file to contain a line setting the value of
NICName = <noNICConfig>
OK, I'm guessing that this is what I would do if I wanted to use the netsh command to change the settings, yes?



Reply With Quote
  #8   Spotlight this post!  
Unread 05-10-2010, 17:11
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
Re: ipconfig

When you run the DS on the setup page i think there is a box for you team number. Once you enter your team number it sets the nic to the correct settings. I'm fairly sure that it gets the current settings first and puts them in a file so they can be restored.
__________________

Reply With Quote
  #9   Spotlight this post!  
Unread 06-10-2010, 00:38
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: ipconfig

Quote:
Originally Posted by Mark McLeod View Post
Yes, it's just restricting the netsh operation to an administrator account.
E.g., right click on Command Prompt and click on "Run as..." once you get an administrators account.
OK that's the problem. Apparently with Vista, even if you are logged into an admin account it's not sufficient to just open a command window and start typing netsh commands.

I right-clicked on the netsh.exe executable and selected "run as administrator" and was able to run the commands you provided. I didn't get any error messages, but I'm wondering about the results I got.

When I ran the commands:
Quote:
netsh interface ip set address name="Local Area Connection" static 10.73.37.6 255.0.0.0 10.73.37.4 1
netsh interface ip show config
... I got the result:
Quote:
Configuration for interface "Local Area Connection"
DHCP enabled: Yes
Default Gateway: 10.73.37.4
Gateway Metric: 1
InterfaceMetric: 10
DNS servers configured through DHCP: 192.168.1.1
Register with which suffix: Primary only
WINS servers configured through DHCP: None
Is DHCP supposed to be enabled? And why don't I see the 10.73.37.6 and the 255.0.0.0?



Reply With Quote
  #10   Spotlight this post!  
Unread 06-10-2010, 01:36
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: ipconfig

Quote:
Originally Posted by Ether View Post
Is DHCP supposed to be enabled? And why don't I see the 10.73.37.6 and the 255.0.0.0?
I'm pretty certain that you only really want static IP addresses, though it will probably work with DHCP. I seem to remember (at least in 2009 when I last messed with the guts of the protocol and I don't think it has changed) that the robot waits for the first IP address that connects to it since the last reboot (on it's sub-net) and then will subsequently only connect to that IP address. I believe (it's been a year and a half) that I have connected to our bot from 10.9.71.13 (with my own DS software), and it worked fine. I don't have access to a robot to test this out, so I'm going off memory.
Reply With Quote
  #11   Spotlight this post!  
Unread 06-10-2010, 02:07
Tristan Lall's Avatar
Tristan Lall Tristan Lall is offline
Registered User
FRC #0188 (Woburn Robotics)
 
Join Date: Aug 2001
Rookie Year: 1999
Location: Toronto, ON
Posts: 2,484
Tristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond repute
Re: ipconfig

Quote:
Originally Posted by Ether View Post
OK that's the problem. Apparently with Vista, even if you are logged into an admin account it's not sufficient to just open a command window and start typing netsh commands.

I right-clicked on the netsh.exe executable and selected "run as administrator" and was able to run the commands you provided. I didn't get any error messages, but I'm wondering about the results I got.
If you need to do this from the command prompt only, try runas.
Reply With Quote
  #12   Spotlight this post!  
Unread 06-10-2010, 18:05
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: ipconfig

Thanks for the help guys.

Turns out the laptop has a bad ethernet connector.

Well, silver lining, I learned a little about network troubleshooting.


If anyone's willing to take a crack at some of the open questions though I'm still interested.



Last edited by Ether : 06-10-2010 at 18:09.
Reply With Quote
  #13   Spotlight this post!  
Unread 06-10-2010, 23:21
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,846
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: ipconfig

Quote:
Originally Posted by Ether View Post
..., but I'm wondering about the results I got.

When I ran the commands:

... I got the result:

Is DHCP supposed to be enabled? And why don't I see the 10.73.37.6 and the 255.0.0.0?
I assume you meant your outstanding questions about the DS application?
I'm not sure, and Greg is the final authority (especially because he can change the DS app to do whatever he wants it to do), but I'll start...
  • If the FRC DS Data Storage.ini doesn't exist the DS creates it.
  • What you see in the file is all the DS ini knows about. If there isn't an entry for it, then it can't be set that way. However, the IP address is generated by the DS app from the team number. Edit your team number and your IP will get changed accordingly.
  • If you've edited the file (while the DS app is NOT running), then your changes will be taken and used when the DS starts up to configure the NIC/team number, etc. Changes you make while in the DS app. will get written back out to the .ini file.
  • The DS will change the NIC if it doesn't match the team number, unless the NIC is set to <noNICConfig>. The DS will ignore the NIC in that case and you can use netsh or go through Network Connections to make your settings.
  • The FRC Original Network Settings Dump.txt file only got created the very first time you ran the DS app, not every time. If you delete the file it will be regenerated with whatever the current settings are, before the DS app attempts to change the NIC. You can also edit the file by hand if you like.
I've never seen the NIC dialog Greg mentioned he included, so I don't know what circumstances trigger that.


I assume you meant your netsh command didn't work all the way, because the Ethernet connection turned out to be broken? When it took the Gateway, but didn't change to your static ip address.

Here's what I got on an XP machine when I ran the commands.
The first command takes a few seconds, but then you should have seen "Ok." returned.
Not that this helps you with your broken Ethernet...
Attached Thumbnails
Click image for larger version

Name:	netsh.jpg
Views:	33
Size:	148.8 KB
ID:	9326  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 07-10-2010 at 00:08.
Reply With Quote
  #14   Spotlight this post!  
Unread 07-10-2010, 01:06
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: ipconfig

Quote:
Originally Posted by Mark McLeod View Post
  • If the FRC DS Data Storage.ini doesn't exist the DS creates it.
  • What you see in the file is all the DS ini knows about. If there isn't an entry for it, then it can't be set that way. However, the IP address is generated by the DS app from the team number. Edit your team number and your IP will get changed accordingly.
  • If you've edited the file (while the DS app is NOT running), then your changes will be taken and used when the DS starts up to configure the NIC/team number, etc. Changes you make while in the DS app. will get written back out to the .ini file.
  • The DS will change the NIC if it doesn't match the team number, unless the NIC is set to <noNICConfig>. The DS will ignore the NIC in that case and you can use netsh or go through Network Connections to make your settings.
  • The FRC Original Network Settings Dump.txt file only got created the very first time you ran the DS app, not every time. If you delete the file it will be regenerated with whatever the current settings are, before the DS app attempts to change the NIC. You can also edit the file by hand if you like.
To me this is very helpful information. I'm afraid to ask, but is this in a document somewhere that I overlooked? If so, my apologies for not searching more diligently.



Reply With Quote
  #15   Spotlight this post!  
Unread 07-10-2010, 07:48
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,752
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: ipconfig

I believe the Original Settings file is documented along with some of the other usage info, but the implementation details were not. The dialog about NICs should not appear except on machines where the interfaces have been renamed or when there appear to be multiple wired NICs. Then the dialog will only appear when the ini doesn't declare a NIC to use.

Greg McKaskle
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless Deployment / Ipconfig p00rleno NI LabVIEW 3 31-01-2009 12:28


All times are GMT -5. The time now is 17:02.

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