* [Bluez-users] Create Services using BlueZ
@ 2005-11-22 18:58 Arthur Chiu
2005-11-24 4:27 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Arthur Chiu @ 2005-11-22 18:58 UTC (permalink / raw)
To: Bluez-users
[-- Attachment #1: Type: text/plain, Size: 1072 bytes --]
Hi,
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?
2) Which test or sample tool contain example that handles service requests
(i saw sdptool only browses for services, not using them)
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?
4) Does L2CAP data format (those headers) = ACL data format? If not, what's
the difference?
Thanks for spending time on all these questions.
Cheers,
Arthur
[-- Attachment #2: Type: text/html, Size: 1162 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bluez-users] Create Services using BlueZ
2005-11-22 18:58 [Bluez-users] Create Services using BlueZ Arthur Chiu
@ 2005-11-24 4:27 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2005-11-24 4:27 UTC (permalink / raw)
To: bluez-users
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-24 4:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-22 18:58 [Bluez-users] Create Services using BlueZ Arthur Chiu
2005-11-24 4:27 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).