The main objective of this work will be to develop a communications system that allows multimedia traffic of any size to be sent over long distances using the LoRa RAW (pure LoRa, no LoRaWAN) channel.
This is implemented for the Pycom LoPy 4. The LoPy setups a WiFi Access Point to be able to connect to an Android application to manage the sending of multimedia files and once receive, it is forwarded to another LoPy 4.
- Install NojeJS depending on the operating system you have using https://nodejs.org/es/download/ or with NVM https://github.com/nvm-sh/nvm
- Install the Pymakr tool for Atom as described here: https://docs.pycom.io/gettingstarted/software/atom/
- Clone this repository:
git clone https://github.com/cristiantrapero/tfm-node.git
- Open this project in Atom
- Connect the LoPy 4 to the computer USB
- Select
Upload project to device
- Wait until load the project in the LoPy 4
- Open the
main.py
file in the Atom editor and selectRun selected file
in the Pymakr bar. - Connect the Android application to the sender node and take the image and send it. The application is located in: https://github.com/cristiantrapero/tfm-android
The repository is structured as follow:
- boot.py: Disables WiFi to avoid interferences.
- main.py: Main function. Setup BLE, LoRa and all necessary to run the node.
- www: Folder that contains html files.
lib
:loractp.py
: Contains the Lora Content Transfer Protocol (LoRaCTP) with his API.MicroWebSrv2
: HTTP Web server library. Github: https://github.com/jczic/MicroWebSrv2database.py
: Manages the messages database.
LoPy4 firmware version:
- Pycom MicroPython: 1.20.2.r6 [v1.11-c5a0a97] released at 2021-10-28.
- Pybytes Version: 1.7.1
Pysense v1.0 firmware version:
- DFU version: 0.0.8 available at https://docs.pycom.io/updatefirmware/expansionboard/