Binding the Web of Things with LwM2M for a vehicular use case
Benjamin KLOTZ klotz@eurecom.fr
Binding the Web of Things with LwM2M for a vehicular use case - - PowerPoint PPT Presentation
Binding the Web of Things with LwM2M for a vehicular use case Benjamin KLOTZ klotz@eurecom.fr Goals Demonstration of vehicle sensors as Web Things Properties/actions/events from the cars sensor/actuator network Potentially
Benjamin KLOTZ klotz@eurecom.fr
21/07/2017 -
network
WoT and LwM2M
bases
and security workflow
creation of lwM2M objects and instances on the client side.
21/07/2017 -
[1] https://www.w3.org/auto/wg/ [2] http://www.eclipse.org/leshan/
21/07/2017 -
N° Domain Part 1 Protocol binding LwM2M methods mapping 2 Implementation 3 Demo setup Hardware and communication 4 Car data access 5 Thing description Retrieval and parsing 6 WoT communication data communication 7 API WoT endpoint
WoT server Protocol binding LwM2M server
TD
LwM2M client Car data access
Pi OEM Cloud Browser as a WoT client HTTP CoAP
API
1 2 3 4 5 6 7
WoT LwM2M Input Output Interactions Method Method if specific target Property Read Read property Value Write Write property, parameter Action Invoke Execute action object Update task Write on instance Action parameter action instance, parameters Cancel task Write on instance Action parameter action instance, parameters Event Subscribe Observe signal Regular values Update subscription Write on instance Subscription parameter subscription, parameter Cancel subscription Write on instance Observe subscription, parameter
21/07/2017 -
WoT methods HTTP methods LwM2M methods
Leshan API Python snippet
the Pi
modification.
21/07/2017 -
WoT server Protocol binding LwM2M server
TD
LwM2M client Car data access
Pi OEM Cloud Browser as a WoT client HTTP CoAP
API
https://w3c.github.io/wot/w3c-wot-common-context.jsonld/
Charpenay) – Contains descriptions of car‘s signals with units
21/07/2017 -
"@context": ["https://w3c.github.io/wot/w3c-wot-td- context.jsonld/", {"wot": "https://w3c.github.io/wot/w3c-wot- common-context.jsonld/"} , {"auto": "https://schema.org/" }, {"vss": "vss2ttl/vss.ttl#" }] { "@type": ["Action","vss:RearShadeSwitch"], "name": "openWindows", "inputData": { "valueType": { "type": "integer" }, "wot:unit": "wot:ms" }, "links": { "href" : "http://localhost:8080/api/clients/[clientID]/[signalID]", "mediaType": "application/json" }}
WoT server
21/07/2017 -
21/07/2017 -
Browser WoT server LwM2M API
<endpoint>/consumetd Read, parse, query the local TD file, Save data as global variables Display possible interactions Consume TD
Read speed
<endpoint>/property/read/speed Protocol binding using the TD (link to the LwM2M API) /api/clients/[clientID]/11001/0/1 {„id“:0,“value“:76} 76 Enrich returned value (not implemented yet) Data access Discovery /
List of endpoints with links to <endpoint>/consumtd
/api/clients List of endpoints and available objects
21/07/2017 -
Endpoint/delete, Endpoint/invoke, Endpoint/cancel, Endpoint/update pages for one task
21/07/2017 -
cases – Is still limited by what the car data access
– Easy basic mapping of methods – Was made possible using the Leshan API
WG – Using the W3C Automotive WG/GENIVI’s Vehicle Signal Spec
– Develop use cases with other sensors/actuators – Do data integration from the vehicle and external knowledge bases – Present the link between W3C WoT and auto to the latter
21/07/2017 -
21/07/2017 -
Contact: Benjamin Klotz klotz@eurecom.fr