Currently, Bluetooth technology is mature, especially for mobile phones and PCs. This article mainly describes Bluetooth file transmission based on embedded armlinux. Currently, Linux kernel 2.6.x has been integrated with the bluez Bluetooth driver. For kernel version 2.4, download and install the bluez Bluetooth driver from the official bluez website. This is based on the 2.6 kernel. For 2.4, download bluez and install it. With the bluez Bluetooth driver, you also need to install the bluez-libs library and blue
Currently, Bluetooth technology is mature, especially for mobile phones and PCs.
This article mainly describes Bluetooth file Transmission Based on Embedded arm linux.
Currently, Linux kernel 2.6.x has been integrated with the bluez Bluetooth driver. For kernel version 2.4, download and install the bluez Bluetooth driver from the official bluez website.
This is based on the 2.6 kernel. For 2.4, download bluez and install it. With the bluez Bluetooth driver, you also need to install the bluez-libs Library and the bluez-utils tool.
Bluetooth File Transfer Application Development is divided into two parts: On pc and on ARM.
Configuration in linux
Fedora 9
Kernel version 2.6.25
Gcc: 4.0.0
There are always many problems when using a new kernel version for embedded development. 2.6.11 kernel is suitable for embedded development.
First, install the bluez-libs library and bluez-utils tool on the pc.
1. Download bluez-libs and bluez-utils from the official bluez website.
Http://www.bluez.org/download/
I downloaded bluez-libs-3.36 and bluez-utils-3.36.
2. Compile the Linux kernel of the PC
- # Cd/usr/src/kernels/2.6.25-14. fc9.i686/
- # Make menuconfig
- Networking -->
- Bluetooth subsystem support -->
- L2CAP protocl support
- SCO links support
- RFCOMM protocol support
- [*] Rfcomm tty support
- BENP protocol support
- [*] Multicast filter support
- [*] Protocol filter support
- CMTP protocol support
- HIDP protocol support
- Bluetooth devices drivers -->
- Hci usb driver
3. Install libs and utils.
Libs and bluez have to be installed normally by installing linux software.
Install libs
- # Tar xzvf bluez-libs-3.36.tar.gz
- # Cd bluez-libs-2.25
- #./Configure
- # Make
- # Make install
Note: If you use fedora 9 or the kernel version 2.6.25 or later, some files or parameters are not defined when utils is installed.