Commit graph

172 commits

Author SHA1 Message Date
jgromes
a44a3daa1c [LoRaWAN] Removed unsupported initializer (CI_BUILD_ALL)[ 2024-01-27 19:05:44 +01:00
jgromes
070a0bf240 [LoRaWAN] Fixed missing bracket (CI_BUILD_ALL) 2024-01-27 19:00:16 +01:00
jgromes
7c50be3158 [LoRaWAN] Add explicit initialization 2024-01-27 18:57:11 +01:00
jgromes
1c8d2d5cfb [LoRaWAN] Typo fixes 2024-01-27 18:49:34 +01:00
jgromes
f35e3282f5 [LoRaWAN] Added ADR data rate check (#946) 2024-01-27 18:47:40 +01:00
StevenCellist
b98a5c6b29 [LoRaWAN] Fix Tx power calculation 2024-01-24 08:46:10 +01:00
StevenCellist
51ab103d07 [LoRaWAN] Keep Dev/JoinNonce on OTAA wipe with same credentials 2024-01-23 09:04:25 +01:00
StevenCellist
9008fb00a7 [LoRaWAN] Fix setDatarate function 2024-01-22 14:38:35 +01:00
StevenCellist
ee542c3b56 [LoRaWAN] Fix dynamic-band non-ADR session persistance 2024-01-22 13:34:00 +01:00
StevenCellist
aedf519ea4 [LoRaWAN] Fix rejoining during active session 2024-01-22 12:53:18 +01:00
StevenCellist
4ec10a4749 [LoRaWAN] Fix fixed band CFList processing 2024-01-22 12:32:15 +01:00
StevenCellist
6979bff863 [LoRaWAN] Improve channel masks for fixed bands 2024-01-22 11:40:57 +01:00
StevenCellist
598228fba0 [LoRaWAN] Fix session restore throwing unnecessary error 2024-01-20 11:03:54 +01:00
jgromes
efe303ca69 [LoRaWAN] Properly size fopts buffer 2024-01-14 19:05:52 +01:00
jgromes
8c5ae6d266 [LoRaWAN] Remove variable length array (CI_BUILD_ALL) 2024-01-14 18:25:51 +01:00
jgromes
132aae944f [LoRaWAN] Fix Module* not needed without persistent storage 2024-01-14 18:25:04 +01:00
jgromes
b2d1306e9e [LoRaWAN] Simplify variable length arrays (CI_BUILD_ALL) 2024-01-14 16:40:23 +01:00
jgromes
1681eeead3 [LoRaWAN] Fix MAC command initialization 2024-01-14 16:37:01 +01:00
jgromes
be52cd8edd [LoRaWAN] Fix possible integer overflow 2024-01-14 16:33:17 +01:00
jgromes
e392c7b91f [LoRaWAN] Fixed duty cycle enable ignored (CI_BUILD_ALL) 2024-01-14 16:31:24 +01:00
StevenCellist
0bba68f3ae [LoRaWAN] Rework channel logic 2024-01-13 00:05:25 +01:00
StevenCellist
d0979ce853 [LoRaWAN] Fix checksum calculation 2024-01-08 23:36:17 +01:00
StevenCellist
7c676f9393 [LoRaWAN] Implement requested changes 2024-01-08 22:33:34 +01:00
StevenCellist
2da09b5adc [LoRaWAN] Convert setDatarate() and setTxPower() to internal MAC; improve ADR 2024-01-06 15:03:55 +01:00
StevenCellist
f7730463bd [LoRaWAN] Fix ADR bug if not enabled 2024-01-05 13:41:00 +01:00
StevenCellist
853c1731ca [LoRaWAN] Fix warnings 2024-01-05 11:36:01 +01:00
StevenCellist
574555ca09 [LoRaWAN] Revamp internal processing, key checking, new MAC commands, implement DutyCycle & DwellTime 2024-01-05 11:06:24 +01:00
StevenCellist
797b7a4323 [LoRaWAN] Fix macros 2023-12-29 23:53:44 +01:00
StevenCellist
badcbbe809 [LoRaWAN] Fix ABP initialization, support MAC in payload 2023-12-29 16:38:55 +01:00
StevenCellist
fc8d80c9de
Merge branch 'jgromes:master' into master 2023-12-09 10:31:13 +01:00
StevenCellist
62276e070b [LoRaWAN] Expose downlink framecounters 2023-12-09 10:28:13 +01:00
Andrzej Perczak
79fbe9be8e LoRaWAN: Fix uninitialized variables 2023-12-08 18:34:21 +01:00
jgromes
670e70bd9f [LoRaWAN] Reworked macro configuration system 2023-11-27 21:17:26 +01:00
StevenCellist
b6f6718f1f
[LoRaWAN] Add datarate into event structure (#885)
* [LoRaWAN] Move TX power logic to function

* Update keywords

* [LoRaWAN] Add datarate into event structure
2023-11-27 16:43:56 +01:00
StevenCellist
4703f58b7f [LoRaWAN] Add datarate into event structure 2023-11-27 16:20:06 +01:00
StevenCellist
b2b73ab21d
[LoRaWAN] Move TX power logic to function (#884)
* [LoRaWAN] Move TX power logic to function

* Update keywords
2023-11-27 16:10:47 +01:00
StevenCellist
594d8cbba1 [LoRaWAN] Move TX power logic to function 2023-11-27 12:39:14 +01:00
jgromes
7e70785909 [LoRaWAN] Replaced VLAs with dynamically allocated memory 2023-11-18 16:46:12 +01:00
jgromes
713162fcc7 [LoRaWAN] Fixed unused variable warning on non-EEPROM boards 2023-11-18 16:38:03 +01:00
jgromes
e4bfb6429b [LoRaWAN] Fixed variable-sized arrays 2023-11-18 16:15:48 +01:00
jgromes
063b42752f [LoRaWAN] Fixed a few warnings 2023-11-18 15:03:48 +01:00
jgromes
75a9420552 [LoRaWAN] Added event struct to pass extra info (#821) 2023-11-12 17:53:05 +01:00
StevenCellist
82258105b7
[LoRaWAN] Rework bands, official Rx windows, support ADR, confirm frames, improve EEPROM handling, support clock drift (#867)
* [LoRaWAN] rework bands, add ADR, partial MAC support

Known problem: terribly bad at receiving downlinks
Mask-list bands (e.g. US915) untested, likely a few bugs

* [LoRaWAN] Change Rx windows from CAD to RxSingle

* [LoRaWAN] improve persistence, better Rx windows, wear leveling, confirmed frames

* [LoRaWAN] Module-independent (OTAA) Rx windows, fix confirming downlinks

* [LoRaWAN] Implement SX127x support, fix MAC uplinking, support clock drift

* [ArduinoHal] fix clock drift calculation

* [LoRaWAN] Improve band & ADR logic, allow setting ADR, DR, subband, update examples

* [LoRaWAN] Fix EU868 coding rate, improve example

* [LoRaWAN] fix unused channel index

* [LoRaWAN] fix merge issue (deleted line)

* [LoRaWAN] fix CSMA calling now incorrect function

* [LoRaWAN] fix include logic

* [LoRaWAN] fix warnings, remove duplicate function

* [LoRaWAN] improve examples, add unified sendReceive, bugfixes, add FSK

* [LoRaWAN] improve examples

* [LoRaWAN] add new keywords, add debug guard

* [SX127x] Updated startReceive interface to be more in line with SX126x

* [SX127x] Added public method to convert from bytes to symbols

* [LoRaWAN] Update start receive for SX127x

* Added note about LoRaWAN beta

* [SX127x] Fixed potential float overflow

---------

Co-authored-by: jgromes <jan.gromes@gmail.com>
2023-11-12 14:02:39 +01:00
Amalinda Gamage
aca1d78a97
added functionality for LoRa Alliance TR-13 Enabling CSMA for LoRaWAN (#859)
* added functionality for LoRa Alliance TR-13 Enabling CSMA for LoRaWAN

* Addressed feedback on CSMA implementation

* symbolNumValues[6] array no longer needed as we will utilize only two symbol CAD operations for all SFs.
2023-10-29 14:19:00 +01:00
StevenCellist
556f37f608
[LoRaWAN] Implement full session persistence & more v1.1 specification (#835)
* Implement session persistence & more 1.1 protocol

* [LoRaW] Improve session persistence, check frame counters & Nonces, multiple MAC commands

* [LoRaWAN] fix popping MAC command from queue

I just realized that the method popMacCommand did not correctly remove items from the queue - this should solve the problem

* [LoRaWAN] implement improvements from #835

* [LoRaWAN] String --> uint8_t[]

* [LoRaWAN] Fix typo
2023-10-23 17:50:16 +02:00
jgromes
f4f00537c6 [LoRaWAN] Fixed debug float print (#844) 2023-10-14 10:28:27 +02:00
jgromes
9279b8ab6d [LoRaWAN] Workaround unused variable warning for unimplemented fields 2023-09-15 18:36:08 +02:00
jgromes
253dfd8c50 [LoRaWAN] Temporarily cast unused variables until implemented 2023-09-15 18:31:31 +02:00
jgromes
7de4a4693e [HAL] Disable EEPROM on Arduino Due 2023-09-15 18:10:47 +02:00
jgromes
58eab402ad [LoRaWAN] Implemented most MAC commands 2023-09-14 20:58:46 +02:00