Difference between revisions of "IP Address"

From SoftMC-Wiki
Jump to: navigation, search
(Creating FWCONFIG file)
(Set the permanent default IP address)
Line 76: Line 76:
 
== Setting the MC ==
 
== Setting the MC ==
 
Save the file it on the current directory of the BMDS and send it to MC using:
 
Save the file it on the current directory of the BMDS and send it to MC using:
 +
 +
<pre>
 +
-->privilegelevel=1
 +
-->send FWCONFIG
 +
</pre>
 +
 +
typed from the terminal windows of BMDS.
 +
 +
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 [[MC-Basic:SYSTEM.IPADDRESSMASK|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 your Control Studio:
 +
 +
 +
{{Note| Your PC has to have Ethernet port configured in the same address space e.g. '''90.0.0.1''' }}
 +
 +
== Creating FWCONFIG file ==
 +
Create text file FWCONFIG (no extension) with the following content:
 +
 +
<pre>
 +
ipaddressmask dhcp
 +
sleep 20
 +
ramdisksize=64 mByte
 +
StringPreload=300000
 +
</pre>
 +
 +
 +
On more details how to set-up the FWCONFIG file take a look at: [[Debugging_softMC_Firmware_Linux#FWCONFIG | FWCONFIG syntax]]
 +
 +
== Setting the MC ==
 +
Save the file it on the current directory of the send it to MC using:
  
 
<pre>
 
<pre>

Revision as of 11:58, 14 July 2014

How to 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- Hypertherminal (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 with motion controller

Once the communication parameters are set and the serial cable is connected between MC and PC you should:

  • turn on the MC

On the Hypertherminal screen you should see the boot printouts. After mc booting is completed type:

/sbin/ifconfig


TANK-SETUP-SCR3.PNG


You should get:

TANK-SETUP-SCR4.PNG


Instead 10.4.20.171 as above there will be the current IP address of your MC (it could be even not set at all)

Set the new IP address (temporary)

Just type sudo /sbin/ifconfig eth0 90.0.0.51 and your MC will be get the new IP address

TANK-SETUP-SCR5.PNG

NOTE-Info.svgNOTE
The above example will set 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 your standard development software (BMDS or CS):


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

Creating 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 it on the current directory of the BMDS and send it to MC using:

-->privilegelevel=1
-->send FWCONFIG

typed from the terminal windows of BMDS.

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 your Control Studio:


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

Creating FWCONFIG file

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

ipaddressmask dhcp
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 it on the current directory of the send it to MC using:

-->privilegelevel=1
-->send FWCONFIG

typed from the terminal windows of BMDS.

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