Skip to contentSkip to conversation

Hi all !

Bluez-devel Xavier Garreau 5 participants 7 messages Nov 25, 2004 – Nov 26, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

I'm currently teaching some students the bluetooth protocol stack

Next wednesday, we'll talk about bluetooth programming.

I have no problem with HCI, L2CAP or RFCOMM programming but I would like to advertise a custom service using sdp calls.

I never used sdp api, did any of you wrote some white paper about bluetooth programming involving sdp (i found http://www.holtmann.org/papers/bluetooth/wtc2003_slides.pdf but it's not dealing with sdp)

My sample app for the session will be a time server working on top of l2cap (PSM ccee) and I'd like to advertise it on sdp server. We'll also be talking of rfcomm stream sockets.

First week was a bluetooth introduction. The paper and slides can be found here (subject to changes, this is a temp directory, ok ?). There's a little problem with it, it's written in french :-/
http://www.xgarreau.org/temp/Uni-Master/

Regards,

Signature · 12 lines
Xavier Garreau <[email protected]>
http://www.xgarreau.org/


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#1 lore raw

Don't worry, there is some french out there ;)

Xavier Garreau a =E9crit :

Quoted 5 lines

I'm currently teaching some students the bluetooth protocol stack =20
Next wednesday, we'll talk about bluetooth programming.
=20
I have no problem with HCI, L2CAP or RFCOMM programming but I would lik=

e=20

Quoted 5 lines

to advertise a custom service using sdp calls.
=20
I never used sdp api, did any of you wrote some white paper about=20 bluetooth programming involving sdp (i found=20
http://www.holtmann.org/papers/bluetooth/wtc2003_slides.pdf but it's no=

t=20

Quoted 4 lines

dealing with sdp)
=20
My sample app for the session will be a time server working on top of=20 l2cap (PSM ccee) and I'd like to advertise it on sdp server. We'll also=

=20

Quoted 4 lines

be talking of rfcomm stream sockets.
=20
First week was a bluetooth introduction. The paper and slides can be=20 found here (subject to changes, this is a temp directory, ok ?). There'=

s=20

Quoted 4 lines

a little problem with it, it's written in french :-/
http://www.xgarreau.org/temp/Uni-Master/
=20
Regards,

--=20
Gabriel Guillon

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#2 lore raw
In reply to Xavier Garreau

Hi Xavier,

Quoted 7 lines

I'm currently teaching some students the bluetooth protocol stack

Next wednesday, we'll talk about bluetooth programming.

I have no problem with HCI, L2CAP or RFCOMM programming but I would like to advertise a custom service using sdp calls.

Quoted 8 lines

I never used sdp api, did any of you wrote some white paper about bluetooth programming involving sdp (i found
http://www.holtmann.org/papers/bluetooth/wtc2003_slides.pdf but it's not dealing with sdp)

My sample app for the session will be a time server working on top of l2cap (PSM ccee) and I'd like to advertise it on sdp server. We'll also be talking of rfcomm stream sockets.

the programs dund and pand show you how to advertise a SDP record.

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#3 lore raw
Quoted 3 lines
Quoted 1 line

I never used sdp api, did any of you wrote some white paper about bluetooth programming involving sdp (i found http://www.holtmann.org/papers/bluetooth/wtc2003_slides.pdf but it's not dealing with sdp)

the programs dund and pand show you how to advertise a SDP record.

Thank you very much Marcel, this was a useful answer, as usual !

I just have another (amybe silly) question ...

In bluez/pan/pand/sdp.c
function bnep_sdp_register

if sdp_record_register is succesful, the sdp_session is not closed whereas it is evrywhere else (when something fails).

Does it means that sdp_record_register closes the sdp_session when it is successful ? That would mean we need to di sdp_connect foreach record we have to add (I know, we usually only have only one to do at a time, but that seems "strange" to me)

Regards !
Xavier Garreau

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#4 lore raw

Hi Xavier,

Quoted 14 lines · Xavier Garreau
Quoted 6 lines
Quoted 4 lines

I never used sdp api, did any of you wrote some white paper about bluetooth programming involving sdp (i found
http://www.holtmann.org/papers/bluetooth/wtc2003_slides.pdf but it's not dealing with sdp)

the programs dund and pand show you how to advertise a SDP record.

Thank you very much Marcel, this was a useful answer, as usual !

I just have another (amybe silly) question ...

In bluez/pan/pand/sdp.c
function bnep_sdp_register

Quoted 7 lines

if sdp_record_register is succesful, the sdp_session is not closed whereas it is evrywhere else (when something fails).

Does it means that sdp_record_register closes the sdp_session when it is successful ? That would mean we need to di sdp_connect foreach record we have to add (I know, we usually only have only one to do at a time, but that seems "strange" to me)

I think this is a bug. The session should always be explicitly closed. Send in a patch :-)

Quoted 2 lines

Regards !
Xavier Garreau

Steve

Signature · 2 lines
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
[email protected] +353-1-6601315 (ext 209)
maintainer
#5 lore raw

Hi Steve,

Quoted 7 lines
Quoted 4 lines

Does it means that sdp_record_register closes the sdp_session when it is successful ? That would mean we need to di sdp_connect foreach record we have to add (I know, we usually only have only one to do at a time, but that seems "strange" to me)

I think this is a bug. The session should always be explicitly closed. Send in a patch :-)

actually it is not a bug. If you close the session the record would be unregistered. However this is still somekind of ugly programming :(

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#6 lore raw
In reply to Marcel Holtmann

Sorry for my previous mail, I just noticed the session is kept open until service record is unregistered ...

Regards...

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel