Table of Contents

HDL Ubuntu 18.04 LTS Lab Demo

Configuration of the Ubuntu 18.04 LTS system needed to compile the data system and is the lab demo laptop.

Network Config

Modify the Netplan configuration to get a static IP from this page, this worked: https://linuxize.com/post/how-to-configure-static-ip-address-on-ubuntu-18-04/

User Setup

  1. Add user hdl to the system
    1. Add the user
      sudo adduser hdl
    2. Set the password
      sudo passwd hdl
      
      #password is
      $h00tTh3M00n
    3. Add the user to the adq group
      sudo usermod -a -G adq hdl
  2. Get the code over to the hdl user account
    1. Make a dir
      mkdir ~/src
      mkdir ~/bin
      # put the code into ~/src/hdl_lab_demo
    2. Whatever you want to do to get the code there and then compile locally
    3. Make and chown the /opt/hdl directory tree to the hdl user
      # need to do this as a sudo user 
      sudo mkdir /opt/hdl
      sudo chown -R hdl:hdl /opt/hdl

Directory

  1. Create a directory to populate
    sudo mkdir /opt/hdl
    sudo mkdir /opt/hdl/data
    sudo chown -R hdl:hdl /opt/hdl

Hardware Drivers

Advantech ARK-1550 GPIO Drivers

Looks like this is a package that allows us to do all kinds of things with this computer, but the GPIO is in here for sure.

NOTE: AH, John realized we have DIO ports on the USB timer board, so no need to go down this road.

Measurement Computing USB-CTR08

MC USB-CT08 compile and install instructions

Using lvis since it has sudo capability

  1. Download some required packages
    sudo apt-get install gcc g++ make
    sudo apt-get install libusb-1.0-0-dev
  2. Grab the latest version of the ULDAQ
    cd ~lvis/Downloads
    wget -N https://github.com/mccdaq/uldaq/releases/download/v1.1.2/libuldaq-1.1.2.tar.bz2
  3. Expand the compressed files
    mkdir ~/work
    cd ~/work
    tar -xvjf ~/Downloads/libuldaq-1.1.2.tar.bz2
  4. Build the library and examples
    cd libuldaq-1.1.2
    ./configure && make
    sudo make install

Serial Port Adapter

I had this same problem outlined here: https://forum.manjaro.org/t/modemmanager-mobile-broadband-adapter-not-supported-anymore/45268

Trying to use a Keyspan 19HS USB to Serial adapter

  1. Create this file for the modem manager
    1. Edit this file
      sudo nano /lib/udev/rules.d/78-mm-whitelist-internal-modem.rules
    2. Put these contents in it
      ACTION!="add|change|move", GOTO="mm_whitelist_internal_modem_end"
          ATTRS{idVendor}=="06cd", ATTRS{idProduct}=="0121", ENV{ID_MM_DEVICE_PROCESS}="1"
          LABEL="mm_whitelist_internal_modem_end"
  2. Restart the service
    sudo udevadm control --reload
    sudo udevadm trigger
  3. I ended up rebooting but probably wasn't nececssary

To talk to the javad

sudo minicom /dev/ttyUSB0  # should not need sudo to do this if in correct group

I also added hdl user to the dialin group with the following command

sudo adduser hdl dialout

SP Devices Digitizer

Install Linux SDK Ubuntu 18.04 LTS

  1. Install the latest SDK (untar in ~/src/)
  2. Install the packages
    cd ~/src/ADQ_SDK_linux_r44222/packages/Ubuntu_18.04/amd64
    sudo apt install dkms
    sudo dpkg -i spd-adq-pci-dkms_1.17_all.deb
    sudo dpkg -i libadq0_0.44222_amd64.deb
    sudo dpkg -i adqtools_0.44222_amd64.deb
    sudo apt install pkg-config
  3. Add the hdl user to the adq group
    sudo usermod -a -G adq hdl
  4. Reboot

Software Optional

Applanix Software

POSView

  1. Run playonlinux
  2. Install a program
  3. Install a non-listed program (at the bottom)
  4. Next, next, next
  5. Install program in a new virtual drive
  6. Name: POSView
  7. Do nothing before install (uncheck everything)
  8. 32 bit windows install
  9. Browse to exe installer
  10. Use the name it gave it AV_POSView and icon for the EXE
  11. Did not make a second shortcut

Programs:

Software Required

Third Party

Linux OS