Difference between revisions of "IP Address"

From SoftMC-Wiki
Jump to: navigation, search
m (Text replace - "has to have " to "must have ")
m (Set the permanent default IP address)
Line 55: Line 55:
  
 
Once the temporary IP address has been set, you can connect to the MC with ControlStudio:
 
Once the temporary IP address has been set, you can connect to the MC with ControlStudio:
 
  
 
{{Note| Your PC must have Ethernet port configured in the same address space e.g. '''90.0.0.1''' }}
 
{{Note| Your PC must have Ethernet port configured in the same address space e.g. '''90.0.0.1''' }}
  
== Creating FWCONFIG file ==
+
== Create FWCONFIG File ==
 
Create text file FWCONFIG (no extension) with the following content:
 
Create text file FWCONFIG (no extension) with the following content:
 
 
<pre>
 
<pre>
 
ipaddressmask 90.0.0.51:255.0.0.0
 
ipaddressmask 90.0.0.51:255.0.0.0
Line 68: Line 66:
 
StringPreload=300000
 
StringPreload=300000
 
</pre>
 
</pre>
 
  
 
On more details how to set-up the FWCONFIG file take a look at: [[Debugging_softMC_Firmware_Linux#FWCONFIG | FWCONFIG syntax]]
 
On more details how to set-up the FWCONFIG file take a look at: [[Debugging_softMC_Firmware_Linux#FWCONFIG | FWCONFIG syntax]]
  
 
== Setting the MC ==
 
== Setting the MC ==
Save the file it on the current directory of the ControlStudio and send it to MC using:
+
Save the file in the current directory of the ControlStudio and send it to MC using:
 
 
 
<pre>
 
<pre>
 
-->privilegelevel=1
 
-->privilegelevel=1
Line 85: Line 81:
 
This is how the default IP address is set, the non-default address cab be set using [[MC-Basic:SYSTEM.IPADDRESSMASK|SYS.IPADDRESSMASK]] command
 
This is how the default IP address is set, the non-default address cab be set using [[MC-Basic:SYSTEM.IPADDRESSMASK|SYS.IPADDRESSMASK]] command
  
= Get the IP address from DHCP server =
+
= Get the IP Address from DHCP Server =
 
 
Once the temporary IP address has been set, you can connect to the MC with your ControlStudio:
 
  
 +
Once the temporary IP address has been set, you can connect to the MC with ControlStudio:
  
 
{{Note| Your PC must have Ethernet port configured in the same address space e.g. '''90.0.0.1''' }}
 
{{Note| Your PC must have Ethernet port configured in the same address space e.g. '''90.0.0.1''' }}
  
== Creating FWCONFIG file ==
+
== Create FWCONFIG File ==
 
Create text file FWCONFIG (no extension) with the following content:
 
Create text file FWCONFIG (no extension) with the following content:
  
Line 102: Line 97:
 
</pre>
 
</pre>
  
 +
For more information on setting up the FWCONFIG file, refer to: [[Debugging_softMC_Firmware_Linux#FWCONFIG | FWCONFIG syntax]]
  
On more details how to set-up the FWCONFIG file take a look at: [[Debugging_softMC_Firmware_Linux#FWCONFIG | FWCONFIG syntax]]
+
== Set the MC ==
 
+
Save the file in the current directory and  send it to MC using:
== Setting the MC ==
 
Save the file it on the current directory of the send it to MC using:
 
  
 
<pre>
 
<pre>
Line 116: Line 110:
  
 
Now you can reset the MC and it will boot up with the IP address from DHCP pool.
 
Now you can reset the MC and it will boot up with the IP address from DHCP pool.
This is how the default IP address is set, the non-default address cab be set using [[MC-Basic:SYSTEM.IPADDRESSMASK|SYS.IPADDRESSMASK]] command
+
This is how the default IP address is set, the non-default address can be set using [[MC-Basic:SYSTEM.IPADDRESSMASK|SYS.IPADDRESSMASK]] command.

Revision as of 09:15, 19 August 2014

Set Default IP Address

Wiring

Two connections are needed:

Serial:

  • Connect MC on COM1 via serial cable to your PC.

Ethernet

  • Connect MC on Ethernet port 1 (LAN) via to the network where your PC is connected to (or directly with cross-cable to the PC)


Setting up Serial Communication

Open Windows- HyperTerminal (or similar) communication software and set the parameters:

TANK-SETUP-SCR0.PNG TANK-SETUP-SCR1.PNG TANK-SETUP-SCR2.PNG

This means:

  • Baud rate: 11520
  • Data bits: 8
  • Parity: None
  • Stop bits: 1
  • Flow control: None

Connecting to Motion Controller

Once the communication parameters are set and the serial cable is connected between MC and PC, turn on the MC.

On the HyperTerminal screen you will see the boot printouts. After MC boot is complete, type:

/sbin/ifconfig'''

TANK-SETUP-SCR3.PNG

You will see:

TANK-SETUP-SCR4.PNG

Instead of 10.4.20.171 as shown above, the current IP address of your MC will be displayed.

Setting the New IP Address (temporary)

Simply type

sudo /sbin/ifconfig eth0 90.0.0.51

Your MC will get the new IP address.

TANK-SETUP-SCR5.PNG

NOTE-Info.svgNOTE
The above example sets the permanent IP address only, this address will vanish immediately after

Set the permanent default IP address

Once the temporary IP address has been set, you can connect to the MC with ControlStudio:

NOTE-Info.svgNOTE
Your PC must have Ethernet port configured in the same address space e.g. 90.0.0.1

Create FWCONFIG File

Create text file FWCONFIG (no extension) with the following content:

ipaddressmask 90.0.0.51:255.0.0.0
sleep 20
ramdisksize=64 mByte
StringPreload=300000

On more details how to set-up the FWCONFIG file take a look at: FWCONFIG syntax

Setting the MC

Save the file in the current directory of the ControlStudio and send it to MC using:

-->privilegelevel=1
-->send FWCONFIG

typed from the terminal windows of ControlStudio.

Now you can reset the MC and it will boot up with the 90.0.0.51 address. This is how the default IP address is set, the non-default address cab be set using SYS.IPADDRESSMASK command

Get the IP Address from DHCP Server

Once the temporary IP address has been set, you can connect to the MC with ControlStudio:

NOTE-Info.svgNOTE
Your PC must have Ethernet port configured in the same address space e.g. 90.0.0.1

Create FWCONFIG File

Create text file FWCONFIG (no extension) with the following content:

ipaddressmask dhcp
sleep 20
ramdisksize=64 mByte
StringPreload=300000

For more information on setting up the FWCONFIG file, refer to: FWCONFIG syntax

Set the MC

Save the file in the current directory and send it to MC using:

-->privilegelevel=1
-->send FWCONFIG

typed from the terminal windows of ControlStudio.

Now you can reset the MC and it will boot up with the IP address from DHCP pool. This is how the default IP address is set, the non-default address can be set using SYS.IPADDRESSMASK command.