Wykres commitów

3244 Commity (master)

Autor SHA1 Wiadomość Data
StevenCellist e0fc757dc0 [LoRaWAN] Improve logging 2025-09-27 12:12:14 +02:00
StevenCellist e8a4d7983e [LoRaWAN] Change `getMacDeviceTimeAns` to return current time 2025-09-27 11:37:40 +02:00
StevenCellist 581882371f [LoRaWAN] Fix for Package MAC commands 2025-09-27 10:39:38 +02:00
StevenCellist 8362b5618a [LoRaWAN] Fix for Package FPort 2025-09-27 10:39:20 +02:00
StevenCellist 50bd0a19dc [LoRaWAN] Fix persistent downlink MAC content (#1616) 2025-09-27 10:35:30 +02:00
jgromes 05ba4e17a4 [HAL] Fix RPi HAL initialization order 2025-09-22 20:28:53 +01:00
Chris Leishman aeac7566dc
[SX126x] Update doc of SX126x::getPacketLength (#1611)
Add a note that the update parameter is not used for SX126x modules
2025-09-22 19:37:59 +02:00
jgromes 2a2f6e0edf Bump version to 7.3.0 2025-09-21 08:23:02 +02:00
StevenCellist a3ab19ea78 [LoRaWAN] Fix for ADR masks on fixed bands 2025-09-20 21:05:51 +02:00
StevenCellist a679e60ff9 [LoRaWAN] Fix CI warnings in examples 2025-09-20 20:24:21 +02:00
jgromes c938127f16 [SX128x] Limit preamble length to 16bit numbers 2025-09-20 12:51:39 +02:00
jgromes 8ac7893e8e [SX128x] Fix warning for preamble length 2025-09-20 11:57:31 +02:00
GUVWAF f35d12421f
Improve support for LoRa coding rate with Long Interleaver (#1606)
* Add error for packet too short

* [SX126x] Add support for Long Interleaver coding rates

* [LR11x0] Add packet length check for long interleaver

* [LR11x0] Update comment on Long Interleaver

* [SX128x] Update Long Interleaver CR 4/8 macro

* [SX128x] Add packet length check for CR 4/8 with long interleaver

* [SX126x] Add definitions for new CR with long interleaver
2025-09-20 11:04:45 +02:00
StevenCellist 5885ede681
[LoRaWAN] Update modem, datarate and ToA handling (#1609)
* [PHY] Add empty modem

* [LoRaWAN] WIP: update datarate / TOA handling

* [PHY] Add modem to datarate functions

* [LLCC68] Add modem argument to datarate functions

* [LR11x0] Add modem argument to datarate functions

* [SX126x] Add modem argument to datarate functions

* [SX127x] Add modem argument to datarate functions

* [SX128x] Add modem argument to datarate functions

* [LoRaWAN] Change datarate handling

* [LoRaWAN] Fix LR-FHSS header count

* [LoRaWAN] Update RFU datarates

* [LR11x0] Add default case to `setModem()`

* [LoRaWAN] Remove unused variable
2025-09-20 10:27:45 +02:00
Chris Leishman 778a73e32b
[SX126x] Remove extraneous reset after findChip (#1604) 2025-09-19 18:52:23 +02:00
jgromes 70bca65888 [PHY] Add calculateTimeOnAir virtual method and override it in module classes 2025-09-18 19:27:25 +02:00
jgromes 28707e8477 [SX126x] Add missing method 2025-09-18 18:22:26 +02:00
jgromes 21af3bf7ca [SX126x] Add missing header files 2025-09-18 18:12:51 +02:00
jgromes a94f263cac [SX126x] Split main source file into multiple files 2025-09-18 18:05:57 +02:00
Chris Leishman 37ed8f5bb0
[SX126x] For receiveDutyCycleAuto, check senderPreambleLength is shorter than configured preamble (#1602)
* [SX126x] Update doc of startReceiveDutyCycleAuto

Indicate that the senderPreambleLength should never exceed
the configured preamble length.

* [SX126x] For receiveDutyCycleAuto, check senderPreambleLength is shorter than configured preamble

Return RADIOLIB_ERR_INVALID_PREAMBLE_LENGTH otherwise.
2025-09-17 17:33:35 +02:00
Chris Leishman e23bae3bbd
[SX126x] Use a default of either 8 or 12 for minSymbols in startReceiveDutyCycleAuto (#1600)
* [SX126x] Update doc of startReceiveDutyCycleAuto

Note that the minimum preamble size should be set to 12 for SF5-6.

* [SX126x] Set default for minSymbols in startReceiveDutyCycleAuto

Change default argument value to 0, then set min symbols to
8 or 12 as appropriate.
2025-09-17 17:24:33 +02:00
GUVWAF 804470eff1
Add `calculateTimeOnAir()` method to relevant modules (#1596)
* [PhysicalLayer] Add packet configurations

* Add `calculateTimeOnAir()` method to relevant modules

* Add calculateTimeOnAir to keywords.txt

* Add TOA unit tests

* Remove old methods and equivalance tests

* Explicitly assign all struct members

* Fix cppcheck errors

* [SX127x] Make `reset()` and `errataFix()` virtual
2025-09-17 17:08:19 +02:00
jgromes 3220774a1f [SX126x] Fix typo in method names (#1592) 2025-09-17 07:18:20 +02:00
jgromes d7c7718b72 Fix typo in method names 2025-09-17 07:15:32 +02:00
jgromes fc7becd6f5 [SX126x] Fix finishReceive clearing IRQ flags prematurely (#1592) 2025-09-17 07:10:55 +02:00
jgromes 04b4eb95b6 [SX127x] Fix finishReceive clearing IRQ flags prematurely (#1592) 2025-09-17 07:10:37 +02:00
jgromes 198d1697a3 [SX128x] Use IRQ value from map 2025-09-17 07:09:33 +02:00
jgromes b49314d0bb [LR11x0] Use IRQ value from map 2025-09-17 07:09:25 +02:00
Chris Leishman 334c003a27
[SX126x] No need to call standby() after a verified reset (#1603) 2025-09-17 06:55:47 +02:00
jgromes d27d98874c [SX126x] Add comment regarding preamble length for duty cycle Rx (#1597) 2025-09-15 16:29:07 +02:00
Jan Gromeš 7fc83f732c
User-controlled timeout for blocking receive (#1592)
* [PHY] Add timeout argument to blocking receive method

* [PHY] Add finishReceive method for cleanup after Rx

* [SX126x] Implement finishReceive method

* [SX126x] Implement blocking receive timeout

* [CC1101] Implement blocking receive timeout

* [CC1101] Implement finishReceive

* [nRF24] Implement blocking receive timeout

* [nRF24] Implement finishReceive

* [RF69] Implement finishReceive

* [RF69] Implement finishReceive

* [Si443x] Implement blocking receive timeout

* [Si443x] Implement finishReceive

* [SX128x] Implement blocking receive timeout

* [SX128x] Implement finishReceive

* [LR11x0] Implement blocking receive timeout

* [LR11x0] Implement finishReceive

* [SX127x] Implement blocking receive timeout

* [SX127x] Implement finishReceive

* Add finishReceive to keywords

* [CC1101] Fix incorrect timeout reference

* [SX126x] Simplify receive timeout duration (5x ToA instead of 100 symbols)

* [LR11x0] Simplify receive timeout duration (5x ToA instead of 100 symbols)

* [SX127x] Simplify receive timeout duration (5x ToA instead of 100 symbols)

* Fix swapped order of operations in finishReceive

* [SX128x] Add explanation regarding 10x timeout value
2025-09-10 07:07:28 +02:00
jgromes bbb2e4e575 [LoRaWAN] Add extra padding to prevent adrMasks overflow 2025-09-07 17:45:10 +02:00
Jan Gromeš 6c38520393
[SX128x] Merge pull request #1590 from MarusGradinaru/SX128x.receive()-timeout-bug
Fixing SX128x.receive() timeout bug
2025-09-05 15:23:14 +02:00
Marus Alexander 8833871aef
Fixed a small bug in receive() method 2025-09-05 14:48:08 +03:00
GUVWAF f7612e9a65
Add methods to retrieve received LoRa header info (#1588)
* [LR11x0] Move Rx header infos to public method

* [SX126x] Add LoRa Rx header infos method

* [SX127x] Add LoRa Rx header infos method

* [SX128x] Add LoRa Rx header infos method

* Add `getLoRaRxHeaderInfo` to keywords
2025-09-02 20:28:12 +02:00
GUVWAF b78ff1444e
Add support for LoRa coding rate 4/4 (#1587)
* [SX1272] Add support for coding rate 4/4

* [SX1278] Add support for coding rate 4/4

* [SX126x] Add support for coding rate 4/4

* [LR11x0] Add support for coding rate 4/4

* [SX128x] Add support for coding rate 4/4
2025-09-02 09:22:34 +02:00
StevenCellist a28234e262 [SX127x] Add safety delay while entering sleep 2025-08-29 13:29:34 +02:00
StevenCellist 42c3b2e416 [LoRaWAN] Put radio to sleep during Rx windows and RetransmitTimeout 2025-08-28 09:28:27 +02:00
StevenCellist 4cd658f5b5 [LoRaWAN] Fixes for network package 2025-08-28 09:06:03 +02:00
StevenCellist 3d94858f36
[LoRaWAN] Channel improvements (#1573)
* [LoRaWAN] Improve channel management

* [LoRaWAN] Fixes for fixed bands

* [LoRaWAN] Resolve CI feedback

* Potential fix for code scanning alert no. 35: Comparison of narrow type with wide type in loop condition

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* [LoRaWAN] Fix pRNG seed

* [LoRaWAN] Restore channel masks and flags within and outside of sessions

* [LoRaWAN] Remove debug output

* [LoRaWAN] Fully persistent channel management

* [LoRaWAN] Update Nonces buffer version

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-08-24 20:21:53 +02:00
jgromes e47f1e20af [SX127x] Clarify FSK FIFO size is due to hardware (#1578) 2025-08-21 18:39:36 +02:00
Jan Gromeš 2d51048050
Merge pull request #1571 from NemesisXB/fix_overload_error
Fix overload-virtual errors
2025-08-12 16:40:10 +02:00
Tiaan-Alberts 388779d678 restore CC1101:begin behaviour for setPreambleLength(size_t len) from 7*4 to len-4 2025-08-12 08:26:32 +02:00
Tiaan-Alberts 8e3bb5992c Fix static analysis failure 2025-08-11 19:09:17 +02:00
Tiaan-Alberts 910403c531 Fix overload-virtual errors 2025-08-11 10:32:02 +02:00
jgromes 1dfd194c9c [HAL] Fix RPiPico detach interrupt (#1558) 2025-07-21 07:03:15 +02:00
jgromes d05dbf07d1 [SX126x] Add missing state assert (#1561) 2025-07-20 11:40:32 +02:00
Jan Gromeš c588031628
Merge pull request #1560 from koisto/bugfix/pico-hal-interrupt-mode
Remove hard coded interrupt mode from PicoHAL
2025-07-18 18:11:14 +02:00
James Ashby 2c8000aa34 Modified the attachInterrupt function in PicoHal.h so that the mode argument is passed into the events argument of gpio_set_irq_enabled_with_callback. Previosly this used hard coded values that caused spurious (extra) interrupts. 2025-07-18 08:30:41 +01:00
Totoo 7fb07921bf
[PHY] Add a virtual destructor (#1557)
* Update PhysicalLayer.h

Add a virtual destructor, so can use new + delete on inherited objects

* Update PhysicalLayer.h

deleted empty lines
2025-07-15 17:47:37 +02:00