Re: [core] Proposed new SenML Units
Jaime Jiménez <jaime@iki.fi> Mon, 16 November 2020 09:19 UTC
Return-Path: <jaime@iki.fi>
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 B512D3A1648 for <core@ietfa.amsl.com>; Mon, 16 Nov 2020 01:19:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.12
X-Spam-Level:
X-Spam-Status: No, score=-1.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_NEUTRAL=0.779, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=messagingengine.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 GMuLcliHx9d3 for <core@ietfa.amsl.com>; Mon, 16 Nov 2020 01:19:30 -0800 (PST)
Received: from wforward3-smtp.messagingengine.com (wforward3-smtp.messagingengine.com [64.147.123.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C56B43A0E50 for <core@ietf.org>; Mon, 16 Nov 2020 01:19:30 -0800 (PST)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailforward.west.internal (Postfix) with ESMTP id 57465949; Mon, 16 Nov 2020 04:19:29 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 16 Nov 2020 04:19:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=Mut2ITKo/uYO4Nbt6fN9dFQkCTzgOjF/ney5P63aU M4=; b=jsFEUtEGDJcrUyxkqLjkjgBzdziVCCVL9jwg1hu41+F0JqTBhltTUv99T 5lRnwHXu/ADVnHpc7dk8jFotNiNQKZXhujO9gM4eGwLCD5i1EMnqOg2nq377tlRO 8DQpA01Q2t7sOkqI8zUxbjhKJfNTzWesSMOiK7LD7GoHMuFOTAzpHEDSngQeJVsL UO1iSLls1rLv7p1bDgHHIq9C66BMLPRi2OfxceOuUVMZoHNz87RQ+aIDCpshZq15 2ctM3+8Nju6Q4mzuT9H4LkM7fmBArEvnyRbBOAQ5CTPSpuvVYQ3EEwafAE2ocK03 YrrhaKLCgu3p/IEIqx9axXZ000qwg==
X-ME-Sender: <xms:IESyX2M21v8xQzz5cHFL9BU1wLdI1DfcMl9r_ePXoFI-MtTH_ZoY8w> <xme:IESyX082TKi5RPVpGTMZ5j3oeeq7HMcjCcoPEvhuWf3FfOTRzolt1zFB_bAhXrXDe ekknADQQzA75AUjwA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudefuddgtdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtugfgjgesthekredttddtjeenucfhrhhomheplfgrihhm vgculfhimhornhgviicuoehjrghimhgvsehikhhirdhfiheqnecuggftrfgrthhtvghrnh epiedujeeitddvleevjeefueehteeftdevteelieeiveehvdevkefgkedvfefguddunecu ffhomhgrihhnpehirghnrgdrohhrghdpuhhsrghgvgdrmhhgnecukfhppeekvddrvddtfe drvddvjedruddvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepjhgrihhmvgesihhkihdrfhhi
X-ME-Proxy: <xmx:IESyX9Rxcqu95p8WYCqeu0AksmqXO_lNVOdHTtSXs1Pq7a0B7scSWg> <xmx:IESyX2tbUt4TThgkE9jBAANmpIaKFn7CNH9liW3NMHDIJ8bA6tIXqA> <xmx:IESyX-fSGvQxhidPaYOAPRzrjnXiOBXV5XX3et7hQjn5gDV6heneXA> <xmx:IESyXwpEvWExJ9N-yanfwzq7JhH6UtEH0SnR_eqO6UModW7pET9NqzS0XnI>
Received: from EMB-918HFH01 (82-203-227-12.bb.dnainternet.fi [82.203.227.12]) by mail.messagingengine.com (Postfix) with ESMTPA id 9C0F63280063; Mon, 16 Nov 2020 04:19:27 -0500 (EST)
Date: Mon, 16 Nov 2020 11:19:26 +0200
From: Jaime Jiménez <jaime@iki.fi>
To: Carsten Bormann <cabo@tzi.org>
Cc: CoRE WG <core@ietf.org>
Message-ID: <20201116091926.deyitohypascri6q@EMB-918HFH01>
References: <20201109144145.nzp2oqiam7bdlqed@EMB-918HFH01> <C164824A-C22E-4132-A240-C52D4D4B465B@tzi.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <C164824A-C22E-4132-A240-C52D4D4B465B@tzi.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/fZtBTvHJrIM7gybZqlYFP0Qc490>
Subject: Re: [core] Proposed new SenML Units
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: Mon, 16 Nov 2020 09:19:33 -0000
Hi Carsten, On 09.11.2020 16:12, Carsten Bormann wrote: >Hi Jaime, > >> On 2020-11-09, at 15:41, Jaime Jiménez <jaime@iki.fi> wrote: >> >> >> Dear CoRE and SeNML experts, >> >> the IPSO WG has some new objects being registered that contain units >> that are not currently present in the IANA SenML registry ( >> https://www.iana.org/assignments/senml/senml.xhtml ) nor derived >> from it. We would like to discuss the addition of the units below: >> >> +===========+================================+=======+ >> | Symbol | Description | Type | >> +===========+================================+=======+ >> | NTU | Nephelometric Turbidity Unit | Float | >> +-----------+--------------------------------+-------+ >> | mg/l | milligrams per liter | Float | >> +-----------+--------------------------------+-------+ > > >> NTU is the most common way to measure turbidity. > >This one is interesting. There are several Turbidity units, which are not in a simple linear relationship, so I would like to get some input from domain experts which ones we should have (and which are more of a historical interest). > AFAIK NTU was chosen by the experts of the uCIFI Alliance, who work on the "Smart Water" domain field. Also Michael Koster commented on this thread on the NTU usage. >> mg/l is used to measure >> concentration, possibly g/l should also be added as shown in the table >> below. > >We already have >kg/m3 kilogram per cubic meter (mass density, mass concentration) float [RFC8798] > >One mg/l is 1/1000 kg/m3, so that would go into table 2. That sounds very good to me. > >> On the secondary units table we would have the units below. >> +=========+======================+======+==========+======+ >> |Secondary| Description |SenML | Scale |Offset| | Unit | |Unit | | | >> +=========+======================+======+==========+======+ >> | ppb | parts per billion | / | 1e-9 | 0 | >> +---------+----------------------+------+----------+------+ >> | ppt | parts per trillion | / | 1e-12 | 0 | >> +---------+----------------------+------+----------+------+ >> | KB | Kilobytes | B | 1000 | 0 | >> +---------+----------------------+------+----------+------+ >> | VAh | Volt Ampere x Hour | kVAh | 1/1000 | 0 | >> +---------+----------------------+------+----------+------+ >> | g/l | grams per liter | mg/l | 1000 | 0 | >> +---------+----------------------+------+----------+------+ > >VAh should be on the SI base unit, i.e.: > > VAh volt-ampere-hour VAs 3600 0 > OK >g/l is a synonym for kg/m3 (i.e. scale=1); that is not strictly needed but could be added if the g/l people can’t adjust to kg/m3. > If it's not much effort, having g/l would help. >> As to the KB addition, the reason is that many are still confused as to >> whether KB is 1000 or 1024 bytes. > >KB = Kelvin-Byte, pretty much nonsensical. >kB is 1000 B, which is not very widely used. >KiB is 1024 B, which we already have. Yes, sorry not KB but kB. > >> If we are taking KB as 1000 bytes, > >KB is like kph, it’s not properly defined and should not be added. > I agree kB is not used in practice, though when people use KiB they often call it kB still. Perhaps that's off-topic when it comes to senml. >> then having an entry in the table would be a good clarification to avoid >> ambiguity. >> >> ppt could be confused with parts per thousand by some, so I would like >> to clarify in this email that "parts per thousand" would be the "/1000" >> or "permille" entry in the secondary units registry. Please confirm this >> as well. > >Yes. >So, after adding ppb and ppt, we’ll have >/ /100 /1000 ppm ppb ppt >1 0.01 1e-3 1e-6 1e-9 1e-12 > OK! >> I believe the scale of ppb and ppt is correct, please double check just >> in case. > >Yes. OK! > >Grüße, Carsten > >
- [core] Proposed new SenML Units Jaime Jiménez
- Re: [core] Proposed new SenML Units Carsten Bormann
- Re: [core] Proposed new SenML Units Michael Koster
- Re: [core] Proposed new SenML Units Jaime Jiménez
- Re: [core] Proposed new SenML Units Carsten Bormann
- Re: [core] Proposed new SenML Units Jaime Jiménez
- Re: [core] Proposed new SenML Units Carsten Bormann
- Re: [core] Proposed new SenML Units Jaime Jiménez
- Re: [core] Proposed new SenML Units Jaime Jiménez
- Re: [core] Proposed new SenML Units Carsten Bormann
- Re: [core] Proposed new SenML Units Jaime Jiménez
- Re: [core] Proposed new SenML Units Jaime Jiménez