/teensy_server

Server to read from teensy

Primary LanguageC++

TOOD

  • GUI display of sensor parameters
  • FSM to handle calibration, normal modes
  • HDF5 to store archive data

Dependencies

Cmake - sudo apt-get install cmake

Installing libserialport

git submodule update --init
cd libraries/libserialport

# Linux
sudo apt-get -y install autoconf libtool automake 

# Mac (make sure Homebrew is installed)
brew install autoconf libtool automake

./autogen.sh
./configure
make
sudo make install

Installing protobuf

sudo apt-get install autoconf automake libtool curl make g++ unzip

brew install autoconf automake libtool
git submodule update --init --recursive
cd libraries/protobuf
./autogen.sh
./configure
make
make check
sudo make install
sudo ldconfig

Eigen - sudo apt-get install libeigen3-dev

ModemMangaer - It breaks serial ports

sudo systemctl stop ModemManager.service or sudo systemctl disable ModemManager.service

sudo cp tools/99-teensy.rules /etc/udev/rules.d

GUI

  • Vulkan - doesn't exist on my old mac :(
  • GLFW - sudo apt-get install libglfw3-dev
  • GLM - sudo apt-get install libglm-dev
  • IMGUI
  • HDF5
sudo apt install libxcb1-dev xorg-dev
wget https://vulkan.lunarg.com/sdk/home#sdk/downloadConfirm/1.2.131.2/linux/vulkansdk-linux-x86_64-1.2.131.2.tar.gz
tar -xzf vulkansdk*
source setup_env.sh
mkdir build && cd build
cmake ..
make
./samples/Hologram/Hologram

Repo

wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.2.131-bionic.list http://packages.lunarg.com/vulkan/1.2.131/lunarg-vulkan-1.2.131-bionic.list
sudo apt update
sudo apt install vulkan-sdk

References