歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> USB 藍牙適配器在ARM 開發板下的使用

USB 藍牙適配器在ARM 開發板下的使用

日期:2017/3/1 10:21:56   编辑:Linux編程

標題:USB 藍牙適配器在ARM 開發板下的使用:

關鍵字: dbus,bluez-lib, bluez-utils, USB 藍牙,ARM

正文:

1、我的操作環境是

主機:xp + VMware Ubuntu 10.10 。 開發板:OK6410 。 文件系統: yaffs2 。 藍牙:藍牙適配器(適配器在PC ubuntu 下測試可用)。交叉編譯器:arm-linux-gcc 4.3.2

操作環境環境提示:如果你有Red Hat 或者 Fedora 這兩個操作環境,建議你首選這兩個環境,應為Ubuntu 操作起來問題太多了。

2、配置內核支持Bluetooth,

2.1 make menuconfig


[*] Networking support --->

<*> Bluetooth subsystem support ---> //藍牙子系統必須選擇

<*> L2CAP protocol suppor //邏輯鏈路控制和適配協議。

<*> SCO links support //藍牙語音和耳機支持

<*> RFCOMM protocol suppor //面向流的傳輸協議,支持撥號網絡等

[*] RFCOMM TTY support //

<*> BNEP protocol support //藍牙網絡封裝協議,自組網支持

[*] Multicast filter support //藍牙多播,支持支持BNEP

[*] Protocol filter support //藍牙多播,支持支持支持BNEP

<*> HIDP protocol support //基本支持協議

Bluetooth device drivers --->

<*> HCI USB driver //USB藍牙模塊支持

<M>HCI UART driver //基於串口,CF卡或PCMCIA的藍牙

<*> HCI BlueFRITZ! USB driver

<*> HCI VHCI (Virtual HCI device) driver

2.2 下載內核 檢測USB 藍牙設備信息:

[root@Mr /mnt]#usb 1-1: new full speed USB device using s3c2410-ohci and address
usb 1-1: New USB device found, idVendor=0a12, idProduct=0001
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[root@Mr /mnt]#

[root@FORLINX6410]# hciconfig檢測藍牙設備
hci0: Type: USB
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN
RX bytes:0 acl:0 sco:0 events:0 errors:0
TX bytes:0 acl:0 sco:0 commands:0 errors:0
[root@FORLINX6410]#

Copyright © Linux教程網 All Rights Reserved