Commit graph

77 commits

Author SHA1 Message Date
jgromes
882ec98563 [SX126x] Added Module overrides for all Arduino core functions 2020-08-01 16:34:27 +02:00
jgromes
96405b938d [SX126x] Added methods to manually set LoRa LDRO 2020-07-08 18:52:08 +02:00
jgromes
b21f93342e [SX126x] Synced parameters of all LoRa modules 2020-07-06 11:48:25 +02:00
jgromes
c8f4698a26 [SX126x] Synced parameters of all FSK modules 2020-07-06 11:13:37 +02:00
jgromes
5aff492323 [SX126x] Changed shaping datatype to uint8_t 2020-07-06 08:52:48 +02:00
jgromes
fed86b0742 [SX126x] Fixes from cppcheck scan 2020-07-04 14:32:29 +02:00
jgromes
58ddfb8b51 [SX126x] Reworked driver exclusion 2020-06-30 10:43:41 +02:00
jgromes
aa4f4c9ab4 [SX126x] Added SPI delay for SAMD cores (#153) 2020-06-20 21:13:50 +02:00
jgromes
06c254bc6e [SX126x] Added missing RF switch control 2020-06-20 17:04:17 +02:00
jgromes
bb7108a52b [SX126x] Fixed RF switch state in Rx mode 2020-06-19 08:23:28 +02:00
jgromes
d710a85985 [SX126x] Implemented RF switch control (#153) 2020-06-18 16:38:30 +02:00
jgromes
d005112407 [SX126x] Added digital pin to interrupt macro 2020-05-11 20:32:32 +02:00
jgromes
cc90345342 [SX126x] Minor formatting fixes 2020-04-07 13:27:55 +02:00
jgromes
a46a1f5f1c [SX126x] Added missing calls to yield 2020-04-01 14:01:27 +02:00
jgromes
7f083bb083 [SX126x] Using range check macro 2020-03-30 19:31:02 +02:00
jgromes
f1f995e9d8 [SX126x] Fixed typos 2020-03-22 08:12:38 +01:00
Callan Bryant
6c99486343
Swap delayMicroseconds() to delay where appropriate
See https://github.com/jgromes/RadioLib/issues/126 for context.
2020-03-16 12:12:06 +00:00
jgromes
898696fb52 [SX126x] Set default whitener initial value to 0x1FF for SX127x FSK 2020-03-14 13:34:31 +01:00
jgromes
4fa214a0fd [SX126x] Added data encoding method 2020-02-11 14:29:19 +01:00
jgromes
318de480ab Reworked PhysicalLayer to accept frequency step directly 2020-02-07 18:31:51 +01:00
jgromes
d99e050b97 [SX126x] Fixed SNR calculation for SNR les than 0 2020-02-06 13:30:51 +01:00
jgromes
235fdb1637 [SX126x] Fixed implicit timeout workaround applied in explicit mode 2020-02-02 11:13:23 +01:00
Callan Bryant
c49323fa78
Prevent spurious resets on some boards
My receiver was failing to receive after a random amount of time (2 - 60
seconds). I discovered some power supply issues (DC-DC converter
related) that turned out to be another cause of the same problem but
only on some boards.

The reset procedure for most of the boards that RadioLib can drive
changes the pin mode of the reset line to an input after reset,
effectively tri-stating the output. I had seen this but dismissed it
after checking that the SX126x has a pullup on NRST meaning this was not
an issue.

The receiver I have produced uses a level converter to translate the 5v0
signals to 3v3. The level converters are not themselves pulled up or
down, which means when a pin is connected in a high-impedance input
state it will float around possibly randomly.

This can cause spurious resets on my board, and possibly others. I
remembered the reset procedure when I realised I could reproduce the
problem by rubbing the board on my shirt, probably causing some ESD to
trigger a change on the reset line.

This PR simply removes the lines that change the pinmode to input after
reset leaving it as an output which is hard-driven and the safest way. I
assume that the current behaviour was chosen to decrease the chance of a
conflict if used incorrectly.
2020-01-29 15:00:36 +00:00
Callan Bryant
81fe2d09f8
[SX126x] Parameter to use LDO in begin()
See 4231edee70
for context.
2020-01-28 14:13:20 +00:00
jgromes
ff97f3957b [SX126x] Added method to get currently configured OCP 2020-01-27 09:30:44 +01:00
jgromes
f336922013 [SX126x] Added missing OCP range check 2020-01-27 09:13:39 +01:00
jgromes
362dde44b0 [SX126x] Added SPI transaction delay for fast platforms 2020-01-26 18:55:04 +01:00
jgromes
4231edee70 [SX126x] Added missing call to setRegulator 2020-01-26 18:54:38 +01:00
jgromes
f316920bab [SX126x] Removed setOptimalHiPowerPaConfig 2020-01-26 15:19:08 +01:00
jgromes
2ef331ed9c [SX126x] Added public methods to set regulator mode 2020-01-26 15:11:41 +01:00
jgromes
e800a0584c [SX126x] Added missing assertion 2020-01-26 09:06:09 +01:00
jgromes
58640e2801 [SX126x] Added option to read data even after CRC error 2020-01-21 15:29:05 +01:00
jgromes
75335bdff3 [SX126x] Added missing default packet mode in FSK 2020-01-21 14:48:52 +01:00
jgromes
e890e4f474 [SX126x] Added missing calls to yield 2020-01-19 13:25:25 +01:00
jgromes
d892320637 [SX126x] Added option to set LoRa sync word control bits 2020-01-14 18:08:45 +01:00
jgromes
5728bf4124 [SX126x] Added assert macro 2020-01-13 16:37:21 +01:00
jgromes
bc31827505 Minor formatting fixes 2020-01-13 15:22:57 +01:00
Callan Bryant
17e3f47c2f
correct return types 2020-01-13 12:15:58 +00:00
Callan Bryant
e441e101ff
check modem type when header type set 2020-01-13 12:10:04 +00:00
Callan Bryant
3ac63e8c95
remove redundant call to setPacketParams 2020-01-13 09:55:35 +00:00
Callan Bryant
a4e087daf5
edit getTimeOnAir to support implicit mode 2020-01-10 14:31:21 +00:00
Callan Bryant
8d2c98339f
fix default args, scoping 2020-01-10 14:20:42 +00:00
Callan Bryant
07429986c2
set implicit params with extra SPI call where required 2020-01-10 14:11:28 +00:00
Callan Bryant
870a135b15
make sure _implicitLen is passed where appropriate 2020-01-10 11:54:28 +00:00
Callan Bryant
3bea627df4
switch to recoding implicit length for use JIT 2020-01-10 09:38:49 +00:00
Callan Bryant
51ce45220b
pass len as param to implicitHeader 2020-01-09 16:08:00 +00:00
Callan Bryant
b85e7474b3
specify _headerType with every call to setPacketParams 2020-01-09 15:16:52 +00:00
Callan Bryant
562ed02eab
add missing parameter to setHeaderType 2020-01-09 14:54:15 +00:00
Callan Bryant
28671fb01a
implement explicitHeader/implicitHeader 2020-01-09 14:53:18 +00:00
Callan Bryant
7ab5bf7328
setHeaderType 2020-01-09 14:45:40 +00:00