CC2640最新的SDK中已经没有RTLS Toolbox的相关资料和文档了。相关的资料在SimpleLink™ CC13X2 / CC26X2 SDK.的SDK中有,AOA这部分功能已经转向CC26X2系列了?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
CC2640最新的SDK中已经没有RTLS Toolbox的相关资料和文档了。相关的资料在SimpleLink™ CC13X2 / CC26X2 SDK.的SDK中有,AOA这部分功能已经转向CC26X2系列了?
在RTLS_CMD_AOA_SET_PARAMS中,在python中设置了天线切换模式
Listing 99. AoaSetParamsReq:
class AoaSetParamsReq(NpiRequest, SyncReq, FromAp): command = Commands.RTLS_CMD_AOA_SET_PARAMS struct = Struct( "aoaRole" / Enum(Int8ul, AoaRole), # AOA_MASTER, AOA_SLAVE, AOA_PASSIVE "aoaResultMode" / Enum(Int8ul, AoaResultMode), # AOA_MODE_ANGLE, AOA_MODE_PAIR_ANGLES, AOA_MODE_RAW "connHandle" / Int16ul, "slotDurations" / Int8ul, # 1us/2us sampling slots "sampleRate" / Int8ul, # 1Mhz (BT5.1 spec), 2Mhz, 3Mhz or 4Mhz - this enables oversampling "sampleSize" / Int8ul, # 8 bit sample (as defined by BT5.1 spec), 16 bit sample (higher accuracy) "sampleCtrl" / Int8ul, # sample control flags bit[0] = 0-default filtering, bit[0]= 1-RAW_RF no filtering # bit 4,5 - 0x10 - ONLY_ANT_1, 0x20 - ONLY_ANT_2 # 0x00 is not a valid option. "samplingEnable" / Int8ul, # 0 = mask CTE even if enabled, 1 = don't mask CTE, even if disabled (support Unrequested CTE) "numAnt" / Int8ul, # Number of antennas in antenna array "antArray" / Int8ul[this.numAnt], # GPIO's of antennas )
看下链接中的任务2:dev.ti.com/.../node
谢谢,这部分已经看到了。还需要请教一个新的问题,自己设置了圆形阵列的天线,需要通过8个GPIO去控制更多的12个天线切换两遍。控制的GPIO我需要修改的python和rtls_master中的哪些部分?
python中
void AOA_init(uint8_t startAntenna)
{
#ifdef RTLS_PASSIVE //此处宏定义passive有效的话, 在只用master的作为测量设备,需要在配置引脚切换。
uint8_t antArray[BOOSTXL_AOA_NUM_ANT + 1] = {ANT2, ANT1, ANT3, ANT4, ANT5, ANT6, ANT7,ANT8, ANT9, ANT10, ANT11, ANT12,ANT2, ANT1, ANT3, ANT4, ANT5, ANT6, ANT7,ANT8, ANT9, ANT10, ANT11, ANT12, ANT_ARRAY};
// Init only once
if (gPinHandle == NULL)
{
AOA_initAntArray(antArray, BOOSTXL_AOA_NUM_ANT + 1);
}
// Initialize ant array switch pin
if (startAntenna == 2)
{
// Start with A2 (ANT_ARRAY pin high is A1, low is A2)
PINCC26XX_setOutputValue(ANT_ARRAY, 0);
}
else
{
// Start with A1 (ANT_ARRAY pin high is A1, low is A2)
PINCC26XX_setOutputValue(ANT_ARRAY, 1);
}
#endif