From: Claudio Takahasi <cktakahasi@gmail.com>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] DBUS service support - Initial library
Date: Mon, 23 May 2005 12:02:32 -0300 [thread overview]
Message-ID: <e1effdeb050523080216e96744@mail.gmail.com> (raw)
In-Reply-To: <1116844053.30044.59.camel@pegasus>
Hi Marcel,
I will fix your suggestions.
Regarding our suggestion about the service name. I consider the
following basic features essential to establish and control connections:
* Search for a service (provided by sdptool)
* Display local devices (provided by hcitool)
* Switch master/slave role (provided by hcitool)
* Listen for PAN connections (provided by pand)
* Connect (provided by pand)
* Disconnect (provided by pand)
* Display active connections (provided by pand)
According to D-BUS specification when messages are received over a
D-BUS connection,
they are sent to a specific object, not to the application as a whole.
Each object supports
one or more interfaces.
=20
We have two options:
1. define one object with only one interface
eg: =20
object:org.bluez.pand
interface:org.bluez.pand
2. define one object with multiple interfaces
eg: =20
object:org.bluez.pand
interface: org.bluez.pand
interface: org.bluez.sdp
interface: org.bluez.hci
For the both cases, pand will be the daemon responsible for
provide this interfaces/services.
What approach do you preffer?
The last alternative is better because it is possible define more
detailed rules in the dbus configuration file.=20
Another point is the header for dbus services, the client application
must know the message format, therefore the header file(dbus_services.h)
will be required. In the future, develop a library hidding D-BUS message
details is a better option.
Regards,
Claudio.
On 5/23/05, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Claudio,
>=20
> > I am sending a initial skeleton of pand DBUS support. I was not able to
> > access BlueZ CVS due firewall permissions.
> >
> > The path is based on bluez-utils-2.17.
>=20
> no problem the 2.17 is quite up-to-date.
>=20
> > Suggestions and comments are welcome!
>=20
> please use only the file dbus.c and put needed function prototypes into
> pand.h. The dbus_services.h is not needed. Put the declarations into
> dbus.c.
>=20
> Don't provide and "hcid" service within pand. If you wanna provide HCI
> task then hide them inside the pand D-Bus. Use org.bluez.pand as base
> name for all stuff.
>=20
> Never use dev_id. You can use the source Bluetooth address instead and
> then convert it to dev_id internally. Don't use bdaddr_t at all. Simply
> use the string representation of the Bluetooth device address.
>=20
> Don't use char to represent an one byte value. Use uint8_t.
>=20
> Once if we agree on the changes to Makefile.am, pand.h and main.c, then
> I can commit a simple framework with an empty dbus.c and you only need
> to send me changes to dbus.c from then on.
>=20
> Regards
>=20
> Marcel
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=3D7412&alloc_id=3D16344&op=3Dclick
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2005-05-23 15:02 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-28 20:00 [Bluez-devel] DBUS service support - Initial library Claudio Takahasi
2005-04-29 9:47 ` Marcel Holtmann
2005-04-29 12:26 ` Claudio Takahasi
2005-04-29 12:43 ` Marcel Holtmann
2005-04-29 22:20 ` Claudio Takahasi
2005-04-30 0:04 ` Marcel Holtmann
2005-05-01 21:16 ` Claudio Takahasi
2005-05-01 23:18 ` Marcel Holtmann
2005-05-02 15:32 ` Claudio Takahasi
2005-05-02 16:24 ` Marcel Holtmann
2005-05-09 21:31 ` Claudio Takahasi
2005-05-11 18:27 ` Marcel Holtmann
2005-05-12 9:00 ` Peter Wippich
2005-05-12 12:41 ` Marcel Holtmann
2005-05-12 16:21 ` Peter Wippich
2005-05-20 21:04 ` Claudio Takahasi
2005-05-23 10:27 ` Marcel Holtmann
2005-05-23 15:02 ` Claudio Takahasi [this message]
2005-05-24 9:07 ` Marcel Holtmann
2005-05-25 22:20 ` Claudio Takahasi
2005-05-26 9:08 ` Marcel Holtmann
2005-05-26 21:22 ` Claudio Takahasi
2005-05-26 21:40 ` Marcel Holtmann
2005-05-30 22:42 ` Claudio Takahasi
2005-05-30 23:05 ` Marcel Holtmann
2005-06-03 20:34 ` [Bluez-devel] DBUS service support - poll patch Claudio Takahasi
2005-06-03 20:38 ` Marcel Holtmann
2005-06-03 21:31 ` Claudio Takahasi
2005-06-03 22:10 ` Marcel Holtmann
2005-06-06 13:18 ` Claudio Takahasi
2005-06-14 11:37 ` Claudio Takahasi
2005-06-17 21:59 ` Claudio Takahasi
2005-06-18 23:28 ` Marcel Holtmann
2005-05-12 12:45 ` [Bluez-devel] DBUS service support - Initial library Claudio Takahasi
2005-05-12 16:23 ` Peter Wippich
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=e1effdeb050523080216e96744@mail.gmail.com \
--to=cktakahasi@gmail.com \
--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