Beruflich Dokumente
Kultur Dokumente
Session 703
Jason Conn
Brian Tucker
Renaud Lienhart
These are confidential sessionsplease refrain from streaming, blogging, or taking pictures
1 Billion+
2,250
1,500
1,009,000,000 Devices
750
0
2012
2013
2014
2015
2016
2017
2018
Health Care
Sports/Fitness
Security
Automation
Entertainment
Toys
Pay Systems
Time Services
Proximity
iOS 5
Observer, Central, Client
CBCentralManager
Discover peripherals
Connect
CBPeripheral
Access remote services
iOS 6
Broadcaster, Peripheral, Server
CBPeripheralManager
Host services
Advertise information
Field CBCentral requests
Peripheral database caching
Whats New
Ch-ch-ch-changes
Emerging market
Limited hardware available
No iOS devices
Development difficult
Exploding market
Many LE-compatible devices
All iOS hardware
Macbook, Mac mini
Third-party development kits
Exploding market
Many LE-compatible devices
All iOS hardware
Macbook, Mac mini
Third-party development kits
Exploding market
Many LE-compatible devices
All iOS hardware
Most Mac hardware
Third-party development kits
<CBCentralManagerDelegate>
<CBCentralManagerDelegate>
retrievePeripherals:
<CBCentralManagerDelegate>
<CBCentralManagerDelegate>
retrievePeripherals:
didRetrievePeripherals:
<CBCentralManagerDelegate>
retrievePeripherals:
didRetrievePeripherals:
retrieveConnectedPeripherals
<CBCentralManagerDelegate>
retrievePeripherals:
didRetrievePeripherals:
retrieveConnectedPeripherals
didRetrieveConnectedPeripherals:
<CBCentralManagerDelegate>
<CBCentralManagerDelegate>
retrievePeripheralsWithIdentifiers:
<CBCentralManagerDelegate>
<CBCentralManagerDelegate>
retrievePeripheralsWithIdentifiers:
didRetrievePeripherals:
retrievePeripheralsWithIdentifiers:
<CBCentralManag
retrievePeripheralsWithIdentifiers:
retrieveConnectedPeripheralsWithServices:
<CBCentralManag
retrievePeripheralsWithIdentifiers:
retrieveConnectedPeripheralsWithServices:
connectPeripheral:options:
<CBCentralManag
Smarter Peripherals
Smarter Peripherals
More connection-aware
@property(readonly) BOOL isConnected;
typedef NS_ENUM(NSInteger, CBPeripheralState) {
CBPeripheralStateDisconnected = 0,
CBPeripheralStateConnecting,
CBPeripheralStateConnected };
@property(readonly) CBPeripheralState state;
Smarter Peripherals
More connection-aware
@property(readonly) BOOL isConnected;
typedef NS_ENUM(NSInteger, CBPeripheralState) {
CBPeripheralStateDisconnected = 0,
CBPeripheralStateConnecting,
CBPeripheralStateConnected };
@property(readonly) CBPeripheralState state;
Smarter Peripherals
Smarter Peripherals
Better service invalidation
Smarter Peripherals
Better service invalidation
(void)peripheralDidInvalidateServices:(CBPeripheral *)
Smarter Peripherals
Better service invalidation
(void)peripheralDidInvalidateServices:(CBPeripheral *)
(void)peripheral:(CBPeripheral *)didModifyServices:(NSArray *)
Jason Conn
Code Monkey & Radio Sponge
Performance Improvements
Service
Performance Improvements
Database caching, today
Service
190
Descriptor
Client Configuration
Performance Improvements
Database caching, today
Introduced in iOS 6
Service
190
Descriptor
Client Configuration
Performance Improvements
Database caching, today
Introduced in iOS 6
Increases speed and battery life
Service
190
Descriptor
Client Configuration
Performance Improvements
Database caching, today
Introduced in iOS 6
Increases speed and battery life
Cache services and characteristics
Service
190
Descriptor
Client Configuration
Performance Improvements
Database caching, in iOS 7
Service
190
73
Descriptor
Client Configuration
Performance Improvements
Database caching, in iOS 7
Service
190
73
Descriptor
Client Configuration
Performance Improvements
Database caching, in iOS 7
Service
190
73
Descriptor
Client Configuration
Performance Improvements
Database caching, in iOS 7
Service
190
73
Descriptor
Client Configuration
Performance Improvements
Database caching, in iOS 7
Service
190
73
Descriptor
Client Configuration
Performance Improvements
Database caching, in iOS 7
Free!
Service
190
73
Descriptor
Client Configuration
Performance Improvements
Performance Improvements
Sending data
Performance Improvements
Sending data
115 BPM
Performance Improvements
Sending data
115 BPM
Performance Improvements
Sending data
115 BPM
Performance Improvements
Sending data
115 BPM
Performance Improvements
96
Sending data
70
55
53
58
43
26
17
115 BPM
Mon
Tues
Weds
Mon
9%
14%
Thurs
50%
28%
Tues
Weds
Thurs
Performance Improvements
96
Sending data
70
55
53
58
43
26
17
115 BPM
Mon
Tues
Weds
Mon
9%
14%
Thurs
50%
28%
Tues
Weds
Thurs
Performance Improvements
Sending data
Performance Improvements
Sending data
Performance Improvements
Sending data
Performance Improvements
Sending data
Performance Improvements
Sending data
Performance Improvements
Sending data
Default MTU
23 bytes
Performance Improvements
Sending data
Default MTU
23 bytes
Performance Improvements
Sending data
Default MTU
23 bytes
Increased MTU
??? bytes
Performance Improvements
Sending data
Default MTU
23 bytes
Increased MTU
??? bytes
Performance Improvements
Sending data
Performance Improvements
Sending data
Performance Improvements
Sending data
Performance Improvements
Sending data
Performance Improvements
Performing long-term actions
Performance Improvements
Performing long-term actions
Backgrounding modes
Backgrounding modes
Backgrounding modes
App communicates using CoreBluetooth
App shares data using CoreBluetooth
Backgrounding modes
App communicates using CoreBluetooth
App shares data using CoreBluetooth
Background applications can be terminated by system
Backgrounding modes
App communicates using CoreBluetooth
App shares data using CoreBluetooth
Background applications can be terminated by system
Scanning state
CBPeripheralManager
CBPeripheralManager
Advertising state
CBPeripheralManager
Advertising state
Published services
CBPeripheralManager
Advertising state
Published services
Central subscriptions
Demo
Adding State Preservation and Restoration Support
Jason Conn
Code Monkey & Radio Sponge
Built-in Services
Bluetooth Low Energy graduates
Renaud Lienhart
Keeper of the Code & General Curmudgeon
Built-in Services
GATT Client
Built-in Services
GATT Client
Built-in Services
GATT Client
Built-in Services
GATT Server
Built-in Services
GATT Server
Battery Service
Built-in Services
GATT Server
Battery Service
Current Time Service
Accurate time and date
Time zone information
Built-in Services
GATT Server
Battery Service
Current Time Service
Accurate time and date
Time zone information
Built-in Services
Notificationsthe problems
Built-in Services
Notificationsthe problems
Built-in Services
Notificationsthe problems
Built-in Services
Notificationsthe problems
Built-in Services
Notificationsthe problems
Built-in Services
Notificationsthe problems
Built-in Services
Notificationsthe problems
Built-in Services
Notificationsthe problems
Built-in Services
Notificationsthe problems
Built-in Services
Notificationsour solution
Built-in Services
Notificationsour solution
Built-in Services
Notificationsour solution
Apple-specific
Built-in Services
Notificationsour solution
Built-in Services
Notificationsour solution
Built-in Services
Notificationsour solution
Built-in Services
Notificationsour solution
Built-in Services
Notificationsour solution
Built-in Services
Notificationsour solution
Built-in Services
Notificationsour solution
Built-in Services
Apple Notification Center Service
New iMessage
New iMessage
New Social Notification, UID=1
New iMessage
New Social Notification, UID=1
GetAttributes(UID=1,Title,Msg)
New iMessage
New Social Notification, UID=1
GetAttributes(UID=1,Title,Msg)
Title=Jason,Msg=Beers?
New iMessage
New Social Notification, UID=1
GetAttributes(UID=1,Title,Msg)
Title=Jason,Msg=Beers?
Alert User
New iMessage
New Social Notification, UID=1
GetAttributes(UID=1,Title,Msg)
Title=Jason,Msg=Beers?
Alert User
iMessage Read
New iMessage
New Social Notification, UID=1
GetAttributes(UID=1,Title,Msg)
Title=Jason,Msg=Beers?
Alert User
iMessage Read
New iMessage
New Social Notification, UID=1
GetAttributes(UID=1,Title,Msg)
Title=Jason,Msg=Beers?
Alert User
iMessage Read
Apple Guidelines
Bluetooth best practices
http://developer.apple.com/hardwaredrivers/
BluetoothDesignGuidelines.pdf
Apple Guidelines
Core Bluetooth Programming Guide
Finally!
More Information
Craig Keithley
MFi & I/O Technology Evangelist
keithley@apple.com
Stephen Chick
iPhone Evangelism
chick@apple.com
Developer Programs
MFi Program
http://developer.apple.com/mfi/
More Information
Bluetooth Accessory Design Guidelines
http://developer.apple.com/hardwaredrivers/BluetoothDesignGuidelines.pdf
Reporting Bugs
http://bugreport.apple.com
Related Sessions
Designing Accessories for iOS and OS X
Nob Hill
Tuesday 10:15AM
Presidio
Thursday 11:30AM
Labs
iOS and OS X Accessories Lab
Core OS Lab A
Tuesday 11:30AM
Core OS Lab B
Thursday 9:00AM
Entertainment
Sports/Fitness
Pay
Automation
Health
Proximity
Security
Toys
Systems
Care
Health Care
Sports/Fitness
Toys
Automation
Pay Systems
Security
Entertainment
Proximity
Health Care
Sports/Fitness
Security
Automation
Pay Systems
Entertainment
Proximity