Media Types for Sensor Measurement Lists (SenML)
draft-ietf-core-senml-14

Document Type Active Internet-Draft (core WG)
Last updated 2018-04-19 (latest revision 2018-04-02)
Replaces draft-jennings-core-senml
Stream IETF
Intended RFC status Proposed Standard
Formats plain text pdf html bibtex
Reviews
Stream WG state Submitted to IESG for Publication (wg milestone: Dec 2017 - Media Types for Sens... )
Document shepherd Jaime Jimenez
Shepherd write-up Show (last changed 2017-12-14)
IESG IESG state IESG Evaluation::Revised I-D Needed
Consensus Boilerplate Yes
Telechat date On agenda of 2018-04-19 IESG telechat
Has 3 DISCUSSes. Has enough positions to pass once DISCUSS positions are resolved.
Responsible AD Alexey Melnikov
Send notices to Jaime Jimenez <jaime.jimenez@ericsson.com>
IANA IANA review state IANA - Not OK
IANA action state None
Network Working Group                                        C. Jennings
Internet-Draft                                                     Cisco
Intended status: Standards Track                               Z. Shelby
Expires: October 4, 2018                                             ARM
                                                                J. Arkko
                                                              A. Keranen
                                                                Ericsson
                                                              C. Bormann
                                                 Universitaet Bremen TZI
                                                           April 2, 2018

            Media Types for Sensor Measurement Lists (SenML)
                        draft-ietf-core-senml-14

Abstract

   This specification defines media types for representing simple sensor
   measurements and device parameters in the Sensor Measurement Lists
   (SenML).  Representations are defined in JavaScript Object Notation
   (JSON), Concise Binary Object Representation (CBOR), Extensible
   Markup Language (XML), and Efficient XML Interchange (EXI), which
   share the common SenML data model.  A simple sensor, such as a
   temperature sensor, could use one of these media types in protocols
   such as HTTP or CoAP to transport the measurements of the sensor or
   to be configured.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at http://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on October 4, 2018.

Jennings, et al.         Expires October 4, 2018                [Page 1]
Internet-Draft                    SenML                       April 2018

Copyright Notice

   Copyright (c) 2018 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Overview  . . . . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Requirements and Design Goals . . . . . . . . . . . . . . . .   4
   3.  Terminology . . . . . . . . . . . . . . . . . . . . . . . . .   5
   4.  SenML Structure and Semantics . . . . . . . . . . . . . . . .   6
     4.1.  Base Fields . . . . . . . . . . . . . . . . . . . . . . .   6
     4.2.  Regular Fields  . . . . . . . . . . . . . . . . . . . . .   7
     4.3.  SenML Labels  . . . . . . . . . . . . . . . . . . . . . .   7
     4.4.  Considerations  . . . . . . . . . . . . . . . . . . . . .   8
     4.5.  Resolved Records  . . . . . . . . . . . . . . . . . . . .  10
     4.6.  Associating Meta-data . . . . . . . . . . . . . . . . . .  10
     4.7.  Configuration and Actuation usage . . . . . . . . . . . .  11
   5.  JSON Representation (application/senml+json)  . . . . . . . .  11
     5.1.  Examples  . . . . . . . . . . . . . . . . . . . . . . . .  12
       5.1.1.  Single Datapoint  . . . . . . . . . . . . . . . . . .  12
       5.1.2.  Multiple Datapoints . . . . . . . . . . . . . . . . .  12
       5.1.3.  Multiple Measurements . . . . . . . . . . . . . . . .  13
       5.1.4.  Resolved Data . . . . . . . . . . . . . . . . . . . .  14
       5.1.5.  Multiple Data Types . . . . . . . . . . . . . . . . .  15
       5.1.6.  Collection of Resources . . . . . . . . . . . . . . .  15
       5.1.7.  Setting an Actuator . . . . . . . . . . . . . . . . .  16
   6.  CBOR Representation (application/senml+cbor)  . . . . . . . .  17
   7.  XML Representation (application/senml+xml)  . . . . . . . . .  19
   8.  EXI Representation (application/senml-exi)  . . . . . . . . .  21
   9.  Fragment Identification Methods . . . . . . . . . . . . . . .  24
     9.1.  Fragment Identification Examples  . . . . . . . . . . . .  24
   10. Usage Considerations  . . . . . . . . . . . . . . . . . . . .  25
   11. CDDL  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  26
   12. IANA Considerations . . . . . . . . . . . . . . . . . . . . .  27
Show full document text