107. TI Sensor tag
IR temperature Sensor!
Humidity Sensor!
Pressure Sensor!
Accelerometer!
Gyroscope!
Magnetometer!
http://www.ti.com/tool/
cc2541dk-sensor
129. HomeKit Accessory Protocol
Connecting accessories to HomeKit
Transports
• Bluetooth Low Energy
• IP
Security
• Bi-directional authentication
• Per-session encryption
Common functionality definitions
• Services
• Characteristics
プロトコル。
BLEとIP。
セッションごとに暗号化。
サービスとキャラクタリスティクス
130. HomeKit Accessory Profiles
Services
• Garage door openers
• Lights
• Door locks
• Thermostats
• IP camera controls
• Switches
• …
• Custom
Characteristics
• Power state
• Lock state
• Target state
• Brightness
• Model number
• Current temperature
• …
• Custom
サービス: 具体的な機器
キャラクタリスティクス: 機能
2つを分離することで、自由な組み合わせ。
多種多様な機器に対応可能。
131. HomeKit Accessory Protocol Layers
Bluetooth LE IP
L2CAP TCP
Attribute Protocol (ATT) HTTP
Generic Attribute
Profile (GATT)
JSON
HomeKit Accessory Protocol
HomeKit
Encryption
Boundary
完全にApple仕様
137. Zone
Zones
HMZone
Arbitrary grouping of rooms
• Example: upstairs
Rooms can be in any number of zones
Uniquely named with a home
Recognized by Siri
Rooms
Rooms
Rooms
Rooms
Rooms
Rooms
Rooms
部屋の集合体がゾーン。
1Fとか、2Fとか。Siriが認識。
へい、Siri。1Fの電気をオフ"
138. Accessory
Corresponds to physical device(s)
Assigned to a room
Accesses device state
Notifies of changes
Uniquely named with a home
Recognized by Siri
機器。照明とか、エアコンとか、ドアロックとか
識別可能な名前付け。
Siriが認識。
139. Home Kit Accessory Profiles
Services
• Garage door openers
• Lights
• Door locks
• Thermostats
• IP camera controls
• Switches
• …
• Custom
Characteristics
• Power state
• Lock state
• Target state
• Brightness
• Model number
• Current temperature
• …
• Custom
アクセサリは、サービス、複数のキャラクタリスティクス
サービス=機種の種類
キャラクタリスティクス=機能
多種多様な機器を表現する工夫。
140. Services
Represents a function of an accessory
Contains characteristics of the service
May have a name
• A“light bulb”service has a name
• A“firmware update”service does not
• Don’t expose unnamed services
• Names must be unique within a home
Recognized by Siri
• Named and Apple-defined
機器の種類。
照明とか
141. Service Group
Service Groups
HMServiceGroup
Arbitrary grouping of services
• Example: nightlights
Services can be in any number of groups
Convenient way to control services
across accessories
Uniquely named with a home
Recognized by Siri
Service
Service
Service
Service
Service
Service
Service
機器の集合。
常夜灯の集合とか
146. Initial Setup Review
Recommended flow
Create a home
• User provides name
Add rooms to the home
• User provides names
Add accessories
• Use an accessory browser
• Add accessory to home
• User provides name → update name for accessory
• User chooses room → assign accessory to room
アプリケーション=初期設定と動作確認。
パソコンのデバイスドライバみたい。