micropython-lib/micropython/lora/examples/simple_rxtx
Angus Gratton 1957f24020 lora: Add lora modem drivers for SX127x and SX126x.
Includes:
- component oriented driver, to only install the parts that are needed
- synchronous operation
- async wrapper class for asynchronous operation
- two examples with async & synchronous versions
- documentation

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-07-20 23:07:22 +10:00
..
README.md lora: Add lora modem drivers for SX127x and SX126x. 2023-07-20 23:07:22 +10:00
simple_rxtx.py lora: Add lora modem drivers for SX127x and SX126x. 2023-07-20 23:07:22 +10:00
simple_rxtx_async.py lora: Add lora modem drivers for SX127x and SX126x. 2023-07-20 23:07:22 +10:00

README.md

LoRa Simple RX/TX Example

Source Files

  • simple_rxtx.py is a very simple implementation of a program to alternately receive and send LoRa packets.
  • simple_rxtx_async.py is the same program implemented using async Python.

Running the examples

One way to run this example interactively:

  1. Install or "freeze in" the necessary lora modem driver package (lora-sx127x or lora-sx126x) and optionally the lora-async package if using the async examples (see main lora README.md in the above directory for details).
  2. Edit the program you plan to run and fill in the get_modem() function with the correct modem type, pin assignments, etc. for your board (see top-level README).
  3. Change to this directory in a terminal.
  4. Run mpremote run simple_rxtx.py or mpremote run simple_rxtx_async.py as applicable.

Consult the mpremote documentation for an explanation of these commands and the options needed to run two copies of mpremote on different serial ports at the same time.