If you need more permanent solution than BigClown Playground you can install all the services yourself in your system. This guide will help you to install and configure these services:
- HARDWARIO Gateway
bcg
- HARDWARIO Firmware Tool
bcf
- HARDWARIO Host Tool
bch
- Mosquitto MQTT broker
- Node-RED
- The process manager
pm2
- open Terminal application
sudo apt update && sudo apt upgrade
sudo apt install mosquitto mosquitto-clients
sudo apt install nodejs nodejs-legacy npm
sudo npm install -g --unsafe-perm node-red
sudo npm install -g node-red-dashboard
sudo npm install -g pm2
pm2 start `which node-red`
pm2 save
pm2 startup systemd
{% hint style="danger" %}
Now you must follow the instructions provided by the command pm2 startup systemd
.
{% endhint %}
sudo apt install python3.5 python3-pip
sudo pip3 install --upgrade --no-cache-dir pip
sudo pip3 install --upgrade --no-cache-dir bcf
sudo pip3 install --upgrade --no-cache-dir bcg
sudo usermod $USER -a -G dialout
bcf devices
{% hint style="info" %}
You can use -v
parameter to see verbose information about the connected devices (possibly helping you to identify them).
{% endhint %}
bcf update
bcf flash bigclownlabs/bcf-gateway-usb-dongle:latest
pm2 start `which python3` --name "bcg-ud" -- `which bcg` --device ...
{% hint style="info" %}
Replace ...
with the device listed using bcf devices
.
{% endhint %}
{% hint style="warning" %}
If you want to update firmware in the Radio Dongle, first you have to stop bcg by the command pm2 stop bcg-ud
. After update, restart the service by the command pm2 restart bcg-ud
.
{% endhint %}
sudo apt update && sudo apt upgrade
sudo npm update -g node-red
sudo npm update -g pm2
sudo pip3 install --upgrade --no-cache-dir bcf
sudo pip3 install --upgrade --no-cache-dir bcg