From a397afaab826dbdf7e321f66a381cb9cad21b034 Mon Sep 17 00:00:00 2001
From: StevenCellist <47155822+StevenCellist@users.noreply.github.com>
Date: Sat, 25 May 2024 13:01:08 +0000
Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=2023753?=
=?UTF-8?q?1c9a034ab51ae86485091578935ed1169cd=20=F0=9F=9A=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
_lo_ra_w_a_n_8h_source.html | 1504 ++++++++++++++-------------
_physical_layer_8h_source.html | 2 +-
class_lo_ra_w_a_n_node-members.html | 5 +-
class_lo_ra_w_a_n_node.html | 10 +-
class_lo_ra_w_a_n_node.js | 3 +-
functions_t.html | 3 +
functions_vars.html | 3 +
group__status__codes.html | 2 +-
navtreedata.js | 10 +-
navtreeindex1.js | 4 +-
navtreeindex2.js | 4 +-
navtreeindex3.js | 4 +-
navtreeindex4.js | 4 +-
navtreeindex5.js | 4 +-
navtreeindex6.js | 1 +
search/all_11.js | 13 +-
search/all_12.js | 8 +-
search/all_13.js | 8 +-
search/all_14.js | 10 +-
search/all_15.js | 2 +-
search/all_16.js | 2 +-
search/all_17.js | 8 +-
search/classes_0.js | 8 +-
search/classes_1.js | 4 +-
search/classes_2.js | 2 +-
search/classes_3.js | 2 +-
search/classes_4.js | 2 +-
search/classes_5.js | 4 +-
search/classes_6.js | 2 +-
search/classes_7.js | 2 +-
search/classes_8.js | 40 +-
search/classes_9.js | 4 +-
search/classes_a.js | 2 +-
search/classes_b.js | 4 +-
search/classes_c.js | 28 +-
search/classes_d.js | 54 +-
search/classes_e.js | 2 +-
search/defines_0.js | 6 +-
search/enums_0.js | 2 +-
search/enumvalues_0.js | 12 +-
search/files_0.js | 16 +-
search/functions_0.js | 20 +-
search/functions_1.js | 20 +-
search/functions_10.js | 12 +-
search/functions_11.js | 6 +-
search/functions_12.js | 4 +-
search/functions_13.js | 6 +-
search/functions_14.js | 2 +-
search/functions_15.js | 8 +-
search/functions_2.js | 38 +-
search/functions_3.js | 32 +-
search/functions_4.js | 16 +-
search/functions_5.js | 14 +-
search/functions_6.js | 88 +-
search/functions_7.js | 2 +-
search/functions_8.js | 20 +-
search/functions_9.js | 14 +-
search/functions_a.js | 10 +-
search/functions_b.js | 4 +-
search/functions_c.js | 2 +-
search/functions_d.js | 14 +-
search/functions_e.js | 36 +-
search/functions_f.js | 300 +++---
search/groups_0.js | 2 +-
search/groups_1.js | 2 +-
search/groups_2.js | 2 +-
search/groups_3.js | 4 +-
search/groups_4.js | 4 +-
search/groups_5.js | 2 +-
search/pages_0.js | 2 +-
search/pages_1.js | 2 +-
search/typedefs_0.js | 2 +-
search/typedefs_1.js | 4 +-
search/variables_0.js | 4 +-
search/variables_1.js | 10 +-
search/variables_10.js | 26 +-
search/variables_11.js | 17 +-
search/variables_12.js | 2 +-
search/variables_13.js | 4 +-
search/variables_14.js | 4 +-
search/variables_15.js | 2 +-
search/variables_2.js | 22 +-
search/variables_3.js | 26 +-
search/variables_4.js | 4 +-
search/variables_5.js | 40 +-
search/variables_6.js | 12 +-
search/variables_7.js | 6 +-
search/variables_8.js | 10 +-
search/variables_9.js | 4 +-
search/variables_a.js | 12 +-
search/variables_b.js | 8 +-
search/variables_c.js | 12 +-
search/variables_d.js | 4 +-
search/variables_e.js | 20 +-
search/variables_f.js | 28 +-
95 files changed, 1402 insertions(+), 1379 deletions(-)
diff --git a/_lo_ra_w_a_n_8h_source.html b/_lo_ra_w_a_n_8h_source.html
index 1161ef37..ed023f00 100644
--- a/_lo_ra_w_a_n_8h_source.html
+++ b/_lo_ra_w_a_n_8h_source.html
@@ -129,778 +129,782 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
43 #define RADIOLIB_LORAWAN_FPORT_MAC_COMMAND (0x00 << 0)
- 44 #define RADIOLIB_LORAWAN_FPORT_RESERVED (0xE0 << 0)
-
-
- 47 #define RADIOLIB_LORAWAN_LINK_CHECK_REQ (0x02 << 0)
- 48 #define RADIOLIB_LORAWAN_LINK_ADR_ANS (0x03 << 0)
- 49 #define RADIOLIB_LORAWAN_DUTY_CYCLE_ANS (0x04 << 0)
- 50 #define RADIOLIB_LORAWAN_RX_PARAM_SETUP_ANS (0x05 << 0)
- 51 #define RADIOLIB_LORAWAN_DEV_STATUS_ANS (0x06 << 0)
- 52 #define RADIOLIB_LORAWAN_NEW_CHANNEL_ANS (0x07 << 0)
- 53 #define RADIOLIB_LORAWAN_RX_TIMING_SETUP_ANS (0x08 << 0)
-
- 55 #define RADIOLIB_LORAWAN_NOPTS_LEN (8)
-
-
- 58 #define RADIOLIB_LORAWAN_DATA_RATE_FSK_50_K (0x01 << 7)
- 59 #define RADIOLIB_LORAWAN_DATA_RATE_SF_12 (0x06 << 4)
- 60 #define RADIOLIB_LORAWAN_DATA_RATE_SF_11 (0x05 << 4)
- 61 #define RADIOLIB_LORAWAN_DATA_RATE_SF_10 (0x04 << 4)
- 62 #define RADIOLIB_LORAWAN_DATA_RATE_SF_9 (0x03 << 4)
- 63 #define RADIOLIB_LORAWAN_DATA_RATE_SF_8 (0x02 << 4)
- 64 #define RADIOLIB_LORAWAN_DATA_RATE_SF_7 (0x01 << 4)
- 65 #define RADIOLIB_LORAWAN_DATA_RATE_BW_500_KHZ (0x00 << 2)
- 66 #define RADIOLIB_LORAWAN_DATA_RATE_BW_250_KHZ (0x01 << 2)
- 67 #define RADIOLIB_LORAWAN_DATA_RATE_BW_125_KHZ (0x02 << 2)
- 68 #define RADIOLIB_LORAWAN_DATA_RATE_BW_RESERVED (0x03 << 2)
- 69 #define RADIOLIB_LORAWAN_DATA_RATE_CR_4_5 (0x00 << 0)
- 70 #define RADIOLIB_LORAWAN_DATA_RATE_CR_4_6 (0x01 << 0)
- 71 #define RADIOLIB_LORAWAN_DATA_RATE_CR_4_7 (0x02 << 0)
- 72 #define RADIOLIB_LORAWAN_DATA_RATE_CR_4_8 (0x03 << 0)
- 73 #define RADIOLIB_LORAWAN_DATA_RATE_UNUSED (0xFF << 0)
-
- 75 #define RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK (0x00 << 0)
- 76 #define RADIOLIB_LORAWAN_CHANNEL_DIR_DOWNLINK (0x01 << 0)
- 77 #define RADIOLIB_LORAWAN_CHANNEL_DIR_BOTH (0x02 << 0)
- 78 #define RADIOLIB_LORAWAN_CHANNEL_DIR_NONE (0x03 << 0)
- 79 #define RADIOLIB_LORAWAN_BAND_DYNAMIC (0)
- 80 #define RADIOLIB_LORAWAN_BAND_FIXED (1)
- 81 #define RADIOLIB_LORAWAN_CHANNEL_NUM_DATARATES (15)
- 82 #define RADIOLIB_LORAWAN_CHANNEL_INDEX_NONE (0xFF >> 0)
-
-
- 85 #define RADIOLIB_LORAWAN_RECEIVE_DELAY_1_MS (1000)
- 86 #define RADIOLIB_LORAWAN_RECEIVE_DELAY_2_MS ((RADIOLIB_LORAWAN_RECEIVE_DELAY_1_MS) + 1000)
- 87 #define RADIOLIB_LORAWAN_RX1_DR_OFFSET (0)
- 88 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DELAY_1_MS (5000)
- 89 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DELAY_2_MS (6000)
- 90 #define RADIOLIB_LORAWAN_MAX_FCNT_GAP (16384)
- 91 #define RADIOLIB_LORAWAN_ADR_ACK_LIMIT_EXP (0x06)
- 92 #define RADIOLIB_LORAWAN_ADR_ACK_DELAY_EXP (0x05)
- 93 #define RADIOLIB_LORAWAN_RETRANSMIT_TIMEOUT_MIN_MS (1000)
- 94 #define RADIOLIB_LORAWAN_RETRANSMIT_TIMEOUT_MAX_MS (3000)
- 95 #define RADIOLIB_LORAWAN_POWER_STEP_SIZE_DBM (-2)
- 96 #define RADIOLIB_LORAWAN_REJOIN_MAX_COUNT_N (10)
- 97 #define RADIOLIB_LORAWAN_REJOIN_MAX_TIME_N (15)
-
-
- 100 #define RADIOLIB_LORAWAN_JOIN_REQUEST_LEN (23)
- 101 #define RADIOLIB_LORAWAN_JOIN_REQUEST_JOIN_EUI_POS (1)
- 102 #define RADIOLIB_LORAWAN_JOIN_REQUEST_DEV_EUI_POS (9)
- 103 #define RADIOLIB_LORAWAN_JOIN_REQUEST_DEV_NONCE_POS (17)
- 104 #define RADIOLIB_LORAWAN_JOIN_REQUEST_TYPE (0xFF)
- 105 #define RADIOLIB_LORAWAN_JOIN_REQUEST_TYPE_0 (0x00)
- 106 #define RADIOLIB_LORAWAN_JOIN_REQUEST_TYPE_1 (0x01)
- 107 #define RADIOLIB_LORAWAN_JOIN_REQUEST_TYPE_2 (0x02)
-
-
- 110 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_MAX_LEN (33)
- 111 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_JOIN_NONCE_POS (1)
- 112 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_HOME_NET_ID_POS (4)
- 113 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DEV_ADDR_POS (7)
- 114 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_JOIN_EUI_POS (4)
- 115 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DL_SETTINGS_POS (11)
- 116 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_RX_DELAY_POS (12)
- 117 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DEV_NONCE_POS (12)
- 118 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_POS (13)
- 119 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_LEN (16)
- 120 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_TYPE_POS (RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_POS + RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_LEN - 1)
-
-
- 123 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_R_1_0 (0x00 << 7)
- 124 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_R_1_1 (0x01 << 7)
- 125 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_F_NWK_S_INT_KEY (0x01)
- 126 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_APP_S_KEY (0x02)
- 127 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_S_NWK_S_INT_KEY (0x03)
- 128 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_NWK_S_ENC_KEY (0x04)
- 129 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_JS_ENC_KEY (0x05)
- 130 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_JS_INT_KEY (0x06)
-
-
- 133 #define RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS (16)
- 134 #define RADIOLIB_LORAWAN_FHDR_DEV_ADDR_POS (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 1)
- 135 #define RADIOLIB_LORAWAN_FHDR_FCTRL_POS (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 5)
- 136 #define RADIOLIB_LORAWAN_FHDR_FCNT_POS (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 6)
- 137 #define RADIOLIB_LORAWAN_FHDR_FOPTS_POS (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 8)
- 138 #define RADIOLIB_LORAWAN_FHDR_FOPTS_LEN_MASK (0x0F)
- 139 #define RADIOLIB_LORAWAN_FHDR_FOPTS_MAX_LEN (15)
- 140 #define RADIOLIB_LORAWAN_FHDR_FPORT_POS(FOPTS) (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 8 + (FOPTS))
- 141 #define RADIOLIB_LORAWAN_FRAME_PAYLOAD_POS(FOPTS) (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 9 + (FOPTS))
- 142 #define RADIOLIB_LORAWAN_FRAME_LEN(PAYLOAD, FOPTS) (16 + 13 + (PAYLOAD) + (FOPTS))
-
-
- 145 #define RADIOLIB_LORAWAN_BLOCK_MAGIC_POS (0)
- 146 #define RADIOLIB_LORAWAN_BLOCK_CONF_FCNT_POS (1)
- 147 #define RADIOLIB_LORAWAN_BLOCK_DIR_POS (5)
- 148 #define RADIOLIB_LORAWAN_BLOCK_DEV_ADDR_POS (6)
- 149 #define RADIOLIB_LORAWAN_BLOCK_FCNT_POS (10)
-
-
- 152 #define RADIOLIB_LORAWAN_ENC_BLOCK_MAGIC (0x01)
- 153 #define RADIOLIB_LORAWAN_ENC_BLOCK_COUNTER_ID_POS (4)
- 154 #define RADIOLIB_LORAWAN_ENC_BLOCK_COUNTER_POS (15)
-
-
- 157 #define RADIOLIB_LORAWAN_MIC_BLOCK_MAGIC (0x49)
- 158 #define RADIOLIB_LORAWAN_MIC_BLOCK_LEN_POS (15)
- 159 #define RADIOLIB_LORAWAN_MIC_DATA_RATE_POS (3)
- 160 #define RADIOLIB_LORAWAN_MIC_CH_INDEX_POS (4)
-
-
- 163 #define RADIOLIB_LORAWAN_DWELL_TIME (400)
-
-
- 166 #define RADIOLIB_LORAWAN_FCNT_NONE (0xFFFFFFFF)
-
-
- 169 #define RADIOLIB_LORAWAN_NUM_MAC_COMMANDS (16)
-
- 171 #define RADIOLIB_LORAWAN_MAC_RESET (0x01)
- 172 #define RADIOLIB_LORAWAN_MAC_LINK_CHECK (0x02)
- 173 #define RADIOLIB_LORAWAN_MAC_LINK_ADR (0x03)
- 174 #define RADIOLIB_LORAWAN_MAC_DUTY_CYCLE (0x04)
- 175 #define RADIOLIB_LORAWAN_MAC_RX_PARAM_SETUP (0x05)
- 176 #define RADIOLIB_LORAWAN_MAC_DEV_STATUS (0x06)
- 177 #define RADIOLIB_LORAWAN_MAC_NEW_CHANNEL (0x07)
- 178 #define RADIOLIB_LORAWAN_MAC_RX_TIMING_SETUP (0x08)
- 179 #define RADIOLIB_LORAWAN_MAC_TX_PARAM_SETUP (0x09)
- 180 #define RADIOLIB_LORAWAN_MAC_DL_CHANNEL (0x0A)
- 181 #define RADIOLIB_LORAWAN_MAC_REKEY (0x0B)
- 182 #define RADIOLIB_LORAWAN_MAC_ADR_PARAM_SETUP (0x0C)
- 183 #define RADIOLIB_LORAWAN_MAC_DEVICE_TIME (0x0D)
- 184 #define RADIOLIB_LORAWAN_MAC_FORCE_REJOIN (0x0E)
- 185 #define RADIOLIB_LORAWAN_MAC_REJOIN_PARAM_SETUP (0x0F)
- 186 #define RADIOLIB_LORAWAN_MAC_PROPRIETARY (0x80)
-
-
- 189 #define RADIOLIB_LORAWAN_MAC_COMMAND_QUEUE_SIZE (9)
-
-
- 192 #define RADIOLIB_LORAWAN_NUM_AVAILABLE_CHANNELS (16)
-
-
- 195 #define RADIOLIB_LORAWAN_MAX_MAC_COMMAND_LEN_DOWN (5)
- 196 #define RADIOLIB_LORAWAN_MAX_MAC_COMMAND_LEN_UP (2)
- 197 #define RADIOLIB_LORAWAN_MAX_NUM_ADR_COMMANDS (8)
-
-
-
-
-
-
-
-
-
-
-
- 217 constexpr
LoRaWANMacSpec_t MacTable[RADIOLIB_LORAWAN_NUM_MAC_COMMANDS + 1] = {
- 218 { 0x00, 0, 0,
false },
- 219 { RADIOLIB_LORAWAN_MAC_RESET, 1, 1,
false },
- 220 { RADIOLIB_LORAWAN_MAC_LINK_CHECK, 2, 0,
true },
- 221 { RADIOLIB_LORAWAN_MAC_LINK_ADR, 4, 1,
false },
- 222 { RADIOLIB_LORAWAN_MAC_DUTY_CYCLE, 1, 0,
false },
- 223 { RADIOLIB_LORAWAN_MAC_RX_PARAM_SETUP, 4, 1,
false },
- 224 { RADIOLIB_LORAWAN_MAC_DEV_STATUS, 0, 2,
false },
- 225 { RADIOLIB_LORAWAN_MAC_NEW_CHANNEL, 5, 1,
false },
- 226 { RADIOLIB_LORAWAN_MAC_RX_TIMING_SETUP, 1, 0,
false },
- 227 { RADIOLIB_LORAWAN_MAC_TX_PARAM_SETUP, 1, 0,
false },
- 228 { RADIOLIB_LORAWAN_MAC_DL_CHANNEL, 4, 1,
false },
- 229 { RADIOLIB_LORAWAN_MAC_REKEY, 1, 1,
false },
- 230 { RADIOLIB_LORAWAN_MAC_ADR_PARAM_SETUP, 1, 0,
false },
- 231 { RADIOLIB_LORAWAN_MAC_DEVICE_TIME, 5, 0,
true },
- 232 { RADIOLIB_LORAWAN_MAC_FORCE_REJOIN, 2, 0,
false },
- 233 { RADIOLIB_LORAWAN_MAC_REJOIN_PARAM_SETUP, 1, 1,
false },
- 234 { RADIOLIB_LORAWAN_MAC_PROPRIETARY, 5, 0,
true }
-
-
-
-
-
- 246 uint8_t
payload[RADIOLIB_LORAWAN_MAX_MAC_COMMAND_LEN_DOWN];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 270 #define RADIOLIB_LORAWAN_NONCES_VERSION_VAL (0x0001)
-
- 272 enum LoRaWANSchemeBase_t {
- 273 RADIOLIB_LORAWAN_NONCES_START = 0x00,
- 274 RADIOLIB_LORAWAN_NONCES_VERSION = RADIOLIB_LORAWAN_NONCES_START,
- 275 RADIOLIB_LORAWAN_NONCES_MODE = RADIOLIB_LORAWAN_NONCES_VERSION +
sizeof(uint16_t),
- 276 RADIOLIB_LORAWAN_NONCES_CLASS = RADIOLIB_LORAWAN_NONCES_MODE +
sizeof(uint16_t),
- 277 RADIOLIB_LORAWAN_NONCES_PLAN = RADIOLIB_LORAWAN_NONCES_CLASS +
sizeof(uint8_t),
- 278 RADIOLIB_LORAWAN_NONCES_CHECKSUM = RADIOLIB_LORAWAN_NONCES_PLAN +
sizeof(uint8_t),
- 279 RADIOLIB_LORAWAN_NONCES_DEV_NONCE = RADIOLIB_LORAWAN_NONCES_CHECKSUM +
sizeof(uint16_t),
- 280 RADIOLIB_LORAWAN_NONCES_JOIN_NONCE = RADIOLIB_LORAWAN_NONCES_DEV_NONCE +
sizeof(uint16_t),
- 281 RADIOLIB_LORAWAN_NONCES_ACTIVE = RADIOLIB_LORAWAN_NONCES_JOIN_NONCE + 3,
- 282 RADIOLIB_LORAWAN_NONCES_SIGNATURE = RADIOLIB_LORAWAN_NONCES_ACTIVE +
sizeof(uint8_t),
- 283 RADIOLIB_LORAWAN_NONCES_BUF_SIZE = RADIOLIB_LORAWAN_NONCES_SIGNATURE +
sizeof(uint16_t)
-
-
- 286 enum LoRaWANSchemeSession_t {
- 287 RADIOLIB_LORAWAN_SESSION_START = 0x00,
- 288 RADIOLIB_LORAWAN_SESSION_NWK_SENC_KEY = RADIOLIB_LORAWAN_SESSION_START,
- 289 RADIOLIB_LORAWAN_SESSION_APP_SKEY = RADIOLIB_LORAWAN_SESSION_NWK_SENC_KEY + RADIOLIB_AES128_BLOCK_SIZE,
- 290 RADIOLIB_LORAWAN_SESSION_FNWK_SINT_KEY = RADIOLIB_LORAWAN_SESSION_APP_SKEY + RADIOLIB_AES128_BLOCK_SIZE,
- 291 RADIOLIB_LORAWAN_SESSION_SNWK_SINT_KEY = RADIOLIB_LORAWAN_SESSION_FNWK_SINT_KEY + RADIOLIB_AES128_BLOCK_SIZE,
- 292 RADIOLIB_LORAWAN_SESSION_DEV_ADDR = RADIOLIB_LORAWAN_SESSION_SNWK_SINT_KEY + RADIOLIB_AES128_BLOCK_SIZE,
- 293 RADIOLIB_LORAWAN_SESSION_NONCES_SIGNATURE = RADIOLIB_LORAWAN_SESSION_DEV_ADDR +
sizeof(uint32_t),
- 294 RADIOLIB_LORAWAN_SESSION_A_FCNT_DOWN = RADIOLIB_LORAWAN_SESSION_NONCES_SIGNATURE +
sizeof(uint16_t),
- 295 RADIOLIB_LORAWAN_SESSION_CONF_FCNT_UP = RADIOLIB_LORAWAN_SESSION_A_FCNT_DOWN +
sizeof(uint32_t),
- 296 RADIOLIB_LORAWAN_SESSION_CONF_FCNT_DOWN = RADIOLIB_LORAWAN_SESSION_CONF_FCNT_UP +
sizeof(uint32_t),
- 297 RADIOLIB_LORAWAN_SESSION_RJ_COUNT0 = RADIOLIB_LORAWAN_SESSION_CONF_FCNT_DOWN +
sizeof(uint32_t),
- 298 RADIOLIB_LORAWAN_SESSION_RJ_COUNT1 = RADIOLIB_LORAWAN_SESSION_RJ_COUNT0 +
sizeof(uint16_t),
- 299 RADIOLIB_LORAWAN_SESSION_HOMENET_ID = RADIOLIB_LORAWAN_SESSION_RJ_COUNT1 +
sizeof(uint16_t),
- 300 RADIOLIB_LORAWAN_SESSION_VERSION = RADIOLIB_LORAWAN_SESSION_HOMENET_ID +
sizeof(uint32_t),
- 301 RADIOLIB_LORAWAN_SESSION_DUTY_CYCLE = RADIOLIB_LORAWAN_SESSION_VERSION +
sizeof(uint8_t),
- 302 RADIOLIB_LORAWAN_SESSION_RX_PARAM_SETUP = RADIOLIB_LORAWAN_SESSION_DUTY_CYCLE + MacTable[RADIOLIB_LORAWAN_MAC_DUTY_CYCLE].lenDn,
- 303 RADIOLIB_LORAWAN_SESSION_RX_TIMING_SETUP = RADIOLIB_LORAWAN_SESSION_RX_PARAM_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_RX_PARAM_SETUP].lenDn,
- 304 RADIOLIB_LORAWAN_SESSION_TX_PARAM_SETUP = RADIOLIB_LORAWAN_SESSION_RX_TIMING_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_RX_TIMING_SETUP].lenDn,
- 305 RADIOLIB_LORAWAN_SESSION_ADR_PARAM_SETUP = RADIOLIB_LORAWAN_SESSION_TX_PARAM_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_TX_PARAM_SETUP].lenDn,
- 306 RADIOLIB_LORAWAN_SESSION_REJOIN_PARAM_SETUP = RADIOLIB_LORAWAN_SESSION_ADR_PARAM_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_ADR_PARAM_SETUP].lenDn,
- 307 RADIOLIB_LORAWAN_SESSION_BEACON_FREQ = RADIOLIB_LORAWAN_SESSION_REJOIN_PARAM_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_REJOIN_PARAM_SETUP].lenDn,
- 308 RADIOLIB_LORAWAN_SESSION_PING_SLOT_CHANNEL = RADIOLIB_LORAWAN_SESSION_BEACON_FREQ + 3,
- 309 RADIOLIB_LORAWAN_SESSION_PERIODICITY = RADIOLIB_LORAWAN_SESSION_PING_SLOT_CHANNEL + 4,
- 310 RADIOLIB_LORAWAN_SESSION_LAST_TIME = RADIOLIB_LORAWAN_SESSION_PERIODICITY + 1,
- 311 RADIOLIB_LORAWAN_SESSION_UL_CHANNELS = RADIOLIB_LORAWAN_SESSION_LAST_TIME + 4,
- 312 RADIOLIB_LORAWAN_SESSION_DL_CHANNELS = RADIOLIB_LORAWAN_SESSION_UL_CHANNELS + 16*MacTable[RADIOLIB_LORAWAN_MAC_NEW_CHANNEL].lenDn,
- 313 RADIOLIB_LORAWAN_SESSION_MAC_QUEUE_UL = RADIOLIB_LORAWAN_SESSION_DL_CHANNELS + 16*MacTable[RADIOLIB_LORAWAN_MAC_DL_CHANNEL].lenDn,
-
- 315 RADIOLIB_LORAWAN_SESSION_ADR_FCNT = RADIOLIB_LORAWAN_SESSION_N_FCNT_DOWN +
sizeof(uint32_t),
- 316 RADIOLIB_LORAWAN_SESSION_LINK_ADR = RADIOLIB_LORAWAN_SESSION_ADR_FCNT +
sizeof(uint32_t),
- 317 RADIOLIB_LORAWAN_SESSION_FCNT_UP = RADIOLIB_LORAWAN_SESSION_LINK_ADR + MacTable[RADIOLIB_LORAWAN_MAC_LINK_ADR].
lenDn,
- 318 RADIOLIB_LORAWAN_SESSION_SIGNATURE = RADIOLIB_LORAWAN_SESSION_FCNT_UP +
sizeof(uint32_t),
- 319 RADIOLIB_LORAWAN_SESSION_BUF_SIZE = RADIOLIB_LORAWAN_SESSION_SIGNATURE +
sizeof(uint16_t)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 345 #define RADIOLIB_LORAWAN_CHANNEL_NONE { .enabled = false, .idx = RADIOLIB_LORAWAN_CHANNEL_INDEX_NONE, .freq = 0, .drMin = 0, .drMax = 0 }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 373 #define RADIOLIB_LORAWAN_CHANNEL_SPAN_NONE { .numChannels = 0, .freqStart = 0, .freqStep = 0, .drMin = 0, .drMax = 0, .joinRequestDataRate = RADIOLIB_LORAWAN_DATA_RATE_UNUSED }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 426 uint8_t
dataRates[RADIOLIB_LORAWAN_CHANNEL_NUM_DATARATES];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 458 #define RADIOLIB_LORAWAN_NUM_SUPPORTED_BANDS (BandLast - BandEU868)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 562 void beginOTAA(uint64_t joinEUI, uint64_t devEUI, uint8_t* nwkKey, uint8_t* appKey);
-
-
-
- 581 void beginABP(uint32_t addr, uint8_t* fNwkSIntKey, uint8_t* sNwkSIntKey, uint8_t* nwkSEncKey, uint8_t* appSKey);
-
- 589 int16_t
activateABP(uint8_t initialDr = RADIOLIB_LORAWAN_DATA_RATE_UNUSED);
-
-
-
-
-
-
-
- 611 #if defined(RADIOLIB_BUILD_ARDUINO)
- 621 int16_t
uplink(String& str, uint8_t fPort,
bool isConfirmed =
false,
LoRaWANEvent_t* event = NULL);
-
-
- 633 int16_t
uplink(
const char* str, uint8_t fPort,
bool isConfirmed =
false,
LoRaWANEvent_t* event = NULL);
-
- 645 int16_t
uplink(uint8_t* data,
size_t len, uint8_t fPort,
bool isConfirmed =
false,
LoRaWANEvent_t* event = NULL);
-
- 647 #if defined(RADIOLIB_BUILD_ARDUINO)
-
-
-
-
-
-
-
- 676 #if defined(RADIOLIB_BUILD_ARDUINO)
-
-
-
-
-
- 721 int16_t
sendReceive(uint8_t* dataUp,
size_t lenUp, uint8_t fPort, uint8_t* dataDown,
size_t* lenDown,
bool isConfirmed =
false,
LoRaWANEvent_t* eventUp = NULL,
LoRaWANEvent_t* eventDown = NULL);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 780 void setADR(
bool enable =
true);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 843 int16_t
getMacDeviceTimeAns(uint32_t* gpsEpoch, uint8_t* fraction,
bool returnUnix =
true);
-
-
-
-
-
- 857 #if !RADIOLIB_GODMODE
-
-
-
-
-
- 863 static int16_t checkBufferCommon(uint8_t *buffer, uint16_t size);
-
- 865 void activateCommon(uint8_t initialDr);
-
-
- 868 uint8_t bufferNonces[RADIOLIB_LORAWAN_NONCES_BUF_SIZE] = { 0 };
+ 44 #define RADIOLIB_LORAWAN_FPORT_TS009 (0xE0 << 0)
+ 45 #define RADIOLIB_LORAWAN_FPORT_RESERVED (0xE0 << 0)
+
+
+ 48 #define RADIOLIB_LORAWAN_LINK_CHECK_REQ (0x02 << 0)
+ 49 #define RADIOLIB_LORAWAN_LINK_ADR_ANS (0x03 << 0)
+ 50 #define RADIOLIB_LORAWAN_DUTY_CYCLE_ANS (0x04 << 0)
+ 51 #define RADIOLIB_LORAWAN_RX_PARAM_SETUP_ANS (0x05 << 0)
+ 52 #define RADIOLIB_LORAWAN_DEV_STATUS_ANS (0x06 << 0)
+ 53 #define RADIOLIB_LORAWAN_NEW_CHANNEL_ANS (0x07 << 0)
+ 54 #define RADIOLIB_LORAWAN_RX_TIMING_SETUP_ANS (0x08 << 0)
+
+ 56 #define RADIOLIB_LORAWAN_NOPTS_LEN (8)
+
+
+ 59 #define RADIOLIB_LORAWAN_DATA_RATE_FSK_50_K (0x01 << 7)
+ 60 #define RADIOLIB_LORAWAN_DATA_RATE_SF_12 (0x06 << 4)
+ 61 #define RADIOLIB_LORAWAN_DATA_RATE_SF_11 (0x05 << 4)
+ 62 #define RADIOLIB_LORAWAN_DATA_RATE_SF_10 (0x04 << 4)
+ 63 #define RADIOLIB_LORAWAN_DATA_RATE_SF_9 (0x03 << 4)
+ 64 #define RADIOLIB_LORAWAN_DATA_RATE_SF_8 (0x02 << 4)
+ 65 #define RADIOLIB_LORAWAN_DATA_RATE_SF_7 (0x01 << 4)
+ 66 #define RADIOLIB_LORAWAN_DATA_RATE_BW_500_KHZ (0x00 << 2)
+ 67 #define RADIOLIB_LORAWAN_DATA_RATE_BW_250_KHZ (0x01 << 2)
+ 68 #define RADIOLIB_LORAWAN_DATA_RATE_BW_125_KHZ (0x02 << 2)
+ 69 #define RADIOLIB_LORAWAN_DATA_RATE_BW_RESERVED (0x03 << 2)
+ 70 #define RADIOLIB_LORAWAN_DATA_RATE_CR_4_5 (0x00 << 0)
+ 71 #define RADIOLIB_LORAWAN_DATA_RATE_CR_4_6 (0x01 << 0)
+ 72 #define RADIOLIB_LORAWAN_DATA_RATE_CR_4_7 (0x02 << 0)
+ 73 #define RADIOLIB_LORAWAN_DATA_RATE_CR_4_8 (0x03 << 0)
+ 74 #define RADIOLIB_LORAWAN_DATA_RATE_UNUSED (0xFF << 0)
+
+ 76 #define RADIOLIB_LORAWAN_CHANNEL_DIR_UPLINK (0x00 << 0)
+ 77 #define RADIOLIB_LORAWAN_CHANNEL_DIR_DOWNLINK (0x01 << 0)
+ 78 #define RADIOLIB_LORAWAN_CHANNEL_DIR_BOTH (0x02 << 0)
+ 79 #define RADIOLIB_LORAWAN_CHANNEL_DIR_NONE (0x03 << 0)
+ 80 #define RADIOLIB_LORAWAN_BAND_DYNAMIC (0)
+ 81 #define RADIOLIB_LORAWAN_BAND_FIXED (1)
+ 82 #define RADIOLIB_LORAWAN_CHANNEL_NUM_DATARATES (15)
+ 83 #define RADIOLIB_LORAWAN_CHANNEL_INDEX_NONE (0xFF >> 0)
+
+
+ 86 #define RADIOLIB_LORAWAN_RECEIVE_DELAY_1_MS (1000)
+ 87 #define RADIOLIB_LORAWAN_RECEIVE_DELAY_2_MS ((RADIOLIB_LORAWAN_RECEIVE_DELAY_1_MS) + 1000)
+ 88 #define RADIOLIB_LORAWAN_RX1_DR_OFFSET (0)
+ 89 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DELAY_1_MS (5000)
+ 90 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DELAY_2_MS (6000)
+ 91 #define RADIOLIB_LORAWAN_MAX_FCNT_GAP (16384)
+ 92 #define RADIOLIB_LORAWAN_ADR_ACK_LIMIT_EXP (0x06)
+ 93 #define RADIOLIB_LORAWAN_ADR_ACK_DELAY_EXP (0x05)
+ 94 #define RADIOLIB_LORAWAN_RETRANSMIT_TIMEOUT_MIN_MS (1000)
+ 95 #define RADIOLIB_LORAWAN_RETRANSMIT_TIMEOUT_MAX_MS (3000)
+ 96 #define RADIOLIB_LORAWAN_POWER_STEP_SIZE_DBM (-2)
+ 97 #define RADIOLIB_LORAWAN_REJOIN_MAX_COUNT_N (10)
+ 98 #define RADIOLIB_LORAWAN_REJOIN_MAX_TIME_N (15)
+
+
+ 101 #define RADIOLIB_LORAWAN_JOIN_REQUEST_LEN (23)
+ 102 #define RADIOLIB_LORAWAN_JOIN_REQUEST_JOIN_EUI_POS (1)
+ 103 #define RADIOLIB_LORAWAN_JOIN_REQUEST_DEV_EUI_POS (9)
+ 104 #define RADIOLIB_LORAWAN_JOIN_REQUEST_DEV_NONCE_POS (17)
+ 105 #define RADIOLIB_LORAWAN_JOIN_REQUEST_TYPE (0xFF)
+ 106 #define RADIOLIB_LORAWAN_JOIN_REQUEST_TYPE_0 (0x00)
+ 107 #define RADIOLIB_LORAWAN_JOIN_REQUEST_TYPE_1 (0x01)
+ 108 #define RADIOLIB_LORAWAN_JOIN_REQUEST_TYPE_2 (0x02)
+
+
+ 111 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_MAX_LEN (33)
+ 112 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_JOIN_NONCE_POS (1)
+ 113 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_HOME_NET_ID_POS (4)
+ 114 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DEV_ADDR_POS (7)
+ 115 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_JOIN_EUI_POS (4)
+ 116 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DL_SETTINGS_POS (11)
+ 117 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_RX_DELAY_POS (12)
+ 118 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_DEV_NONCE_POS (12)
+ 119 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_POS (13)
+ 120 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_LEN (16)
+ 121 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_TYPE_POS (RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_POS + RADIOLIB_LORAWAN_JOIN_ACCEPT_CFLIST_LEN - 1)
+
+
+ 124 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_R_1_0 (0x00 << 7)
+ 125 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_R_1_1 (0x01 << 7)
+ 126 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_F_NWK_S_INT_KEY (0x01)
+ 127 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_APP_S_KEY (0x02)
+ 128 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_S_NWK_S_INT_KEY (0x03)
+ 129 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_NWK_S_ENC_KEY (0x04)
+ 130 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_JS_ENC_KEY (0x05)
+ 131 #define RADIOLIB_LORAWAN_JOIN_ACCEPT_JS_INT_KEY (0x06)
+
+
+ 134 #define RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS (16)
+ 135 #define RADIOLIB_LORAWAN_FHDR_DEV_ADDR_POS (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 1)
+ 136 #define RADIOLIB_LORAWAN_FHDR_FCTRL_POS (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 5)
+ 137 #define RADIOLIB_LORAWAN_FHDR_FCNT_POS (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 6)
+ 138 #define RADIOLIB_LORAWAN_FHDR_FOPTS_POS (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 8)
+ 139 #define RADIOLIB_LORAWAN_FHDR_FOPTS_LEN_MASK (0x0F)
+ 140 #define RADIOLIB_LORAWAN_FHDR_FOPTS_MAX_LEN (15)
+ 141 #define RADIOLIB_LORAWAN_FHDR_FPORT_POS(FOPTS) (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 8 + (FOPTS))
+ 142 #define RADIOLIB_LORAWAN_FRAME_PAYLOAD_POS(FOPTS) (RADIOLIB_LORAWAN_FHDR_LEN_START_OFFS + 9 + (FOPTS))
+ 143 #define RADIOLIB_LORAWAN_FRAME_LEN(PAYLOAD, FOPTS) (16 + 13 + (PAYLOAD) + (FOPTS))
+
+
+ 146 #define RADIOLIB_LORAWAN_BLOCK_MAGIC_POS (0)
+ 147 #define RADIOLIB_LORAWAN_BLOCK_CONF_FCNT_POS (1)
+ 148 #define RADIOLIB_LORAWAN_BLOCK_DIR_POS (5)
+ 149 #define RADIOLIB_LORAWAN_BLOCK_DEV_ADDR_POS (6)
+ 150 #define RADIOLIB_LORAWAN_BLOCK_FCNT_POS (10)
+
+
+ 153 #define RADIOLIB_LORAWAN_ENC_BLOCK_MAGIC (0x01)
+ 154 #define RADIOLIB_LORAWAN_ENC_BLOCK_COUNTER_ID_POS (4)
+ 155 #define RADIOLIB_LORAWAN_ENC_BLOCK_COUNTER_POS (15)
+
+
+ 158 #define RADIOLIB_LORAWAN_MIC_BLOCK_MAGIC (0x49)
+ 159 #define RADIOLIB_LORAWAN_MIC_BLOCK_LEN_POS (15)
+ 160 #define RADIOLIB_LORAWAN_MIC_DATA_RATE_POS (3)
+ 161 #define RADIOLIB_LORAWAN_MIC_CH_INDEX_POS (4)
+
+
+ 164 #define RADIOLIB_LORAWAN_DWELL_TIME (400)
+
+
+ 167 #define RADIOLIB_LORAWAN_FCNT_NONE (0xFFFFFFFF)
+
+
+ 170 #define RADIOLIB_LORAWAN_NUM_MAC_COMMANDS (16)
+
+ 172 #define RADIOLIB_LORAWAN_MAC_RESET (0x01)
+ 173 #define RADIOLIB_LORAWAN_MAC_LINK_CHECK (0x02)
+ 174 #define RADIOLIB_LORAWAN_MAC_LINK_ADR (0x03)
+ 175 #define RADIOLIB_LORAWAN_MAC_DUTY_CYCLE (0x04)
+ 176 #define RADIOLIB_LORAWAN_MAC_RX_PARAM_SETUP (0x05)
+ 177 #define RADIOLIB_LORAWAN_MAC_DEV_STATUS (0x06)
+ 178 #define RADIOLIB_LORAWAN_MAC_NEW_CHANNEL (0x07)
+ 179 #define RADIOLIB_LORAWAN_MAC_RX_TIMING_SETUP (0x08)
+ 180 #define RADIOLIB_LORAWAN_MAC_TX_PARAM_SETUP (0x09)
+ 181 #define RADIOLIB_LORAWAN_MAC_DL_CHANNEL (0x0A)
+ 182 #define RADIOLIB_LORAWAN_MAC_REKEY (0x0B)
+ 183 #define RADIOLIB_LORAWAN_MAC_ADR_PARAM_SETUP (0x0C)
+ 184 #define RADIOLIB_LORAWAN_MAC_DEVICE_TIME (0x0D)
+ 185 #define RADIOLIB_LORAWAN_MAC_FORCE_REJOIN (0x0E)
+ 186 #define RADIOLIB_LORAWAN_MAC_REJOIN_PARAM_SETUP (0x0F)
+ 187 #define RADIOLIB_LORAWAN_MAC_PROPRIETARY (0x80)
+
+
+ 190 #define RADIOLIB_LORAWAN_MAC_COMMAND_QUEUE_SIZE (9)
+
+
+ 193 #define RADIOLIB_LORAWAN_NUM_AVAILABLE_CHANNELS (16)
+
+
+ 196 #define RADIOLIB_LORAWAN_MAX_MAC_COMMAND_LEN_DOWN (5)
+ 197 #define RADIOLIB_LORAWAN_MAX_MAC_COMMAND_LEN_UP (2)
+ 198 #define RADIOLIB_LORAWAN_MAX_NUM_ADR_COMMANDS (8)
+
+
+
+
+
+
+
+
+
+
+
+ 218 constexpr
LoRaWANMacSpec_t MacTable[RADIOLIB_LORAWAN_NUM_MAC_COMMANDS + 1] = {
+ 219 { 0x00, 0, 0,
false },
+ 220 { RADIOLIB_LORAWAN_MAC_RESET, 1, 1,
false },
+ 221 { RADIOLIB_LORAWAN_MAC_LINK_CHECK, 2, 0,
true },
+ 222 { RADIOLIB_LORAWAN_MAC_LINK_ADR, 4, 1,
false },
+ 223 { RADIOLIB_LORAWAN_MAC_DUTY_CYCLE, 1, 0,
false },
+ 224 { RADIOLIB_LORAWAN_MAC_RX_PARAM_SETUP, 4, 1,
false },
+ 225 { RADIOLIB_LORAWAN_MAC_DEV_STATUS, 0, 2,
false },
+ 226 { RADIOLIB_LORAWAN_MAC_NEW_CHANNEL, 5, 1,
false },
+ 227 { RADIOLIB_LORAWAN_MAC_RX_TIMING_SETUP, 1, 0,
false },
+ 228 { RADIOLIB_LORAWAN_MAC_TX_PARAM_SETUP, 1, 0,
false },
+ 229 { RADIOLIB_LORAWAN_MAC_DL_CHANNEL, 4, 1,
false },
+ 230 { RADIOLIB_LORAWAN_MAC_REKEY, 1, 1,
false },
+ 231 { RADIOLIB_LORAWAN_MAC_ADR_PARAM_SETUP, 1, 0,
false },
+ 232 { RADIOLIB_LORAWAN_MAC_DEVICE_TIME, 5, 0,
true },
+ 233 { RADIOLIB_LORAWAN_MAC_FORCE_REJOIN, 2, 0,
false },
+ 234 { RADIOLIB_LORAWAN_MAC_REJOIN_PARAM_SETUP, 1, 1,
false },
+ 235 { RADIOLIB_LORAWAN_MAC_PROPRIETARY, 5, 0,
true }
+
+
+
+
+
+ 247 uint8_t
payload[RADIOLIB_LORAWAN_MAX_MAC_COMMAND_LEN_DOWN];
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 271 #define RADIOLIB_LORAWAN_NONCES_VERSION_VAL (0x0001)
+
+ 273 enum LoRaWANSchemeBase_t {
+ 274 RADIOLIB_LORAWAN_NONCES_START = 0x00,
+ 275 RADIOLIB_LORAWAN_NONCES_VERSION = RADIOLIB_LORAWAN_NONCES_START,
+ 276 RADIOLIB_LORAWAN_NONCES_MODE = RADIOLIB_LORAWAN_NONCES_VERSION +
sizeof(uint16_t),
+ 277 RADIOLIB_LORAWAN_NONCES_CLASS = RADIOLIB_LORAWAN_NONCES_MODE +
sizeof(uint16_t),
+ 278 RADIOLIB_LORAWAN_NONCES_PLAN = RADIOLIB_LORAWAN_NONCES_CLASS +
sizeof(uint8_t),
+ 279 RADIOLIB_LORAWAN_NONCES_CHECKSUM = RADIOLIB_LORAWAN_NONCES_PLAN +
sizeof(uint8_t),
+ 280 RADIOLIB_LORAWAN_NONCES_DEV_NONCE = RADIOLIB_LORAWAN_NONCES_CHECKSUM +
sizeof(uint16_t),
+ 281 RADIOLIB_LORAWAN_NONCES_JOIN_NONCE = RADIOLIB_LORAWAN_NONCES_DEV_NONCE +
sizeof(uint16_t),
+ 282 RADIOLIB_LORAWAN_NONCES_ACTIVE = RADIOLIB_LORAWAN_NONCES_JOIN_NONCE + 3,
+ 283 RADIOLIB_LORAWAN_NONCES_SIGNATURE = RADIOLIB_LORAWAN_NONCES_ACTIVE +
sizeof(uint8_t),
+ 284 RADIOLIB_LORAWAN_NONCES_BUF_SIZE = RADIOLIB_LORAWAN_NONCES_SIGNATURE +
sizeof(uint16_t)
+
+
+ 287 enum LoRaWANSchemeSession_t {
+ 288 RADIOLIB_LORAWAN_SESSION_START = 0x00,
+ 289 RADIOLIB_LORAWAN_SESSION_NWK_SENC_KEY = RADIOLIB_LORAWAN_SESSION_START,
+ 290 RADIOLIB_LORAWAN_SESSION_APP_SKEY = RADIOLIB_LORAWAN_SESSION_NWK_SENC_KEY + RADIOLIB_AES128_BLOCK_SIZE,
+ 291 RADIOLIB_LORAWAN_SESSION_FNWK_SINT_KEY = RADIOLIB_LORAWAN_SESSION_APP_SKEY + RADIOLIB_AES128_BLOCK_SIZE,
+ 292 RADIOLIB_LORAWAN_SESSION_SNWK_SINT_KEY = RADIOLIB_LORAWAN_SESSION_FNWK_SINT_KEY + RADIOLIB_AES128_BLOCK_SIZE,
+ 293 RADIOLIB_LORAWAN_SESSION_DEV_ADDR = RADIOLIB_LORAWAN_SESSION_SNWK_SINT_KEY + RADIOLIB_AES128_BLOCK_SIZE,
+ 294 RADIOLIB_LORAWAN_SESSION_NONCES_SIGNATURE = RADIOLIB_LORAWAN_SESSION_DEV_ADDR +
sizeof(uint32_t),
+ 295 RADIOLIB_LORAWAN_SESSION_A_FCNT_DOWN = RADIOLIB_LORAWAN_SESSION_NONCES_SIGNATURE +
sizeof(uint16_t),
+ 296 RADIOLIB_LORAWAN_SESSION_CONF_FCNT_UP = RADIOLIB_LORAWAN_SESSION_A_FCNT_DOWN +
sizeof(uint32_t),
+ 297 RADIOLIB_LORAWAN_SESSION_CONF_FCNT_DOWN = RADIOLIB_LORAWAN_SESSION_CONF_FCNT_UP +
sizeof(uint32_t),
+ 298 RADIOLIB_LORAWAN_SESSION_RJ_COUNT0 = RADIOLIB_LORAWAN_SESSION_CONF_FCNT_DOWN +
sizeof(uint32_t),
+ 299 RADIOLIB_LORAWAN_SESSION_RJ_COUNT1 = RADIOLIB_LORAWAN_SESSION_RJ_COUNT0 +
sizeof(uint16_t),
+ 300 RADIOLIB_LORAWAN_SESSION_HOMENET_ID = RADIOLIB_LORAWAN_SESSION_RJ_COUNT1 +
sizeof(uint16_t),
+ 301 RADIOLIB_LORAWAN_SESSION_VERSION = RADIOLIB_LORAWAN_SESSION_HOMENET_ID +
sizeof(uint32_t),
+ 302 RADIOLIB_LORAWAN_SESSION_DUTY_CYCLE = RADIOLIB_LORAWAN_SESSION_VERSION +
sizeof(uint8_t),
+ 303 RADIOLIB_LORAWAN_SESSION_RX_PARAM_SETUP = RADIOLIB_LORAWAN_SESSION_DUTY_CYCLE + MacTable[RADIOLIB_LORAWAN_MAC_DUTY_CYCLE].lenDn,
+ 304 RADIOLIB_LORAWAN_SESSION_RX_TIMING_SETUP = RADIOLIB_LORAWAN_SESSION_RX_PARAM_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_RX_PARAM_SETUP].lenDn,
+ 305 RADIOLIB_LORAWAN_SESSION_TX_PARAM_SETUP = RADIOLIB_LORAWAN_SESSION_RX_TIMING_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_RX_TIMING_SETUP].lenDn,
+ 306 RADIOLIB_LORAWAN_SESSION_ADR_PARAM_SETUP = RADIOLIB_LORAWAN_SESSION_TX_PARAM_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_TX_PARAM_SETUP].lenDn,
+ 307 RADIOLIB_LORAWAN_SESSION_REJOIN_PARAM_SETUP = RADIOLIB_LORAWAN_SESSION_ADR_PARAM_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_ADR_PARAM_SETUP].lenDn,
+ 308 RADIOLIB_LORAWAN_SESSION_BEACON_FREQ = RADIOLIB_LORAWAN_SESSION_REJOIN_PARAM_SETUP + MacTable[RADIOLIB_LORAWAN_MAC_REJOIN_PARAM_SETUP].lenDn,
+ 309 RADIOLIB_LORAWAN_SESSION_PING_SLOT_CHANNEL = RADIOLIB_LORAWAN_SESSION_BEACON_FREQ + 3,
+ 310 RADIOLIB_LORAWAN_SESSION_PERIODICITY = RADIOLIB_LORAWAN_SESSION_PING_SLOT_CHANNEL + 4,
+ 311 RADIOLIB_LORAWAN_SESSION_LAST_TIME = RADIOLIB_LORAWAN_SESSION_PERIODICITY + 1,
+ 312 RADIOLIB_LORAWAN_SESSION_UL_CHANNELS = RADIOLIB_LORAWAN_SESSION_LAST_TIME + 4,
+ 313 RADIOLIB_LORAWAN_SESSION_DL_CHANNELS = RADIOLIB_LORAWAN_SESSION_UL_CHANNELS + 16*MacTable[RADIOLIB_LORAWAN_MAC_NEW_CHANNEL].lenDn,
+ 314 RADIOLIB_LORAWAN_SESSION_MAC_QUEUE_UL = RADIOLIB_LORAWAN_SESSION_DL_CHANNELS + 16*MacTable[RADIOLIB_LORAWAN_MAC_DL_CHANNEL].lenDn,
+
+ 316 RADIOLIB_LORAWAN_SESSION_ADR_FCNT = RADIOLIB_LORAWAN_SESSION_N_FCNT_DOWN +
sizeof(uint32_t),
+ 317 RADIOLIB_LORAWAN_SESSION_LINK_ADR = RADIOLIB_LORAWAN_SESSION_ADR_FCNT +
sizeof(uint32_t),
+ 318 RADIOLIB_LORAWAN_SESSION_FCNT_UP = RADIOLIB_LORAWAN_SESSION_LINK_ADR + MacTable[RADIOLIB_LORAWAN_MAC_LINK_ADR].
lenDn,
+ 319 RADIOLIB_LORAWAN_SESSION_SIGNATURE = RADIOLIB_LORAWAN_SESSION_FCNT_UP +
sizeof(uint32_t),
+ 320 RADIOLIB_LORAWAN_SESSION_BUF_SIZE = RADIOLIB_LORAWAN_SESSION_SIGNATURE +
sizeof(uint16_t)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 346 #define RADIOLIB_LORAWAN_CHANNEL_NONE { .enabled = false, .idx = RADIOLIB_LORAWAN_CHANNEL_INDEX_NONE, .freq = 0, .drMin = 0, .drMax = 0 }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 374 #define RADIOLIB_LORAWAN_CHANNEL_SPAN_NONE { .numChannels = 0, .freqStart = 0, .freqStep = 0, .drMin = 0, .drMax = 0, .joinRequestDataRate = RADIOLIB_LORAWAN_DATA_RATE_UNUSED }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 427 uint8_t
dataRates[RADIOLIB_LORAWAN_CHANNEL_NUM_DATARATES];
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 459 #define RADIOLIB_LORAWAN_NUM_SUPPORTED_BANDS (BandLast - BandEU868)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 563 void beginOTAA(uint64_t joinEUI, uint64_t devEUI, uint8_t* nwkKey, uint8_t* appKey);
+
+
+
+ 582 void beginABP(uint32_t addr, uint8_t* fNwkSIntKey, uint8_t* sNwkSIntKey, uint8_t* nwkSEncKey, uint8_t* appSKey);
+
+ 590 int16_t
activateABP(uint8_t initialDr = RADIOLIB_LORAWAN_DATA_RATE_UNUSED);
+
+
+
+
+
+
+
+ 612 #if defined(RADIOLIB_BUILD_ARDUINO)
+ 622 int16_t
uplink(String& str, uint8_t fPort,
bool isConfirmed =
false,
LoRaWANEvent_t* event = NULL);
+
+
+ 634 int16_t
uplink(
const char* str, uint8_t fPort,
bool isConfirmed =
false,
LoRaWANEvent_t* event = NULL);
+
+ 646 int16_t
uplink(uint8_t* data,
size_t len, uint8_t fPort,
bool isConfirmed =
false,
LoRaWANEvent_t* event = NULL);
+
+ 648 #if defined(RADIOLIB_BUILD_ARDUINO)
+
+
+
+
+
+
+
+ 677 #if defined(RADIOLIB_BUILD_ARDUINO)
+
+
+
+
+
+ 722 int16_t
sendReceive(uint8_t* dataUp,
size_t lenUp, uint8_t fPort, uint8_t* dataDown,
size_t* lenDown,
bool isConfirmed =
false,
LoRaWANEvent_t* eventUp = NULL,
LoRaWANEvent_t* eventDown = NULL);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 781 void setADR(
bool enable =
true);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 844 int16_t
getMacDeviceTimeAns(uint32_t* gpsEpoch, uint8_t* fraction,
bool returnUnix =
true);
+
+
+
+
+
+
+
+ 864 #if !RADIOLIB_GODMODE
+
+
+
+
-
- 871 uint8_t bufferSession[RADIOLIB_LORAWAN_SESSION_BUF_SIZE] = { 0 };
-
-
-
-
- 876 .commands = { { .cid = 0, .payload = { 0 }, .len = 0, .repeat = 0, } },
-
-
-
-
- 881 .commands = { { .cid = 0, .payload = { 0 }, .len = 0, .repeat = 0, } },
-
-
- 884 uint16_t lwMode = RADIOLIB_LORAWAN_MODE_NONE;
- 885 uint8_t lwClass = RADIOLIB_LORAWAN_CLASS_A;
- 886 bool isActive =
false;
-
- 888 uint64_t joinEUI = 0;
-
- 890 uint8_t nwkKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
- 891 uint8_t appKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
-
-
-
- 895 uint32_t devAddr = 0;
- 896 uint8_t appSKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
- 897 uint8_t fNwkSIntKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
- 898 uint8_t sNwkSIntKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
- 899 uint8_t nwkSEncKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
- 900 uint8_t jSIntKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
-
- 902 uint16_t keyCheckSum = 0;
-
-
- 905 uint16_t devNonce = 0;
- 906 uint32_t joinNonce = 0;
-
-
- 909 uint32_t homeNetId = 0;
- 910 uint8_t adrLimitExp = RADIOLIB_LORAWAN_ADR_ACK_LIMIT_EXP;
- 911 uint8_t adrDelayExp = RADIOLIB_LORAWAN_ADR_ACK_DELAY_EXP;
-
- 913 uint8_t txPowerSteps = 0;
- 914 uint8_t txPowerMax = 0;
-
- 916 uint32_t aFCntDown = 0;
- 917 uint32_t nFCntDown = 0;
- 918 uint32_t confFCntUp = RADIOLIB_LORAWAN_FCNT_NONE;
- 919 uint32_t confFCntDown = RADIOLIB_LORAWAN_FCNT_NONE;
- 920 uint32_t adrFCnt = 0;
-
-
-
-
-
- 926 bool adrEnabled =
true;
-
-
- 929 bool dutyCycleEnabled =
false;
- 930 uint32_t dutyCycle = 0;
+ 870 static int16_t checkBufferCommon(uint8_t *buffer, uint16_t size);
+
+ 872 void activateCommon(uint8_t initialDr);
+
+
+ 875 uint8_t bufferNonces[RADIOLIB_LORAWAN_NONCES_BUF_SIZE] = { 0 };
+
+
+ 878 uint8_t bufferSession[RADIOLIB_LORAWAN_SESSION_BUF_SIZE] = { 0 };
+
+
+
+
+ 883 .commands = { { .cid = 0, .payload = { 0 }, .len = 0, .repeat = 0, } },
+
+
+
+
+ 888 .commands = { { .cid = 0, .payload = { 0 }, .len = 0, .repeat = 0, } },
+
+
+ 891 uint16_t lwMode = RADIOLIB_LORAWAN_MODE_NONE;
+ 892 uint8_t lwClass = RADIOLIB_LORAWAN_CLASS_A;
+ 893 bool isActive =
false;
+
+ 895 uint64_t joinEUI = 0;
+
+ 897 uint8_t nwkKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
+ 898 uint8_t appKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
+
+
+
+ 902 uint32_t devAddr = 0;
+ 903 uint8_t appSKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
+ 904 uint8_t fNwkSIntKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
+ 905 uint8_t sNwkSIntKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
+ 906 uint8_t nwkSEncKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
+ 907 uint8_t jSIntKey[RADIOLIB_AES128_KEY_SIZE] = { 0 };
+
+ 909 uint16_t keyCheckSum = 0;
+
+
+ 912 uint16_t devNonce = 0;
+ 913 uint32_t joinNonce = 0;
+
+
+ 916 uint32_t homeNetId = 0;
+ 917 uint8_t adrLimitExp = RADIOLIB_LORAWAN_ADR_ACK_LIMIT_EXP;
+ 918 uint8_t adrDelayExp = RADIOLIB_LORAWAN_ADR_ACK_DELAY_EXP;
+
+ 920 uint8_t txPowerSteps = 0;
+ 921 uint8_t txPowerMax = 0;
+
+ 923 uint32_t aFCntDown = 0;
+ 924 uint32_t nFCntDown = 0;
+ 925 uint32_t confFCntUp = RADIOLIB_LORAWAN_FCNT_NONE;
+ 926 uint32_t confFCntDown = RADIOLIB_LORAWAN_FCNT_NONE;
+ 927 uint32_t adrFCnt = 0;
+
+
+
-
- 933 bool dwellTimeEnabledUp =
false;
- 934 uint16_t dwellTimeUp = 0;
- 935 bool dwellTimeEnabledDn =
false;
- 936 uint16_t dwellTimeDn = 0;
-
-
-
-
-
-
-
-
-
-
-
-
-
- 950 LoRaWANChannel_t availableChannels[2][RADIOLIB_LORAWAN_NUM_AVAILABLE_CHANNELS];
-
-
- 953 LoRaWANChannel_t currentChannels[2] = { RADIOLIB_LORAWAN_CHANNEL_NONE, RADIOLIB_LORAWAN_CHANNEL_NONE };
-
-
- 956 uint8_t dataRates[2] = { RADIOLIB_LORAWAN_DATA_RATE_UNUSED, RADIOLIB_LORAWAN_DATA_RATE_UNUSED };
-
-
-
-
-
- 962 uint8_t rx1DrOffset = 0;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 977 RadioLibTime_t rxDelays[2] = { RADIOLIB_LORAWAN_RECEIVE_DELAY_1_MS, RADIOLIB_LORAWAN_RECEIVE_DELAY_2_MS };
-
-
- 980 uint8_t battLevel = 0xFF;
-
-
- 983 bool isMACPayload =
false;
-
-
-
-
-
-
-
-
- 992 int16_t downlinkCommon();
-
-
- 995 uint32_t generateMIC(uint8_t* msg,
size_t len, uint8_t* key);
-
-
-
- 999 bool verifyMIC(uint8_t* msg,
size_t len, uint8_t* key);
+
+ 933 bool adrEnabled =
true;
+
+
+ 936 bool dutyCycleEnabled =
false;
+ 937 uint32_t dutyCycle = 0;
+
+
+ 940 bool dwellTimeEnabledUp =
false;
+ 941 uint16_t dwellTimeUp = 0;
+ 942 bool dwellTimeEnabledDn =
false;
+ 943 uint16_t dwellTimeDn = 0;
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 957 LoRaWANChannel_t availableChannels[2][RADIOLIB_LORAWAN_NUM_AVAILABLE_CHANNELS];
+
+
+ 960 LoRaWANChannel_t currentChannels[2] = { RADIOLIB_LORAWAN_CHANNEL_NONE, RADIOLIB_LORAWAN_CHANNEL_NONE };
+
+
+ 963 uint8_t dataRates[2] = { RADIOLIB_LORAWAN_DATA_RATE_UNUSED, RADIOLIB_LORAWAN_DATA_RATE_UNUSED };
+
+
+
+
+
+ 969 uint8_t rx1DrOffset = 0;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 984 RadioLibTime_t rxDelays[2] = { RADIOLIB_LORAWAN_RECEIVE_DELAY_1_MS, RADIOLIB_LORAWAN_RECEIVE_DELAY_2_MS };
+
+
+ 987 uint8_t battLevel = 0xFF;
+
+
+ 990 bool isMACPayload =
false;
+
+
+
+
+
+
+
+
+ 999 int16_t downlinkCommon();
-
-
- 1003 int16_t setPhyProperties(uint8_t dir);
-
-
-
-
- 1008 int16_t setupChannelsDyn(
bool joinRequest =
false);
-
-
-
- 1012 int16_t setupChannelsFix(uint8_t subBand);
-
-
- 1015 int16_t processCFList(uint8_t* cfList);
+
+ 1002 uint32_t generateMIC(uint8_t* msg,
size_t len, uint8_t* key);
+
+
+
+ 1006 bool verifyMIC(uint8_t* msg,
size_t len, uint8_t* key);
+
+
+
+ 1010 int16_t setPhyProperties(uint8_t dir);
+
+
+
+
+ 1015 int16_t setupChannelsDyn(
bool joinRequest =
false);
-
- 1018 int16_t selectChannels();
-
-
- 1021 int16_t findDataRate(uint8_t dr,
DataRate_t* dataRate);
-
-
- 1024 int16_t restoreChannels();
-
-
-
-
-
-
-
+
+
+ 1019 int16_t setupChannelsFix(uint8_t subBand);
+
+
+ 1022 int16_t processCFList(uint8_t* cfList);
+
+
+ 1025 int16_t selectChannels();
+
+
+ 1028 int16_t findDataRate(uint8_t dr,
DataRate_t* dataRate);
+
+
+ 1031 int16_t restoreChannels();
-
-
+
+
-
- 1037 bool applyChannelMaskDyn(uint8_t chMaskCntl, uint16_t chMask);
-
-
- 1040 bool applyChannelMaskFix(uint8_t chMaskCntl, uint16_t chMask);
-
-
- 1043 uint8_t getMacPayloadLength(uint8_t cid);
-
- 1051 void setCSMA(uint8_t backoffMax, uint8_t difsSlots,
bool enableCSMA =
false);
-
-
-
-
-
-
-
-
- 1060 void processAES(uint8_t* in,
size_t len, uint8_t* key, uint8_t* out, uint32_t fCnt, uint8_t dir, uint8_t ctrId,
bool counter);
-
-
- 1063 static uint16_t checkSum16(uint8_t *key, uint16_t keyLen);
-
-
- 1066 template<
typename T>
- 1067 static T ntoh(uint8_t* buff,
size_t size = 0);
+
+
+
+
+
+
+
+
+ 1044 bool applyChannelMaskDyn(uint8_t chMaskCntl, uint16_t chMask);
+
+
+ 1047 bool applyChannelMaskFix(uint8_t chMaskCntl, uint16_t chMask);
+
+
+ 1050 uint8_t getMacPayloadLength(uint8_t cid);
+
+ 1058 void setCSMA(uint8_t backoffMax, uint8_t difsSlots,
bool enableCSMA =
false);
+
+
+
+
+
+
+
+
+ 1067 void processAES(uint8_t* in,
size_t len, uint8_t* key, uint8_t* out, uint32_t fCnt, uint8_t dir, uint8_t ctrId,
bool counter);
-
- 1070 template<
typename T>
- 1071 static void hton(uint8_t* buff, T val,
size_t size = 0);
-
-
-
-LoRaWAN-compatible node (class A device).
Definition: LoRaWAN.h:513
+
+ 1070 static uint16_t checkSum16(uint8_t *key, uint16_t keyLen);
+
+
+ 1073 template<
typename T>
+ 1074 static T ntoh(uint8_t* buff,
size_t size = 0);
+
+
+ 1077 template<
typename T>
+ 1078 static void hton(uint8_t* buff, T val,
size_t size = 0);
+
+
+
+LoRaWAN-compatible node (class A device).
Definition: LoRaWAN.h:514
void clearSession()
Clear an active session, so that the device will have to rejoin the network.
Definition: LoRaWAN.cpp:56
int16_t setBufferNonces(uint8_t *persistentBuffer)
Fill the internal buffer that holds the LW base parameters with a supplied buffer.
Definition: LoRaWAN.cpp:72
-int16_t setDatarate(uint8_t drUp)
Set uplink datarate. This should not be used when ADR is enabled.
Definition: LoRaWAN.cpp:1951
+int16_t setDatarate(uint8_t drUp)
Set uplink datarate. This should not be used when ADR is enabled.
Definition: LoRaWAN.cpp:1974
int16_t uplink(const char *str, uint8_t fPort, bool isConfirmed=false, LoRaWANEvent_t *event=NULL)
Send a message to the server.
Definition: LoRaWAN.cpp:855
void beginOTAA(uint64_t joinEUI, uint64_t devEUI, uint8_t *nwkKey, uint8_t *appKey)
Set the device credentials and activation configuration.
Definition: LoRaWAN.cpp:444
-uint8_t maxPayloadDwellTime()
Returns the maximum payload given the currently present dwell time limits. WARNING: the addition of M...
Definition: LoRaWAN.cpp:2034
-void setDutyCycle(bool enable=true, RadioLibTime_t msPerHour=0)
Toggle adherence to dutyCycle limits to on or off.
Definition: LoRaWAN.cpp:1992
-RadioLibTime_t timeUntilUplink()
Returns time in milliseconds until next uplink is available under dutyCycle limits.
Definition: LoRaWAN.cpp:2016
-void setDeviceStatus(uint8_t battLevel)
Set device status.
Definition: LoRaWAN.cpp:1645
-RadioLibTime_t dutyCycleInterval(RadioLibTime_t msPerHour, RadioLibTime_t airtime)
Calculate the minimum interval to adhere to a certain dutyCycle. This interval is based on the ToA of...
Definition: LoRaWAN.cpp:2006
-void setDwellTime(bool enable, RadioLibTime_t msPerUplink=0)
Toggle adherence to dwellTime limits to on or off.
Definition: LoRaWAN.cpp:2025
-uint32_t getAFCntDown()
Returns the last application downlink's frame counter; also 0 if no application downlink occured yet.
Definition: LoRaWAN.cpp:1661
-RadioLibTime_t getLastToA()
Get the Time-on-air of the last uplink message.
Definition: LoRaWAN.cpp:2869
+uint8_t maxPayloadDwellTime()
Returns the maximum payload given the currently present dwell time limits. WARNING: the addition of M...
Definition: LoRaWAN.cpp:2057
+void setDutyCycle(bool enable=true, RadioLibTime_t msPerHour=0)
Toggle adherence to dutyCycle limits to on or off.
Definition: LoRaWAN.cpp:2015
+RadioLibTime_t timeUntilUplink()
Returns time in milliseconds until next uplink is available under dutyCycle limits.
Definition: LoRaWAN.cpp:2039
+void setDeviceStatus(uint8_t battLevel)
Set device status.
Definition: LoRaWAN.cpp:1668
+RadioLibTime_t dutyCycleInterval(RadioLibTime_t msPerHour, RadioLibTime_t airtime)
Calculate the minimum interval to adhere to a certain dutyCycle. This interval is based on the ToA of...
Definition: LoRaWAN.cpp:2029
+void setDwellTime(bool enable, RadioLibTime_t msPerUplink=0)
Toggle adherence to dwellTime limits to on or off.
Definition: LoRaWAN.cpp:2048
+uint32_t getAFCntDown()
Returns the last application downlink's frame counter; also 0 if no application downlink occured yet.
Definition: LoRaWAN.cpp:1684
+RadioLibTime_t getLastToA()
Get the Time-on-air of the last uplink message.
Definition: LoRaWAN.cpp:2892
int16_t activateABP(uint8_t initialDr=RADIOLIB_LORAWAN_DATA_RATE_UNUSED)
Join network by restoring ABP session or performing over-the-air activation. In this procedure,...
Definition: LoRaWAN.cpp:779
+bool TS009
TS009 Protocol Specification Verification switch (allows FPort 224 and cuts off uplink payload instea...
Definition: LoRaWAN.h:862
uint8_t * getBufferNonces()
Returns the pointer to the internal buffer that holds the LW base parameters.
Definition: LoRaWAN.cpp:64
-int16_t sendReceive(const char *strUp, uint8_t fPort, uint8_t *dataDown, size_t *lenDown, bool isConfirmed=false, LoRaWANEvent_t *eventUp=NULL, LoRaWANEvent_t *eventDown=NULL)
Send a message to the server and wait for a downlink during Rx1 and/or Rx2 window.
Definition: LoRaWAN.cpp:1625
+int16_t sendReceive(const char *strUp, uint8_t fPort, uint8_t *dataDown, size_t *lenDown, bool isConfirmed=false, LoRaWANEvent_t *eventUp=NULL, LoRaWANEvent_t *eventDown=NULL)
Send a message to the server and wait for a downlink during Rx1 and/or Rx2 window.
Definition: LoRaWAN.cpp:1648
uint8_t * getBufferSession()
Returns the pointer to the internal buffer that holds the LW session parameters.
Definition: LoRaWAN.cpp:108
void beginABP(uint32_t addr, uint8_t *fNwkSIntKey, uint8_t *sNwkSIntKey, uint8_t *nwkSEncKey, uint8_t *appSKey)
Set the device credentials and activation configuration.
Definition: LoRaWAN.cpp:752
bool isActivated()
Whether there is an ongoing session active.
Definition: LoRaWAN.cpp:845
-int16_t setTxPower(int8_t txPower)
Configure TX power of the radio module.
Definition: LoRaWAN.cpp:2055
-int16_t getMacDeviceTimeAns(uint32_t *gpsEpoch, uint8_t *fraction, bool returnUnix=true)
Returns the network time after requesting a DeviceTime MAC command. Returns 'true' if a network respo...
Definition: LoRaWAN.cpp:2848
-uint32_t getNFCntDown()
Returns the last network downlink's frame counter; also 0 if no network downlink occured yet.
Definition: LoRaWAN.cpp:1657
-uint64_t getDevAddr()
Returns the DevAddr of the device, regardless of OTAA or ABP mode.
Definition: LoRaWAN.cpp:2865
-int16_t downlink(uint8_t *data, size_t *len, LoRaWANEvent_t *event=NULL)
Wait for downlink from the server in either RX1 or RX2 window.
Definition: LoRaWAN.cpp:1292
+int16_t setTxPower(int8_t txPower)
Configure TX power of the radio module.
Definition: LoRaWAN.cpp:2078
+int16_t getMacDeviceTimeAns(uint32_t *gpsEpoch, uint8_t *fraction, bool returnUnix=true)
Returns the network time after requesting a DeviceTime MAC command. Returns 'true' if a network respo...
Definition: LoRaWAN.cpp:2871
+uint32_t getNFCntDown()
Returns the last network downlink's frame counter; also 0 if no network downlink occured yet.
Definition: LoRaWAN.cpp:1680
+uint64_t getDevAddr()
Returns the DevAddr of the device, regardless of OTAA or ABP mode.
Definition: LoRaWAN.cpp:2888
+int16_t downlink(uint8_t *data, size_t *len, LoRaWANEvent_t *event=NULL)
Wait for downlink from the server in either RX1 or RX2 window.
Definition: LoRaWAN.cpp:1299
int16_t setBufferSession(uint8_t *persistentBuffer)
Fill the internal buffer that holds the LW session parameters with a supplied buffer.
Definition: LoRaWAN.cpp:127
LoRaWANNode(PhysicalLayer *phy, const LoRaWANBand_t *band, uint8_t subBand=0)
Default constructor.
Definition: LoRaWAN.cpp:30
int16_t activateOTAA(uint8_t initialDr=RADIOLIB_LORAWAN_DATA_RATE_UNUSED, LoRaWANJoinEvent_t *joinEvent=NULL)
Join network by restoring OTAA session or performing over-the-air activation. By this procedure,...
Definition: LoRaWAN.cpp:461
-uint32_t getFCntUp()
Returns the last uplink's frame counter; also 0 if no uplink occured yet.
Definition: LoRaWAN.cpp:1650
-int16_t setRx2Dr(uint8_t dr)
Configure the Rx2 datarate for ABP mode. This should not be needed for LoRaWAN 1.1 as it is configure...
Definition: LoRaWAN.cpp:2119
-int16_t sendMacCommandReq(uint8_t cid)
Add a MAC command to the uplink queue. Only LinkCheck and DeviceTime are available to the user....
Definition: LoRaWAN.cpp:2146
-int16_t getMacLinkCheckAns(uint8_t *margin, uint8_t *gwCnt)
Returns the quality of connectivity after requesting a LinkCheck MAC command. Returns 'true' if a net...
Definition: LoRaWAN.cpp:2837
-void setADR(bool enable=true)
Toggle ADR to on or off.
Definition: LoRaWAN.cpp:1988
-void resetFCntDown()
Reset the downlink frame counters (application and network) This is unsafe and can possibly allow rep...
Definition: LoRaWAN.cpp:1665
+uint32_t getFCntUp()
Returns the last uplink's frame counter; also 0 if no uplink occured yet.
Definition: LoRaWAN.cpp:1673
+int16_t setRx2Dr(uint8_t dr)
Configure the Rx2 datarate for ABP mode. This should not be needed for LoRaWAN 1.1 as it is configure...
Definition: LoRaWAN.cpp:2142
+int16_t sendMacCommandReq(uint8_t cid)
Add a MAC command to the uplink queue. Only LinkCheck and DeviceTime are available to the user....
Definition: LoRaWAN.cpp:2169
+int16_t getMacLinkCheckAns(uint8_t *margin, uint8_t *gwCnt)
Returns the quality of connectivity after requesting a LinkCheck MAC command. Returns 'true' if a net...
Definition: LoRaWAN.cpp:2860
+void setADR(bool enable=true)
Toggle ADR to on or off.
Definition: LoRaWAN.cpp:2011
+void resetFCntDown()
Reset the downlink frame counters (application and network) This is unsafe and can possibly allow rep...
Definition: LoRaWAN.cpp:1688
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:54
unsigned long RadioLibTime_t
Type used for durations in RadioLib.
Definition: TypeDef.h:611
-Structure to save information about LoRaWAN band.
Definition: LoRaWAN.h:379
-int8_t powerMax
Maximum allowed output power in this band in dBm.
Definition: LoRaWAN.h:390
-RadioLibTime_t dutyCycle
Number of milliseconds per hour of allowed Time-on-Air.
Definition: LoRaWAN.h:396
-uint8_t dataRates[RADIOLIB_LORAWAN_CHANNEL_NUM_DATARATES]
The corresponding datarates, bandwidths and coding rates for DR index.
Definition: LoRaWAN.h:426
-RadioLibTime_t dwellTimeUp
Maximum dwell time per uplink message in milliseconds.
Definition: LoRaWAN.h:399
-uint8_t payloadLenMax[RADIOLIB_LORAWAN_CHANNEL_NUM_DATARATES]
Array of allowed maximum payload lengths for each data rate.
Definition: LoRaWAN.h:387
-LoRaWANChannel_t txFreqs[3]
A set of default uplink (TX) channels for frequency-type bands.
Definition: LoRaWAN.h:405
-LoRaWANChannel_t txJoinReq[3]
A set of possible extra channels for the Join-Request message for frequency-type bands.
Definition: LoRaWAN.h:408
-int8_t powerNumSteps
Number of power steps in this band.
Definition: LoRaWAN.h:393
-LoRaWANChannelSpan_t txSpans[2]
Default uplink (TX) channel spans for mask-type bands, including Join-Request parameters.
Definition: LoRaWAN.h:414
-uint8_t rx1DataRateBase
The base downlink data rate. Used to calculate data rate changes for adaptive data rate.
Definition: LoRaWAN.h:420
-uint8_t bandNum
Identier for this band.
Definition: LoRaWAN.h:381
-uint8_t bandType
Whether the channels are fixed per specification, or dynamically allocated through the network (plus ...
Definition: LoRaWAN.h:384
-LoRaWANChannel_t rx2
Backup channel for downlink (RX2) window.
Definition: LoRaWAN.h:423
-uint8_t numTxSpans
The number of TX channel spans for mask-type bands.
Definition: LoRaWAN.h:411
-RadioLibTime_t dwellTimeDn
Maximum dwell time per downlink message in milliseconds.
Definition: LoRaWAN.h:402
-LoRaWANChannelSpan_t rx1Span
Default downlink (RX1) channel span for mask-type bands.
Definition: LoRaWAN.h:417
+Structure to save information about LoRaWAN band.
Definition: LoRaWAN.h:380
+int8_t powerMax
Maximum allowed output power in this band in dBm.
Definition: LoRaWAN.h:391
+RadioLibTime_t dutyCycle
Number of milliseconds per hour of allowed Time-on-Air.
Definition: LoRaWAN.h:397
+uint8_t dataRates[RADIOLIB_LORAWAN_CHANNEL_NUM_DATARATES]
The corresponding datarates, bandwidths and coding rates for DR index.
Definition: LoRaWAN.h:427
+RadioLibTime_t dwellTimeUp
Maximum dwell time per uplink message in milliseconds.
Definition: LoRaWAN.h:400
+uint8_t payloadLenMax[RADIOLIB_LORAWAN_CHANNEL_NUM_DATARATES]
Array of allowed maximum payload lengths for each data rate.
Definition: LoRaWAN.h:388
+LoRaWANChannel_t txFreqs[3]
A set of default uplink (TX) channels for frequency-type bands.
Definition: LoRaWAN.h:406
+LoRaWANChannel_t txJoinReq[3]
A set of possible extra channels for the Join-Request message for frequency-type bands.
Definition: LoRaWAN.h:409
+int8_t powerNumSteps
Number of power steps in this band.
Definition: LoRaWAN.h:394
+LoRaWANChannelSpan_t txSpans[2]
Default uplink (TX) channel spans for mask-type bands, including Join-Request parameters.
Definition: LoRaWAN.h:415
+uint8_t rx1DataRateBase
The base downlink data rate. Used to calculate data rate changes for adaptive data rate.
Definition: LoRaWAN.h:421
+uint8_t bandNum
Identier for this band.
Definition: LoRaWAN.h:382
+uint8_t bandType
Whether the channels are fixed per specification, or dynamically allocated through the network (plus ...
Definition: LoRaWAN.h:385
+LoRaWANChannel_t rx2
Backup channel for downlink (RX2) window.
Definition: LoRaWAN.h:424
+uint8_t numTxSpans
The number of TX channel spans for mask-type bands.
Definition: LoRaWAN.h:412
+RadioLibTime_t dwellTimeDn
Maximum dwell time per downlink message in milliseconds.
Definition: LoRaWAN.h:403
+LoRaWANChannelSpan_t rx1Span
Default downlink (RX1) channel span for mask-type bands.
Definition: LoRaWAN.h:418
IDs of all currently supported bands.
-Structure to save information about LoRaWAN channels. To save space, adjacent channels are saved in "...
Definition: LoRaWAN.h:327
-float freq
The channel frequency.
Definition: LoRaWAN.h:335
-uint8_t idx
The channel number, as specified by defaults or the network.
Definition: LoRaWAN.h:332
-uint8_t drMin
Minimum allowed datarate for this channel.
Definition: LoRaWAN.h:338
-bool enabled
Whether this channel is enabled (can be used) or is disabled.
Definition: LoRaWAN.h:329
-uint8_t drMax
Maximum allowed datarate for this channel (inclusive)
Definition: LoRaWAN.h:341
-Structure to save information about LoRaWAN channels. To save space, adjacent channels are saved in "...
Definition: LoRaWAN.h:352
-uint8_t joinRequestDataRate
Allowed data rates for a join request message.
Definition: LoRaWAN.h:369
-float freqStart
Center frequency of the first channel in span.
Definition: LoRaWAN.h:357
-uint8_t numChannels
Total number of channels in the span.
Definition: LoRaWAN.h:354
-uint8_t drMax
Maximum allowed datarate for all channels in this span (inclusive)
Definition: LoRaWAN.h:366
-float freqStep
Frequency step between adjacent channels.
Definition: LoRaWAN.h:360
-uint8_t drMin
Minimum allowed datarate for all channels in this span.
Definition: LoRaWAN.h:363
-Structure to save extra information about uplink/downlink event.
Definition: LoRaWAN.h:482
-float freq
Frequency in MHz.
Definition: LoRaWAN.h:497
-bool confirmed
Whether the event is confirmed or not (e.g., confirmed uplink sent by user application)
Definition: LoRaWAN.h:487
-uint8_t fPort
Port number.
Definition: LoRaWAN.h:506
-int16_t power
Transmit power in dBm for uplink, or RSSI for downlink.
Definition: LoRaWAN.h:500
-bool confirming
Whether the event is confirming a previous request (e.g., server downlink reply to confirmed uplink s...
Definition: LoRaWAN.h:491
-uint8_t datarate
Datarate.
Definition: LoRaWAN.h:494
-uint8_t dir
Event direction, one of RADIOLIB_LORAWAN_CHANNEL_DIR_*.
Definition: LoRaWAN.h:484
-uint32_t fCnt
The appropriate frame counter - for different events, different frame counters will be reported!
Definition: LoRaWAN.h:503
-Structure to save extra information about activation event.
Definition: LoRaWAN.h:467
-bool newSession
Whether a new session was started.
Definition: LoRaWAN.h:469
-uint32_t joinNonce
The received Join-Request JoinNonce value.
Definition: LoRaWAN.h:475
-uint16_t devNonce
The transmitted Join-Request DevNonce value.
Definition: LoRaWAN.h:472
-Structure to save information about MAC command.
Definition: LoRaWAN.h:241
-uint8_t payload[RADIOLIB_LORAWAN_MAX_MAC_COMMAND_LEN_DOWN]
Payload buffer (5 bytes is the longest possible)
Definition: LoRaWAN.h:246
-uint8_t len
Length of the payload.
Definition: LoRaWAN.h:249
-uint8_t cid
The command ID.
Definition: LoRaWAN.h:243
-uint8_t repeat
Repetition counter (the command will be uplinked repeat + 1 times)
Definition: LoRaWAN.h:252
-Structure to hold information about a queue of MAC commands.
Definition: LoRaWAN.h:259
-LoRaWANMacCommand_t commands[RADIOLIB_LORAWAN_MAC_COMMAND_QUEUE_SIZE]
MAC command buffer.
Definition: LoRaWAN.h:267
-uint8_t numCommands
Number of commands in the queue.
Definition: LoRaWAN.h:261
-uint8_t len
Total length of the queue.
Definition: LoRaWAN.h:264
-MAC command specification structure.
Definition: LoRaWAN.h:203
-const uint8_t cid
Command ID.
Definition: LoRaWAN.h:205
-const uint8_t lenDn
Uplink message length.
Definition: LoRaWAN.h:208
-const uint8_t lenUp
Downlink message length.
Definition: LoRaWAN.h:211
-const bool user
Whether this MAC command can be issued by the user or not.
Definition: LoRaWAN.h:214
+Structure to save information about LoRaWAN channels. To save space, adjacent channels are saved in "...
Definition: LoRaWAN.h:328
+float freq
The channel frequency.
Definition: LoRaWAN.h:336
+uint8_t idx
The channel number, as specified by defaults or the network.
Definition: LoRaWAN.h:333
+uint8_t drMin
Minimum allowed datarate for this channel.
Definition: LoRaWAN.h:339
+bool enabled
Whether this channel is enabled (can be used) or is disabled.
Definition: LoRaWAN.h:330
+uint8_t drMax
Maximum allowed datarate for this channel (inclusive)
Definition: LoRaWAN.h:342
+Structure to save information about LoRaWAN channels. To save space, adjacent channels are saved in "...
Definition: LoRaWAN.h:353
+uint8_t joinRequestDataRate
Allowed data rates for a join request message.
Definition: LoRaWAN.h:370
+float freqStart
Center frequency of the first channel in span.
Definition: LoRaWAN.h:358
+uint8_t numChannels
Total number of channels in the span.
Definition: LoRaWAN.h:355
+uint8_t drMax
Maximum allowed datarate for all channels in this span (inclusive)
Definition: LoRaWAN.h:367
+float freqStep
Frequency step between adjacent channels.
Definition: LoRaWAN.h:361
+uint8_t drMin
Minimum allowed datarate for all channels in this span.
Definition: LoRaWAN.h:364
+Structure to save extra information about uplink/downlink event.
Definition: LoRaWAN.h:483
+float freq
Frequency in MHz.
Definition: LoRaWAN.h:498
+bool confirmed
Whether the event is confirmed or not (e.g., confirmed uplink sent by user application)
Definition: LoRaWAN.h:488
+uint8_t fPort
Port number.
Definition: LoRaWAN.h:507
+int16_t power
Transmit power in dBm for uplink, or RSSI for downlink.
Definition: LoRaWAN.h:501
+bool confirming
Whether the event is confirming a previous request (e.g., server downlink reply to confirmed uplink s...
Definition: LoRaWAN.h:492
+uint8_t datarate
Datarate.
Definition: LoRaWAN.h:495
+uint8_t dir
Event direction, one of RADIOLIB_LORAWAN_CHANNEL_DIR_*.
Definition: LoRaWAN.h:485
+uint32_t fCnt
The appropriate frame counter - for different events, different frame counters will be reported!
Definition: LoRaWAN.h:504
+Structure to save extra information about activation event.
Definition: LoRaWAN.h:468
+bool newSession
Whether a new session was started.
Definition: LoRaWAN.h:470
+uint32_t joinNonce
The received Join-Request JoinNonce value.
Definition: LoRaWAN.h:476
+uint16_t devNonce
The transmitted Join-Request DevNonce value.
Definition: LoRaWAN.h:473
+Structure to save information about MAC command.
Definition: LoRaWAN.h:242
+uint8_t payload[RADIOLIB_LORAWAN_MAX_MAC_COMMAND_LEN_DOWN]
Payload buffer (5 bytes is the longest possible)
Definition: LoRaWAN.h:247
+uint8_t len
Length of the payload.
Definition: LoRaWAN.h:250
+uint8_t cid
The command ID.
Definition: LoRaWAN.h:244
+uint8_t repeat
Repetition counter (the command will be uplinked repeat + 1 times)
Definition: LoRaWAN.h:253
+Structure to hold information about a queue of MAC commands.
Definition: LoRaWAN.h:260
+LoRaWANMacCommand_t commands[RADIOLIB_LORAWAN_MAC_COMMAND_QUEUE_SIZE]
MAC command buffer.
Definition: LoRaWAN.h:268
+uint8_t numCommands
Number of commands in the queue.
Definition: LoRaWAN.h:262
+uint8_t len
Total length of the queue.
Definition: LoRaWAN.h:265
+MAC command specification structure.
Definition: LoRaWAN.h:204
+const uint8_t cid
Command ID.
Definition: LoRaWAN.h:206
+const uint8_t lenDn
Uplink message length.
Definition: LoRaWAN.h:209
+const uint8_t lenUp
Downlink message length.
Definition: LoRaWAN.h:212
+const bool user
Whether this MAC command can be issued by the user or not.
Definition: LoRaWAN.h:215
Common data rate structure.
Definition: PhysicalLayer.h:38
diff --git a/_physical_layer_8h_source.html b/_physical_layer_8h_source.html
index fbf2ff95..f9aa3c5c 100644
--- a/_physical_layer_8h_source.html
+++ b/_physical_layer_8h_source.html
@@ -306,7 +306,7 @@ $(document).ready(function(){initNavTree('_physical_layer_8h_source.html',''); i
Client for Bell modem communication. The public interface is the same as Arduino Serial.
Definition: BellModem.h:57
Client for FSK-4 communication. The public interface is the same as Arduino Serial.
Definition: FSK4.h:15
Client for Hellschreiber transmissions.
Definition: Hellschreiber.h:90
-LoRaWAN-compatible node (class A device).
Definition: LoRaWAN.h:513
+LoRaWAN-compatible node (class A device).
Definition: LoRaWAN.h:514
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:65
Client for Morse Code communication. The public interface is the same as Arduino Serial.
Definition: Morse.h:93
diff --git a/class_lo_ra_w_a_n_node-members.html b/class_lo_ra_w_a_n_node-members.html
index 15c143f6..1497cfc9 100644
--- a/class_lo_ra_w_a_n_node-members.html
+++ b/class_lo_ra_w_a_n_node-members.html
@@ -124,8 +124,9 @@ $(document).ready(function(){initNavTree('class_lo_ra_w_a_n_node.html',''); init
setRx2Dr(uint8_t dr) | LoRaWANNode | |
setTxPower(int8_t txPower) | LoRaWANNode | |
timeUntilUplink() | LoRaWANNode | |
- uplink(const char *str, uint8_t fPort, bool isConfirmed=false, LoRaWANEvent_t *event=NULL) | LoRaWANNode | |
- uplink(uint8_t *data, size_t len, uint8_t fPort, bool isConfirmed=false, LoRaWANEvent_t *event=NULL) | LoRaWANNode | |
+ TS009 | LoRaWANNode | |
+ uplink(const char *str, uint8_t fPort, bool isConfirmed=false, LoRaWANEvent_t *event=NULL) | LoRaWANNode | |
+ uplink(uint8_t *data, size_t len, uint8_t fPort, bool isConfirmed=false, LoRaWANEvent_t *event=NULL) | LoRaWANNode | |
diff --git a/class_lo_ra_w_a_n_node.html b/class_lo_ra_w_a_n_node.html
index 0eeb5760..16b4b114 100644
--- a/class_lo_ra_w_a_n_node.html
+++ b/class_lo_ra_w_a_n_node.html
@@ -84,6 +84,7 @@ $(document).ready(function(){initNavTree('class_lo_ra_w_a_n_node.html',''); init