You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
f4exb 0282a596ca Publish version v8.0.0 1 month ago
..
CMakeLists.txt meshcore: add MeshCore protocol RX/TX channel plugins 5 months ago
meshcoremod.cpp Merge branch 'master' into connections 2 months ago
meshcoremod.h ChannelAPI: Add getChannelSampleRate and getAudioSampleRate. 2 months ago
meshcoremodbaseband.cpp tree wide: Fix message ownership and reporting for unhandled queue messages 2 months ago
meshcoremodbaseband.h meshcore: add MeshCore protocol RX/TX channel plugins 5 months ago
meshcoremodencoder.cpp meshcoremodencoder: Initialize MeshcoreModEncoder members 2 months ago
meshcoremodencoder.h meshcore: add MeshCore protocol RX/TX channel plugins 5 months ago
meshcoremodencoderlora.cpp meshcoremodencoderlora: remove unused variable 2 months ago
meshcoremodencoderlora.h meshcore: add MeshCore protocol RX/TX channel plugins 5 months ago
meshcoremodgui.cpp channel: fix bandwidth index validation 4 months ago
meshcoremodgui.h meshcore: add MeshCore protocol RX/TX channel plugins 5 months ago
meshcoremodgui.ui meshcore: add MeshCore protocol RX/TX channel plugins 5 months ago
meshcoremodplugin.cpp Publish version v8.0.0 1 month ago
meshcoremodplugin.h meshcore: add MeshCore protocol RX/TX channel plugins 5 months ago
meshcoremodsettings.cpp meshcore: add MeshCore protocol RX/TX channel plugins 5 months ago
meshcoremodsettings.h meshcore: add MeshCore protocol RX/TX channel plugins 5 months ago
meshcoremodsource.cpp meshcoremodsource: Initialize MeshcoreModSource level members 2 months ago
meshcoremodsource.h meshcore: add MeshCore protocol RX/TX channel plugins 5 months ago
meshcoremodwebapiadapter.cpp meshcore: add MeshCore protocol RX/TX channel plugins 5 months ago
meshcoremodwebapiadapter.h meshcore: add MeshCore protocol RX/TX channel plugins 5 months ago
readme.md docs: update readmes to reflect dedicated MeshCore SWG schemas (PR #2784) 5 months ago

readme.md

MeshCore modulator plugin

Introduction

This plugin codes and modulates a transmission signal based the LoRa Chirp Spread Spectrum (CSS) modulation scheme with a MeshCore payload.

MeshCore (https://github.com/meshcore-dev/MeshCore, MIT) is a mesh networking protocol distinct from Meshtastic. The two share LoRa as the PHY layer but differ at the packet layer (envelope, addressing, crypto, routing). This plugin builds and transmits MeshCore wire packets — ADVERT, TXT_MSG, ANON_REQ, GRP_TXT, ACK — using vendored crypto (Monocypher for Ed25519 + X25519, tiny-AES-c for AES-128-ECB, Qt SHA-256 + hand-rolled HMAC-SHA256).

The encode pipeline is derived from the Meshtastic modulator (LoRa-SDR-based, configurable BW/SF/CR/sync). MeshCore EU defaults are baked in: 869.618 MHz / 62.5 kHz / SF 8 / CR 4/8, sync word 0x12.

This is a companion to the MeshCore demodulator plugin (channelrx/demodmeshcore) and the standalone lora_trx headless transceiver in gr4-lora.

Status

Functional surfaces:

  • TX of ADVERT / TXT_MSG / ANON_REQ / GRP_TXT / ACK / PATH / CTRL via the MESHCORE: command syntax below.
  • LoRa PHY with MeshCore EU radio defaults.
  • Identity store: an Ed25519 seed is persisted under the application support directory, auto-loaded by MeshcoreMod, and used to sign outgoing ADVERTs. Encoder output is bit-exact against gr4-lora's meshcore_tx.py::build_advert_raw reference for the same seed and timestamp.
  • REST sendNow action (SWGMeshcoreModActions) for programmatic single-packet TX.
  • Radio parameters (BW, SF, CR, preamble length, frequency offset) exposed via combo controls. BW combo includes 62500 / 125000 / 250000 Hz — the bandwidths used by the MeshCore firmware CLI's set radio freq_MHz,bw_kHz,sf,cr command.
  • Preset combo populated with the well-known MeshCore regional defaults (EU_NARROW, EU_LONG_RANGE, EU_MEDIUM_RANGE, AU, AU_VICTORIA, CZ_NARROW, EU_433_LONG_RANGE, NZ, NZ_NARROW, PT_433, PT_868, CH, USA, VN, USER). Default is EU_NARROW (869.618 MHz / SF 8 / BW 62.5 kHz / CR 4/8). Selecting a preset applies its freq/BW/SF/CR via modemmeshcore::command::applyMeshcorePreset.
  • The Region and Channel controls are hidden: region is implicit in the preset frequency, and MeshCore has no numbered Channel concept.

Outstanding:

  • WebAPI schema now uses dedicated SWGMeshcoreModSettings / SWGMeshcoreModReport / SWGMeshcoreModActions schemas (no longer a placeholder).

MESHCORE: command syntax

Send a MeshCore wire packet by setting the channel's "Text message" to a line starting with MESHCORE::

MESHCORE: type=advert; seed=<hex64>; name=NodeA
MESHCORE: type=txt_msg; seed=<hex64>; dest=<hex64>; text=Hello
MESHCORE: type=anon_req; seed=<hex64>; dest=<hex64>; data=<hex>
MESHCORE: type=grp_txt; channel=public; text=Hello group
MESHCORE: type=ack; dest=<hex64>; msg_hash=<hex8>

Optional radio overrides on any line: sf=8, bw=62500, cr=8 (for 4/8), sync=0x12, freq=869.618M, preamble=8.

References