Connect Raspberry Pi with ctrlX CORE

Connect ctrlX CORE with Raspberry Pi

sanX
New Contributor


Introduction

In this tutorial, it will be shown how to connect a ctrlX CORE with a Raspberry Pi using the Slave port (XF51).

ctrlX CORE Raspberry Pi Network Topology

It will be necessary to make some configurations in both devices. Firstly, the ctrlX CORE will be configured and secondly the Raspberry Pi.

Configuration
1. ctrlX CORE Configuration

Firstly, it is required to connect the ctrlX CORE with the Engineering computer. For this purpose, it is just needed to follow the steps shown in the article: ctrlX CORE and Computer Connection

Once successfully connected to the engineering computer, it is possible to configure the ctrlX CORE to be able to connect to the Raspberry Pi.

1. Go to "Settings"

Settings access

2. Press "Connectivity"

Connectivity access

3. Access the "eth1" interface

eth1 network configuration

4. In the "IPv4" section, write the desired static IP address. For this article, the used IP address will be: 180.254.3.1/24. Important to add /24 because otherwise it will not be possible to assign this IP address.  Note: /24 provides the subnest mask 255.255.255.0.

eth1 Network Configuration

  • In the “IPv6”, “Routing” and “Security” sections it is not required to perform any change.

5. Activate IP forwarding

Activate IP forwarding in Eth1

6. Once everything has been configured, click over "Save", as shown in the previous figure.

  • After a few seconds, in the top of the configuration interface, a message with "Network changes applied successfully" will appear confirming that the configuration has been correctly saved.

Successful network change

7. Finally, it is important to check that for the eth0 interface, IP forwarding is also enabled.

IP forwarding enabling

  • Otherwise, enable it, and click over "Save".

2. Raspberry Pi Configuration

Note: For this process, it will be assumed that the Raspberry Pi has been completely set up. Additionally, it will be assumed that there is access to the desktop interface with a screen. Otherwise, it will be required to perform all the configuration per terminal commands.

1. Connect the Raspberry Pi with an ethernet cable through the slave port in ctrlX CORE (XF51 port).

2. Access to network settings. Right click over the symbol shown in the following image and click over "Wireless and Wired Network Settings".

Raspberry Pi Network configuration

3. In the Network Preferences window, the eth0 interface is selected and the following steps are followed to configure the static IP address:

  • Uncheck “Automatically configure empty options”
  • “Disable IPv6” can either be checked or not.
  • “IPv4 Address”: An IP address that needs to have 180.254.3.X as a mandatory requirement, and the last number can be anyone that is not 1 (or the one configured in the ctrlX CORE)
  • “IPv6 Address”: Nothing is needed to be entered
  • In “Router” the IP address defined in the eth0 interface (in the CtrlX CORE) needs to be inserted. In this case: 180.254.3.1
  • “DNS Servers”: Nothing is needed to be added
  • “DNS Search”: Nothing is required to add

Static IP address configuration

  • Once, the gaps have been filled, press "Apply", and close the window.

NOTE: To finish the configuration, it is required to unplug and plug the Ethernet cable again to establish the connection with the defined static IP address.

Testing
1. Raspberry Pi Testing

In the case we would like to test the connection, we can open the terminal in the Raspberry Pi and write the following command: ping <IP address>.

Ping testing between Raspberry Pi and ctrlX CORE

In the case the Raspberry Pi is correctly configured, there should appear messages like in the shown image.

2. Engineering computer connection test

In the case we want to test the connection from the engineering computer we have to follow the following steps:

1. Open terminal with administrator rights

Command Prompt start

2. Write the command:

route add 180.254.0.0 mask 255.255.0.0 192.168.1.1

After executing this command, the message “OK!” should appear.

3. Test connection with ctrlX CORE. The ping command is used:

ping 192.168.1.1

If the Ping statistics show that 4 messages were send, 4 were received and 0 lost it means that the connection has been successful.

4. Test connection with Raspberry Pi. Here it is needed to enter the IPv4 address defined in the Raspberry Pi. The ping command is used:

ping 180.254.3.10

Raspberry Pi connection testing

 

sanX
sanX
Hi, I am Nicolas from the DCEM Application Team. I am temporary not available, if you have any questions, do not hesitate to contact LunatiX.
Must Read
Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist