From 36e6132348d796952cab3f3015efa10ce70d92fe Mon Sep 17 00:00:00 2001 From: Kent Wiliams Date: Mon, 11 May 2020 21:36:09 -0700 Subject: [PATCH] switched examples to sub-band 2 --- Adafruit-Feather-M0-RFM95/longfi-us915/longfi-us915.ino | 3 ++- GPS/longfi-us915-cargo-gps.ino | 3 ++- Heltec-CubeCell-Board/longfi-us915/longfi-us915.ino | 2 +- MCCI-Catena-4610/longfi-us915/longfi-us915.ino | 3 ++- ST-B-L072Z-LRWAN1/longfi-us915-button/longfi-us915-button.ino | 3 ++- .../longfi-us915-cayenne-sensor.ino | 3 ++- ST-B-L072Z-LRWAN1/longfi-us915/longfi-us915.ino | 3 ++- Sparkfun-Pro-RF/longfi-us915/longfi-us915.ino | 3 ++- 8 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Adafruit-Feather-M0-RFM95/longfi-us915/longfi-us915.ino b/Adafruit-Feather-M0-RFM95/longfi-us915/longfi-us915.ino index b6cc54e..1c0ac10 100644 --- a/Adafruit-Feather-M0-RFM95/longfi-us915/longfi-us915.ino +++ b/Adafruit-Feather-M0-RFM95/longfi-us915/longfi-us915.ino @@ -172,7 +172,8 @@ void setup() { // (0.1% error, the most strict) can be used. LMIC_setClockError(1 * MAX_CLOCK_ERROR / 40); - LMIC_selectSubBand(6); + // Sub-band 2 - Helium Network + LMIC_selectSubBand(1); // zero indexed LMIC_setLinkCheckMode(0); LMIC_setDrTxpow(DR_SF7, 14); diff --git a/GPS/longfi-us915-cargo-gps.ino b/GPS/longfi-us915-cargo-gps.ino index ac41be1..1e6ad10 100644 --- a/GPS/longfi-us915-cargo-gps.ino +++ b/GPS/longfi-us915-cargo-gps.ino @@ -283,7 +283,8 @@ void setup() { LMIC_setLinkCheckMode(0); LMIC_setDrTxpow(DR_SF8, 20); - LMIC_selectSubBand(6); + // Sub-band 2 - Helium Network + LMIC_selectSubBand(1); // zero indexed GPS.begin(9600); // Only interrested in GGA, no antenna status diff --git a/Heltec-CubeCell-Board/longfi-us915/longfi-us915.ino b/Heltec-CubeCell-Board/longfi-us915/longfi-us915.ino index 661d6e4..4927640 100644 --- a/Heltec-CubeCell-Board/longfi-us915/longfi-us915.ino +++ b/Heltec-CubeCell-Board/longfi-us915/longfi-us915.ino @@ -21,7 +21,7 @@ uint8_t appSKey[] = { 0xd7, 0x2c, 0x78, 0x75, 0x8c, 0xdc, 0xca, 0xbf, 0x55, 0xee uint32_t devAddr = ( uint32_t )0x007e6ae1; /*LoraWan channelsmask, default channels 0-7*/ -uint16_t userChannelsMask[6]={ 0x0000,0x0000,0x0000,0x00FF,0x0000,0x0000 }; +uint16_t userChannelsMask[6]={ 0xFF00,0x0000,0x0000,0x0000,0x0000,0x0000 }; /*LoraWan region, select in arduino IDE tools*/ LoRaMacRegion_t loraWanRegion = ACTIVE_REGION; diff --git a/MCCI-Catena-4610/longfi-us915/longfi-us915.ino b/MCCI-Catena-4610/longfi-us915/longfi-us915.ino index 4074b96..4130be1 100644 --- a/MCCI-Catena-4610/longfi-us915/longfi-us915.ino +++ b/MCCI-Catena-4610/longfi-us915/longfi-us915.ino @@ -275,7 +275,8 @@ void setup() { LMIC_setLinkCheckMode(0); LMIC_setDrTxpow(DR_SF8, 20); - LMIC_selectSubBand(6); + // Sub-band 2 - Helium Network + LMIC_selectSubBand(1); // zero indexed // Start job (sending automatically starts OTAA too) do_send(&sendjob); diff --git a/ST-B-L072Z-LRWAN1/longfi-us915-button/longfi-us915-button.ino b/ST-B-L072Z-LRWAN1/longfi-us915-button/longfi-us915-button.ino index acf8de5..7c8913c 100644 --- a/ST-B-L072Z-LRWAN1/longfi-us915-button/longfi-us915-button.ino +++ b/ST-B-L072Z-LRWAN1/longfi-us915-button/longfi-us915-button.ino @@ -220,7 +220,8 @@ void setup() { LMIC_setLinkCheckMode(0); LMIC_setDrTxpow(DR_SF7,14); - LMIC_selectSubBand(6); + // Sub-band 2 - Helium Network + LMIC_selectSubBand(1); // zero indexed // Start job (sending automatically starts OTAA too) do_send(&sendjob); diff --git a/ST-B-L072Z-LRWAN1/longfi-us915-cayenne-sensor/longfi-us915-cayenne-sensor.ino b/ST-B-L072Z-LRWAN1/longfi-us915-cayenne-sensor/longfi-us915-cayenne-sensor.ino index 3c77094..d77cec1 100644 --- a/ST-B-L072Z-LRWAN1/longfi-us915-cayenne-sensor/longfi-us915-cayenne-sensor.ino +++ b/ST-B-L072Z-LRWAN1/longfi-us915-cayenne-sensor/longfi-us915-cayenne-sensor.ino @@ -357,7 +357,8 @@ void setup() { LMIC_setLinkCheckMode(0); LMIC_setDrTxpow(DR_SF8, 20); - LMIC_selectSubBand(6); + // Sub-band 2 - Helium Network + LMIC_selectSubBand(1); // zero indexed // Start job (sending automatically starts OTAA too) do_send(&sendjob); diff --git a/ST-B-L072Z-LRWAN1/longfi-us915/longfi-us915.ino b/ST-B-L072Z-LRWAN1/longfi-us915/longfi-us915.ino index 4074b96..37303ac 100644 --- a/ST-B-L072Z-LRWAN1/longfi-us915/longfi-us915.ino +++ b/ST-B-L072Z-LRWAN1/longfi-us915/longfi-us915.ino @@ -275,7 +275,8 @@ void setup() { LMIC_setLinkCheckMode(0); LMIC_setDrTxpow(DR_SF8, 20); - LMIC_selectSubBand(6); + // Sub-band 2 - Helium Network + LMIC_selectSubBand(1); // zero indexed // Start job (sending automatically starts OTAA too) do_send(&sendjob); diff --git a/Sparkfun-Pro-RF/longfi-us915/longfi-us915.ino b/Sparkfun-Pro-RF/longfi-us915/longfi-us915.ino index 8509148..dc97be1 100644 --- a/Sparkfun-Pro-RF/longfi-us915/longfi-us915.ino +++ b/Sparkfun-Pro-RF/longfi-us915/longfi-us915.ino @@ -135,7 +135,8 @@ void setup() { // (0.1% error, the most strict) can be used. LMIC_setClockError(1 * MAX_CLOCK_ERROR / 40); - LMIC_selectSubBand(6); + // Sub-band 2 - Helium Network + LMIC_selectSubBand(1); // zero indexed LMIC_setLinkCheckMode(0); LMIC_setDrTxpow(DR_SF7, 14);