Firmware for the ATTNode v3 https://www.attno.de/12-attnode_v3
Find a file
2021-02-01 18:29:05 +01:00
include Convert Firmware to PlatformIO Project 2021-02-01 18:29:05 +01:00
lib Convert Firmware to PlatformIO Project 2021-02-01 18:29:05 +01:00
src Convert Firmware to PlatformIO Project 2021-02-01 18:29:05 +01:00
.gitignore Use LMIC and OTAA, Implement BME280 support 2020-12-01 21:04:27 +01:00
platformio.ini Convert Firmware to PlatformIO Project 2021-02-01 18:29:05 +01:00
README.md Convert Firmware to PlatformIO Project 2021-02-01 18:29:05 +01:00

ATTNode v3 Firmware

Documentation

The full documentation for firmware options, payload decoders and programming can be found at attno.de

Configuration and Programming

This is the Repository for ATTNode v3 compatible firmware. At the moment it supports LoRa communication using OTAA and a BME280 or SHT21 sensor, as well as deep sleep between measurements.

The Firmware is developed using PlatformIO. At least Version 5.1.0 is needed for ATTiny3216 Support.

To Set the Fuses for Clock Speed, BOD Levels etc., use the "Set Fuses" Operation in PlatformIO. This has to be done once for a "fresh" Node or when the Board Config in PlatformIO was changed. Afterwards it is enough to use the normal "Upload" function for Code or config.h changes.

Before Programming Node, copy src/config.h.example to src/config.h and set the used sensor, LoRaWAN keys and other options as needed.

Programming is done using a MicroUPDI Programmer, settings in platformio.ini are set to use it. For other pogrammer options see the PlatformIO Documentation

It is possible to change the sending interval via Downlink-Packets at runtime. The time between Transmits is specified in minutes (or more exactly, 64 Second intervals) and has to be sent as a 2 byte value, which will be interpreted as an uint. so for example 0x0001 means 1 Minute, 0x0002 means 2 Minutes and so on. Sending 0xFFFF resets the value to the compiled in default.

Acknowledgements

Parts of this code where kindly provided by @shempe