《Connecting and Managing Zephyr Devices Remotely Using LWM2M and Eclipse Leshan-1.pdf》由会员分享,可在线阅读,更多相关《Connecting and Managing Zephyr Devices Remotely Using LWM2M and Eclipse Leshan-1.pdf(36页珍藏版)》请在三个皮匠报告上搜索。
1、1Connecting and Managing Zephyr Devices Remotely Using LWM2M and Eclipse LeshanJulien Vermillard,EdgeIQvrmvrmhttps:/ of OMA Lightweight M2M Bootstrap Registration Object modelIntroduction to Eclipse LeshanZephyrs built in LWM2M clientWhen to use LWM2M and up&downsCoAP the Constrained Application Pro
2、tocol4Replace TCP/HTTP in a UDP based light protocolRESTful protocol designed from scratch URIs,Internet Media Types GET,POST,PUT,DELETETransparent mapping to HTTPAdditional features for M2M scenarios Observe Blockwise transferCoAP the Constrained Application Protocol5Binary protocol-Low parsing com
3、plexity-Small message sizeOptions-Binary HTTP-like headers0 8 Bytes TokenExchange handle for client4-byte Base HeaderVersion|Type|T-len|Code|IDOptionsLocation,Max-Age,ETag,Marker0 xFFPayloadRepresentationLightweight M2M6OMA Lightweight M2M7A standard device management Protocol on top of CoAPFirst pu
4、blished in 2017(v1.0)by the Open Mobile AllianceMean to replace OMA-DM for new LPWA networks(LTE-M,NB-IoT)Bootstrap phase8Flash bootstrap credentialsBootstrap phase9I only have bootstrap credentials or I cant reach final serverBootstrap phase10Give me key and my server(s)Bootstrap ServerBootstrap ph
5、ase11Bootstrap ServerNew key and server(s)URLsand ACLBootstrap phase12RegistrationRegistrationHome AutomationServerDevice Manag.ServerBootstrap ServerRegistration phase13POST/rd?ep=light1234<=300CREATED “XYZ”GET/3/0 Content-Format:lwm2m/TLVCONTENT binary encoded device objectPOST/rd/XYZ(extends th
6、e device registration)Registration&NAT14Queue Mode15Specified by the client as a registration mode parameter,Mean the Device will Register and disconnect after a given amount of time,to save powerPOST/rd?ep=light1234&mode=UQOKMax CoAP re-transmission timeOfflineObject Model16coap:/deviceip/object/in