1 / 15

Network Connected Devices

Network Connected Devices. Joseph Ngari| Program Manager. Easily connect and control your network devices. What are UPnP and PnP-X. About UPnP. It enables a standards based discovery and communication solution for network connected devices. UPnP in a nutshell. Device must implement http

Download Presentation

Network Connected Devices

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Network Connected Devices Joseph Ngari| Program Manager

  2. Easily connect and control your network devices

  3. What are UPnP and PnP-X

  4. About UPnP • It enables a standards based discovery and communication solution for network connected devices.

  5. UPnP in a nutshell • Device must implement http • Discovery (SSDP) • Windows initiates multicast on port 1900 which contains special tag: M-SEARCH. • Device responds via unicast with URL to a device description document (DDD) • Host downloads the DDD from the URL • The DDD has pointers to the Service Control Protocol Description (SCPD) , eventing and presentation URLs. These additional services are not needed for discovery. • Learn More: http://www.upnp.org/

  6. PnP-X • Very easy. Its one xml tagin the DDD • <pnpx:X_hardwareId>Microsoft/SampleDevice/10000/urn:microsoft-com:device:SampleDimmerDevice:1</pnpx:X_hardwareId> • Enables an enhanced pairing experience with windows. • Only have to provide a PnP-X hardware ID and the device type. • This lives in the DDD we covered above. • If you don’t use a PnP-X ID you will not be able to get connected.

  7. Binding with the App

  8. Device meta-data uses PnP-X ID • This goes in your DDD • <pnpx:X_hardwareId>Microsoft/SampleDevice/10000/urn:microsoft-com:device:SampleDimmerDevice:1</pnpx:X_hardwareId> • You then add the ID to the meta-data as shown below. The prefix will be added by the device meta-data wizard.

  9. Device Presence

  10. Device Presence • Device has a dev node once it is paired and regardless of whether the device is connected. • Windows keeps track of presence. • Device should send periodic “alive” messages. • Device should send “byebye” before it disconnects otherwise the PC will think the device is still connected for up to 30 minutes.

  11. Communicating with the device

  12. Retrieving the device • Device enumeration • Once you get the IP address you can use any desired communication protocol. • We recommend UPnP. • No need to invent a new protocol. • Enables anyone to talk to your device. • Will not conflict with other operating systems

  13. Using the device • Get the Service Control Protocol Description (SCPD) • Invoke actions • Subscribe for events • SOAP • UPnP uses soap to communicate • Additional Resources

  14. Automatic Connection • Network Connected Device Automatic Setup (NCD-AS) • Requirements • Must be on a private networkand sharing must be enabled. • Must have less than 30 number of devices on the network. • This includes all devices and not just UPnP devices. • Must fit into specific device categories • General rule is that it is a shared device in the home • Device category must be correct. This optional PnP-X tag describes the device category. <pnpx:X_deviceCategory>HomeAutomation</pnpx:X_deviceCategory>

  15. Resources • Windows Rally • UPnP • Dimmer Sample

More Related