F10 and F7 from iRuggby
Bracewell Family from MSC
Titan S from sam4s
E7708T from Unistrong
This commit is contained in:
ashokkhurana 2016-12-16 14:03:30 -08:00 коммит произвёл iluican
Родитель 77e997d647
Коммит b911106288
5 изменённых файлов: 365 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,93 @@
---
platform: Linux (MSC-LDK)
device: Braswell
language: c
---
Run a simple C sample on a Braswell family device with MSC-LDK
===
---
# Table of Contents
- [Introduction](#Introduction)
- [Step 1: Prerequisites](#Prerequisites)
- [Step 2: Prepare your Device](#PrepareDevice)
- [Step 3: Build and Run the Sample](#Build)
- [Tips](#tips)
<a name="Introduction"></a>
# Introduction
**About this document**
This document describes how to connect the Braswell device running MSC-LDK with Azure IoT SDK. This multi-step process includes:
- Configuring Azure IoT Hub
- Registering your IoT device
- Build and deploy Azure IoT SDK on device
<a name="Prerequisites"></a>
# Step 1: Prerequisites
You should have the following items ready before beginning the process:
- [Setup your IoT hub][lnk-setup-iot-hub]
- [Provision your device and get its credentials][lnk-manage-iot-hub]
- Braswell module and baseboard.
- MSC-LDK (Linux Development Kit)
<a name="PrepareDevice"></a>
# Step 2: Prepare your Device
- Follow the instructions in chapter "Getting Started" of the [devices user manual][lnk-user-manual]
<a name="Build"></a>
# Step 3: Build and Run the sample
<a name="Load"></a>
## 3.1 Build SDK and sample
- The Microsoft Azure IoT Device SDK for C is already installed in the standard images as the package "azure-iot-sdks-samples".
- These images can be built after MSC-LDK installation with:
make msc-image-sato
or
make msc-image-lxqt
## 3.2 Send Device Events to IoT Hub:
- Open a telnet session and connect to the device.
- Run the sample by issuing following command:
**For HTTP:**
iothub_client_sample_http "<device connection string>"
- Replace the above placeholder "&lt;device connection string&gt;" with device connection string you obtained in [Step 1](#Step-1:-Prerequisites) and save the changes.
- See [Manage IoT Hub][lnk-manage-iot-hub] to learn how to observe the messages IoT Hub receives from the application.
## 3.3 Receive messages from IoT Hub
- See [Manage IoT Hub][lnk-manage-iot-hub] to learn how to send cloud-to-device messages to the application.
<a name="tips"></a>
# Tips
- If you just want to build the serializer samples, run the following commands:
./build.sh bitbake -c cleanall azure-iot-sdks
./build.sh bitbake -c compile azure-iot-sdks
./build.sh bitbake -c devshell azure-iot-sdks
and in the devshell
../temp/run.do_compile
[lnk-user-manual]:https://www.msc-technologies.eu/fileadmin/documentpool/Support-Center/COMExpress/C6C-BW/20-Drivers/70-Linux/MSC_C6C-BW-ldk-bsp-01004.pdf
[lnk-setup-iot-hub]: ../../setup_iothub.md
[lnk-manage-iot-hub]: ../../manage_iot_hub.md

Просмотреть файл

@ -0,0 +1,64 @@
---
platform: Windows 10
device: iRUGGY F10 Mobile Tablet
language: csharp
---
Run a simple Csharp sample on iRUGGY F10 Mobile Tablet device running Windows 10
===
---
# Table of Contents
- [Introduction](#Introduction)
- [Step 1: Prerequisites](#Prerequisites)
- [Step 2: Prepare your Device](#PrepareDevice)
- [Step 3: Build and Run the Sample](#Build)
<a name="Introduction"></a>
# Introduction
**About this document**
This document describes how to connect iRUGGY F10 Mobile Tablet device running Windows 10 with Azure IoT SDK. This multi-step process includes:
- Configuring Azure IoT Hub
- Registering your IoT device
- Build and deploy Azure IoT SDK on device
<a name="Prerequisites"></a>
# Step 1: Prerequisites
You should have the following items ready before beginning the process:
- [Prepare your development environment][setup-devbox-windows]
- [Setup your IoT hub][lnk-setup-iot-hub]
- [Provision your device and get its credentials][lnk-manage-iot-hub]
- iRUGGY F10 Mobile Tablet device.
<a name="PrepareDevice"></a>
# Step 2: Prepare your Device
- Follow the instructions from http://www.iruggy.com/products/tablet-f7-10
<a name="Build"></a>
# Step 3: Build and Run the sample
- Download the [Azure IoT SDK](https://github.com/Azure/azure-iot-sdks) and the sample programs and save them to your local repository.
- Start a new instance of Visual Studio 2015.
- Open the **iothub_csharp_client.sln** solution in the `csharp\device` folder in your local copy of the repository.
- In Visual Studio, from Solution Explorer, navigate to the **samples** folder.
- In the **DeviceClientHttpSample** project, open the ***Program.cs*** file.
- Locate the following code in the file:
private const string DeviceConnectionString = "<replace>";
- Replace `<replace>` with the connection string for your device.
- In **Solution Explorer**, right-click the **DeviceClientHttpSample** project, click **Debug**, and then click **Start new instance** to build and run the sample. The console displays messages as the application sends device-to-cloud messages to IoT Hub.
- Use the **DeviceExplorer** utility to observe the messages IoT Hub receives from the **Device Client HTTP Sample** application.
- Refer "Monitor device-to-cloud events" in [DeviceExplorer Usage document](https://github.com/Azure/azure-iot-sdks/blob/master/tools/DeviceExplorer/doc/how_to_use_device_explorer.md) to see the data your device is sending.
- Refer "Send cloud-to-device messages" in [DeviceExplorer Usage document](https://github.com/Azure/azure-iot-sdks/blob/master/tools/DeviceExplorer/doc/how_to_use_device_explorer.md) for instructions on sending messages to device.
[setup-devbox-windows]: https://github.com/Azure/azure-iot-sdks/blob/master/c/doc/devbox_setup.md
[lnk-setup-iot-hub]: ../setup_iothub.md
[lnk-manage-iot-hub]: ../manage_iot_hub.md

Просмотреть файл

@ -0,0 +1,64 @@
---
platform: Windows 10
device: iRUGGY F7 Mobile Tablet
language: csharp
---
Run a simple Csharp sample on iRUGGY F7 Mobile Tablet device running Windows 10
===
---
# Table of Contents
- [Introduction](#Introduction)
- [Step 1: Prerequisites](#Prerequisites)
- [Step 2: Prepare your Device](#PrepareDevice)
- [Step 3: Build and Run the Sample](#Build)
<a name="Introduction"></a>
# Introduction
**About this document**
This document describes how to connect iRUGGY F7 Mobile Tablet device running Windows 10 with Azure IoT SDK. This multi-step process includes:
- Configuring Azure IoT Hub
- Registering your IoT device
- Build and deploy Azure IoT SDK on device
<a name="Prerequisites"></a>
# Step 1: Prerequisites
You should have the following items ready before beginning the process:
- [Prepare your development environment][setup-devbox-windows]
- [Setup your IoT hub][lnk-setup-iot-hub]
- [Provision your device and get its credentials][lnk-manage-iot-hub]
- iRUGGY F7 Mobile Tablet device.
<a name="PrepareDevice"></a>
# Step 2: Prepare your Device
- Follow the instructions from http://www.iruggy.com/products/tablet-f7-10
<a name="Build"></a>
# Step 3: Build and Run the sample
- Download the [Azure IoT SDK](https://github.com/Azure/azure-iot-sdks) and the sample programs and save them to your local repository.
- Start a new instance of Visual Studio 2015.
- Open the **iothub_csharp_client.sln** solution in the `csharp\device` folder in your local copy of the repository.
- In Visual Studio, from Solution Explorer, navigate to the **samples** folder.
- In the **DeviceClientHttpSample** project, open the ***Program.cs*** file.
- Locate the following code in the file:
private const string DeviceConnectionString = "<replace>";
- Replace `<replace>` with the connection string for your device.
- In **Solution Explorer**, right-click the **DeviceClientHttpSample** project, click **Debug**, and then click **Start new instance** to build and run the sample. The console displays messages as the application sends device-to-cloud messages to IoT Hub.
- Use the **DeviceExplorer** utility to observe the messages IoT Hub receives from the **Device Client HTTP Sample** application.
- Refer "Monitor device-to-cloud events" in [DeviceExplorer Usage document](https://github.com/Azure/azure-iot-sdks/blob/master/tools/DeviceExplorer/doc/how_to_use_device_explorer.md) to see the data your device is sending.
- Refer "Send cloud-to-device messages" in [DeviceExplorer Usage document](https://github.com/Azure/azure-iot-sdks/blob/master/tools/DeviceExplorer/doc/how_to_use_device_explorer.md) for instructions on sending messages to device.
[setup-devbox-windows]: https://github.com/Azure/azure-iot-sdks/blob/master/c/doc/devbox_setup.md
[lnk-setup-iot-hub]: ../setup_iothub.md
[lnk-manage-iot-hub]: ../manage_iot_hub.md

Просмотреть файл

@ -0,0 +1,83 @@
---
platform: Windows 10 IoT Enterprise LTSB
device: Titan-S
language: c
---
Run a simple C sample on Titan-S device running Windows 10 IoT Enterprise LTSB
===
---
# Table of Contents
- [Introduction](#Introduction)
- [Step 1: Prerequisites](#Prerequisites)
- [Step 2: Prepare your Device](#PrepareDevice)
- [Step 3: Build and Run the Sample](#Build)
<a name="Introduction"/>
# Introduction
**About this document**
This document describes how to connect Titan-S device running Windows 10 IoT Enterprise LTSB with Azure IoT SDK. This multi-step process includes:
- Configuring Azure IoT Hub
- Registering your IoT device
- Build and deploy Azure IoT SDK on device
<a name="Prerequisites"></a>
# Step 1: Prerequisites
You should have the following items ready before beginning the process:
- Computer with GitHub installed and access to the [azure-iot-sdks GitHub](https://github.com/Azure/azure-iot-sdks) private repository.
- Install any version of [Visual Studio 2015](https://www.visualstudio.com/downloads/download-visual-studio-vs.aspx).
Make sure you have following components selected:
- Programming Languages
- Visual C++
- Common Tools for Visual C++ 2015
- Microsoft Foundation Classes for C++
- Windows and Web Development
- Microsoft SQL server Data Tools
- Universal Windows App Development Tools
- Tools and Windows 10 SDK
- Windows 10 SDK
- Install [Microsoft Azure SDK for ..NET](http://www.microsoft.com/download/details.aspx?id=48178)
- [Setup your IoT hub][lnk-setup-iot-hub]
- [Provision your device and get its credentials][lnk-manage-iot-hub]
- Titan-S device.
<a name="PrepareDevice"></a>
# Step 2: Prepare your Device
Install Windows 10 IoT Enterprise LTSB on Titan-S
• Create a bootable USB Drive. Please follow this guide on [how to create a bootable drive].
• Insert the bootable USB Drive from the previous step into your Titan-S. Turn on your Titan-S device and press the Delete key.
• Change the BIOS Boot option filter to UEFI and Legacy.
• Change the BIOS OS Selection to "Windows 10".
• Change the Boot Option Priorities to boot from your USB Drive.
• Save changes and restart your Titan-S. Follow on screen instructions to install Windows Operating System on your Titan-S.
<a name="Build"></a>
# Step 3: Build SDK and Run the sample
- Start a new instance of Visual Studio 2015. Open the **iothub_client_sample_http.sln** solution in the **azureIotSDks\c\iothub_client\samples\iothub_client_sample_http\windows** folder in your local copy of the repository.
- In Visual Studio, in **Solution Explorer**, navigate to **samples** folder.
- In the **iothub_client_sample_http** project, open the **iothub_client_sample_http.c** file.
- Locate the following code in the file:
static const char* connectionString = "[device connection string]";
- Replace the above placeholder with device connection string you obtained in [Step 1](#Step-1:-Prerequisites) and save the changes.
- In visual Studio, under Solution Explorer, right-click the **iothub_client_sample_http** project, click **Debug > Start new instance** to build and run the sample. The console displays messages as the application sends device-to-cloud messages to IoT Hub.
- See [Manage IoT Hub][lnk-manage-iot-hub] to learn how to observe the messages IoT Hub receives from the application and how to send cloud-to-device messages to the application.
[setup-devbox-windows]: https://github.com/Azure/azure-iot-sdks/blob/master/c/doc/devbox_setup.md
[lnk-setup-iot-hub]: ../../setup_iothub.md
[lnk-manage-iot-hub]: ../../manage_iot_hub.md

Просмотреть файл

@ -0,0 +1,61 @@
---
platform: windows 10
device: E7708T
language: csharp
---
Run a simple Csharp sample on E7708T device running windows 10
===
---
# Table of Contents
- [Introduction](#Introduction)
- [Step 1: Prerequisites](#Prerequisites)
- [Step 2: Prepare your Device](#PrepareDevice)
- [Step 3: Build and Run the Sample](#Build)
<a name="Introduction"></a>
# Introduction
**About this document**
This document describes how to connect E7708T device running Windows 10 with Azure IoT SDK. This multi-step process includes:
- Configuring Azure IoT Hub
- Registering your IoT device
- Build and deploy Azure IoT SDK on device
<a name="Prerequisites"></a>
# Step 1: Prerequisites
You should have the following items ready before beginning the process:
- [Setup your IoT hub][lnk-setup-iot-hub]
- [Provision your device and get its credentials][lnk-manage-iot-hub]
- E7708T device.
<a name="PrepareDevice"></a>
# Step 2: Prepare your Device
- Follow the instructions from [devices website]http://www.unistrong.com/
<a name="Build"></a>
# Step 3: Build and Run the sample
- Download the [Azure IoT SDK](https://github.com/Azure/azure-iot-sdks) and the sample programs and save them to your local repository.
- Start a new instance of Visual Studio 2015.
- Open the **iothub_csharp_client.sln** solution in the `csharp\device` folder in your local copy of the repository.
- In Visual Studio, from Solution Explorer, navigate to the **samples** folder.
- In the **DeviceClientAmqpSample** project, open the ***Program.cs*** file.
- Locate the following code in the file:
private const string DeviceConnectionString = "<replace>";
- Replace `<replace>` with the connection string for your device.
- In **Solution Explorer**, right-click the **DeviceClientAmqpSample** project, click **Debug**, and then click **Start new instance** to build and run the sample. The console displays messages as the application sends device-to-cloud messages to IoT Hub.
- Use the **DeviceExplorer** utility to observe the messages IoT Hub receives from the **Device Client AMQP Sample** application.
[lnk-setup-iot-hub]: ../../setup_iothub.md
[lnk-manage-iot-hub]: ../../manage_iot_hub.md