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

Configuration process in nrf_mesh APP

Hi, I'm provisioning mesh nodes using nrf_mesh APP. After I finished it and added device into mesh network, I have some questions in configuration process.

In nrf_mesh APP we can see the procedure while provisioning,and it shows these data app send and reveive  also we can find it in GATT provisioning and Proxy file.But I dno't know how the  node received data then it need to add/bind app key ,set pulication/subscribtion address to itself.I can't find the function calls to it.Could you please tell me where to realize it?

The another qestion is that when  I  config node it can reinitialize and reconnect to APP ,they send much data and I don't understand them because I can find it have any connection about appkey and pulication/subscribtion address .

Any help will be thanked advanced.

Best Regards!

ZhengRui.

Parents
  • the config data as follows

    <t:        544>, main.c,  164, Node Address: 0x0001 
    <t:     263764>, mesh_gatt.c,  709, BLE_GAP_EVT_CONNECTED:10
    <t:     263767>, proxy.c,  586, Connected
    <t:     268561>, mesh_gatt.c,  761, BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST:23
    <t:     281338>, main.c,  353, Successfully updated connection parameters
    <t:     364975>, mesh_gatt.c,  743, BLE_GATTS_EVT_WRITE:50
    <t:     364982>, mesh_gatt.c,  393, tx.cccd_handle: 13
    <t:     364985>, mesh_gatt.c,  394, p_evt_write->data %x,%x: 0100
    <t:     364988>, mesh_gatt.c,  396, TXTXTXTXTXTXTXTXTXTXXTXTXTXTTXTXTXTX
    <t:     364991>, proxy.c,  613, TX ready
    <t:     364992>, proxy.c,  290,  beacon_cycle_send
    <t:     364995>, proxy.c,  265,  beacon_packet_send
    <t:     364999>, proxy.c,  243, packet_send
    <t:     365001>, mesh_gatt.c,  653,  mesh_gatt_packet_send 
    <t:     365003>, mesh_gatt.c,  654,  mesh_gatt_packet_send : 010091B2
    <t:     365007>, mesh_gatt.c,  126, mesh_gatt_pdu_send : 000000001701010091B257C653B9D9FD0000000055A6799862972931
    <t:     365466>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57             //sending MESH_BEACON,
    <t:     365475>, mesh_gatt.c,  126, mesh_gatt_pdu_send : 000000001741010091B257C653B9D9FD0000000055A6799841972931
    <t:     365481>, mesh_gatt.c,  790, BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:55
    <t:     365727>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57
    <t:     365730>, proxy.c,  627, TX complete
    <t:     365736>, proxy.c,  628, proxy 622622 txtxtxtxtxtxt  ---------------
    <t:     365739>, proxy.c,  629, p_evt->params.tx_complete.pdu_type 1
    <t:     365743>, main.c,  353, Successfully updated connection parameters
    <t:     374363>, mesh_gatt.c,  761, BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST:23
    <t:     447356>, mesh_gatt.c,  743, BLE_GATTS_EVT_WRITE:50
    <t:     447362>, mesh_gatt.c,  417, rx.value_handle: 10
    <t:     447364>, mesh_gatt.c,  418, conn_index 0
    <t:     447366>, mesh_gatt.c,  421, RXRXRXRXXRXRRXRXRXRXRXXRXRX
    <t:     447369>, mesh_gatt.c,  333, mesh _gatt.c 328 proxy_pdu_rx_first        //receive _NETWORK_PDU
    <t:     447372>, mesh_gatt.c,  334, proxy_pdu_rx_first : 00147D36096A756E41AEAD918D5FD149A7878CC6212C
    <t:     447376>, mesh_gatt.c,  341, PROXY_SAR_TYPE_COMPLETE : 147D36096A756E41AEAD918D5FD149A7878CC6212C
    <t:     447380>, mesh_gatt.c,  344, mesh _gatt.c 328 evt.params.rx.pdu_type 0
    <t:     447383>, mesh_gatt.c,  347, mesh _gatt.c 328 evt.type 0
    <t:     447385>, proxy.c,  618, RX
    <t:     447387>, proxy.c,  619, proxy 613 613 rxrxrxrxrxrxrxrxrxrxrxrxrxrxrx  -----------------------
    <t:     447391>, proxy.c,  555, RX GATT PDU type 0x0, len 21
    <t:     447393>, network.c,  270,  network_packet_in
     <t:     447396>, network.c,  271,  network_packet_in : 147D36096A756E41AEAD918D5FD149A7878CC6212C
     network_packet_send 
    <t:     463569>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57
    <t:     463575>, proxy.c,  627, TX complete
    <t:     463577>, proxy.c,  628, proxy 622622 txtxtxtxtxtxt  ---------------
    <t:     463580>, proxy.c,  629, p_evt->params.tx_complete.pdu_type 0
    <t:     463583>, proxy.c,  632, p_evt->params.tx_complete.pdu_type 0
    <t:     463586>, mesh_gatt.c,  126, mesh_gatt_pdu_send : FEFFFFFF1E0014A330CB3FBFD31E4DD2E06A9ADEE2209756674C27DE520C07C0E200E4
    <t:     487901>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57
    <t:     487907>, proxy.c,  627, TX complete
    <t:     487909>, proxy.c,  628, proxy 622622 txtxtxtxtxtxt  ---------------
    <t:     487912>, proxy.c,  629, p_evt->params.tx_complete.pdu_type 0
    <t:     487914>, proxy.c,  632, p_evt->params.tx_complete.pdu_type 0
    <t:     487918>, mesh_gatt.c,  126, mesh_gatt_pdu_send : FEFFFFFF1E0014EF82918CF72E6C726F33F82A8338E117E594E0675D36E6A76E1E761C
    <t:     504132>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57
    <t:     504138>, proxy.c,  627, TX complete
    <t:     504140>, proxy.c,  628, proxy 622622 txtxtxtxtxtxt  ---------------
    <t:     504143>, proxy.c,  629, p_evt->params.tx_complete.pdu_type 0
    <t:     504146>, proxy.c,  632, p_evt->params.tx_complete.pdu_type 0
    <t:     504150>, mesh_gatt.c,  743, BLE_GATTS_EVT_WRITE:50
    <t:     504152>, mesh_gatt.c,  417, rx.value_handle: 10
    <t:     504155>, mesh_gatt.c,  418, conn_index 0
    <t:     504157>, mesh_gatt.c,  421, RXRXRXRXXRXRRXRXRXRXRXXRXRX
    <t:     504159>, mesh_gatt.c,  333, mesh _gatt.c 328 proxy_pdu_rx_first
    <t:     504162>, mesh_gatt.c,  334, proxy_pdu_rx_first : 00147766EF42BEE03959758379C7943F9FF0F896C5B7B13A21
    <t:     504167>, mesh_gatt.c,  341, PROXY_SAR_TYPE_COMPLETE : 147766EF42BEE03959758379C7943F9FF0F896C5B7B13A21
    <t:     504171>, mesh_gatt.c,  344, mesh _gatt.c 328 evt.params.rx.pdu_type 0
    <t:     504174>, mesh_gatt.c,  347, mesh _gatt.c 328 evt.type 0
    <t:     504176>, proxy.c,  618, RX
    
    <t:     552797>, mesh_gatt.c,  743, BLE_GATTS_EVT_WRITE:50
    <t:     552801>, mesh_gatt.c,  417, rx.value_handle: 10
    <t:     552803>, mesh_gatt.c,  418, conn_index 0
    <t:     552805>, mesh_gatt.c,  421, RXRXRXRXXRXRRXRXRXRXRXXRXRX
    <t:     552808>, mesh_gatt.c,  333, mesh _gatt.c 328 proxy_pdu_rx_first
    <t:     552811>, mesh_gatt.c,  334, proxy_pdu_rx_first : 00140FEFC82DBC725EC610F6448B4EF4EAC57F82B9AAA6DDD3469F6F03AE
    <t:     552820>, mesh_gatt.c,  341, PROXY_SAR_TYPE_COMPLETE : 140FEFC82DBC725EC610F6448B4EF4EAC57F82B9AAA6DDD3469F6F03AE
    <t:     552828>, mesh_gatt.c,  344, mesh _gatt.c 328 evt.params.rx.pdu_type 0
    <t:     552831>, mesh_gatt.c,  347, mesh _gatt.c 328 evt.type 0
    <t:     552833>, proxy.c,  618, RX
    <t:     552835>, proxy.c,  619, proxy 613 613 rxrxrxrxrxrxrxrxrxrxrxrxrxrxrx  -----------------------
    <t:     552839>, proxy.c,  555, RX GATT PDU type 0x0, len 29
    <t:     552841>, network.c,  270,  network_packet_in
     <t:     552844>, network.c,  271, <t:     552853>, proxy.c,  560, BLE_GATTS_EVT_WRITE:50
    handle_appkey_add(***************************************
    <t:     558938>, network.c,  241,  network_packet_send 
    <t:     558940>, network.c,  242,  mesh_gatt_packet_send : 00AD09AF195C3DD097D992
    <t:     558947>, proxy.c,  243, packet_send
    <t:     558949>, mesh_gatt.c,  653,  mesh_gatt_packet_send 
    <t:     558951>, mesh_gatt.c,  654,  mesh_gatt_packet_send : 1459C43A
    <t:     558955>, proxy.c,  560, MESH_GATT_PDU_TYPE_NETWORK_PDU: 14C4FE52
    <t:     569008>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57
    <t:     569014>, proxy.c,  627, TX complete
    <t:     569016>, proxy.c,  628, proxy 622622 txtxtxtxtxtxt  ---------------
    <t:     569019>, proxy.c,  629, p_evt->params.tx_complete.pdu_type 0
    <t:     569022>, proxy.c,  632, p_evt->params.tx_complete.pdu_type 0
    <t:     569025>, mesh_gatt.c,  126, mesh_gatt_pdu_send : 0200000019C01459C43A71FACF87C485A72FC22C5F162A3735430FFBFA27
    <t:     585229>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57
    <t:     585235>, proxy.c,  627, TX complete
    <t:     585237>, proxy.c,  628, proxy 622622 txtxtxtxtxtxt  ---------------
    <t:     585240>, proxy.c,  629, p_evt->params.tx_complete.pdu_type 0
    <t:     585242>, proxy.c,  632, p_evt->params.tx_complete.pdu_type 0
    

Reply
  • the config data as follows

    <t:        544>, main.c,  164, Node Address: 0x0001 
    <t:     263764>, mesh_gatt.c,  709, BLE_GAP_EVT_CONNECTED:10
    <t:     263767>, proxy.c,  586, Connected
    <t:     268561>, mesh_gatt.c,  761, BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST:23
    <t:     281338>, main.c,  353, Successfully updated connection parameters
    <t:     364975>, mesh_gatt.c,  743, BLE_GATTS_EVT_WRITE:50
    <t:     364982>, mesh_gatt.c,  393, tx.cccd_handle: 13
    <t:     364985>, mesh_gatt.c,  394, p_evt_write->data %x,%x: 0100
    <t:     364988>, mesh_gatt.c,  396, TXTXTXTXTXTXTXTXTXTXXTXTXTXTTXTXTXTX
    <t:     364991>, proxy.c,  613, TX ready
    <t:     364992>, proxy.c,  290,  beacon_cycle_send
    <t:     364995>, proxy.c,  265,  beacon_packet_send
    <t:     364999>, proxy.c,  243, packet_send
    <t:     365001>, mesh_gatt.c,  653,  mesh_gatt_packet_send 
    <t:     365003>, mesh_gatt.c,  654,  mesh_gatt_packet_send : 010091B2
    <t:     365007>, mesh_gatt.c,  126, mesh_gatt_pdu_send : 000000001701010091B257C653B9D9FD0000000055A6799862972931
    <t:     365466>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57             //sending MESH_BEACON,
    <t:     365475>, mesh_gatt.c,  126, mesh_gatt_pdu_send : 000000001741010091B257C653B9D9FD0000000055A6799841972931
    <t:     365481>, mesh_gatt.c,  790, BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:55
    <t:     365727>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57
    <t:     365730>, proxy.c,  627, TX complete
    <t:     365736>, proxy.c,  628, proxy 622622 txtxtxtxtxtxt  ---------------
    <t:     365739>, proxy.c,  629, p_evt->params.tx_complete.pdu_type 1
    <t:     365743>, main.c,  353, Successfully updated connection parameters
    <t:     374363>, mesh_gatt.c,  761, BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST:23
    <t:     447356>, mesh_gatt.c,  743, BLE_GATTS_EVT_WRITE:50
    <t:     447362>, mesh_gatt.c,  417, rx.value_handle: 10
    <t:     447364>, mesh_gatt.c,  418, conn_index 0
    <t:     447366>, mesh_gatt.c,  421, RXRXRXRXXRXRRXRXRXRXRXXRXRX
    <t:     447369>, mesh_gatt.c,  333, mesh _gatt.c 328 proxy_pdu_rx_first        //receive _NETWORK_PDU
    <t:     447372>, mesh_gatt.c,  334, proxy_pdu_rx_first : 00147D36096A756E41AEAD918D5FD149A7878CC6212C
    <t:     447376>, mesh_gatt.c,  341, PROXY_SAR_TYPE_COMPLETE : 147D36096A756E41AEAD918D5FD149A7878CC6212C
    <t:     447380>, mesh_gatt.c,  344, mesh _gatt.c 328 evt.params.rx.pdu_type 0
    <t:     447383>, mesh_gatt.c,  347, mesh _gatt.c 328 evt.type 0
    <t:     447385>, proxy.c,  618, RX
    <t:     447387>, proxy.c,  619, proxy 613 613 rxrxrxrxrxrxrxrxrxrxrxrxrxrxrx  -----------------------
    <t:     447391>, proxy.c,  555, RX GATT PDU type 0x0, len 21
    <t:     447393>, network.c,  270,  network_packet_in
     <t:     447396>, network.c,  271,  network_packet_in : 147D36096A756E41AEAD918D5FD149A7878CC6212C
     network_packet_send 
    <t:     463569>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57
    <t:     463575>, proxy.c,  627, TX complete
    <t:     463577>, proxy.c,  628, proxy 622622 txtxtxtxtxtxt  ---------------
    <t:     463580>, proxy.c,  629, p_evt->params.tx_complete.pdu_type 0
    <t:     463583>, proxy.c,  632, p_evt->params.tx_complete.pdu_type 0
    <t:     463586>, mesh_gatt.c,  126, mesh_gatt_pdu_send : FEFFFFFF1E0014A330CB3FBFD31E4DD2E06A9ADEE2209756674C27DE520C07C0E200E4
    <t:     487901>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57
    <t:     487907>, proxy.c,  627, TX complete
    <t:     487909>, proxy.c,  628, proxy 622622 txtxtxtxtxtxt  ---------------
    <t:     487912>, proxy.c,  629, p_evt->params.tx_complete.pdu_type 0
    <t:     487914>, proxy.c,  632, p_evt->params.tx_complete.pdu_type 0
    <t:     487918>, mesh_gatt.c,  126, mesh_gatt_pdu_send : FEFFFFFF1E0014EF82918CF72E6C726F33F82A8338E117E594E0675D36E6A76E1E761C
    <t:     504132>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57
    <t:     504138>, proxy.c,  627, TX complete
    <t:     504140>, proxy.c,  628, proxy 622622 txtxtxtxtxtxt  ---------------
    <t:     504143>, proxy.c,  629, p_evt->params.tx_complete.pdu_type 0
    <t:     504146>, proxy.c,  632, p_evt->params.tx_complete.pdu_type 0
    <t:     504150>, mesh_gatt.c,  743, BLE_GATTS_EVT_WRITE:50
    <t:     504152>, mesh_gatt.c,  417, rx.value_handle: 10
    <t:     504155>, mesh_gatt.c,  418, conn_index 0
    <t:     504157>, mesh_gatt.c,  421, RXRXRXRXXRXRRXRXRXRXRXXRXRX
    <t:     504159>, mesh_gatt.c,  333, mesh _gatt.c 328 proxy_pdu_rx_first
    <t:     504162>, mesh_gatt.c,  334, proxy_pdu_rx_first : 00147766EF42BEE03959758379C7943F9FF0F896C5B7B13A21
    <t:     504167>, mesh_gatt.c,  341, PROXY_SAR_TYPE_COMPLETE : 147766EF42BEE03959758379C7943F9FF0F896C5B7B13A21
    <t:     504171>, mesh_gatt.c,  344, mesh _gatt.c 328 evt.params.rx.pdu_type 0
    <t:     504174>, mesh_gatt.c,  347, mesh _gatt.c 328 evt.type 0
    <t:     504176>, proxy.c,  618, RX
    
    <t:     552797>, mesh_gatt.c,  743, BLE_GATTS_EVT_WRITE:50
    <t:     552801>, mesh_gatt.c,  417, rx.value_handle: 10
    <t:     552803>, mesh_gatt.c,  418, conn_index 0
    <t:     552805>, mesh_gatt.c,  421, RXRXRXRXXRXRRXRXRXRXRXXRXRX
    <t:     552808>, mesh_gatt.c,  333, mesh _gatt.c 328 proxy_pdu_rx_first
    <t:     552811>, mesh_gatt.c,  334, proxy_pdu_rx_first : 00140FEFC82DBC725EC610F6448B4EF4EAC57F82B9AAA6DDD3469F6F03AE
    <t:     552820>, mesh_gatt.c,  341, PROXY_SAR_TYPE_COMPLETE : 140FEFC82DBC725EC610F6448B4EF4EAC57F82B9AAA6DDD3469F6F03AE
    <t:     552828>, mesh_gatt.c,  344, mesh _gatt.c 328 evt.params.rx.pdu_type 0
    <t:     552831>, mesh_gatt.c,  347, mesh _gatt.c 328 evt.type 0
    <t:     552833>, proxy.c,  618, RX
    <t:     552835>, proxy.c,  619, proxy 613 613 rxrxrxrxrxrxrxrxrxrxrxrxrxrxrx  -----------------------
    <t:     552839>, proxy.c,  555, RX GATT PDU type 0x0, len 29
    <t:     552841>, network.c,  270,  network_packet_in
     <t:     552844>, network.c,  271, <t:     552853>, proxy.c,  560, BLE_GATTS_EVT_WRITE:50
    handle_appkey_add(***************************************
    <t:     558938>, network.c,  241,  network_packet_send 
    <t:     558940>, network.c,  242,  mesh_gatt_packet_send : 00AD09AF195C3DD097D992
    <t:     558947>, proxy.c,  243, packet_send
    <t:     558949>, mesh_gatt.c,  653,  mesh_gatt_packet_send 
    <t:     558951>, mesh_gatt.c,  654,  mesh_gatt_packet_send : 1459C43A
    <t:     558955>, proxy.c,  560, MESH_GATT_PDU_TYPE_NETWORK_PDU: 14C4FE52
    <t:     569008>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57
    <t:     569014>, proxy.c,  627, TX complete
    <t:     569016>, proxy.c,  628, proxy 622622 txtxtxtxtxtxt  ---------------
    <t:     569019>, proxy.c,  629, p_evt->params.tx_complete.pdu_type 0
    <t:     569022>, proxy.c,  632, p_evt->params.tx_complete.pdu_type 0
    <t:     569025>, mesh_gatt.c,  126, mesh_gatt_pdu_send : 0200000019C01459C43A71FACF87C485A72FC22C5F162A3735430FFBFA27
    <t:     585229>, mesh_gatt.c,  748, BLE_GATTS_EVT_HVN_TX_COMPLETE:57
    <t:     585235>, proxy.c,  627, TX complete
    <t:     585237>, proxy.c,  628, proxy 622622 txtxtxtxtxtxt  ---------------
    <t:     585240>, proxy.c,  629, p_evt->params.tx_complete.pdu_type 0
    <t:     585242>, proxy.c,  632, p_evt->params.tx_complete.pdu_type 0
    

Children
No Data
Related