Skip to contentSkip to conversation

Bluetooth Mesh Daemon

PATCH Superseded Brian Gix 2 participants 21 messages Jul 6, 2018 – Jul 14, 2018 Page 2 of 2

Subsystems (2)

v5 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
author
#18 lore raw

PATCH v5 13/14 mesh: Sample device composition in JSON format

In reply to Brian Gix

From: Inga Stotland <[email protected]>

This is a sample unprovisioned device composition described in JSON format.

---
 mesh/config/composition.json | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 mesh/config/composition.json
mesh/config/composition.json new file +44 -0
new file mode 100644
index 000000000..20c0d0c3a
@@ -0,0 +1,44 @@
+{
+  "$schema":"file:\/\/\/BlueZ\/MeshD\/local_schema\/mesh.jsonschema",
+  "meshName":"BT Mesh sample node",
+  "UUID":"E0ED0F0200000000203C100200000000",
+  "cid":"0002",
+  "pid":"0010",
+  "vid":"0001",
+  "crpl":"000a",
+  "proxy":"unsupported",
+  "friend":"disabled",
+  "lowPower":"disabled",
+  "relay":{
+    "mode":"enabled"
+  },
+  "elements":[
+    {
+      "elementIndex":0,
+      "location":"0001",
+      "models":[
+        {
+          "modelId":"0000"
+        },
+        {
+          "modelId":"1001"
+        }
+      ]
+    }
+  ],
+  "provision": {
+    "privateKey": "729aa0670d72cd6497502ed473502b037e8803b5c60829a5a3caa219505530ba",
+    "algorithms": [ 0 ],
+	"inputOOB": {
+       "size": 8,
+       "actions": [ 2, 3]
+    },
+    "outputOOB": {
+      "size": 8,
+      "actions": [ 3, 4]
+    },
+    "publicType": false,
+    "staticType": false
+  },
+   }
+}
Signature · 1 line
2.14.4
author
#19 lore raw

PATCH v5 14/14 Makefile for meshd

In reply to Brian Gix

From: Inga Stotland <[email protected]>

---
 Makefile.am   |  1 +
 Makefile.mesh | 44 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 Makefile.mesh
Makefile.am +1 -0
index 2c9490f5f..0ccf393c6 100644
@@ -235,6 +235,7 @@ unit_tests =
 include Makefile.tools
 include Makefile.obexd
 include android/Makefile.am
+include Makefile.mesh
 
 if HID2HCI
 rulesdir = @UDEV_DIR@/rules.d
Makefile.mesh new file +44 -0

44 lines not on this page · raw message

Signature · 1 line
2.14.4
maintainer
#20 lore raw

Re: [PATCH BlueZ v5 14/14] Makefile for meshd

Hi Brian,

Quoted 24 lines

---
Makefile.am | 1 +
Makefile.mesh | 44 ++++++++++++++++++++++++++++++++++++++++++++

2 files changed, 45 insertions(+)

create mode 100644 Makefile.mesh

Makefile.am +0 -0
index 2c9490f5f..0ccf393c6 100644
@@ -235,6 +235,7 @@ unit_tests =

include Makefile.tools
include Makefile.obexd
include android/Makefile.am
+include Makefile.mesh

if HID2HCI
rulesdir = @UDEV_DIR@/rules.d

Makefile.mesh new file +0 -0
new file mode 100644
index 000000000..aaf337579

Makefile.mesh line 2

Quoted 2 lines
Makefile.mesh new file +2 -0
@@ -0,0 +1,44 @@
+if MESH
+mesh_json_sources = mesh/mesh-db.h mesh/mesh-db.c

why are these split? Do you plan a version that doesn't require JSON?

Quoted 16 lines
Makefile.mesh new file +16 -0
+mesh_common_sources = mesh/mesh-defs.h \
+					mesh/util.h mesh/util.c
+
+mesh_sources = $(mesh_common_sources) $(mesh_json_sources) \
+				mesh/mesh.h mesh/mesh.c \
+				mesh/mesh-io.h mesh/mesh-io.c \
+				mesh/mesh-io-api.h mesh/bt.h \
+				mesh/mesh-io-generic.h \
+				mesh/mesh-io-generic.c \
+				mesh/hci.h mesh/hci.c \
+				mesh/storage.h mesh/storage.c \
+				mesh/net.h mesh/net.c \
+				mesh/display.h mesh/display.c \
+				mesh/crypto.h mesh/crypto.c \
+				mesh/friend.h mesh/friend.c \
+				mesh/appkeys.h mesh/appkey.c \

Makefile.mesh line 28

Quoted 10 lines
Makefile.mesh new file +10 -0
+				mesh/node.h mesh/node.c \
+				mesh/prov.h mesh/prov.c \
+				mesh/provision.h mesh/provision.c \
+				mesh/model.h mesh/model.c \
+				mesh/cfgmod.h mesh/cfgmod-server.c
+
+libexec_PROGRAMS += mesh/meshd
+
+mesh_meshd_SOURCES = $(mesh_sources) \
+						mesh/main.c

Move it on the same line here.

Makefile.mesh line 31

Quoted 3 lines
Makefile.mesh new file +3 -0
+
+mesh_meshd_LDADD = /usr/lib64/libell.la src/shared/ecc.lo \
+			@DBUS_LIBS@ -lell -ljson-c -ldl

The /usr/lib64/libell.la is wrong. It is not portable. @ELL_LIBS@ is needed here. Also what is the -ldl for?

Makefile.mesh line 44

Quoted 13 lines
Makefile.mesh new file +13 -0
+
+noinst_PROGRAMS += mesh/btmesh
+
+mesh_btmesh_SOURCES = $(mesh_sources) \
+						mesh/agent.h \
+						mesh/agent.c \
+						mesh/btmesh.c
+
+mesh_btmesh_LDADD = /usr/lib64/libell.la src/shared/ecc.lo \
+						src/libshared-mainloop.la \
+						-lreadline -lell -ljson-c -ldl
+
+endif

Regards

Marcel