Re: [core] New units for SenML

John Mattsson <john.mattsson@ericsson.com> Wed, 06 March 2019 17:47 UTC

Return-Path: <john.mattsson@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 5F08913122C for <core@ietfa.amsl.com>; Wed, 6 Mar 2019 09:47:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.301
X-Spam-Level:
X-Spam-Status: No, score=-4.301 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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=a3Vxz4bH; dkim=pass (1024-bit key) header.d=ericsson.com header.b=dKgahpLR
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 JuejmSnwph41 for <core@ietfa.amsl.com>; Wed, 6 Mar 2019 09:47:17 -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 191CE131227 for <core@ietf.org>; Wed, 6 Mar 2019 09:47:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/relaxed; q=dns/txt; i=@ericsson.com; t=1551894435; x=1554486435; 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=XGSGPa7uKHFuZ1Zb5gHnS/Drr1FLfkOpjcRAeeH1W3o=; b=a3Vxz4bHZ92GZlBceyVUb7lgh7PZm9dUcu0odAosjHqxZQV76qkT3jJzl81F8hc3 Wszz/DOhXLv07biz8E6R5iMjaiXHT5p7LbQ/OfqdYOu9eS9W5DoPgQLHQJbjPMEc dusDye1nRBWpbOmhvWnwjOLqH7dEr8IxxCqYOEQHV3c=;
X-AuditID: c1b4fb2d-d9dff7000000062f-83-5c8007a39aef
Received: from ESESSMB505.ericsson.se (Unknown_Domain [153.88.183.123]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id 4A.C6.01583.3A7008C5; Wed, 6 Mar 2019 18:47:15 +0100 (CET)
Received: from ESESBMB501.ericsson.se (153.88.183.168) by ESESSMB505.ericsson.se (153.88.183.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 6 Mar 2019 18:47:14 +0100
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB501.ericsson.se (153.88.183.168) 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; Wed, 6 Mar 2019 18:47:14 +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=XGSGPa7uKHFuZ1Zb5gHnS/Drr1FLfkOpjcRAeeH1W3o=; b=dKgahpLRRWyiYj0g5k1i8tPcGkvDJGCKvVqQG8JMzzxAMW6ed1oblYAdKWcurZ7wZQZJNUrP8bjshn3vVGOzFwZOm6Ai43OVhI/R49TVBO6788U1Wt/ELwc38HcCV2DQ9r7s7V97VL9tufdU4sOckgVfib7ohrunb8P6IZby2sg=
Received: from HE1PR07MB4169.eurprd07.prod.outlook.com (20.176.166.22) by HE1PR07MB3083.eurprd07.prod.outlook.com (10.170.244.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.11; Wed, 6 Mar 2019 17:47:12 +0000
Received: from HE1PR07MB4169.eurprd07.prod.outlook.com ([fe80::ace2:9258:766:85a8]) by HE1PR07MB4169.eurprd07.prod.outlook.com ([fe80::ace2:9258:766:85a8%3]) with mapi id 15.20.1686.016; Wed, 6 Mar 2019 17:47:12 +0000
From: John Mattsson <john.mattsson@ericsson.com>
To: Carsten Bormann <cabo@tzi.org>, core <core@ietf.org>
Thread-Topic: [core] New units for SenML
Thread-Index: AQHU0AEvsXxLQOdm3kaFJvoEF2CPr6X++gGA
Date: Wed, 06 Mar 2019 17:47:12 +0000
Message-ID: <1D6E287E-2FD8-4CF3-9370-7700179D690B@ericsson.com>
References: <F5A90374-C1F5-48F8-8CCB-FB2E4ACC9B2E@tzi.org>
In-Reply-To: <F5A90374-C1F5-48F8-8CCB-FB2E4ACC9B2E@tzi.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.16.1.190220
authentication-results: spf=none (sender IP is ) smtp.mailfrom=john.mattsson@ericsson.com;
x-originating-ip: [192.176.1.84]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: cdb49507-6873-4d87-3ab9-08d6a25bc353
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:HE1PR07MB3083;
x-ms-traffictypediagnostic: HE1PR07MB3083:
x-ms-exchange-purlcount: 3
x-microsoft-exchange-diagnostics: 1;HE1PR07MB3083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4R2B5GvyzVGghpGPko68TRrFQgm9Nev3fj9YcNAA7yhpHdgWNpUuR9vaH4IBOXcsyiOIAJSQsb/GYkl2LmRd8EVZSD/n4p0iXjEzeW8ZfhETzUSRuMbg7AyZbrCXWeQ7ukAreEcRgCl6bwQSjsjk38V+CfTbKKpTxBwP8q9XwE6xJk+GxvWScC9VNso31MKNW8LBPS0FrtHdqHcK1s6RT4EzWlwXZXZWRlaBtiDe3m02KKGEOggAm0Q2vkHBwzUmv3+XacoP1LysmjGmB
x-microsoft-antispam-prvs: <HE1PR07MB308303DAE2A0A5B3559E2CEE89730@HE1PR07MB3083.eurprd07.prod.outlook.com>
x-forefront-prvs: 0968D37274
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(136003)(346002)(376002)(366004)(39860400002)(13464003)(189003)(199004)(14454004)(478600001)(2906002)(53546011)(8936002)(36756003)(11346002)(6506007)(76176011)(229853002)(106356001)(102836004)(86362001)(33656002)(44832011)(486006)(26005)(446003)(186003)(5660300002)(966005)(7736002)(2616005)(476003)(3846002)(105586002)(6116002)(99286004)(305945005)(14444005)(97736004)(25786009)(81166006)(81156014)(8676002)(256004)(58126008)(6306002)(71200400001)(68736007)(82746002)(83716004)(71190400001)(316002)(66066001)(6436002)(6246003)(6486002)(53936002)(110136005)(6512007); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3083; H:HE1PR07MB4169.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-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: MLFxnNHqnxEjnPU/VGMhzrZa39eHq9JQ/fcY13jJxbWfOQo9P95wTpcDfxNqdRwJBpf6vkFpWU02aXvBG4GAkpUOdIT1nZHnzCRW6vb1kFGRtDzZMXut2pHkyOcsPPMF53GxM3tf94XdvnEbNuPA0MIFNSQmzWQN3VkupKmCILGKxXabKOj8PYP9CnbgvNdKZwBIqeqlTHkPR29kDx6k25dRmotjjktcWx95GRQL+QMIXvkgHzLAcxxDiH7KE/KxR2+Z7SiDwNn0zBZRNlj9afOozdYg94d35hxlbr3az5E2gQYBpWS7nOmRNkVLka5hKHMiw+c/yiFa0xDS1f8uBI2rBEeF8ept2Wv5nlINWp1s0+3C/RDfYZiMfOO64Hx+Z32nCLZj2JeR1KJuH1hPo+8Zdq5CRoQWqmPHsL93bB4=
Content-Type: text/plain; charset="utf-8"
Content-ID: <EE89A2E1C209AD468CC6BB6F71DBB7A0@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: cdb49507-6873-4d87-3ab9-08d6a25bc353
X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Mar 2019 17:47:12.1268 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3083
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA02SfUhTYRTGee/dddfR6t1N82CFtoJS0mkZaEpaEMzAiKiQmrihF13qlF0n WUTDHOVXLB1+helSIvtaiJqJZq6pqaUlYSSGEyU/ogjJlmbatmvQf79znufhfTi8NMmUUL60 WpPNajWqdKmHSFAV//RSUL1Qrwh5bSHDbaZPVPjzrxYyhpA3NCwR8vI76hPEWVFUMpuuzmG1 skNKUap56kjWsv+FIsci0qNi/0LkSQMOg+7SVqoQiWgG2xB8vtpDugQGLyJ4VaLjhXoCmvJM hGsQYCMJXbfNBK+UEdBoahXywwQCfcFP5Mp74BCo6dB7uNgLh8P4YLubN+PdMOjgPV54Dxja VoQ874PvtW8IFwvwLhiaGXN7xDgaFsY/OJl2PnAQWsrcdk8cCcbOWrcd4S3gGHjoZhL7wNg0 vweMoaFjmOTZG+amVikXe2MZNN+wC/hsAhgMFRTv8Yf5Ir4y4O0wUluEeI6Dwm77+v4jAnPN cZ4DYebF8nrWF8zDP9x3AGxgYNhWuh5Ig6p7k5SrP+Bt8Cgvgvf8osDeMYaMSFb9X+9qp43E AWBpX1/LYWjiG8nzDjAVTQqr3VeRQH/VtKAOUfeRN8dyXEbKvv3BrFadxHGZmmANm92EnJ+k u/l3UBt68OWwFWEaSTeII1auKBhKlcPlZlgR0KTUSxxN6RWMOFmVe5HVZiZqdeksZ0VbaYHU R7zCSBQMTlFls2ksm8Vq/6kE7emrRzs7Yx3SvuVR+TGJzdofQ86ffBaX2Cut7rcPnF6ajU3w ORBacHNQe+t8krJd12qJfx+1sNZjKwuw+FVOnTlnPFUZ3N+kzkncWJ7fIomP2tQXOJffWDHL jLx8XLfYpcy9O/zkqE5Z/3bt3fSofq9Q1uy32h55rfNy7x+L6fpESVixVMClqkIDSS2n+gvs WvmIIAMAAA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/y5_ljPRjGSYa-TEqZkua46jwom4>
Subject: Re: [core] New units for SenML
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, 06 Mar 2019 17:47:19 -0000

Hi,

I do not think that Cel and K are the only exceptions in the current SenML IANA registry. Formally, I think the following are also the same units (but with different uses cases):

1 Gy = 1 Sv
1 Bq = 1 Hz = 1/s

Similar, the new units would formally be: 

1 B = 8 bit
1 VA = 1 var = 1 W 
1 J/m = 1 N

So I think the new draft just continues the practices established for the earlier registrations, the important thing for SenML is to be used by other SDO and industries rather that following some strict mathematical principle for registration. I definitely think CORE should go ahead and register these if they are requested. 

The draft seems very well-written, my only comment is that the draft could maybe mention that 1 B = 8 bit. 

(The text in bullet 8 of Section 12.1 of RFC 8428 says that pH should not be used... is that a typo? pH is in Table 6 of the same RFC)

Cheers,
John

-----Original Message-----
From: core <core-bounces@ietf.org> on behalf of Carsten Bormann <cabo@tzi.org>
Date: Friday, 1 March 2019 at 08:34
To: core <core@ietf.org>
Subject: [core] New units for SenML

SenML (RFC 8428) has been a bit of a success story for this WG, at least (but not only) with respect to pickup by other SDO.  While we are filling gaps in the specification itself (fetch/(i)patch, data-ct), another item receives attention: SenML’s unit registry, which can be useful for other SDOs even beyond the direct use of the SenML data format.

In this context, a few units popped up that are somewhat in style with the Celsius exception that RFC 8428 provides.  Instead of just having them registered silently, maybe it is good to have some attention for them here in the WG.  To that end, based on input from OMA (but all mistakes are mine), I have written a draft:

Name:		draft-bormann-senml-more-units
Revision:	00
Title:		Additional Units for SenML
Document date:	2019-02-27
Group:		Individual Submission
Pages:		4
Status:         https://datatracker.ietf.org/doc/draft-bormann-senml-more-units/
Htmlized:       https://tools.ietf.org/html/draft-bormann-senml-more-units-00

Abstract:
  The Sensor Measurement Lists (SenML) media type supports the
  indication of units for a quantity represented.  This short document
  registers a number of additional unit names in the IANA registry for
  Units in SenML.

Discussing physical quantities and their units may be not be the CoRE WG’s center of gravity, but if you care about the integrity of SenML, please have a look into this short draft.  The IANA policies allow us to go ahead with registration before this is an RFC (even before any working group adoption!), which would fit well with OMA timelines, so some feedback from the WG now would help getting that right.

Sorry for forgetting the WG name in the draft name and going directly to the name senml — news of a new SenML WG are greatly exaggerated :-)

Grüße, Carsten

_______________________________________________
core mailing list
core@ietf.org
https://www.ietf.org/mailman/listinfo/core