From: "Stotland, Inga" <inga.stotland@intel.com>
To: "michal.lowas-rzechonek@silvair.com"
<michal.lowas-rzechonek@silvair.com>,
"linux-bluetooth@vger.kernel.org"
<linux-bluetooth@vger.kernel.org>,
"Gix, Brian" <brian.gix@intel.com>,
"simon@silvair.com" <simon@silvair.com>
Subject: Re: mesh: org.bluez.mesh.Element.MessageReceived method does not provide destination address
Date: Wed, 4 Sep 2019 22:39:04 +0000 [thread overview]
Message-ID: <7de19e37e75bf2759b654c3a98e00b5b0e37aa0e.camel@intel.com> (raw)
In-Reply-To: <d79b733068e30cfa1cef106e44b7f9ee7c31526d.camel@intel.com>
[-- Attachment #1: Type: text/plain, Size: 3058 bytes --]
Hi,
On Wed, 2019-09-04 at 13:26 -0700, Gix, Brian wrote:
> On Wed, 2019-09-04 at 21:48 +0200, Michał Lowas-Rzechonek wrote:
> > 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
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
> >
> > 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/
> >
>
> 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:
>
> 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.
>
> 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".
>
> 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.
>
My feeling is that the API should be geared towards common case
scenarios (i.e., defined models and such).
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.
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3265 bytes --]
next prev parent reply other threads:[~2019-09-04 22:39 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-30 18:43 mesh: org.bluez.mesh.Element.MessageReceived method does not provide destination address Michał Lowas-Rzechonek
2019-09-04 19:25 ` Michał Lowas-Rzechonek
2019-09-04 19:48 ` Michał Lowas-Rzechonek
2019-09-04 20:26 ` Gix, Brian
2019-09-04 22:39 ` Stotland, Inga [this message]
2019-09-05 7:29 ` michal.lowas-rzechonek
2019-09-05 7:34 ` michal.lowas-rzechonek
2019-09-18 8:52 ` Michał Lowas-Rzechonek
2019-09-18 12:36 ` Michał Lowas-Rzechonek
2019-09-25 19:02 ` Stotland, Inga
2019-09-26 15:18 ` Gix, Brian
2019-09-26 20:41 ` Stotland, Inga
2019-09-26 23:48 ` Gix, Brian
2019-09-27 2:54 ` Stotland, Inga
2019-09-27 8:52 ` michal.lowas-rzechonek
2019-09-27 15:01 ` Gix, Brian
2019-09-27 15:50 ` Gix, Brian
2019-09-27 17:25 ` Stotland, Inga
2019-09-27 19:25 ` Gix, Brian
2019-09-30 7:18 ` michal.lowas-rzechonek
2019-09-30 16:34 ` Stotland, Inga
2019-09-30 17:57 ` Gix, Brian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7de19e37e75bf2759b654c3a98e00b5b0e37aa0e.camel@intel.com \
--to=inga.stotland@intel.com \
--cc=brian.gix@intel.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=michal.lowas-rzechonek@silvair.com \
--cc=simon@silvair.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).