Skip to content

Bluetooth Mesh Daemon

Brian Gix linux-bluetooth 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest14 patches 1 replyIn review
  2. v614 patches 0 repliesSuperseded
  3. v514 patches 6 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v414 patches2 repliesSuperseded
v314 patches0 repliesSuperseded
v29 of 11 patches0 repliesSuperseded
v15 of 7 patches0 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14mesh: Shared private meshd interfacesmesh/crypto.h mesh/display.h mesh/friend.h +6 more+1009 -00 replies
2/14mesh: Mesh crypto supportmesh/crypto.c+1545 -00 replies
3/14mesh: Infrastructure for Mesh daemonmesh/display.c mesh/mesh-io-generic.c mesh/mesh-io.c+912 -00 replies
4/14mesh: Initial Mesh Friendship supportmesh/friend.c+1116 -00 replies
5/14mesh: Provisioning logic for meshmesh/prov.c mesh/provision.c+1881 -00 replies
6/14mesh: Upper and Lower mesh transportmesh/net.c+3639 -00 replies
7/14mesh: Add Accessors to Transport layer datamesh/net.c+549 -00 replies
8/14mesh: Header files for mesh access layer and utilitiesmesh/agent.h mesh/appkey.h mesh/cfgmod.h +6 more+600 -00 replies
9/14mesh: Source files for mesh access layer and utilitiesmesh/agent.c mesh/appkey.c mesh/btmesh.c +5 more+2893 -00 replies
10/14mesh: Source code for handling access layer mux/demuxmesh/model.c+1274 -00 replies
11/14mesh: Mesh config server modelmesh/cfgmod-server.c+1194 -00 replies
12/14mesh: Read and write mesh configuration in JSON formatmesh/mesh-db.c mesh/mesh-db.h+1504 -00 replies
13/14mesh: Sample device composition in JSON formatmesh/config/composition.json+44 -00 replies
14/14Makefile for meshdMakefile.am Makefile.mesh+42 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH BlueZ v7 00/14] Bluetooth Mesh Daemon

Version 7 of this patch-set removes redundent instances of mesh/hci.[ch] and uses the shared version of same. Also uses l_debug() primitive for the output of print_packet().

Otherwise:
This is our starting point for creating a stand-alone Mesh Daemon.

The Mesh Daemon (meshd) is intended to eventually co-exist beside the Bluetooth Daemon (bluetoothd), and either daemon may exist without the other. The Mesh Daemon will need full control/ownership of a BT Controller that supports at least Core Spec revision 4.0 or greater. It works strictly over the Advertising bearer, but we have plans to extend it to support Mesh Proxy Server over GATT, at which point it will require support from bluetoothd.

The current meshd, and it's companion Non-Background Command-line version btmesh, exists fully within user-space, but requires an HCI_USER socket to the kernel controler, and currently requires root privledges.

This initial revision is intended to operate as a standard (non-provisioner) node. It includes the Configuration Server model, and if it cannot find it's Mesh Configuration, will look for it's Composition data, and start up as unprovisioned, and accept an incoming PB-ADV provisioning session.

Two of us (Inga and Brian) have been working on this, and will be the initial supporters and maintainers, and we gladly invite other interested parties to participate.

Brian Gix (7):
mesh: Shared private meshd interfaces
mesh: Mesh crypto support
mesh: Infrastructure for Mesh daemon
mesh: Initial Mesh Friendship support
mesh: Provisioning logic for mesh
mesh: Upper and Lower mesh transport
mesh: Add Accessors to Transport layer data

Inga Stotland (7):
mesh: Header files for mesh access layer and utilities
mesh: Source files for mesh access layer and utilities
mesh: Source code for handling access layer mux/demux
mesh: Mesh config server model
mesh: Read and write mesh configuration in JSON format
mesh: Sample device composition in JSON format Makefile for meshd

 Makefile.am                  |    1 +
 Makefile.mesh                |   41 +
 mesh/agent.c                 |  229 +++
 mesh/agent.h                 |   42 +
 mesh/appkey.c                |  536 ++++++
 mesh/appkey.h                |   43 +
 mesh/btmesh.c                |  176 ++
 mesh/cfgmod-server.c         | 1194 ++++++++++++
 mesh/cfgmod.h                |   98 +
 mesh/config/composition.json |   44 +
 mesh/crypto.c                | 1545 ++++++++++++++++
 mesh/crypto.h                |  163 ++
 mesh/display.c               |   64 +
 mesh/display.h               |   28 +
 mesh/friend.c                | 1116 +++++++++++
 mesh/friend.h                |   57 +
 mesh/main.c                  |  174 ++
 mesh/mesh-db.c               | 1360 ++++++++++++++
 mesh/mesh-db.h               |  144 ++
 mesh/mesh-defs.h             |   84 +
 mesh/mesh-io-api.h           |   58 +
 mesh/mesh-io-generic.c       |  660 +++++++
 mesh/mesh-io-generic.h       |   20 +
 mesh/mesh-io.c               |  188 ++
 mesh/mesh-io.h               |   99 +
 mesh/mesh.c                  |  184 ++
 mesh/mesh.h                  |   32 +
 mesh/model.c                 | 1274 +++++++++++++
 mesh/model.h                 |  146 ++
 mesh/net.c                   | 4188 ++++++++++++++++++++++++++++++++++++++++++
 mesh/net.h                   |  392 ++++
 mesh/node.c                  |  851 +++++++++
 mesh/node.h                  |   80 +
 mesh/prov.c                  |  722 ++++++++
 mesh/prov.h                  |  162 ++
 mesh/provision.c             | 1159 ++++++++++++
 mesh/provision.h             |   30 +
 mesh/storage.c               |  672 +++++++
 mesh/storage.h               |   51 +
 mesh/util.c                  |   71 +
 mesh/util.h                  |   24 +
 41 files changed, 18202 insertions(+)
 create mode 100644 Makefile.mesh
 create mode 100644 mesh/agent.c
 create mode 100644 mesh/agent.h
 create mode 100644 mesh/appkey.c
 create mode 100644 mesh/appkey.h
 create mode 100644 mesh/btmesh.c
 create mode 100644 mesh/cfgmod-server.c
 create mode 100644 mesh/cfgmod.h
 create mode 100644 mesh/config/composition.json
 create mode 100644 mesh/crypto.c
 create mode 100644 mesh/crypto.h
 create mode 100644 mesh/display.c
 create mode 100644 mesh/display.h
 create mode 100644 mesh/friend.c
 create mode 100644 mesh/friend.h
 create mode 100644 mesh/main.c
 create mode 100644 mesh/mesh-db.c
 create mode 100644 mesh/mesh-db.h
 create mode 100644 mesh/mesh-defs.h
 create mode 100644 mesh/mesh-io-api.h
 create mode 100644 mesh/mesh-io-generic.c
 create mode 100644 mesh/mesh-io-generic.h
 create mode 100644 mesh/mesh-io.c
 create mode 100644 mesh/mesh-io.h
 create mode 100644 mesh/mesh.c
 create mode 100644 mesh/mesh.h
 create mode 100644 mesh/model.c
 create mode 100644 mesh/model.h
 create mode 100644 mesh/net.c
 create mode 100644 mesh/net.h
 create mode 100644 mesh/node.c
 create mode 100644 mesh/node.h
 create mode 100644 mesh/prov.c
 create mode 100644 mesh/prov.h
 create mode 100644 mesh/provision.c
 create mode 100644 mesh/provision.h
 create mode 100644 mesh/storage.c
 create mode 100644 mesh/storage.h
 create mode 100644 mesh/util.c
 create mode 100644 mesh/util.h
Signature · 1 line
2.14.4