Commit graph

59 commits

Author SHA1 Message Date
StevenCellist
7577ae413f Fix for CN470 (formerly CN500) 2025-03-06 18:31:20 +01:00
Jan Gromeš
8c2c7b6cb5
[LoRaWAN] Add methods to allow user-provided sleep function (#1410)
* [LoRaWAN] Add methods to allow user-provided sleep function

* Add example sleep function

* [LoRaWAN] Switch all delay calls to sleepDelay

* [LoRaWAN] Remove unused variable

---------

Co-authored-by: StevenCellist <steven@boonstoppel.nu>
2025-02-06 07:00:03 +01:00
StevenCellist
283bfb43fe [LoRaWAN] Revert change in dwell time arguments 2025-01-04 16:04:05 +01:00
StevenCellist
5952106e93
[LoRaWAN] Update reference example 2025-01-04 15:05:36 +01:00
StevenCellist
5e063e7ad8 [LoRaWAN] Update revision naming / RP revision B 2024-11-26 22:27:18 +01:00
StevenCellist
f7f0b62e7f
[LoRaWAN] Major rework (#1204)
* [LoRaWAN] Major rework

* [LoRaWAN] Some CI fixes, add retransmission timeout

* [LoRaWAN] CI fixes

* [LoRaWAN] Add missing initializers

* [LoRaWAN] Return Rx window number, fix casing

* [LoRaWAN] Un-static functions to fix overriding

* [LoRaWAN] Integrate feedback, fix session save/restore

* [LoRaWAN] Add const

* [LoRaWAN] Do not accept invalid Rx2 datarate

* [LoRaWAN] Integrate feedback

* [LoRaWAN] Fix retransmission, ADR backoff, setDatarate; reject out-of-band frequencies

* Update keywords.txt

* [LoRaWAN] Fix initial datarate, misc cleanup

* [LoRaWAN] Update examples

* [LoRaWAN] Update README

* [LoRaWAN] Reject oversized downlinks

* [LoRaWAN] Remove VLAs

* [LoRaWAN] CI fixes

* [LoRaWAN] More CI

* [LoRaWAN] Fix getMaxPayloadLen

* [LoRaWAN] Rename some status codes

* [CI] Skip LoRaWAN on XMega48

* [CI] Skip FW update for LR11x0

---------

Co-authored-by: jgromes <jan.gromes@gmail.com>
2024-09-10 21:11:16 +02:00
jgromes
d31d9968af [LoRaWAN] Remove pin maps from example config file (#1106) 2024-06-19 21:08:11 +02:00
StevenCellist
68d0e393b7
[LoRaWAN] Remove forbidden CN780 2024-06-07 10:09:59 +02:00
IoTThinks.com
38abf92aaf
[LoRaWAN] Added frequency plans AS923_2, AS923_3 and AS923_4 for Asian countries (#1116)
* Added AS923_2, AS923_3 and AS923_4
These plans are used by Asian countries such as Vietnam, Indonesia, Philippines...
2024-06-07 10:04:38 +02:00
jgromes
954477b0c0 [LoRaWAN] Remove old error code (CI_BUILD_ALL) 2024-05-28 18:25:35 +02:00
StevenCellist
fe221cf84f [LoRaWAN] Revert LW to LORAWAN 2024-05-25 13:00:02 +02:00
HeadBoffin
875da9d89d
LW examples updated for new initialisation / join sequence (#1104)
* Updated for new initalisation / join sequence

* Removed duplicate entry

* Pragmatic / conservative disabling on unknown configs with potentially wrong defines - to be investigated at a later date

---------

Co-authored-by: Nick McCloud <hiq.bitbucket@armoured.email>
2024-05-25 07:19:02 +02:00
StevenCellist
298a612699
[LoRaWAN] Change session activation (#1093)
* [LoRaWAN] Improve session restoration/activation behaviour

* [LoRaWAN] Custom return codes for session begin

* [LoRaWAN] Separate begin() and activate()

* [LoRaWAN] Fix activateABP()

* [LoRaWAN] Additional error-code

* [LoRaWAN] Fix rejoining during active session

* [LoRaWAN] Expose clearSession, drop `force`

* Update keywords...
2024-05-21 12:03:49 +02:00
StevenCellist
163a4020d2 [LoRaWAN] Consistent fCnt/fPort casing to match documents 2024-05-04 23:18:36 +02:00
StevenCellist
43adfee174 [LoRaWAN] Shorten LORAWAN to LW 2024-05-03 22:58:11 +02:00
StevenCellist
1b2b8bd67b
[LoRaWAN] Improve PHY behaviour, update beginABP, bugfixes (#1080)
* [LoRaWAN] Add getter for ToA, prevent MAC queue overflow

* [LoRaWAN] Permute arguments to beginABP

* Implement & split off checkOutputPower

* [LoRaWAN] Configure physical layer on each up/downlink

* [LoRaWAN] Remove unnecessary dynamic array

* [LoRaWAN] Improve downlink handling

* Resolve return-warnings in checkOutputPower()

* [LoRaWAN] Improve buffer definition

* [LoRaWAN] Prevent requesting repeated MAC commands

* Update keywords.txt

* [CC1101] Resolve unused variable warning

* [CC1101] Update checkOutputPower

* [SX1278] Fix variable assignment

* Update keywords.txt

* [CC1101] Added checkOutputPower override for PHY compatibility

* [LR11x0] Added checkOutputPower override for PHY compatibility

* [SX127x] Added checkOutputPower override for PHY compatibility

---------

Co-authored-by: jgromes <jan.gromes@gmail.com>
2024-05-01 13:35:22 +02:00
Velocet
91f89fa1f3
Updated board definitions for the LoRaWAN Examples (#1052)
* Update README.md

Clarify intended purpose. Remove unsupported modules.

* Update board configs in configABP.h

Added HelTec boards and corrected some errors

* Update board configs in config.h

Added HelTec boards and corrected some errors

* Update board configs in config.h

Added HelTec boards and corrected some errors

* Update prebuilt modules in notes.md

* Delete README.md

* Recreate README.md
2024-04-14 08:15:50 +02:00
jgromes
d77823375a [LoRaWAN] Generate random numbers instead of digital/analog read (#1056) 2024-04-09 22:18:40 +02:00
StevenCellist
aa46a0c8b3 [LoRaWAN] Hide broken CSMA 2024-04-02 22:25:50 +02:00
Matthias Prinke
fbee7471c7
[LoRaWAN] Added pin maps (#1047)
* Added pin maps

* Modified pin map for ARDUINO_TTGO_LORA32_V2 (DIO1 not connected & not needed)
2024-04-01 21:03:38 +02:00
StevenCellist
b2c7e98d6c
Update examples/LoRaWAN/README 2024-03-30 09:33:30 +01:00
jgromes
78211e7566 [LoRaWAN] Added specific error code for no downlink received 2024-03-27 18:48:16 +01:00
jgromes
5c891ae337 [LoRaWAN] Do not use analog pin macros that may not be defined 2024-03-26 20:23:53 +01:00
jgromes
5391d5d383 [LoRaWAN] Add cast for DevAddr print 2024-03-26 20:15:03 +01:00
Jan Gromeš
9e4783cf8b
[CI] Fix for new LoraWAN examples (#1035)
* Update CI for new LoRaWAN examples

* Use single line for flags

* Fixup flag strings

* Fixup array dump helper

* Added missing LoRaWAN defines

* Drop Teensy from CI (still broken)

* Define a board for CI runs
2024-03-26 06:55:37 +01:00
Nick McCloud
388a714e53 Added uplink complete msg 2024-03-25 14:21:14 +00:00
HeadBoffin
14e1a9bd42
Update notes.md 2024-03-25 14:09:09 +00:00
StevenCellist
61b94bf4fc
Fix typos in the LoRaWAN Starter notes 2024-03-25 14:13:57 +01:00
StevenCellist
2d454bdc61
Populate README with direct links to (persistence) examples 2024-03-25 14:05:54 +01:00
HeadBoffin
2f1efdb8a0
Create README.md 2024-03-25 13:00:22 +00:00
StevenCellist
d1b911b273
Add link to persistence repository in LoRaWAN Reference example 2024-03-25 13:42:52 +01:00
StevenCellist
18c1ce47b4
Improve introductory comments in LoRaWAN ABP example 2024-03-25 13:41:04 +01:00
Nick McCloud
c0ebd5a92e Header comments & ABP 2024-03-25 11:55:29 +00:00
Nick McCloud
5bc97550ec Clean up prior named directories plus neglected Reference is included 2024-03-23 17:03:21 +00:00
Nick McCloud
0182a123fb Update of examples to latest API, testing, repeat 2024-03-23 17:00:13 +00:00
Nick McCloud
a926d5e13a Change the names to protect the innocent 2024-03-02 14:01:32 +00:00
Nick McCloud
3d8c2e866d WIP Starter for preview 2024-03-02 13:54:49 +00:00
Nick McCloud
ec9126dae0 Added last updated dates & corresponding RadioLib version number 2024-03-01 09:48:55 +00:00
Nick McCloud
7389d74e69 Update the reference version to latest LW code base 2024-03-01 09:46:38 +00:00
Nick McCloud
22045d7189 Range of tweaks & dutycycle / FUP 2024-02-28 20:46:47 +00:00
StevenCellist
5766d386af
[LoRaWAN] Improve persistence behaviour, add dwell time error, clear up debug output (#980)
* [LoRaWAN] Improve examples, add getter for DevAddr

* [ArduinoHAL] Only (over)write new values

* [HAL] Fix comment

* [TypeDef] Introduce error for LoRaWAN dwell time

* [LoRaWAN] Improve persistence behaviour, add dwell time error, clear up debug output

* [LoRaWAN] Prevent incorrect behaviour in restore()

* [LoRaWAN] Improve example comments and persistence

* [LoRaWAN] Fix DeviceTime and LinkCheck, fix FcntUp offset

* [LoRaWAN] Fix example incorrectly processing MAC commands

* [LoRaWAN] Fix downlink port, Fcnt 'underflow', user MAC processing

* [LoRaWAN] Add simple receive methods

* [LoRaWAN] Add co-author

Co-Authored-By: HeadBoffin <60431281+HeadBoffin@users.noreply.github.com>

* [LoRaWAN] Fix example output

* [LoRaWAN] Improve persistence behaviour, bugfix subband

* [LoRaWAN] Prevent useless rejoin during nonpersistent session

* [LoRaWAN] Graciously block an uplink if not joined

---------

Co-authored-by: HeadBoffin <60431281+HeadBoffin@users.noreply.github.com>
2024-02-27 17:29:45 +01:00
StevenCellist
0ea00fad44
[LoRaWAN] Improve examples, add getter for DevAddr (#974) 2024-02-15 20:36:03 +01:00
StevenCellist
598228fba0 [LoRaWAN] Fix session restore throwing unnecessary error 2024-01-20 11:03:54 +01:00
StevenCellist
3338034ac7 [LoRaWAN] Update examples 2024-01-13 00:15:52 +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
574555ca09 [LoRaWAN] Revamp internal processing, key checking, new MAC commands, implement DutyCycle & DwellTime 2024-01-05 11:06:24 +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
jgromes
7d57a5f6c7 [LoRaWAN] Fixed example naming 2023-11-18 16:27:29 +01:00
jgromes
c96dd51f57 [LoRaWAN] Fixed inconsistent naming 2023-11-18 16:27:05 +01:00