All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Create Services using BlueZ
Date: Thu, 24 Nov 2005 05:27:29 +0100	[thread overview]
Message-ID: <1132806449.5982.27.camel@blade> (raw)
In-Reply-To: <7846f1440511221058lbfe6ff1g951ea529e4152af0@mail.gmail.com>

Hi Arthur,

> I am currently trying to create a server that will response to
> bluetooth request. The client will be in Java. Since the client need
> to search for devices and services before connecting, I need to create
> services on the server side. I am trying to have the client sending
> "Hello World" to the server.
> 
> My questions:
> 1) Can I create custom services like "hello world service" or it must
> be from the list of services shown in sdptool? How can I do so?

you need to create your own service record using your own UUID-128 for
identification.

> 2) Which test or sample tool contain example that handles service
> requests (i saw sdptool only browses for services, not using them)

The service records are only information about the service and not the
service itself. Tools like l2test and rctest work without any service
record descriptions.

> 3) What kind of headers would I need to attach in front of data if I
> want to communicate with standard devices (like phones). I see in
> l2test.c that the L2CAP format contains 4 bytes of sequence number and
> 2 bytes of data length. What other information are there if I need to
> send things through SDP? 

Nothing. The SDP doesn't contain any information about the protocol. I
may tell you the L2CAP PSM or RFCOMM channel number, but that's it.

> 4) Does L2CAP data format (those headers) = ACL data format? If not,
> what's the difference? 

You can use L2CAP as a SOCK_SEQPACKET and RFCOMM as SOCK_STREAM. For
more information about L2CAP and RFCOMM in general, read the Bluetooth
specification. For the rest check the source of l2test or rctest.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      reply	other threads:[~2005-11-24  4:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22 18:58 [Bluez-users] Create Services using BlueZ Arthur Chiu
2005-11-24  4:27 ` 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=1132806449.5982.27.camel@blade \
    --to=marcel@holtmann.org \
    --cc=bluez-users@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.