Connect a Raspberry Pi to ThingWorx using the Edge MicroServer (EMS).
This project will utilize the Edge MicroServer (EMS) to connect ThingWorx Foundation to a Raspberry Pi.
YOU'LL LEARN HOW TO
Set up Raspberry Pi
Install, configure, and launch the Edge MicroServer (EMS)
Connect a remote device to ThingWorx Foundation
NOTE: The estimated time to complete all parts of this guide is 60 minutes.
Step 1: Introduction
ARaspberry Piis a small, single-board computer that utilizes an ARM processor and typically runs a variant of Linux.
Due to its small size, relatively affordable cost, and ability to run a full operating system, the Pi is a near-ideal device to utilize as aProof-of-Concept (PoC) IoT Edge device.
In addition, there is a version of the ThingWorxEdge MicroServer (EMS)built to work on ARM processors. Therefore, this guide will explore getting theEMS running on a Raspberry Pi to connect to ThingWorx Foundation.
You will also need anSD card(8+GB... 16+GB recommended) with theRaspbianoperating systeminstalled... though this guide will instruct you oninstalling the Raspbian OS on a microsdhc flash cardif you prefer to purchase an SD card separately.
You may alternately wish to purchase a"Pi Canakit". Canakits, depending on the version, typically include aPi,SD cardwith a version ofRaspbian pre-installed, and various other items likesensors, acase, anHDMI cable, and other accessories.
To make this guide as straight-forward as possible, we'll assume amonitor,USB keyboard,USB mouse, andWiFiconnectivity to interact with the Pi.
Note that the Pi has anHDMI port, so you may also need anHDMI-to-DVI convertoror similar if your monitor doesn't natively support HDMI.
Step 2: Format MicroSDHC Card
ThemicroSDHCflash card which the Pi accepts may (or may not) comepre-installed with the Raspbian OS. If Raspbian is pre-installed and working, you mayskip this step.
However, these flash cards are susceptible tocorruption, especially if properstatic-controlguards are not followed or if thePi is powered-downwithout going through aproper shutdown procedure.
As such, the steps immediately below will assume that you areinstalling (or re-installing) Raspbianon your microSDHC card.
Depending on your PC's ports, you may also require amicroSDHC adapterto insert the flash card into your computer.
Locate yourmicroSDHC card.
Remember that 8+GB is mandatory, but 16+GB is recommended to ensure that the Pi has enoughswap-space.
Locate yourflash card adapter.
Note that you may have a different type of adapter. Simply ensure that your PC can recognize the microSDHC card.
Insertthe microSDHC card into the adapter.
Insertthe adapter-plus-microsdhc cardinto your PC.
Assuming a Windows PC and either a pre-installed or corrupted flash card, you will receive apop-upstating that it needs to beformattedprior to use; clickFormat disk.
On the followingFormat SDHC Card pop-up, clickStart.
On the followingFormat Confirmation pop-up, clickOK.
On the followingFormat Complete pop-up, clickOK.
On the previousFormat pop-upwhich is still open, clickClose.
You now have a formatted microSDHC card which Windows can recognize.
Step 3: Flash MicroSDHC Card
Now that the flash card is accessible to Windows, you want toinstalltheRaspbian OSon it.
Once again, this step assumes that you are installing (or re-installing) the Raspbian OS.
If your microSDHC card camepre-installed with Raspbian, then you mayskip this step.