doc: Add management command for adding devices for passive scanning
Marcel Holtmann
maintainerPATCH 1/1 doc: Add management command for adding devices for passive scanning
--- doc/mgmt-api.txt | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+)
doc/mgmt-api.txt +62 -0
@@ -1866,6 +1866,68 @@ Get Clock Information Command Invalid Index +Add Device Command +================== + + Command Code: 0x0034 + Controller Index: <controller id> + Command Parameters: Address (6 Octets) + Address_Type (1 Octet) + Action (1 Octet) + Return Parameters: + + This command is used to add a device to the action list. The + action list allows scanning for devices and auto-connection + to known devices. + + Possible values for the Action parameter: + 0 Background scan for device + 1 Auto-connect device + + With the Action 0, when the device is found, a new Device Found + event will be send indicating this device is available. Devices + using direct advertising will be connected. + + With the Action 1, when the device is found, it will be connected + and if successful a Device Connected event will be send. + + This command can be used when the controller is not powered and + all settings will be programmed once powered. + + This command generates a Command Complete event on success or + a Command Status event on failure. + + Possible errors: Busy + Invalid Parameters + Invalid Index + + +Remove Device Command +===================== + + Command Code: 0x0035 + Controller Index: <controller id> + Command Parameters: Address (6 Octets) + Address_Type (1 Octet) + Return Parameters: + + This command is used to remove a device from the action list + previously added by using the Add Device command. + + When the Address parameter is 00:00:00:00:00:00, then all + previously added devices wil be removed. + + This command can be used when the controller is not powered and + all settings will be programmed once powered. + + This command generates a Command Complete event on success or + a Command Status event on failure. + + Possible errors: Busy + Invalid Parameters + Invalid Index + + Command Complete Event ======================
Signature · 1 line
1.9.3
Hi Marcel
Quoted 12 lines · Marcel Holtmann
--- doc/mgmt-api.txt | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+)doc/mgmt-api.txt +0
-0@@ -1866,6 +1866,68 @@ Get Clock Information Command Invalid Index
doc/mgmt-api.txt Get Clock Information Command · line 1878
Quoted 10 lines
doc/mgmt-api.txt +10
-0+Add Device Command +================== + + Command Code: 0x0034 + Controller Index: <controller id> + Command Parameters: Address (6 Octets) + Address_Type (1 Octet) + Action (1 Octet) + Return Parameters: +
Address and address type will be useful in the return parameters. For example, application wants to set auto connect to many devices. In that case daemon should be able to reply with success or failure for each of device.
For sure it will be useful in Android case.
Quoted 10 lines
doc/mgmt-api.txt +10
-0+ This command is used to add a device to the action list. The + action list allows scanning for devices and auto-connection + to known devices. + + Possible values for the Action parameter: + 0 Background scan for device + 1 Auto-connect device + + With the Action 0, when the device is found, a new Device Found + event will be send indicating this device is available. Devices
doc/mgmt-api.txt Get Clock Information Command · line 1898
Quoted 10 lines
doc/mgmt-api.txt +10
-0+ using direct advertising will be connected. + + With the Action 1, when the device is found, it will be connected + and if successful a Device Connected event will be send. + + This command can be used when the controller is not powered and + all settings will be programmed once powered. + + This command generates a Command Complete event on success or + a Command Status event on failure.
Command Complete on failure would be better, so daemon can get an idea for which device command failed.
Quoted 5 lines
doc/mgmt-api.txt +5
-0+ + Possible errors: Busy + Invalid Parameters + Invalid Index +
doc/mgmt-api.txt Get Clock Information Command · line 1913
Quoted 10 lines
doc/mgmt-api.txt +10
-0+ +Remove Device Command +===================== + + Command Code: 0x0035 + Controller Index: <controller id> + Command Parameters: Address (6 Octets) + Address_Type (1 Octet) + Return Parameters: +
I think we should have similar approach here as for above command. Meaning, use address and type in th return parameters.
doc/mgmt-api.txt Get Clock Information Command · line 1924
Quoted 11 lines
doc/mgmt-api.txt +11
-0+ This command is used to remove a device from the action list + previously added by using the Add Device command. + + When the Address parameter is 00:00:00:00:00:00, then all + previously added devices wil be removed. + + This command can be used when the controller is not powered and + all settings will be programmed once powered. + + This command generates a Command Complete event on success or + a Command Status event on failure.
Similar here.
Quoted 12 lines
doc/mgmt-api.txt +6
-1+ + Possible errors: Busy + Invalid Parameters + Invalid Index + + Command Complete Event ====================== --1.9.3
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
BR
Lukasz
Marcel Holtmann
maintainerHi Lukasz,
Quoted 12 lines
Quoted 12 lines
---
doc/mgmt-api.txt| 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++1 file changed, 62 insertions(+)doc/mgmt-api.txt +0
-0@@ -1866,6 +1866,68 @@ Get Clock Information Command Invalid Index
Quoted 15 lines
doc/mgmt-api.txt Get Clock Information Command · line 1878
Quoted 10 lines
doc/mgmt-api.txt +10
-0+Add Device Command +================== + + Command Code: 0x0034 + Controller Index: <controller id> + Command Parameters: Address (6 Octets) + Address_Type (1 Octet) + Action (1 Octet) + Return Parameters: +Address and address type will be useful in the return parameters. For example, application wants to set auto connect to many devices. In that case daemon should be able to reply with success or failure for each of device.
For sure it will be useful in Android case.
documentation has been updated and I already send v2 of my patch.
Regards
Marcel