3.4 KiB
mini-beieli-node - Bienenstock Ueberwachung
Code fuer den LoraWAN Node
Autor: Joerg Lehmann, nbit Informatik GmbH
| Parameter | Value |
|---|---|
| Board | MCCI Catena 4610 |
| LoraWAN Subband | "Default, works everywhere" |
| Serial interface | Generic Serial |
| LoraWAN Network | Swisscom |
| System Clock | 24 MHz |
| LoraWAN Region | Europe 868 MHz |
| Optimize | Smallest (-Os default) |
Das sind die verwendeten Libraries [1]:
Patch arduino-lmic, so initial SF12 is used initially:
` [joerg@cinnamon src]$ git diff diff --git a/src/lmic/lmic_bandplan_eu868.h b/src/lmic/lmic_bandplan_eu868.h index efff7d5..74efb37 100644 --- a/src/lmic/lmic_bandplan_eu868.h +++ b/src/lmic/lmic_bandplan_eu868.h @@ -61,7 +61,7 @@ LMICeu868_isValidBeacon1(const uint8_t d) { #undef LMICbandplan_isFSK #define LMICbandplan_isFSK() (/ RX datarate */LMIC.dndr == EU868_DR_FSK)
-#define LMICbandplan_getInitialDrJoin() (EU868_DR_SF7) +#define LMICbandplan_getInitialDrJoin() (EU868_DR_SF12)
void LMICeu868_setBcnRxParams(void); #define LMICbandplan_setBcnRxParams() LMICeu868_setBcnRxParams() `
[1]: [joerg@cinnamon libraries]$ for i in Adafruit_BME280_Library Adafruit_Sensor arduino-lmic arduino-lorawan Catena-Arduino-Platform Catena-mcciadk MCCI_FRAM_I2C Q2-HX711-Arduino-Library SparkFun_Qwiic_Scale_NAU7802_Arduino_Library OneWire SHT1x ; do cd $i; echo "| $(git remote -v |grep fetch |awk '{print $2}' |tr '\n' ' ') | $(git log --pretty=format:'%h | %cD ' -n 1) |" ; cd ..; done
Some Facts about RSSI and SNR
https://lora.readthedocs.io/en/latest/#rssi
RSSI minimum = -120 dBm.
RSSI < -90 dBm: this signal is extremely weak, at the edge of what a receiver can receive. RSSI -67dBm: this is a fairly strong signal. RSSI > -55dBm: this is a very strong signal. RSSI > -30dBm: your sniffer is sitting right next to the transmitter.
https://lora.readthedocs.io/en/latest/#snr
Typical LoRa SNR values are between: -20dB and +10dB
A value closer to +10dB means the received signal is less corrupted.
LoRa can demodulate signals which are -7.5 dB to -20 dB below the noise floor.