A client needs to query whether the Bluetooth adapter support WBS, so we
v2 cover A client needs to query whether the Bluetooth adapter support WBS, so we
designed this new D-Bus API to provide a generic way to query the adapter's capabilities. Initially this will only cover WBS capability, but can be easily extended to support other capabilities.
Changes in v2:
- Return an array of strings instead of a dict
Changes in v1:
- Initial change
Archie Pusaka (1):
adapter - D-Bus API for querying the adapter's capabilities
doc/adapter-api.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Signature · 1 line
2.28.0.220.ged08abb693-goog
RFC PATCH v2 1/1 adapter - D-Bus API for querying the adapter's capabilities
From: Archie Pusaka <[email protected]>
Initially this is introduced to query whether WBS is supported by the adapter, the API is generic enough to be extended to support querying others in the future.
---
Changes in v2:
- Return an array of strings instead of a dict
Changes in v1:
- Initial change
doc/adapter-api.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+)
doc/adapter-api.txt +12 -0
@@ -204,6 +204,18 @@ Methods void StartDiscovery() org.bluez.Error.NotReady org.bluez.Error.Failed + array{string} GetCapabilities() + + This method returns a list of supported + capabilities that is populated when the adapter + initiated. + + Possible values: + "wbs" - Wide band speech + + Possible errors: org.bluez.Error.NotReady + org.bluez.Error.Failed + Properties string Address [readonly] The Bluetooth device address.
Signature · 1 line
2.28.0.220.ged08abb693-goog
Luiz Augusto von Dentz
maintainerRe: [RFC PATCH v2 1/1] adapter - D-Bus API for querying the adapter's capabilities
Hi Marcel,
Quoted 27 lines · Yu Liu
From: Archie Pusaka <[email protected]>
Initially this is introduced to query whether WBS is supported by the adapter, the API is generic enough to be extended to support querying others in the future.
Reviewed-by [email protected]Signed-off-by Yu Liu <[email protected]>---
Changes in v2:
- Return an array of strings instead of a dictChanges in v1:
- Initial changedoc/adapter-api.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+)doc/adapter-api.txt +0
-0@@ -204,6 +204,18 @@ Methods void StartDiscovery() org.bluez.Error.NotReady
doc/adapter-api.txt Methods void StartDiscovery() · line 214
Quoted 10 lines
doc/adapter-api.txt +8
-0org.bluez.Error.Failed + array{string} GetCapabilities() + + This method returns a list of supported + capabilities that is populated when the adapter + initiated. + + Possible values: + "wbs" - Wide band speech
Btw, should we stick to use wbs terminology here, or we should actually use the HCI feature/command, because wbs has actually to be implemented by the HFP afaik this is only indicating that the controller is able to notify packets drops, etc, with use of erroneous command. Perhaps we should actually use the term PLC (Packet Loss Concealment) instead since that seems to be the real capability here, afaik WBS does not actually require PLC.
Quoted 10 lines
doc/adapter-api.txt +4
-1+ + Possible errors: org.bluez.Error.NotReady + org.bluez.Error.Failed + Properties string Address [readonly] The Bluetooth device address. --2.28.0.220.ged08abb693-goog
Signature · 1 line
Luiz Augusto von Dentz
Re: [RFC PATCH v2 1/1] adapter - D-Bus API for querying the adapter's capabilities
Friendly ping for comments from Marcel. Thanks.
Quoted 64 lines · Luiz Augusto von Dentz
Hi Marcel,
Quoted 27 lines · Yu Liu
From: Archie Pusaka <[email protected]>
Initially this is introduced to query whether WBS is supported by the adapter, the API is generic enough to be extended to support querying others in the future.
Reviewed-by [email protected]Signed-off-by Yu Liu <[email protected]>---
Changes in v2:
- Return an array of strings instead of a dictChanges in v1:
- Initial changedoc/adapter-api.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+)doc/adapter-api.txt +0
-0@@ -204,6 +204,18 @@ Methods void StartDiscovery() org.bluez.Error.NotReadydoc/adapter-api.txt Methods void StartDiscovery() · line 214
Quoted 10 lines
doc/adapter-api.txt +8
-0org.bluez.Error.Failed + array{string} GetCapabilities() + + This method returns a list of supported + capabilities that is populated when the adapter + initiated. + + Possible values: + "wbs" - Wide band speechBtw, should we stick to use wbs terminology here, or we should actually use the HCI feature/command, because wbs has actually to be implemented by the HFP afaik this is only indicating that the controller is able to notify packets drops, etc, with use of erroneous command. Perhaps we should actually use the term PLC (Packet Loss Concealment) instead since that seems to be the real capability here, afaik WBS does not actually require PLC.
Quoted 10 lines
doc/adapter-api.txt +4
-1+ + Possible errors: org.bluez.Error.NotReady + org.bluez.Error.Failed + Properties string Address [readonly] The Bluetooth device address. --2.28.0.220.ged08abb693-goog
--
Luiz Augusto von Dentz
Re: [RFC PATCH v2 1/1] adapter - D-Bus API for querying the adapter's capabilities
+Alain Michaud
Hi Marcel,
Can you please comment on the cl as well as Luiz's suggestion? Thanks.
Quoted 70 lines · Yu Liu
Friendly ping for comments from Marcel. Thanks.
Quoted 64 lines · Luiz Augusto von Dentz
Hi Marcel,
Quoted 27 lines · Yu Liu
From: Archie Pusaka <[email protected]>
Initially this is introduced to query whether WBS is supported by the adapter, the API is generic enough to be extended to support querying others in the future.
Reviewed-by [email protected]Signed-off-by Yu Liu <[email protected]>---
Changes in v2:
- Return an array of strings instead of a dictChanges in v1:
- Initial changedoc/adapter-api.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+)doc/adapter-api.txt +0
-0@@ -204,6 +204,18 @@ Methods void StartDiscovery() org.bluez.Error.NotReadydoc/adapter-api.txt Methods void StartDiscovery() · line 214
Quoted 10 lines
doc/adapter-api.txt +8
-0org.bluez.Error.Failed + array{string} GetCapabilities() + + This method returns a list of supported + capabilities that is populated when the adapter + initiated. + + Possible values: + "wbs" - Wide band speechBtw, should we stick to use wbs terminology here, or we should actually use the HCI feature/command, because wbs has actually to be implemented by the HFP afaik this is only indicating that the controller is able to notify packets drops, etc, with use of erroneous command. Perhaps we should actually use the term PLC (Packet Loss Concealment) instead since that seems to be the real capability here, afaik WBS does not actually require PLC.
Quoted 10 lines
doc/adapter-api.txt +4
-1+ + Possible errors: org.bluez.Error.NotReady + org.bluez.Error.Failed + Properties string Address [readonly] The Bluetooth device address. --2.28.0.220.ged08abb693-goog
--
Luiz Augusto von Dentz
A message that is not in the archive (sent off-list or not yet received): CALWDO_Wsyx3s3SwBejAFdc6SFX=V29DnvPKmo48hd-yy9SqHSg@mail.gmail.com
Luiz Augusto von Dentz
maintainerRe: [RFC PATCH v2 1/1] adapter - D-Bus API for querying the adapter's capabilities
Hi Alain,
Quoted 4 lines · Alain Michaud
Hi Marcel/Luiz,
I'd be particularly interested in seeing your opinion on whether this could be better described as some form of SCO socket property... even if this is indeed an adapter property.
Yep, but wasn't that supposed to be what BT_PKT_STATUS is for? I mean one can just attempt to read it with getsockopt and in case of returns an error it means the controller does not support it, that said it doesn't look like we do check the adapter features when using BT_PKT_STATUS, should that be checking if HCI_WIDEBAND_SPEECH_ENABLED is set?
Also it doesn't seem we have updated userspace to support BT_PKT_STATUS, we should probably have something to test it via isotest and perhaps create a iso-tester.c to validate all the options.
Quoted 82 lines
Thanks,
AlainQuoted 78 lines · Yu Liu
+Alain Michaud
Hi Marcel,
Can you please comment on the cl as well as Luiz's suggestion? Thanks.
Quoted 70 lines · Yu Liu
Friendly ping for comments from Marcel. Thanks.
Quoted 64 lines · Luiz Augusto von Dentz
Hi Marcel,
Quoted 27 lines · Yu Liu
From: Archie Pusaka <[email protected]>
Initially this is introduced to query whether WBS is supported by the adapter, the API is generic enough to be extended to support querying others in the future.
Reviewed-by [email protected]Signed-off-by Yu Liu <[email protected]>---
Changes in v2:
- Return an array of strings instead of a dictChanges in v1:
- Initial changedoc/adapter-api.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+)doc/adapter-api.txt +0
-0@@ -204,6 +204,18 @@ Methods void StartDiscovery() org.bluez.Error.NotReadydoc/adapter-api.txt Methods void StartDiscovery() · line 214
Quoted 10 lines
doc/adapter-api.txt +8
-0org.bluez.Error.Failed + array{string} GetCapabilities() + + This method returns a list of supported + capabilities that is populated when the adapter + initiated. + + Possible values: + "wbs" - Wide band speechBtw, should we stick to use wbs terminology here, or we should actually use the HCI feature/command, because wbs has actually to be implemented by the HFP afaik this is only indicating that the controller is able to notify packets drops, etc, with use of erroneous command. Perhaps we should actually use the term PLC (Packet Loss Concealment) instead since that seems to be the real capability here, afaik WBS does not actually require PLC.
Quoted 10 lines
doc/adapter-api.txt +4
-1+ + Possible errors: org.bluez.Error.NotReady + org.bluez.Error.Failed + Properties string Address [readonly] The Bluetooth device address. --2.28.0.220.ged08abb693-goog
--
Luiz Augusto von Dentz
Signature · 1 line
Luiz Augusto von Dentz
Re: [RFC PATCH v2 1/1] adapter - D-Bus API for querying the adapter's capabilities
Hi Luiz,
Quoted 7 lines · Luiz Augusto von Dentz
Hi Alain,
Quoted 3 lines · Alain Michaud
Hi Marcel/Luiz,
Quoted 8 lines
Quoted 1 line
I'd be particularly interested in seeing your opinion on whether this could be better described as some form of SCO socket property... even if this is indeed an adapter property.
Yep, but wasn't that supposed to be what
BT_PKT_STATUSis for? I mean one can just attempt to read it with getsockopt and in case of returns an error it means the controller does not support it, that said it doesn't look like we do check the adapter features when usingBT_PKT_STATUS, should that be checking ifHCI_WIDEBAND_SPEECH_ENABLEDis set?
The problem here is that this will be after the connection is created and a packet is exchanged. In this context, we'd like to know if the controller supports it ahead of creating a sco connection so we can choose to use the headset at all. For example, there are devices and circumstances where using the device's built-in mic and A2DP will yield a better experience for the user so the platform may choose that as a default for the user rather than degrading down to narrow-band.
Quoted 92 lines
Also it doesn't seem we have updated userspace to support
BT_PKT_STATUS, we should probably have something to test it via isotest and perhaps create aiso-tester.cto validate all the options.Quoted 82 lines
Thanks,
AlainQuoted 78 lines · Yu Liu
+Alain Michaud
Hi Marcel,
Can you please comment on the cl as well as Luiz's suggestion? Thanks.
Quoted 70 lines · Yu Liu
Friendly ping for comments from Marcel. Thanks.
Quoted 64 lines · Luiz Augusto von Dentz
Hi Marcel,
Quoted 27 lines · Yu Liu
From: Archie Pusaka <[email protected]>
Initially this is introduced to query whether WBS is supported by the adapter, the API is generic enough to be extended to support querying others in the future.
Reviewed-by [email protected]Signed-off-by Yu Liu <[email protected]>---
Changes in v2:
- Return an array of strings instead of a dictChanges in v1:
- Initial changedoc/adapter-api.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+)doc/adapter-api.txt +0
-0@@ -204,6 +204,18 @@ Methods void StartDiscovery() org.bluez.Error.NotReadydoc/adapter-api.txt Methods void StartDiscovery() · line 214
Quoted 10 lines
doc/adapter-api.txt +8
-0org.bluez.Error.Failed + array{string} GetCapabilities() + + This method returns a list of supported + capabilities that is populated when the adapter + initiated. + + Possible values: + "wbs" - Wide band speechBtw, should we stick to use wbs terminology here, or we should actually use the HCI feature/command, because wbs has actually to be implemented by the HFP afaik this is only indicating that the controller is able to notify packets drops, etc, with use of erroneous command. Perhaps we should actually use the term PLC (Packet Loss Concealment) instead since that seems to be the real capability here, afaik WBS does not actually require PLC.
Quoted 10 lines
doc/adapter-api.txt +4
-1+ + Possible errors: org.bluez.Error.NotReady + org.bluez.Error.Failed + Properties string Address [readonly] The Bluetooth device address. --2.28.0.220.ged08abb693-goog
--
Luiz Augusto von Dentz--
Luiz Augusto von Dentz
Luiz Augusto von Dentz
maintainerRe: [RFC PATCH v2 1/1] adapter - D-Bus API for querying the adapter's capabilities
Hi Alain,
Quoted 21 lines · Alain Michaud
Hi Luiz,
Quoted 7 lines · Luiz Augusto von Dentz
Hi Alain,
Quoted 3 lines · Alain Michaud
Hi Marcel/Luiz,
Quoted 8 lines
Quoted 1 line
I'd be particularly interested in seeing your opinion on whether this could be better described as some form of SCO socket property... even if this is indeed an adapter property.
Yep, but wasn't that supposed to be what
BT_PKT_STATUSis for? I mean one can just attempt to read it with getsockopt and in case of returns an error it means the controller does not support it, that said it doesn't look like we do check the adapter features when usingBT_PKT_STATUS, should that be checking ifHCI_WIDEBAND_SPEECH_ENABLEDis set?
Quoted 7 lines
The problem here is that this will be after the connection is created and a packet is exchanged. In this context, we'd like to know if the controller supports it ahead of creating a sco connection so we can choose to use the headset at all. For example, there are devices and circumstances where using the device's built-in mic and A2DP will yield a better experience for the user so the platform may choose that as a default for the user rather than degrading down to narrow-band.
You can use get/setsockopt after bind, so I wonder if that is really a problem here, in fact BT_VOICE wouldn't work if we couldn't use socket options before the connection is made see how it is used in ofono for instance:
https://git.kernel.org/pub/scm/network/ofono/ofono.git/tree/src/handsfree-audio.c#n105
Also in order to use WBS one will need to use BT_VOICE anyway, actually that all you need for WBS with mSBC while BT_PKT_STATUS will indicate the possibility to do PLC, not sure why we are mixing these things together or does HFP mandates mSBC to implement PLC nowadays?
Quoted 92 lines
Quoted 92 lines
Also it doesn't seem we have updated userspace to support
BT_PKT_STATUS, we should probably have something to test it via isotest and perhaps create aiso-tester.cto validate all the options.Quoted 82 lines
Thanks,
AlainQuoted 78 lines · Yu Liu
+Alain Michaud
Hi Marcel,
Can you please comment on the cl as well as Luiz's suggestion? Thanks.
Quoted 70 lines · Yu Liu
Friendly ping for comments from Marcel. Thanks.
Quoted 64 lines · Luiz Augusto von Dentz
Hi Marcel,
Quoted 27 lines · Yu Liu
From: Archie Pusaka <[email protected]>
Initially this is introduced to query whether WBS is supported by the adapter, the API is generic enough to be extended to support querying others in the future.
Reviewed-by [email protected]Signed-off-by Yu Liu <[email protected]>---
Changes in v2:
- Return an array of strings instead of a dictChanges in v1:
- Initial changedoc/adapter-api.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+)doc/adapter-api.txt +0
-0@@ -204,6 +204,18 @@ Methods void StartDiscovery() org.bluez.Error.NotReadydoc/adapter-api.txt Methods void StartDiscovery() · line 214
Quoted 10 lines
doc/adapter-api.txt +8
-0org.bluez.Error.Failed + array{string} GetCapabilities() + + This method returns a list of supported + capabilities that is populated when the adapter + initiated. + + Possible values: + "wbs" - Wide band speechBtw, should we stick to use wbs terminology here, or we should actually use the HCI feature/command, because wbs has actually to be implemented by the HFP afaik this is only indicating that the controller is able to notify packets drops, etc, with use of erroneous command. Perhaps we should actually use the term PLC (Packet Loss Concealment) instead since that seems to be the real capability here, afaik WBS does not actually require PLC.
Quoted 10 lines
doc/adapter-api.txt +4
-1+ + Possible errors: org.bluez.Error.NotReady + org.bluez.Error.Failed + Properties string Address [readonly] The Bluetooth device address. --2.28.0.220.ged08abb693-goog
--
Luiz Augusto von Dentz--
Luiz Augusto von Dentz
Signature · 1 line
Luiz Augusto von Dentz
Re: [RFC PATCH v2 1/1] adapter - D-Bus API for querying the adapter's capabilities
Hi Luiz,
Quoted 38 lines · Luiz Augusto von Dentz
Hi Alain,
Quoted 21 lines · Alain Michaud
Hi Luiz,
Quoted 7 lines · Luiz Augusto von Dentz
Hi Alain,
Quoted 3 lines · Alain Michaud
Hi Marcel/Luiz,
Quoted 8 lines
Quoted 1 line
I'd be particularly interested in seeing your opinion on whether this could be better described as some form of SCO socket property... even if this is indeed an adapter property.
Yep, but wasn't that supposed to be what
BT_PKT_STATUSis for? I mean one can just attempt to read it with getsockopt and in case of returns an error it means the controller does not support it, that said it doesn't look like we do check the adapter features when usingBT_PKT_STATUS, should that be checking ifHCI_WIDEBAND_SPEECH_ENABLEDis set?Quoted 7 lines
The problem here is that this will be after the connection is created and a packet is exchanged. In this context, we'd like to know if the controller supports it ahead of creating a sco connection so we can choose to use the headset at all. For example, there are devices and circumstances where using the device's built-in mic and A2DP will yield a better experience for the user so the platform may choose that as a default for the user rather than degrading down to narrow-band.
You can use get/setsockopt after bind, so I wonder if that is really a problem here, in fact
BT_VOICEwouldn't work if we couldn't use socket options before the connection is made see how it is used in ofono for instance:
Quoted 6 lines
https://git.kernel.org/pub/scm/network/ofono/ofono.git/tree/src/handsfree-audio.c#n105
Also in order to use WBS one will need to use
BT_VOICEanyway, actually that all you need for WBS with mSBC whileBT_PKT_STATUSwill indicate the possibility to do PLC, not sure why we are mixing these things together or does HFP mandates mSBC to implement PLC nowadays?
This is a design choice, one that must be done before a device connected on our platform. Note ChromeOS doesn't use ofono. It's not just about choosing to do mSBC, but rather about which mic the overall platform will use (onboard or from the headset/speaker).
Quoted 98 lines
Quoted 91 lines
Quoted 91 lines
Also it doesn't seem we have updated userspace to support
BT_PKT_STATUS, we should probably have something to test it via isotest and perhaps create aiso-tester.cto validate all the options.Quoted 82 lines
Thanks,
AlainQuoted 78 lines · Yu Liu
+Alain Michaud
Hi Marcel,
Can you please comment on the cl as well as Luiz's suggestion? Thanks.
Quoted 70 lines · Yu Liu
Friendly ping for comments from Marcel. Thanks.
Quoted 64 lines · Luiz Augusto von Dentz
Hi Marcel,
Quoted 27 lines · Yu Liu
From: Archie Pusaka <[email protected]>
Initially this is introduced to query whether WBS is supported by the adapter, the API is generic enough to be extended to support querying others in the future.
Reviewed-by [email protected]Signed-off-by Yu Liu <[email protected]>---
Changes in v2:
- Return an array of strings instead of a dictChanges in v1:
- Initial changedoc/adapter-api.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+)doc/adapter-api.txt +0
-0@@ -204,6 +204,18 @@ Methods void StartDiscovery() org.bluez.Error.NotReadydoc/adapter-api.txt Methods void StartDiscovery() · line 214
Quoted 10 lines
doc/adapter-api.txt +8
-0org.bluez.Error.Failed + array{string} GetCapabilities() + + This method returns a list of supported + capabilities that is populated when the adapter + initiated. + + Possible values: + "wbs" - Wide band speechBtw, should we stick to use wbs terminology here, or we should actually use the HCI feature/command, because wbs has actually to be implemented by the HFP afaik this is only indicating that the controller is able to notify packets drops, etc, with use of erroneous command. Perhaps we should actually use the term PLC (Packet Loss Concealment) instead since that seems to be the real capability here, afaik WBS does not actually require PLC.
Quoted 10 lines
doc/adapter-api.txt +4
-1+ + Possible errors: org.bluez.Error.NotReady + org.bluez.Error.Failed + Properties string Address [readonly] The Bluetooth device address. --2.28.0.220.ged08abb693-goog
--
Luiz Augusto von DentzQuoted 2 lines
Quoted 2 lines
--
Luiz Augusto von Dentz--
Luiz Augusto von Dentz
Luiz Augusto von Dentz
maintainerRe: [RFC PATCH v2 1/1] adapter - D-Bus API for querying the adapter's capabilities
Hi Alain,
Quoted 46 lines · Alain Michaud
Hi Luiz,
Quoted 40 lines · Luiz Augusto von Dentz
Hi Alain,
Quoted 21 lines · Alain Michaud
Hi Luiz,
Quoted 7 lines · Luiz Augusto von Dentz
Hi Alain,
Quoted 3 lines · Alain Michaud
Hi Marcel/Luiz,
Quoted 8 lines
Quoted 1 line
I'd be particularly interested in seeing your opinion on whether this could be better described as some form of SCO socket property... even if this is indeed an adapter property.
Yep, but wasn't that supposed to be what
BT_PKT_STATUSis for? I mean one can just attempt to read it with getsockopt and in case of returns an error it means the controller does not support it, that said it doesn't look like we do check the adapter features when usingBT_PKT_STATUS, should that be checking ifHCI_WIDEBAND_SPEECH_ENABLEDis set?Quoted 7 lines
The problem here is that this will be after the connection is created and a packet is exchanged. In this context, we'd like to know if the controller supports it ahead of creating a sco connection so we can choose to use the headset at all. For example, there are devices and circumstances where using the device's built-in mic and A2DP will yield a better experience for the user so the platform may choose that as a default for the user rather than degrading down to narrow-band.
You can use get/setsockopt after bind, so I wonder if that is really a problem here, in fact
BT_VOICEwouldn't work if we couldn't use socket options before the connection is made see how it is used in ofono for instance:https://git.kernel.org/pub/scm/network/ofono/ofono.git/tree/src/handsfree-audio.c#n105
Quoted 8 lines
Quoted 4 lines
Also in order to use WBS one will need to use
BT_VOICEanyway, actually that all you need for WBS with mSBC whileBT_PKT_STATUSwill indicate the possibility to do PLC, not sure why we are mixing these things together or does HFP mandates mSBC to implement PLC nowadays?This is a design choice, one that must be done before a device connected on our platform. Note ChromeOS doesn't use ofono. It's not just about choosing to do mSBC, but rather about which mic the overall platform will use (onboard or from the headset/speaker).
Got it, I just don't like the naming because while it is perfectly fine for ChromeOS to choose to only do WBS when BT_PKT_STATUS is available, other platforms my not required that, specially since BlueZ may also be used in carkits/IVI systems which may have been built without PLC support.
Regarding the use of oFono, I was using more as an example that you can set socket options before any connection is made, anyway the setting of the erroneous command seems to be done at startup regardless if the userspace will actually require BT_PKT_STATUS or not, so all I'm suggesting is to check if the command was actually used when using BT_PKT_STATUS.
Quoted 98 lines
Quoted 98 lines
Quoted 91 lines
Quoted 91 lines
Also it doesn't seem we have updated userspace to support
BT_PKT_STATUS, we should probably have something to test it via isotest and perhaps create aiso-tester.cto validate all the options.Quoted 82 lines
Thanks,
AlainQuoted 78 lines · Yu Liu
+Alain Michaud
Hi Marcel,
Can you please comment on the cl as well as Luiz's suggestion? Thanks.
Quoted 70 lines · Yu Liu
Friendly ping for comments from Marcel. Thanks.
Quoted 64 lines · Luiz Augusto von Dentz
Hi Marcel,
Quoted 27 lines · Yu Liu
From: Archie Pusaka <[email protected]>
Initially this is introduced to query whether WBS is supported by the adapter, the API is generic enough to be extended to support querying others in the future.
Reviewed-by [email protected]Signed-off-by Yu Liu <[email protected]>---
Changes in v2:
- Return an array of strings instead of a dictChanges in v1:
- Initial changedoc/adapter-api.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+)doc/adapter-api.txt +0
-0@@ -204,6 +204,18 @@ Methods void StartDiscovery() org.bluez.Error.NotReadydoc/adapter-api.txt Methods void StartDiscovery() · line 214
Quoted 10 lines
doc/adapter-api.txt +8
-0org.bluez.Error.Failed + array{string} GetCapabilities() + + This method returns a list of supported + capabilities that is populated when the adapter + initiated. + + Possible values: + "wbs" - Wide band speechBtw, should we stick to use wbs terminology here, or we should actually use the HCI feature/command, because wbs has actually to be implemented by the HFP afaik this is only indicating that the controller is able to notify packets drops, etc, with use of erroneous command. Perhaps we should actually use the term PLC (Packet Loss Concealment) instead since that seems to be the real capability here, afaik WBS does not actually require PLC.
Quoted 10 lines
doc/adapter-api.txt +4
-1+ + Possible errors: org.bluez.Error.NotReady + org.bluez.Error.Failed + Properties string Address [readonly] The Bluetooth device address. --2.28.0.220.ged08abb693-goog
--
Luiz Augusto von DentzQuoted 2 lines
Quoted 2 lines
--
Luiz Augusto von Dentz--
Luiz Augusto von Dentz
Signature · 1 line
Luiz Augusto von Dentz