Skip to content

vshymanskyy/lbm-micropython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lbm-micropython

LoRa Basic Modem integration for MicroPython

Important

This is a Proof-of-Concept, not ready for actual use.

Running

Copy lbm.mpy to device:

mpremote cp lbm.mpy :

In MicroPython REPL:

import lbm
import asyncio

lora = lbm.LoRaWAN()

async def lora_task():
    while True:
        n = lora.poll()
        await asyncio.sleep_ms(n)

asyncio.run(asyncio.gather(
    lora_task(),
))

TODO

  • Fix build
  • Create basic module API
  • Attach LBM builtin driver to MicroPython machine.SPI / machine.Pin
  • Class A device
  • TBD: Attach LBM LoRaWAN stack to MicroPython LoRa drivers
  • Allow static .bss variables