# 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]: | URL | Commit | Commit Date | | --- | ----- | ----------- | | https://github.com/mcci-catena/Adafruit_BME280_Library.git | 3dafbe1 | Wed, 13 Dec 2017 13:56:30 -0500 | | https://github.com/mcci-catena/Adafruit_Sensor.git | f2af6f4 | Tue, 1 Sep 2015 15:57:59 +0200 | | https://github.com/mcci-catena/arduino-lmic.git | 1964dcf | Mon, 22 Jun 2020 10:54:56 -0400 | | https://github.com/mcci-catena/arduino-lorawan.git | 4bc0d48 | Sat, 9 May 2020 12:38:28 -0400 | | https://github.com/mcci-catena/Catena-Arduino-Platform.git | 478ad23 | Fri, 26 Jun 2020 18:39:01 -0400 | | https://github.com/mcci-catena/Catena-mcciadk.git | a428006 | Sat, 21 Dec 2019 20:45:26 -0500 | | https://github.com/mcci-catena/MCCI_FRAM_I2C.git | f0a5ea5 | Sat, 21 Dec 2019 16:17:01 -0500 | | https://github.com/tatobari/Q2-HX711-Arduino-Library.git | ccda8d8 | Wed, 13 Mar 2019 12:41:44 -0300 | | https://github.com/sparkfun/SparkFun_Qwiic_Scale_NAU7802_Arduino_Library.git | 688f255 | Fri, 3 Jan 2020 12:35:22 -0700 | | https://github.com/mcci-catena/OneWire.git | d814a7b | Thu, 26 Apr 2018 03:45:27 +0800 | | https://github.com/mcci-catena/SHT1x.git | be7042c | Tue, 20 Sep 2011 13:56:23 +1000 | 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.