public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Nikita Tovstoles <Nikita.Tovstoles@Sun.COM>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] syntax for advertising a service with specific uuid
Date: Wed, 28 Apr 2004 14:46:11 -0700	[thread overview]
Message-ID: <40902623.8060509@sun.com> (raw)

Hello,

I'd like to create a client-server application in which a linux box 
(running bluez) will advertise a service by declaring a specific service 
uuid. the service needs to only be capable of sending / receiving 
strings so i'm assuming declaring a btspp service should be enough. that 
specific uuid will be embedded into a j2me midlet running on nokia 6600 
(implementing jsr-82). the midlet will then search for service using url 
of format:

"btspp://1234567890123456789012" (uuid *has* to be chars long - nokia's 
apparent implementation limitation).
so (correct me if i'm wrong )what i need is:
1.add Serial Port service via "sdptool add SP"
2.set attributeID 0x0003 (ServiceID) for the above Service Record to 
"1234567890123456789012"

correct?
i'm not sure of the sdptool syntax for step 2.

problem:
1.when i do step 1, i get "Serial Port registered". but, if i issue 
"sdptool get SP" afterwards, i get description of
"SDP Server" (0x1000). shouldn't it return something like "SerialPort" 
(0x1101)  - service class id for SerialPort per bt spec?
note: actually even if i issue "sdptool add LAN", subsequent "sdptool 
get LAN" returns same description as above.

2. also, i couldn't figure out exact syntax to accomplish step 2 above 
(set attribute):
sdptool setattr --help returns

"usage: sdptool get rec_handle attrib_id attrib_value", which seems not 
to be what i need to do...

thanks

-nikita

-- 
===================================
Nikita Tovstoles, MTS
Demolab (Executive Communications)
Sun Microsystems, Inc.
4170 Network Circle
USCA17, Office 3705
Mailstop USCA17-205
Santa Clara CA 95054
e-mail: nikita.tovstoles@sun.com
office: 408-276-5348 / x15348
cell: 650-996-8173
===================================



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

             reply	other threads:[~2004-04-28 21:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-28 21:46 Nikita Tovstoles [this message]
2004-04-28 22:19 ` [Bluez-devel] syntax for advertising a service with specific uuid Marcel Holtmann
     [not found]   ` <409032AC.4020906@sun.com>
2004-04-28 22:48     ` Marcel Holtmann

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=40902623.8060509@sun.com \
    --to=nikita.tovstoles@sun.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