linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] D-Bus API for out of band association model
@ 2010-09-15  7:58 Andrzej Kaczmarek
  2010-09-15  8:10 ` Johan Hedberg
  0 siblings, 1 reply; 8+ messages in thread
From: Andrzej Kaczmarek @ 2010-09-15  7:58 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: par-gunnar.p.hjalmdahl, Andrzej Kaczmarek

Hi,

On behalf of ST-Ericsson SA, below is our proposal of API for out of band
association model. To give you a bit more overview how this will be integrated
into BlueZ:

.RequestRemoteOobData should be called from hcid_dbus_request_io_cap to
check if any data was exchange/retrieved from remote device. Returned data
will be stored (if any) and used to reply with proper IO capabilities as well
as to to return retrieved data. This will involve some changes in flow from
io_capa_request onwards.

Please let me know if you have any comments. Implementation will follow.

BR,
Andrzej


---
 doc/adapter-api.txt |   14 ++++++++++++++
 doc/agent-api.txt   |   14 ++++++++++++++
 2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt
index 6098c76..0dd628e 100644
--- a/doc/adapter-api.txt
+++ b/doc/adapter-api.txt
@@ -5,6 +5,7 @@ Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>
 Copyright (C) 2005-2006  Johan Hedberg <johan.hedberg@nokia.com>
 Copyright (C) 2005-2006  Claudio Takahasi <claudio.takahasi@indt.org.br>
 Copyright (C) 2006-2007  Luiz von Dentz <luiz.dentz@indt.org.br>
+Copyright (C) 2010       ST-Ericsson SA <andrzej.kaczmarek@tieto.com>
 
 
 Adapter hierarchy
@@ -173,6 +174,19 @@ Methods		dict GetProperties()
 
 			Possible errors: org.bluez.Error.DoesNotExist
 
+		struct{
+			array{byte}, array{byte}
+		} GetLocalOobData()
+
+			Retrieves current C and R values used for out-of-band
+			bonding association model.
+
+			The return value is struct containing two arrays of
+			bytes, C and R values retrieved from local device.
+
+			Possible errors: org.bluez.Error.InProgress
+					 org.bluez.Error.Failed
+
 Signals		PropertyChanged(string name, variant value)
 
 			This signal indicates a changed value of the given
diff --git a/doc/agent-api.txt b/doc/agent-api.txt
index d8d35c0..323ccf1 100644
--- a/doc/agent-api.txt
+++ b/doc/agent-api.txt
@@ -3,6 +3,7 @@ BlueZ D-Bus Agent API description
 
 Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>
 Copyright (C) 2005-2006  Johan Hedberg <johan.hedberg@nokia.com>
+Copyright (C) 2010       ST-Ericsson SA <andrzej.kaczmarek@tieto.com>
 
 
 Agent hierarchy
@@ -68,6 +69,19 @@ Methods		void Release()
 			Possible errors: org.bluez.Error.Rejected
 			                 org.bluez.Error.Canceled
 
+		struct{
+			array{byte}, array{byte}
+		} RequestRemoteOobData(object device)
+
+			This method gets called when the service daemon
+			needs out-of-band data for an authentication.
+
+			The return value should be struct containing two
+			arrays of bytes, C and R values retrieved from
+			remote device.
+
+			Possible errors: org.bluez.Error.NoData
+
 		void Authorize(object device, string uuid)
 
 			This method gets called when the service daemon
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-09-16 18:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-15  7:58 [RFC] D-Bus API for out of band association model Andrzej Kaczmarek
2010-09-15  8:10 ` Johan Hedberg
2010-09-15 13:30   ` Claudio Takahasi
2010-09-15 17:13     ` jaikumar Ganesh
2010-09-15 18:53       ` Johan Hedberg
2010-09-15 19:13         ` jaikumar Ganesh
2010-09-16 12:51         ` Andrzej Kaczmarek
2010-09-16 18:11           ` 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).