This repository cointains examples of the use of Pycom's proprietary LoRa Mesh network (Pymesh).
The code included in this repository was created and tested using a Lopy4, using the firmware release [1.20.0.rc11].
The Pymesh LoRa Mesh is implemented using OpenThread. To understand the OpenThread terms and overall functionality, these guides are highly recommended:
- What is Thread?
- Node Roles and Types
- IPv6 Addressing (especially, RLOC unicast address)
File: "meshcli.py"
This extremely simple program allows to manually test the OpenThread CLI. A good starting point is this Google codelabs example.
- 'panid' cannot be changed. It is fixed to '1234'
- no need for
ifconfig up
andthread start
File: "simplemesh.py"
A two nodes mesh. Execute the code in two different LoPys. The node will start building the mesh. Once nodes see each other start, they print the neighbours table and stop.
Folder: "loramesh"
; execute file themain.py
Creates a mesh, and when done every node sends a PING and UDP packets to all neighbors. Based on this https://docs.pycom.io/tutorials/lora/lora-mesh.html