Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3418879pxb; Wed, 13 Oct 2021 05:45:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfPVzC9cm93JJroE4aV+S/cDkDxzqG6wlFzlKZNWbXlx7j6d3c68qFyajahtJrLKwmHU3V X-Received: by 2002:aa7:c783:: with SMTP id n3mr9231238eds.122.1634129136386; Wed, 13 Oct 2021 05:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634129136; cv=none; d=google.com; s=arc-20160816; b=WwwCKSkZrHNHzRRszW+GRTpaIPRIhlzJH2S/ufyUnaoIU1EC55ERyOrD/hWu4It0oo Q0AHcumhFdg8uKyR3UC13uxj6AZ1yd1d3KU/eb9vQf5gNK7CQZaagNeeNYEIq0jAVhMW JN9IL39qjcC2pHGYxadu4+b1caHRUzPHPNZXUeqi5x+PoNpH6GwnIrk5YRI39fgizxLT hyeFziYP+kvVIM8At6uCi/e+MTLxbLxyMlDlGmXnz/+tOLRbPATX01zDL8bMksXpBC3r 7Bbahe3EB12/lbX/dUbQSebow3t83pCjzV6vGn4rLxAxm9ooEdi6V+7OVkk9eNXVmj2U hIwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=hSSFo//MURqtYxEZ8dRqQdSYUUGjXXrfvc2E2Lj7oc4=; b=LUsmbnAHwBLEmmpkzCY2d5HN0JcvpFbkAg3x7wYiA1WdrSas67fKi+G5gxP0kw7faj eI/UlpV7jFlmGdIdLmuNAWdc7VeYK4I+Q/YL8B311QeyKtzG3ffd0lVBb1RsxMRc+M8x HhhHOollUcNBr04hgGctuDGTD+RkhRaKPBYPTr/Rj4PuPPn92nax7TJW5PWTLC+msOnV 83w3YcfPeSn06XemqM1xftgu6q6aLrXoSeypvnAxLpSrNr0mZhzggG9LgG23e6pyW5RB hWXrq2CuCb2LdrunXvc2V8zJJEi5uhm/nfn/PKhhRiXtQtwkhep+4q4JOWdET992MQGa 7oSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=FwFcHy6s; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si18840435edf.98.2021.10.13.05.45.09; Wed, 13 Oct 2021 05:45:36 -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; dkim=pass header.i=@google.com header.s=20210112 header.b=FwFcHy6s; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234469AbhJMMpI (ORCPT + 99 others); Wed, 13 Oct 2021 08:45:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234817AbhJMMpD (ORCPT ); Wed, 13 Oct 2021 08:45:03 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 462DBC061765 for ; Wed, 13 Oct 2021 05:43:00 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id t7-20020a258387000000b005b6d7220c79so2908890ybk.16 for ; Wed, 13 Oct 2021 05:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=hSSFo//MURqtYxEZ8dRqQdSYUUGjXXrfvc2E2Lj7oc4=; b=FwFcHy6sslzGrxK14SL9welSPBLMCMGPHoQGXpwFpbwLw9cIkebkfmBC2ltupkVaPL fq1f06vMUB+mh6xPR0Jv0mBf1ThAS3nHbrxa0GvMGfQCIGue+w02DJVhAUWYLEo8biWQ Z+z7GB0RcpUYm/BFWpunv5oFQt9x5+RnDcXqbSuj2Lsh1nXqRoYWoZ995rrTkEp0+4UU nvMZIkvvOuxPDVoMx1zuKfAiSyJdbBInnq+l+cJcrBidU37FfcxM/HnD447SOuCiVvxJ yDPtFR2rOQDgaUWMhS+mK9FzgizdcuWrp6ImCtwkQDoHiuDcBTtHKOieT9NOFun+R6+H sZaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=hSSFo//MURqtYxEZ8dRqQdSYUUGjXXrfvc2E2Lj7oc4=; b=TytqCT35QsbcvlmfO+qym7K2TSm1eDROKByF92URpEvvRQPd6p4j/5k803lDBa0oHn 6f2Qes5Qqyb51Y7SAa2eSUTNG2sI8oE6PN/ApgcYiqQw4LmozAQhyO8sTWqGtJDp3ga5 nCo3HiH32eMyBInLAxYMw690RJO18qPRMHgMvLebbsTFb7HXLiVHsrXmrKsT3smaizY3 rW3zMkU2OAtVDV3e26/WJH54L1WbzoDj7dq7aEmjy/w0J+pZ0yu2MaV2/ziQ2+INabtV idWReqcv3HJBUkDSp1iRk4ySmO0oexyw0vrO00b4H94booIJA3rGNhO2eyyjo0Y0cFSf jyYw== X-Gm-Message-State: AOAM530ET9P/DPMOG2+nwrBQ7MFfrPbtLt8ZB/pyiOAq/+50fSVgPIFY 0NMP6vwk+oZbYL9x4RmArE9YA2LS6G4NwQ== X-Received: from mmandlik.mtv.corp.google.com ([2620:15c:202:201:f8a0:57c1:fc2b:3837]) (user=mmandlik job=sendgmr) by 2002:a25:5e06:: with SMTP id s6mr36266938ybb.175.1634128979527; Wed, 13 Oct 2021 05:42:59 -0700 (PDT) Date: Wed, 13 Oct 2021 05:42:08 -0700 In-Reply-To: <20211013124210.1454876-1-mmandlik@google.com> Message-Id: <20211013053935.BlueZ.v2.1.I7f6bdb9282c1e12ffc6c662674678f2b1cb69182@changeid> Mime-Version: 1.0 References: <20211013124210.1454876-1-mmandlik@google.com> X-Mailer: git-send-email 2.33.0.882.g93a45727a2-goog Subject: [BlueZ PATCH v2 1/3] doc: Introduce the Adv Monitor Device Lost event From: Manish Mandlik To: marcel@holtmann.org, luiz.dentz@gmail.com Cc: chromeos-bluetooth-upstreaming@chromium.org, linux-bluetooth@vger.kernel.org, Manish Mandlik Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Add a flag 'Device Tracked' to the existing 'Device Found' event to indicate that the controller has started tracking the device matching an Advertisement Monitor with handle 'Monitor_Handle'. Add a new event 'Adv Monitor Device Lost' to indicate that the controller has stopped tracking that particular device. --- Changes in v2: - Instead of creating a new 'Device Tracking' event, add a flag 'Device Tracked' in the existing 'Device Found' event and add a new 'Device Lost' event to indicate that the controller has stopped tracking that device. doc/mgmt-api.txt | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt index 5355fedb0..0fd884ed0 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, Updated Device Found event +and Added Advertisement Monitor Device Lost event. Example @@ -4247,6 +4248,7 @@ Device Found Event Address_Type (1 Octet) RSSI (1 Octet) Flags (4 Octets) + Monitor_Handle (2 Octets) EIR_Data_Length (2 Octets) EIR_Data (0-65535 Octets) @@ -4263,6 +4265,7 @@ Device Found Event 1 Legacy Pairing 2 Not Connectable 3 Reserved (not in use) + 4 Device Tracked For the RSSI field a value of 127 indicates that the RSSI is not available. That can happen with Bluetooth 1.1 and earlier @@ -4285,6 +4288,10 @@ Device Found Event accept any connections. This can be indicated by Low Energy devices that are in broadcaster role. + The Device Tracked flag indicates that the controller has started + monitoring a particular device matching the Advertisement Monitor + with handle Monitor_Handle. + Discovering Event ================= @@ -4910,3 +4917,26 @@ 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 Lost Event +======================================= + + Event code: 0x002f + Controller Index: + Event Parameters: Monitor_Handle (2 Octets) + Address (6 Octets) + Address_Type (1 Octet) + + This event indicates that the controller has stopped tracking the + device that was being tracked by monitor with handle Monitor_Handle. + + The address of the device being tracked will be shared in Address and + Address_Type. + + Possible values for the Address_Type parameter: + 0 BR/EDR + 1 LE Public + 2 LE Random + + This event will be sent to all management sockets. -- 2.33.0.882.g93a45727a2-goog