Hi, I'm studying by using DA14580 Expert Kit and Reference designs. But I have some questions about Reference designs.
I'm studying SPS, and I'd like to find out RSSI data from Ref design. But I think it's too hard for me to find it.
Could you tell me where I can get RSSI data in Ref design?
Or which files should I look over?
I've tried to look for it, but I can't. :(
I'm using "sps_device_fh.uvproj" file. I'd be happy when I get some information about that from you.
Thank you.
Keywords:
Dear Customer,
If you mean that RSSI data is connection RSSI, you're able to retrieve the connection RSSI value through the below code.
/**
****************************************************************************************
* @brief Send Read rssi request to GAP task.
*
* @return void.
****************************************************************************************
*/
void app_read_rssi(void)
{
struct gapc_get_info_cmd * req = KE_MSG_ALLOC(GAPC_GET_INFO_CMD, TASK_GAPC, TASK_APP, gapc_get_info_cmd);
req->operation = GAPC_GET_CON_RSSI;
ke_msg_send((void *) req);
}
and then, you can get the connection RSSI value when GAPC_CON_RSSI_IND event triggered.
- app_task_handlers.h
EXTERN const struct ke_msg_handler app_default_state[] =
{
...
{GAPC_CON_RSSI_IND, (ke_msg_func_t)gapc_read_con_rssi_ind_handler},
...
}
- GAPC_CON_RSSI_IND event handler
int gapc_read_con_rssi_ind_handler(ke_msg_id_t const msgid,
struct gapc_con_rssi_ind *param,
ke_task_id_t const dest_id,
ke_task_id_t const src_id)
{
(void)param->rssi; // connection RSSI
return (KE_MSG_CONSUMED);
}
Please refer tothe GAP interface specificationsection 5.4, if you need further detail.
Best Regards
Alvin.
Hi. The GAP interface spec doc you linked is a 404. Riviera Wave has been acquired by CEVA, as I'm sure you know, and docs there, if they exist, are behind a password wall. Do you know of a working link for that GAP doc?
Thanks!
The GAP interface specification can be found here:http://support.dialog-semiconductor.com/resource/gap-interface-specifica...
Thanks again!