Friday 5th July 2024
Summary
This article explains some of the basics of Lucid and why an organisation might wish to use the protocol. The aim of the article is to support a senior manager within a user organisation so that they can appreciate what Lucid is, where and how it could be deployed within their OT estate, and what advantages the use of the protocol could bring.
Lucid is a lightweight communications protocol based on open, widely adopted internet standards like JSON and MQTT. In its basic form it provides a standards-based, easy to use way of sharing status, configuration, alarms and data values between devices and systems over a network. At a high level:
Lucid calls remote devices “Field Devices” (FDs); server applications like SCADA, Telemetry Systems and cloud Data Warehouses are called “Supervisory Applications” (SAs). Lucid can be used as the link between Field Devices (FDs) and Supervisory Applications (SAs) (as in a traditional SCADA system) or as a link between different Supervisory Applications (SAs). Because Lucid is specifically designed for Industrial IoT (IIOT) and Operational Technology (OT) systems, it is excellent at providing a way for multiple entities to share telemetry data and coordinate configuration of telemetry devices.
Lucid provides a number of functions above and beyond the reporting of data values. Some of the most important of these are:
Many of these functions are optional for FDs to implement, leaving a simple, easy-to-implement protocol that can be readily incorporated into a vendor’s device. This permits lower cost devices to be made readily available but using a consistent single interface.
Lucid is a protocol detailing how devices in the field should talk to Operational Technology systems. In that respect it is like some of the protocols below, which you may have heard of:
However, its MQTT element is different to the above and in that way, it is more like one of the following:
Articles have been prepared which contrasts Lucid against WITS-DNP3 and compare Sparkplug and OPC-UA against Lucid. In essence, Lucid provides very similar functionality to WITS-DNP3 and more functionality that both Sparkplug and OPC-UA. One might ask “if the functionality of WITS-DNP3 and Lucid are similar then why create Lucid?”. The answer to that question is explained in the article on Lucid being lighter than WITS-DNP3.
A further advantage of using the MQTT model is that the interface can be used in many more scenarios that just sending data directly from the FD to a SA; the architecture supports system-to-system interfaces for FD data. See the article on usage scenarios for Lucid for more information.
Some of the protocols mentioned above are proprietary, controlled by one vendor and normally restricted to use on their devices. Others are open but one must pay for access to the protocol. The final set of protocols are totally open and permit anyone to look at and evaluate the protocols. These tend to be more popular due to their easy accessibility.
The Lucid protocol is open and free to access for anyone. From a user’s perspective, this does not translate to free to implement! Users will still have to bear the cost of procuring and supporting systems which support Lucid, even if they are just extensions to current licensing models for existing Master Stations or Field Devices. It is hoped that free and open accessibility will however increase the number of vendors providing Lucid solutions and that in turn will provide good variation in the devices available and healthy competition between the vendors. This is expected to translate to more choice and keener pricing for users.
The big advantage of this open availability is that it is easy for vendors to read and assess the standard. This makes it more likely that they will implement the protocol on their products which would increase the number of vendors supplying compatible devices. The knock-on effect of this is that users should have an increased choice of devices which are compatible with the rest of their OT Infrastructure. This increased choice benefits users as greater competition should result in better value products and greater diversity in the functionality of field devices and supervisory applications.
An open protocol also helps in controlling proliferation of interfaces at the Enterprise level for user organisations. Rather than having to control and maintain many interfaces with many different products, users can request that interfaces use Lucid, meaning they need only deal with one interface. Actively managing the number of interfaces in this method means there are fewer interfaces, with less technical and management overhead, better staff learning and consequently easier deployment and troubleshooting.
An important factor in designing Lucid was that it should be easy for vendors to implement, thereby reducing barriers for adoption to a minimum. Lucid is free to use and based on heavily standardised, commonly available open-source technologies; vendor’s implementation costs are therefore minimised.
The protocol’s simplicity is expected to encourage implementation. The various permitted levels of protocol compliance (do some things but not others) are expected to encourage implementation from the simplest devices upwards. Implementation on the simplest devices allows mass deployment on distribution networks/infrastructure to support monitoring of those networks/infrastructure. The protocol has been designed to support long battery life, low transmission bandwidth and minimal configuration costs on such devices.
Lucid FDs provide information to an MQTT broker as an intermediary between the FD and the SA. Any SCADA, or telemetry or top end software that is capable of ingesting MQTT based data, should be able to work with Lucid. Note however that these systems may require some alteration to deal with the details of the Lucid protocol.
Examples of the kinds of systems that we might expect to support Lucid are:
There is no implication in the above that these systems do already support Lucid, just that they could. The list above is just meant to give an idea of the wide scope of implementations that are possible. Loosening the link between FDs and the OT systems which normally consume their data allows users to consume the data directly in their private cloud applications and could avoid users having to build in access to other proprietary and siloed systems.
Testing of a new protocol and its integration into a user’s environment can be a difficult and time-consuming affair that often must be repeated when new versions of the protocol or device become available. It is intended that Lucid will be accompanied by some form of community-led testing suite. This testing suite would allow any user or vendor to carry out tests against an FD and ensure it is compliant with the protocol. It is hoped that this will promote greater interoperability. Not only could vendors use the testing suite to check their products, but users could use the same suite to check those test results and/or enhance the suite for their specific test cases.
This should simplify and speed up the introduction to service and support ongoing testing when new versions are released to check that they work before deployment.
Unlike some other protocols, organisations have the chance to be involved in the continued development and improvement of the protocol by joining the WITS-PSA. The fact that the protocol is managed by a cross vendor and user body (the WITS-PSA) means that the protocol maintains its vendor agnostic stance with no lock-in to a particular vendor
There is no one way to start using Lucid within an organisation, but taking the easy approach, users would select products from their vendors which implement Lucid. After selecting the products, users and vendors would have to make sure the products interoperated successfully. In the past this may have been a sometime long and drawn-out process. We expect that the simplification of configuration handling and automated testing that we plan to put in place, will considerably ease this process.
Looking beyond this first level of implementation, users wanting to do more with the data could prepare types of SA to consume appropriate data from the FDs within their estate, possibly sharing this with other enterprise applications.
Some of the big benefits of using Lucid are:
The Lucid protocol allows Field Devices to communicate with Supervisory Applications using MQTT. It provides very similar functionality to WITS-DNP3. The protocol can be considered a close neighbour to Sparkplug B and OPC UA, although as presented in other articles it provides a richer functional experience that those protocols, especially in relation to configuration.
The protocol supports implementation on constrained IoT like devices. Its reliance on publicly available and popular standards like MQTT and JSON simplifies implementation for vendors who also have access to good tooling and implementation support for the protocol.
The protocol opens up a number of ways to integrate it with a user’s top end systems so there need be no reliance on specific systems. The ability to use the same interface for many different vendors systems and devices also simplifies a user’s enterprise architecture experience.
Hopefully this has whetted your appetite for trying Lucid!
Dave Howarth (Northumbrian Water) and Mark Davison (Terzo Digital)
July 2024
Please see our Lucid reading page for a collated list of other articles on Lucid.
Articles · 4 minutes
Articles · 7 minutes
Articles · 12 minutes
Articles · 4 minutes
Articles · 5 minutes
Articles · 9 minutes
Articles · 4 minutes
Articles · 4 minutes
Lucid is a free, open source protocol that bridges a gap between Operational Technology (OT) and IoT technology.