-
Notifications
You must be signed in to change notification settings - Fork 21
Home
LoRa-RF Python is a library for basic transmitting and receiving data using LoRa module with Semtech SX126x series or LLCC68. The library works by interfacing SPI port and some GPIO pins under linux kernel. Support configuring frequency, modulation parameter, transmit power, receive gain and other RF parameters on both LoRa and FSK modulation also support handling transmit and receive using interrupt signal.
Theoritically all LoRa modules using SX126x series (SX1261, SX1262, SX1268) or LLCC68 will compatible using this library. Some LoRa module which already tested and confirmed compatible are:
- Ebyte: E22-400M22S, E22-900M22S, E22-400M30S, E22-900M30S
Currently only Raspberry pi zero, zero W, 3A, 3B, 3B+, 4A, and 4B supported as host controller. Support for other single board computer will be added in the future. The Linux distro already tested using this library are:
- Raspberry pi OS
- Ubuntu Core 32-bit
In order to connect to a LoRa module, SPI port must be enabled. For Raspberry pi OS, this is done by set SPI interface enable using raspi-config or edit /boot/config.txt
by adding following line.
dtparam=spi=on
Using terminal run following command.
pip3 install LoRaRF
To using latest update of the library, you can clone then build python package manually. Using this method require setuptools and wheel module.
git clone https://github.com/chandrawi/LoRaRF-Python.git
cd LoRaRF-Python
python3 setup.py bdist_wheel
pip3 install dist/LoRaRF-1.3.0-py3-none-any.whl