public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Hi all !
@ 2004-11-25 16:12 Xavier Garreau
  2004-11-25 16:42 ` GUILLON Gabriel
  2004-11-25 22:52 ` Marcel Holtmann
  0 siblings, 2 replies; 7+ messages in thread
From: Xavier Garreau @ 2004-11-25 16:12 UTC (permalink / raw)
  To: bluez-devel@lists.sourceforge.net

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,
-- 
Xavier Garreau <xavier@xgarreau.org>
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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] Hi all !
  2004-11-25 16:12 [Bluez-devel] Hi all ! Xavier Garreau
@ 2004-11-25 16:42 ` GUILLON Gabriel
  2004-11-25 22:52 ` Marcel Holtmann
  1 sibling, 0 replies; 7+ messages in thread
From: GUILLON Gabriel @ 2004-11-25 16:42 UTC (permalink / raw)
  To: bluez-devel

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

Xavier Garreau a =E9crit :
> 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
> 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
> 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
> 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
> 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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] Hi all !
  2004-11-25 16:12 [Bluez-devel] Hi all ! Xavier Garreau
  2004-11-25 16:42 ` GUILLON Gabriel
@ 2004-11-25 22:52 ` Marcel Holtmann
  2004-11-26  9:16   ` Xavier Garreau
  2004-11-26  9:18   ` Xavier Garreau
  1 sibling, 2 replies; 7+ messages in thread
From: Marcel Holtmann @ 2004-11-25 22:52 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Xavier,

> 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.

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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] Hi all !
  2004-11-25 22:52 ` Marcel Holtmann
@ 2004-11-26  9:16   ` Xavier Garreau
  2004-11-26 11:48     ` Stephen Crane
  2004-11-26  9:18   ` Xavier Garreau
  1 sibling, 1 reply; 7+ messages in thread
From: Xavier Garreau @ 2004-11-26  9:16 UTC (permalink / raw)
  To: bluez-devel

>>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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] Hi all !
  2004-11-25 22:52 ` Marcel Holtmann
  2004-11-26  9:16   ` Xavier Garreau
@ 2004-11-26  9:18   ` Xavier Garreau
  1 sibling, 0 replies; 7+ messages in thread
From: Xavier Garreau @ 2004-11-26  9:18 UTC (permalink / raw)
  To: bluez-devel

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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] Hi all !
  2004-11-26  9:16   ` Xavier Garreau
@ 2004-11-26 11:48     ` Stephen Crane
  2004-11-26 17:21       ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Crane @ 2004-11-26 11:48 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]

Hi Xavier,

On Fri, 2004-11-26 at 10:16 +0100, Xavier Garreau wrote:
> >>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)

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

> Regards !
> Xavier Garreau

Steve
-- 
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
steve.crane@rococosoft.com +353-1-6601315 (ext 209)

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] Hi all !
  2004-11-26 11:48     ` Stephen Crane
@ 2004-11-26 17:21       ` Marcel Holtmann
  0 siblings, 0 replies; 7+ messages in thread
From: Marcel Holtmann @ 2004-11-26 17:21 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Steve,

> > 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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-11-26 17:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-25 16:12 [Bluez-devel] Hi all ! Xavier Garreau
2004-11-25 16:42 ` GUILLON Gabriel
2004-11-25 22:52 ` Marcel Holtmann
2004-11-26  9:16   ` Xavier Garreau
2004-11-26 11:48     ` Stephen Crane
2004-11-26 17:21       ` Marcel Holtmann
2004-11-26  9:18   ` Xavier Garreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox