* [PATCH BlueZ] test: Add a HFP HF endpoint to simple-endpoint
@ 2012-12-03 23:42 Vinicius Costa Gomes
2012-12-04 5:56 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Vinicius Costa Gomes @ 2012-12-03 23:42 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Vinicius Costa Gomes
---
test/simple-endpoint | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test/simple-endpoint b/test/simple-endpoint
index 20c8159..79e38c7 100755
--- a/test/simple-endpoint
+++ b/test/simple-endpoint
@@ -11,6 +11,7 @@ import gobject
A2DP_SOURCE_UUID = "0000110A-0000-1000-8000-00805F9B34FB"
A2DP_SINK_UUID = "0000110B-0000-1000-8000-00805F9B34FB"
HFP_AG_UUID = "0000111F-0000-1000-8000-00805F9B34FB"
+HFP_HF_UUID = "0000111E-0000-1000-8000-00805F9B34FB"
HSP_AG_UUID = "00001112-0000-1000-8000-00805F9B34FB"
SBC_CODEC = dbus.Byte(0x00)
@@ -38,6 +39,8 @@ MP3_CONFIGURATION = dbus.Array([dbus.Byte(0x21), dbus.Byte(0x02), dbus.Byte(0x00
PCM_CODEC = dbus.Byte(0x00)
PCM_CONFIGURATION = dbus.Array([], signature="ay")
+CVSD_CODEC = dbus.Byte(0x01)
+
class Rejected(dbus.DBusException):
_dbus_error_name = "org.bluez.Error.Rejected"
@@ -120,6 +123,11 @@ if __name__ == '__main__':
"Codec" : PCM_CODEC,
"Capabilities" : PCM_CONFIGURATION })
endpoint.default_configuration(dbus.Array([]))
+ if sys.argv[2] == "hfphf":
+ properties = dbus.Dictionary({ "UUID" : HFP_HF_UUID,
+ "Codec" : CVSD_CODEC,
+ "Capabilities" : PCM_CONFIGURATION })
+ endpoint.default_configuration(dbus.Array([]))
print(properties)
--
1.8.0.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH BlueZ] test: Add a HFP HF endpoint to simple-endpoint
2012-12-03 23:42 [PATCH BlueZ] test: Add a HFP HF endpoint to simple-endpoint Vinicius Costa Gomes
@ 2012-12-04 5:56 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2012-12-04 5:56 UTC (permalink / raw)
To: Vinicius Costa Gomes; +Cc: linux-bluetooth
Hi Vinicius,
On Mon, Dec 03, 2012, Vinicius Costa Gomes wrote:
> ---
> test/simple-endpoint | 8 ++++++++
> 1 file changed, 8 insertions(+)
Applied. Thanks.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-04 5:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-03 23:42 [PATCH BlueZ] test: Add a HFP HF endpoint to simple-endpoint Vinicius Costa Gomes
2012-12-04 5:56 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).