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
Thomas Schätzlein
f2e1b547d5
fix payload of DevStatusAns mac-command
...
Lorawan specs say (e.g. 1.0.4 or 1.1), that the first byte is the
battery-level and the second byte is the margin.
2024-05-20 10:51:41 +02:00
jgromes
60d1738c91
[AX25] Fix possible string truncation
2024-05-19 18:32:44 +02:00
jgromes
9e8da76740
[ITA2] Added assignment operator overload and copy constructor
2024-05-12 19:49:56 +01:00
jgromes
71ccce4a3d
[EXT] Added assignment operator overload and copy constructor
2024-05-12 19:49:46 +01:00
jgromes
e3f851ef6d
[AX.25] Added assignment operator overload
2024-05-12 19:49:28 +01:00
jgromes
a93e7b93de
[SSTV] Fixed issues found by cppcheck
2024-05-12 12:03:53 +01:00
jgromes
d4e7af836c
[Hell] Fixed issues found by cppcheck
2024-05-12 12:03:43 +01:00
jgromes
f72f7bd46d
[RTTTY] Fixed issues found by cppcheck
2024-05-11 20:33:45 +01:00
jgromes
909969aa15
[Print] Fixed issues found by cppcheck
2024-05-11 20:33:39 +01:00
jgromes
89e406775d
[Pager] Fixed issues found by cppcheck
2024-05-11 20:33:07 +01:00
jgromes
48ed06aa4b
[Morse] Fixed issues found by cppcheck
2024-05-11 20:32:57 +01:00
jgromes
d779a834a0
[Hell] Fixed issues found by cppcheck
2024-05-11 20:32:50 +01:00
jgromes
f53d5b9027
[FSK4] Fixed issues found by cppcheck
2024-05-11 20:32:41 +01:00
jgromes
0f0ab73832
[EXT] Fixed issues found by cppcheck
2024-05-11 20:32:32 +01:00
jgromes
914c616c2a
[Bell] Fixed issues found by cppcheck
2024-05-11 20:32:20 +01:00
jgromes
98bae46c33
[AX25] Fixed issues found by cppcheck
2024-05-11 20:32:02 +01:00
jgromes
ac07269f97
[APRS] Fixed issues found by cppcheck
2024-05-11 20:31:57 +01:00
jgromes
d61589a2c5
[AFSK] Fixed issues found by cppcheck
2024-05-11 20:31:01 +01:00
jgromes
d12e9f11f5
[LoRaWAN] Added timeout to downlink wait loop
2024-05-08 15:29:39 +02:00
jgromes
90eca88859
[LoRaWAN] Use 32-bit IRQ flags
2024-05-08 14:51:43 +02:00
jgromes
2c9446ef1e
[LoRaWAN] Added rx start assert
2024-05-08 14:50:34 +02:00
StevenCellist
bb7fffe95d
[LoRaWAN] Improve readability to better match documentation
2024-05-04 23:26:59 +02:00
StevenCellist
bbeca9a53e
[LoRaWAN] Consistent fOpts casing to match documents
2024-05-04 23:21:45 +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
jgromes
6fe581aea7
Fix minor format warnings
2024-05-03 20:54:18 +01:00
jgromes
05e35407f4
[FSK4] Use abs macro instead of abs function
2024-05-01 15:14:44 +02:00
Alistair Francis
2f85326fec
examples/NonArduino/Tock: Support RISC-V and bump libtock-c ( #1082 )
...
* examples/NonArduino/Tock: Support building for RISC-V
Signed-off-by: Alistair Francis <alistair@alistair23.me>
* examples/NonArduino/Tock: Update to newer libtock-c
Signed-off-by: Alistair Francis <alistair@alistair23.me>
---------
Signed-off-by: Alistair Francis <alistair@alistair23.me>
2024-05-01 15:12:05 +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
jgromes
841b283c0f
[LoRaWAN] Use dynamic array instead of VLA
2024-04-26 07:04:16 +02:00
Elizabeth Myers
205031550b
Use RadioLibTime_t (aka unsigned long) when dealing with millis() and micros() ( #1075 )
...
* Use unsigned long when dealing with millis() and micros().
Although sizeof(uint32_t) == sizeof(unsigned long) on Arduino, this is
not the case on 64-bit Linux, where sizeof(unsigned long) ==
sizeof(uint64_t).
Most timestamp arithmetic and comparisons have been left alone, to
reduce code churn. This is fine, as uint32_t is perfectly wide to store
most timestamp deltas this library will deal with, and C will promote
the integer rather than do a narrowing conversion. The real problem
arises with narrowing conversions being done by assuming timestamps are
32-bit.
No functional changes intended for platforms where sizeof(uint32_t) ==
sizeof(unsigned long) (so most 8/16/32-bit platforms).
Signed-off-by: Elizabeth Myers <elizabeth.jennifer.myers@gmail.com>
* Change most timestamps to use RadioLibTime_t.
This makes it obvious what is and isn't a timestamp.
Not everything has been converted; anything dealing with protocol and
chip-level timestamps has been left alone on purpose, to make it clear
that these functions do require 32-bit timestamps.
No functional changes intended on platforms where sizeof(uint32_t) ==
sizeof(unsigned long).
Signed-off-by: Elizabeth Myers <elizabeth.jennifer.myers@gmail.com>
* Use uint32_t internally in getTimeOnAir.
We need to not overflow the integers with the shifts and
multiplications, so this is correct behaviour.
Signed-off-by: Elizabeth Myers <elizabeth.jennifer.myers@gmail.com>
---------
Signed-off-by: Elizabeth Myers <elizabeth.jennifer.myers@gmail.com>
2024-04-25 21:50:58 +02:00
jgromes
3c502b9cdf
[AX25] Fix direct mode start
2024-04-20 18:05:57 +02:00
StevenCellist
aa46a0c8b3
[LoRaWAN] Hide broken CSMA
2024-04-02 22:25:50 +02:00
StevenCellist
a4ad32e6ff
[LoRaWAN] Fix downlink crashes ( #1049 ), remove redundant parameter
2024-04-02 22:24:06 +02:00
jgromes
e7ee407b0d
[Doc] Additional doxygen fixes
2024-04-01 12:11:13 +02:00
Jan Gromeš
e57c9b08ea
[Doxygen] Warnings fixes ( #1046 )
...
* [APRS] Fix Doxygen warnings
* [Print] Fix Doxygen warnings
* [CC1101] Fixed doxygen warnings
* [nRF24] Fixed doxygen warnings
* [RF69] Fixed doxygen warnings
* [SX126x] Fixed doxygen warnings
* [SX127x] Fixed doxygen warnings
* [AFSK] Fixed doxygen warnings
* [APRS] Fixed doxygen warnings
* [Bell] Fixed doxygen warnings
* [Ext] Fixed doxygen warnings
* [LoRaWAN] Fixed doxygen warnings
* [PHY] Fixed doxygen warnings
* [Print] Fixed doxygen warnings
* [Mod] Fixed doxygen warnings
2024-04-01 11:11:24 +02:00
jgromes
78211e7566
[LoRaWAN] Added specific error code for no downlink received
2024-03-27 18:48:16 +01:00
Jan Gromeš
648b455cff
[LoRaWAN] Added array of supported bands ( #1032 )
2024-03-26 06:57:25 +01:00
Jan Gromeš
cfc425970c
[LoRaWAN] Resolve warnings, fix bugs for fixed bands ( #1021 )
...
* [LoRaWAN] Resolve warnings
* [LoRaWAN] Fixed bands: improve initial datarate, fix CFList bug
* [LoRaWAN] Improve MAC debug output formatting
* Fix hexdump debug level
* Remove unnecessary error, add new ones to keywords
* [LoRaWAN] Discard useless check
---------
Co-authored-by: StevenCellist <steven@boonstoppel.nu>
2024-03-18 16:39:55 +01:00
StevenCellist
ca2a3073b9
[LoRaWAN] Change and upgrade persistence handling ( #1017 )
...
* [LoRaWAN] Change and upgrade persistence handling
* [BuildOpt] Patch to upstream
* [LoRaWAN] Fix #1018
* [LoRaWAN] Remove outdated parts
* [LoRaWAN] Resolve feedback
Warning: untested - am not at my desk
* [LoRaWAN] Small bugfixes
2024-03-18 08:51:38 +01:00
jgromes
4ee17cc168
Debugging rework
2024-03-10 11:07:23 +01:00
jgromes
cf561733d2
[Pager] Minor fixes
2024-03-02 18:09:56 +01:00
Jan Szumiec
268e2d704f
Receive messages for multiple POCSAG RICs ( #998 )
...
* Make it possible to supply a list of addresses for POCSAG reception.
* Initialize some instance variables to sensible values.
2024-03-02 18:01:32 +01: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
jgromes
9f0bdffc50
[LoRaWAN] Use ESP_PLATFORM macro to include esp_attr.h ( #952 )
2024-02-25 18:02:31 +01:00
StevenCellist
0ea00fad44
[LoRaWAN] Improve examples, add getter for DevAddr ( #974 )
2024-02-15 20:36:03 +01:00
Leonard Techel
ea2ccfd6d0
[LoRaWAN] Fix fcntUp wrap-around after 50 transmissions
...
Resolves #950
2024-02-13 19:58:02 +01:00
Olivér Remény
e4267760f9
Fix stringop-truncation warning in AX25 callsign getter ( #958 )
...
* Update LoRaWAN.cpp
* Update Pager.cpp
* Update AX25.cpp
Fixed stringop-truncation error
2024-02-11 09:41:41 +01:00
Olivér Remény
7945ffb996
include esp_attr.h where IRAM_ATTR is used ( #952 )
...
* Update LoRaWAN.cpp
* Update Pager.cpp
2024-02-02 16:57:43 +01:00