Hello friends,
i'm trying to add the pb_remote server functionality to a project without success, i kindly ask for some advices.
Development tools:
SDKs:
nRF5 SDK 17.0.2
nrf5 SDK for Mesh v5.0.0
The application integrates the the two DSKs, the application implements a proprietary mesh model to manage some custom devices
The application implements advertising and communication with mobile devices using NUS service. The device provisioning is managed by a custom mobile application.
Nowday we need to add the pb_remote_server model to every mesh node with the purpose of performing the provisioning of the mesh network devices from a single centralized point.
We added the remote server provisioning functionality starting from the mesh sdk example. The application builds and run correctly but no Unprovisioned device beacon packets are visible on the BLE sniffer. This kind of packets are visible with the pb_remote_server application instead.
We have made some unsuccessfully tests disabling the BLE advertising for mobile devices communication and disabling the initialization of our custom mesh models leaving only the remote_server one.
Following the code with breakpoints, we have seen that the function
void advertiser_packet_send(advertiser_t * p_adv, adv_packet_t * p_packet)
in the module nrf5_SDK_for_Mesh_v5.0.0\mesh\bearer\src\advertiser.c
is correctly called but the callback function in the same module:
static void tx_complete_event_callback(void * p_context)
is never called (in the pb_remote_server example it is called after the packet's send).
This is the call stack:
and this is part of the advertiser_t data structure passed to the function advertiser_packet_send
We will continue with testing, any help will be very appreciated.
Best regards,
Gianluca.