Wykres commitów

2790 Commity (6d0c226e65ca1835849c9b516255bee642d2ab21)

Autor SHA1 Wiadomość Data
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
jgromes 8c1d0521c5 [SX127x] Removed extra semicolons 2024-01-14 16:29:57 +01:00
jgromes c1bf281f21 Bump version to 6.4.0 2024-01-14 16:00:57 +01:00
Jan Gromeš d1d6e04f2b
Merge pull request #928 from plietar/master
[CC1101] Correctly wait for packet end on blocking receive.
2024-01-13 19:20:04 +01:00
Paul Lietar ab41bcac00 [CC1101] Correctly wait for packet end on blocking receive.
When using a blocking receive, I was getting non-sensical packet length
and garbage data, whereas IRQ mode was working fine. This was happening
despite what looked like a workaround for this in the code which would
read the length twice.

I tracked it down to the receive function trying to read the data too
early, before the packet had even been received. The receive function
would wait for the GDO0 pin to become low, then assume the packet was
ready and read off the data.

However, the GD0 pin is set by the `startReceive` as inverted and,
according to the datasheet, in a mode which "asserts when sync word has
been received, and de-asserts at the end of the packet". In other words,
taking into account the inversion, GDO0 becomes low at the start of the
packet and high at the end of it.

Therefore the receive function would actually try to read the packet
data as soon as the packet had started, rather than wait until the end,
explaining the garbage data.

I suspect that with a slow MCU and a fast transmission rate, the
previous workaround of reading the length field twice may have delayed
the data read just enough to allow the packet to be fully received, but
this does not work in the general case.

This commit updates the logic by first waiting for a low signal,
followed by a high one. This is actually the exact same logic used in
the blocking transmit implementation, but inverted to account for the
INV flag set on GDO0. The commit also removes the past workaround, since
it should not be necessary anymore.
2024-01-13 17:18:23 +00:00
Jan Gromeš cb0218009d
Merge pull request #918 from StevenCellist/master
[LoRaWAN] Revamp internal processing, key checking, new MAC commands, implement DutyCycle & DwellTime
2024-01-13 16:27:00 +01:00
jgromes 842c54849d [SX127x] Added setLowBatteryThreshold (#925) 2024-01-13 13:39:51 +01:00
StevenCellist 3338034ac7 [LoRaWAN] Update examples 2024-01-13 00:15:52 +01:00
StevenCellist 0bba68f3ae [LoRaWAN] Rework channel logic 2024-01-13 00:05:25 +01:00
jgromes 30961964c5 [CC1101] Cleanup private/protected members 2024-01-12 20:35:10 +01:00
jgromes 1575e37355 [nRF24] Cleanup private/protected members 2024-01-12 20:29:09 +01:00
jgromes 3a5d9b5c32 [RF69] Cleanup private/protected members 2024-01-12 20:26:07 +01:00
jgromes 935c316f7c [Si443x] cleanup 2024-01-12 20:14:18 +01:00
jgromes d31b4836e1 [Si443x] Cleanup private/protected members 2024-01-12 20:12:45 +01:00
jgromes 34d80faaf0 [SX126x] Cleanup private/protected members 2024-01-12 20:00:08 +01:00
jgromes 948088c1e1 [SX128x] Moved setHeaderType to private methods 2024-01-12 19:49:17 +01:00
jgromes b5d931ec79 [SX128x] Cleanup private/protected members 2024-01-12 19:45:41 +01:00
jgromes bbe407b50f [SX127x] Cleanup private/protected members 2024-01-12 18:51:55 +01:00
Jan Gromeš 7e95fdfe7b
Merge pull request #923 from peterus/peterus-patch-1
fix warning/error: compound assignment with 'volatile'-qualified left operand is deprecated
2024-01-11 18:20:33 +01:00
Peter Buchegger abfc91a9bc
Update SX127x.cpp 2024-01-11 17:52:50 +01:00
Peter Buchegger 6600860915
Update RF69.cpp 2024-01-11 17:51:39 +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 00264f48a9 [HAL] Fix a comment 2024-01-05 11:49:59 +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
jgromes bf061c655f [SX126x] Allow custom band calibration 2024-01-04 18:30:22 +01:00
jgromes 19b61739e6 [SX126x] Fixed image calibration 2024-01-04 18:23:36 +01:00
jgromes 3478d90819 [SX126x] Improved image calibration 2024-01-04 18:21:35 +01:00
jgromes cc76bad06f Fix tabs 2023-12-30 23:03:16 +01:00
Jan Gromeš 7d6ddfa9f4
Merge pull request #914 from StevenCellist/master
[LoRaWAN] Fix ABP initialization, support MAC in payload
2023-12-30 09:01:05 +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
jgromes 6bac59ce08 [CC1101] Fixed direct transmit (#911) 2023-12-22 15:04:19 +01:00
Jan Gromeš fa9054263d
Merge pull request #900 from StevenCellist/master
[LoRaWAN] Expose downlink framecounters
2023-12-09 16:24:53 +01:00
jgromes a30d3da296 [SX123x] Added note about high bit rate mode for SX1233 2023-12-09 16:12:10 +01:00
jgromes 57a6a9ccc3 [SX123x] Added missing include 2023-12-09 16:00:42 +01:00
jgromes af9073fae4 [RF69] Make setMode protected 2023-12-09 15:38:38 +01:00
jgromes 4639cb5875 Merge branch 'master' of https://github.com/jgromes/RadioLib 2023-12-09 15:34:58 +01:00
jgromes c0d8d7871e [SX123x] Added support for SX1233 (#898) 2023-12-09 15:34:56 +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
Jan Gromeš b30b7c6dad
Merge pull request #899 from xNombre/master
LoRaWAN: Fix broken node when memory is dynamically allocated
2023-12-08 19:21:16 +01:00
Andrzej Perczak 79fbe9be8e LoRaWAN: Fix uninitialized variables 2023-12-08 18:34:21 +01:00
Jan Gromeš 77562c963a
Merge pull request #896 from S5NC/removeDuplicateRADIOLIBNameInMacros
Remove last remaining duplicate 'RADIOLIB's from macros
2023-12-01 07:05:44 +01:00
S5NC ed15ce3569
Remove double '_RADIOLIB's 2023-11-30 20:23:45 +00:00
Jan Gromeš d1d774acd5
Merge pull request #893 from S5NC/SX128Xalsochangemacro
Maintain consistency across SX126x and SX128x with macro rename
2023-11-30 16:58:40 +01:00