pgaufillet / SIPy

Meshed LoRa network for SportIdent SRR Orienteering stations based on Pycom LoPy4
GNU General Public License v3.0
7 stars 0 forks source link
lora orienteering sportident

SIPy

SIPy is a project of meshed LoRa network for SportIdent SRR orienteering stations based on Pycom LoPy4.

The communication path is:

SI BSF8-SRR --SRR--> SI SRR module --UART--> LoPy4 --PyMesh--> LoPy4 --WiFi+TCP--> MeOS.

Hardware

Software

Configuration guide

SiPy requires some configuration before being used. These configurations for now can be done only by using the applicative configuration API or directly by editing the file config.json. Using REPL:

config.set("name",<node name>)
config.set("role","border router" | "leaf")
config.save()

It changes the name configuring the owned WLAN SSID to GEC- by default. The border router, in Pymesh terminology, is a node bridging to another network. In the case of SiPy, only one node shall be set up, bridging the LoRa mesh and the IPv4 network used by GEC computers.

A SiPy node provides 2 simultaneous Wifi modes:

The owned wlan is very handy for accessing the administration web page of a node, while the known wlans are rather used as bridges between LoRa mesh and GEC network. Nevertheless, both kind of wlans can be used undifferently for both purposes.

Node administration

The admnistration web pages can be accessed once on the same network that the node, with any web browser at [http://\<node ip address>]().

Architecture

SIPy nodes can be of 2 types:

Leafs and router nevertheless share the same software. During the boot, different parts are activated depending on the local configuration:

2 more threads run on all nodes:

Technical notes

import pycom
pycom.pybytes_on_boot(False)
machine.reset()

It can be reverted with the same commands replacing False by True.