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/TMS320DM8148:无法在 DM8148中连接到蓝牙

Guru**** 2590100 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/640596/linux-tms320dm8148-not-able-to-connect-to-bluetooth-in-dm8148

器件型号:TMS320DM8148

工具/软件:Linux

我将 BT820 USB HCI 软件狗与 DM8148定制板配合使用。 我在内核2.6.37中启用了以下配置、

CONFIG_RFKILL=y
CONFIG_RFKILL_INPUT=y
CONFIG_BT_L2CAP=y

CONFIG_BT_SCO=y
CONFIG_BT_RFCOMM=y
CONFIG_BT_RFCOMM_TTY=CONFIG_BT_BNEP=y

CONFIG_BNEP_FILTER=y
CONFIG_BT_BT_CONFIG=Y_BT_HCP_CLT_BIP_CONFIG=Y=BT_CONFIG_CLT_HIBT_BIP_CONP=Y=Y_BUCT_CONFIG_CL_CL_Y=Y=Y=BT_CONFIG_CL_CL_CL_CL_CL_CLT_BI_CL_Y=Y=Y=Y_CLT_CLT_BIP_CONP=Y=BIP_CONFIG_CL_CL






在 lsusb 中、我能够看到我的软件狗、

lsusb
总线001器件001:ID 1d6b:0002 Linux Foundation 2.0根集线器
总线001设备002:ID 0a12:0001剑桥硅无线电有限蓝牙软件狗(HCI 模式)

当我尝试使用 bluetoothd 命令启用蓝牙时、出现错误 Can't init device hci0:input / output error (5)(无法初始化设备 hci0:输入/输出错误(5))。 以下是详细日志、

bluetoothd -n -d
bluetoothd[17768]:蓝牙守护程序4.98
bluetoothd[17768]:src/main.c:parse_config()解析 main.conf
bluetoothd[17768]:src/main.c:parse_config () discovto=0
bluetoothd[17768]:src/main.c:parse_config() pairTO=0
bluetoothd[17768]:src/main.c:parse_config() pageTo=8192
bluetoothd[17768]:src/main.c:parse_config () auto_TO=60
bluetoothd[17768]:src/main.c:parse_config () name=%h-%d
bluetoothd[17768]:src/main.c:parse_config () class="0x000100"
bluetoothd[17768]:src/main.c:parse_config () discov_interve=30
bluetoothd[17768]:src/main.c:parse_config()密钥文件没有密钥'deviceID'
bluetoothd[17768]:正在启动 SDP 服务器
bluetoothd[17768]:src/plugin.c:plugin_init ()正在加载内置插件
bluetoothd[17768]:src/plugin.c:add_plugin()正在加载音频插件
bluetoothd[17768]:src/plugin.c:add_plugin()正在加载输入插件
bluetoothd[17768]:src/plugin.c:add_plugin()正在加载串行插件
bluetoothd[17768]:src/plugin.c:add_plugin()正在加载网络插件
bluetoothd[17768]:src/plugin.c:add_plugin()正在加载服务插件
bluetoothd[17768]:src/plugin.c:add_plugin()正在加载 hciops 插件
bluetoothd[17768]:src/plugin.c:add_plugin()正在加载 mgmttop 插件
bluetoothd[17768]:src/plugin.c:add_plugin()正在加载 formfactor 插件
bluetoothd[17768]:src/plugin.c:add_plugin()正在加载存储插件
bluetoothd[17768]:src/plugin.c:add_plugin()正在加载适配器名称插件
bluetoothd[17768]:src/plugin.c:plugin_init()正在加载插件/usr/lib/bluetooth/plugins
bluetoothd[17768]:plugins/service.c:register_interface() path /org/bluez/17768/any
bluetoothd[17768]:plugins/service.c:register_interface()在路径/org/bluez/17768/any 上注册了接口 org.bluez.Service
bluetoothd[17768]:network/manager.c:read_config()/etc/bluetooth/network.conf:密钥文件没有密钥'DisplaySecurity'
bluetoothd[17768]:network/manager.c:read_config()配置选项:security=true
bluetoothd[17768]:input/manager.c:input_manager_init () input.conf:密钥文件没有密钥'IdleTimeout'
bluetoothd[17768]:audio/manager.c:audio_manager_init () audio.conf:密钥文件没有密钥'AutoConnect'
bluetoothd[17768]:audio/UNIX.c:UNIX_init() Unix 套接字创建时间:9.
bluetoothd[17768]:无法启动 SCO 服务器套接字
bluetoothd[17768]:无法初始化音频插件
bluetoothd[17768]:plugins/hciops.c:hciops_init ()
bluetoothd[17768]:plugins/hciops.c:hciops_setup()
bluetoothd[17768]:src/main.c:main()进入主循环
bluetoothd[17768]:src/rfkill.c:rfkill_event() RFKILL 事件 idx 0类型2运算0软0硬0
bluetoothd[17768]:plugins/hciops.c:init_known_adapters ()
bluetoothd[17768]:plugins/hciops.c:init_device () hci0
bluetoothd[17768]:侦听 hci0上的 HCI 事件
bluetoothd[17777]:无法初始化器件 hci0:输入/输出错误(5)
bluetoothd[17768]:plugins/hciops.c:init_device()子17777标记
bluetoothd[17768]:plugins/hciops.c:child_exit()子文件17777退出

此外、我无法通过 hciconfig 查看我的器件 MAC、

hciconfig
hci0:  类型:BR/EDR 总线:USB
       BD 地址:00:00:00:00 :00:00 ACL MTU:0:0 SCO MTU:0:0
       向下
       RX 字节:0 ACL:0 SCO:0事件:0错误:0
       TX 字节:0 ACL:0 SCO:0命令:0错误:0

是否有人能建议我缺少什么?

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

    该软件狗是否可以在 Linux 桌面上正常工作?
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    是的、它在 Linux 桌面上工作。 在进行一些谷歌搜索后、它也开始在8148上工作。

    我想知道内核2.6.37是否支持 BLE? 因为我无法在内核中看到启用 LE 的任何选项? 我仅测试了经典。

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

    您好!

    Linux 的 LE 配置极少或没有配置。 您需要检查您正在使用的 BlueZ 版本。 此外、您的硬件必须支持 LE

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

    我想使用 BlueZ 4.101版的最低版本。 是的、硬件支持 LE。 如何验证是否需要为新 BlueZ 支持驱动程序? 是否有任何指向到3.2或最新版本的反向端口2.6.37内核的链接?