Bluetooth external device for iOS system

Source: Internet
Author: User

iOS system to Bluetooth external devices in the iphone4 before the Bluetooth 2.0, need to pass the Apple audit, according to statistical pass rate only about 2%, now Bluetooth 2.0 is basically in the elimination state, so here is not considered.

Now iphone4s devices (including iphone4s, IPhone5, IPhone5S, Iphone6, iphone6s) are using Bluetooth 4.0, so let's talk about the use of Bluetooth 4.0 external devices.

Bluetooth 4.0 device in use, do not need to pass the Apple external device audit, so it will be relatively easy to use!

In the use of the time we need to import corebluetooth.framework, the development of the time is generally divided into the following several steps:

First step: Establish a central role

#import<CoreBluetooth/CoreBluetooth.h> implement <cbcentralmanagerdelegate, Cbperipheraldelegate> these two

Agreement

Step Two: Scan external devices

Step three: Link external devices

Fourth step: Scan the Bluetooth 4.0 service and features

Because Bluetooth 4.0 has a lot of services and features, we do the following to scan these services and features, and the notice feature of our service features open, where we should already know the Bluetooth device to link the service UUID and feature UUID, This is to be obtained by the maker or service provider of the Bluetooth device.

Fifth step: Communicate with the Bluetooth device

Obtaining Bluetooth data can be processed according to the data transfer rules developed by the manufacturer when developing the Bluetooth device.

With the emergence of health equipment such as sports bracelet, the development of Bluetooth development problems will be more and more, so for the development of Bluetooth devices must have a certain knowledge of the best reserves!

Jerry Education
Source:http://www.cnblogs.com/jerehedu/
Copyright Notice: The copyright of this article belongs to cigarettes DeskJerry EducationSection Technology Co., Ltd. and blog Park are shared, welcome reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility.
Technical Consultation:

Bluetooth external device for iOS system

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.