Python library for the iM282A LoRa radio module based on Semtech SX1280 transceiver

This library allows to communicate with iM282A Radio (LoRa/FLRC/FSK) modules using vendor specific HCI messages and the WiMOD LR BASE+ proprietary firmware.
Currently only TCP serial socket communication is supported.
SensorApp endpoint is not supported (in firmware embedded sensor example application)! Feel free to open an issue if it’s needed.
Most length limitations are not enforced or validated – make sure to read the corresponding vendor documentation of the firmware and module.
Install
python -m pip install im282a
Usage Example
import importlib
from im282a import *
from threading import Thread
def receiver(radio: IM282a):
while True:
try:
radio.receive()
except:
exit(0)
def default_print_handler(header: bytes, data: bytes):
hci = HciMessage.from_bytes(header)
module = importlib.import_module("lib.im282a")
msg_class = getattr(module, hci.msg_class_name())
msg = msg_class.from_bytes(data)
print(msg)
radio1 = IM282A("localhost", 10000, 3)
radio2 = IM282A("localhost", 10001, 3)
radio1.default_handler = default_print_handler
radio2.default_handler =