小程序
传感搜
传感圈

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

2022-11-29
关注


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以下是如何进行转换
要交谈,人们必须说同一种语言。联网设备并没有那么大的不同。它们依赖一组公共规则来管理数据的来回传递。当然,技术人员总是在创新。他们一直在提出新的、更好的协议。他们也翻新旧的。有时,新协议是以标准格式发送数据的唯一方法——这对于与机器学习算法集成至关重要,而机器学习算法是预测分析和其他大幅提高生产线效率的人工智能技术的关键。有时候,一种协议只是提供了一种比另一种更快、更可靠的数据传输方式。正确的工作协议可以带来巨大的好处,如连接到云端进行人工智能、机器学习和分析,降低新设备的成本,提高收集数据的可用性。如果您使用制造业物联网,您需要了解在工业4.0承诺下交付的两个协议。您还必须弄清楚如何使用它们——最好不要从头开始重建系统。这两个协议称为MQTT和JSON。让我们来看看它们是如何起作用的,为什么这么多公司难以实施它们,以及将你的智能生产线带入一个新的、更强大的工业物联网时代的最简单方法。消息队列遥测传输(MQTT)并不是一个新的协议。事实上,早在1999年,早期的物联网实现者就使用它来连接石油管道和卫星等东西。它也多次更新;我们发布的最新版本是2019年发布的。MQTT以前所未有的轻松和灵活性管理机器之间的消息传递。只需很少的编程,MQTT就能使所有类型的设备和软件双向通信,这使得它非常适合发送指令、收集数据和动态更改消息流:为制造业和工业物联网带来敏捷性的关键任务。也许这就是为什么它正迅速成为智能工厂的标准协议。但要给物联网系统增加更多的灵活性和功能,包括连接到机器学习的力量,这是在云上运行的,单靠mqtt是不够的。您还需要一种进程间通信(IPC)协议,使您的所有设备和软件都能“使用同一种语言”,因为云使人们可以很容易地在工厂车间读取、更改和排除故障消息。这就是JSON发挥作用的地方。JavaScript对象表示法(JSON)提供了一种适用于各种软件的数据有效负载格式。这极大地扩展了你可以构建到生产线中的真实行为的范围——特别是在机器学习方面。如果你能让你的物联网系统与这种自我改进形式的AI集成,那么你就可以进入大数据分析、预测性维护、自动化质量控制等领域。毫不夸张地说,这些能力对制造商保持竞争力至关重要。通过扩大工业物联网可以做的事情的范围,MQTT和JSON提高了业务敏捷性,降低了集成成本,将信息技术(IT)和操作技术(OT)系统结合在一起,将生产线连接到云。那么,为什么不是所有人都在使用它们呢?制造业物联网建立在我们现在认为是“遗留”的协议之上,这意味着它们可能不是当今更广泛的技术生态系统的最佳解决方案。许多工业物联网系统运行在Modbus、Profibus、OPC-UA、BACNet等大杂烩上。这些遗留协议非常复杂、昂贵,而且绝对不轻——特别是与MQTT和JSON相比。 但它们也有作用。很少有制造商准备在改造系统时停止生产。更少的人能够支付得起开发人员编写允许遗留系统相互通信的定制代码。然而,有了正确的工具,您不需要从头重建您的物联网系统。您可以利用MQTT和json(内部OT工程师可以快速实现的低代码解决方案)的优势来处理您已有的任何东西。这个解决方案被称为集成中心。在制造业物联网的背景下,集成中心是一个软件平台,它弥合了遗留协议和MQTT之间的差距。它从旧系统获取二进制数据,将其转换为JSON,并将其发送到MQTT代理。Integration Hub还将数据发送回设备。这就创建了基于从设备接收到的数据支持设备控制的双向通信。换句话说,工业物联网集成中心是将数据发送到云端或本地解决方案的关键,并获得强大的回报。它是工业物联网协议的罗塞塔石碑。这是在制造业面向未来的疯狂竞赛中领先的最简单、成本最低的方式。
  • 机器学习
  • mqtt
  • en
您觉得本篇内容如何
评分

评论

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

提交评论

iotforall

这家伙很懒,什么描述也没留下

关注

点击进入下一篇

从训练到推理:创建用于图像识别的神经网络

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