Once you've moved past the prototype development stage, you might find yourself in the position to deploy an actual IoT solution for your business product.
Let’s say you own a transportation of goods company that has to deliver food and other temperature sensitive products to shops throughout the country. Storage and transportation conditions such as temperature and moisture contribute greatly to the loss of food, as it provides favorable conditions for pests or mold multiplications. One very efficient solution to this problem is to use IoT devices such as the Intel® Edison board to capture the temperatures in these storage devices, the gateway to gather the information and route it appropriately, and Microsoft Azure* to store the information and analyze it so you can get valuable feedback.
The following use case will provide you with an example of how to implement an IoT solution so that value can be gained through an IoT deployment, using the power of interconnectivity between the board, the gateway and the cloud. We will dive into detailing the implementation process of the prototype of our solution, with this use case in mind.
Using Microsoft Azure*, the Intel® Edison board, and Intel® IoT Gateway Technology
To create a high value solution for the temperature problem described, we need to setup the board, the gateway and Azure*. The following sections address setup for Intel® Edison boards, Microsoft Azure, and Wyse* 3000 Series x86-Embedded Desktop Thin Client.
Intel® Edison board
The Intel® Edison board runs a simple Yocto* linux distribution and can be programmed using Node.js*, Python*, Arduino*, C, or C++. For this use case we used the Intel® Edison board and Arduino breakout board, a Seeed* Studio Grove* Starter Kit Plus (Gen 2), a base shield, and many sensors to get started with.
The first time you use your Intel® Edison board you have to configure it, flash it to the latest firmware, and test it. In order to do so you can access this simple Getting Started Guide.
Working with the IDE and Wi-Fi
Now that you have set up your Intel® Edison board, you can start programming it. You can choose the programming language and IDE that you want and you have to load up one of the blink examples in order to test if everything is set:
- For Arduino: Arduino
- For C/C++: Eclipse for C/C++
- For Java: Eclipse for Java
In order to finish the setup you need to follow a few more steps:
1. Open the device manager again and find out on which COM port is the Intel® Edison Virtual COM Port and set the port in the IDE.
2. Load up the blink example and if everything went well so far, the on-board LED should start blinking.
3. To connect with Wi-Fi, open Putty, and once you login, type configure_edison --wifi.
4. Work through the setup process and use the guide to connect to your Wi-Fi network (See Get Started with Intel® Edison on Windows).
Setting up an Azure Event Hub
For this setup, the free trial version will be used.
1. You need to sign in with a Microsoft account. After signing in, click on Sign up for a free trial. In the next tab, you have to fill in information about yourself, including credit card data. Do not worry, you will not be charged if you do not specifically say so. After clicking the Sign up button at the bottom of the page, the Azure Portal Homepage will appear. Click on New in the top left corner - Internet of Things – Event Hub.
2. First you need to create a namespace, click on Service Bus on the left and then CREATE at the bottom
3. Fill in the required information and then click the check sign
4. Now our namespace was created. Next, we need to create the Event Hub. Make sure you have selected the Service Bus tab on the left and then click on New on the bottom-left
5. Next, select App Services – Service Bus – Event Hub
6. Next, click on Quick create and fill in the required information
7. Now you should be able to see on your screen something like this in your portal, under the Service Bus tab :
8. You will need to further configure your Event Hub. Click on your namespace, and you’ll be prompted with the following window:
9. Click on Event Hubs tab, you will see on your screen your Event Hub:
10. Click on the event hub and then click on Configure
11. You will now need to create a new shared access policy for your Hub, make sure you select Manage from the permissions tab
12. Now you will have to create a consumer group. At your created Hub, click on the Consumer Groups tab and then click on Create.
13. Name your group and click the checkmark
14. Your namespace must also have a key defined, return to the namespace (the Service bus tab on the left), click on Configure and then, under Shared access policies type in a key name and make sure you check Manage
15. Click on the Service bus tab again, then click on Connection information at the bottom (make sure you have selected your namespace)
16. Here you can see your namespaces and their keys:
17. If you return to your Event Hub’s dashboard after you begin sending messages to it from the gateway, you will see something like this:
The event hub dashboard is just a way to check if the data was received correctly, see the bandwidth of those messages and check if you are getting errors. To work with the data you will need to read it from the event hub through an application using the many different SDKs that Microsoft offers (for an example see the section below on How to use features of Azure services - Notifications). Also, a full explanation of how to read data from Intel® Edison board and sending it to the just created Event Hub using an IoT Gateway can be found in the How to take the developed solution from the board to the gateway and to the cloud section.
SDKs for Microsoft Azure IoT
The most popular language to develop apps for Azure is C# but if you want to use other languages and platforms visit GitHub.
Setting up the gateway
Wyse* 3000 Series x86-Embedded Desktop Thin Client
Regulatory model number: N03D
The gateway connects legacy and new systems, and enables seamless and secure data flow between edge devices and the cloud. We take data from the Intel® Edison board and send it to the gateway, and the gateway sends the data to the cloud as an event.
In the next section we detail the setup process for the gateway.
The new Wyse* 3000 Series x86-embedded thin client has a powerful performance at an entry-level price. It has a dual-core Intel processor with 1.6GHz, an integrated graphics engine, and multiple connectivity choices. Its various configuration options support a wide variety of peripherals and interfaces, along with unified communications platforms such as Lync 2010, Lync 2013 and the Skype for Business client for Lync 2015 (UI mode) plus high-fidelity protocols such as RemoteFX and Citrix* HDX.
In order to get started, see the quick start guide. To get your thin client up and running, you must do the following:
1. Make sure that the thin client and the monitor are turned off and disconnected from AC power. Place the thin client on the desk after you attach feet for vertical or horizontal position. Assemble the VESA mount with user-supplied screws, and insert the thin client; try to put the cables facing down or to the side.
2. Make all desired connections. In order to connect to a network, you can use a Base-T Ethernet network cable. If your device is equipped with a SFP slot, use a SFP module, or use an optional Wi-Fi network adapter for wireless networks.
3. Connect the power adapter to the thin client power input before connecting to a 100-240V AC. You must wait until the power button light turns off, and then, for turning on the thin client, you need to press the power button. After the initialization sequence is complete, the activity light changes to green.
For more such intel IoT resources and tools from Intel, please visit the Intel® Developer Zone
Other Popular Deals
- The 10 best job hunting apps on AndroidTop 10 Android launchers (June 2017)
- The 10 scariest horror games on AndroidAndroid app stores: 5 best alternatives to Google Play Store
- Best Android apps for rooted devices18 apps for a memorable Valentine's Day
- Top 15 Android games that you should playThe 20 best looking games for mobile phones
- 8 Android apps to tickle your funny bone17 must have apps for any Android device (plus alternatives)
- 5 apps to get the Android Lollipop look on your smartphoneTake control of your Android device with these apps
- 7 weird and strange apps for your Smartphone10 neat Google apps you may not know of
- 10 essential Indian apps for Android devicesPerfect Viewer