Skip to main content

Configure and listen Lora modems

Project description

loramdm

loramdm 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, loramdm 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 loramdm '+++;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 loramdm '+++;AT+POWE0;+++;Hello from loramdm1!' -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 loramdm -d/dev/ttyUSB0 -b9600 '+++;AT+POWE0;AT+LEVEL7;AT+MAC10,00;AT+BAUD8;+++'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loramdm-0.0.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loramdm-0.0.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file loramdm-0.0.3.tar.gz.

File metadata

  • Download URL: loramdm-0.0.3.tar.gz
  • Upload date:
  • Size: 3.8 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

Hashes for loramdm-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e9a0cdee7e15546e19a8fe96bc0249ecba5f2aed18ad3cf42b6c80863970e2a6
MD5 1215b4eb17a4f0fbf67e6691cabf9a55
BLAKE2b-256 972dbf07300f2d57dd0a6164ecc832c81d4c482bc6e3bb90c06a9766e1f49692

See more details on using hashes here.

File details

Details for the file loramdm-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: loramdm-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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

Hashes for loramdm-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 74788dce710a684f0822a148e90c550482301f2aab645b36d85d6745949889e0
MD5 32cc78a68953d622721d0504cdab7d1e
BLAKE2b-256 6e2745398279d72d9ece5753a80d07ed19a7848089746c825c39503d9dd710a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page