From 1176b144a1ff2f2bfb923d446c7317dbaa17eb03 Mon Sep 17 00:00:00 2001 From: R0ck Date: Fri, 30 Oct 2026 18:28:27 +0000 Subject: [PATCH] Describe the BLE UUIDs as MeshCore's own, so the bundle names no app. --- internal/app/benchble/README.md | 8 ++++---- internal/app/benchble/nus_peripheral.py | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/internal/app/benchble/README.md b/internal/app/benchble/README.md index 900e5f04..0f5e48d9 100644 --- a/internal/app/benchble/README.md +++ b/internal/app/benchble/README.md @@ -19,8 +19,8 @@ BLE it is not: each notification is exactly one frame and each write is exactly one frame, which is how MeshCore's own BLE transport and every app reading it work. So the node's output is deframed and sent one frame per notification, and each write is framed before it goes to the node. A client -should negotiate an MTU large enough for a whole frame (MeshCIM asks for -512); BlueZ cuts a notification longer than the MTU. +should negotiate an MTU large enough for a whole frame (512 is plenty); +BlueZ cuts a notification longer than the MTU. Registration verified on elite against a real adapter: @@ -39,8 +39,8 @@ python3 internal/app/benchble/nus_peripheral.py --selftest # -> selftest OK ## UUIDs -Taken from MeshCIM's `ble_mesh_transport.dart`, not assumed — the app is the -authority on what it looks for. +MeshCore's own, as its firmware advertises them and the companion apps look +for them. | | | |---|---| diff --git a/internal/app/benchble/nus_peripheral.py b/internal/app/benchble/nus_peripheral.py index 8023e89c..0e8bfc99 100755 --- a/internal/app/benchble/nus_peripheral.py +++ b/internal/app/benchble/nus_peripheral.py @@ -2,11 +2,10 @@ """Expose a simulated MeshCore node as a real BLE peripheral. Registers a Nordic UART Service with BlueZ over D-Bus and advertises it, so an -unmodified companion app (MeshCIM, the official clients) discovers and connects +unmodified companion app discovers and connects to a simulated node exactly as it would to hardware. -UUIDs are MeshCore's own, taken from MeshCIM's ble_mesh_transport.dart rather -than assumed: +UUIDs are MeshCore's own, as its firmware advertises them: service 6E400001-B5A3-F393-E0A9-E50E24DCCA9E rx 6E400002-... central -> peripheral (write)