Gateways

Overview

The IoT gateway is an intelligent central hub for IoT devices. IoT gateways connect devices within the Internet of Things to one another and the cloud, translating communication between the devices and filtering data into useful information.

Some of the most common uses for the IoT Gateways include:

Gateways in Upkip

Purpose: Gateways are configured in Microsoft Azure as IoT Devices or IoT Edge devices and are installed on the computers on the manufacturer premises.

They act as a Cloud Gateway which:

Precondition: Log in to Upkip Administration with Microsoft user. Select Organization.

Select the menu Gateways.

Figure 1: Upkip Administration Gateways

For example, in the Upkip Administration are used the following gateways.

Used by the system internally:

  1. Calculated Tags (DeviceId: CalculatedTagAnalyser)
  2. ExternalTelemetry (DeviceID: ExternalTelemetryProcessor)
  3. Warnings (DeviceID: EventProcessor)
  4. Health Check (DeviceID: HealthCheckTestSensor)
  5. Synchronizer (DeviceID: RefreshTimer)

Software gateways installed on premises:

  1. Windows (Developed as a windows services)
  2. Linux (Edge) (Developed as Azure IoT Edge devices)

For different adapters developed in the Upkip platform and their configuration go to Adapters configuration.

Create Windows Gateway

To create a gateway first create a gateway device in the Azure IoT Hub /Devices and then install the service UpkipGateway.

Purpose: Create a gateway in the Upkip organization. The gateway is created as Azure IoT Hub/Device.

Select menu Organization/Gateways:

Click the button Create.

Figure 2: Gateways - create new gateway

Fill in the form:

Fill in the form without checked Is Edge and click the Add button.

Select the created device in the list and open at the right tab Details.

Figure 3: Gateway Details - download installer

Click on the button Download Installer.

During the download of the Gateway installer is executed:

Install Windows Gateway

Purpose: The gateway installer is used to install on the local computer the gateway service.

Follow the steps to install the server UpkipGateway on the local computer.

Results

Verification

Open the PC application Services.

Install a new version of the gateway

Results

Delete Windows Gateway

To delete a gateway first uninstall the service UpkipGateway and then delete the gateway device from the Azure IoT Hub.

Uninstall Windows Gateway

Purpose: Uninstall the created service UpkipGateway on the local computer.

From the Install folder, right-click on the UninstallService.ps1 and Run with PowerShell.

Result

Delete Windows Gateway

Purpose: Delete the created gateway device in the Azure IoT Hub.

Open the Upkip Administration. Select menu Devices/Gateways. Select the created Gateway in the list. Click Delete button. Confirm Delete.

Result

Create Linux Gateway

To create a gateway first create a device in the Azure IoT Hub/IoT Edge and then install the gateway on the Linux machine.

Purpose: Creating a gateway in the Upkip organization. The gateway is created as Azure IoT Hub/IoT Edge device.

Select menu Organization/Gateways:

Click the button Create.

Figure 4: Gateways - create new Linux gateway

Fill in the form:

Click the Add button.

Select the created device in the list and open at the right tab Details.

Figure 5: Gateway Details - download installer

Click on the button Download Installer.

Figure 6: Linux gateway - install instructions

During the download of the gateway installer is executed:

Install Linux Gateway

Precondition: The Linux OS has to be installed on the computer on premises.

Purpose: The gateway installer is used to install the gateway on the Linux computer.

The supported Linux operation systems are: Ubuntu 18.04, Ubuntu 20.04, Debian, Red Hat Enterprise Linux, Raspberry Pi.

To install the Linux gateway follow the steps:

Result

Verification

To verify that installation is successful in the log should be:

System services:
aziot-edged             Running
aziot-identityd         Running
aziot-keyd              Ready
aziot-certd             Ready
aziot-tpmd              Ready

The last line in the log should be with: 
Name: edgeAgent,  Status: running.

Delete Linux Gateway

To delete a gateway first uninstall the Linux gateway and then delete the gateway device from the Azure IoT Hub/IoT Edge.

Uninstall Linux Gateway

Purpose: To uninstall the Upkip Linux Gateway.

To uninstall the Linux gateway follow the steps:

Result

Verification

Delete Linux Gateway

Purpose: To delete the created in the Azure IoT Hub/IoT Edge device.

Open the Upkip Administration. Select menu Devices/Gateways. Select the created gateway. Click Delete button. Confirm Delete.

Result

Data Communication

Precondition: The machine is added to the organization tree.

The Add sensor form is opened following the steps in Add machine.

Machine properties are added in General and Analysis sections by following the steps in Machine Properties.

The section describes the machine gateway configuration and communication settings:

Data communication template

Precondition: The Add sensor form is opened following the steps in Add machine.

Select a template from the Teampate Name dropdown menu in the General section.

Figure 7: Add machine - select template

When you select the New option for the template name, a message is displayed prompting to select Device/Controller type and Communication type. When the machine is saved, a new template named Device/Controller type - Communication type is created, for example MAZATROL - MTCONNECT (WINDOWS).

Device Controller type

Precondition: The Add sensor form is opened following the steps in Add machine.

The user can create a new name or select from the list of already defined to label the machine/device controller type.

Selecting Add from the dropdown list opens a form to add a device/controller type name.

Figure 8: Select Add to add a new device/controller type

Enter name of the device/controller type, click Add.

Figure 9: Add a new device/controller type

Select the machine controller type from the list.

Communication type

Precondition: The Add sensor form is opened following the steps in Add machine.

Users must select a machine communication type from the dropdown list of adapters in Upkip, developed as IoT Hub IoT Device modules running on Windows or IoT Edge device modules running on Linux OS.

Figure 10: Select communication type

The list of supported adapters in Upkip.

WINDOWS ADAPTERS LINUX ADAPTERS
ABB ROBOTICS PC SDK (WINDOWS) MODBUS TCP (LINUX)
FANUC ROBOT INTERFACE(WINDOWS) MODBUS RTU (LINUX)
MTCONNECT HEIDENHAIN INVENTCOM (WINDOWS) MTCONNECT (LINUX)
MELSEC (WINDOWS) OPC UA (LINUX)
MODBUS TCP (WINDOWS) REST(LINUX)
MODBUS RTU (WINDOWS) SIEMENS S7 (LINUX)
MQTT (WINDOWS)
MTCONNECT (WINDOWS)
MTCONNECT FANUC FOCAS (WINDOWS)
OPC CLASSIC (WINDOWS)
OPC UA (WINDOWS)
PICO DATA LOGGER (WINDOWS)
PICOLOG 1000 SERIES (WINDOWS)
RPC SINUMERIC (WINDOWS)
SIEMENS S7 (WINDOWS)

Note! For more details, see Adapters section.

Gateway

After selecting the machine communication type as a Windows or Linux adapter, the Gateway dropdown list is loaded with the available gateways corresponding to Windows or Linux.

Figure 11: Select Linux gateway with Linux adapter

The user can select a gateway from the dropdown list or create a new gateway by selecting Add from the list.

Figure 12: Select Windows gateway with Windows adapter

When Add is selected from the list, a New Gateway form is opened.

Figure 13: Add new gateway

Fill in gateway details.

Click the Add button.

Note! When you create a Linux gateway, additional custom gateway deployment must be done to make it usable. Ask the platform administrators for further information.

When all the required data in the machine properties form is filled in, click the Add button.

Communication settings

Precondition: The machine has been added to some department with their properties.

Select the added machine in the organization tree. Click the Properties tab.

In the Data Communication Settings, a predefined set of fields for user-configurable settings appears based on the adapter type. The settings are sufficient for normal communication with the machine.

Before some fields there is an information icon (“i” sign). Hover the icon, a tooltip is displayed explaining the format of the field data. For other fields without an information icon and tooltip, the field label is sufficient to inform the user about the format of the field data (e.g. port, IP Address, etc.).

Figure 14: Machine properties with data communication settings

Fill in the data communication settings fields with the requested machine communication data. Click the Update button.

For example, if the machine has an adapter type SIEMENS S7 (WINDOWS). Fill in the machine communication data and click Update.

Figure 15: Machine communication settings for SIEMENS S7 (WINDOWS)

Select the GATEWAYS menu, select the machine gateway and click the Modules tab. Select a Siemens S7 module.

Figure 16: Gateway module with machine configuration

Click the Edit button.

Figure 17: Gateway module with machine configuration data

For example, if the machine has adapter type ABB ROBOTICS PC SDK (WINDOWS) with filled communication data.

Figure 18: Machine communication settings

Figure 19: Gateway module with machine configuration

Click the Edit button.

Figure 20: Gateway module with machine configuration

Note! For more details, see Adapters section.

Update Machine Properties

Precondition: The machine is configured in the organization tree.

Select the machine in the organization tree. Select tab Properties.

Figure 21 Update machine properties and communication settings data

The user can view or edit the editable properties. After changing some properties or data communication settings click the Update button.