/pycom_mesh

Some basic code examples of the Pycom's proprietary LoRa Mesh network.

Primary LanguagePython

Pymesh micropython code

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].

Mesh basics

The Pymesh LoRa Mesh is implemented using OpenThread. To understand the OpenThread terms and overall functionality, these guides are highly recommended:

A simple CLI:

File: "meshcli.py"

This extremely simple program allows to manually test the OpenThread CLI. A good starting point is this Google codelabs example.

Notes:

  • 'panid' cannot be changed. It is fixed to '1234'
  • no need for ifconfig up and thread start

A simple mesh:

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.

A Lora mesh example:

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