Форк репозитария VBart для meshcoretel.ru с моими добавками

João Brázio fcfbb458f8 Refactor environment names and build flags for RAK variants 6 miesięcy temu
.devcontainer 9665feeebf Update runArgs in devcontainer.json 6 miesięcy temu
.github 45a88dca3d * .yml files, permissions: write 1 rok temu
.vscode 6c7efdd0f6 Initial commit 1 rok temu
arch 1a3f7a7ea9 Fix BLE semaphore leak in Bluefruit library 8 miesięcy temu
bin 13bc6e4178 setup automated firmware builds with github actions 1 rok temu
boards f7e54ea797 Add LilyGO T-Beam 1W Support 6 miesięcy temu
docs c0b81b9ad8 Clean up comments on kiss noise floor changes. 6 miesięcy temu
examples c1c9848569 Merge pull request #1596 from jbrazio/2026/t114-sensors 6 miesięcy temu
include 6c7efdd0f6 Initial commit 1 rok temu
lib 03458269ac moved nrf sdk headers to ./lib/ and added Repeater envs for t114 & t-echo 1 rok temu
logo 22058c0ee5 add logo files 1 rok temu
src f7e92a7cd1 Merge pull request #1398 from Socalix/heltecv4-register1 6 miesięcy temu
variants fcfbb458f8 Refactor environment names and build flags for RAK variants 6 miesięcy temu
.clang-format 4e2786c516 Re-applying 73a7a96, formatting, MyMesh reformat 1 rok temu
.envrc 21564ae494 add default.nix/.envrc for automagic platformio dev environment on NixOS 1 rok temu
.gitignore 7ea751d3a0 Add venv dirs to .gitignore 7 miesięcy temu
README.md c786cfe613 Add KISS Modem firmware 6 miesięcy temu
RELEASE.md bb8082d966 add release docs 1 rok temu
build.sh a48b185189 DISABLE_DEBUG=1 env variable to build.sh 7 miesięcy temu
build_as_lib.py 0959e64d11 lib_build: add UI_FLAVOR and some cleanup 11 miesięcy temu
create-uf2.py 24ed5b377f added custom pio task "Create UF2 file" 9 miesięcy temu
default.nix 24ef375fc7 default.nix: add python3 to the shell 1 rok temu
library.json 750e955f19 Update library.json to latest libs and version 9 miesięcy temu
license.txt e4ec9aec0b * tidy ups 1 rok temu
merge-bin.py e58d866949 * merge-bin.py script 1 rok temu
platformio.ini 84e68cf4cb initial port of M5Stack Unit C6L, update pioarduino to newer bugfix release 6 miesięcy temu

README.md

About MeshCore

MeshCore is a lightweight, portable C++ library that enables multi-hop packet routing for embedded projects using LoRa and other packet radios. It is designed for developers who want to create resilient, decentralized communication networks that work without the internet.

🔍 What is MeshCore?

MeshCore now supports a range of LoRa devices, allowing for easy flashing without the need to compile firmware manually. Users can flash a pre-built binary using tools like Adafruit ESPTool and interact with the network through a serial console. MeshCore provides the ability to create wireless mesh networks, similar to Meshtastic and Reticulum but with a focus on lightweight multi-hop packet routing for embedded projects. Unlike Meshtastic, which is tailored for casual LoRa communication, or Reticulum, which offers advanced networking, MeshCore balances simplicity with scalability, making it ideal for custom embedded solutions., where devices (nodes) can communicate over long distances by relaying messages through intermediate nodes. This is especially useful in off-grid, emergency, or tactical situations where traditional communication infrastructure is unavailable.

⚡ Key Features

  • Multi-Hop Packet Routing
    • Devices can forward messages across multiple nodes, extending range beyond a single radio's reach.
    • Supports up to a configurable number of hops to balance network efficiency and prevent excessive traffic.
    • Nodes use fixed roles where "Companion" nodes are not repeating messages at all to prevent adverse routing paths from being used.
  • Supports LoRa Radios – Works with Heltec, RAK Wireless, and other LoRa-based hardware.
  • Decentralized & Resilient – No central server or internet required; the network is self-healing.
  • Low Power Consumption – Ideal for battery-powered or solar-powered devices.
  • Simple to Deploy – Pre-built example applications make it easy to get started.

🎯 What Can You Use MeshCore For?

  • Off-Grid Communication: Stay connected even in remote areas.
  • Emergency Response & Disaster Recovery: Set up instant networks where infrastructure is down.
  • Outdoor Activities: Hiking, camping, and adventure racing communication.
  • Tactical & Security Applications: Military, law enforcement, and private security use cases.
  • IoT & Sensor Networks: Collect data from remote sensors and relay it back to a central location.

🚀 How to Get Started

For developers;

The Simple Secure Chat example can be interacted with through the Serial Monitor in Visual Studio Code, or with a Serial USB Terminal on Android.

⚡️ MeshCore Flasher

We have prebuilt firmware ready to flash on supported devices.

  • Launch https://flasher.meshcore.co.uk
  • Select a supported device
  • Flash one of the firmware types:
    • Companion, Repeater or Room Server
  • Once flashing is complete, you can connect with one of the MeshCore clients below.

📱 MeshCore Clients

Companion Firmware

The companion firmware can be connected to via BLE, USB or WiFi depending on the firmware type you flashed.

Repeater and Room Server Firmware

The repeater and room server firmwares can be setup via USB in the web config tool.

They can also be managed via LoRa in the mobile app by using the Remote Management feature.

🛠 Hardware Compatibility

MeshCore is designed for devices listed in the MeshCore Flasher

📜 License

MeshCore is open-source software released under the MIT License. You are free to use, modify, and distribute it for personal and commercial projects.

Contributing

Please submit PR's using 'dev' as the base branch! For minor changes just submit your PR and I'll try to review it, but for anything more 'impactful' please open an Issue first and start a discussion. Is better to sound out what it is you want to achieve first, and try to come to a consensus on what the best approach is, especially when it impacts the structure or architecture of this codebase.

Here are some general principals you should try to adhere to:

  • Keep it simple. Please, don't think like a high-level lang programmer. Think embedded, and keep code concise, without any unnecessary layers.
  • No dynamic memory allocation, except during setup/begin functions.
  • Use the same brace and indenting style that's in the core source modules. (A .clang-format is prob going to be added soon, but please do NOT retroactively re-format existing code. This just creates unnecessary diffs that make finding problems harder)

Road-Map / To-Do

There are a number of fairly major features in the pipeline, with no particular time-frames attached yet. In very rough chronological order:

  • [X] Companion radio: UI redesign
  • Repeater + Room Server: add ACL's (like Sensor Node has)
  • Standardise Bridge mode for repeaters
  • Repeater/Bridge: Standardise the Transport Codes for zoning/filtering
  • Core + Repeater: enhanced zero-hop neighbour discovery
  • Core: round-trip manual path support
  • Companion + Apps: support for multiple sub-meshes (and 'off-grid' client repeat mode)
  • Core + Apps: support for LZW message compression
  • Core: dynamic CR (Coding Rate) for weak vs strong hops
  • Core: new framework for hosting multiple virtual nodes on one physical device
  • V2 protocol spec: discussion and consensus around V2 packet protocol, including path hashes, new encryption specs, etc

📞 Get Support

  • Report bugs and request features on the GitHub Issues page.
  • Find additional guides and components on my site.
  • Join MeshCore Discord to chat with the developers and get help from the community.

RAK Wireless Board Support in PlatformIO

Before building/flashing the RAK4631 targets in this project, there is, unfortunately, some patching you have to do to your platformIO packages to make it work. There is a guide here on the process: RAK Wireless: How to Perform Installation of Board Support Package in PlatformIO

After building, you will need to convert the output firmware.hex file into a .uf2 file you can copy over to your RAK4631 device (after doing a full erase) by using the command uf2conv.py -f 0xADA52840 -c firmware.hex with the python script available from: GitHub: Microsoft - uf2