"Turn" Bluetooth BLE app development (iii)--grab Bag

Source: Internet
Author: User

Original URL: http://blog.csdn.net/lckj686/article/details/43156617

About the importance of the Android Bluetooth app development Grab pack in Android Bluetooth BLE app development (ii)--key concepts, connection parameters, the connection request has been described in detail and no longer boil down the firmware based on cc2540 cc2541

1. Environment

You need a clutch, dozens of bucks, usbdongle.

Install packet sniffer software to grab the bag.

Environmental construction can be consulted: http://blog.csdn.net/mzy202/article/details/32408223

Note: Some of the special settings of the software, such as filters and so do not deliberately pursue, almost good.

In addition, BLE communication new to have 37,38,39 three channels, specifically in which channel is random, and each connection is not fixed, so it is normal to catch. Grab a few more times and just. The recommendation is to adjust the test when the firmware side of the configuration, set in the fixed channel, the function of the configuration channel is: Gaprole_init

2, the specific package

Direction:

M-S host to slave phone to ble firmware

S-to-M slave to host

Appear? If the hair is not too fast, it may be abnormal, do not rule out the clutch

Broadcast Package

Connection events:

Initial Connection Package:

Front half

Rear Half

Winsize winoffset window parameters, ble protocol There's no need to care too much

Timeout time-out

Latency corresponds to slaver latency

Interval corresponds to Connection Interval

Detailed description See Android bluetooth BLE app development (ii)-key concepts, connection parameters, connection requests

Request Update Parameter pack:

Accept Request Parameters:

Result 0 accepts, 1 means deny

To reset the update parameters:

Write writes:

Host monitoring:

Hear: (return from the machine)

"Turn" Bluetooth BLE app development (iii)--grab Bag

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.