code can be clearly viewed and conveniently called. The tool class is BleManager.
Private effecthadapter mblustmthadapter;
Private effecthdevice mblustmthdevice;
Private effecthgatt mblustmthgatt;
Private boolean isScanning = false;
// The objects defined above are useful in the following methods. (We recommend that you read the articles no matter who you are reading, first, we should familiarize ourselves with the meaning and basic functions of the above or some
[Bluetooth Low-Power BLE] Introduction, low-power ble Introduction
As the blog directory, set the topic first, and add the link after writing!
I. Basic USE OF THE CC254X Chip
1. Bluetooth Low-Power BLE controls GPIO to light LEDs
2. Use of
First, Key concepts:Generic Attribute profile (GATT)through BLE connection, read and write the profile General specification of the attribute class small data. All BLE application profiles are now based on GATT. Attribute Protocol (ATT)GATT is based on the ATT protocol. The ATT has been specifically optimized for BLE devices by using as little data as possible du
Original URL: http://www.cnblogs.com/savagemorgan/p/3722657.htmlFirst, Key concepts:Generic Attribute profile (GATT)Through BLE connection, read and write the profile General specification of the attribute class small data. All BLE application profiles are now based on GATT.Attribute Protocol (ATT)GATT is based on the ATT protocol. The ATT has been specifically optimized for
First, Key concepts:Generic Attribute profile (GATT)Through BLE connection, read and write the profile General specification of the attribute class small data. All BLE application profiles are now based on GATT.Attribute Protocol (ATT)GATT is based on the ATT protocol. The ATT has been specifically optimized for BLE devices by using as little data as possible dur
, authentication and properly end) is only 3ms. Standard Bluetooth technology requires hundreds of milliseconds to complete the same connection cycle. Again, the longer the wireless is switched on, the more battery energy is consumed.
Ii. Key Concepts:
(1) Generic Attribute profile (GATT)
Profile general specification for reading and writing attribute-class data through BLE
interface programmingThe Androidble interface is provided above the android4.3 version.1. Determine if the current system supports BLEGetpackagemanager (). Hassystemfeature (Packagemanager. Feature_bluetooth_le)Returns true representation support.2. Get the Bluetooth adapter classUsers use the BLE API through a unified Bluetooth adapter class Bluetoothadapter.G
device runs properly and needs to determine if the device supports BLE feature when the code is running: if (! Getpackagemanager (). Hassystemfeature (Packagemanager.feature_bluetooth_le)) { // does not support ble finish ();}(1) Implement the BluetoothAdapter.LeScanCallback interface, the BLE device search results will be returned through this callback
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
This article describes the android BLE Bluetooth 4.0, that is, API level >= 18, and Bluetooth 4.0 mobile phone can be used, if the phone system version API level First send the official demo, interested in the past to see: http://developer.android.com/guide/topics/connectivity/bluetooth-le.html. Android system more tha
This article describes the android BLE Bluetooth 4.0, that is, API level >= 18, and Bluetooth 4.0 mobile phone can be used, if the phone system version API level first send the official demo, interested in the past to see: http://developer.android.com/guide/topics/connectivity/bluetooth-le.html. Android system more tha
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.
The ibeacon module used in this article is April Beacon, as to what is ibeacon. This article does not explain, the specific please self-examination.
The information that a April beacon carries is as follows
0201061AFF4C0002159069BDB88C11416BAC3F33468C2788A3044B0378C60C09417072696C426561636F6E051250002003020A0000000000000000000000
What do you mean, exactly?
Bytes the follow in first ad STRUCTURE01 flags AD type06 Flags Value 0x1A = 000011010 bit 0
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
ArrayList // Optional reddevicenames = new ArrayList Optional reddeviceaddress = new ArrayList Set If (repeated reddevices. size ()> 0 ){// Parse them one by oneFor (incluthdevice devices: inclureddevices ){// Put it into the setPairedDeviceNames. add (devices. getName () + "\ n"+ Devices. getAddress ());PairedDeviceAddress. add (devices. getAddress ());}// Save informationNameAndAddress. add (pairedDeviceNames );NameAndAddress. add (pairedDeviceAddr
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.