Software Installation And Configuration; Installing The Strato Pi Utility On Raspbian; Installing The Strato Pi Kernel Module - Sfera Labs Strato Pi Base User Manual

Table of Contents

Advertisement

Software installation and configuration
All features of Strato Pi Base are controlled via dedicated GPIO, the I
serial RX/TX interface to the embedded micro-controller and can be used with most
operating systems and programming languages.
The following software installation notes are based on the Raspbian operating system.

Installing the Strato Pi utility on Raspbian

The Strato Pi utility is a simple command-line script to control Strato Pi's buzzer and
watchdog functions.
Run the following commands to download and install the Strato Pi utility:
$ cd /usr/local/bin
$ sudo wget http://sferalabs.cc/files/strato/strato
$ sudo chmod 755 strato
You can run the Strato Pi utility without arguments to print its options:
$ strato
Usage: strato beep on|off|length_millis|length_millis pause_millis repeats
strato watchdog enable|disable|heartbeat|timeout
strato shutdown
strato battery
All commands should be run as superuser, so always use sudo to run strato.

Installing the Strato Pi kernel module

The Strato Pi kernel module can be used to easily access all of Strato Pi CM Duo control
features via a sysfs file system.
Run the following commands to download and install the Strato Pi kernel module (see
https://github.com/sfera-labs/strato-pi-kernel-module for detailed installation instructions):
$ sudo apt-get install git-core
$ git clone --recursive https://github.com/sfera-labs/strato-pi-kernel-
module.git
$ sudo apt-get install raspberrypi-kernel-headers
$ cd strato-pi-kernel-module
$ make
$ sudo make install
To have the module automatically loaded at boot add stratopi in /etc/modules:
$ sudo sh -c "echo 'stratopi' >> /etc/modules"
Optionally, to be able to use the /sys/ files not as super user, create a new group "stratopi"
and set it as the module owner group by adding an udev rule:
$ sudo groupadd stratopi
$ sudo cp 99-stratopi.rules /etc/udev/rules.d/
Then add your users to the group, e.g., for user "pi", and reboot:
$ sudo usermod -a -G stratopi pi
16
2
C bus and a soft
Strato Pi Base User Guide

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Strato Pi Base and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Spbb30xSpmb30xpSpmb30x41Spmb30x42Spmb30x44

Table of Contents