Thanks for your reply.
1.We port AN12872SW code to our own project;
2.Our project is modified based on SDK 2.2.8。
3.The ported content and process are as follows:
1)Master:
void main task(uint32_t param)
{
…….
if (Ble_Initialize(App_GenericCallback) != gBleSuccess_c)
{
panic(0,0,0,0);
return;
}
}
void BleApp_ConnectionCallback(deviceId_t peerDeviceId , gapConnectionEvent_t* pConnectionEvent)
{
……..
case gConnEvtConnected_c:
……..
// get HopIncrement,crcSeed ,syncAddress and ConnectionInterval then transfer to monitor by lin bus
LM_GetConnInfo(peerDeviceId, BTLE_CONNECT);
……..
break;
……..
}
2)Monitor:
void main task(uint32_t param)
{
…….
GENFSK_Init();
GENFSK_AllocInstance(&mAppGenfskId, NULL, NULL, NULL);
……..
}
// when Monitor get connection info from Master by lin bus
void GfskApp_StartLM(void)
{
hoppingInit(gLMParaArry, gLMPara);
// Set mAppStartApp = false in App_Thread and move App_InitApp content to here
GENFSK_RegisterCallbacks(mAppGenfskId, NULL, NULL);
CT_GenFskInit(NULL, NULL);
}
// get RSSI periodically
XcvrFskGetInstantRssi();
4. Current problems:
1) The RSSI value obtained periodically is abnormal.
2) Please help to confirm whether the above steps and procedures are correct? It is possible that the default parameters of config in the CT_GenFskInit function are not adapted.
3) It seems that there is no related function to get gLMPara.numUsedchannel in LM_GetConnInfo,and the monitoring channel caculated by hoppingInit is always 37.How to get correct channel information?