Change Network Address of Embedded Linux PC

From Wiki
Revision as of 14:27, 14 August 2019 by Peter (talk | contribs)

Changing the IP address of the embedded Linux PC is highly discouraged, as it is very easy to lock oneself out of the system. Once that happens, only serial terminal access may remain, which requires additional hardware.

Nevertheless here's a short how-to:

  1. Log into the Embedded Linux Computer via ssh.
  2. Check what robot Type is referenced in /home/root/TinyCtrl/Data/Projects/EmbeddedCtrl.prj
[...]
<Robot Name="igus Gantry" Type="igus_xyzGantry" Homepos="100.0 100.0 20.0 0.0 0.0 0.0"
[...]
  1. Edit the IP in the file /home/root/TinyCtrl/Data/Robots/<ROBOT_TYPE>/<ROBOT_TYPE>.xml
  <RemoteConfiguration IP="192.168.3.11" CycleTimeMS="50" Protocol="CRI_V01" />
  1. Edit the file /lib/systemd/network/10-eth0.network
[Match]
Name=eth0

[Network]
DHCP=ipv4
Address=192.168.3.11/24

[DHCP]
#When CriticalConnection is applied to networkd, the IP address will not
# change after this service was reloaded. Just reboot the system.
CriticalConnection=true
  1. Start CPRog. Do not maximise the Window and check which Project (xml) file is loaded by looking at the title bar
  2. Close CProg and open the project file (C:\CProg\Data\Projects\<PROJECTFILE.XML>). Check what Robot file is referenced (same as in step 2.).
  3. Edit the robot file C:\CProg\Data\Robots\<ROBOT_TYPE>\<ROBOT_TYPE>.xml
  4. Change the IP in that file to the same IP that you entered in step 3.
  5. Reboot the Embedded Linux Computer.
  6. Make any changes required to your network settings on the Windows PC and/or Router
  7. Done.