Re: [apps-discuss] SenML

Zach Shelby <zach@sensinode.com> Wed, 14 March 2012 09:56 UTC

Return-Path: <zach@sensinode.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7742F21F8721 for <apps-discuss@ietfa.amsl.com>; Wed, 14 Mar 2012 02:56:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QUBSsins95tC for <apps-discuss@ietfa.amsl.com>; Wed, 14 Mar 2012 02:56:45 -0700 (PDT)
Received: from auth-smtp.nebula.fi (auth-smtp.nebula.fi [217.30.180.105]) by ietfa.amsl.com (Postfix) with ESMTP id 1EB9F21F8703 for <apps-discuss@ietf.org>; Wed, 14 Mar 2012 02:56:44 -0700 (PDT)
Received: from [192.168.1.101] (87-93-15-88.bb.dnainternet.fi [87.93.15.88]) (authenticated bits=0) by auth-smtp.nebula.fi (8.13.8/8.13.4) with ESMTP id q2E9ucaG021356; Wed, 14 Mar 2012 11:56:40 +0200
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="us-ascii"
From: Zach Shelby <zach@sensinode.com>
In-Reply-To: <1CE2FB42E90B614C98BC172FAB12D4C002D5098E63@DEMCHP99E55MSX.ww902.siemens.net>
Date: Wed, 14 Mar 2012 11:56:35 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <FF07AE50-126B-473A-AB64-AEA3EDE10CFF@sensinode.com>
References: <1CE2FB42E90B614C98BC172FAB12D4C002D3FCFF8A@DEMCHP99E55MSX.ww902.siemens.net> <52B10DF8-11D1-44FE-8A8B-184BB0AE12F2@sensinode.com> <1CE2FB42E90B614C98BC172FAB12D4C002D50989C3@DEMCHP99E55MSX.ww902.siemens.net> <201203091742.q29HglnN008664@toshiba.co.jp> <1CE2FB42E90B614C98BC172FAB12D4C002D5098E63@DEMCHP99E55MSX.ww902.siemens.net>
To: "Kaebisch, Sebastian" <sebastian.kaebisch.ext@siemens.com>
X-Mailer: Apple Mail (2.1084)
Cc: "apps-discuss@ietf.org" <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] SenML
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Mar 2012 09:56:46 -0000

On Mar 14, 2012, at 11:50 AM, Kaebisch, Sebastian wrote:

>>> 
>>> 3) use restriction definitions of strings (define maxLength or list all
>> possible values as enumeration). Especially using enumerations results in
>> a smaller message size and avoids string comparison.
>> 
>> Enumeration is good idea but I think strict enumeration allows no
>> addition in future without breaking backword compatibility. I recommend
>> some 'dummy entries' to make room (and show the limit to keep the same
>> bitwidth clearly) for future.
>> 
> 
> If there a need of flexibility, then we should do that. In my understanding, the unit symbol table in 10.1 will be standardized and will be fixed then. 

The unit representation part of the SenML draft is the last thing that is an open issue to fix actually. The value will need to be open-ended as even in the current form this would need to be an IANA registry and thus new values would be added over time. However, we are looking at a model where external unit references can be made instead of trying to standardize a list of units in the IETF. For now at least we should leave this as a string. Let's look at it again when the unit model has been updated in the draft.

Zach

-- 
Zach Shelby, Chief Nerd, Sensinode Ltd.
http://www.sensinode.com
http://zachshelby.org  - My blog "On the Internet of Things"
http://6lowpan.net - My book "6LoWPAN: The Wireless Embedded Internet"
Mobile: +358 40 7796297