Now let's install the Azure IoT Edge software on the gateway.įollow the instructions for installing Azure IoT Edge on Linux X64. Step 4 - Install and configure Azure IoT Edge sudo date -s " sudo hwclock -set -date=" 11:14:00" sudo timedatectl set-timezone sudo timedatectl set-ntp onĭeploy a Standard version of Azure IoT Hub using these instructions. Lastly, configure the date/time and NTP settings on the gateway.
Otherwise, update your Ubuntu / Debian operating system using: sudo apt-get sudo apt-get upgrade If so, download and install it according to the manufacturer's setup guide. Once Internet connectivity has been established, it's a good idea to check if a newer firmware version exists. sudo ifconfig sudo nano sudo ifdown eth0 ifup eth0 Consult your Linux distribution's documentation for specifics. The following Debian commands will help you do this. If Ethernet or Wi-Fi, configure the network interface for DHCP or a static IP. If Cellular, insert the SIM card and follow the manufacturers instructions to setup the APN, etc. This specifics will vary widely based on whether you are using Cellular, Ethernet or Wi-Fi. Now it's time to setup Internet connectivity on the gateway.
Once connected, reset the password and add additional user accounts as directed by the setup guide. The default username and password will also be provided by the manufacturer. You will need to temporarily change the IP of your laptop to be on the same subnet as the gateway. If Ethernet, connect the gateway and your laptop into a network switch and then SSH to the static IP of the gateway as specified by the manufacturer.
Personally I prefer serial because I can change the network settings without getting disconnected. The COM port settings will be provided by the manufacturer. If serial, grab a serial cable, download Putty or another serial application, and connect over a COM port from a laptop or PC. The manufacturer's setup guide will provide you the specifics. The initial OOTB setup for a new gateway device will involve connecting to it over Serial or Ethernet. But the process usually boils down to the following tasks: Connect via Serial Console or Ethernet You should consult the setup guide provided by the manufacturer. Step 1 - Configure the gateway and establish Internet connectivityĪfter you have unboxed your new gateway you will need to configure it and establish Internet connectivity.
I deployed a small Windows 10 Pro VM with the following specs to run the Prosys software. Since I did not have access to any physical equipment that supported OPC UA I choose to use the free Prosys OPC UA Simulation Server and install it on an Azure Virtual Machine (VM).
For more information on OPC UA and Azure, see my " not-so-up-to-date" post from 2017 or watch this video from Erich Barnstedt.Optionally, steps 3 to 5 can be automated using the Azure Industrial IoT Gateway Installer.If your Azure IoT Edge gateway device comes with manufacturer instructions for installing/configuring IoT Edge, please follow those instead.While these instructions are for Linux, the OPC Publisher also supports Windows 10 SKUs based on build 1809 only.My colleague, Vitaliy Slepakov, has written a great blog post on using Custom X.509 Certificates with OPC Publisher. The OPC Foundation has put together some great articles on OPC UA security best practices. But friends don't let friends use defaults in production. To simplify this article I have used default security options.However, with OPC UA, you are generally deploying one or two gateways in a manufacturing facility and the OPC UA settings are very specific to that facility. I would normally recommend using Microsoft Device Provisioning Service (DPS) to deploy IoT Edge devices at scale.Namely, the ability to configure OPC Publisher via built-in OPC UA server and IoT Hub device method interface was removed and replaced with a cloud-based, companion REST microservice. OPC Publisher 2.6.x and later introduced some breaking changes. This article is based on OPC Publisher version 2.5.x and lower.
The information below comes from several articles but my goal was to assemble all the steps in one place. Your plan is to connect some industrial equipment exposing an OPC UA interface and have telemetry from that equipment flow into Azure through Azure IoT Hub.Īssuming you ordered a Linux-based device and want to connect it to an OPC UA server, the following steps will walk you through the entire process. You eagerly open the box, pull out the device and begin to wonder " now what"? You just received your shiny, new "Edge Certified" gateway device that you ordered from the Azure IoT Device Catalog.