iot-lab / iot-lab-yocto

IoT-LAB Yocto repository
13 stars 12 forks source link

Add recipe for hub-ctrl and add it to rpi3 gateway image #21

Closed aabadie closed 6 years ago

aabadie commented 6 years ago

This PR adds a new recipe for hub-ctrl. This tools can be used to control the USB port on a RPI3 and thus can be useful to be able to power cycle an open node plugged on a RPI3.

For example:

The tool is already installed on nrf52dk-2 and st-lrwan1-1 in devsaclay.

aabadie commented 6 years ago

Some notes: hub-ctrl requires admin rights to control the USB ports and the gateway code runs under www-data. To solve this limitation, the sudo package is now added to the rpi3 gateway image and admin right are given to www-data, only for the hub-ctrl command. Tested and works.

aabadie commented 6 years ago

Let's move forward on this before next week.