Analysis of Bluetooth l2cap (i.)

Source: Internet
Author: User

Keywords: Bluetooth protocol HCI Anatomy HCI Overview HCI Note LMP l2cap SDP RFCOMM


Zhongjun

In the spirit of mutual learning purposes, to share this series of articles, welcome reprint, please specify the author, respect for copyright, thank you

Please correct me if the article is not in the wrong place, learn together


This series is currently intended to:

LMP anatomy + Analog Source code:

Analysis of Bluetooth LMP (i.)

Analysis of Bluetooth LMP (II.)

HCI anatomy + Analog Source code:

Analysis of Bluetooth HCI (i.)

Analysis of Bluetooth HCI (II.)

Analysis of Bluetooth HCI (III.)

L2CAP Analysis + Analog source code

Analysis of Bluetooth l2cap (II.)

SDP profiling + analog Source (unfinished)

Rfcomm Anatomy + Analog Source (not completed)

You can also access my csdn:http://blog.csdn.net/xiaoxiaopengbo/article/category/5998687 from the Bluetooth section.

--------------------------------------------------------------------------------------------------------------- ---------------------

Gorgeous split line, go to the chase

--------------------------------------------------------------------------------------------------------------- ---------------------


I. OverviewLogical connection control and adaptation protocol (the Logical link controls and adaptation Layer Protoco), abbreviated to L2CAP
L2CAP provides connection-oriented and non-connected data services to high-level through protocol multiplexing, segmented reorganization operations, and group concepts.
L2cap also masks many of the features in low-level transport protocols, enabling senior Protocol application developers to develop without having to understand basic-level protocols
Two. Frame diagram


Three. Data Format1. Connection-oriented data format
One of the more special is the signaling channel ID is 0x0001, mainly used for some instruction send (connect,disconnect,config)
The other channel IDs are the upper data
Example (signaling & upper layer):


2. Non-connected data format

Four. Signaling Channel Command Summary



Five. Process examples:The entire process

Analysis of Bluetooth l2cap (i.)

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.