linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] Device Configuration D-Bus services
@ 2005-10-19 13:06 Claudio Takahasi
  2005-10-24 21:00 ` Eduardo Rocha
  0 siblings, 1 reply; 10+ messages in thread
From: Claudio Takahasi @ 2005-10-19 13:06 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 1999 bytes --]

Hi folks,

I would like to bring up the device configuration services before start
coding, I would like design how these services will work and receive
comments.

The services provided under these paths/interfaces will not be public. Only
an administrator group or a root will be allowed to send messages. We don't
need care about the configuration file rules now, it can be defined later.

In my opinion it's better use the same approach of the Manager. A main path
object "/org/bluez/Manager" (FALLBACK) should catch messages sent to
unregistered
paths and handle services like:
- DeviceList, displays UP/DOWN devices
- UP
- DOWN
- RESET

The device based paths can provide services like:
- SetProperty
- GetProperty
- Commands
- Features

Using SetProperty/GetProperty instead of define one method name for each
property is more clean. However it is important keep in mind that the
documentation of this service must be well-defined, because the method
call/method reply arguments will have different argument number and types.
In the method call, the first argument must be a byte(faster comparison)
indicating the command code instead of use a string to represent the
command.

Suggested paths and Interfaces:
*** Main path
path:
/org/bluez/Devices
interface: org.bluez.Devices

*** Device based
path:
/org/bluez/Devices/hciX
interface: org.bluez.Devices


Another point is the message handler function. Currently, there is only one
function responsible for handle the messages. In my opinion it will be
better
create other DBusObjectPathVTable to address Device messages for make the
logic more clear. For SetProperty/GetProperty will be required extract the
first argument to get the command code in the message handle function.


Is everything ok? Any comments?

Regards,
Claudio.

--
---------------------------------------------------------
Claudio Takahasi
Nokia's Institute of Technology - INdT
claudio.takahasi@indt.org.br

[-- Attachment #2: Type: text/html, Size: 2309 bytes --]

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

end of thread, other threads:[~2005-10-27  0:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-19 13:06 [Bluez-devel] Device Configuration D-Bus services Claudio Takahasi
2005-10-24 21:00 ` Eduardo Rocha
2005-10-24 21:23   ` Eduardo Rocha
2005-10-24 21:34   ` Marcel Holtmann
2005-10-25 11:52     ` Eduardo Rocha
2005-10-25 12:06       ` Johan Hedberg
2005-10-25 18:30         ` Eduardo Rocha
2005-10-27  0:33           ` Marcel Holtmann
2005-10-27  0:32       ` Marcel Holtmann
2005-10-25 12:05     ` Claudio Takahasi

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).