Bridge-mode
2 minute read
This page is applicable for the latest image version mcx-rtos-v.2026.05. For other mcx-rtos-images checkout: Older versions.
Sometimes it is needed to configure a EtherCAT device via the manufacturers software, while keeping the EtherCAT topology intact (e.g. configuring a drive with integrated safety with the FSoE master located in the GCC). Normally this would mean unplugging the EtherCAT cable from the EtherCAT master and plugging it into a laptop, an alternative is made available by switching the Motorcortex Controller into bridge-mode, passing all data from front port “EN” directly to the EtherCAT network.
Switching on Bridge mode
-
Log in to the cockpit and direct to the Terminal.
-
Use the following commands to add eth1 to bridge:
Stop motorcortex:
sudo motorcortex stopStop ethercat:
sudo /etc/init.d/ethercat stopFlush eth1:
ip addr flush dev eth1Add eth1 to existing bridge br0:
sudo ip link set eth1 master br0 -
After this you will be able to scan the EtherCAT network with your manufacturers software (directly via your PC or with an other EtherCAT master device) via the ENET port on the GCC.
Note
It might be needed to change the network adapter IP settings if you use your PC with the manufacturers software
Switching off Bridge mode
-
Log in to the cockpit and direct to the Terminal.
-
Use the following commands to remove
eth1from bridge:Flush eth1:
ip addr flush dev eth1Remove eth1 from bridge:
sudo ip link set eth1 nomasterStart ethercat:
sudo /etc/init.d/ethercat startStart motorcortex:
sudo motorcortex start -
After this you will be able to use motorcortex again.