This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I cannot get response message from provisionee according to the guide tour "Using serial interface for provisioning and configuration"

Dear friends:

I flashed the serial mesh example from Mesh SDK and contact the DK with pyACI according to the guide Using serial interface for provisioning and configuration

I had provisioned the destination light switch server by pyACI used below cmd:

E:\bluemesh\nrf5_SDK_for_Mesh_v5.0.0_src\scripts\interactive_pyaci> python interactive_pyaci.py -d COM4 --no-logfile

    To control your device, use d[x], where x is the device index.
    Devices are indexed based on the order of the COM ports specified by the -d option.
    The first device, d[0], can also be accessed using device.

    Type d[x]. and hit tab to see the available methods.

2021-05-11 13:48:41,503 - INFO - COM4: Device rebooted.
Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.23.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]:

In [1]:

In [1]:

In [1]: db = MeshDB("database/example_database.json")

In [2]: db.provisioners
Out[2]: [{'name': 'BT Mesh Provisioner', 'UUID': _UUID(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 'allocated_unicast_range': [{'low_address': 0010, 'high_address': 7fff}], 'allocated_group_range': [{'low_address': c000, 'high_address': feff}]}]

In [3]: p = Provisioner(device, db)

In [4]: 2021-05-11 13:49:05,887 - INFO - COM4: Success
2021-05-11 13:49:05,890 - INFO - COM4: Success
2021-05-11 13:49:05,891 - INFO - COM4: SubnetAdd: {'subnet_handle': 0}
2021-05-11 13:49:05,894 - INFO - COM4: AppkeyAdd: {'appkey_handle': 0}
2021-05-11 13:49:05,896 - INFO - COM4: AppkeyAdd: {'appkey_handle': 1}
In [4]:

In [4]: p.scan_start()

2021-05-11 13:49:16,430 - INFO - COM4: Success
In [5]: 2021-05-11 13:49:16,873 - INFO - COM4: Received UUID 005955aa00000000c10130f48247099f with RSSI: -18 dB
2021-05-11 13:49:18,240 - INFO - COM4: Received UUID c1926b4e348db03389b14bad953ed730 with RSSI: -59 dB
In [5]: p.scan_stop()

In [6]: 2021-05-11 13:49:23,790 - INFO - COM4: Success
In [6]:

In [6]: p.provision(name="Light bulb")

In [7]: 2021-05-11 13:49:54,120 - INFO - COM4: Provision: {'context': 0}
2021-05-11 13:49:54,132 - INFO - COM4: Link established
2021-05-11 13:49:54,185 - INFO - COM4: Received capabilities
2021-05-11 13:49:54,185 - INFO - COM4: Number of elements: 1
2021-05-11 13:49:54,188 - INFO - COM4: OobUse: {'context': 0}
2021-05-11 13:49:54,420 - INFO - COM4: ECDH request received
2021-05-11 13:49:54,426 - INFO - COM4: EcdhSecret: {'context': 0}
2021-05-11 13:49:56,679 - INFO - COM4: Provisioning complete
2021-05-11 13:49:56,680 - INFO - COM4:  Address(es): 0x10-0x10
2021-05-11 13:49:56,681 - INFO - COM4:  Device key: b850e5c017d6004aae0ef061b8b12900
2021-05-11 13:49:56,681 - INFO - COM4:  Network key: 18eed9c2a56add85049ffc3c59ad0e12
2021-05-11 13:49:56,682 - INFO - COM4: Adding device key to subnet 0
2021-05-11 13:49:56,682 - INFO - COM4: Adding publication address of root element
2021-05-11 13:49:56,686 - INFO - COM4: DevkeyAdd: {'devkey_handle': 8}
2021-05-11 13:49:56,687 - INFO - COM4: AddrPublicationAdd: {'address_handle': 0}
2021-05-11 13:49:56,794 - INFO - COM4: Provisioning link closed
In [7]:

In [7]:

In [7]: cc = ConfigurationClient(db)

In [8]: device.model_add(cc)

In [9]: cc.publish_set(8, 0)

In [10]:

In [10]: cc.composition_data_get()

2021-05-11 13:51:08,442 - INFO - COM4: PacketSend
In [11]:

In [11]:

In [11]: cc.composition_data_get()

2021-05-11 13:52:54,177 - INFO - COM4: PacketSend
In [12]:

In [12]:

In [12]:

In [12]:

I want to requesting composition data, but got none, there is only printed a line info "2021-05-11 13:52:54,177 - INFO - COM4: PacketSend"

I have no idea how to solve this issue. Could you give me some advices? Thank you in advance.

Related