Open Hive Arduino Yún gateway¶
Tip
You might want to read this document on our documentation space, all inline links will be working there.
Introduction¶
This firmware runs on the Open Hive RFM69 Arduino Yún, a receiver node using radio link communication. Telemetry data is received from the Open Hive RFM69 sensor node, decoded from CSV and stored to a SD card. The most recent version is available at gateway-rfm69-csv-sdcard.ino.
![// Synopsis of Open Hive RFM69 sensor node
digraph open_hive_rfm69_sensor_firmware_synopsis {
// Options
rankdir=LR;
ranksep=0.5;
// Style
//graph [splines=ortho];
node [pin=true, shape="box", fontname="Verdana"];
edge [fontname="Verdana"];
// Graph nodes represent hardware node units
"sensor-1" [label="Sensor node 1"];
"sensor-2" [label="Sensor node 2"];
"sensor-N" [label="Sensor node N"];
"gateway" [label="Gateway node\nArduino Yún"];
"sd" [label="SD card", style=dashed];
// Graph edges represent radio families and
// protocols spoken between node units.
"sensor-1" -> "gateway" [label="RFM69, CSV"];
"sensor-2" -> "gateway";
"sensor-N" -> "gateway";
"gateway" -> "sd" [style=dashed];
// Draw a dotted line between sensor-2
// and sensor-N, but retain node positions.
"sensor-2" -> "sensor-N" [dir=none, style=dotted];
{rank=same; "sensor-1"; "sensor-2"; "sensor-N" };
}](../../_images/graphviz-87ade10c01f64b67f23c7f104be372c6b3e4cd37.png)
Build¶
Build on your workstation¶
# Get hold of the source code repository including all dependencies
git clone --recursive https://github.com/hiveeyes/arduino
# Select this firmware
cd gateway-rfm69-csv-sdcard
# Select appropriate Makefile
ln -s Makefile-Linux.mk Makefile
# Build firmware
make
# Upload to MCU
make upload
Note
You might want to adjust the appropriate Makefile to match your environment.