310 likes | 432 Views
Building an app that connects to devices. George Roussos Senior Program Manager Deen King-Smith Program Manager 2-023. Meet the Ramirez family. Will buys a smart toy for Toby online using a fingerprint instead of a password
E N D
Building an app that connects to devices • George RoussosSenior Program Manager • DeenKing-SmithProgram Manager • 2-023
Meet the Ramirez family • Will buys a smart toy for Toby online using a fingerprint instead of a password • He prints a home design on a 3D printer for a customer visit tomorrow Will—Architect Sarah—Real estate agent Toby—Teenage son June 26th 2014
A day in the life of a modern connected family • Will’s tablet shows his agenda upon arrival at the customer location. • Sarah tracks and uploads her steps to keep her new year’s resolution. • Toby unboxes the smart toy, connects it and controls it.
Windows 8.1 provides new opportunity to build compelling apps that connect to devices across desktops, laptops and tablets.
Agenda • Windows 8.1 enhancements. • Expands access to devices. • Adds user experiences. • Simplifies the developer experience.
Remember Will? • New APIs in Windows 8.1 simplify app development for specific scenarios.
Device scenario APIs New device scenario APIs in Windows 8.1 • Any app can access devices with scenario specific APIs for devices Windows knows about.
What about Toby and Sarah? • New Windows runtime APIs for familiar industry standards like Bluetooth and USB enable low cost app development for custom devices on all Windows 8.1 desktops, laptops and tablets.
Introducing device protocol APIs App • Windows Runtime APIs: • Bluetooth (RFCOMM). • Bluetooth Smart. • HID. • USB. • Wi-Fi Direct. Protocol: left, right, fire HID API Class Drivers Device
Device protocol APIs for hardware developers • Expose unique hardware functionality as a protocol over these APIs leveraging Microsoft drivers. • Publish that protocol to software developers to enable an ecosystem of apps for external devices. • Create and publish a Windows Runtime Component to simplify app development for complex devices.
Device protocol APIs New device protocol APIs in Windows 8.1 • New Windows Runtime APIs: • Bluetooth (RFCOMM). • Bluetooth Smart. • HID. • USB. • Wi-Fi Direct. Innovative Devices Ecosystem of Apps Independent Developers
New user experiences for custom devices • Launch on Connect. • Syncing data with a device in the background. • Users in control of devices and personal info.
Launch on Connect • Autoplay launches a recommended app when a USB peripheral is connected. • Hardware developers must opt-in to Autoplay for their device. • Any software developer can then enable Autoplay.
Syncing data with a device in the background • Device Background Tasks lets an app complete a user initiated sync operation for up to 10 minutes in the background. • Any app can include a background task to enable this scenario.
Users in control of devices and personal info • User consent puts the user in control before using apps that can access privacy sensitive data. • Any app using Bluetooth, HID, or USB APIs must declare new device capabilities in app manifest.
Windows 8.1 simplifies the developer experience • Deen King-Smith • Program Manager
Developing in Windows 8.1 Visual Studio Express 2013 SW dev Windows Store app Windows runtime component Device scenario APIs Device protocol APIs HW dev Hardware
Device scenario APIs Windows Store app • Same as in Windows 8. • Just use the Namespace and the API, Windows does the rest. • Scenarios. • Fingerprint, scanner, geo-location, and more. • Need to know. • App development. • APIs. Device scenario APIs //Create the scanner object ImageScannermyScanner // Scan API call to start scanning myScanner.ScanFilesToFolderAsync(ImageScannerScanSource.Default… Hardware
Device protocol APIs Windows Store app • APIs simplify custom device access via industry standard protocols. • Scenarios. • Sports Watch, Missile Launcher, or any Custom Device. • Need to know. • Specific protocol details for the device. • Industry standard protocol. Device protocol APIs Hardware
Ecosystem of apps via protocol APIs Windows Store app • Hardware developers can provide a Windows runtime component to enable an ecosystem of apps. • Scenarios. • Sarah’s fitness device, and more. • Need to know. • Hardware developers—Specific protocol to create the runtime component. • App developer—API from the hardware developer to use the runtime component. Windows runtime component Device protocol APIs Hardware
Differentiating your User Experience Windows Store app • Hardware developers can enable additional device specific scenarios with device metadata. • Scenarios. • Autoplay and more. • Need to Know. • Hardware ID. • Submission to Windows Hardware DevPortal. • App information. • Device metadata. Device metadata HW dev Hardware
Device metadata & app development 2nd 3rd App development 1st Submit app Reserve your app name Experience ID Add Experience ID to app Add app info to metadata 2nd Device metadata development 1st 4th App info Experience ID Submit to HW dev portal Submit metadata
Windows 8.1 Enhancements The Ramirez Family • Expands access to devices. • Adds user experiences. • Simplifies the developer experience.
Resources: device scenario APIsAny app can access devices with scenario specific APIs for devices Windows knows about
Resources: device protocol APIsDevice protocol APIs enable apps for custom peripherals that Windows does not know about. Anybody can develop apps for a custom peripheral if they know the device protocol to do so.
Required Slide *delete this box when your slide is finalized Your MS Tag will be inserted here during the final scrub. Evaluate this session • Scan this QR codeto evaluate this session and be automatically entered in a drawing to win a prize!