Part Number:LAUNCHXL-CC1310
在sdk中有rf_Echo的例程,我希望可以实现高速模式下的回环,因此更改射频参数,下面是rx和tx的设置。
tx可以在接收和发送状态跳转,但是在rx上,一直无法接收到数据,rf的status显示为2(处于活动状态)。
请问该情况如何解决?希望ti的工程师可以帮忙解决一下。
tx设置
TX_EchoRF_cmdTxHS.pQueue = &txdataQueue;RF_cmdTxHS.startTrigger.triggerType = TRIG_ABSTIME;RF_cmdTxHS.startTrigger.pastTrig=1;RF_cmdTxHS.startTime=0;RF_cmdTxHS.pNextOp=(rfc_radioOp_t *)&RF_cmdRxHS;RF_cmdTxHS.condition.rule=COND_STOP_ON_FALSE;RF_cmdRxHS.pQueue = &rxdataQueue;RF_cmdRxHS.rxConf.bAutoFlushCrcErr = 1;/* Implement packet length filtering to avoid PROP_ERROR_RXBUF */RF_cmdRxHS.maxPktLen = 3;RF_cmdRxHS.pktConf.bRepeatOk = 0;RF_cmdRxHS.pktConf.bRepeatNok = 0;RF_cmdRxHS.pOutput = (rfc_hsRxOutput_t*)&rxStatistics;RF_cmdRxHS.endTrigger.triggerType=TRIG_REL_PREVEND;RF_cmdRxHS.endTime=(uint32_t)(4000000*0.5f);//Set Receive timeout to 500mstxcurrentDataEntry = (rfc_dataEntryGeneral_t*)&txDataEntryBuffer;pPacket= &txcurrentDataEntry->data;txcurrentDataEntry->length = 3;pPacket[0]=0x04;pPacket[1]=0x01;pPacket[2]=0xFF;//rfHandle = RF_open(&rfObject, &RF_prop_ghs, (RF_RadioSetup*)&RF_cmdPropRadioDivSetup_ghs, &rfParams);rfHandle = RF_open(&rfObject, &RF_prop_hsm, (RF_RadioSetup*)&RF_cmdRadioSetup_hsm, &rfParams);RF_postCmd(rfHandle, (RF_Op*)&RF_cmdFs, RF_PriorityNormal, NULL, 0);/* Get current time */curtime = RF_getCurrentTime();/* Set absolute TX time to utilize automatic power management */curtime += (uint32_t)(4000000*2.0f);//2s/////设置tx发送时间RF_cmdTxHS.startTime = curtime;
rx设置
RX_EchoRF_cmdRxHS.pQueue = &rxdataQueue;RF_cmdRxHS.rxConf.bAutoFlushCrcErr = 0;RF_cmdRxHS.maxPktLen = 3;RF_cmdRxHS.pktConf.bRepeatOk = 0;RF_cmdRxHS.pktConf.bRepeatNok = 1;RF_cmdRxHS.startTrigger.triggerType= TRIG_NOW;RF_cmdRxHS.condition.rule = COND_STOP_ON_FALSE;//Only run the TX command if RX is successfulRF_cmdRxHS.pOutput = (rfc_hsRxOutput_t*)&rxStatistics;RF_cmdRxHS.startTrigger.pastTrig=1;RF_cmdRxHS.startTime=0;RF_cmdRxHS.pNextOp = (rfc_radioOp_t *)&RF_cmdTxHS;RF_cmdTxHS.pQueue = &txdataQueue;RF_cmdTxHS.startTrigger.triggerType = TRIG_REL_PREVEND;RF_cmdTxHS.startTime = (uint32_t)(4000000*0.5f);//Set Transmit delay to 100mstxcurrentDataEntry = (rfc_dataEntryGeneral_t*)&txDataEntryBuffer;pPacket= &txcurrentDataEntry->data;txcurrentDataEntry->length = 3;
Cherry Zhou:
您好我们已收到您的问题并升级到英文论坛,如有答复将尽快回复您。谢谢!
,
Cherry Zhou:
您好,您能否先检查下在 RX 和 TX 器件上是否具有相同的 PHY 和频率设置?
问题可能是与这个有关。
如果以上设置没问题,那请您检查下您是否能够在不进行任何修改的情况下运行echo examples?
,
jinfang li:
在不进行修改的情况下可以运行,但是在高速的话依旧会卡住,他们的phy和频率设置正确,我猜测可能结构中conf设置有问题,我需要再试一试。
,
Cherry Zhou:
好的,那您先再测试下,期待您的反馈!
,
jinfang li:
已经解决了,感谢