From: Claudio Takahasi <cktakahasi@gmail.com>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] pand D-Bus service
Date: Tue, 12 Jul 2005 14:07:50 -0300 [thread overview]
Message-ID: <e1effdeb05071210071d7d599a@mail.gmail.com> (raw)
In-Reply-To: <1121117212.5934.34.camel@notepaq>
[-- Attachment #1: Type: text/plain, Size: 2769 bytes --]
Hi Marcel,
The latest patch is available in the address below:
http://www.indt.org.br/maemo/zeroconf/bluez/bluez-dbus-patch-00.04
http://www.indt.org.br/maemo/zeroconf/bluez/libbluezdbus-0.2.tar.gz
Dependencies: dbus, libbdrige, udhcp (under conditional flags)
libbluezdbus-0.2.tar.gz is the library to hide D-Bus message
details(d-bus connection, message exchange, ...). Inside this
library there is a test application (sample/client).
For more information read the RELEASE_NOTES file attached.
My next action is implement periodic inquiry. This feature should be
provided by bluetoothd. Before integrate this code we have to define
the object path and interface name properly.
Regards,
Claudio.
On 7/11/05, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Claudio,
>
> > My project goal is provide D-Bus support for pand
> > including automatic bridge creation and integration
> > with udhcp.
> >
> > Setup the bt adapter is a dependency for me. bluetoothd is
> > the daemon that was missing for provide adapter configuration,
> > periodic inquiry and link setup. Some services(list adapters,
> > search, role switch) are being provided by pand D-Bus.
> > I know that is a incorrect approach, but they are required.
> >
> > I am running behind the schedule, there are a lot projects
> > (UPnP app, games) that require this feature for setup PANs.
> > Is it possible integrate the D-Bus services for pand?
>
> as long as you don't introduce too much dependencies, there should be no
> problem to include it. Simple send new versions to the mailing list and
> when I have more time, I review them.
>
> > After that can help you moving all code to bluetoothd.
>
> I am going to develop it from scratch. I still have to solve some basic
> problem with the new kernel interface.
>
> > If you what I can help you developing bluetoothd?
>
> Any help is always welcome. I will commit all code and compile it by
> default, but don't install it.
>
> > Regarding security, what are exactly the points that need
> > by improved or developed?
>
> The PIN code and link key handling for the kernel security manager.
>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
> July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
> core and dual graphics technology at this free one hour event hosted by HP,
> AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
[-- Attachment #2: RELEASE_NOTES --]
[-- Type: application/octet-stream, Size: 4215 bytes --]
D-BUS service Release Notes for PAN daemon of bluez-utils
bluez-utils version: 2.18
***** Added features:
Initial version. Added the initial D-Bus services
for bluez pand. The following services are provided:
- daemon start/stop
- connect/disconnect
- search
- listen start/stop
- udhcp integration for local link address assigment.
See additional comment at end of this document.
- automatic bridge creation.
See additional comment at end of this document.
***** Fixed Bugs:
bug #1 type: defect
The activate service is not working in the system bus
fixed version: bluez-dbus-patch-00.04
bug #4: type: enhancement
Automatic bridge creation
- Enable automatic bridge creation on listen service
fixed version: bluez-dbus-patch-00.04
bug #10: type: enhancement
UDHCP integration. Call udhcp daemon for the
bridge (panX) interface.
fixed version: bluez-dbus-patch-00.04
**** Known Bugs:
bug #2 type: defect
the search service is blocking, the pand D-BUS service
must be changed. A callback function should be used.
fixed version:
bug #3: type: enhancement
Add signal support
- signal for notify disconnection
- signal for notify new device found
fixed version:
bug #5: type: enhancement
Periodic inquiry
fixed version:
bug #6: type: enhancement
Develop a better UI for the client app
fixed version:
bug #7: type: enhancement
Add a parameter to search services on specific
device class (desktop only, mobile phones only, ...)
fixed version:
bug #8: type: enhancement
Add D-BUS service for dund
fixed version:
bug #9: type: enhancement
Add D-BUS service for hidd
fixed version:
bug #11: type: enhancement
Makefile must be changed to install
all D-Bus configuration files
fixed version:
bug #12: type: defect
bnepX interfaces must be removed when
the daemon exits.
fixed version:
***** Additional Comments:
1. How use link local address daemon(UDHCP with Zeroconf support)?
There is patch UDHCP version with Zeroconf support
http://www.indt.org.br/maemo/zeroconf/udhcpc/
- run-udhcp script
this script must be copied to /etc/bluetooth/pan
check if there is execution permission
2. Bridge comments
No matter the device service(NAP,PANU, GN) only one bridge interface
pan0 will be created on each device. Incomming and outgoing connections
will be added to the same bridge
3. D-Bus start service
In order enable start pand using a dbus client it is necessary
perform configurations.
- security policy file the directory /etc/dbus-1/system.d/
Copy the file panz.conf to the directory /etc/dbus-1/system.d/
<!-- This configuration file specifies the required security policies
for bluez-pand to work. -->
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- ../system.conf have denied everything, so we just punch some holes -->
<policy context="default">
<allow own="org.bluez.pand"/>
<allow send_destination="org.bluez.pand"/>
<allow receive_sender="org.bluez.pand"/>
<allow send_path="/org/bluez/pand"/>
</policy>
</busconfig>
- check service file dir
open the D-Bus system.conf file and check
if the is a entry for servicedir:
"<servicedir>/usr/share/dbus-1/services/system</servicedir>"
- panz.service
copy this file to the system service directory "<servicedir>"
# Service description file
[D-BUS Service]
Name=org.bluez.pand
Exec=/etc/bluetooth/pan/run-pand.sh
- run-pand.sh
this script shoult be copied to /etc/bluetooth/pan directory
add execution permission
#!/bin/sh
pand --dbus
HOWTO setup DBUS environment
1. checking dbus-daemon
type: $ps -ef | grep dbus
"dbus-daemon --system" should be displayed
2. check pand dbus service policy file (panz.conf)
The file panz.conf must be located at: /etc/dbus-1/system.d/
3. check pand service file (panz.service)
Check the <servicedir> attribute in the system.conf
suggestion: /usr/share/dbus-1/services/system
4. check the run-pand.sh
Check if this script is located at /etc/bluetooth/pan/
5. Client can initialize the pand service using
D-BUS start method or typing "pand --dbus" on
a root terminal.
prev parent reply other threads:[~2005-07-12 17:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-08 18:37 [Bluez-devel] pand D-Bus service Claudio Takahasi
2005-07-08 19:08 ` Marcel Holtmann
2005-07-11 18:54 ` Claudio Takahasi
2005-07-11 19:27 ` Marcel Holtmann
2005-07-11 20:16 ` Claudio Takahasi
2005-07-11 21:26 ` Marcel Holtmann
2005-07-12 17:07 ` Claudio Takahasi [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=e1effdeb05071210071d7d599a@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