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

Michael Koster <michaeljohnkoster@gmail.com> Fri, 09 November 2018 14:46 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 DBA9912870E for <core@ietfa.amsl.com>; Fri, 9 Nov 2018 06:46:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] 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 mNmyfcw1IJB6 for <core@ietfa.amsl.com>; Fri, 9 Nov 2018 06:46:27 -0800 (PST)
Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) (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 282E1130DC6 for <core@ietf.org>; Fri, 9 Nov 2018 06:46:27 -0800 (PST)
Received: by mail-ot1-x330.google.com with SMTP id w25so1052330otm.13 for <core@ietf.org>; Fri, 09 Nov 2018 06:46:27 -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=9sNIbcLqHqm0I7PcZBV9awPTFgndZFv97ZUl2ec98KI=; b=h9J3zpSuOTpdkW+0gJ6484IPn7zC8wPd9nUwMddulMbecZ6i4equxrLrY+An1YQWUr Gag4xvi45eDqcyyuqKkMwgGShP9pNeYWnwsfEhW2EC5nEc9Axffy3PqmqsfDdr89dHFQ H4+bWny10QQHZbG2fGpN4CXnSo7WuaUExJdKvIeE0+Tz5L+KBPJ3zMqZMCUwf8ZVbNSs behRDA8awRuVim9GXG/Vsu6ISQKMMdPYxWG09B1UCbKY/Z7kpB5omZbPSeYCAntiJydx njKC74lkkCK7BgldWBV/bmrB4RQAjA1s0kUuuYsfCJDN8wpq96dbz9CXebFUTP7aBjrj 6IRA==
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=9sNIbcLqHqm0I7PcZBV9awPTFgndZFv97ZUl2ec98KI=; b=uZqug8n6y0eOZhNsDBvL/Soeq7sPBrdu7L92hx1EG6pD++d8MY10f4QzUFaNfkD5jL PWpBS5GV9eG7GUYTHL2roUIGpPy+SWs3UJTKKebnLqxdk8/5N1FTeNoPCsaT0/2bViS3 FfJ7JNqPAAXjf8kCcpB15TpxIhs8hxVDr3U9ADdO5dEgeKkUHuOxw3HOuK7EsMlg6ZGA ab1vd5Ev8dmS5QgjGCBYY/DQaKu6sQpuEpvPsce8RmvGzUgiNfkvBrZEb1QfOU6bejzg CNDjl5fhXH31+veEa9Llevwq2qNEj3aiyQkaZ60m4Ip55OSR0LyV0iSCmH8wMG2zkwqd gX8Q==
X-Gm-Message-State: AGRZ1gJ2C1el+fKDb0aXU7YupsAa/JAjKwhKCHGAVb0kuMuBCJuUOstZ IN+Vcw6tfzxDR7MFXZSAqy4=
X-Google-Smtp-Source: AJdET5fm4K80Tg0+1vy0sFZDPdqtq2Rq1kufCtNwN4xo70qzLBZioHaS6IQtgXb8JfOHi8jqmui34Q==
X-Received: by 2002:a9d:3f34:: with SMTP id m49mr5196135otc.23.1541774786478; Fri, 09 Nov 2018 06:46:26 -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 h53sm2862419otd.41.2018.11.09.06.46.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 06:46:24 -0800 (PST)
From: Michael Koster <michaeljohnkoster@gmail.com>
Message-Id: <6DAEE31A-A9D1-4F58-A9AE-DE9005809E36@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_99710D5F-F37F-4370-8685-BA6D074558E5"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Date: Fri, 9 Nov 2018 06:46:22 -0800
In-Reply-To: <HE1PR07MB4236DFCE18F76CB730476DEB85C60@HE1PR07MB4236.eurprd07.prod.outlook.com>
Cc: =?utf-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>, "fluffy@cisco.com" <fluffy@cisco.com>, Shantanoo Desai <des@biba.uni-bremen.de>, "core@ietf.org" <core@ietf.org>
To: =?utf-8?Q?Ari_Ker=C3=A4nen?= <ari.keranen@ericsson.com>
References: <3643AE5F1967B74C86F1D72E6EB108926367EB@EXCH1.biba.uni-bremen.de> <9315AE8F-0893-4587-8FF3-8EA43BF48D64@gmail.com> <20181108071803.GA4264@hephaistos.amsuess.com> <993797F0-02BB-46C0-94C2-FD62C311635D@gmail.com> <20181108183715.GB26534@hephaistos.amsuess.com> <HE1PR07MB4236DFCE18F76CB730476DEB85C60@HE1PR07MB4236.eurprd07.prod.outlook.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/94wmPfQWXsP3KwicuKy4l4E6rN4>
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: Fri, 09 Nov 2018 14:46:29 -0000

Oh, OK. 

I see the statement in 4.2
   Name:  Name of the sensor or parameter.  When appended to the Base
      Name field, this must result in a globally unique identifier for
      the resource.
I'm a little confused by what is a resource and what is a senml pack. I guess each senl pack needs to be bound to some globally unique resource?

How would I validate that?

Also, Is the example in the RFC wrong? This doesn't resolve to a globally unique identifier 

   [
     {"bn":"2001:db8::2/","bt":1.320078429e+09,
      "n":"temperature","u":"Cel","v":25.2},
     {"n":"humidity","u":"%RH","v":30},
     {"bn":"2001:db8::1/","n":"temperature","u":"Cel","v":12.3},
     {"n":"humidity","u":"%RH","v":67}
   ]

To summarize, it seems overly restrictive to the general use of senml to require that each senml pack be identified with a globally unique resource. (please correct me if I mis-stated this)

Best regards,

MIchael

> On Nov 9, 2018, at 3:58 AM, Ari Keränen <ari.keranen@ericsson.com> wrote:
> 
> Yes, one of the design principles was that SenML names need to be 
> globally unique so that they can be used e.g., as data base keys without 
> conflicts.
> 
> 
> Cheers,
> Ari