IT in Manufacturing


Integrating legacy serial devices into the IoT

July 2016 IT in Manufacturing

Many serial devices still work very efficiently at a large number of field sites, and if a good thing works, it is certainly a good reason to keep using it. The full potential of many serial devices, however, is still very much untapped. One sure way to add value to such devices is by having the data collected from them stored in the cloud for further analysis to unlock previously untapped information that can yield greater possibilities to streamline and optimise operations. For this to happen, these legacy serial devices first need to be integrated into a network.

Serial device servers

To connect legacy serial devices to an Ethernet-based network, a serial-to-Ethernet converter, also called a serial device server, can be installed. Serial device servers support two interfaces: a serial interface on the one side, and an Ethernet interface on the other side. Also, serial device servers support virtual COM ports so that they work as legacy COM ports in your scada system. This means you can use your existing system, saving the costs of developing a new one. Furthermore, serial device servers also support the so-called raw socket mode, which converts serial data to TCP or UDP packets transparently. Most scada systems and OPC servers support Ethernet encapsulation drivers, which work with serial device servers to receive proprietary protocols. You still have to handle the protocol manually as before, but the serial device server helps you to transfer data to an Ethernet network effortlessly.

Before you can receive data from legacy serial devices, you need to configure them properly. Most of these serial devices use proprietary protocols, so you need to consider how to convert serial data into Ethernet packets. Several factors need to be considered when using serial device servers to support IoT cloud applications.

Multiple polling

Connecting a serial device to one scada system is simple and easy. When it comes to the IoT, however, it is not as straightforward, as the collected data may need to be transferred to the cloud. A scada system and a remote cloud application may issue a command simultaneously to a serial device via a serial device server. Therefore, the serial device server needs to have a FIFO (first in, first out) queue to handle all queries. Only the first query will be sent to a serial device, and the rest will wait in the FIFO queue. Once the serial device server receives the response from a serial device, it will send the response to the relevant scada system or cloud application and process the next query in the FIFO queue. This kind of command-by-command handling is very important in IoT multiple polling applications due to the large number of serial devices supporting proprietary protocols. Without this design, an extra IoT gateway that supports multiple polling is required.

Proprietary protocols over Ethernet

As many serial devices may use proprietary protocols, the main issue is converting serial data into Ethernet packets properly. Many serial device servers support raw socket and TCP server modes, which can handle these types of conversions. The problem, however, is a serial device server may not know how to divide serial data into TCP packets. Serial device servers do not understand serial data formats, so they may put a response from a serial device into two or more TCP packets. This will result in a scada system or a cloud application rejecting these packets as incorrect responses since they expect each TCP packet to represent a single response from a serial device. To get around this issue, serial device servers need to support flexible data packing options because the proprietary protocol may have a different format. For example, fixed data lengths or special delimiter characters can be used to identify single serial device responses. This means a serial device server will keep receiving data from a serial device and not transfer it to the Ethernet until it receives the fixed amount of data or a delimiter character. Without support for data packaging options, you would have to develop complex scada software applications to handle the TCP packets properly. These alternatives waste time and may also create bugs in a system.

More connections, more bandwidth

In many applications, serial devices need to send data back to a control room or a cloud application. To do this, serial device servers need to open a remote connection before they can transfer serial data. If a large number of serial devices are connected to the same network, the connection will require many resources in the control room or cloud application. To handle these large numbers of remote connections properly, serial device servers should support flexible connection control. The best way to do this is to open a connection only when serial data is received from a device. When the transmission is completed, the serial device server should close the connection as soon as possible. Without flexible connection control support, you will have to spend extra time to handle connections at the central site or cloud application.

Make the most of the NPort serial device server by properly matching operation modes

Moxa has been a leader in device connectivity for more than 25 years and provides a wide selection of industrial-grade device connectivity products that are used in a broad spectrum of industrial applications around the world. Many people are already aware that NPort serial device servers provide a variety of operation modes to help different types of serial devices to be seen on a network. What they might not know is that the NPort serial device servers provide various advanced functions as part of each operation mode to assist users in streamlining operations and maximising benefits of serial-to-Ethernet connectivity.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Five data centre trends to watch in 2025
IT in Manufacturing
Any innovation that comes out in 2025 – whether it’s flying cars, highly advanced AI or a breakthrough medical treatment – will be built on the back of an equally innovative IT foundation driven by data. Data that needs to be stored, managed and made accessible in the data centre, in the cloud or at the edge. Is it too much of a stretch to say the future of humankind is dependent on data storage? We don’t think so.

Read more...
Recovering from a cyberattack
IT in Manufacturing
While many organisations have invested heavily in frontline defence tools to try to keep out bad actors, they have spent far less time and money preparing for what happens when the criminals eventually get in. And they will get in.

Read more...
The value of proactive maintenance management
Schneider Electric South Africa IT in Manufacturing
Maintenance has come a long way from the days when we waited for things to break, and thanks to the ever-increasing capabilities of technology, predictive maintenance has become a viable solution for keeping equipment running smoothly and efficiently around the world.

Read more...
Significant decarbonisation can be achieved in the mining industry
ABB South Africa IT in Manufacturing
ABB has released a global report titled ‘Mining’s Moment’, which highlights the progress being made by the mining industry to make operations more sustainable.

Read more...
Pinpointing pipeline occurrences in seconds, not hours
Schneider Electric South Africa IT in Manufacturing
At any given moment, thousands of kilometres of critical assets flow through pipelines that cross veld, mountainous areas, dense forests, and even busy streets. Surprisingly, many of these pipelines operate either unmonitored or with scant oversight, leading to missed opportunities for operational continuity and efficiency.

Read more...
Next-generation AI-enhanced electronic systems design software
Siemens South Africa IT in Manufacturing
Siemens Digital Industries Software has launched the latest advancement in its electronic systems design portfolio. The next-generation release takes an integrated and multidisciplinary approach, bringing a unified user experience that delivers cloud connectivity and AI capabilities to push the boundaries of innovation in electronic systems design.

Read more...
Spatial computing and AI – where no man has sustainably gone before
Schneider Electric South Africa IT in Manufacturing
Some will argue that we now live in a sci-fi world where we dream of electric sheep, and today’s technology – unlike HAL – can provide us with the answers we seek. To the realist it might seem a bit implausible, but when you start using terms like ‘spatial computing realises sustainable AI’ it doesn’t seem that far-fetched.

Read more...
Safeguarding DCS today and tomorrow
Schneider Electric South Africa IT in Manufacturing
Today’s distributed control systems (DCS) are highly intelligent, converging OT and IT in a centralised manner that allows for simplified management and coordination of operations. It is technology evolution at its finest, but with a caveat, cybersecurity challenges.

Read more...
Quantum computing is not as futuristic as it sounds
IT in Manufacturing
The first quantum computer was created almost three decades ago. While its applications are still unknown to many, this advanced field combines computer science, physics and mathematics to deliver solutions the world has been trying to find for aeons – and those it doesn’t yet know it needs.

Read more...
Transform field data into actionable business data
IT in Manufacturing
As part of its ongoing commitment to enhancing industry connectivity, Teledyne Gas & Flame Detection is making its new and proprietary Teledyne GDCloud available with the company´s GS700, GS500 and Shipsurveyor portable gas leak detectors, and also its PS200 portable four-gas monitor for personal safety and confined-space applications.

Read more...