Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4676369pxb; Tue, 28 Sep 2021 01:11:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFhxJq8yG56LsPwA3vbDcJOscIcBz+qS+fuYgTw2kj8Kr6vHvy5K1hFStRyDjjAzgGKzTr X-Received: by 2002:a05:6402:19ba:: with SMTP id o26mr6034017edz.1.1632816673779; Tue, 28 Sep 2021 01:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632816673; cv=none; d=google.com; s=arc-20160816; b=CFPc3K3hSE8HjHjWdoun02tWfU1VUKABcpCdKljYk5gcTWhzwQP7N77y2kgXurSEWh Yy1FPqXwsX22WkvnFqPnXfsTbujJAcOw4n39uh14/3+x7KQNn6N2P+quWpITHonVzLwN xpD5PZuYBua9lP7EaufskxdBuGN72v+E5eTDhKpe9KtXs8Im17CwBrVZ1nxEe9+VDewC I80CCe+yUbDOfHXj2fCp7DnIimMwYZQQYVyNdNkw19h/g0szxY6z4e+kOUP/lpaFP7DM FgcP5E1w7tLIw9lkn6Xo1qdqZ5CpxHwxkOcqNQ3o3Feij93DdLhxhuR0xXPMobVHtyll lLbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=hTeUcujAs6B+hNorPWsHbVVr6nKk6N4e4ArLbZudIBU=; b=WLuAImEiis7E0Grc2umIztaET7vG/j/ZQrr4Xu3Ci/vgSK4d5aKfrOZjpMXnxllBy1 Ub7cF3Y4RHXQDul9+3Z3VxWVpWlV5pvAQHFOHzxJBMRt+qAPBEISCPGXWF4c60nldUOZ 1i8ViuYaN+C4KeIuZ8577K9jK7sWtUjLXAmubiLDBLzTVysJ4wgYK1fqEwboCSwuTE89 IpCXfqr/bo5R5qMVqLQi6xz6oo7TcolctqWieNUfhhshK5NrJuvX5i4EAtuNxHRcmQdz ezZSZlLl0fbvh/0tq9smCxXM7mxetyEp9JDltFPAGowQqkWWOQ3GpvqQH/RGVKIJI+TA sLfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id he43si11738573ejc.718.2021.09.28.01.10.48; Tue, 28 Sep 2021 01:11:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231342AbhI1ILg convert rfc822-to-8bit (ORCPT + 99 others); Tue, 28 Sep 2021 04:11:36 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:42829 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239043AbhI1ILg (ORCPT ); Tue, 28 Sep 2021 04:11:36 -0400 Received: from smtpclient.apple (p5b3d2185.dip0.t-ipconnect.de [91.61.33.133]) by mail.holtmann.org (Postfix) with ESMTPSA id 09A51CECD6; Tue, 28 Sep 2021 10:09:56 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [BlueZ PATCH v1 1/3] doc: Add Advertisement Monitor Device Tracking event From: Marcel Holtmann In-Reply-To: <20210927131456.BlueZ.v1.1.I7f6bdb9282c1e12ffc6c662674678f2b1cb69182@changeid> Date: Tue, 28 Sep 2021 10:09:55 +0200 Cc: Luiz Augusto von Dentz , linux-bluetooth , CrosBT Upstreaming , Miao-chen Chou , Yun-Hao Chung Content-Transfer-Encoding: 8BIT Message-Id: References: <20210927201657.593569-1-mmandlik@google.com> <20210927131456.BlueZ.v1.1.I7f6bdb9282c1e12ffc6c662674678f2b1cb69182@changeid> To: Manish Mandlik X-Mailer: Apple Mail (2.3654.120.0.1.13) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Manish, > This patch adds the Advertisement Monitor Device Traching event. This > event indicates that the controller has stated/stopped tracking a > particular device matching one of the already added Advertisement > Monitor. > > Reviewed-by: Miao-chen Chou > Reviewed-by: Yun-Hao Chung > --- > > doc/mgmt-api.txt | 27 ++++++++++++++++++++++++++- > 1 file changed, 26 insertions(+), 1 deletion(-) > > diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt > index 5355fedb0..06df3e914 100644 > --- a/doc/mgmt-api.txt > +++ b/doc/mgmt-api.txt > @@ -107,7 +107,8 @@ Configuration command, Default Runtime Configuration Changed event, Get > Device Flags command, Set Device Flags command, Device Flags Changed event, > Read Advertisement Monitor Features command, Add Advertisement Patterns > Monitor command, Remove Advertisement Monitor command, Advertisement Monitor > -Added event and Advertisement Monitor Removed event. > +Added event, Advertisement Monitor Removed event and Advertisement Monitor > +Device Tracking event. > > > Example > @@ -4910,3 +4911,27 @@ Controller Resume Event > Address_Type. Otherwise, Address and Address_Type will both be zero. > > This event will be sent to all management sockets. > + > + > +Advertisement Monitor Device Tracking Event > +=========================================== > + > + Event code: 0x002f > + Controller Index: > + Event Parameters: Monitor_Handle (2 octets) > + Monitor_State (1 octet) > + Address (6 octets) > + Address_Type (1 octet) > + > + This event indicates that the controller has started/stopped tracking > + a particular device matching the Advertisement Monitor with handle > + Monitor_Handle. > + > + Possible values for the Monitor_State parameter: > + 0 The controller has stopped tracking a device > + 1 The controller has started tracking a device > + > + The address of the device being tracked will be shared in Address and > + Address_Type. > + > + This event will be sent to all management sockets. I have to echo Luiz's comment here. How is this suppose to work. We now get a Device Found and Device Tracked event? Wouldn’t it be really better to have a “I am tracked” flag in the Device Found event? Regards Marcel