Bluetooth Development Notes

Source: Internet
Author: User

MFI ======= make for ipad, iphone, itouch devices for Apple devices ble = buletouch Low energy, Bluetooth 4.0 devices because of the power consumption, so also called ble peripheral,cent RAL = = Peripheral and center, initiating connected central, connected device for perilheral peripheral,central = = Peripheral and center, initiating connected central, connected device for Perilheral

Service and characteristic = = = Services and features each device provides services and features, similar to the API on the server side, but the organization is different. Each peripheral will have a lot of services, each service contains a lot of fields, the permissions of these fields are generally divided into reading read, write, notify Notiy several, that is, we connect the device after the specific need to operate content.

Description each characteristic can correspond to one or more Description users to describe characteristic information or properties

MFI = = = Development using Externalaccessory framework

4.0 BLE = = = Development using Corebluetooth Framework Bluetooth Center mode flow 1. 建立中心角色
2. 扫描外设(discover)
3. 连接外设(connect)
4. 扫描外设中的服务和特征(discover)
    - 4.1 获取外设的services
    - 4.2 获取外设的Characteristics,获取Characteristics的值,获取Characteristics的Descriptor和Descriptor的值
5. 与外设做数据交互(explore and interact)
6. 订阅Characteristic的通知
7. Disconnect (disconnect) Bluetooth peripheral mode flow 1. 启动一个Peripheral管理对象
2. 本地Peripheral设置服务,特性,描述,权限等等
3. Peripheral发送广告
4. Set up a delegate to process subscriptions, unsubscribe, read characteristic, write characteristic Bluetooth device status 1. 待机状态(standby):设备没有传输和发送数据,并且没有连接到任何设
2. 广播状态(Advertiser):周期性广播状态
3. 扫描状态(Scanner):主动寻找正在广播的设备
4. 发起链接状态(Initiator):主动向扫描设备发起连接。
5. 主设备(Master):作为主设备连接到其他设备。
6. From Device (Slave): Connect to other devices as slave devices. Five working status of Bluetooth devices
      • Preparation (Standby)
      • Broadcast (advertising)
      • Monitor scan (scanning
      • Initiating a connection (initiating)
      • Connected (Connected)


        Reference Link: http://liuyanwei.jumppo.com/2015/07/17/ios-BLE-1.html

Bluetooth Development Notes

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.