IOS development-talking about Bluetooth Communication

Source: Internet
Author: User

Background: Why do we need to study IOS Bluetooth? A: Of course, it is necessary to work. The company has a project for ECG Measurement, which is mainly to use handheld embedded devices to measure ECG and transmit data to mobile phones (Android, IOS) through Bluetooth ), then, the mobile phone parses the data packet and draws a curve, and finally uploads the data to the server for storage. Currently, you have completed APP development for Android devices and supported most mainstream Android devices (Major Android manufacturers have different Bluetooth versions, but there is little hope of full compatibility ), then Boss is planning to continue developing the IOS version, so let me start IOS from the very beginning as a little white player of QT. What preparations are required for IOS Bluetooth development? A: I spent the whole morning reading the answers from various experts and benefited a lot. I plan to select a better solution to implement my IOS Bluetooth journey and search for the Internet, turning CocoaChina and Code4App across the sky is mostly bad news. What do you know about IOS Bluetooth? A: First of all, the IOS device's Bluetooth is not used to transmit files to you. You need to have a deep understanding that the reason why Apple installs Bluetooth on them is to let you practice Bluetooth headsets, isn't it costly to listen to songs on non-jailbreaking Apple phones? If you use Bluetooth to send songs to others, isn't it infringement? (of course, there is no infringement in TC). So, Apple restricts the file transfer on the hardware. In addition, Apple had a special exception before Bluetooth 4.0, that is, only IOS devices and apple-certified MFI devices can be retrieved by IOS devices. So, what is Android Bluetooth, I want to connect my own bluetooth device to an apple and tell you that it is possible !!! However, after Bluetooth 4.0 is released (note that it takes more than 4s for the hardware, and ios6 for the system to support more than 4.0), Apple opened the BLE channel, which is truly a blessing, our Bluetooth devices without MFI authentication can connect to non-jailbreaking apple, so we can also develop Bluetooth applications. However, this is only available in Bluetooth 4.0, that is to say, love crazy 4 does not support it, so full compatibility is still impossible. Note: The above are all for non-jailbroken IOS devices. Of course, there is a better way to jailbreak. The method is described below. First, you need to know what your purpose is. Generally, IOS Bluetooth development has the following three purposes: 1. the good news between IOS devices and IOS devices is that ios6.0 can take the iPhone as a slave device, and the two iPhones can transmit data through Bluetooth communication. The bad message similar to the spp protocol is: what we need is not this mode. This mode is usually used by two local tyrants who use IOS devices to learn from each other and play a speeding game or something. Note that 2. what is MFI authentication between IOS devices and MFI authentication devices? Make For ipod/ipad/iphone. Only a few hardware vendors have MFI certification For Apple. If you see this, your Bluetooth device has not been designed yet, and you want to publish it on the AppStore and use Bluetooth less than 4.0 (4.0 does not require MFI, gospel), so you should start with an MFI-certified hardware, our company already has products, so it is impossible to redesign and Pass the solution. The good news is: If your Bluetooth module has not been designed and you plan to release it on the AppStore, you plan to use Bluetooth 4.0 or lower (compatible with IOS devices ), the bad news is: We can't redesign it, so we should discard it. interaction between IOS devices and non-IOS devices is our current situation. Based on this situation, we can analyze two situations:. I want to make a Bluetooth 4.0 or lower, so that iPhone 4 can also use the good news: it is compatible with iPhone 4, but because Apple is closed, there is no API for you to call, apple cannot retrieve any non-IOS device, so you need to jailbreak. Calling a private Api to connect to the device has bad news: only the jailbroken mobile phone can be used. Publishing to the AppStore is a delusion. I want to implement Bluetooth 4.0, but it's not completely compatible. I want to publish the good news on the AppStore: Apple has opened the 4.0 BLE channel, and you can use the BLE channel for communication, in addition, 4.0 devices can also retrieve bad messages: both IOS and IOS devices are not fully compatible. Therefore, you can select a solution based on your actual situation, the following solutions are summarized: 1. scenario: Bluetooth 2.0, published on AppStore A: Use the MFI-certified bluetooth module to design your Bluetooth Product Features: it can be used without jailbreak, and IOS devices are fully compatible. scenario: Bluetooth 2.0, no MFI answer: you cannot use Apple's Api. You can use a private Api to connect to a device. Feature: Only jailbreak mobile phones can be used. IOS devices are fully compatible. scenario: Bluetooth 4.0 answer: Using BLE channels features: IOS devices are not fully compatible and do not require jailbreak. MFI is not required and can be published on the AppStore.

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.