微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI无线射频设计 > cc1310的WakeOnRadio的接受时间修改

cc1310的WakeOnRadio的接受时间修改

时间:12-23 整理:3721RD 点击:

您好,TI工程师。我发现按照您的修改建议,还是不能修改RX的时间。配置的模式为:#define WOR_MODE  CarrierSenseMode_RSSIandPQT

尝试一:


// CMD_PROP_RX
rfc_CMD_PROP_RX_t RF_cmdPropRx =
{
.commandNo = 0x3802,
.status = 0x0000,
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
.startTime = 0x00000000,
.startTrigger.triggerType = 0x0,
.startTrigger.bEnaCmd = 0x0,
.startTrigger.triggerNo = 0x0,
.startTrigger.pastTrig = 0x0,
.condition.rule = 0x1,
.condition.nSkip = 0x0,
.pktConf.bFsOff = 0x0,
.pktConf.bRepeatOk = 0x0,
.pktConf.bRepeatNok = 0x0,
.pktConf.bUseCrc = 0x1,
.pktConf.bVarLen = 0x1,
.pktConf.bChkAddress = 0x0,
.pktConf.endType = 0x0,
.pktConf.filterOp = 0x0,
.rxConf.bAutoFlushIgnored = 0x0,
.rxConf.bAutoFlushCrcErr = 0x0,
.rxConf.bIncludeHdr = 0x1,
.rxConf.bIncludeCrc = 0x0,
.rxConf.bAppendRssi = 0x0,
.rxConf.bAppendTimestamp = 0x0,
.rxConf.bAppendStatus = 0x1,
.syncWord = 0xd391d391,
.maxPktLen = 0x80, // MAKE SURE DATA ENTRY IS LARGE ENOUGH
.address0 = 0xAA,
.address1 = 0xBB,
.endTrigger.triggerType = TRIG_ABSTIME,//TRIG_REL_START,
.endTrigger.bEnaCmd = 0x0,
.endTrigger.triggerNo = 0x0,
.endTrigger.pastTrig = 0x0,
.endTime = 0x1960000,
.pQueue = 0, // INSERT APPLICABLE POINTER: (dataQueue_t*)&xxx
.pOutput = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
};

尝试2:

while(1)
{
/* Set next wakeup time in the future */
RF_cmdPropRxSniff.startTime += WOR_WAKE_UP_INTERVAL_RAT_TICKS(WOR_WAKEUPS_PER_SECOND)*5;
RF_cmdPropRxSniff.endTrigger.triggerType = TRIG_REL_START;
RF_cmdPropRxSniff.endTime = 960000*2;
/* Schedule RX */
RF_runCmd(rfHandle, (RF_Op*)&RF_cmdPropRxSniff, RF_PriorityNormal, &callback, RF_EventRxEntryDone);
// PIN_setOutputValue(ledPinHandle, Board_PIN_LED0, !PIN_getOutputValue(Board_PIN_LED0));
/* Log RX_SNIFF status */
switch(RF_cmdPropRxSniff.status) {

关于这个原理,其实我还是有点疑问的,比如引导码和同步字的检测时,如果发生的错误呢?好像在程序中也没有指示,另外,我在仿真的时候,也从来没有跳转到default里面去,说明没有该错误的。所以这里是需要增加什么配置呢?

引导码和同步字的检测时,如果发生的错误呢?

前导码0101是做唤醒等待,同步字不匹配会不继续接收。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top