IoT Plug and Play bridge
Перейти к файлу
Shyamal Varma 92c9965fbd Merged PR 16: Bugfix to make symbolic link string comparison case insensitive and readme updates
Bugfix to make symbolic link string comparison case insensitive and readme updates
2019-02-16 01:28:02 +00:00
PnpBridge Merged PR 16: Bugfix to make symbolic link string comparison case insensitive and readme updates 2019-02-16 01:28:02 +00:00
SerialPnP Remove unused directories 2019-02-13 15:00:07 -08:00
.gitmodules Add azure-iot-sdk-c-pnp dep 2019-01-13 14:00:16 -08:00
readme.md update readme 2019-01-25 08:39:27 -08:00

readme.md

Azure PnP Bridge

Introduction

Azure PnP Bridge is the open source effort from Microsoft to bridge PC Device PnP with Azure IoT PnP in order to make it easy for device developers to easily connect many PC peripherals to Azure in order to easily enable remote managing and monitoring peripherals and PC gateways at scale. Azure PnP Bridge also make it easy to perform analytics on edge as well as moving data to Azure in order to perform analytics in the cloud.
Azure PnP Bridge is a standalone executable that developers can drop onto their PC/IoT Gateway devices, with simple configuration, this service can bridge the device PnP with Azure PnP and send telemetry and event data to Azure Cloud. Developers continue leveraging existing Device Provisioning and Azure Cloud services.

Pre-Requisite

  • Windows 10 OS:

    • For Serial, HIDUSB devices, OS version 1809 or newer is required
    • For Camera monitoring functionality, current Insider Preview OS version is required.
    • One of the following OS flavors:
      • Windows IoT Enterprise
      • Windows Server
      • Windows Desktop SKU
      • Windows IoT Core (if no camera monitoring is needed)
  • Hardware:

    • Any hardware capable supporting above OS SKUs and versions.
    • Supported peripherals (refer to
  • Private Preview of Azure IoT Central at https://aka.ms/iotc-demo.

  • IoT Edge (this is not required)

Azure PnP Bridge Architecture

Architecture

Dev Machine Setup

Development Pre-Requisite

Build Azure PnP Bridge

After clone Azure PnP Bridge repo, run following commands in "Developer Command Prompt for VS 2017":

  • cd PnpBridge
  • git submodule update --init --recursive
  • cd Scripts
  • build.prereq.cmd
  • Open PnpBridge\src\PnpBridge\PnpBridge.vcxproj with "Visual Studio 2017"
  • Ensure build target is set to Release|Debug and x86|x64 matches to the build.prereq.cmd's build and build the solution
  • Pnpbridge.exe is the Azure PnP Bridge binary

Supported Peripherals

Azure PnP Bridge comes with set of supported peripherals:

  • Peripherals connected over Serial COM ports or Serial over USB
    • Please refer Arduino/MCU programming guide on how to enable Azure PNP Interfaces
    • Peripherals connected HID over USB
    • Cameras connected over USB
    • IP cameras (? Need clear description on how to setup IP camera)
    • Built-in MIPI cameras (should we bother to list it here)

For serial/USB peripheral devices that are not included in current source code, developers can update the Azure PnP Bridge code to enable their custom protocols.

Deploy Azure PnP Bridge

  1. Set up an IoT Central Dashboard
  1. Setup a device and get the Connection String to connect the device to IoT Central. This device is the Azure PnP Bridge Device.
  1. Setup Azure PnP Bridge Device
    • Refer to "Re-Requisite" section for choosing OS image to install on the device.
    • Update src/pnpbridge/config.json "ConnectionString" under "PnpBridgeParameters" with the step #2 Connection String for the device.
    • copy pnpbridge.exe and src/pnpbridge/config.json in the same location on the Azure PnP Bridge Device.
    • In a command line window, type "pnpbridge.exe". This will start Azure PnP Bridge process.