I have been following the DSPS Host demo in order to implement the collector side of the Glucose Profile. The sensor side works fine, as I am able to connect to it using an Android smartphone.
I can tell that the sensor and the collector connect to one another by using an Android scanner, where I can see that the sensor stopped advertising. When I turn off the collector, it starts advertising again.
The problem I am facing is that the code for the collector side never gets to .app_on_connection callback, not even to the enable function app_glpc_enable. How is that even possible?
I am using most of the functions from the user_sps_host.c file, except those related to parameter update and sleep.
Do you have any ideia what is causing this?
Obs: the code does not crash or anything.
Thank you!
Hi Fernando,
Can you check if the handler for the GAPC_CONNECTION_REQ_IND (the gapc_connection_req_ind_handler in the app_task.c file) is triggered on the host's side ? Since from that handler the app_on_connection is triggered. If this handler isn't triggered check with the power profiler if your devices are indeed connected to one another.
Thanks MT_dialog
I did not mention before specifically, but gapc_connection_req_ind_handler is not getting triggered at all.
I have never heard of this power profile, how can it help me out with this?
Hi Fernando,
The power profiler is a tool in Smart Snippets, if you have a pro dev kit you check that your device is actually scanning and upon connection that your central is actually connected to the peripheral (in scanning you should see the scan window as square pulses on power profiler, and as soon as the devices are connected you should see small duration of Tx and Rx activity), in order to make sure that the devices are actually connected. I am not able to figure out what reason can cause the connection handler not to occur except that the devices are not getting connected at all.
Thanks MT_dialog