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

To configure un-provisioned node using nrf mesh Serial integrated in light Switch example

I want to integrate nrf mesh serial example in light Switch example to configure other un-provisioned node

I am using following nrf SDK:
>> nrf : nRF5_SDK_15.2.0_9412b96
>> mesh : nrf5_SDK_for_Mesh_v3.2.0_src

The following Serial API as per serial example as been used in light Switch example:
- mesh_opt_prov_ecdh_offloading_set(true)
- nrf_mesh_serial_init(NULL)
- nrf_mesh_serial_enable()

I want to provision node using serial interface and interactive_pyaci.py
>> I am trying to provision a node but i am get continuously ERROR_REJECTED status code on send Provision data using opcode 0x63

But with only serial example its working fine, but if I integrate serial with light Switch example I am getting ERROR_REJECTED status code

I have checked both example's SDK_config.h, the only difference in light Switch example is GATT is enable and GATT parameters are defined.

Does anyone has on solution this.......

Parents
  • Hi,

    Can you give me more details about your use-case/what you are trying to do? Why do you want to add the serial example to the light switch example?

    You might want to look at this.

  • Thank you for asking

    In my network there are 10 light switch server node and one client node. This client node is connected to my serial interface.

    It is simple light switch client example provided in nrf SDK, but in addition to it I also want to control and provision nodes in network via serial interface and also set/get data from provisioned node.

    If I use only serial example I can easily provision or control node in network

    But if ingratiated serial in light switch client node it gives ERROR_REJECTED

    like This

    1) db = MeshDB("database/example_database.json") >> ok response

    2) db.provisioners >> ok response

    3) p = Provisioner(device, db) >> ok response

    4) p.scan_start() >> Received UUID 0059ffff000000008007abda46190f5e with RSSI: -15 dB response

    5) p.scan_stop() >> ok response

    6) p.provision(name="Light bulb") >> ERROR_REJECTED

Reply
  • Thank you for asking

    In my network there are 10 light switch server node and one client node. This client node is connected to my serial interface.

    It is simple light switch client example provided in nrf SDK, but in addition to it I also want to control and provision nodes in network via serial interface and also set/get data from provisioned node.

    If I use only serial example I can easily provision or control node in network

    But if ingratiated serial in light switch client node it gives ERROR_REJECTED

    like This

    1) db = MeshDB("database/example_database.json") >> ok response

    2) db.provisioners >> ok response

    3) p = Provisioner(device, db) >> ok response

    4) p.scan_start() >> Received UUID 0059ffff000000008007abda46190f5e with RSSI: -15 dB response

    5) p.scan_stop() >> ok response

    6) p.provision(name="Light bulb") >> ERROR_REJECTED

Children
No Data
Related