微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > wl1835 蓝牙搜索不到设备

wl1835 蓝牙搜索不到设备

时间:10-02 整理:3721RD 点击:

我用git clone git://github.com/TI-ECS/build-utilites.git下载脚本编译的,
git reset --hard ol_r8.a8.10_32 使用了3.2版本的内核
wl18xx_build_bt.sh all build
然后把编译出来的module放到文件系统中,加载
# modprobe btwilink
Disabling lock debugging due to kernel taint
Compat-wireless backport release: ol_r8.a5.01
Backport based on linux-stable.git v3.6.3
compat.git: linux-stable.git
Bluetooth: Core ver 2.16
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
Bluetooth: Bluetooth Driver for TI WiLink - Version 1.0

hciattach ttyO5 texas 115200
Found a Texas Instruments' chip!
Firmware file : /lib/firmware/TIInit_11.8.32.bts
Loaded BTS script version 1
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
Bluetooth: HCILL protocol initialized
Device setup complete

# hciconfig -a
hci0: Type: BR/EDR Bus: UART
BD Address: 84:DD:20:6F:37:0F ACL MTU: 1021:6 SCO MTU: 180:4
UP RUNNING
RX bytes:2699 acl:0 sco:0 events:79 errors:0
TX bytes:1409 acl:0 sco:0 commands:73 errors:0
Features: 0xff 0xfe 0x2d 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF
Link mode: SLAVE ACCEPT
Name: 'bt'
Class: 0x001f00
Service Classes: Unspecified
Device Class: Invalid Device Class!
HCI Version: 4.0 (0x6) Revision: 0x0
LMP Version: 4.0 (0x6) Subversion: 0xac36
Manufacturer: Texas Instruments Inc. (13)

然后用hcitool scan,命令搜索附近的bluetooth设备,但是找不到,确认附近的bluetooth已经打开.

还有为什么Device Class: Invalid Device Class!,是驱动编译的问题还是配置的问题?谢谢了

请在hcitool scan之前 运行一下 hciconfig hci0 up命令再试试

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top