gattlib icon indicating copy to clipboard operation
gattlib copied to clipboard

meshctl Issue

Open lluwang opened this issue 8 years ago • 0 comments

I am using the bluez clone from blue master, and trying to run as mesh provisioner on raspberry pi 3. The node can be provisioned, but fail to set app key, and bind models. The full log is listed as below. Could you have a look at it and give any help? Thanks! [meshctl]# discover-unprovisioned on SetDiscoveryFilter success Discovery started Adapter property changed [CHG] Controller B8:27:EB:B2:E7:4A Discovering: yes Mesh Provisioning Service (00001827-0000-1000-8000-00805f9b34fb) Device UUID: dddd0000000000000000000000000000 OOB: 0000 [meshctl]# provision dddd Trying to connect Device D6:FB:47:4F:7E:A9 AOS Device Adapter property changed [CHG] Controller B8:27:EB:B2:E7:4A Discovering: no Failed to connect: org.bluez.Error.Failed [meshctl]# wzir Invalid command [meshctl]# exit [DEL] Controller B8:27:EB:B2:E7:4A raspberrypi [default] pi@raspberrypi:~/bluez/mesh $ ./meshctl . Local config directory not provided.

netkeys = 1

appkeys = 2

provisioners = 1

provisioned nodes = 7

On/Off client model: new binding 0001 [NEW] Controller B8:27:EB:B2:E7:4A raspberrypi [default] [NEW] Device CB:E0:F2:04:51:B4 AOS Device Service added /org/bluez/hci0/dev_CB_E0_F2_04_51_B4/service000a Char added /org/bluez/hci0/dev_CB_E0_F2_04_51_B4/service000a/char000d: Char added /org/bluez/hci0/dev_CB_E0_F2_04_51_B4/service000a/char000b: Service added /org/bluez/hci0/dev_CB_E0_F2_04_51_B4/service0006 [NEW] Device D6:FB:47:4F:7E:A9 AOS Device Service added /org/bluez/hci0/dev_D6_FB_47_4F_7E_A9/service000a Char added /org/bluez/hci0/dev_D6_FB_47_4F_7E_A9/service000a/char000d: Char added /org/bluez/hci0/dev_D6_FB_47_4F_7E_A9/service000a/char000b: Service added /org/bluez/hci0/dev_D6_FB_47_4F_7E_A9/service0006 [meshctl]# discover-unprovisioned on SetDiscoveryFilter success Discovery started Adapter property changed [CHG] Controller B8:27:EB:B2:E7:4A Discovering: yes Mesh Provisioning Service (00001827-0000-1000-8000-00805f9b34fb) Device UUID: dddd0000000000000000000000000000 OOB: 0000 [meshctl]# provision dddd Trying to connect Device D6:FB:47:4F:7E:A9 AOS Device Adapter property changed [CHG] Controller B8:27:EB:B2:E7:4A Discovering: no Connection successful Services resolved yes Found matching char: path /org/bluez/hci0/dev_D6_FB_47_4F_7E_A9/service000a/char000b, uuid 00002adb-0000-1000-8000-00805f9b34fb Found matching char: path /org/bluez/hci0/dev_D6_FB_47_4F_7E_A9/service000a/char000d, uuid 00002adc-0000-1000-8000-00805f9b34fb Start notification on /org/bluez/hci0/dev_D6_FB_47_4F_7E_A9/service000a/char000d Characteristic property changed /org/bluez/hci0/dev_D6_FB_47_4F_7E_A9/service000a/char000d AcquireNotify success: fd 7 MTU 65 Notify for Mesh Provisioning Out Data started Open-Node: 0x147488 Open-Prov: 0x1455f8 Open-Prov: proxy 0x1487d0 Initiated provisioning Characteristic property changed /org/bluez/hci0/dev_D6_FB_47_4F_7E_A9/service000a/char000b AcquireWrite success: fd 8 MTU 65 GATT-TX: 03 00 10 GATT-RX: 03 01 01 00 01 00 00 04 00 08 00 00 00 Got provisioning data (12 bytes) 01 01 00 01 00 00 04 00 08 00 00 00 GATT-TX: 03 02 00 00 02 03 04 GATT-TX: 03 03 06 04 15 62 e9 e4 70 d9 b8 03 b8 e4 5b bc GATT-TX: 60 fd 0f 11 9f a6 bd 91 34 b5 cb d3 90 4c f2 95 GATT-TX: bd 89 95 22 0b 5b 99 f2 ff 14 09 13 44 07 bc 2e GATT-TX: 52 e9 72 8e 0f 52 a6 d8 a3 1f 4b f8 b7 2a 14 be GATT-TX: 53 c1 GATT-RX: 43 03 3b 64 3a 6b 55 29 7e 87 39 dd fc c8 38 17 GATT-RX: b3 f2 64 93 a2 c8 33 fe 1f af 42 20 53 8e ef 43 GATT-RX: f7 3d 71 04 81 d0 61 f7 7f 40 7e c4 5c e5 6d d7 GATT-RX: ae fe 9b 3c 35 2f 7b 35 d0 d3 8b bc c6 4e GATT-RX: c3 3c 1a 87 0c Got provisioning data (65 bytes) 03 3b 64 3a 6b 55 29 7e 87 39 dd fc c8 38 17 b3 f2 64 93 a2 c8 33 fe 1f af 42 20 53 8e ef 43 f7 3d 71 04 81 d0 61 f7 7f 40 7e c4 5c e5 6d d7 ae fe 9b 3c 35 2f 7b 35 d0 d3 8b bc c6 4e 3c 1a 87 0c Request decimal key (0 - 9999) [AOS 1m[mesh] Enter Numeric key: 30 GATT-TX: 03 05 24 c3 17 92 b6 fb 54 21 a0 fa ad 62 b9 80 GATT-TX: 8e 81 GATT-RX: 03 05 c3 55 97 57 65 8d 4a e3 14 ae 4a 4f da 77 GATT-RX: 2b 43 Got provisioning data (17 bytes) 05 c3 55 97 57 65 8d 4a e3 14 ae 4a 4f da 77 2b 43 GATT-TX: 03 06 5e e1 33 68 e0 12 15 9b 1b 89 cf b9 69 6a GATT-TX: ed 8b GATT-RX: 03 06 bc 8c 22 7d e3 94 22 59 56 34 31 a5 d9 39 GATT-RX: 21 4e Got provisioning data (17 bytes) 06 bc 8c 22 7d e3 94 22 59 56 34 31 a5 d9 39 21 4e Confirmation Validated S-Key cb 8a fe 10 b3 c3 74 aa b4 35 b4 b2 57 3b 1f 09 S-Nonce 99 71 16 a5 56 73 09 a6 87 b8 7b a6 3e DevKey db 90 e2 10 b5 8d 89 27 2c b1 ce 08 49 70 93 f1 Data 18 ee d9 c2 a5 6a dd 85 04 9f fc 3c 59 ad 0e 12 Data 00 00 00 00 00 00 05 01 07 DataEncrypted + mic f5 7b 8e 31 b4 eb 6b ed 2a 6e 20 92 30 03 14 ed DataEncrypted + mic 1c e6 7a 5d c5 d2 15 89 07 ab fd bb a8 d5 7f 24 DataEncrypted + mic 6d GATT-TX: 03 07 f5 7b 8e 31 b4 eb 6b ed 2a 6e 20 92 30 03 GATT-TX: 14 ed 1c e6 7a 5d c5 d2 15 89 07 ab fd bb a8 d5 GATT-TX: 7f 24 6d GATT-RX: 03 08 Got provisioning data (1 bytes) 08 Provision success. Assigned Primary Unicast 0107 Attempting to disconnect from D6:FB:47:4F:7E:A9 Characteristic property changed /org/bluez/hci0/dev_D6_FB_47_4F_7E_A9/service000a/char000d Write closed Services resolved no Characteristic property changed /org/bluez/hci0/dev_D6_FB_47_4F_7E_A9/service000a/char000b SetDiscoveryFilter success Discovery started Adapter property changed [CHG] Controller B8:27:EB:B2:E7:4A Discovering: yes [meshctl]# menu config Menu config: Available commands:

target Set target node to configure composition-get [page_num] Get Composition Data netkey-add <net_idx> Add network key netkey-del <net_idx> Delete network key appkey-add <app_idx> Add application key appkey-del <app_idx> Delete application key bind <ele_idx> <app_idx> <mod_id> [cid] Bind app key to a model ttl-set Set default TTL ttl-get Get default TTL pub-set <ele_addr> <pub_addr> <app_idx> <per (step|res)> <re-xmt (cnt|per)> [cid] Set publication pub-get <ele_addr> Get publication proxy-set Set proxy state proxy-get Get proxy state ident-set <net_idx> Set node identity state ident-get <net_idx> Get node identity state relay-set Set relay relay-get Get relay hb-pub-set <pub_addr> <net_idx> Set heartbeat publish hb-sub-set <src_addr> <dst_addr> Set heartbeat subscribe sub-add <ele_addr> <sub_addr> Subscription add sub-get <ele_addr> Subscription get app-get <ele_addr> Get App Keys back Return to main menu version Display version quit Quit program exit Quit program help Display help about this program [meshctl]# target 0107 Configuring node 0107 [config: Target = 0107]# target 0107[config: Target = 0107]# appkey-add 1 Failed to AcquireWrite [config: Target = 0107]#

lluwang avatar Jan 30 '18 09:01 lluwang