This project will introduce you to the Edge MicroServer (EMS) and how to connect your ThingWorx server to a Raspberry Pi device.
Following the steps in this guide, you will be able to connect to the ThingWorx platform with your Raspberry Pi. The coding will be simple and steps will be very straight forward.
We will teach you how to utilize the EMS for your Edge device needs. The EMS comes with the Lua Script Resource, which serves as an optional process manager, enabling you to create Properties, Services, Events, and Subscriptions for a remote device on the ThingWorx platform.
|Est. Time||30 Minutes|
|Published||March 21, 2019|
You'll learn how to
- Set up Raspberry Pi
- Install, configure and launch the EMS
- Connect a remote device to ThingWorx
Things used in this guide
This guide requires a connection to the ThingWorx Foundation.
It assumes that you are using either the hosted Foundation server or the downloadeded trial.
In order to complete this exercise, you need the following:
- Raspberry Pi - If you don't have one, purchase one directly from the Raspberry Pi web site or from a distribution partner: Digi-Key, or RS
- An SD card (8 GB or larger) with the Raspbian Jessie operating system installed.
- Either a remote access application, or a monitor, USB keyboard and a USB mouse to interact with the Pi
CONNECT RASPBERRY PI TO THINGWORX
- Step 1: Setup Raspberry Pi
- Step 2: Install the EMS
- Step 3: Create Application Key
- Step 4: Configure the EMS
- Step 5: Launch the EMS
- Step 6: Configure Lua Script Resource (LSR)
- Step 7: Configure Template File (Properties)
- Step 8: Configure Template File (Service)
- Step 9: Run LSR
- Step 10: Bind Remote Thing Properties
- Step 11: View Data from Devices
- Step 12: Connect to Temperature Sensor
- Step 13: Next Steps
Challenges For medical device manufacturers, unplanned equipment downtime negatively impacts patient outcomes. That's why medical device manufacturers are adopting a remote service approach.
Solution A Medical device manufacturer used ThingWorx to easily connect to medical devices in the field for remote monitoring of status and performance. The ThingWorx Edge Microserver provides secure, bi-directional connection to send data that is displayed on the web application created using ThingWorx Mashup Builder. Different machine types are modeled using purpose built features of ThingWorx Composer that anticipate this exact use case. ThingWorx seamlessly integrates with other enterprise systems to create a comprehensive, enterprise-wide solution and provides flexibility to meet the necessary security and auditing requirements.
Results Service employees detect, diagnose, and resolve problems faster, minimizing or even preventing equipment downtime. They can also more effectively collaborate with field service technicians to provide contextual guidance, improving first-time fix rates.
Data collected from connected devices is easily integrated into other existing business processes—such as parts planning and allocation or compliance reporting—which further enhances outcomes and reduces costs. Many manufacturers are also leveraging data to develop and deliver differentiated, value-add services, like automatic consumables replenishment and usage-based billing.