Commit graph

3137 commits

Author SHA1 Message Date
jgromes
78a6897e1b [LoRaWAN] Silence class-memaccess warning 2024-09-10 20:24:00 +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
Jan Gromeš
50996fa661
[CI] Arduino platform versions & ESP32 3.0.x workaround (#1213)
* [CI] Add configurable package version

* [CI] Fix package version passing

* [CI] Fix swapped logic

* [CI] Try esp32 arduino 2.0.17 to fix linker errors
2024-09-10 20:30:01 +02:00
jgromes
47b8df6874 [LR11x0] Added ping-pong example 2024-09-10 19:23:30 +02:00
jgromes
4263a572b1 [CI] Check for performance issues in cppcheck 2024-09-10 19:21:37 +02:00
jgromes
9fb427d041 [SX128x] Fix unspecified integer width in ranging calculation 2024-09-10 19:21:05 +02:00
jgromes
aadfd0c48c [PHY] Added LR-FHSS DataRate_t 2024-09-10 19:19:22 +02:00
jgromes
c4a129ed74 [PHY] Pass scan config by reference 2024-09-10 19:18:56 +02:00
jgromes
3696672f6f [LR11x0] Remove WIP GNSS functionality (moved to branch) 2024-09-10 18:58:46 +02:00
jgromes
44d2ba8487 [LR11x0] GNSS low level command fixes 2024-09-10 07:17:50 +02:00
Jan Gromeš
885a921ea3
[SX128x] Merge pull request #1206 from Jorropo/fix-signed-ranging-result
fix getRangingResult to properly account for signed numbers
2024-09-07 08:46:52 +02:00
Jorropo
951bfc0625 fix getRangingResult to properly account for signed numbers
I got numbers like this as I approached the slave (raw values before converting to meters):
```
Ranged: 8
Ranged: 6
Ranged: 3
Ranged: 3
Ranged: 5
Ranged: 5
Ranged: 5
Ranged: 6
Ranged: 1
Ranged: 1
Ranged: 800000
Ranged: 800003
Ranged: 800003
```

This is because the ToF becomes smaller than the correction factor resulting in a negative number.

This patch performs Sign Extension from 24bits to 32bits.
This result in returning a negative meter value which makes more sense than an impossibly big one.
2024-09-07 06:25:32 +02:00
jgromes
3115fc2d67 [LR11x0] Fix IRQ masking 2024-09-03 19:06:57 +02:00
jgromes
e0af297c76 [LR1110] Fix default startReceive flags 2024-09-03 18:22:43 +02:00
GUVWAF
eda4ec22ae
[SX126x][SX128x][LR11x0] Don't report CRC mismatch if valid header received (#1203)
* Enable `HEADER_VALID` IRQ flags by default for receiving

* [SX126x] Don't report CRC mismatch if valid header received

* [SX128x] Don't report CRC mismatch if valid header received

* [LR11x0] Don't report CRC mismatch if valid header received
2024-09-01 20:48:17 +02:00
Jan Gromeš
bc801c7004
[PHY] Channel scan configuration (#1190)
* [PHY] Added channel scan configuration

* [LR11x0] Added channel scan configuration

* [SX126x] Added channel scan configuration

* [SX128x] Added channel scan configuration

* Use microsecond timeout

* [PHY] Added generalized IRQ handling via PHY

* [LR11x0] Added generalized IRQ handling via PHY

* [SX126x] Added generalized IRQ handling via PHY

* [SX127x] Added generalized IRQ handling via PHY

* [SX128x] Added generalized IRQ handling via PHY

* Added missing typedef

* [PHY] Fix IRQ method argument type

* [SX128x] Fix non-trivial initializer usage

* [LR11x0] Added missing override specifiers

* [SX126x] Added missing override specifiers

* [SX127x] Added missing override specifiers

* [SX128x] Added missing override specifiers

* [PHY] Added missing IRQ map initializer

* [CI] Drop APRS builds on AVR

* [CI] Drop Morse builds for AVR

* [PHY] Rework generic IRQ to allow multiple flags

* [LR11x0] Rework generic IRQ to allow multiple flags

* [SX126x] Rework generic IRQ to allow multiple flags

* [SX127x] Rework generic IRQ to allow multiple flags

* [SX128x] Rework generic IRQ to allow multiple flags

* [LoRaWAN] Use generic IRQ

* Add missing typedef

* [SX127x] Make Rx mode implicit based on timeout

* [SX127x] Fixed shadowed variable

* [LR11x0] Fix missing initializers

* [SX127x] Added default startReceive arguments

* [LR11x0] Pass scan config by const reference

* [SX126x] Pass scan config by const reference

* [SX128x] Pass scan config by const reference

* [PHY] Pass scan config by const reference

* [SX127x] Add missing IRQ conversion

* [SX126x] Fixed default CAD scan config IRQ

* [LR11x0] Fixed default CAD scan config IRQ

* [LR11x0] Fix comments referencing DIO1
2024-09-01 18:19:07 +02:00
Jan Gromeš
d9c0c4ed44
Update bug_report.md 2024-09-01 08:35:37 +02:00
Jan Gromeš
a68f689a85
Update module-not-working.md 2024-09-01 08:34:00 +02:00
Jan Gromeš
d3f9eaf30b
Merge pull request #1199 from FrauBluher/pr-double-float-explicit
Reconcile implicit double / float promotion in math functions.
2024-08-29 17:41:57 +02:00
Pavlo Manovi
6847fcda5c Reconcile implicit double / float promotion with math functions and passed function value types. Also suppress incorrect unused variable warnings when variables are used in logging macros. 2024-08-29 09:30:31 -04:00
Jan Gromeš
0abb7512fc
Merge pull request #1188 from jgromes/irqFlags
[PHY, modules, LoRaWAN] Generalize IRQ checks
2024-08-18 09:57:40 +02:00
StevenCellist
647fa23ce9 [LoRaWAN] Remove redundant PHY check 2024-08-17 22:04:28 +02:00
StevenCellist
0bc0e3d9c8 [PHY, modules, LoRaWAN] Integrate feedback 2024-08-17 22:03:48 +02:00
jgromes
260534741d Added readme to ESP-IDF example 2024-08-17 21:19:14 +02:00
jgromes
2717ef5c21 Merge branch 'master' into irqFlags 2024-08-16 22:38:12 +02:00
jgromes
382bf19100 Remove more duplicates from manifest files 2024-08-16 22:33:43 +02:00
jgromes
c35f4044e7 Fixed duplicate tag in manifest files 2024-08-16 22:12:13 +02:00
jgromes
66799fca92 Update IDF manifest to new format 2024-08-16 22:07:42 +02:00
StevenCellist
32dc5babd4 [LoRaWAN] Move to generalized IRQ check (PHY) 2024-08-16 00:05:55 +02:00
StevenCellist
b401d11127 [SX128x] Implement generalized IRQ checks 2024-08-16 00:05:06 +02:00
StevenCellist
08f92cdd29 [SX127x] Generalize IRQ checks 2024-08-16 00:04:52 +02:00
StevenCellist
3a73ed8c1f [SX126x] Generalize IRQ checks 2024-08-16 00:04:42 +02:00
StevenCellist
0eb987a83c [LR11x0] Generalize IRQ checks 2024-08-16 00:04:34 +02:00
StevenCellist
19ec9da281 [PHY] Generalize IRQ checks 2024-08-16 00:03:55 +02:00
Jan Gromeš
56249713f3
Merge pull request #1185 from GUVWAF/rxBufferOffset
[SX126x/SX128x] Start reading from Rx buffer offset
2024-08-10 22:16:05 +02:00
GUVWAF
ddaf1ffd52 [SX128x] Remove unnecessary (void)update; 2024-08-10 18:40:19 +02:00
GUVWAF
8b5d705174 [SX126x] Remove unnecessary (void)update; 2024-08-10 18:40:09 +02:00
GUVWAF
5f6f6f9a3c [SX128x] Start reading from Rx buffer offset 2024-08-10 12:56:12 +02:00
GUVWAF
0620d8edda [SX126x] Start reading from Rx buffer offset
Remove setting RxBaseAddr to 0
2024-08-10 12:56:12 +02:00
jgromes
141bdd0998 [MOD] Make hexdump format match xxd 2024-08-09 21:25:39 +02:00
Jan Gromeš
a025b78f53
Merge pull request #1184 from mycosd/master
SX127x: Set FIFO read pointer to the start of the current packet
2024-08-09 21:24:42 +02:00
Maik Menz
701c6f8e46 SX127x: Set FIFO read pointer to the start of the current packet 2024-08-09 19:19:33 +02:00
jgromes
079874345b [FEC] Move generically useful macros 2024-08-05 21:08:35 +02:00
jgromes
d95e5e39e8 [MOD] Added missing Doxygen parameter 2024-08-05 21:06:35 +02:00
jgromes
908e297d60 [LR11x0] Added register to set LNA mode 2024-08-05 21:03:39 +02:00
jgromes
4e274fab07 Fix typo in comment 2024-08-04 21:41:10 +02:00
jgromes
39bfa51518 Added verbose assert 2024-08-04 16:33:23 +02:00
StevenCellist
6d0c226e65 Merge branch 'master' of https://www.github.com/jgromes/RadioLib 2024-07-22 21:30:09 +02:00
StevenCellist
6fdaef0953 Revert libtock being included 2024-07-22 21:29:54 +02:00
StevenCellist
9195dbabda
[LoRaWAN] Fix downlink user-MAC commands piling up 2024-07-21 22:39:28 +02:00