You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support depends on hardware support in MicroPython.
Also includes some tweaks in the SX126x base class, to deal with slightly
different platform configuration on STM32WL55, longer timeouts, tx_ant
options, etc.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <[email protected]>
Note: As this is an internal peripheral of the STM32WL55 microcontroller,
133
+
support also depends on MicroPython being built for a board based on this
134
+
microcontroller.
135
+
116
136
### Notes about initialisation
117
137
118
138
* See below for details about the `lora_cfg` structure that configures the modem's
@@ -157,6 +177,15 @@ Here is a full list of parameters that can be passed to both constructors:
157
177
|`lora_cfg`| No | If set to an initial LoRa configuration then the modem is set up with this configuration. If not set here, can be set by calling `configure()` later on. ||
158
178
|`ant`_sw | No | Optional antenna switch object instance, see below for description. ||
|`lora_cfg`| No | If set to an initial LoRa configuration then the modem is set up with this configuration. If not set here, can be set by calling `configure()` later on. |
185
+
|`tcxo_millivolts`| No | Defaults to 1700. The voltage supplied on pin PB0_VDDTCXO. See `dio3_tcxo_millivolts` above for details, this parameter has the same behaviour. |
186
+
| ant_sw | No | Defaults to an instance of `lora.NucleoWL55RFConfig` class for the NUCLEO-WL55 development board. Set to `None` to disable any automatic antenna switching. See below for description. |
187
+
188
+
160
189
## Modem Configuration
161
190
162
191
It is necessary to correctly configure the modem before use. At minimum, the
@@ -383,10 +412,11 @@ Type: `str`, not case sensitive
383
412
384
413
Default: RFO_HF or RFO_LF (low power)
385
414
386
-
SX127x modems have multiple antenna pins for different power levels and
387
-
frequency ranges. The board/module that the LoRa modem chip is on may have
388
-
particular antenna connections, or even an RF switch that needs to be set via a
389
-
GPIO to connect an antenna pin to a particular output (see `ant_sw`, below).
415
+
SX127x modems and STM32WL55 microcontrollers have multiple antenna pins for
416
+
different power levels and frequency ranges. The board/module that the LoRa
417
+
modem chip is on may have particular antenna connections, or even an RF switch
418
+
that needs to be set via a GPIO to connect an antenna pin to a particular output
419
+
(see `ant_sw`, below).
390
420
391
421
The driver must configure the modem to use the correct pin for a particular
392
422
hardware antenna connection before transmitting. When receiving, the modem
@@ -396,7 +426,7 @@ A common symptom of incorrect `tx_ant` setting is an extremely weak RF signal.
0 commit comments