Other Parts Discussed in Thread: CC3351, AM62P
部件号: AM62P
Thread 中讨论的其他器件: CC3351、
尊敬的 TI 团队:
我们尝试在运行 Linux 11.02.08.02 的 TI AM62P 设置中启动 HFP 配置文件和 RFCOMM SPP 通信支持。 我们购买了 CC3351、但遗憾的是、它仅支持 WiFi 和 BLE。
现在、我们使用来自 TP Link (UB500) 的 USB 蓝牙软件狗、现在我们能够使用蓝牙在移动设备与 AM62P 之间进行扫描和配对。 以下是我们为实现 到目前为止所需行为所做的改变。
- 在内核配置中添加了以下条目
CONFIG_BT=y CONFIG_BT_BREDR=y CONFIG_BT_RFCOMM=y CONFIG_BT_RFCOMM_TTY=y CONFIG_BT_L2CAP=y CONFIG_BT_SCO=y CONFIG_BT_LE=y - 已验证更改是否反映在目标中
root@am62pxx-evm:~# zcat /proc/config.gz | grep RFCOM CONFIG_BT_RFCOMM=y CONFIG_BT_RFCOMM_TTY=y - 经验证的 bluetoothctl
[bluetooth]# show Controller 8C:90:2D:CB:AF:63 (public) Manufacturer: 0x005d (93) Version: 0x0a (10) Name: am62pxx-evm Alias: am62pxx-evm Class: 0x00000000 (0) Powered: yes Discoverable: no DiscoverableTimeout: 0x000000b4 (180) Pairable: yes UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb) UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb) UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb) UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb) Modalias: usb:v1D6Bp0246d0548 Discovering: no Roles: central Roles: peripheral Advertising Features: ActiveInstances: 0x00 (0) SupportedInstances: 0x04 (4) SupportedIncludes: tx-power SupportedIncludes: appearance SupportedIncludes: local-name SupportedSecondaryChannels: 1M SupportedSecondaryChannels: 2M SupportedSecondaryChannels: Coded
尽管所有这些确认都存在、但当尝试执行 RFCOMM 时、我们会收到以下错误。
root@am62pxx-evm:~# rfcomm
Can't open RFCOMM control socket: Protocol not supported
# Bluetooth is not having RFCOMM entry
root@am62pxx-evm:~# cat /proc/net/protocols | grep bluetooth
SCO 856 0 -1 NI 0 no bluetooth n n n n n n n n n n n n n n n n n n
L2CAP 840 0 -1 NI 0 no bluetooth n n n n n n n n n n n n n n n n n n
HCI 896 0 -1 NI 0 no bluetooth n n n n n n n n n n n n n n n n n n
# Bluetooth is not having rfcomm entry
root@am62pxx-evm:~# lsmod | grep bluetooth
bluetooth 540672 26 btrtl,btmtk,btintel,btbcm,btusb
ecdh_generic 16384 2 bluetooth
rfkill 28672 4 bluetooth,cfg80211
请建议我们如何在 TI AM62P 中建立 RFCOMM 和 HFP 配置文件?
此致、
Mohammed Shakir