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

BLE MESH3.0 Merge Cilent and Provisioner Firmware.

Hello ,

Que 1 :I want to Merge Client and Provisioner Firmware is possible..?

Que 2:Multiple provisioner can i define in same moudle.

Que 3:BLE MESH Network ,How many Provisioner work in same network..?

Regard's

Nikunj  

  • Hello,

     ERROR_CHECK(mesh_provisionee_prov_start(&prov_start_params));

    Above Function is use in client To start Beacon. if i add this function in Provisioner code  i got an Error 0x0000010e.Please let me 

    static void start(void)
    {
        rtt_input_enable(app_rtt_input_handler, RTT_INPUT_POLL_PERIOD_MS);
        __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "<start> \n");
    
    #if (!PERSISTENT_STORAGE)
        app_start();
    #endif
    
          static const uint8_t static_auth_data[NRF_MESH_KEY_SIZE] = STATIC_AUTH_DATA;
          mesh_provisionee_start_params_t prov_start_params =
          {
              .p_static_data    = static_auth_data,
              .prov_complete_cb = provisioning_complete_cb,
              .prov_device_identification_start_cb = device_identification_start_cb,
              .prov_device_identification_stop_cb = NULL,
              .prov_abort_cb = provisioning_aborted_cb,
              .p_device_uri = NULL
          };
          ERROR_CHECK(mesh_provisionee_prov_start(&prov_start_params));
    
    
        ERROR_CHECK(nrf_mesh_enable());
    
        hal_led_mask_set(LEDS_MASK, LED_MASK_STATE_OFF);
        hal_led_blink_ms(LEDS_MASK, LED_BLINK_INTERVAL_MS, LED_BLINK_CNT_START);
    }

    Thank's

    Nikunj

  • Hi,

    Q1: Yes, it is possible to merge the client and provisioner example. This was done in earlier version of the Mesh SDK. Have a look at the light switch client example in Mesh SDK v1.0.1, it will give you an idea on how to do it.

    Q2: I'm not sure what you mean by this. Can you elaborate?

    Q3: Multiple Provisioners may be used, but the method to share cached data and coordinate across multiple Provisioners is implementation specific. There aren't a specific number for how many provisioner you can have in a network. The limitation lies in the coordination between the Provisioners, so it is dependent on your implementation. 

  • I suggest you open a new ticket and include more details about the issue.

  • i have seen BLE MESH V1.1 Example code but i can't understand can you give me guidance. How to client add in network .i have add custom_data_client_Init successfully in Provisioner firmware,but i dont know how to assign address 

     I have seen In Provisioner Firmware check_network_state(); this function is start waiting for incoming beacon request and send invitation to client. 

    I seen in client Firmware mesh_provisionee_prov_start() this function send Beacon request Provisioner.

    I want  both Provisonee and Provisionor Functionality in Provisioner Firmware so Please healp me which API to change And How to do that if you have document then suggest me.

    void models_init_cb(void)
    {
      uint8_t status;
    
        __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "Initializing and adding models\n");
        m_dev_handles.m_netkey_handle = DSM_HANDLE_INVALID;
        m_dev_handles.m_appkey_handle = DSM_HANDLE_INVALID;
        m_dev_handles.m_self_devkey_handle = DSM_HANDLE_INVALID;
    
        /* This app requires following models :
         * config client : To be able to configure other devices
         * health client : To be able to interact with other health servers */
        ERROR_CHECK(config_client_init(app_config_client_event_cb));
        ERROR_CHECK(health_client_init(&m_dev_handles.m_health_client_instance, 0, app_health_event_cb));
    
        m_clients.settings.p_callbacks = &client_cbs;
        m_clients.settings.timeout = 0;
        m_clients.settings.force_segmented = APP_CONFIG_FORCE_SEGMENTATION;
        m_clients.settings.transmic_size = APP_CONFIG_MIC_SIZE;
    
        ERROR_CHECK(custom_data_client_init(&m_clients,1));
        
    }
      

    Thanks,

    Nikunj

  • Hello

    Reply me ASAP.. i Add Provisionor Functionality in Client Firmware ..?

Related