Re: [core] [SenML] Multiple values in a measurement

Michael Koster <michaeljohnkoster@gmail.com> Wed, 07 November 2018 17:38 UTC

Return-Path: <michaeljohnkoster@gmail.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8D7F312D4EF for <core@ietfa.amsl.com>; Wed, 7 Nov 2018 09:38:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.19
X-Spam-Level:
X-Spam-Status: No, score=-0.19 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_EMBEDS=1.799, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dQ5We-OnXVst for <core@ietfa.amsl.com>; Wed, 7 Nov 2018 09:38:07 -0800 (PST)
Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E97AD12DD85 for <core@ietf.org>; Wed, 7 Nov 2018 09:38:06 -0800 (PST)
Received: by mail-oi1-x233.google.com with SMTP id u130-v6so14515255oie.7 for <core@ietf.org>; Wed, 07 Nov 2018 09:38:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=U2kwwCf+dDqRD4T3vk1BxhSaDKHJ29a5HVpHn4clbVI=; b=REjpB+ezfJKKpggGbCuPJLhEk6Yw+21Tb5hYw4Z1aLEeVMMy6F4vAVsP40PvwSXfXS O2pYoE1rUr/WbQOG+6VyXPTU0R91FeY4SSLl68WuGbJP+GO8R/GmI8/HDX0qDaRAKWlo Vq4EO12tnPr86xIYrWWo+QFT9P8vc1fBPvaUpYNgBdcpMOTfh+ZOBxZnsFvaq6ul7eL2 jzZ4T4N6VQYgQqUvnFZd/IESmpssVdmuWhXB+NL0nmtkQob+JD/KR8SZlUWL/IyOTy1y 0280FnCTGz00OngFPT2SfdMhJcYgfLUDG8REr71HnSlMNjEsrpaaWNTlgev+qkOnTf0k 8QlA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=U2kwwCf+dDqRD4T3vk1BxhSaDKHJ29a5HVpHn4clbVI=; b=gMb+/wGokgbU1fD+ugmA93cFIYS9MnAGfigfH7F9y3uF8x0EK9OEI01Wdtn+Uh3mz3 9bEU0ZtsXxQEX6uBE3oXoZUxjGaB6J5Nv21xgeqsMey6jZvuaF9ZTEL6fVWUemj+u8yL FNGWNVzLwmMTXBFeL7GGiwgxmltUaT93/YgYeK33kq/jCw8oot658skcCEfI8HlmGz/5 Mm5mmYylU0UDY3O96qsbDaAz9592hwiZgJp1bKXYmzI/gdSw5uUiKBOohghipInqcDcC c6cWbxFFK3Kr+ZtORU6symJH3vB/KqpGyxuaZD8r0FGcyy7BiAgJ561RLlLvSD9bPMTH J+pA==
X-Gm-Message-State: AGRZ1gKWlwfctAkDPSpWD+4y4jRt2mMsiE5Wi/L6IC5gXqlzNk9AGWDS Fd4EFHgcBA2COn+6C5x3Qy8=
X-Google-Smtp-Source: AJdET5fmph+N1BUpGw+S9V2A2mGWzMm14fQphTs6sHTT72HCLVRf1BZAGXETtnkFPvulLJFT7aqaeg==
X-Received: by 2002:aca:5204:: with SMTP id g4-v6mr671422oib.149.1541612286196; Wed, 07 Nov 2018 09:38:06 -0800 (PST)
Received: from [10.0.0.3] (108-201-184-41.lightspeed.sntcca.sbcglobal.net. [108.201.184.41]) by smtp.gmail.com with ESMTPSA id f3sm436467otb.12.2018.11.07.09.38.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 09:38:03 -0800 (PST)
From: Michael Koster <michaeljohnkoster@gmail.com>
Message-Id: <9315AE8F-0893-4587-8FF3-8EA43BF48D64@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_381CF3B9-99B3-4E07-973A-12B86CCC9DC6"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Date: Wed, 07 Nov 2018 09:38:01 -0800
In-Reply-To: <3643AE5F1967B74C86F1D72E6EB108926367EB@EXCH1.biba.uni-bremen.de>
Cc: "core@ietf.org" <core@ietf.org>, "fluffy@cisco.com" <fluffy@cisco.com>
To: Shantanoo Desai <des@biba.uni-bremen.de>
References: <3643AE5F1967B74C86F1D72E6EB108926367EB@EXCH1.biba.uni-bremen.de>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/fgUBMhs7W4Xao50hJzf5b2QMVok>
Subject: Re: [core] [SenML] Multiple values in a measurement
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Nov 2018 17:38:09 -0000

Here is one possibility:

[
  {
    "bn": "inertialmeasurement",
    "bu": "rad/s",
    "n": "xvalue",
    "v": 0.34,
  },
  {
    "n": "yvalue",
    "v": 1.43,
  },
  {
    "n": "zvalue",
    "v": 0.23,
  }
]

Or as an IPSO Smart Object representationfor the accelerometer object type (3313):

[
  {
    "bn": "3313/0/",
    "n": "5701",
    "vs": "rad/s",
  },
  {
    "n": "5702",
    "v": 0.34
 },
  {
    "n": "5703",
    "v": 0.34
 },

  {
    "n": "5704",
    "v": 0.34
 }
]


On Oct 18, 2018, at 1:35 AM, Shantanoo Desai <des@biba.uni-bremen.de> wrote:
> 
> Hello all,
>  
> In a practical scenario there are sensors that provide more than one values, for e.g., an Inertial Measurement Unit (IMU) will provide Euler Angles as Yaw, Pitch, Roll indicating orientation of the sensor node or an Accelerometer which measures linear acceleration in X, Y, Z directions.
>  
> Is there any schematic in SenML that would support multiple values?
>  
> From my understanding there is none and most values are indicated by the field “v” as a single key:value pair in JSON.
>  
> <image006.png>
>  
> Even if I split the reading into three, there might not be clear distinction since “n” always remains the same (the sensor name is always “inertialmeasurement”)
>  
> <image007.png>
>  
>  
> Is there a way to inculcate such features into senML or is there a way around this that I have overlooked?
>  
>  
>  
> Mit freundlichen Grüßen
>  
> 
> i. A. M.Sc. Shantanoo Desai
> Wissenschaftlicher Mitarbeiter
>  
> BIBA - Bremer Institut für Produktion und Logistik GmbH
>  
> Informations- und kommunikationstechnische Anwendungen in der Produktion
> Prof. Dr.-Ing. Klaus-Dieter Thoben
>  
> Raum 1390
> Tel: +49 (0)421 218-50138
> Handy: +49 162 6536 107
> des@biba.uni-bremen.de <mailto:des@biba.uni-bremen.de>
>  
> <image002.png> <https://www.linkedin.com/company/biba.uni-bremen.de> <image003.png> <https://www.researchgate.net/institution/BIBA-Bremer_Institut_fuer_Produktion_und_Logistik>  <image004.png> <https://www.facebook.com/BIBA.Produktion.Logistik>  <image005.png> <http://www.youtube.com/channel/UCieF5Uq5Qix9XZAZuYhTQhg> 
>  
> BIBA – Bremer Institut für Produktion und Logistik GmbH
> Postanschrift: Postfach P.O.B. 33 05 60 · D-28335 Bremen / Germany
> Geschäftssitz: Hochschulring 20 · D-28359 Bremen / Germany
> USt-ID: DE814890109 Amtsgericht Bremen HRB 24505 HB
> Tel: +49 (0)421/218-02  Fax: +49 (0)421/218-50031
> E-Mail: info@biba.uni-bremen.de <mailto:info@biba.uni-bremen.de> · Internet: www.biba.uni-bremen.de <http://www.biba.uni-bremen.de/>
> Geschäftsführer: Prof. Dr.-Ing. K.-D. Thoben, O. Simon
>  
>  
> <image001.png><oledata.mso>_______________________________________________
> core mailing list
> core@ietf.org <mailto:core@ietf.org>
> https://www.ietf.org/mailman/listinfo/core <https://www.ietf.org/mailman/listinfo/core>