This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-EM-CC1354P10: LP-EM-CC1354P10: RSSI

Part Number: LP-EM-CC1354P10
Other Parts Discussed in Thread: CC1354P10

Hello TI Team ,

Problem Statement :- RSSI value not updating (receive) continuously .

Expectation :- To update RSSI value continuously from the time of peripheral connected to central till the disconnection.

Detailed Explanation :- 

Currently I'm using LP-EM-CC1354P10 launch pad  where we are trying to get the RSSI value for which I'm using simplelink_cc13xx_cc26xx_sdk_7_10_01_24 \ examples \ rtos \ LP_EM_CC1354P10_1 \ ble5stack \ simple_peripheral code where i have done some modification in the code by which im able to receive the RSSI value for few seconds, after which it will stop updating the RSSI value  again it will start updating the value once i will subscribe  the notify from the central device (mobile) or write from the central device (mobile) it will update the RSSI value for a few sec and again stop updating the value.

   all the  Modification in the code are  mentioned below  and also attached  plz go through it and suggest changes so i get the RSSI value continuously from the time of peripheral connected to central till the disconnection    of the device  

 also if possible share the code for rssi if you can .

Changes done in code:-

1.)

inside the function [ static void SimplePeripheral_processGapMessage (gapEventHdr_t *pMsg) ]

 under this case [ case GAP_LINK_ESTABLISHED_EVENT:]

  i have added these statement  [ status_rssi =  Gap_RegisterConnEventCb(SimplePeripheral_connEvtCB, GAP_CB_REGISTER, GAP_CB_CONN_EVENT_ALL, pPkt->connectionHandle); ]

done this changes so  that the SP_CONN_EVT will be called continuously.

2.)

inside the function [ static void SimplePeripheral_processAppMsg(spEvt_t *pMsg) ]

under this case [  case SP_CONN_EVT:]

i have added these statement [ connHandle1 = *(uint16_t *)(((spClockEventData_t *)pMsg->pData)->data);
                                                     HCI_ReadRssiCmd(connHandle1);
                                                   SimplePeripheral_processConnEvt((Gap_ConnEventRpt_t *)(pMsg->pData));]

3.)

inside the function [static void SimplePeripheral_processCmdCompleteEvt(hciEvt_CmdComplete_t *pMsg)]      

under this case [  case HCI_READ_RSSI:]      

in this line im taking the update for rssi  value  [ rssi = (int8)pMsg->pReturnParam[3];]