Skip to main content

Interface for RAK811 LoRa module

Project description

pyrak811v2

RAK811v2 Python 3 library for use with the Raspberry Pi LoRa pHAT.

The library exposes the AT commands as described in the RAK811 Lora AT Command User Guide V1.0 found in the DOCS folder of this repository. This applies to LoRa modules with firmware version V3.0.0.13.T3 or later.

The AT command structure is signifficantly different from that in previous versions of the firmware.

This library is based heavily on pyrak811 https://github.com/AmedeeBulle/pyrak811 but doesn't include the command line interface (CLI) functionality.

Peripheral Requirements A Raspberry Pi! A RAK811 LoRa module (PiSupply IoT LoRa Node pHAT for Raspberry Pi ) On the Raspberry Pi the hardware serial port must be enabled and the serial console disabled (use raspi-config) The user running the application must be in the dialout and gpio groups (this is the default for the pi user)

The Python script loraTest.py is an eaxmple of a script that when configured with appropriate identifiers will execute a number of AT commands including joining to the network (OTA or ABP) and sending some data and waiting for confirmaton.

You may use the Python logging module to control logging by the library. Currently setting the log level to DEBUG will display the AT commands sent to the module and the raw respnse received from the module. See loraTest.py for an example of enabling logging DEBUG level output to the console. For further information regards configuring Python logging see the online documentation for the logging library.

Install the rak811v2 package The package is installed from PyPI:

sudo pip3 install rak811v2 The pip3 command is part of the python3-pip package. If it is missing on your system, run:

sudo apt-get install python3-pip

PiSupply provides detailed instructions for configuring your Raspberry Pi.

This represents my first foray into both git and Python so appologies in advance for anything missing etc that is normally provided.

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

rak811v2-0.0.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

rak811v2-0.0.2-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file rak811v2-0.0.2.tar.gz.

File metadata

  • Download URL: rak811v2-0.0.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/2.7.16

File hashes

Hashes for rak811v2-0.0.2.tar.gz
Algorithm Hash digest
SHA256 715b0da63746c87c6802a3dff0686c0ecc1641e7471ab6267b89ab319bdf144c
MD5 f27cfd1366c7048dd301005d1958bc18
BLAKE2b-256 ddb79ceaa9ce3783840507782e87c9a0bd875556cd194a43672e61c4d5774319

See more details on using hashes here.

File details

Details for the file rak811v2-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: rak811v2-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/2.7.16

File hashes

Hashes for rak811v2-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6eb88f7c58ee76cee2a447c60df3debad8bd6562ee4b3bf4882f8e6cb2aba727
MD5 5a27f19b41ab105b54973b06cbe0d396
BLAKE2b-256 e90822f2be48e01cd4ac04eeb3dd1baf456b3f972622a14cbe41fd0fbe782ac8

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