Autostart
Enable autostart, using crontab -e
and insert
@reboot ~/dev/autostart/lab_autostart.bash
This makes the HLC regularly send messages that it was turned on and allows the user to determine which NUCs are online. (Make sure that chmod +x was performed on the file before, and that it does not use relative file locations)
Domain ID: 21. Topic name: hlc_startup
In the given directory should be: lab_autostart.bash as well as the executable of the autostart program which is called by the bash script
Required Setup Steps
- Install Ubuntu 18.04.3 LTS
- Install the RT Patch (s.t. realtime programming becomes possible)
- Setup NTP for time synchronisation
- Install RTI DDS for network communication
- Install Matlab and the RTI Matlab Support Package
- Install the following packages: git, tree, openssh, tmux, cmake, libgtkmm-3.0-dev
- (Optional) Install the raspbian toolchain and the Raspberry Pi RTI libraries
- Make sure that you set up a guest account with a simple password. Generate a SSH Key and put the public Key in the LCC main PC, so that a log-in without using a password becomes possible
- Enable the autostart script as mentioned above. The script is located in the software repository
- If desired, set some environment variables, e.g. the RTI location, the location of the Matlab executable etc
- Setup the NUC's IP: 192.168.1.2xx, where xx corresponds to the NUC's ID → ID 8 - 208, ID 15 - 215 etc
Repositories
- cpm library
- Lab software
Overview
Content Tools