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

Ari Keränen <ari.keranen@ericsson.com> Thu, 08 November 2018 08:31 UTC

Return-Path: <ari.keranen@ericsson.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 245E1130E90 for <core@ietfa.amsl.com>; Thu, 8 Nov 2018 00:31:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.77
X-Spam-Level:
X-Spam-Status: No, score=-4.77 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.47, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com header.b=J8MGzuLe; dkim=pass (1024-bit key) header.d=ericsson.com header.b=K6I3JfXo
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 05UDNS5Xcf1x for <core@ietfa.amsl.com>; Thu, 8 Nov 2018 00:31:05 -0800 (PST)
Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 25EFC130E6E for <core@ietf.org>; Thu, 8 Nov 2018 00:31:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1541665863; x=1544257863; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=MJ9CNFmvKBE9mYmZLIHmsGB/6PxpwGIaH4ELJ+DklIw=; b=J8MGzuLeDgDgBLfu3YE+fh/ATa1Mb/0jM9X3P1mRmBiRGAdXtl+ETgMGo6UkrjWL rUPv09XiuWJzKMqJV8N1KMZ9ehdTO0XucMG7hhoZJ/oDeCf8LF3co5zhFlOvTG7g y4nL+f8QWiuHo3qgfaUIGsb+vE9MQSVYxiTbtsZOxV4=;
X-AuditID: c1b4fb2d-f61ff70000007af1-bc-5be3f44751a3
Received: from ESESSMB502.ericsson.se (Unknown_Domain [153.88.183.120]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id 04.1D.31473.744F3EB5; Thu, 8 Nov 2018 09:31:03 +0100 (CET)
Received: from ESESSMR506.ericsson.se (153.88.183.128) by ESESSMB502.ericsson.se (153.88.183.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 8 Nov 2018 09:31:02 +0100
Received: from ESESBMB504.ericsson.se (153.88.183.171) by ESESSMR506.ericsson.se (153.88.183.128) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 8 Nov 2018 09:31:02 +0100
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB504.ericsson.se (153.88.183.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Thu, 8 Nov 2018 09:31:02 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0rwM/y314pXkP8JLG68ihatR4B3YGAoU/crwgJ5ZDDY=; b=K6I3JfXoUMaxqvArg/QfsVG3ZZkRXVcBq/ObzrHqVxKcx0XAb6kpTkl7Kwp71yud1qgRdGsZ79ZGsDAo7vjkDM/K1RmCj5MR0CMQtWHLt6H22aLwS+1vqb0knf6yuPLz5N/J0AjNc+PXGaPUFWAdEHxIC54PNP7PXxYucFCH+2U=
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com (20.176.166.145) by HE1PR07MB3499.eurprd07.prod.outlook.com (10.170.247.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.14; Thu, 8 Nov 2018 08:31:01 +0000
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::b074:afe2:469c:dd95]) by HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::b074:afe2:469c:dd95%3]) with mapi id 15.20.1294.034; Thu, 8 Nov 2018 08:31:01 +0000
From: Ari Keränen <ari.keranen@ericsson.com>
To: Shantanoo Desai <des@biba.uni-bremen.de>
CC: Michael Koster <michaeljohnkoster@gmail.com>, "fluffy@cisco.com" <fluffy@cisco.com>, "core@ietf.org" <core@ietf.org>
Thread-Topic: [core] [SenML] Multiple values in a measurement
Thread-Index: AdRmu1O0gVkxiXhNQCmF42kugckttw==
Date: Thu, 08 Nov 2018 08:31:00 +0000
Message-ID: <HE1PR07MB42366AD8B9377E6A2FA7DDFA85C50@HE1PR07MB4236.eurprd07.prod.outlook.com>
References: <3643AE5F1967B74C86F1D72E6EB108926367EB@EXCH1.biba.uni-bremen.de> <9315AE8F-0893-4587-8FF3-8EA43BF48D64@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ari.keranen@ericsson.com;
x-originating-ip: [89.166.49.243]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; HE1PR07MB3499; 6:Ax4rnlaUTTeon/nlh3Q29pKWcY2Dt65HxxAAqVv9z6GNS0+aekdj95/PhY8PigVKC5JLVQ9pZ2o1QAkFxkwZFW0nyBMKU60t9xKVNljV+olBEchqcvQZr3zOe/RrNf8Z10DTOG43+gQrmdG3ZeQEkJ3u+zQg5bk349eaEJc+iRn4tZfOQi7w05mctgyM/W+vP/Cqnkg+UnkciQGN0NVDj9YZL2Wpe8DiGEl1MyjJ4P/7EEQ2l8mfy4xHux+zawvCOoO8VxE7qKWCIK/omkNqyFUjm5WFRyZf/57qi083Y+nqNxd20AAwranJ1gqEuxwIEWYsQzky8rIcM/aFp9Lt6pyKhI1fTPLmyfugSlg7CMGmnCZcCaFQ3nBxXF2ypYfOhNeN8tbxw+iAsPP5eOqEefhssTRgOJRKM4GQ+GPtl3VBTee4gObWQbAZtaceIyHVzuJbusHZqZT2MyptU9DJeQ==; 5:xaGNu4HoH34SCD8Tajxsoas97hpj0FUuW+b3K28zAS6xw2DXXMBvjgnjpvO0YMDR2gPbZ/hzMlawXQDcyiNfgSeZxscxSoOW1B4fC+MoGXDDXC0MqcJGCt2dOBBusZKtOxGaWZtZXujiHZ5tXIRWFRiJsHdGvZKp9vYxmZBEmK4=; 7:1uVMG2tYYUHOoZMrlkHyk5fpRolj2X/+OwwNNRkl1I7Wh0KHZFkEJqRPKw0D5I7H72R0JG3Bv0IrPrHDPDHph2nfQiqChFQzDbCXmzMA+DLAemhPuxS8U+6NW/pCpkhXnrVXYwu+FnLYcp6S42YTaw==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 011d9a27-1071-4324-c1ca-08d6455483cf
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:HE1PR07MB3499;
x-ms-traffictypediagnostic: HE1PR07MB3499:
x-microsoft-antispam-prvs: <HE1PR07MB34995684AA91A8625ADA532485C50@HE1PR07MB3499.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(128460861657000)(81160342030619)(38017032943787)(86561027422486)(64217206974132)(91638250987450)(254730959083279);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231382)(944501410)(52105095)(10201501046)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:HE1PR07MB3499; BCL:0; PCL:0; RULEID:; SRVR:HE1PR07MB3499;
x-forefront-prvs: 0850800A29
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(346002)(376002)(396003)(366004)(53754006)(189003)(199004)(55016002)(6306002)(7696005)(8676002)(305945005)(8936002)(81156014)(81166006)(6246003)(966005)(7736002)(53936002)(14454004)(6436002)(99286004)(74316002)(33656002)(86362001)(478600001)(186003)(486006)(9686003)(476003)(446003)(6506007)(53546011)(71200400001)(71190400001)(39060400002)(76176011)(66574009)(26005)(229853002)(4326008)(68736007)(25786009)(97736004)(102836004)(6916009)(6116002)(2900100001)(3846002)(66066001)(316002)(105586002)(54906003)(106356001)(5660300001)(14444005)(256004)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3499; H:HE1PR07MB4236.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: czlAWMbwIpSsLNIYF5OFR4GlatgOjCr73YdorAmdTrlwJzYsXaVIBPgOk/xQqDoaanxxRKTLwVQngHfNQ91D28E2DmmpU+oBpsjCI/5NQl0RHRs1rAIQ5J6FQoKapjei6N/2doU56jCMrSfHWSKSnyqLvky0R7aggXpUq2+/+3ioXuCCWfmI1YHBvSyGn6/6dtIMbKdRgAvesyOkdjxmMU1YVSSSBtl3kp51PkBaK+zsx0B23A6Dq74cyu+1a7jgNGUReIVVF8Jxag9P9niuI4nwNioQIl/EuOMnxHMigWCwDIl/mKY9GOMQFzIcOtDfi1mXfg6POPuQwvK3vgKxxRaEa9CFkOI76Vv4zQgWmhM=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 011d9a27-1071-4324-c1ca-08d6455483cf
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2018 08:31:00.8502 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3499
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA02SfUhTURjGO7t3d9fR4miab1qCy4KsmZbQKDNHUPujSKSgNNClFxV12r0m KhGjMHMq+LElE3OWw0rNUFeztA+HJRpqWqkMRIdiH7ZSTPoQNLc7of9+7/M85znvgUMTXgah H52qzmZYtSpdSolJwzlLruzEz+m40NVSSv7C8YiQX58dFMhvVlLyW4VDoihSWWJ2UErdcqtQ +bR6QqQ0mf4IoslYcUQSk56aw7D7IhPEKZrht1SWOSC3ufeBSIP0W7WIpgGHQ3VDtBaJaS/c g6B79aWIH5YQ6BfqhVrkwQ+fXit4o14A92daXCkSlxEwZp5CvKMTQEVhnYAf7AgqTe2U8zyF FdBvf+jq8sZ7wVxQgpyXEzgfarXHnPJmHAHmzgrCKXvjI1C+wPLpECh4YxA4mcRBoJ91EE6W 4AvwfqDWvaoGQUF7iyuE8Bb41d/sYgL7gm3G6GLAGExdQwTPPvBlekXI5+Pga3+fiNcDYeC7 3Z3fDiPGYtfDAI9SoBm2CnlDBvN6vbvoFIyOFZF8qBfBq9tN7tPBcG+y2N2aBkMfVwk+VINg omO9KQAaS+1kGQqr/m9bnkPhx6CR4HkPNNyZc7EEe0KfYYasQ2Qj8uEYjstI3n8ghGFTEzku Ux2iZrLb0NqH6TYvyzpQ05zCijCNpBsl2DEd5yVU5XB5GVYENCH1llTNr0mSJFVePsNmxrOX 0xnOivxpUuorCWnsivXCyapsJo1hshh23RXQHn4ahNpitB6jsjMHbU+epa+c97PUJimqEh7b o8ZKl2vCExXK9vIU8BQuTi5uqLWEv7McNV7ddnjH6eK7rUu6IntgpLRr9vN4xZWdJ3Nu9Ei1 i9+mLdcOxQf753R6/t6VFaMbed4cVLbJNG47vjuxfe6vtvLSWbWPzvRhOb7SNnWRYo1SkktR hQUTLKf6BzOmLwcsAwAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/BNwzVdV9hjNmph_1v6BdPWpPp0k>
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: Thu, 08 Nov 2018 08:31:10 -0000

Also probably worth noting that if you have more thank one set of 
triples in a single SenML Pack, you can link them together using the 
time field.


Cheers,
Ari

On 08/11/2018 0.38, Michael Koster wrote:
> 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 
> <mailto: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
>