Skip to main content

user-computer-setup

Network setup

By default the network mask is 255.255.255.0 and the devices' IPs begin with 10.15.20.XX. The default static IPs are:

  • RUTX11 10.15.20.1 - an internal router with an access point and a DHCP server,
  • Built-in Computer 10.15.20.2 - a SBC with Husarion UGV's driver,
  • Additional: User Computer 10.15.20.3 - look at Computer (PC),
  • Additional: a manipulator 10.15.20.4 - look at Manipulators (MAN).

Applying DHCP Static Lease

  1. Access to Router WebUI using this instruction.

  2. Make sure that Mode advanced is enabled. Check it in the top right corner. If Mode Basic is shown, click on it to change it.

    Remove User ShelfRemove User Shelf
  3. Go to Network --> Interfaces and click edit on Lan Network.

    Remove User ShelfRemove User Shelf
  4. Edit Static lease named nuc. Next, type in the MAC address (supplied during purchase) and click Save and apply. If you do not know the MAC address, you can find it under Status --> Network --> LAN page. By default, the User Computer inside Husarion UGV has IP 10.15.20.3, but it can be changed to any value in the range between 10.15.20.3 to 10.15.20.254.

  5. You can access the User Computer through its new IP (default: 10.15.20.3). If it is not available, power cycle Husarion UGV by turning it off and back on.

Enable Internet connection in the RUX11

There are 2 ways to enable Internet connection of the Built-in Computer and of the User Computer. You can connect RUTX11 to existing Wi-Fi network which has access to the Internet or you can use a SIM card with LTE.

Connect the RUTX11 to another Wi-Fi

Connect the RUTX11 to another Wi-Fi network using the Configuration examples > Client Mode section from the producer's instruction.

Using a Cellular Connection

If your Husarion UGV is equipped with the (ANT02 option) it is possible to use the cellular connection with failover to a second SIM and priority of WLAN connection over cellular.

Installing a SIM Card(s)

First, open the Cover following instructions, then you can access Teltonika RUTX11 SIM slots, more details are available in the RUTX11 quick start guide.

Configuration of SIM Slots

In the default configuration, each SIM slot is enabled with automatic APN and priority of WLAN connection over cellular. To change settings such as PIN code, custom APN, or CHAP/PAP authentication use router's WebUI, see the RUTX11 mobile configuration guide.

Configure time synchronization with the Built-in Computer

The Built-in Computer uses Chrony to establish an NTP server. For optimal performance, the user's computer should be configured as an NTP client.

  1. Check if Chrony is installed:

    user@any:~$
    chronyd --version
  2. If Chrony is not installed, install it with the following command:

    user@any:~$
    sudo apt install chrony
  3. Edit the configuration file:

    user@any:~$
    sudo nano /etc/chrony/chrony.conf

    Add the following line:

    server 10.15.20.2 iburst prefer

    Save the changes (ctrl+s) and exit the file (ctrl+x).

  4. Restart chrony:

    user@any:~$
    sudo systemctl restart chrony.service
  5. Check if the synchronization was successful (it may take a moment before Chrony to restart):

    user@any:~$
    chronyc tracking

    The Reference ID field should contain the IP address of the Built-in Computer (10.15.20.2) or have rpi in the name. Example output:

    Reference ID    : 0A0F1402 (rpi.lan)
    Stratum : 3
    Ref time (UTC) : Tue Jun 18 09:03:48 2024
    System time : 0.000016993 seconds fast of NTP time
    Last offset : +0.000017369 seconds
    RMS offset : 0.000017369 seconds
    Frequency : 11.877 ppm slow
    Residual freq : +0.359 ppm
    Skew : 2.391 ppm
    Root delay : 0.029849635 seconds
    Root dispersion : 0.003227041 seconds
    Update interval : 64.3 seconds
    Leap status : Normal

Configuring Soft Shutdown with any User Computer

Following these steps will allow the Built-in Computer to request the shutdown procedure on the User Computer or any computer you install.

If you set up your User Computer with the default 10.15.20.3 IP address and username husarion select the Default configuration tab. In case the IP address or username differs from the defaults, select Custom configuration tab.

The default configuration assumes the system was installed following the steps in User Computer system reinstallation.

  1. From any device in Husarion UGV's network connect to the User Computer via SSH:

    user@any:~$
    ssh husarion@10.15.20.3
  2. Install husarion-shutdown snap:

    husarion@10.15.20.3:~$
    sudo snap install husarion-shutdown
    sudo husarion-shutdown.start

    By default, the ROS driver on the Built-in Computer will try to shutdown the User Computer at 10.15.20.3 IP address. That is why no other changes are required for it to work in the default configuration.

After following those steps, when the Power Button is pressed sudo shutdown will be invoked on the User Computer. The Built-in Computer will wait for the User Computer until it gracefully shuts down before shutting down itself and powering off the robot.