OPC UA Connector for TeamViewer IoT - TeamViewer Support
<main>
<article class="userContent">
<p><strong>This article applies to all TeamViewer IoT users and requires TeamViewer IoT Agent 2..11 or higher.</strong></p><h3></h3><h3 data-id="overview">Overview</h3><p>OPC Technology stands for “Open Platform Communications” and is an approved communication standard for the process industry. The OPC Unified Architecture (UA) is an interoperability standard and provides a secure and reliable data exchange mechanism.</p><p>OPC UA is a platform-independent system and ensures information flow between devices from multiple vendors.</p><p>For real-time data access, the OPC Data Access specification is being used.</p><h3 data-id="architecture">Architecture</h3><p><em>TeamViewer IoT</em> provides an <em>OPC UA Connector</em> that connects to the <em>OPC UA Server</em> and collects values from <em>OPC UA</em> Variables. The connector finally communicates with <em>TeamViewer IoT Cloud</em> with the help of <em>IoT Agent.</em></p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/lithium_attachments/17455i57FD906EA2EB2EB6.jpg" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/lithium_attachments/17455i57FD906EA2EB2EB6.jpg" alt="1.png" height="180" width="320" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<p><br></p><h3 data-id="installation">Installation</h3><p>Connect with the <em>TeamViewer Client</em> to the device and use <em>Remote Terminal</em></p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/lithium_attachments/17456i33BC689B3021FEE5.jpg" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/lithium_attachments/17456i33BC689B3021FEE5.jpg" alt="1b.png" height="180" width="320" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<p><br></p><p>Run this command:</p><pre class="code codeBlock" spellcheck="false" tabindex="0">sudo teamviewer-iot-agent install opcua
</pre><h3 data-id="connector-configuration">Connector Configuration</h3><p>In most cases, the <em>OPC UA</em> servers are being configured by other companies. And the configuration is specific to the installation and the environment where it is being used.</p><p>You need to configure the <em>OPC UA Connector</em> according to your server's configuration by providing the URL of the server, security settings, and authentication options.</p><p>To do this, you need to edit the <strong>opcua.conf</strong> file. The file is located in<strong> /var/lib/teamviewer-iot-agent/scripts/opcua/</strong> directory of the Edge Device.</p><p>Below are the parameters included in the file:</p><pre class="code codeBlock" spellcheck="false" tabindex="0"># Server Information
EndpointURL="opc.tcp://localhost:46570"
# Security Policy
# 0 - None
# 1 - Basic128Rsa15
# 2 - Basic256
# 3 - Basic256Sha256
# 4 - Aes128Sha256RsaOaep
# 5 - Aes256Sha256RsaPss
SecurityPolicy=0
# Message Security Mode
# 0 - None
# 1 - Sign
# 2 - Sign & Encrypt
MessageSecurityMode=0
# Authentication Settings
# 0 - Anonymous
# 1 - Username & Password
# 2 - Certificate & Private Key
AuthenticationType=0
# If "Username & Password" is selected
Username="admin"
Password="admin"
</pre><h3 data-id="adding-a-sensor-via-opc-ua-connector">Adding a Sensor via OPC UA Connector</h3><p>Login in <a href="https://community.teamviewer.com/English/home/leaving?target=https%3A%2F%2Fteamviewer-iot.com%2F" rel="nofollow noreferrer ugc">TeamViewer IoT Management Console</a> From navigation panel click on <em>Inventory.</em> Select the<em> Edge Device</em> where the <em>Connector</em> is installed and from dropdown menu on the right select<em> Add Sensor</em></p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/lithium_attachments/17458iBA5A3024D478FD06.jpg" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/lithium_attachments/17458iBA5A3024D478FD06.jpg" alt="2.png" height="180" width="320" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<p><br></p><p>Choose the <em>OPC UA</em> from the <em>Connectors</em> section.</p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/lithium_attachments/17459i37D82F627D50BD68.jpg" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/lithium_attachments/17459i37D82F627D50BD68.jpg" alt="3.png" height="180" width="320" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<p><br></p><p>Provide the<em> Node IDs</em> as they are specified in the server. Associate the <em>OPC UA Nodes</em> with a metric name that will be displayed in <a href="https://community.teamviewer.com/English/home/leaving?target=https%3A%2F%2Fteamviewer-iot.com%2F" rel="nofollow noreferrer ugc">Teamviewer IoT Cloud</a>. All the metrics are grouped in a sensor instance. Finally provide the scan rate at which the data will be requested from the server and save your configuration.</p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/lithium_attachments/17460iC1E1C69B6BF7AB41.jpg" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/lithium_attachments/17460iC1E1C69B6BF7AB41.jpg" alt="4.png" height="180" width="320" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<p><br></p><p>Monitor the values received from the <em>OPC UA Server</em> by pining the configured metrics to the<em> Dashboard</em>.</p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/lithium_attachments/17461i5701BF10BE644F93.jpg" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/lithium_attachments/17461i5701BF10BE644F93.jpg" alt="5.png" height="180" width="320" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<p><br></p><p> </p><h3 data-id="-1"> </h3><p> </p>
</article>
</main>