Configure and listen Lora modems
Project description
loramodem
loramodem is a command-line utility for configuring and communicating with LoRa modems (for example, the DX-LR02) over a serial connection.
Unlike standard serial terminal programs such as minicom or pySerial's miniterm, which can be inconvenient for issuing AT commands on Linux, loramodem automates modem configuration and message exchange. It allows you to:
- Execute one or more AT commands.
- Send text messages.
- Listen for incoming messages.
- Combine configuration commands and data transmission in a single invocation.
Usage
Commands are supplied as a semicolon-separated sequence. The special +++ command switches the modem into AT command mode (or back to data mode, depending on the modem state).
Example 1: Execute an AT command
Display the modem's list of supported AT commands:
python -m loramodem '+++;AT+HELP;+++'
Example 2: Configure the modem, send a message, and listen
Reduce the transmission power to 0 dBm, return to data mode, send a message, and continue listening for incoming messages:
python -m loramodem '+++;AT+POWE0;+++;Hello from loramodem1!' -l
Example 3: Configure modem for minimal transmitting power (0dBm),
max radio baud rate 13 kBaud (LEVEL7), ID 10.00, and serial communication speed 115200 baud:
python -m loramodem -d/dev/ttyUSB0 -b9600 '+++;AT+POWE0;AT+LEVEL7;AT+MAC10,00;AT+BAUD8;+++'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loramdm-0.0.2.tar.gz.
File metadata
- Download URL: loramdm-0.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d51581837cf11a8c7956b373dead4d6eb3700cea4a7f2c4514c5d1f9807ffcb7
|
|
| MD5 |
ef1b601e8876f2b6ed2fe5e6181d6692
|
|
| BLAKE2b-256 |
00cdb7d0abd8e45c11651a53db18d9f64f5529d5601c10cd659627c631b5ff2e
|
File details
Details for the file loramdm-0.0.2-py3-none-any.whl.
File metadata
- Download URL: loramdm-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
273e102c2e81afc9784b5054b71a87e6cbc76a1b8f96307eef3258bf69363fc7
|
|
| MD5 |
a131ace54f4d295b0e4a8ce84b33cf63
|
|
| BLAKE2b-256 |
de565ed4ae84704342c40fbdfaa926a35696a3122c8ac9a336422468ad9d134c
|