Skip to content

Installation

Winfried Holzapfel edited this page Nov 1, 2019 · 6 revisions

This wiki serves as a guide to installing the BeeBit software onto the raspberry pi.

Pre-installation

  1. Burn an image of rasbian-stretch lite (2019-04-09) onto a fresh raspberry pi 3b+
  2. Enable SSH access and install GIT via the package manager: sudo apt install git
  3. Clone the git repository into the home directory git clone git@github.com:winzlebee/beebit-iot.git
  4. Enable the pi camera through raspi-config

Basic Installation

Basic installation on the device involves running an install script. This install script outputs the manufacturer UUID of the device as it has been assigned.

Installation requires a reliable internet connection. Otherwise the device will not be assigned a UUID!

  1. Run the depsPi target to download all the dependencies (including a pre-compiled version of OpenCV optimised for the ARM platform) and install them where they need to be.
make depsPi
  1. Run the install script to probe the release server for a uuid and install the beebit daemon which will run in the background on boot.
sudo make install

The uuid returned by this script can be placed on the side of the device to indicate to the user which uuid points to this device.

Updating

There is currently no automatic updating mechanic, however this can be emulated by simply re-pulling the repository and running the sudo make update target, which has the same effect as the install target, albeit reuses the existing uuid for the device rather than assigning a brand new one.

Troubleshooting

Below is a list of common problems when installing the detector on the device and how they can be remedied.

Problem Possible Resolution
Error linking libraries Downgrade the listdc++ and libavformat libraries to the vendor versions.

Clone this wiki locally