简体   繁体   English

乐山连接到服务器和云

[英]Leshan connect to server and cloud

I have the task of implementing iot device management using Eclipse Leshan . 我的任务是使用Eclipse乐山实现iot设备管理。 I have difficulty understanding how Eclipse Leshan works in connecting IOT sensors with servers and cloud . 我很难理解Eclipse乐山如何将IOT传感器与服务器和云连接起来。 Is it true if I declare that Eclipse Leshan does not require a gateway like Eclipse Kura to connect into server and cloud? 如果我声明Eclipse Leshan不需要像Eclipse Kura这样的网关连接到服务器和云,那是真的吗?

Does anyone know where the complete documentation about Eclipse Leshan is? 有谁知道关于Eclipse乐山的完整文档在哪里? it would be very helpful if there were examples of programs in implementing the eclipse leshan. 如果有实施日食乐山的程序实例,将会非常有帮助。

Thank you 谢谢

Eclipse Leshan is a library for implementing applications that use the LWM2M protocol to manage devices. Eclipse Leshan是一个用于实现使用LWM2M协议来管理设备的应用程序的库。 As such, your application can use Leshan's Java API in order to interact with devices that also support LWM2M. 因此,您的应用程序可以使用乐山的Java API来与也支持LWM2M的设备进行交互。

LWM2M does not per se mandate a transport protocol. LWM2M本身并不要求传输协议。 However, the spec is written assuming that CoAP over UDP is used for that purpose. 但是,假定使用UDP上的CoAP用于此目的而编写规范。 In fact, the LW in LWM2M stands for Lightweight and as such, using CoAP as the transport protocol makes a lot of sense for managing constrained devices. 实际上,LWM2M中的LW代表轻量级 ,因此,使用CoAP作为传输协议对于管理受限设备非常有意义。

Eclipse Leshan itself does not connect to a server or cloud but instead is usually part of an application that is hosted on a server (on the cloud). Eclipse Leshan本身不连接到服务器或云,而是通常是服务器(在云上)托管的应用程序的一部分。 However, you need to implement that application yourself because Leshan, as indicated above, is just a library. 但是,您需要自己实现该应用程序,因为如上所述,乐山只是一个库。 The devices then interact with your LWM2M enabled application. 然后,设备与启用LWM2M的应用程序进行交互。 Because CoAP/UDP uses standard IP, this interaction can occur over public internet infrastructure if desirable in your use case, ie no gateway is necessarily needed. 由于CoAP / UDP使用标准IP,因此如果您的使用情况需要,此交互可以在公共互联网基础设施上进行,即不一定需要网关。 You can, however, also connect your devices to a local gateway, eg Kura, and then connect the gateway to your LWM2M server in the cloud instead. 但是,您也可以将设备连接到本地网关(例如Kura),然后将网关连接到云中的LWM2M服务器。 It really depends on your use case and the capabilities of the devices. 这实际上取决于您的使用案例和设备的功能。

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

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