From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B0D7C3A59E for ; Wed, 4 Sep 2019 22:39:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3145520870 for ; Wed, 4 Sep 2019 22:39:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729834AbfIDWjG (ORCPT ); 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 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIKbDCCBOsw ggPToAMCAQICEDabxALowUBS+21KC0JI8fcwDQYJKoZIhvcNAQEFBQAwbzELMAkGA1UEBhMCU0Ux FDASBgNVBAoTC0FkZF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