Re: [apps-discuss] SenML

"Kaebisch, Sebastian" <sebastian.kaebisch.ext@siemens.com> Thu, 15 March 2012 18:01 UTC

Return-Path: <sebastian.kaebisch.ext@siemens.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 0469E21F8787 for <apps-discuss@ietfa.amsl.com>; Thu, 15 Mar 2012 11:01:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.805
X-Spam-Level:
X-Spam-Status: No, score=-8.805 tagged_above=-999 required=5 tests=[AWL=-0.722, BAYES_00=-2.599, FF_IHOPE_YOU_SINK=2.166, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-8]
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 sk4oVlSJxpuu for <apps-discuss@ietfa.amsl.com>; Thu, 15 Mar 2012 11:01:40 -0700 (PDT)
Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by ietfa.amsl.com (Postfix) with ESMTP id B13EA21F8770 for <apps-discuss@ietf.org>; Thu, 15 Mar 2012 11:01:37 -0700 (PDT)
Received: from mail3.siemens.de (localhost [127.0.0.1]) by david.siemens.de (8.13.6/8.13.6) with ESMTP id q2FI1Z1L019718; Thu, 15 Mar 2012 19:01:35 +0100
Received: from DEMCHP99ET3MSX.ww902.siemens.net (demchp99et3msx.ww902.siemens.net [139.25.131.243]) by mail3.siemens.de (8.13.6/8.13.6) with ESMTP id q2FI1YBC009881 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 15 Mar 2012 19:01:34 +0100
Received: from DEMCHP99E55MSX.ww902.siemens.net ([169.254.2.75]) by DEMCHP99ET3MSX.ww902.siemens.net ([139.25.131.243]) with mapi; Thu, 15 Mar 2012 19:01:33 +0100
From: "Kaebisch, Sebastian" <sebastian.kaebisch.ext@siemens.com>
To: DOI Yusuke <yusuke.doi@toshiba.co.jp>
Date: Thu, 15 Mar 2012 19:01:32 +0100
Thread-Topic: [apps-discuss] SenML
Thread-Index: Ac0B52L9xTzd/tS3QmCvOLd86f+BRQAAHj3Q
Message-ID: <1CE2FB42E90B614C98BC172FAB12D4C002D5099178@DEMCHP99E55MSX.ww902.siemens.net>
References: <1CE2FB42E90B614C98BC172FAB12D4C002D50989C3@DEMCHP99E55MSX.ww902.siemens.net> <201203091742.q29HglnN008664@toshiba.co.jp> <1CE2FB42E90B614C98BC172FAB12D4C002D5098E63@DEMCHP99E55MSX.ww902.siemens.net> <201203141335.q2EDZoJ2026006@toshiba.co.jp>
In-Reply-To: <201203141335.q2EDZoJ2026006@toshiba.co.jp>
Accept-Language: de-DE
Content-Language: de-DE
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: de-DE
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
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: Thu, 15 Mar 2012 18:01:41 -0000

Dear Yusuke,

> > That's right, however, EXI has to convert the float value into the
> mantissa and exponent representation (encoding) and vice versa (decoding)
> respectively. This processing overhead can be avoided if we working
> already on data model level only with the mantissa and exponent
> representation.
> 
> I cannot get your point. Do you have specific API or something else in
> mind?
> 
> I think both is possible and some library for constrianed devices may
> implement something like the latter.
> 
> 1) encode_exi_float(EXI_STREAM *out_stream, double f);
> 2) encode_exi_exp(EXI_STREAM *out_stream, int mantissa, int exponent);

You are absolutely right, both implementations are possible. My intention was only to point to the processing overhead in "encode_exi_float" (bringing float to mantissa-exponent representation) which can be avoided if we are only working with the mantissa-exponent representation all the time and state this in the senML XSD as well. I have only the very restricted microcontrollers in mind.

Best regards
Sebastian