Re: [apps-discuss] SenML

Jari Arkko <jari.arkko@piuha.net> Thu, 01 March 2012 13:45 UTC

Return-Path: <jari.arkko@piuha.net>
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 10DC621F8BF6 for <apps-discuss@ietfa.amsl.com>; Thu, 1 Mar 2012 05:45:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.241
X-Spam-Level:
X-Spam-Status: No, score=-102.241 tagged_above=-999 required=5 tests=[AWL=-0.242, BAYES_00=-2.599, J_CHICKENPOX_53=0.6, USER_IN_WHITELIST=-100]
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 oOtG6b3NBEc7 for <apps-discuss@ietfa.amsl.com>; Thu, 1 Mar 2012 05:45:50 -0800 (PST)
Received: from p130.piuha.net (p130.piuha.net [IPv6:2001:14b8:400::130]) by ietfa.amsl.com (Postfix) with ESMTP id 2468121F8BFC for <apps-discuss@ietf.org>; Thu, 1 Mar 2012 05:45:50 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by p130.piuha.net (Postfix) with ESMTP id 7E2572DA06; Thu, 1 Mar 2012 15:45:48 +0200 (EET)
X-Virus-Scanned: amavisd-new at piuha.net
Received: from p130.piuha.net ([127.0.0.1]) by localhost (p130.piuha.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ASqJaTSH7fWb; Thu, 1 Mar 2012 15:45:47 +0200 (EET)
Received: from [127.0.0.1] (p130.piuha.net [IPv6:2a00:1d50:2::130]) by p130.piuha.net (Postfix) with ESMTP id 46AE52CC3C; Thu, 1 Mar 2012 15:45:47 +0200 (EET)
Message-ID: <4F4F7D8B.6020604@piuha.net>
Date: Thu, 01 Mar 2012 15:45:47 +0200
From: Jari Arkko <jari.arkko@piuha.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120129 Thunderbird/10.0
MIME-Version: 1.0
To: Zach Shelby <zach@sensinode.com>
References: <4F464C15.6010006@piuha.net> <4F4F40D3.3040401@toshiba.co.jp> <2355688C-D382-48EB-A2B7-7251C57AD6F0@sensinode.com>
In-Reply-To: <2355688C-D382-48EB-A2B7-7251C57AD6F0@sensinode.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: Cullen Jennings <fluffy@cisco.com>, General discussion of application-layer protocols <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: Thu, 01 Mar 2012 13:45:51 -0000

I am in support of strict-only. IMO, you do it if you need to conserve space and code as much as possible. If you don't, pure JSON mode of SenML may actually be the right choice for you.

Jari

On 01.03.2012 15:32, Zach Shelby wrote:
> Hi Yusuke,
>
> Our main use case for the senml+exi representation is for strict mode. We believe the vast majority of implementations will be configured in this mode as it makes the most sense for M2M applications as you point out. The only reason we included a MAY for non-strict was to allow such use. However if as you point out that might cause interoperability problems, I would be in favor of making strict mode a MUST.
>
> Thanks!
> Zach
>
> On Mar 1, 2012, at 11:26 AM, Yusuke DOI wrote:
>
>> Hi,
>>
>> I have a question on EXI use.
>>
>> Is it practical to allow both strict (SHOULD) and non-strict (MAY) ?
>>
>> In this case, some nodes may not have non-strict grammar. So, nonstrict-capable-and-extended-sender and strict-no-extension-receiver must make some agreement to make a communication in strict mode.
>>
>> IMHO, I like strict schema-informed (because it can reduce or eliminate dynamic memory allocation).
>>
>> Regards,
>>
>> Yusuke
>>
>>
>>
>> (2012/02/23 23:24), Jari Arkko wrote:
>>> Hello again,
>>>
>>> This is another draft that we'd like to get feedback on. It is yet another component that the authors have used in their work around small and smart devices. The goal is to define a base data format that sensors and other Internet of Things devices can easily use, preferably without having to define entirely new schemes and different structures just to measure a slightly different thing.
>>>
>>> http://tools.ietf.org/html/draft-jennings-senml-08
>>>
>>> The abstract says:
>>>
>>> This specification defines media types for representing simple sensor
>>> measurements and device parameters in the Sensor Markup Language
>>> (SenML). Representations are defined in JavaScript Object Notation
>>> (JSON), eXtensible Markup Language (XML) and Efficient XML
>>> Interchange (EXI), which share the common SenML data model. A simple
>>> sensor, such as a temperature sensor, could use this media type in
>>> protocols such as HTTP or CoAP to transport the measurements of the
>>> sensor or to be configured.
>>>
>>> Comments appreciated. Necessary? Correctly defined? Improvement suggestions?
>>>
>>> Jari
>>>
>>> _______________________________________________
>>> apps-discuss mailing list
>>> apps-discuss@ietf.org
>>> https://www.ietf.org/mailman/listinfo/apps-discuss
>> _______________________________________________
>> apps-discuss mailing list
>> apps-discuss@ietf.org
>> https://www.ietf.org/mailman/listinfo/apps-discuss