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

cc1310 发送数据的时候那个远端地址 dstaddr 是怎么确定的,地址的设置在哪里呢

cc1310 发送数据的时候那个远端地址  dstaddr  是怎么确定的,地址的设置在哪里呢

Alvin Chen:

请看程序中的获取:

static void jdllcJoinedCb(ApiMac_deviceDescriptor_t *pDevInfo,Llc_netInfo_t *pParentInfo)
{uint32_t randomNum = 0;/* Copy the parent information */memcpy(&parentInfo, pParentInfo, sizeof(Llc_netInfo_t));/* Set the collector's address as the parent's address */if (pParentInfo->fh && CONFIG_RX_ON_IDLE){collectorAddr.addrMode = ApiMac_addrType_extended;memcpy(collectorAddr.addr.extAddr, pParentInfo->devInfo.extAddress,(APIMAC_SADDR_EXT_LEN));}else{collectorAddr.addrMode = ApiMac_addrType_short;collectorAddr.addr.shortAddr = pParentInfo->devInfo.shortAddress;}

user5028722:

而且接收和发送的例程的地址都是0xaa 

Alvin Chen:

回复 user5028722:

你用的是EASYLINK,是写死的就是0xaa的:/** Address filtering is enabled by default on the Rx device with the* an address of 0xAA. This device must set the dstAddr accordingly.*/txPacket.dstAddr[0] = 0xaa;

请您下次发帖描述清楚您的问题,我默认你使用的是15.4 stack。

YiKai Chen:

你用的是什麼協議棧?TI 15.4?

user5028722:

回复 Alvin Chen:

你好,这个函数是在哪一个例程里面呢?具体在哪一个文件里面?

Alvin Chen:

回复 user5028722:

你是什么例程,Easylink 就是默认的0xaa ,15.4是分配的。

user5028722:

回复 Alvin Chen:

collector这个例程,
上面发的那个函数在这个例程里面有吗?这个函数:static void jdllcJoinedCb(ApiMac_deviceDescriptor_t *pDevInfo,Llc_netInfo_t *pParentInfo)

user5028722:

回复 Alvin Chen:

赞(0)
未经允许不得转载:TI中文支持网 » cc1310 发送数据的时候那个远端地址 dstaddr 是怎么确定的,地址的设置在哪里呢
分享到: 更多 (0)