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.

[参考译文] Linux/WL1831MOD:无法使用 hcitool &gatttol 命令获取 RSSI 值

Guru**** 2534260 points
Other Parts Discussed in Thread: WL1831MOD

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

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/579367/linux-wl1831mod-unable-to-get-rssi-value-using-hcitool-gatttol-commands

器件型号:WL1831MOD

工具/软件:Linux

您好!

我正在尝试扫描附近的任何 LE 器件并将其与 BT 模块连接、

它可以使用: hcitool lescan 扫描附近的设备,但无法使用: hcitool lecc 从命令行连接  命令

日志:

root@imx6slzbha:~# hcitool lescan
LE 扫描...
00:0B:57:0B:E2:BC BG58044
00:0B:57:0B:E2:BC (未知)
FC:2C:86:5E:D3:94 TDR
FC:2C:86:5E:D3:94 (未知)
7C:1A:03:00:0A:2B La-tag A87

root@imx6slzbha:~# hcitool lecc 7C:1A:03:00:0A:2B
连接手柄1025
root@imx6slzbha:~# hcitool con
连接:
root@imx6slzbha:~

root@imx6slzbha:~# gatttool -t random -b 7C:1A:03:00:0A:48 -I
[[7C:1A:03:00:0A:48][LE]>连接
正在连接... 连接错误:连接被拒绝(111)
[[7C:1A:03:00:0A:48][LE]>连接         //从 BLE Tag (本例中为 La Tag)听到连续的蜂鸣音

[][7C:1A:03:00:0A:2B][LE]>特性描述
命令失败:已断开连接
[][7C:1A:03:00:0A:2B][LE]>主
命令失败:已断开连接





hcitool 版本:
hcitool - HCI 工具版本4.101

我在/etc/Bluetooth/main.conf 文件中输入了以下条目:

#启用 GATT 功能。 默认为 false
EnableGatt = true
EnableLE = true //启用低功耗支持。 默认为 false。
AttributeServer = true //启用 GATT 属性服务器。 默认为 false。



请在此处提供帮助。



谢谢  
Ashish S

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

    此问题与 BlueZ 堆栈相关、而不是与 WL1831MOD 本身相关。 这些论坛仅支持 TI 双模蓝牙协议栈(以及与 BlueZ 的 HCI 级集成)。

    我建议您在 Linux 社区 BlueZ 论坛上发布此问题。 谢谢。

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