rtl8723wifi(蓝牙模块)模块移植

本文详细介绍了在Linux 2.6.30环境下Bluez蓝牙软件的移植过程及配置步骤,包括使用bluez-4.95版本进行编译安装,并通过具体命令展示了如何加载蓝牙驱动、启动蓝牙设备、扫描附近设备以及进行连接测试。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

驱动编译跟内核配置(我用的是linux 2.6.30)就不多说了。

关键是Bluez的移植。原来我也是按照网上说的安装下面这一堆库

bluez-libs-3.36.tar.gz

dbus-1.5.12.tar.gz

expat-2.0.1.tar.gz

glib-2.26.1.tar.gz

bluez-utils-3.36.tar.gz

libusb-0.1.12.tar.gz

可是总是出错,最后卡在那里。

后来我就下了bluez-4.95.tar.gz,直接编译,安装。./configure --prefix=/usr/local/nimeia --host=arm-linux-gcc

make 

sudo make install

会在/usr/local/nimeia路径下生成 下列目录

  bin/     etc/     include/ lib/     sbin/    share/   var/ 

我们需要的工具在bin 、sbin 下,所需库在 lib下。

把这些拷贝到开发板。

执行下列命令;

1\
 加载驱动
/lib/firmware # insmod rtk_btusb.ko 
rtk_btusb: Realtek Bluetooth USB driver ver 0.8
rtk_btusb: btusb_probe 1==========can_wakeup=1 flag2=1
rtk_btusb: patch_add
usbcore: registered new interface driver rtk_btusb


2\


查看蓝牙设备
/bin # hciconfig 
hci0: Type: BR/EDR  Bus: 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
3\
启动设备,会自动加载固件;
/sbin # ./hciconfig hci0 up  
rtk_btusb: btusb_open hdev->promisc ==0
rtk_btusb: download_patch start
rtk_btusb: check_fw_version : read_ver_rsp->lmp_subver = 0xf4e9
rtk_btusb: Rtk patch end 1
/sbin # RTL871X: c2h_handler_8723a ,  Got  C2H_BT_INFO 


4\
再次查看设备,


/sbin # ./hciconfig
hci0: Type: BR/EDR  Bus: USB
BD Address: 00:95:69:08:A1:07  ACL MTU: 820:8  SCO MTU: 255:16
UP RUNNING 
RX bytes:1646 acl:0 sco:0 events:137 errors:0
TX bytes:372 acl:0 sco:0 commands:67 errors:0


5\
扫描设备
/sbin # ./hcitool scan
Scanning ...
00:74:23:8E:D2:A9 K-Touch T619(天语 )  
38:BC:1A:88:59:E2 MEIZU MX2
6\
 开启可检测性和连接
root@lierda:~# ./hciconfig hci0 up piscan


7\ 
ping测试
/sbin # ./l2ping 00:74:23:8E:D2:A9
Ping: 00:74:23:8E:D2:A9 from 00:95:69:08:A1:07 (data size 44) ...
44 bytes from 00:74:23:8E:D2:A9 id 0 time 55.44ms
44 bytes from 00:74:23:8E:D2:A9 id 1 time 40.19ms
44 bytes from 00:74:23:8E:D2:A9 id 2 time 47.14ms

到此基本上已经通了

1. General Description 1-1. Product Overview and Functional Description AzureWave Technologies, Inc. introduces the first IEEE 802.11b/g/n WLAN & Bluetooth stamp module ---AW-NB300SM. The stamp module is targeted to mobile devices including Personal Digital ShenZhen Header Office Contact:JackyChen PhoneNo.,:13510094765.email:jackychen@flycastle.com flycastle@126.com Assistants (PDAs), Netbook, Tablet and Gaming Devices which need small package stamp module, low power consumption, multiple interfaces and OS support. By using AW-NB300SM, the customers can easily enable the Wi-Fi, and BT embedded applications with the benefits of high design flexibility, short development cycle, and quick time-to-market. Compliance with the IEEE 802.11b/g/n standard, the AW-NB300SM uses Direct Sequence Spread Spectrum (DSSS), Orthogonal Frequency Division Multiplexing (OFDM), DBPSK, DQPSK, CCK and QAM baseband modulation technologies. A high level of integration and full implementation of the power management functions specified in the IEEE 802.11 standard minimize the system power requirements by using AW-NB300SM. In addition to the support of WPA/WPA2 and WEP 64-bit and 128-bit encryption, the AW-NB300SM also supports the IEEE 802.11i security standard through the implementation of Advanced Encryption Standard (AES)/Counter Mode CBC-MAC Protocol (CCMP), Wired Equivalent Privacy (WEP) with Temporal Key Integrity Protocol (TKIP), Advanced Encryption Standard (AES)/Cipher-Based Message Authentication Code (CMAC), and WLAN Authentication and Privacy Infrastructure (WAPI) security mechanisms. For the video, voice and multimedia applications the AW-NB300SM support 802.11e Quality of Service (QoS). For Bluetooth operation, AW-NB300SM is Bluetooth 4.0, also complaint with Bluetooth 2.1 + Enhanced Data Rate (EDR). The AW-NB300SM supports SDIO for WLAN to the host processor. UART interface are available to connect the BT core the host processor. AW-NB300SM is suitable for multiple mobile processors for different applications. AW-NB300SM stamp module adopts Realtek latest highly-integrated WLAN & Bluetooth SoC---RTL8723BS. All the other components are implemented by all means to reach the mechanical specification required.
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值