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.

[参考译文] CC2340R5:能#39;t 在 AdvReport 中获取 RSSI

Guru**** 2341440 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1441056/cc2340r5-can-t-get-rssi-in-advreport

器件型号:CC2340R5

工具与软件:

HII、  

  我正在使用 CC2340评估板、 其中 SDK 版本 simplelink_lowpower_f3_sdk_8_10_01_02示例 basic_ble (在中央模式下)。

当 调用 void Central_addScanRes (GSCANRpt_t *pScanRpt)时扫描后、我正在尝试使用 RSSI = pScanRpt->RSSI 获取 Scan_Evt_Adv;我得到0值、但我可以使用 pScanRpt->addr 成功获取设备地址、无法理解 RSSI 的问题是什么  

void Central_addScanRes(GapScan_Evt_AdvRpt_t *pScanRpt)
{
    if(centralScanIndex < APP_MAX_NUM_OF_ADV_REPORTS)
    {
        centralScanRes[centralScanIndex].addressType = pScanRpt->addrType;
        memcpy(centralScanRes[centralScanIndex].address, pScanRpt->addr, B_ADDR_LEN);  
         rssi = pScanRpt->rssi;
         snprintf(&mac_list[centralScanIndex*26], 27, "%02X:%02X:%02X:%02X:%02X:%02X:RSSI%d\n",
             pScanRpt->addr[5], pScanRpt->addr[4], pScanRpt->addr[3], pScanRpt->addr[2], pScanRpt->addr[1], pScanRpt->addr[0],rssi);
    // Send the formatted MAC address over UART
 centralScanIndex++;
    }
    
}

谢谢  

辛格王子

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、王子:

    作为快速测试、您是否可以尝试将 BLEAPPUTIL_ADV_REPORT 掩码添加到事件掩码中并在该事件中读取 RSSI? 我想看看我们是否可以在扫描开始时读取 RSSI。

    此致、

    1月

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Jan:

           将 BLEAPPUTIL_ADV_REPORT 掩码添加到事件掩码后 、我可以获得 RSSI。

    谢谢、此致  

    辛格王子