Industrial IoT Needs MQTT and JSON; Here's How to Make the Switch

2022-11-29 15:48:19
关注


Industrial IoT Needs MQTT and JSON; Here's How to Make the Switch

Illustration: © IoT For All


To have a conversation, people must speak the same language. Connected devices aren’t so different. They rely on a common set of rules to govern the passage of data back and forth. Of course, technologists are always innovating. They come up with new, better protocols all the time. They also revamp the old ones. Sometimes a new protocol is the only way to send data in a standard format—essential for integration with machine learning algorithms, which are the key to predictive analytics and other AI technologies that drastically improve production line efficiency. Sometimes one protocol just offers a faster, more reliable way to transfer data than another.

The right protocol for the job delivers tremendous benefits, such as connection to the cloud for AI, machine learning, and analytics, reducing costs of new equipment, and increasing the usability of collected data. If you use manufacturing IoT, you need to know about the two protocols that are delivering on the promise of Industry 4.0. You must also figure out how to use them—preferably without rebuilding your system from the ground up. These two protocols are called MQTT and JSON. Let’s take a look at how they help, why so many companies struggle to implement them, and the simplest way to take your smart manufacturing line into a new and stronger era of industrial IoT.



MQTT and JSON in Manufacturing IoT

Message Queuing Telemetry Transport (MQTT) is not a new protocol. In fact, it’s been around since 1999, when early IoT implementers used it to connect things like oil pipelines and satellites. It has also been updated many times; the latest version, as we publish, was released in 2019.

MQTT manages the messaging between machines with unprecedented ease and flexibility. With little programming, MQTT enables all types of devices and software to communicate in both directions, which makes it ideal for sending instructions, collecting data, and changing the flow of messages on the fly: Key tasks for bringing agility to manufacturing and IIoT. Maybe that’s why it is quickly becoming the standard protocol for smart factories. But to add more flexibility and functionality to an IoT system—including connecting to the power of machine learning, which lives on the cloud—MQTT alone isn’t enough. You also need an inter-process communication (IPC) protocol that enables all your devices and software to “speak the same language” as the cloud makes it easy for people to read, change, and troubleshoot messages on the factory floor. That is where JSON comes into play.

JavaScript Object Notation (JSON) offers a data payload format that works with all kinds of software. That vastly expands the range of real-life behaviors you can build into your manufacturing lines—especially with machine learning. If you can get your IoT system to integrate with this self-improving form of AI, then you get into big data analytics, predictive maintenance, automated quality control, and more. It’s not an exaggeration to say that these capabilities are essential for manufacturers to stay competitive. By expanding the scope of things industrial IoT can do, MQTT and JSON boost business agility, reduce integration costs, bring together information technology (IT) and operational technology (OT) systems, connecting the manufacturing line to the cloud. So why isn’t everyone using them already?  

The Struggle to Adopt New Protocols

Manufacturing IoT was built on protocols that we now consider “legacy,” meaning they are probably not the best solution for today’s broader technology ecosystem. Many industrial IoT systems run on a hodge-podge of Modbus, Profibus, OPC-UA, BACNet, and more. These legacy protocols are complicated, expensive, and anything but lightweight—especially compared to MQTT and JSON.

But they also work. Few manufacturers are ready to shut down production while they revamp their systems. Fewer still can afford to pay developers to write custom code that allows legacy systems to talk to each other. With the right tool, however, you don’t need to rebuild your IoT system from scratch. You can get the advantages of MQTT and JSON—low-code solutions that your in-house OT engineer can quickly implement—to work with whatever you already have. The solution is called an Integration Hub.    

Integrating IoT Protocols Into Legacy Systems

In the context of manufacturing IoT, an Integration Hub is a software platform that bridges the gap between legacy protocols and MQTT. It takes binary data from your old system, converts it into JSON, and sends it to an MQTT broker. An Integration Hub also sends data back to the device. That creates bidirectional communication that supports device control based on data received from the devices. In other words, an industrial IoT Integration Hub is the key to sending data to the cloud or on-premise solutions—and getting powerful results in return. It is a Rosetta Stone for industrial IoT protocols. And it’s the simplest, lowest-cost way to pull ahead in manufacturing’s frantic race toward the future.


参考译文
工业物联网需要MQTT和JSON以下是如何进行转换
插图:© IoT For All 要进行对话,人们必须使用同一种语言。连接的设备也并不例外。它们依赖于一组共同的规则来管理数据的来回传输。当然,技术专家们一直在不断创新,他们不断提出新的、更好的协议,也会对旧的协议进行更新。有时,新协议是唯一一种以标准格式传输数据的方法,这对于与机器学习算法的集成至关重要,而这些算法是预测分析和其它大幅提升生产线效率的AI技术的关键。有时,一个协议只是比另一个协议更快、更可靠地传输数据。选择合适的协议能够带来巨大好处,比如连接云端用于AI、机器学习和数据分析,降低新设备成本,提高收集数据的可用性。如果你使用制造类物联网(IoT),你就必须了解两种正在兑现工业4.0承诺的协议。你还必须弄清楚如何使用它们——最好无需从头重建你的系统。这两种协议叫做MQTT和JSON。让我们来看看它们如何帮助制造业、为什么许多公司难以实施它们,以及如何以最简单的方式将你的智能制造线带入工业IoT的新纪元和更强大时代。制造业中的MQTT与JSON 消息队列遥测传输(MQTT)并不是一个新协议。实际上,它自1999年起就被早期的IoT实施者用来连接诸如石油管道和卫星等设备。MQTT也已经多次更新,截至我们发布时,最新版本发布于2019年。MQTT以前所未有的便捷性和灵活性管理着机器间的消息传递。通过很少的编程,MQTT便能使各种设备和软件进行双向通信,这使其非常适合发送指令、收集数据以及实时更改消息流——这些是为制造业和工业物联网(IIoT)带来灵活性的关键任务。也许正因如此,MQTT正在迅速成为智能工厂的标准协议。然而,若要为IoT系统增加更多灵活性和功能,包括连接到云端的机器学习能力,仅靠MQTT是不够的。你还需要一个进程间通信(IPC)协议,使你的所有设备和软件能够“使用同一种语言”与云端通信,从而让工厂现场的人员能够轻松地读取、修改和排查消息问题。这就是JSON的作用所在。JavaScript对象表示法(JSON)提供了一种适用于各种软件的数据载荷格式。这大大扩展了你可以在制造线中构建的现实行为的范围,尤其是与机器学习结合时。如果你能让IoT系统与这种自我进化的AI形式集成,那么你就能进入大数据分析、预测性维护、自动化质量控制,以及其他更多功能。毫不夸张地说,这些能力对于制造商保持竞争力是至关重要的。通过扩展工业IoT能实现的功能范围,MQTT和JSON增强了业务灵活性,降低了集成成本,连接了信息技术(IT)与运营技术(OT)系统,将制造线连接到云端。那么,为什么不是每个人都已经在使用它们呢?采用新协议的挑战 制造业的IoT最初建立在我们现在称之为“遗留”协议的基础上,即它们可能不是当今更广泛技术生态系统中的最佳解决方案。许多工业IoT系统运行在Modbus、Profibus、OPC-UA、BACNet等拼凑而成的协议上。这些遗留协议复杂、昂贵且远非轻量级——尤其与MQTT和JSON相比更是如此。但它们确实有效。很少有制造商愿意在系统重建过程中暂停生产。几乎没有企业可以负担得起请开发人员编写允许遗留系统相互通信的定制代码的费用。然而,如果你拥有合适的工具,就不需要从头重建IoT系统。你可以在现有系统的基础上快速实施MQTT和JSON的低代码解决方案,从中获得优势。这个解决方案被称为集成中心(Integration Hub)。将IoT协议集成到遗留系统中 在制造IoT的背景下,集成中心(Integration Hub)是一个软件平台,用于弥合遗留协议与MQTT之间的差距。它从你的旧系统中提取二进制数据,将其转换为JSON,然后发送到MQTT代理。集成中心也会将数据发送回设备,创建支持基于设备接收数据的设备控制的双向通信。换句话说,工业IoT集成中心是将数据发送到云端或本地解决方案,并从中获得强大结果的关键。它就像是工业IoT协议的“罗塞塔石碑”。而且,这是在制造业疯狂奔向未来的过程中,最简单、成本最低的领先方式。
您觉得本篇内容如何
评分

评论

您需要登录才可以回复|注册

提交评论

广告
提取码
复制提取码
点击跳转至百度网盘