Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1111763ybe; Wed, 4 Sep 2019 12:48:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxg/PQ1GQ4vtMdyKNuaR6YOTmXtXCjOMO3oUjqAIQ/XbgMj4rjYbqNopikmoWSPR+n0SN7T X-Received: by 2002:a62:f80a:: with SMTP id d10mr9660764pfh.98.1567626523291; Wed, 04 Sep 2019 12:48:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567626523; cv=none; d=google.com; s=arc-20160816; b=DbIAMzugNu5upurMOGelwAK93bUD32v3uNNyBVVygd0o3CBiodZpELfToU99feygJX E0A3GpHx2hHMQK15vYFIhzaR1yLwq/ePkZzzhzHOL2ERP7Mj0qpLwwY0N76DNieSdVkz ZtHQYCxvuHTZATeLlkeY2mPxVyA0HiT6nBW6Cmlp6cirFkIaRSiAX14BTGONFGl2u83k Ee9ZrSw2GOjKc6pVp5MvynuRP8t+sx2dD0sjM18TQQksteXC4tQbQvCQfYFeqOFFS6ja R+hCTOIqCFSLUfA2j6kpO0HqFd2k8co6E19oC0LxWaQjEgEL69wnS1WzXvr6n+X8e4px zUsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:to:from:date :dkim-signature; bh=73RAgDI06S2z4waitXKG+YdGLcK+Sgfb8+gbBum1B4c=; b=VAIyGtC5DgCRQKLkYIT1jt3hNkUvs//6Z7/vQ4kv0V4pI7Rxty7QfA815QMd/5H4TK U1t7nyq+xEym3FeZL+hdc6M2gj6jnW55NMJQ6FsYFnG6V/pVxM9StChoruPsh35Qqcm2 DYl3Vd5v+/XEVABewBMTQ8aTm9oWL5JQDwwrmtb/O1YA32n4hwFrhMs91sEb3lqeCmz1 jLTbsCEyMd0wmnRhD0mzCyvMYMECFnZfUItJcV6f6IyB5Jj1mYEWalA4NPyRuS/Z67Jh cKg8h7UiMdniunPqJ2SeUMvr/NVoUyoqmE3zGrOSXU2mrc0zCZ9IZ86/2ODlrVwLENr1 z40Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=G8bi5DgT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si9494612pgq.527.2019.09.04.12.48.17; Wed, 04 Sep 2019 12:48:43 -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; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=G8bi5DgT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727562AbfIDTsO (ORCPT + 99 others); Wed, 4 Sep 2019 15:48:14 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46770 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727156AbfIDTsO (ORCPT ); Wed, 4 Sep 2019 15:48:14 -0400 Received: by mail-lj1-f196.google.com with SMTP id e17so9829401ljf.13 for ; Wed, 04 Sep 2019 12:48:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=73RAgDI06S2z4waitXKG+YdGLcK+Sgfb8+gbBum1B4c=; b=G8bi5DgTCOW0vc5zG+014H/7z74lebXDvUlyZcxA8TCQ8QinyY/ETAKyzg4qtkW4xh DDVKlQUVM47gYnlOhEn1mnCCku25zeUGCVVyspveb7+M/LJh9o+HZPnCcByFURW5UJ0B vLUaKcDozH3TMqT1Xd6IJu9tYULE/3KMVvfBJYH1xmHrmD2ZlIidymtN0Q/ZLeBYrl5i jtlfrZ6bpwVyvwtRMv8Mr46CWUzgopSy39en58fsZaXjJYrQc6XN9nlPsUK9nmL2b7lp JfK069kZspUvyC8CpubFQL8H4R3tgOaOFI6Td/hGWAKl/ZVZXj7I9cT7TApdiYuOwEPi B0WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=73RAgDI06S2z4waitXKG+YdGLcK+Sgfb8+gbBum1B4c=; b=qeMWFBL7CD0GKW+5gbZj+Cy3vcnKBLW1/UJ6xVCNjrL4dUm76PlXyH/MlBF7cKkt9a 6yM7rvv0co9Ybf4vWnhyJQzHQaFVUZqilug9+OKSC/hjhttAuGfqd4Q+/RuTMDXkFnou 8oOcV39EcM800/LncdSl1Yi5pI6ohFCEaeLPjYM9Y9M2eKDwk8YraSm2NFW5xVm3Kq1S Pp2Vor8QVB2n6IKzFeOCXOhMEb7dAn7MPHVZvnS4ILaOaVlayfqSXND6EMl/7p8TTULj E1ZxctZteQ9hp9Cp0QJdN3oes6dE8aARVsdyCcWgu68XwFIstPSQfI1yjp14at8A0mMl 1HDw== X-Gm-Message-State: APjAAAV8csQTPHMRmOlH8BSHifkoCdXaOB1PKJKKwqy4S3X5G2P9JQAp PDIqliO8yZGXVal5ObCabetuDqV94Zo= X-Received: by 2002:a2e:a303:: with SMTP id l3mr2664274lje.124.1567626491637; Wed, 04 Sep 2019 12:48:11 -0700 (PDT) Received: from kynes (apn-95-41-66-58.dynamic.gprs.plus.pl. [95.41.66.58]) by smtp.gmail.com with ESMTPSA id b9sm3520991ljd.52.2019.09.04.12.48.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Sep 2019 12:48:10 -0700 (PDT) Date: Wed, 4 Sep 2019 21:48:08 +0200 From: =?utf-8?Q?Micha=C5=82?= Lowas-Rzechonek To: linux-bluetooth@vger.kernel.org, Brian Gix , Inga Stotland , Szymon =?utf-8?Q?S=C5=82upik?= Subject: Re: mesh: org.bluez.mesh.Element.MessageReceived method does not provide destination address Message-ID: <20190904194808.nu2cy4vp6uh64m4z@kynes> Mail-Followup-To: linux-bluetooth@vger.kernel.org, Brian Gix , Inga Stotland , Szymon =?utf-8?Q?S=C5=82upik?= References: <20190830184301.zd3zaqrw7mv6r252@kynes> <20190904192525.2dqyihabxmigb54m@kynes> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190904192525.2dqyihabxmigb54m@kynes> User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 09/04, Michał 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 > - 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 Another one about virtual addresses: 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. In static configurations, this allows to decrease the number (and size) of packets sent by sensor nodes. 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. In CANOpen, format is determined by the address - in mesh, it could very well be a virtual label. [1] https://www.can-cia.org/can-knowledge/canopen/pdo-protocol/ -- Michał Lowas-Rzechonek Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND