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.

WL1837MOD: 如何获取蓝牙对端的RSSI

Part Number: WL1837MOD
Other Parts Discussed in Thread: AM4378

你好:

我想定时获取已连接的ble 外设 RSSI 信号强度值,应该如何实现?

以下是我测试的应用场景:

1. Am4378+wl1837 +AM335xBluetopiaLinuxProduction-4.2.1.0.1.0 ,运行 LinuxGATM_CLT 作为 GATT client已经 成功连接GATT server

2. QueryRemoteDeviceProperties 尝试获取ble蓝牙对端的RSSI信号,但是每次返回的RSSI均为0

请问我应该如何才能获取到正确的RSSI?

GATM>1 1

Initialization Failure: Already initialized.
Function Error.
GATM>34 0080E126C960 1

Attempting to Connect With (LE) Remote Device: 0080E126C960 (Flags = 0x80000000).
DEVM_ConnectWithRemoteDevice() Success: 0.
GATM>
Remote Device Connection Status: 0080E126C960, 0 (SUCCESS)
GATM>
Remote Device Properties Changed.
BD_ADDR:             0080E126C960
Address Type:        Public
LE Type:             Single Mode
Device Flags:        0x4004B001
LE Connect State:    TRUE
GATM>
GATT Connection
    Connection Type: LE
    Remote Address:  0080E126C960
    MTU:             23


GATM>
GATT Connection MTU Update
    Connection Type: LE
    Remote Address:  0080E126C960
    New MTU:         251


GATM>QueryRemoteDeviceProperties 0080E126C960 1 1

Attempting to Query 0080E126C960 Device Properties: LE, ForceUpdate: TRUE.
DEVM_QueryRemoteDeviceProperties() Success: 0.
BD_ADDR:             0080E126C960
Address Type:        Public
Device Name:         PD_SERVER
LE Type:             Single Mode
Device Flags:        0x4004B001
Device Appearance:   0
LE RSSI:             0
LE Paired State :    FALSE
LE Connect State:    TRUE
LE Encrypt State:    FALSE
GATT Services Known: TRUE
GATM>
Remote Device Properties Changed.
BD_ADDR:             0080E126C960
Address Type:        Public
LE Type:             Single Mode
Device Flags:        0x4004B001
Device Appearance:   0
GATM>
Remote Device Properties Changed.
BD_ADDR:             0080E126C960
Address Type:        Public
Device Name:         PD_SERVER
LE Type:             Single Mode
Device Flags:        0x4004B001
GATM>
Remote Device Properties Status: 0080E126C960, SUCCESS.
BD_ADDR:             0080E126C960
Address Type:        Public
Device Name:         PD_SERVER
LE Type:             Single Mode
Device Flags:        0x4004B001
Device Appearance:   0
LE RSSI:             0
LE Paired State :    FALSE
LE Connect State:    TRUE
LE Encrypt State:    FALSE
GATT Services Known: TRUE
GATM>
Connection Parameters Updated
   Status             : 0
   BD_ADDR            : 0080E126C960
   Connection Interval: 200
   Slave Latency      : 0
   Supervision Timeout: 7500
GATM>QueryRemoteDeviceProperties 0080E126C960 1 0

Attempting to Query 0080E126C960 Device Properties: LE, ForceUpdate: FALSE.
DEVM_QueryRemoteDeviceProperties() Success: 0.
BD_ADDR:             0080E126C960
Address Type:        Public
Device Name:         PD_SERVER
LE Type:             Single Mode
Device Flags:        0x4004B001
Device Appearance:   0
LE RSSI:             0
LE Paired State :    FALSE
LE Connect State:    TRUE
LE Encrypt State:    FALSE
GATT Services Known: TRUE