public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: "Claudio Takahasi" <cktakahasi@gmail.com>
To: "BlueZ development" <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Serial server problems
Date: Tue, 27 Nov 2007 11:18:39 -0300	[thread overview]
Message-ID: <e1effdeb0711270618w5e1b6fck4ce0484ea124a155@mail.gmail.com> (raw)
In-Reply-To: <5c1c70820711141825g6c9e27ecm51c00272bad6d7fd@mail.gmail.com>

On Nov 14, 2007 11:25 PM, Pooyan McSporran <duckfreezone@gmail.com> wrote:
> (I'm unclear on which list, either bluez-devel or bluez-users, this
> query should be on.  Let me know if I've sent to the wrong list.)
>
> I'm trying to write an application using BlueZ which will:
> - advertise a service, based on SPP (custom UUID, etc)
> - listen for incoming connections for that service
> - when an inbound connection is requested, create the connection
> - send data to/from on the connection
>
> I'm having problems trying to work out how to do this using the DBus
> interface.  I've browsed through the Wiki (http://wiki.bluez.org) but
> all the examples that I've found seem to be from the client
> perspective, not a server.  (Correct me if I'm wrong.)  The only
> server example I found is for the network service, not the serial
> service.  Similarly, the 'test-serial' python script only implements a
> client.
>
> The approximate sequence of actions that I'm currently
> (unsuccessfully!) using is:
> - Determine the default adapter (DefaultAdapter())
> - add the service (AddServiceRecordFromXML())
> - activate the serial service (ActivateService ("serial"))
>
> The service is then visible to remote devices (so far so good!)
>
> - create a proxy (serial.Manager.CreateProxy (uuid, "/dev/rfcomm0"))
>
> This is where I'm obviously missing some basic stuff, I'm not sure in
> this area (with ports, proxies, etc).  Any help that people might have
> in this regard would be appreciated.
>
> Thank you.

Hi Pooyan,

The address is wrong. Here are some examples:
TTY proxy: "/dev/ttyS0"
Unix socket: "/tmp/gps-data"
Unix socket(abstract namespace): "x00/org/bluez/echo"

I will try update the BlueZ wiki with some unix socket proxy examples.

BR,
Claudio.
-- 
---------------------------------------------------------
Claudio Takahasi
Instituto Nokia de Tecnologia - INdT

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2007-11-27 14:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-15  2:25 [Bluez-devel] Serial server problems Pooyan McSporran
2007-11-27 14:18 ` Claudio Takahasi [this message]
2007-11-27 22:26   ` Pooyan McSporran
  -- strict thread matches above, loose matches on Subject: below --
2007-11-16  5:55 Pooyan McSporran
2007-11-26  6:38 ` Marcel Holtmann
2007-11-26 21:59   ` Pooyan McSporran

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=e1effdeb0711270618w5e1b6fck4ce0484ea124a155@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