Skip to contentSkip to conversation

doc/advertising-api: Add Flags property

RFC In review Luiz Augusto von Dentz 2 participants 3 messages May 7, 2018 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

RFC 1/1 doc/advertising-api: Add Flags property

From: Luiz Augusto von Dentz <[email protected]>

This adds Flags which the application can use in case it want to set it own flags.

Note: This would allow for example an application to advertise as discoverable even if the adapter is not discoverable which may be required by dual-mode as it may not require BR/EDR to be discoverable.

---
 doc/advertising-api.txt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
doc/advertising-api.txt +15 -0
index eef98ad91..234f9c2f2 100644
@@ -78,6 +78,21 @@ Properties	string Type
 				<Transport Discovery> <Organization Flags...>
 				0x26                   0x01         0x01...
 
+		byte Flags [Experimental]
+
+			Advertising Flags to include. When present this will
+			override existing flags such as Discoverable.
+
+			Note: This property shall not be set when Type is set
+			to broadcast.
+
+			Possible value:
+				bit 0 - LE Limited Discoverable Mode
+				bit 1 - LE General Discoverable Mode
+				bit 2 - BR/EDR Not Supported
+				bit 3 - Simultaneous LE and BR/EDR (Controller)
+				bit 4 - Simultaneous LE and BR/EDR (Host)
+
 		array{string} Includes
 
 			List of features to be included in the advertising
Signature · 1 line
2.14.3
#1 lore raw

Hi Luiz,

Quoted 28 lines · On Monday, 7 May 2018 10:24:09 CEST Luiz Augusto von Dentz wrote:

From: Luiz Augusto von Dentz <[email protected]>

This adds Flags which the application can use in case it want to set it own flags.

Note: This would allow for example an application to advertise as discoverable even if the adapter is not discoverable which may be required by dual-mode as it may not require BR/EDR to be discoverable.

---
 doc/advertising-api.txt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
doc/advertising-api.txt +8 -0
index eef98ad91..234f9c2f2 100644
@@ -78,6 +78,21 @@ Properties	string Type
 				<Transport Discovery> <Organization Flags...>
 				0x26                   0x01         0x01...
 
+		byte Flags [Experimental]
+
+			Advertising Flags to include. When present this will
+			override existing flags such as Discoverable.
+
+			Note: This property shall not be set when Type is set
+			to broadcast.
+

doc/advertising-api.txt Properties string Type · line 98

Quoted 10 lines
doc/advertising-api.txt +7 -0
+			Possible value:
+				bit 0 - LE Limited Discoverable Mode
+				bit 1 - LE General Discoverable Mode
+				bit 2 - BR/EDR Not Supported
+				bit 3 - Simultaneous LE and BR/EDR (Controller)
+				bit 4 - Simultaneous LE and BR/EDR (Host)
+
 		array{string} Includes
 
 			List of features to be included in the advertising

I'd make Flags array{byte} (just like Flags in Device1) to keep it future proof.

Signature · 2 lines
pozdrawiam
Szymon Janc
author maintainer
#2 lore raw

Hi Szymon,

Quoted 15 lines · Szymon Janc

Hi Luiz,

Quoted 12 lines · On Monday, 7 May 2018 10:24:09 CEST Luiz Augusto von Dentz wrote:

From: Luiz Augusto von Dentz <[email protected]>

This adds Flags which the application can use in case it want to set it own flags.

Note: This would allow for example an application to advertise as discoverable even if the adapter is not discoverable which may be required by dual-mode as it may not require BR/EDR to be discoverable.

---
 doc/advertising-api.txt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
Quoted 6 lines

doc/advertising-api.txt Properties string Type · line 78

Quoted 6 lines
doc/advertising-api.txt +0 -0
index eef98ad91..234f9c2f2 100644
@@ -78,6 +78,21 @@ Properties string Type
                              <Transport Discovery> <Organization

Flags...>

Quoted 1 line

doc/advertising-api.txt Properties string Type · line 79

Quoted 1 line
doc/advertising-api.txt +0 -0
                              0x26                   0x01

0x01...

Quoted 4 lines

doc/advertising-api.txt Properties string Type

Quoted 4 lines
doc/advertising-api.txt +3 -0
+             byte Flags [Experimental]
+
+                     Advertising Flags to include. When present this

will

Quoted 3 lines

doc/advertising-api.txt Properties string Type

Quoted 3 lines
doc/advertising-api.txt +3 -0
+                     override existing flags such as Discoverable.
+
+                     Note: This property shall not be set when Type is

set

Quoted 7 lines

doc/advertising-api.txt Properties string Type

Quoted 7 lines
doc/advertising-api.txt +7 -0
+                     to broadcast.
+
+                     Possible value:
+                             bit 0 - LE Limited Discoverable Mode
+                             bit 1 - LE General Discoverable Mode
+                             bit 2 - BR/EDR Not Supported
+                             bit 3 - Simultaneous LE and BR/EDR

(Controller)

Quoted 8 lines

doc/advertising-api.txt Properties string Type · line 98

Quoted 5 lines
doc/advertising-api.txt +2 -0
+                             bit 4 - Simultaneous LE and BR/EDR (Host)
+
              array{string} Includes
 
                      List of features to be included in the advertising

I'd make Flags array{byte} (just like Flags in Device1) to keep it future proof.

Yep, good catch.

Quoted 3 lines

--
pozdrawiam
Szymon Janc

Signature · 1 line
Luiz Augusto von Dentz