[core] Proposed new SenML Units

Jaime Jiménez <jaime@iki.fi> Mon, 09 November 2020 14:41 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 51B733A0DDF for <core@ietfa.amsl.com>; Mon, 9 Nov 2020 06:41:52 -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 nGVmO-rTK5ay for <core@ietfa.amsl.com>; Mon, 9 Nov 2020 06:41:50 -0800 (PST)
Received: from forward4-smtp.messagingengine.com (forward4-smtp.messagingengine.com [66.111.4.238]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7F2F23A0DA4 for <core@ietf.org>; Mon, 9 Nov 2020 06:41:49 -0800 (PST)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailforward.nyi.internal (Postfix) with ESMTP id E7F0C1943CA4; Mon, 9 Nov 2020 09:41:48 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 09 Nov 2020 09:41:48 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=ERE2Z6Fo6IRt7wclh34SxX8Hp73BJ PG48OfH6FFzsi0=; b=gr9B5R8FQqrwdyO7u3ciVD8lJYMZcxVD4FKcam8YwaFMj +B2xRG9HVl8PLyLZrx/IMACQ8Ne+tgEAssd5aqsv+4gsQYx0aj7JM0ATL+4IdXOC z8tiPvZOg7wr1xpip11XdM9o1fnHfAYKG/JtJa4hj938Leuf2zE93pdzKjnZSfXN 1AVRyc6hjJimPAk1DLd7tBphyWB+JJziVbmeK8Kr9uDb+erF7R7Ss1qv+2k0TMMd LlZO9T8Rfat1VtxC9NKhHLLlY/21mYjMce8MFbxOYj/pdAt5s6j3xZrrv4DwO2PF NzbPYCkZFeUXzUqrSO/PsuI0j3mUwJ4f8gEVcpikA==
X-ME-Sender: <xms:K1WpX7226ylrQMt_Ly527oi5ud9gnp6kzsEoNdPb2d17lyvtwQ7E6Q> <xme:K1WpX6G4vEOt0YypQ7U_H2CCfxAxQA78BpMECcAapHUUKPwQ17qPVQ_Tp9UZ580qE OwMggfDgBJzikjTPA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudduhedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggusehttdertddttdejnecuhfhrohhmpeflrghimhgvucfl ihhmrohnvgiiuceojhgrihhmvgesihhkihdrfhhiqeenucggtffrrghtthgvrhhnpefgke duuddvteetveefffevgefhjedvueethfejjedtvdehteekhfdtfeffhfeifeenucffohhm rghinhepihgrnhgrrdhorhhgpdhtuhhrsghiughithihrdhmghenucfkphepkedvrddvtd efrddvvdejrdduvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehjrghimhgvsehikhhirdhfih
X-ME-Proxy: <xmx:K1WpX76aBy9HABxVMJEoav8d9VA9QNMWyttROAV61oEkkHdT6iXKsA> <xmx:K1WpXw0DT4suyHWTdSnnACHlhhTDZvYqZpOxhWNZZ2h_OFF1ZVVaAw> <xmx:K1WpX-G-oZ_5wcbHdu1Q8WxXqQLwvxQXXASbEo_EyC7Cgr8lCKcKXQ> <xmx:LFWpX5z-CBClc_J4DdotQwkUZ-sfyAWwmCHsb0fzcF6Dz6_rO5b9fQ>
Received: from EMB-918HFH01 (82-203-227-12.bb.dnainternet.fi [82.203.227.12]) by mail.messagingengine.com (Postfix) with ESMTPA id 49E33328005A; Mon, 9 Nov 2020 09:41:47 -0500 (EST)
Date: Mon, 09 Nov 2020 16:41:45 +0200
From: Jaime Jiménez <jaime@iki.fi>
To: CoRE WG <core@ietf.org>
Message-ID: <20201109144145.nzp2oqiam7bdlqed@EMB-918HFH01>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/hI1xoqTKe50i7CMX7LaBiOUIJVM>
Subject: [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, 09 Nov 2020 14:41:52 -0000

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. mg/l is used to measure
concentration, possibly g/l should also be added as shown in the table
below. 

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 |
+---------+----------------------+------+----------+------+

As to the KB addition, the reason is that many are still confused as to
whether KB is 1000 or 1024 bytes. If we are taking KB as 1000 bytes,
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. 

I believe the scale of ppb and ppt is correct, please double check just
in case. 

Thanks!
-- Jaime