mini-beieli-node-cubecell/README.md

55 lines
2.1 KiB
Markdown

# mini-beieli-node - Bienenstock Ueberwachung
Code fuer den LoraWAN Node (CubeCell)
Autor: Joerg Lehmann, nbit Informatik GmbH
| Parameter | Value |
| ------------------------ | --------------------------- |
| Board | CubeCell-Board (HTTC-AB01) |
| LORAWAN_REGION | REGION_EU868 |
| LORAWAN_CLASS | CLASS_A |
| LORAWAN_DEVEUI | CUSTOM |
| LORAWAN_NETMODE | OTAA |
| LORAWAN_ADR | ON |
| LORAWAN_UPLINKMODE | UNCONFIRMED |
| LORAWAN_Net_Reservation | OFF |
| LORAWAN_AT_SUPPORT | ON |
| LORAWAN_RGB | DEACTIVE |
| LoRaWan Debug Level | None |
Das sind die verwendeten Libraries [1]:
| URL | Branch | Commit | Commit Date |
| --- | ------ | ----- | ----------- |
| https://github.com/HelTecAutomation/CubeCell-Arduino.git | 68b01ab | Fri, 16 Apr 2021 17:59:03 +0800 |
| https://github.com/sparkfun/SparkFun_Qwiic_Scale_NAU7802_Arduino_Library.git | master | 688f255 | Fri, 3 Jan 2020 12:35:22 -0700 |
| https://github.com/sparkfun/SparkFun_BME280_Arduino_Library.git | master | 0b5eabf | Wed, 30 Dec 2020 20:44:27 -0700 |
[1]: echo "| $(git remote -v |grep fetch |awk '{print $2}' |tr '\n' ' ') | $(git log --pretty=format:'%h | %cD ' -n 1) |"
## Wir verwenden arduino-cli
Installation:
`
$ curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/bin sh
$ arduino-cli version
arduino-cli alpha Version: 0.18.1 Commit: b3cf8e19 Date: 2021-04-13T13:08:30Z
$ arduino-cli sketch new MiniBeieliNodeSketch
$ arduino-cli core update-index
$ arduino-cli board listall
$ arduino-cli core install CubeCell:CubeCell
$ arduino-cli core list
Compile:
$ arduino-cli compile --fqbn CubeCell:CubeCell:CubeCell-Board MiniBeieliNodeSketch
Upload:
$ arduino-cli board list
$ arduino-cli upload -p /dev/ttyUSB0 --fqbn CubeCell:CubeCell:CubeCell-Board MiniBeieliNodeSketch
`