简体   繁体   English

CoAP 和 LwM2M 有什么不同?

[英]What differ CoAP and LwM2M?

I study about IoT protocol CoAP, MQTT, LwM2M.我研究物联网协议 CoAP、MQTT、LwM2M。

I was able to know a little about CoAP and MQTT.我能够对 CoAP 和 MQTT 有所了解。

But I do not know what LwM2M is.但我不知道 LwM2M 是什么。

I do not know what's different from CoAP.我不知道与 CoAP 有什么不同。

I just thought that LwM2M is not a protocol with some format but a system structure using CoAP.我只是认为LwM2M不是某种格式的协议,而是使用CoAP的体系结构。

Is that correct?那是对的吗?

What is LwM2M and How Can I know more information about LwM2M?什么是 LwM2M 以及如何了解更多关于 LwM2M 的信息?

Please someone teach me.请好心人教教我。

LwM2M (specified by OMA) is a is a protocol group largely built on top of CoAP (specified by the IETF). LwM2M(由 OMA 指定)是一个主要建立在 CoAP(由 IETF 指定)之上的协议组。

LwM2M uses a subset of CoAP's capabilities that fit into an architecture of many small devices registering at a large LwM2M server that manages the devices. LwM2M 使用 CoAP 功能的一个子集,这些功能适合许多小型设备在管理设备的大型 LwM2M 服务器上注册的架构。 It prescribes particular path structures (that numbers are used in paths, and what they mean) that represent the LwM2M object model to allow that unified management.它规定了表示 LwM2M 对象模型的特定路径结构(路径中使用的数字及其含义)以允许进行统一管理。

Compared to "plain CoAP", this limits the scope of what devices can do.与“普通 CoAP”相比,这限制了设备可以执行的操作范围。 Devices can still provide other CoAP functionality on the same server that is not covered by LwM2M.设备仍然可以在 LwM2M 未涵盖的同一服务器上提供其他 CoAP 功能。 Those limitations allow different vendors to build devices that can interoperate with a different management servers, and LwM2M provides additional specifications for easy deployment (eg based on smart cards) that are out of scope for CoAP.这些限制允许不同的供应商构建可以与不同管理服务器互操作的设备,并且 LwM2M 提供了超出 CoAP 范围的附加规范以方便部署(例如基于智能卡)。

The direct answer can be obtained from the official sites:直接的答案可以从官方网站获得:

  • CoAP "is a specialized web transfer protocol for use with constrained nodes and constrained networks in the Internet of Things. The protocol is designed for machine-to-machine (M2M) applications such as smart energy and building automation." CoAP “是一种专门用于物联网中受限节点和受限网络的网络传输协议。该协议专为智能能源和楼宇自动化等机器对机器(M2M)应用而设计。”
  • LwM2M "is a device management protocol designed for sensor networks and the demands of a machine-to-machine (M2M) environment. With LwM2M, OMA SpecWorks has responded to demand in the market for a common standard for managing lightweight and low power devices on a variety of networks necessary to realize the potential of IoT." LwM2M ”是一种设备管理协议,专为传感器网络和机器对机器 (M2M) 环境的需求而设计。通过 LwM2M,OMA SpecWorks 响应了市场对管理轻型和低功耗设备的通用标准的需求实现物联网潜力所必需的各种网络。”

Basically, we can simplify saying that CoAP was designed to communications between constrained IoT devices and it is very similar to HTTP protocol, which facilitates the developers work, while the LwM2M was designed mainly to manage constrained devices remotely, providing service enablement, for instance.基本上,我们可以简单地说,CoAP 是为受限物联网设备之间的通信而设计的,它与 HTTP 协议非常相似,方便了开发人员的工作,而 LwM2M 主要设计用于远程管理受限设备,例如提供服务启用。 Both protocols are commonly used together.这两种协议通常一起使用。

More information you can find in the following links:您可以在以下链接中找到更多信息:
- What is LwM2M? -什么是 LwM2M? A device management solution for low power M2M低功耗M2M设备管理解决方案
- CoAP functionality expected in a LwM2M system - LwM2M 系统中预期的 CoAP 功能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM