Porównaj commity

...

5 Commity

Autor SHA1 Wiadomość Data
Stephan Martin 94dfff0213
Merge branch 'main' into main 2024-03-25 18:43:11 +01:00
Max-Plastix 415a77331e
Merge pull request #8 from mcauser/au915_dualplan_rollback
Rollback AU915 to FSB2 add DualPlan and AS923
2024-03-24 13:02:58 -07:00
Max-Plastix 947a7f630c
Merge pull request #9 from designer2k2/patch-1
Update unified_decoder.js to work also with ChirpStack V4
2024-03-24 13:01:13 -07:00
Stephan Martin 88e52f18b5
Update unified_decoder.js to work also with ChirpStack V4
ChirpStack V4 needs decodeUplink, this wraps the Decoder with it
2024-03-11 20:26:40 +01:00
Mike Causer 149f5b034d Rollback AU915 to FSB2 add DualPlan and AS923 2023-04-18 14:36:04 +10:00
3 zmienionych plików z 19 dodań i 7 usunięć

Wyświetl plik

@ -5,6 +5,7 @@
// Accuracy is a dummy value required by some Integrations.
// Battery is 1/100 of a volt, offset by 2v for a range of 2.00 to 4.56 volts.
//
function Decoder(bytes, port) {
var decoded = {};
@ -74,4 +75,4 @@ function decodeUplink(input) {
return {
data: Decoder(input.bytes, input.fPort)
};
}
}

Wyświetl plik

@ -325,14 +325,23 @@ void ttn_join(void) {
// other regions, this will need to be changed.
LMIC_selectSubBand(1);
#elif defined(CFG_au915) && defined(CFG_au915_fsb6)
// AU915 FSB6
// CH 40-47 (923.2 - 924.6 MHz)
// Helium DualPlan was live in Australia 2022-11-17 to 2023-04-18
// DualPlan allowed AU915 devices to co-exist with AS923 by taking advantage
// of some AU915 FSB6 frequencies overlapping AS923 frequencies.
// If a device joined on the first two channels of FSB6, it was treated as
// an AS923 device. On the last 6 channels, an AU915 device.
LMIC_selectSubBand(5);
#elif defined(CFG_au915)
// set sub band for AU915
// before 2022-11-17 Helium was using FSB2 CH 8-15 (916.8 - 918.2 MHz uplink)
// AU915 FSB2
// CH 8-15 (916.8 - 918.2 MHz uplink)
// https://github.com/TheThingsNetwork/gateway-conf/blob/master/AU-global_conf.json
// LMIC_selectSubBand(1);
// after 2022-11-17 Helium switched to DualPlan using FSB6 CH 40-47 (923.2 - 924.6 MHz uplink)
LMIC_selectSubBand(5);
LMIC_selectSubBand(1);
#endif

Wyświetl plik

@ -21,6 +21,8 @@ build_flags = -Wall
; -D CFG_us915=1
-D CFG_eu868=1
; -D CFG_au915=1
; -D CFG_au915_fsb6=1
; -D CFG_as923=1
-D CFG_sx1276_radio=1
-D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS
-D ARDUINO_TTGO_LoRa32_V1
@ -40,5 +42,5 @@ monitor_speed = 115200
[env:debug]
debug_build_flags =
-D DEBUG
-D DEBUG
-D LMIC_DEBUG_LEVEL=3