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