Skip to main content

Utilities for TG-LR82, TG-LR92

Project description

TG-LRX2 Utilities

Utilities to generate and publish command and configuration messages for TG-LR82, TG-LR92 LoRaWAN devices.

Example

Command source file:

# lora-script.txt
frame set-cfg 1,601,0,0,current-state,activity
frame set-cfg 1,43200,1,0,mag-switch

Generate downlink messages (lora-pub.yml) to schedule on LoRaWAN network server:

tg-lrx2-encode --script ./lora-script.txt --max-len=50 --out ./lora-pub.yml

Optionally publish to TTN network server from CLI:

tg-lrx2-pub --host ./ttn-app.yml --dl-msg ./lora-pub.yml device-id

Example credential file:

# ttn-app.yml
app-id: "ttn-tag-demo@ttn"
host: "eu1.cloud.thethings.industries"
port: 1883
user: "ttn-tag-demo@ttn"
password: "NNSXS.5G..."

See https://help.mikrotik.com/docs/spaces/UM/pages/181338171/TG-LR for more details.

Changelog

1.1.0

  • Changed tg-lrx2-encode help.
  • Device descriptor "--dev-desc" is not mandatory. Latest descriptor is now distributed with package.
  • Fixed data rule encoding bug. Wrong rule expression encoding if other variable name is part of longer variable name.

1.0.0

  • Initial release

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

tg_lrx2_utils-1.1.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

tg_lrx2_utils-1.1.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file tg_lrx2_utils-1.1.0.tar.gz.

File metadata

  • Download URL: tg_lrx2_utils-1.1.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for tg_lrx2_utils-1.1.0.tar.gz
Algorithm Hash digest
SHA256 530ab32175b19fb05a3ca8e3daeb2bd5af1b978eb37910126f32cf0051ed8fde
MD5 8a774dd4c87ca9ff232f95a29dbdf800
BLAKE2b-256 4e3c60bc4844ffb814258ffa3f37cca57b33b148b2092277280def4ecfe15b18

See more details on using hashes here.

File details

Details for the file tg_lrx2_utils-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: tg_lrx2_utils-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for tg_lrx2_utils-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed21692ccf206b3370b4c319446a674a892cf1d3ab5306dd8731680b4992c5c8
MD5 71cc7a07a3e1495a68db0d0c6bda2e81
BLAKE2b-256 3b864e16ee505e35d709777c45ac8cee1830a0d66706f28869cad8186a8fc2db

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