Porting the Bluetooth protocol stack and its tools to embedded ARMLinux

Source: Internet
Author: User
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

  1. # Cd/usr/src/kernels/2.6.25-14. fc9.i686/
  2. # Make menuconfig
  3. Networking -->
  4. Bluetooth subsystem support -->
  5. L2CAP protocl support
  6. SCO links support
  7. RFCOMM protocol support
  8. [*] Rfcomm tty support
  9. BENP protocol support
  10. [*] Multicast filter support
  11. [*] Protocol filter support
  12. CMTP protocol support
  13. HIDP protocol support
  14. Bluetooth devices drivers -->
  15. Hci usb driver

3. Install libs and utils.

Libs and bluez have to be installed normally by installing linux software.

Install libs

  1. # Tar xzvf bluez-libs-3.36.tar.gz
  2. # Cd bluez-libs-2.25
  3. #./Configure
  4. # Make
  5. # 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.