Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp87131ybe; Wed, 4 Sep 2019 15:39:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeUmN2DTwE2htSLRhUVsmI4snGTtf4xdx83ikTWfyd0bu996gMX6vSNGbYCvQoNdbcsPXs X-Received: by 2002:a62:cd45:: with SMTP id o66mr82162pfg.112.1567636776872; Wed, 04 Sep 2019 15:39:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567636776; cv=none; d=google.com; s=arc-20160816; b=od/xnTLCiTtuz61ZkU+6C9kwXhoanDd8UIldJln6bQh5Ir9mirFw5bcRbjsFbMPb5j pZPpx1huNuzmLpP9yHxAsGWdkg9Rv2mZ5v0taz+FUZnjE5h2g32ZAuSCIqZxarG1IFhc 8ZwOqd5i651gzLT5W/e4kbBjR/meUth0+u1uXkstgY70yUhYXUWmtayU4tOd9fSjHeav xnd8sNw0CQPMxJOG+Mlx4yMZFOWDtczhqVFyOIdjmTuEFh1knZbMYPWGyEqRgSt8DM4V 7WDosRwfJ15YLcCs6k/y6mx6vJcdzKG/qtbT28acjm4Xfp1Tv/4E2FVyQDCbEnwseTYt nYCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:to:from; bh=DqEzcd040vLNY3vn3iVuOL/mGRydkwFMvDbk+ZpZPMQ=; b=D1+qRxF5wMPJwJFaLDi0WwmJk1/dQChN+v0FQKwIfAZnLbMlTcKEIzE68VpIqIvLcV ShjQjw04AFEH/FQpfPuopU6jb1qH6Ak+CUHasy1Ti3JTlMYQXF12N/UHTF3jWNtKnUiY aWMXsXs09fSMGxvFVXynPpWKhpkKFu9ktS3jQDn74FQhLtQTdJtewZRnpJcOH6oMOppO GUmEzVA9fl5oy3jK8XqNLiDB81Npgr5Y0bdRUxAh1PmduPaq9enXo6yfEzQc7LG3i1pb mQnOrBgWlr6fu8ayxUsRwI/E/cDBiacMlrzgDt/GnsVppJsoVSRGcx6N5VsMuiYrSG7E Pxuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si202953plt.227.2019.09.04.15.39.07; Wed, 04 Sep 2019 15:39:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729773AbfIDWjG (ORCPT + 99 others); Wed, 4 Sep 2019 18:39:06 -0400 Received: from mga01.intel.com ([192.55.52.88]:45899 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729366AbfIDWjG (ORCPT ); Wed, 4 Sep 2019 18:39:06 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2019 15:39:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,468,1559545200"; d="p7s'?scan'208";a="173730816" Received: from orsmsx106.amr.corp.intel.com ([10.22.225.133]) by orsmga007.jf.intel.com with ESMTP; 04 Sep 2019 15:39:05 -0700 Received: from orsmsx123.amr.corp.intel.com (10.22.240.116) by ORSMSX106.amr.corp.intel.com (10.22.225.133) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 4 Sep 2019 15:39:05 -0700 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.221]) by ORSMSX123.amr.corp.intel.com ([169.254.1.98]) with mapi id 14.03.0439.000; Wed, 4 Sep 2019 15:39:04 -0700 From: "Stotland, Inga" To: "michal.lowas-rzechonek@silvair.com" , "linux-bluetooth@vger.kernel.org" , "Gix, Brian" , "simon@silvair.com" Subject: Re: mesh: org.bluez.mesh.Element.MessageReceived method does not provide destination address Thread-Topic: mesh: org.bluez.mesh.Element.MessageReceived method does not provide destination address Thread-Index: AQHVX2LEtJoH6czNyE6Xu9DaIe4hzqccY5SAgAAGWACAAAqXAIAAJSqA Date: Wed, 4 Sep 2019 22:39:04 +0000 Message-ID: <7de19e37e75bf2759b654c3a98e00b5b0e37aa0e.camel@intel.com> References: <20190830184301.zd3zaqrw7mv6r252@kynes> <20190904192525.2dqyihabxmigb54m@kynes> <20190904194808.nu2cy4vp6uh64m4z@kynes> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.251.134.197] Content-Type: multipart/signed; micalg=sha-1; protocol="application/x-pkcs7-signature"; boundary="=-tBC67iygmQMSu2aMi9ww" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --=-tBC67iygmQMSu2aMi9ww Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Wed, 2019-09-04 at 13:26 -0700, Gix, Brian wrote: > On Wed, 2019-09-04 at 21:48 +0200, Micha=C5=82 Lowas-Rzechonek wrote: > > On 09/04, Micha=C5=82 Lowas-Rzechonek wrote: > > > The two examples I provided are *not* violating the spec in any > > > way. > > > For the record: > > > - a combined server/client sitting on element 1 that receives > > > onoff > > > messages and, depending on the destination address, sends a > > > different > > > onoff messages to a "regular" onoff server sitting on element > > > 0, > > > allowing efficient control over switching scenes involving > > > large > > > number of nodes This sounds like something a vendor model mechanism should handle: the "mapping" should be understood on both ends: client and server. > > > - a model that acts as a IPv6 gateway and directly maps virtual > > > addresses to IPv6 addresses of nodes living on the other side > > > of the > > > gateway > >=20 > > Another one about virtual addresses: > >=20 > > In CANOpen, there is a concept of a "Protocol Data Object" [1]. > > Basically, the idea is to pack many pieces of information into a > > preconfigured format (down to single bits, because CAN frames are > > even > > shorter than mesh ones) - this is known as "PDO Mapping Parameters" > > - > > then send such payloads to a well-known group address. > >=20 > > In static configurations, this allows to decrease the number (and > > size) > > of packets sent by sensor nodes. > >=20 > > Since PDO payloads are *not* self-describing (unlike mesh sensor > > messages), the receiving party must be aware of the mapping in > > order to > > parse the data. > >=20 > > In CANOpen, format is determined by the address - in mesh, it could > > very > > well be a virtual label. > >=20 > > [1] https://www.can-cia.org/can-knowledge/canopen/pdo-protocol/ > >=20 >=20 > I think that this is an interesting use of Virtual Addresses, and in > addition to this, Mesh Virtual Addresses > have been suggested as a way of addressing IPv6 addressing as > well... However: >=20 > 1. There is already a way something like this could be used > already: A model could be created that gets > subscribed to the Virtual Addresses that require handling by the > node. >=20 > 2. If such a system proves to be widely requested, daemon support > could be added (perhaps under a different > DBus interface) for either or both of IPv6 and "CANOpen". >=20 > In any case the ability to create simple mesh Apps with minimal > complexity remains intact, and as an added > bonus, the Open Source community (not to mention the Bluetooth Mesh > Working Group and larger SIG) can weigh in > on the preferred methodologies. >=20 My feeling is that the API should be geared towards common case scenarios (i.e., defined models and such).=20 If there is a behavior that absolutely cannot be addressed with the current API (and use of vendor models), then it has to be changed/augmented. As such, I still don't see a compelling reason to do so. --=-tBC67iygmQMSu2aMi9ww Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGg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