Bluetooth 4.0/ble protocol Stack Learning notes (i)
Required Software tools:
1. BLE protocol stack (ble-cc254x-1.4.0)
2. IAR development software (IAR Embedded Workbench8.20.2)
Note: The 1.4.0 protocol stack uses the 8.20.2 version of IAR, the 1.3.2 protocol stack, etc., using the 8.10.4 IAR version.
Requirements: BLE connection and communication (do now-device on-search device-connect device)Resources: Some demos and official documents from the Web:1-ble is a Android4.3 version of the api-to provide some conceptual things or it is necessary to understandAt present, the Android real machine can only accept and control products-that is, the client side of the-server end is only a product-and Apple seems
This article describes how to implement Ble Bluetooth, a small program. The source code download is provided, which has good reference value. Next let's take a look at the small Editor. This article mainly introduces the implementation of Ble Bluetooth, a small program. The source code download is provided, which has g
;}};Privatevoidwritecharacteristic(){.....mgattcharacsetintensity.SetValue(Data);mgattcharacsetintensity.Setwritetype(bluetoothgattcharacteristic.Write_type_default);Mbluetoothgatt.writecharacteristic(mgattcharacsetintensity);return;} Edit:i has a comparison with iPhone (a ble transfer data app from AppStore), the BLE transfer data are very quick (less t Han 0.5 sec), so impressive. How can we work around t
BLE bluetooth communication bluetooth_4.3The demo is primarily compatible with Bluetooth communication between Android4.3 devices that support ble. key features include:1, Bluetooth open, close;2, the surrounding Bluetooth to open
again. But I think it might be a supplement to the public address.This is the private address of the resolvable, the Prand part is a randomly generated 24bit value, the hash portion is generated using the following method:hash = ah(IRK, prand)Ah is an SMP part of the random address generation function, Irk is the key (Identity resolving key), the first randomly generated prand part, and then use this algorithm to generate the hash, and then the hash and Prand part into the corresponding bit reg
The demo is primarily compatible with Bluetooth communication between Android4.3 devices that support ble.Key features include:1, Bluetooth open, close;2, the surrounding Bluetooth to open the device search, build connected3, after the successful establishment of the connection, through Bluetooth to send messages to ea
Briefly
SMP is the security Manager Protocol. Its content is mainly pairing and key distribution, and then using key to the link or data encryption. Reference Articles
Before you understand the SMP protocol, you need some prior knowledge of BLE security management to refer to:Introduction to the SMP security management of BluetoothPairing method of Bluetooth security management SMSafe l2cap Channel of
Bluetooth Low-Power BLE: Controls GPIO to light LEDs and blegpio
This section describes the simplest and most basic things. The ios operation of the CC2540 uses the PORT as the GPIO. If you don't talk much about it, let's look at it.
1. Hardware Circuit
The most simple hardware circuit is to use a GPIO to control the LED light. Since GPIO is used as the output, the GPIO mode is not required.
It is quite si
I. OverviewThe Generic Attribute profile (GATT) defines a service framework using theAttribute Protocol. This framework defines Proceduresand formats of servicesand their characteristics. The proceduresdefined include discovering, reading,Writing, notifying and indicating characteristics, as well asconfiguring theBroadcast of characteristics.Two. ArchitectureThree. att attribute tableFour. GATT profile level1.SERVICE DEFINITION2.INCLUDE DEFINITION3.CHARACTERISTIC DEFINITION1) Characteristic Decl
The knowledge about Android Bluetooth has been skipped. You can search for it in hundreds of times.
This code has been verified by the project and is completely OK
Directly go to the Code step:
Private descrithadapter adapter;
1. // obtain the Bluetooth adapter
Adapter = descrithadapter. getdefaadapter adapter ();
// Enable BluetoothIf (! Adapter. isEnabled ()){// The pop-up dialog box prompts you to select
A ble and BT differencesIn fact, I know many programmers do not like to read in addition to the code of the document, because sometimes these too lengthy documents for programming and no more benefits, with the Protocol, interface, demo almost a lot of people can write very good quality code. But in fact, deeper into the programming is less reading, reading documents can solve many of the difficulties encountered in programming, such as large data tra
This article from http://blog.csdn.net/hellogv/, reference must indicate the source!
Recently, wearable devices have become very popular and technologies have become increasingly popular. One of them is BLE (Bluetooth Low Energy ). BLE is the core Profile of Bluetooth 4.0. Its main function is fast search, fast connect
Android BLE development-Android mobile phone and BLE terminal first recognized, androidble
Bluetooth BLE official Demo: http://download.csdn.net/detail/lqw770737185/8116019Refer to blog address: http://www.eoeandroid.com/thread-563868-1-1.html? _ Dsign = 843d16d6
Device: One MX5 mobile phone and one pesticide residue
Android Bluetooth Low Energy (Android Low-power Bluetooth)
Android 4.3 (API Level 18) has introduced core functions of Bluetooth Low Energy (BLE, Low-power Bluetooth) and provided relevant APIs through which applications can scan devices and query services, characteristics (
Recently, wearing equipment has developed very fast, and the related technology is also flourishing, one of which is ble (Bluetooth low energy). BLE is the core profile of Bluetooth 4.0, the main function is fast search, fast connection, ultra-low power to maintain connectivity and transmission of data, weak data trans
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.