FIWARE Global Summit - Developing an IoT Agent, Case Example: OPC UA
1. OPC UA AGENT
Researcher
Smart Industry and Agrifood Unit
Lab of Intelligent Systems and Social Software for Security, Enterprises, Transport and Infrastructures
Research & Development Department
OPC UA AGENT
3. OPC UA AGENT
Introduction
Smart Applications require collecting data
from different sources about what is going
on that is relevant to the application at any
moment, what we refer to as “context data”
Industrial machines need to be connected
with the cloud in order to gather data,
monitoring continuously the status of
devices and transforming data into
information supporting operational
intelligence and strategical decisions
4. OPC UA AGENT
Introduction
Any product being advertised as “Industrie 4.0-enabled” must
be OPC UA-capable.
OPC UA
Open Platform
Communication Unified
Architecture
OPC UA is the de facto standard for the automation market
and Industrie 4.0.
5. OPC UA AGENT
Introduction
OPC UA (Open Platform Communication Unified Architecture)
Physical Level Abstraction Level
•Object
•Variable
•Method
•…
OPC UA
NODE
Node ID
10. OPC UA AGENT
Solution
IoT
Manufacturing
data
ORION
Context Broker
OPC UA SERVER
PUBLISHER
OPC UA CLIENT
SUBSCRIBER
CONTEXT
PRODUCER
OPC UA
Agent
OPC UA AGENT PUSHING MODE - ACTIVE ATTRIBUTES
OPC UA SERVER
PUBLISHER
Context
Consumers
Get Temp
45 DegreesMonitoring
46 Degrees 46 Degrees
46 Degrees
Get Temp
11. OPC UA AGENT
Solution
IoT
Manufacturing
data
ORION
Context Broker
OPC UA SERVER
PUBLISHER
OPC UA CLIENT
SUBSCRIBER
CONTEXT
PRODUCER
OPC UA
Agent
OPC UA AGENT PUSHING MODE - LAZY ATTRIBUTES
OPC UA SERVER
PUBLISHER
Context
Consumers
Get Temp
Get Temp
Read Temp
46 Degrees
46 Degrees
46 Degrees
12. OPC UA AGENT
Solution
IoT
Manufacturing
data
ORION
Context Broker
OPC UA SERVER
PUBLISHER
OPC UA CLIENT
SUBSCRIBER
CONTEXT
PRODUCER
OPC UA
Agent
OPC UA AGENT PUSHING MODE - COMMAND ATTRIBUTES
OPC UA SERVER
PUBLISHER
Context
Consumers
OK
STAND BY
Command
STAND BY
Method
OK
OK
STAND BY
Command
13. OPC UA AGENT
Solution
Config
File
• Mapping Tool
• Manually
OPC UA CLIENT
SUBSCRIBER
CONTEXT
PRODUCER
OPC UA
Agent
OPC UA AGENT OVERVIEW
Context
Broker
INDUSTRIAL
ENVIRONMENT
FIWARE ENVIRONMENTOPC UA AGENT
14. OPC UA AGENT
Solution
Config
File
• Mapping Tool
• Manually
OPC UA AGENT OVERVIEW
INDUSTRIAL
ENVIRONMENT
FIWARE ENVIRONMENTOPC UA AGENT
OPC UA
Agent
1. Address Space Navigation
a. Object Type Navigation
b. Object Folder Navigation
2. Address Space Object Mapping
a. One level object collapsing
3. Configuration file Creation
FACILITATION TO AVOID OR SUPPORT MANUAL
CONFIGURATION
15. OPC UA AGENT
Solution
Config
File
• Mapping Tool
• Manually
OPC UA AGENT OVERVIEW
INDUSTRIAL
ENVIRONMENT
FIWARE ENVIRONMENTOPC UA AGENT
OPC UA
Agent
FACILITATION TO AVOID OR SUPPORT MANUAL
CONFIGURATION
v Namespace filtering
v Attributes filtering (in and out)
v Object Types and Methods
v Server Authentication support
18. OPC UA AGENT
Report
Incubated since
FIWARE 7.4
release
Published into
IoT Agents
catalogue
(IDAS)
Tested in
Engineering
premises
Validated at
POLIMI in a real
scenario (Digital
Twin)
Integrated with
FogFlow by
HOPU
Integrated with
MASAI by
ATOS
Version 1.3.0
released date
May 2019
19. OPC UA AGENT
Roadmap
Short term Medium term Long term
Performance
improvement
Test coverage
Complete API
adoption branch
(lazy attributes
and commands)
Mapping Tool nodejs
migration
Multi-Server support
9 Months
July 2019 Not defined
20. OPC UA AGENT
References
OPC UA AGENT
• https://github.com/Engineering-Research-and-Development/iotagent-opcua
OPC UA MAPPING TOOL
• https://github.com/Engineering-Research-and-Development/idas-opcua-agent-support-
tool
OPC UA TEST SERVER
• https://github.com/Engineering-Research-and-Development/opc-ua-car-server
NODE OPC UA LIBRARY
• https://github.com/node-opcua/node-opcua
21. OPC UA AGENT
Contacts
Head of Unit
angelo.marguglio@eng.it gabriele.deluca@eng.it
TSC Member
IoT Chapter