summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorManish Mandlik <mmandlik@google.com>2021-11-20 07:29:36 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-11-22 14:25:04 -0800
commit415ae7733ab317b47b32ffcdeaf00d4d29ec2c0d (patch)
tree50eff5daba93c0f39c9d8cf61e2243718c1d3199 /doc
parentb312fa0c9f120af415048a4994a8f6115a0f8a4a (diff)
downloadbluez-415ae7733ab317b47b32ffcdeaf00d4d29ec2c0d.tar.gz
doc: Introduce the Adv Monitor Device Found/Lost events
This patch introduces two new MGMT events MGMT_EV_ADV_MONITOR_DEVICE_FOUND and MGMT_EV_ADV_MONITOR_DEVICE_LOST to indicate that the controller has started/stopped tracking a particular device matching one of the already added Advertisement Monitor. If the controller offloading support is not available, MGMT_EV_ADV_MONITOR_DEVICE_FOUND event is also used to report all advertisements to perform software based filtering whenever we are not active scanning. Reviewed-by: Miao-chen Chou <mcchou@google.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/mgmt-api.txt60
1 files changed, 60 insertions, 0 deletions
diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
index b7a152c14..1ab513eb1 100644
--- a/doc/mgmt-api.txt
+++ b/doc/mgmt-api.txt
@@ -4911,3 +4911,63 @@ 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 Found Event
+========================================
+
+ Event code: 0x002f
+ Controller Index: <controller_id>
+ Event Parameters: Monitor_Handle (2 Octets)
+ Address (6 Octets)
+ Address_Type (1 Octet)
+ RSSI (1 Octet)
+ Flags (4 Octets)
+ AD_Data_Length (2 Octets)
+ AD_Data (0-65535 Octets)
+
+ This event indicates that the controller has started tracking a device
+ matching an Advertisement Monitor with handle Monitor_Handle.
+
+ Monitor_Handle 0 indicates that we are not active scanning and this
+ is a subsequent advertisement report for already matched Advertisement
+ Monitor or the controller offloading support is not available so need
+ to report all advertisements for software based filtering.
+
+ The address of the device being tracked will be shared in Address and
+ Address_Type.
+
+ Possible values for the Address_Type parameter:
+ 0 Reserved (not in use)
+ 1 LE Public
+ 2 LE Random
+
+ For the RSSI field a value of 127 indicates that the RSSI is
+ not available. That can happen with Bluetooth 1.1 and earlier
+ controllers or with bad radio conditions.
+
+ This event will be sent to all management sockets.
+
+
+Advertisement Monitor Device Lost Event
+=======================================
+
+ Event code: 0x0030
+ Controller Index: <controller_id>
+ Event Parameters: Monitor_Handle (2 Octets)
+ Address (6 Octets)
+ Address_Type (1 Octet)
+
+ This event indicates that the controller has stopped tracking a device
+ that was being tracked by an Advertisement Monitor with the 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 Reserved (not in use)
+ 1 LE Public
+ 2 LE Random
+
+ This event will be sent to all management sockets.