Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions internal/app/benchble/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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.

| | |
|---|---|
Expand Down
5 changes: 2 additions & 3 deletions internal/app/benchble/nus_peripheral.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down