Hi, 路过的大神们:
最近在做一个无线抓包的测试,被测设备是2.4G射频芯片做的产品(买的别人的),现在知道被测设备的数据速率是100kb/s,频率点在2401.001M上,FSK调频的;现在手里有一个CC2652 lanchpad 开发板,相关的设置参数如下:
// CMD_PROP_RADIO_SETUP
rfc_CMD_PROP_RADIO_SETUP_t RF_cmdPropRadioDivSetup =
{
.commandNo = 0x3806,
.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,
.modulation.modType = 0x0, //FSK模式
.modulation.deviation = 744, //200, 744对应Deviation=186kHz
.symbolRate.preScale = 15,
.symbolRate.rateWord = 262144, // 通过.symbolRate.preScale和.symbolRate.rateWord 获得100Khz的数据速率
.rxBw = 9,//7, //带宽要求500Khz
.preamConf.nPreamBytes = 4, //4个字节前导码
.preamConf.preamMode = 0x0,
.formatConf.nSwBits = 32, //前导码32位0101010101….01
.formatConf.bBitReversal = 0x0,
.formatConf.bMsbFirst = 0x0, //0: Least significant bit transmitted first 1: Most significant bit transmitted first
rfc_CMD_PROP_RADIO_SETUP_t RF_cmdPropRadioDivSetup =
{
.commandNo = 0x3806,
.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,
.modulation.modType = 0x0, //FSK模式
.modulation.deviation = 744, //200, 744对应Deviation=186kHz
.symbolRate.preScale = 15,
.symbolRate.rateWord = 262144, // 通过.symbolRate.preScale和.symbolRate.rateWord 获得100Khz的数据速率
.rxBw = 9,//7, //带宽要求500Khz
.preamConf.nPreamBytes = 4, //4个字节前导码
.preamConf.preamMode = 0x0,
.formatConf.nSwBits = 32, //前导码32位0101010101….01
.formatConf.bBitReversal = 0x0,
.formatConf.bMsbFirst = 0x0, //0: Least significant bit transmitted first 1: Most significant bit transmitted first
.formatConf.fecMode = 0x0, .
.formatConf.whitenMode = 0x0,
.config.frontEndMode = 0x0,
.config.biasMode = 0x0,
.config.analogCfgMode = 0x0,
.config.bNoFsPowerUp = 0x0,
.txPower = 0x9324,
.pRegOverride = pOverrides,
};
.formatConf.whitenMode = 0x0,
.config.frontEndMode = 0x0,
.config.biasMode = 0x0,
.config.analogCfgMode = 0x0,
.config.bNoFsPowerUp = 0x0,
.txPower = 0x9324,
.pRegOverride = pOverrides,
};
rfc_CMD_FS_t RF_cmdFs =
{
.commandNo = 0x0803,
.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,
.frequency = 2401,
.fractFreq = 66, //通过.frequency和.fractFreq 算出频点在2401.001Mh
{
.commandNo = 0x0803,
.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,
.frequency = 2401,
.fractFreq = 66, //通过.frequency和.fractFreq 算出频点在2401.001Mh
.synthConf.bTxMode = 1,
.synthConf.refFreq = 0x0,
};
.synthConf.refFreq = 0x0,
};
请问上面的设置数据100kb/s,频点和deviation参数是上面这些值吗?目前测试抓不到数据!
Alvin Chen:
CC2652R支持BLE+802.15.4,
如果你想做proprietary 建议选择CC2500.
zhi fang:
回复 Alvin Chen:
CC2652R 数据手册和应用手册上看到是支持proprietary,smart studio工具上没有proprietary模式选项而已,simplelink_cc26x2_sdk_2_20_00_36\examples\例程里面有例程的,目前手里只有CC2652R的开发工具,是否有什么文档或其他工具可以支持一下?
Alvin Chen:
回复 zhi fang:
私有模式没有太多资料以及工具,你可以去英文板块去问一下。