TI中文支持网
TI专业的中文技术问题搜集分享网站

Sensor/collector RF设置修改?

我根据TI以前的操作,在config中修改为433,信道设置为7F。我现在使用专用的433天线,长距离通讯,掉包率很高,我我怀疑433没有修改过来还是使用例子默认的频段。

我在mac_setting.c中还是使用的915?

rfc_CMD_PROP_RADIO_DIV_SETUP_t RF_cmdPropRadioDivSetup =
#endif
{
.commandNo = 0x3807,
.status = 0x0000,
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
.startTime = 0x00000000,
.startTrigger.triggerType = 0x0,
.startTrigger.bEnaCmd = 0x0,
.startTrigger.triggerNo = 0x0,
.startTrigger.pastTrig = 0x1,
.condition.rule = 0x1,
.condition.nSkip = 0x0,
.modulation.modType = 0x1, // GFSK
.modulation.deviation = 0x64, // 100
.symbolRate.preScale = 0xf, // 15
.symbolRate.rateWord = 0x8000, // 32768
.rxBw = 0x23, // 88 kHz
.preamConf.nPreamBytes = 0x7, // 7 bytes
.preamConf.preamMode = 0x0, // Send 0 as first bit in 2FSK
.formatConf.nSwBits = 24, // 24-bit of syncword
.formatConf.bBitReversal = 0x0,
.formatConf.bMsbFirst = 0x1,
.formatConf.fecMode = 0x0,
.formatConf.whitenMode = 0x7,
.config.frontEndMode = 0x0,
.config.biasMode = 0x1,
#if defined (DeviceFamily_CC13X2)
.config.analogCfgMode = 0x0,
#endif
.config.bNoFsPowerUp = 0x0,
.txPower = 0xa73f,
.pRegOverride = NULL,
.centerFreq = 915, // 915 MHz                 ======================================频段不对
.intFreq = 0x8000, // Use default
.loDivider = 0x05,
#if defined (DeviceFamily_CC13X2)
.pRegOverrideTxStd = NULL,
.pRegOverrideTx20 = NULL,
#endif
};

然后我用SmartRF Studio 7生成433频段的二个RF文件,生成出来的RF_cmdPropTx ,RF_cmdPropRx,然后我在SmartRF Studio 7加入RF_cmdPropTxAdv,RF_cmdPropRxAdv,这二个方法。然后替换掉RF_cmdPropRadioDivSetup、RF_cmdFs、RF_cmdPropTxAdv、RF_cmdPropRxAdv四个文件,无法入网。

我只修改RF_cmdPropRadioDivSetup、RF_cmdFs二个文件,程序可以正常运行,通讯距离有所改善。

请问TI大佬,RF除了修改config文件,还需要修改mac_setting文件吗?有改修的例子和文档查看吗?

Alvin Chen:

请不要修改sdk里面的设置文件,如果想切换为433MHZ

有如下两种配置:
APIMAC_GENERIC_CHINA_433_PHY_128
APIMAC_GENERIC_CHINA_LRM_433_PHY_130

user5322468:

回复 Alvin Chen:

我在config中设置APIMAC_GENERIC_CHINA_433_PHY_128,程序10米外基本收不到通讯。

修改mac_setting里面配置,现在10米外可以正常收发,现在已经通讯10多个小时没有发现异常。

主要是吧 .frequency = 915,改为0x01B1

赞(0)
未经允许不得转载:TI中文支持网 » Sensor/collector RF设置修改?
分享到: 更多 (0)