system frameworks #wwdc17 - development videos · pdf fileyes no. out-of-band pairing over usb...

226
#WWDC17 © 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Tanya Kancheva, CarPlay Engineering Developing Wireless CarPlay Systems Session 717 System Frameworks

Upload: buitu

Post on 29-Mar-2018

253 views

Category:

Documents


8 download

TRANSCRIPT

Page 1: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

#WWDC17

© 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple.

Tanya Kancheva, CarPlay Engineering

•Developing Wireless CarPlay Systems • Session 717

System Frameworks

Page 2: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wireless CarPlay

Page 3: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wireless CarPlay

Page 4: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

•Using Wireless CarPlay

Page 5: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Getting Started

Page 6: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Getting Started

Pair by plugging in

Page 7: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Getting Started

Pair by plugging in

Pair without plugging in

Page 8: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Pair by Plugging In Steps

Plug in

CarPlay starts

Enable wireless CarPlay

Page 9: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

CarPlay Starts

Page 10: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car
Page 11: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Pairing Complete

Page 12: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Pairing Complete

CarPlay will work wirelessly the next time the user enters the car

Page 13: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Pairing Complete

CarPlay will work wirelessly the next time the user enters the car

Additional confirmation not required on the car’s display

Page 14: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Pair Without Plugging In Steps

Start CarPlay setup

Select device to pair

CarPlay starts

Page 15: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Start CarPlay Setup

Page 16: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Start CarPlay Setup

Press and hold the voice control button on the steering wheel

Page 17: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Start CarPlay Setup

Press and hold the voice control button on the steering wheel

Use the car’s native UI • Add a CarPlay device • Add a Bluetooth device

Page 18: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car
Page 19: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

My Car

Page 20: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Select Device to Pair Selection initiated from iPhone

Open Bluetooth settings on your device and select

“My Car.”

Page 21: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Select Device to Pair Selection initiated from the car via CarPlay menu

List of discovered CarPlay devices

Page 22: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Select Device to Pair Selection initiated from the car via Bluetooth menu

List of discovered Bluetooth devices

Page 23: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Select Device to Pair Selection initiated from the car via Bluetooth menu

Use CarPlay with “John’s iPhone?”

Enable CarPlayUse Bluetooth

Page 24: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

CarPlay Starts

ConnectingCheck “John’s iPhone” to

complete pairing.

Page 25: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

CarPlay Starts

Page 26: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting

Developing CarPlay Systems, Part 1 WWDC 2016

Page 27: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting

CarPlay starts automatically

Developing CarPlay Systems, Part 1 WWDC 2016

Page 28: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting

CarPlay starts automatically

Last user mode

Developing CarPlay Systems, Part 1 WWDC 2016

Page 29: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Handling Multiple Devices

Page 30: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Handling Multiple Devices

Multiple devices • Wireless devices • Wired and wireless devices

Page 31: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Handling Multiple Devices

Multiple devices • Wireless devices • Wired and wireless devices

Allow the user to choose the active CarPlay device

Page 32: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Choosing the Active CarPlay Device

Page 33: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Choosing the Active CarPlay Device

Show all CarPlay devices

Page 34: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Choosing the Active CarPlay Device

Show all CarPlay devices

Indicate active CarPlay device

John’s iPhone

Mani’s iPhone

Mariana’s iPhone

Choose CarPlay Device

Page 35: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Choosing the Active CarPlay Device

Show all CarPlay devices

Indicate active CarPlay device

Don’t show USB or Wi-Fi symbols John’s iPhone

Mani’s iPhone

Mariana’s iPhone

Choose CarPlay Device

Page 36: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Notifications when Devices are Connected

Show when first iPhone is connected, and CarPlay won’t be visible

Show when a second iPhone is connected over USB

Do not show when wireless devices join the network

Page 37: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

•Developing Wireless CarPlay Systems

Page 38: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Developing Wireless CarPlay Systems

•Hardware requirements •Setup and pairing •Reconnecting •Wireless considerations

Page 39: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Developing Wireless CarPlay Systems

•Hardware requirements •Setup and pairing •Reconnecting •Wireless considerations

Page 40: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Hardware Requirements

Wi-FiBluetooth Location

Page 41: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Bluetooth

Used for discovery and reconnection only

Support for communication protocols (SDP, iAP2), 2.1 + EDR

Bluetooth Extended Inquiry Response (EIR)

Page 42: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wi-Fi

Used for video, audio, and CarPlay protocol, including iAP2

Wi-Fi Alliance certified access point

5 GHz, 802.11ac recommended

Apple Device Information Element

Interworking Information Element

Page 43: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Location

Required because iPhone could be in pocket or bag

GNSS receiver

Speed sensor

Dead reckoning

Page 44: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Developing Wireless CarPlay Systems

•Hardware requirements •Setup and pairing •Reconnecting •Wireless considerations

Page 45: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Developing Wireless CarPlay Systems

•Hardware requirements •Setup and pairing •Reconnecting •Wireless considerations

Page 46: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Head Unit Components for CarPlay Setup

Page 47: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Head Unit Components for CarPlay Setup

Head Unit

Page 48: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Head Unit Components for CarPlay Setup

Head Unit USB

Page 49: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Head Unit Components for CarPlay Setup

Wi-FiHead Unit USB

Page 50: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Head Unit Components for CarPlay Setup

Bluetooth Wi-FiHead Unit USB

Page 51: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Head Unit Components for CarPlay Setup

Plug-in Bluetooth Wi-FiHead Unit USB

Page 52: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Boot Sequence After Head Unit Reset

Plug-in Bluetooth Wi-FiHead Unit USB

Page 53: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Boot Sequence After Head Unit Reset

Plug-in Bluetooth Wi-FiHead Unit USB

Page 54: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Boot Sequence After Head Unit Reset

Plug-in Bluetooth Wi-FiHead Unit USB

USB On

Page 55: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Boot Sequence After Head Unit Reset

Plug-in Bluetooth Wi-FiHead Unit USB

Wi-Fi On USB On

Page 56: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Boot Sequence After Head Unit Reset

Plug-in Bluetooth Wi-FiHead Unit USB

Wi-Fi On

DHCPactive

USB On

Page 57: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Boot Sequence After Head Unit Reset

Plug-in Bluetooth Wi-FiHead Unit USB

BT On Wi-Fi On

DHCPactive

USB On

Page 58: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Boot Sequence After Head Unit Reset

Plug-in Bluetooth Wi-FiHead Unit USB

Launch Bonjour BT On Wi-Fi On

DHCPactive

USB On

Page 59: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Boot Sequence After Head Unit Reset

Plug-in Bluetooth Wi-FiHead Unit USB

Launch Bonjour

Launch CarPlay Plug-in

BT On Wi-Fi On

DHCPactive

USB On

Page 60: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Boot Sequence After Head Unit Reset

Plug-in Bluetooth Wi-FiHead Unit USB

Launch Bonjour

Launch CarPlay Plug-in

BT On Wi-Fi On

DHCPactive

USB On

Ready for CarPlay

Page 61: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Getting Started

Page 62: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Getting Started

Pair by plugging in

Page 63: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Getting Started

Pair by plugging in• Out-of-band pairing over USB

Page 64: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Getting Started

Pair by plugging in• Out-of-band pairing over USB

Pair without plugging in

Page 65: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Getting Started

Pair by plugging in• Out-of-band pairing over USB

Pair without plugging in• Bluetooth pairing

Page 66: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

Native UI

Car

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Page 67: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

Native UI

Car

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

User plugs in iPhone

Page 68: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

Native UI

Car

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

User plugs in iPhone

USB role switch

Page 69: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

iPhone

CarPlayconnected

Native UI

Car

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

User plugs in iPhone

USB role switch

Page 70: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

CarPlayconnected

Out-of-Band Pairing over USB

Native UI

Car

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Page 71: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

CarPlayconnected

Out-of-Band Pairing over USB

Native UI

Car

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

iAP2 over USB (Wireless & wired CarPlay DeviceTransportIdentifier

OOBBTPairing)

Page 72: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

CarPlayconnected

Out-of-Band Pairing over USB

Native UI

Car

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

iAP2 over USB (Wireless & wired CarPlay DeviceTransportIdentifier

OOBBTPairing)

CarPlay session established over USB

iPhone

Use wireless CarPlay?

Yes

No

Page 73: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

iPhone

Use wireless CarPlay?

Yes

No

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Native UI

CarPlay session active over USB

Page 74: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

iPhone

Use wireless CarPlay?

Yes

No

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

CarPlay UI Audio session setup

Screen session setup

CarPlay session active over USB

Page 75: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

iPhone

Use wireless CarPlay?

YesYes

No

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

CarPlay UI

User says yes

Audio session setup

Screen session setup

CarPlay session active over USB

iPhone

CarPlayconnected

Page 76: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

iPhone

CarPlayconnected

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

CarPlay UI

CarPlay session active over USB

Page 77: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

iPhone

CarPlayconnected

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

CarPlay UI

iAP2 over USB (OOOBBTPairingLink

KeyInformation)

CarPlay session active over USB

Page 78: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

iPhone

CarPlayconnected

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

CarPlay UIDeviceName

DeviceTransportIdentifierLinkKey

iAP2 over USB (OOOBBTPairingLink

KeyInformation)

CarPlay session active over USB

Page 79: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

CarPlay UI

CarPlay session active over USB

iPhone

CarPlayconnected

Page 80: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

CarPlay UI

Device stored

CarPlay session active over USB

iPhone

CarPlayconnected

Page 81: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

CarPlay UI

Device stored

iAP2 over USB (OOOBBTPairing

CompletionInformation)

CarPlay session active over USB

iPhone

CarPlayconnected

Page 82: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

Page 83: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

CarPlay session stays over USB

Page 84: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

CarPlay session stays over USB

No Bluetooth communication between head unit and iPhone

Page 85: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

CarPlay session stays over USB

No Bluetooth communication between head unit and iPhone

Store paired device as last connected device or preferred device

Page 86: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

CarPlay session stays over USB

No Bluetooth communication between head unit and iPhone

Store paired device as last connected device or preferred device

After ignition cycle, Bluetooth reconnection starts wireless CarPlay

Page 87: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Out-of-Band Pairing over USB

CarPlay session stays over USB

No Bluetooth communication between head unit and iPhone

Store paired device as last connected device or preferred device

After ignition cycle, Bluetooth reconnection starts wireless CarPlay • Wireless CarPlay not started if iPhone is simply unplugged

Page 88: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Bluetooth Pairing

Page 89: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Bluetooth Pairing

Press and hold the voice control button on the steering wheel

Page 90: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Bluetooth Pairing

Press and hold the voice control button on the steering wheel

Use the car’s native UI

Page 91: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Bluetooth Pairing

Press and hold the voice control button on the steering wheel

Use the car’s native UI• Add a CarPlay device

Page 92: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Bluetooth Pairing

Press and hold the voice control button on the steering wheel

Use the car’s native UI• Add a CarPlay device• Add a Bluetooth device

Page 93: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Discovering CarPlay Devices over Bluetooth

User initiatesBT pairing

Car

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Page 94: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Discovering CarPlay Devices over Bluetooth

User initiatesBT pairing

Car

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

BT Discoverable

Page 95: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Discovering CarPlay Devices over Bluetooth

iPhone

User opens Bluetooth SettingsUser initiates

BT pairing

Car

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

BT Discoverable

Page 96: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Discovering CarPlay Devices over Bluetooth

iPhone

User opens Bluetooth SettingsUser initiates

BT pairing

Car

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

BT Discoverable and Scanning

BT Discoverable

Page 97: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

Bluetooth Settings

Option 1) Selecting a Car to Pair to from iOS

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

BT Discoverable and Scanning

BT Discoverable

Page 98: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

Bluetooth Settings

Option 1) Selecting a Car to Pair to from iOS

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Add newdevice

Search forMy Car

on your device

BT Discoverable and Scanning

BT Discoverable

Page 99: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

Bluetooth Settings

Option 1) Selecting a Car to Pair to from iOS

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Add newdevice

Search forMy Car

on your device

My Car

BT Discoverable and Scanning

BT Discoverable

Page 100: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

Bluetooth Settings

Option 1) Selecting a Car to Pair to from iOS

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Add newdevice

Search forMy Car

on your device

User selectsa vehicle to pair

My CarMy Car

BT Discoverable and Scanning

BT Discoverable

Page 101: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Option 2) Discovery Through Existing BT Menus

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Available Bluetoothdevices

Mani's iPhone

John's iPhone

BT Discoverable and Scanning

BT Discoverable and Scanning

iPhone

Bluetooth Settings

My Car

Page 102: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Option 2) Discovery Through Existing BT Menus

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Available Bluetoothdevices

Mani's iPhone

John's iPhone

BT Discoverable and Scanning

BT Discoverable and Scanning

John's iPhone

User selectsa device to pair

iPhone

Bluetooth Settings

My Car

Page 103: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Option 2) Discovery Through Existing BT Menus

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Available Bluetoothdevices

Mani's iPhone

John's iPhone

BT Discoverable and Scanning

BT Discoverable and Scanning

iPhone

Bluetooth Settings

My Car

Page 104: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Option 2) Discovery Through Existing BT Menus

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Available Bluetoothdevices

Mani's iPhone

John's iPhone

BT Discoverable and Scanning

BT Discoverable and Scanning

User selectsa vehicle to pair

iPhone

Bluetooth Settings

My CarMy Car

Page 105: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Option 3) CarPlay Specific Discovery

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Available CarPlaydevices

Mani's iPhone

John's iPhone

BT Discoverable and Scanning

BT Discoverable and Scanning

iPhone

Bluetooth Settings

My Car

Page 106: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Option 3) CarPlay Specific Discovery

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Available CarPlaydevices

Mani's iPhone

John's iPhone

Query for Apple CarPlay Bluetooth EIR to display only CarPlay-capable devices

BT Discoverable and Scanning

BT Discoverable and Scanning

iPhone

Bluetooth Settings

My Car

Page 107: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Option 3) CarPlay Specific Discovery

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Available CarPlaydevices

Mani's iPhone

John's iPhone

Query for Apple CarPlay Bluetooth EIR to display only CarPlay-capable devices

John's iPhone

User selectsa device to pair

BT Discoverable and Scanning

BT Discoverable and Scanning

iPhone

Bluetooth Settings

My Car

Page 108: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Option 3) CarPlay Specific Discovery

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Available CarPlaydevices

Mani's iPhone

John's iPhone

Query for Apple CarPlay Bluetooth EIR to display only CarPlay-capable devices

BT Discoverable and Scanning

BT Discoverable and Scanning

iPhone

Bluetooth Settings

My Car

Page 109: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Option 3) CarPlay Specific Discovery

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Available CarPlaydevices

Mani's iPhone

John's iPhone

Query for Apple CarPlay Bluetooth EIR to display only CarPlay-capable devices

User selectsa vehicle to pair

BT Discoverable and Scanning

BT Discoverable and Scanning

iPhone

Bluetooth Settings

My CarMy Car

Page 110: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Bluetooth Pairing

iPhone

Bluetooth SettingsMy Car

connecting

Bluetooth pairing

Car

Secure SimplePairing

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Page 111: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Bluetooth Pairing

iPhone

Bluetooth SettingsMy Car

connecting

Bluetooth pairing

Car

Secure SimplePairing

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

SSP Pairing

Page 112: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

Bluetooth Settings"My Car"

connecting

Connecting iAP2 over Bluetooth

Bluetooth pairing

Car

Connecting toJohn's iPhone

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Page 113: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

Bluetooth Settings"My Car"

connecting

Connecting iAP2 over Bluetooth

Bluetooth pairing

Car

Connecting toJohn's iPhone

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Connect iAP2 over BT(Wireless & wired CarPlay, DeviceTransportIdentifier,

WirelessCarPlayUpdate, AccessoryWiFiConfiguration )

Page 114: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

Bluetooth Settings"My Car"

connecting

Connecting iAP2 over Bluetooth

Bluetooth pairing

Car

Connecting toJohn's iPhone

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Yes

No

iPhone

Use wireless CarPlay?

Connect iAP2 over BT(Wireless & wired CarPlay, DeviceTransportIdentifier,

WirelessCarPlayUpdate, AccessoryWiFiConfiguration )

Page 115: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

Bluetooth Settings"My Car"

connecting

Connecting iAP2 over Bluetooth

Bluetooth pairing

Car

Connecting toJohn's iPhone

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Connect additional Bluetooth profiles only if operating in the 5GHz band

Yes

No

iPhone

Use wireless CarPlay?

Connect iAP2 over BT(Wireless & wired CarPlay, DeviceTransportIdentifier,

WirelessCarPlayUpdate, AccessoryWiFiConfiguration )

Page 116: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Bluetooth pairing

Car

Connecting toJohn's iPhone

Bluetooth pairing

Car

Connecting toJohn's iPhone

Identifying a CarPlay-Enabled Device

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

iPhone

Use wireless CarPlay?

Yes

No

Page 117: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Bluetooth pairing

Car

Connecting toJohn's iPhone

Bluetooth pairing

Car

Connecting toJohn's iPhone

Identifying a CarPlay-Enabled Device

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

iAP2 over BT (DeviceTransportIdentifier WirelessCarPlayUpdate)

iPhone

Use wireless CarPlay?

Yes

No

Page 118: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Bluetooth pairing

Car

Connecting toJohn's iPhone

Bluetooth pairing

Car

Connecting toJohn's iPhone

Car

Use CarPlay with John’s iPhone

Enable CarPlay

Use Bluetooth

Identifying a CarPlay-Enabled Device

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Show CarPlay related UI only if the device supports CarPlay

iAP2 over BT (DeviceTransportIdentifier WirelessCarPlayUpdate)

iPhone

Use wireless CarPlay?

Yes

No

Page 119: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

Use wireless CarPlay?

Yes

No

Handling for a User-Consent Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Use CarPlay with John’s iPhone

Enable CarPlay

Use Bluetooth

Page 120: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

Use wireless CarPlay?

YesYes

No

Handling for a User-Consent Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Use CarPlay with John’s iPhone

Enable CarPlay

Use Bluetooth

User says yes

Page 121: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

Use wireless CarPlay?

YesYes

No

Handling for a User-Consent Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Use CarPlay with John’s iPhone

Enable CarPlay

Use Bluetooth

iAP2 over BT (RequestAccessoryWiFiConfiguration)

User says yes

Page 122: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

Use wireless CarPlay?

YesYes

No

Handling for a User-Consent Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Use CarPlay with John’s iPhone

Enable CarPlay

Use Bluetooth

iAP2 over BT (RequestAccessoryWiFiConfiguration)

Do not provide the Wi-Fi credentials until the user has confirmed CarPlay

User says yes

Page 123: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

iPhone

Use wireless CarPlay?

YesYes

No

Handling for a User-Consent Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Car

Use CarPlay with John’s iPhone

Enable CarPlayEnable CarPlay

Use Bluetooth

iAP2 over BT (RequestAccessoryWiFiConfiguration)

Do not provide the Wi-Fi credentials until the user has confirmed CarPlay

User confirms User says yes

Page 124: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Connecting to Wi-Fi

iPhone

Home Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Apple CarPlay

Car

Connecting toJohn's iPhone

Page 125: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Connecting to Wi-Fi

iPhone

Home Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

iAP2 over BT (AccessoryWiFiConfiguration)

Apple CarPlay

Car

Connecting toJohn's iPhone

Page 126: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Connecting to Wi-Fi

iPhone

Home Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

iAP2 over BT (AccessoryWiFiConfiguration)

WiFi Scan

iOS devicejoins the AP

Apple CarPlay

Car

Connecting toJohn's iPhone

Page 127: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Selecting a CarPlay Device

Apple CarPlay

Car

Connecting toJohn's iPhone

iPhone

Home Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Page 128: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Selecting a CarPlay Device

Apple CarPlay

Car

Connecting toJohn's iPhone

iPhone

Home Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Bonjour discovery(CarPlay and CarPlay Control services)

Page 129: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Selecting a CarPlay Device

Apple CarPlay

Car

Connecting toJohn's iPhone

iPhone

Home Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Bonjour discovery(CarPlay and CarPlay Control services)

CarPlay Control Service connect (John’s iPhone)

Page 130: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Starting a CarPlay Session

Apple CarPlay

Car

Connecting toJohn's iPhone

iPhone

Home Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Page 131: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Starting a CarPlay Session

Apple CarPlay

Car

Connecting toJohn's iPhone

iPhone

Home Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

CarPlay Session setup

Page 132: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Starting a CarPlay Session

Apple CarPlay

Car

Connecting toJohn's iPhone

iPhone

Home Screen

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

CarPlay Session setup

iAP2 over CarPlay setup

Page 133: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Starting a CarPlay Session

Apple CarPlay

Car

Connecting toJohn's iPhone

iPhone

CarPlayconnected

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Page 134: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Starting a CarPlay Session

Apple CarPlay

Car

Connecting toJohn's iPhone

iPhone

CarPlayconnected

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

disableBluetooth()

Page 135: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Starting a CarPlay Session

Apple CarPlay

Car

Connecting toJohn's iPhone

iPhone

CarPlayconnected

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

disableBluetooth()

disconnect all BT profiles,including iAP2disable BT

Page 136: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Starting a CarPlay Session

Apple CarPlay

Car

Connecting toJohn's iPhone

iPhone

CarPlayconnected

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

disableBluetooth()

disconnect all BT profiles,including iAP2disable BT

If operating in 2.4 GHz band, disallow all Bluetooth connections and scanning

Page 137: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Starting a CarPlay Session

Car iPhone

CarPlayconnected

Apple CarPlay

Connecting toJohn's iPhone

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Page 138: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Starting a CarPlay Session

Car iPhone

CarPlayconnected

CarPlay UI

Plug-in Bluetooth Wi-FiHead Unit iOS iPhone

Screen setup

Audio setup

Page 139: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Setup and Pairing General considerations

Page 140: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Setup and Pairing General considerations

After setup is complete, the CarPlay UI must be displayed

Page 141: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Setup and Pairing General considerations

After setup is complete, the CarPlay UI must be displayed

CarPlay may request to play music playback after setup is complete

Page 142: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Setup and Pairing General considerations

After setup is complete, the CarPlay UI must be displayed

CarPlay may request to play music playback after setup is complete

Store device as last connected device

Page 143: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Setup and Pairing General considerations

After setup is complete, the CarPlay UI must be displayed

CarPlay may request to play music playback after setup is complete

Store device as last connected device• Reconnect automatically when user returns to the car

Page 144: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Developing Wireless CarPlay Systems

•Hardware requirements •Setup and pairing •Reconnecting •Wireless considerations

Page 145: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Developing Wireless CarPlay Systems

•Hardware requirements •Setup and pairing •Reconnecting •Wireless considerations

Page 146: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting General considerations

Page 147: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

On ignition, arbitrate between USB and wireless reconnection

Reconnecting General considerations

Page 148: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

On ignition, arbitrate between USB and wireless reconnection

Transport used for CarPlay depends on availability and connection sequence

Reconnecting General considerations

Page 149: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

On ignition, arbitrate between USB and wireless reconnection

Transport used for CarPlay depends on availability and connection sequence

Always check for CarPlay availability on device

Reconnecting General considerations

Page 150: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

On ignition, arbitrate between USB and wireless reconnection

Transport used for CarPlay depends on availability and connection sequence

Always check for CarPlay availability on device

After reconnection restore last user mode

Reconnecting General considerations

Page 151: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

On ignition, arbitrate between USB and wireless reconnection

Transport used for CarPlay depends on availability and connection sequence

Always check for CarPlay availability on device

After reconnection restore last user mode

Don’t interrupt active CarPlay session

Reconnecting General considerations

Page 152: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting Common scenarios

Page 153: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting Common scenarios

Page 154: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

When is iPhone plugged in? Common scenario Transport used for CarPlay

Reconnecting Common scenarios

Page 155: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Single iPhone

When is iPhone plugged in? Common scenario Transport used for CarPlay

Reconnecting Common scenarios

Page 156: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Single iPhone

When is iPhone plugged in? Common scenario Transport used for CarPlay

Never Morning commute Wireless

Reconnecting Common scenarios

Page 157: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Single iPhone

When is iPhone plugged in? Common scenario Transport used for CarPlay

Never Morning commute Wireless

During drive Charging during evening commute Wireless

Reconnecting Common scenarios

Page 158: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Single iPhone

When is iPhone plugged in? Common scenario Transport used for CarPlay

Never Morning commute Wireless

During drive Charging during evening commute Wireless

Before ignition Re-entering car at gas station USB

Reconnecting Common scenarios

Page 159: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Single iPhone

When is iPhone plugged in? Common scenario Transport used for CarPlay

Never Morning commute Wireless

During drive Charging during evening commute Wireless

Before ignition Re-entering car at gas station USB

When the driver sits down Long trip First available

Reconnecting Common scenarios

Page 160: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Single iPhone

More than one iPhone

When is iPhone plugged in? Common scenario Transport used for CarPlay

Never Morning commute Wireless

During drive Charging during evening commute Wireless

Before ignition Re-entering car at gas station USB

When the driver sits down Long trip First available

Reconnecting Common scenarios

Page 161: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Single iPhone

More than one iPhone

When is iPhone plugged in? Common scenario Transport used for CarPlay

Never Morning commute Wireless

During drive Charging during evening commute Wireless

Before ignition Re-entering car at gas station USB

When the driver sits down Long trip First available

When the driver sits down Road trip with friends First available

Reconnecting Common scenarios

Page 162: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting Bluetooth device connection flow

Page 163: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for Bluetooth and Wi-Fi to boot up

Reconnecting Bluetooth device connection flow

Page 164: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for Bluetooth and Wi-Fi to boot up

Confirm last connected device is a CarPlay device

Reconnecting Bluetooth device connection flow

Page 165: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for Bluetooth and Wi-Fi to boot up

Confirm last connected device is a CarPlay device

Confirm CarPlay is not already active

Reconnecting Bluetooth device connection flow

Page 166: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for Bluetooth and Wi-Fi to boot up

Confirm last connected device is a CarPlay device

Confirm CarPlay is not already active• Compare to saved DeviceTransportIdentifier

Reconnecting Bluetooth device connection flow

Page 167: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for Bluetooth and Wi-Fi to boot up

Confirm last connected device is a CarPlay device

Confirm CarPlay is not already active• Compare to saved DeviceTransportIdentifier

Reconnect iAP2 over Bluetooth

Reconnecting Bluetooth device connection flow

Page 168: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for Bluetooth and Wi-Fi to boot up

Confirm last connected device is a CarPlay device

Confirm CarPlay is not already active• Compare to saved DeviceTransportIdentifier

Reconnect iAP2 over Bluetooth

Confirm CarPlay is available using WirelessCarPlayUpdate

Reconnecting Bluetooth device connection flow

Page 169: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for Bluetooth and Wi-Fi to boot up

Confirm last connected device is a CarPlay device

Confirm CarPlay is not already active• Compare to saved DeviceTransportIdentifier

Reconnect iAP2 over Bluetooth

Confirm CarPlay is available using WirelessCarPlayUpdate

Wait for CarPlay control discovery and connect

Reconnecting Bluetooth device connection flow

Page 170: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting USB device connection flow

Page 171: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for the user to connect a device over USB

Reconnecting USB device connection flow

Page 172: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for the user to connect a device over USB

Confirm CarPlay is not already active

Reconnecting USB device connection flow

Page 173: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for the user to connect a device over USB

Confirm CarPlay is not already active• Compare to saved DeviceTransportIdentifier

Reconnecting USB device connection flow

Page 174: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for the user to connect a device over USB

Confirm CarPlay is not already active• Compare to saved DeviceTransportIdentifier

Confirm CarPlay is available on the device

Reconnecting USB device connection flow

Page 175: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for the user to connect a device over USB

Confirm CarPlay is not already active• Compare to saved DeviceTransportIdentifier

Confirm CarPlay is available on the device• USB Vendor Request GetSupportedCapabilities

Reconnecting USB device connection flow

Page 176: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for the user to connect a device over USB

Confirm CarPlay is not already active• Compare to saved DeviceTransportIdentifier

Confirm CarPlay is available on the device• USB Vendor Request GetSupportedCapabilities

USB Role Switch and iAP2 over USB

Reconnecting USB device connection flow

Page 177: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wait for the user to connect a device over USB

Confirm CarPlay is not already active• Compare to saved DeviceTransportIdentifier

Confirm CarPlay is available on the device• USB Vendor Request GetSupportedCapabilities

USB Role Switch and iAP2 over USB

Wait for CarPlay control discovery and connect

Reconnecting USB device connection flow

Page 178: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting

Page 179: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting

Multiple devices may be available

Page 180: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting

Multiple devices may be available• USB only

Page 181: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting

Multiple devices may be available• USB only• Wireless only

Page 182: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting

Multiple devices may be available• USB only• Wireless only• Both USB and wireless

Page 183: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting

Multiple devices may be available• USB only• Wireless only• Both USB and wireless

Users can choose any available device

Page 184: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting

Multiple devices may be available• USB only• Wireless only• Both USB and wireless

Users can choose any available device• Reconnect using available transport

Page 185: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting after Disconnect

Page 186: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting after Disconnect

Scenario Expected car behavior

Explicit disconnect

User unplugs USB

No reconnect attempt

User disconnects using native UI

iPhone no longer reachable

User walks away from car Reconnect using CarPlay Control API, but if unsuccessful reconnect Bluetooth

User turns off Wi-Fi on iPhone

Page 187: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting after Disconnect

Scenario Expected car behavior

Explicit disconnect

User unplugs USB

No reconnect attempt

User disconnects using native UI

iPhone no longer reachable

User walks away from car Reconnect using CarPlay Control API, but if unsuccessful reconnect Bluetooth

User turns off Wi-Fi on iPhone

Page 188: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting after Disconnect

Scenario Expected car behavior

Explicit disconnect

User unplugs USB

No reconnect attempt

User disconnects using native UI

iPhone no longer reachable

User walks away from car Reconnect using CarPlay Control API, but if unsuccessful reconnect Bluetooth

User turns off Wi-Fi on iPhone

Page 189: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting after Disconnect

Scenario Expected car behavior

Explicit disconnect

User unplugs USB

No reconnect attempt

User disconnects using native UI

iPhone no longer reachable

User walks away from car Reconnect using CarPlay Control API, but if unsuccessful reconnect Bluetooth

User turns off Wi-Fi on iPhone

Page 190: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting after Disconnect

Scenario Expected car behavior

Explicit disconnect

User unplugs USB

No reconnect attempt

User disconnects using native UI

iPhone no longer reachable

User walks away from car Reconnect using CarPlay Control API, but if unsuccessful reconnect Bluetooth

User turns off Wi-Fi on iPhone

Page 191: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting after Disconnect

Scenario Expected car behavior

Explicit disconnect

User unplugs USB

No reconnect attempt

User disconnects using native UI

iPhone no longer reachable

User walks away from car Reconnect using CarPlay Control API, but if unsuccessful reconnect Bluetooth

User turns off Wi-Fi on iPhone

Page 192: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Reconnecting after Disconnect

Scenario Expected car behavior

Explicit disconnect

User unplugs USB

No reconnect attempt

User disconnects using native UI

iPhone no longer reachable

User walks away from car Reconnect using CarPlay Control API, but if unsuccessful reconnect Bluetooth

User turns off Wi-Fi on iPhone

Page 193: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Developing Wireless CarPlay Systems

•Hardware requirements •Setup and pairing •Reconnecting •Wireless considerations

Page 194: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Developing Wireless CarPlay Systems

•Hardware requirements •Setup and pairing •Reconnecting •Wireless considerations

Page 195: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wireless Considerations

Page 196: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wireless Considerations

Wireless performance depends on various characteristics

Page 197: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wireless Considerations

Wireless performance depends on various characteristics• Wi-Fi protocol (802.11n or 802.11ac)

Page 198: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wireless Considerations

Wireless performance depends on various characteristics• Wi-Fi protocol (802.11n or 802.11ac)• Configuration (SISO or MIMO)

Page 199: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wireless Considerations

Wireless performance depends on various characteristics• Wi-Fi protocol (802.11n or 802.11ac)• Configuration (SISO or MIMO)• Frequency band (2.4 GHz or 5 GHz)

Page 200: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wireless Considerations

Wireless performance depends on various characteristics• Wi-Fi protocol (802.11n or 802.11ac)• Configuration (SISO or MIMO)• Frequency band (2.4 GHz or 5 GHz)• Presence of other wireless technologies in same frequency band

Page 201: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wireless Considerations

Wireless performance depends on various characteristics• Wi-Fi protocol (802.11n or 802.11ac)• Configuration (SISO or MIMO)• Frequency band (2.4 GHz or 5 GHz)• Presence of other wireless technologies in same frequency band• Additional services (Internet data or others)

Page 202: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Wireless Considerations

Wireless performance depends on various characteristics• Wi-Fi protocol (802.11n or 802.11ac)• Configuration (SISO or MIMO)• Frequency band (2.4 GHz or 5 GHz)• Presence of other wireless technologies in same frequency band• Additional services (Internet data or others)

Satisfy throughput and latency requirements in all possible coexistence scenarios

Page 203: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

5 GHz Frequency Band

Page 204: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

5 GHz Frequency Band

Highly recommended for wireless CarPlay

Page 205: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

5 GHz Frequency Band

Highly recommended for wireless CarPlay

More channels for wireless usage

Page 206: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

5 GHz Frequency Band

Highly recommended for wireless CarPlay

More channels for wireless usage

Less interference from other wireless systems

Page 207: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

5 GHz Frequency Band

Highly recommended for wireless CarPlay

More channels for wireless usage

Less interference from other wireless systems

Less congested

Page 208: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

2.4 GHz Frequency Band

Page 209: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

2.4 GHz Frequency Band

Not recommended for wireless CarPlay

Highly congested

May be required for in-vehicle use in some regulatory domains

Page 210: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

2.4 GHz Frequency Band

Not recommended for wireless CarPlay

Highly congested

May be required for in-vehicle use in some regulatory domains

If operating in this frequency band

Page 211: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

2.4 GHz Frequency Band

Not recommended for wireless CarPlay

Highly congested

May be required for in-vehicle use in some regulatory domains

If operating in this frequency band• Disable Bluetooth scanning and reconnections during active CarPlay sessions

Page 212: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

2.4 GHz Frequency Band

Not recommended for wireless CarPlay

Highly congested

May be required for in-vehicle use in some regulatory domains

If operating in this frequency band• Disable Bluetooth scanning and reconnections during active CarPlay sessions• If providing LTE connectivity on Band 40, use channels 6 or 11

Page 213: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Multiple Wi-Fi Access Points

Page 214: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Multiple Wi-Fi Access Points

Use different channels if operating in same frequency band

Page 215: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Multiple Wi-Fi Access Points

Use different channels if operating in same frequency band

Provide same services on all access points with same SSID and password• Use different SSID and password if offering different services

Page 216: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Multiple Wi-Fi Access Points

Use different channels if operating in same frequency band

Provide same services on all access points with same SSID and password• Use different SSID and password if offering different services

Don’t use hidden SSIDs for CarPlay

Page 217: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Internet Data Connectivity

Page 218: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Internet Data Connectivity

Communicate status of Internet data connectivity • Apple Device IE• Interworking IE

Page 219: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Internet Data Connectivity

Communicate status of Internet data connectivity • Apple Device IE• Interworking IE

Notify iPhone of changes

Page 220: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Internet Data Connectivity

Communicate status of Internet data connectivity • Apple Device IE• Interworking IE

Notify iPhone of changes• Module installed or removed

Page 221: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Internet Data Connectivity

Communicate status of Internet data connectivity • Apple Device IE• Interworking IE

Notify iPhone of changes• Module installed or removed• Connectivity no longer possible due to a failure

Page 222: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Internet Data Connectivity

Communicate status of Internet data connectivity • Apple Device IE• Interworking IE

Notify iPhone of changes• Module installed or removed• Connectivity no longer possible due to a failure• Service contract expired or renewed

Page 223: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

More Informationhttp://developer.apple.com/wwdc17/717

Page 224: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Related Sessions

Enabling Your App for CarPlay WWDC 2017 Video

Developing CarPlay Systems, Part 1 WWDC 2016

Developing CarPlay Systems, Part 2 WWDC 2016

Page 225: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car

Labs

CarPlay Lab Technology Lab D Wed 4:00PM–6:00PM

Page 226: System Frameworks #WWDC17 - Development Videos · PDF fileYes No. Out-of-Band Pairing over USB iPhone Use wireless CarPlay? Yes No Head Unit Plug-in Bluetooth Wi-Fi iOS iPhone Car