mini-beieli.ch Node (new Version with CubeCell)
Go to file
Joerg Lehmann e8b3391be1 new hardware library version 2021-05-11 17:35:54 +02:00
MiniBeieliNodeSketch new CubeCell library version 2021-05-01 17:16:46 +02:00
.gitignore calibrate and appkey commands 2021-04-28 19:53:11 +02:00
README.md new hardware library version 2021-05-11 17:35:54 +02:00
appkey.go calibrate and appkey commands 2021-04-28 19:53:11 +02:00
calibrate.go set XXX to wakeup if needed 2021-04-28 20:00:34 +02:00
mini-beieli-provision-cubecell.go calculate appkey 2021-04-26 16:49:27 +02:00

README.md

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 0582aca Sun, 9 May 2021 16:29:35 +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

Set FQBN: $ FQBN="CubeCell:CubeCell:CubeCell-Board:LORAWAN_REGION=6,LORAWAN_CLASS=0,LORAWAN_DEVEUI=0,LORAWAN_NETMODE=0,LORAWAN_ADR=0,LORAWAN_UPLINKMODE=1,LORAWAN_Net_Reserve=0,LORAWAN_AT_SUPPORT=0,LORAWAN_RGB=0,LORAWAN_DebugLevel=0"

Compile: $ arduino-cli compile --clean --fqbn ${FQBN} MiniBeieliNodeSketch

Upload: $ arduino-cli upload --fqbn ${FQBN} -p /dev/ttyUSB0 MiniBeieliNodeSketch

Output ist in /tmp/arduino-sketch-XXXXXXXXXXXXXXXXXXXXXXXXX und kann kopiert werden: $ mkdir ~/arduino-builds-saved/20210511/ $ cp /tmp/arduino-sketch-0870BAA82DFEB3C4E076C8FBBDEB25B4/CubeCell_Board_REGION_EU868_RGB_0.cyacd ~/arduino-builds-saved/20210511/

Upload Variante 2: /home/joerg/Arduino/hardware/CubeCell/CubeCell/tools/CubeCellflash/CubeCellflash -serial /dev/ttyUSB0 /home/joerg/arduino-builds-saved/latest/CubeCell_Board_REGION_EU868_RGB_0.cyacd `