Skip to content

Network setup

Diogo Almeida edited this page Jul 8, 2019 · 6 revisions

Physical connections

The first thing that you should do to be able to control YuMi, is to connect an Ethernet cable from your computer (or network switch), to the robot's XP23 port.

Network addresses

YuMi requires that you connect from a single, predetermined IP address 192.168.125.50. Hence, we need to assign that address to the interface that you will use to connect to the robot.

In this tutorial, represents the network interface through which you want to connect to YuMi (e.g. wlan0, eth0, enp5s0f1, etc). To find out the names of all your system interfaces by running the command ifconfig without any parameters in a terminal.

To set up the IP temporarily, run:

sudo ifconfig <interface> 192.168.125.50

On the other hand, if you want to set the IP from startup, such that you don't need to run the command each time, add the following lines to your /etc/network/interfaces file:

auto <interface>
iface <interface> inet static
address 192.168.125.50
netmask 255.255.255.0

If you chose to set up the IP address from startup, after saving the file you'll also need to restart the network interface by running the following commands on a terminal:

sudo ifdown <interface>
sudo ifup <interface>

Setting up the Optodaq addresses

You will need to edit your /etc/hosts file with the following:

192.168.125.3 OPTODAQ-LEFT 
192.168.125.4 OPTODAQ-RIGHT