linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] [D-BUS] open questions
Date: Thu, 13 Oct 2005 15:35:26 +0200	[thread overview]
Message-ID: <1129210526.6308.6.camel@localhost.localdomain> (raw)
In-Reply-To: <e1effdeb0510130606n474e5f9i4c66d99d245a388@mail.gmail.com>

Hi Claudio,

> I exchanged some ideas with Johan Hedberg yesterday and I would like
> receive feedbacks from bluez-devel list. Johan, if I forget mention
> any subject or wrote something wrong fix me :)
> 
> 
> 1. HCI signals 
>    Currently, we have the fllowing signals:
>    - InquiryStart
>    - InquiryComplete
>    - InquiryResult
>    - RemoteName
>    These signals are being sent in the
> path /org/bluez/Manager/Controller, and interface
> org.bluez.Manager.Controller
> 
> We have to keep in mind that we need define clean interfaces and paths
> to the CLIENTS  applications. The clients can define filters based on
> paths, interfaces, message types, and member name(service name).
> 
> Johan suggested send the signals to device id based paths and remove
> local BT address from the message argument t.
> eg: /og/bluez/Manager/hci0/Controller

I think this is a good idea.

> 2. Object path
>    We didn't close this discussion. According with the D-Bus guys the
> character ":" is not allowed and the character "-" requires a unstable
> patch.
> 
> I would like define a hierarchical path approach, because it make
> possible the parent level path handle messages sent to a unregistered
> child. eg the /org/bluez/Manager can handle messages sent
> to /org/bluez/Manager/hci2/Controller and return an error message to
> the client instead of return unknown service.
> Another aspect is: if we define an hierarchical paths, it's easier
> find sub-paths and unregister them when we need. eg: unregistering all
> paths related to the hci2 device. The D-Bus function
> dbus_connection_list_registered can list the registered fallback
> handlers and object path handlers at the given parent path,
> eg: /org/bluez/Manager/hci2
> 
> The hci0, hci1, ... ids can change if you remove the dongle. Using the
> device address like AA_BB_CC_DD_EE_FF we will not have this problem. 
> Remember that we are using the hci_dbus_data struct to store the
> device id, It will not be necessary extract the BT address from the
> path for every receive message. Therefore we can ignore this overhead.

I think this makes it a little bit too complex. However I am fully open
to discussion about it.

> 3. DeviceList content
> Johan Question:
> If we device a bluetooth device address based path, which format we
> have to use in the device address field of the DeviceList service?
> AA_BB_CC_DD_EE_FF or AA:BB:CC:DD:EE:FF?

I prefer the AA:BB:CC:DD:EE:FF format, because it is more intuitive.

> 4. Where return the registered paths?
> We need define a service to get all registered paths. My initial idea
> was provide a Introspect method that could return a XML description.
> However, Marcel wrote that can be heavy parse the content. Another
> approach is provide a simple service that return an array of strings
> containing the registered paths. The input argument could be the
> parent path and the return value will be all child paths.

The XML is not a way to go. I like to keep XML out of it.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

      reply	other threads:[~2005-10-13 13:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-13 13:06 [Bluez-devel] [D-BUS] open questions Claudio Takahasi
2005-10-13 13:35 ` Marcel Holtmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1129210526.6308.6.camel@localhost.localdomain \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).