Other Parts Discussed in Thread: SYSCONFIG
器件型号: CC1352R
主题: SysConfig 中讨论的其他器件
大家好!
我在 CC1352R1 中使用 TI 15.4 Stack 来创建定制应用。
我尝试了以下方法来发出孤立的扫描请求:
ApiMac_mlmeScanReq_t scanReq;memset(&scanReq, 0, sizeof(ApiMac_mlmeScanReq_t));scanReq.phyID = CONFIG_PHY_ID; //CONFIG_PHY_ID APIMAC_250KBPS_IEEE_PHY_0scanReq.channelPage = CONFIG_CHANNEL_PAGE; // CONFIG_CHANNEL_PAGE APIMAC_CHANNEL_PAGE_NONE// CONFIG_CHANNEL MASK = {0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,// 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}// Therefore I am just scanning channel 11STATIC uint8_t defaultChannelMask[APIMAC_154G_CHANNEL_BITMAP_SIZ] =CONFIG_CHANNEL_MASK;memcpy(scanReq.scanChannels,defaultChannelMask,APIMAC_154G_CHANNEL_BITMAP_SIZ);scanReq.maxResults = 0;scanReq.permitJoining = false;scanReq.linkQuality = false;scanReq.percentFilter = 255;scanReq.scanType = ApiMac_scantype_orphan;scanReq.scanDuration = 5memset(&scanReq.sec, 0, sizeof(ApiMac_sec_t)); // no securityApiMac_mlmeScanReq(&scanReq);注意:我正在处理 2.4GHz 频段(我知道是 Sub-1GHz 论坛、但没有 2.4GHz 论坛)