Commit graph

2483 commits

Author SHA1 Message Date
jgromes
bce14023f9 [PHY] Fixed godmode not exposing private member (#950) 2024-02-02 16:36:50 +01:00
jgromes
547328f375 Bump version to 6.4.2 2024-01-28 14:04:33 +01:00
jgromes
d208f46f93 [LoRaWAN] Added data rate check debug print 2024-01-28 13:31:08 +01:00
jgromes
a168f9ba41 [SX127x] Fixed data rate checking 2024-01-28 13:29:14 +01:00
jgromes
118980fd27 [SX126x] Fixed data rate checking (#948) 2024-01-28 13:28:48 +01:00
jgromes
5ebea18572 [LLCC68] Fixed data rate checking 2024-01-28 13:28:21 +01:00
jgromes
a44a3daa1c [LoRaWAN] Removed unsupported initializer (CI_BUILD_ALL)[ 2024-01-27 19:05:44 +01:00
jgromes
070a0bf240 [LoRaWAN] Fixed missing bracket (CI_BUILD_ALL) 2024-01-27 19:00:16 +01:00
jgromes
50d335e339 [CI] Skip LoRaWAN on MegaAVR (CI_BUILD_ALL) 2024-01-27 18:58:36 +01:00
jgromes
7c50be3158 [LoRaWAN] Add explicit initialization 2024-01-27 18:57:11 +01:00
jgromes
139574d963 Bump version to 6.4.1 2024-01-27 18:50:16 +01:00
jgromes
1c8d2d5cfb [LoRaWAN] Typo fixes 2024-01-27 18:49:34 +01:00
jgromes
f35e3282f5 [LoRaWAN] Added ADR data rate check (#946) 2024-01-27 18:47:40 +01:00
jgromes
f109fd0158 [LLCC68] Fixed set data rate for LLCC68 (#946) 2024-01-27 18:47:05 +01:00
jgromes
a642f5a8df [SX126x] Implemented data rate check 2024-01-27 18:46:22 +01:00
jgromes
a4b148d609 [SX127x] Implemented data rate check 2024-01-27 18:45:37 +01:00
jgromes
b734e23460 [PHY] Added data rate check method 2024-01-27 18:23:52 +01:00
Jan Gromeš
a981f9828a
Merge pull request #942 from StevenCellist/master
[LoRaWAN] Fix channel logic: for fixed bands, persistence of dynamic bands, rejoining during active session
2024-01-27 16:12:17 +01:00
jgromes
1025abce8b [CI] Fixed SDK path export 2024-01-27 14:07:46 +01:00
jgromes
9053786c02 Added RPi Pico build to CI 2024-01-27 14:03:58 +01:00
jgromes
eaa42b0d6b Update RPi Pico SDK example 2024-01-27 14:03:40 +01:00
Jan Gromeš
33f1ef7d22
Merge pull request #941 from cameron-goddard/master
examples: NonArduino: Raspberry Pi Pico
2024-01-27 13:54:27 +01:00
StevenCellist
b98a5c6b29 [LoRaWAN] Fix Tx power calculation 2024-01-24 08:46:10 +01:00
StevenCellist
51ab103d07 [LoRaWAN] Keep Dev/JoinNonce on OTAA wipe with same credentials 2024-01-23 09:04:25 +01:00
StevenCellist
9008fb00a7 [LoRaWAN] Fix setDatarate function 2024-01-22 14:38:35 +01:00
StevenCellist
ee542c3b56 [LoRaWAN] Fix dynamic-band non-ADR session persistance 2024-01-22 13:34:00 +01:00
StevenCellist
aedf519ea4 [LoRaWAN] Fix rejoining during active session 2024-01-22 12:53:18 +01:00
StevenCellist
4ec10a4749 [LoRaWAN] Fix fixed band CFList processing 2024-01-22 12:32:15 +01:00
StevenCellist
6979bff863 [LoRaWAN] Improve channel masks for fixed bands 2024-01-22 11:40:57 +01:00
Cameron Goddard
e558f541e1 add Pico HAL 2024-01-21 15:39:28 -05:00
Jan Gromeš
86136d3b46
Merge pull request #936 from StevenCellist/master
[LoRaWAN] Fix session restore throwing unnecessary error
2024-01-20 19:04:14 +01:00
StevenCellist
598228fba0 [LoRaWAN] Fix session restore throwing unnecessary error 2024-01-20 11:03:54 +01:00
jgromes
4c5321e5cb [SX1233] Fix incorrect exclude macro guard (#929) 2024-01-14 21:56:18 +01:00
jgromes
efe303ca69 [LoRaWAN] Properly size fopts buffer 2024-01-14 19:05:52 +01:00
jgromes
8c5ae6d266 [LoRaWAN] Remove variable length array (CI_BUILD_ALL) 2024-01-14 18:25:51 +01:00
jgromes
132aae944f [LoRaWAN] Fix Module* not needed without persistent storage 2024-01-14 18:25:04 +01:00
jgromes
718dae3f35 [CI] Temporarily remove Teensy (CI_BUILD_ALL) 2024-01-14 17:08:54 +01:00
jgromes
3cbf6669df [CI] Temporarily remove Teensy from CI (broken platform) (CI_BUILD_ALL) 2024-01-14 17:00:24 +01:00
jgromes
ea66037c11 [STM32WL] Fix Module pinter (CI_BUILD_ALL) 2024-01-14 16:48:32 +01:00
jgromes
d301aa6a37 [SX126x] Fix txMode made private 2024-01-14 16:48:06 +01:00
jgromes
b2d1306e9e [LoRaWAN] Simplify variable length arrays (CI_BUILD_ALL) 2024-01-14 16:40:23 +01:00
jgromes
1467f98202 [CI] Remove LoRaWAN from megaAVR platform 2024-01-14 16:37:48 +01:00
jgromes
1681eeead3 [LoRaWAN] Fix MAC command initialization 2024-01-14 16:37:01 +01:00
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