Bluez D-bus API Application Reference Resources

Source: Internet
Author: User

The default Bluetooth protocol stack in the Linux operating system is BlueZ.

1. Introduction

There are two ways to apply BlueZ:

(1) with the aid of BlueZ tools (such as: BLUETOOTHCTL), can be achieved: scanning, discovery equipment, pairing, connection and other commonly used operations. Pros: No need to write code, simple. Cons: Dynamically scan Bluetooth devices, add Bluetooth devices to a list, display on the screen, users choose to connect with a Bluetooth device, and receive notifications, write features. The above requirements, with the shell command there are a lot of limitations.

(2) Write code through the D-bus API to implement Bluetooth applications. Cons: D-bus API Getting Started learning threshold is relatively high (little reference resources). Advantages: More complex applications can be achieved.

2. Bluez DBUS API Reference Resources

Resources Worth referencing:

(1) BluezV5.42 DBUS C API for BLE? (link): A discussion of StackOverflow Web site D-bus API posts.

(2) Library to access GATT information from BLE (Bluetooth low Energy) devices (link): d-bus instance code.

(3) BlueZ source code (link)

The following is a reference resource for Chinese (there are 2 articles on D-bus)

(4) BlueZ5.45 D-bus bus GATT API analysis (link)

(5) BlueZ5 (link)

Currently only found so much, follow-up if there are better resources, then add.

3. Bluetooth Specification document

You must refer to the official documentation for Bluetooth learning.

Bluetooth 4.1 specification (core_v4.1.pdf)

Bluetooth 4.2 specification (core_v4.2.pdf)


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.