Skip to contentSkip to conversation

updating the PSM in SDP..

Bluez-devel Steffen Larsen 2 participants 5 messages Nov 20, 2004 – Dec 8, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi All,

Sorry if I have posted this twice. Put last time I did not see my mail come trough the mailing list.

I have used your examples in dund.c to make a proper SDP client that can advertise my protocol (L2CAP) and PSM correctly to the sdpd daemon. All the attributes looks correctly and functions ok. My question is now: How do I update my SDP record (more specifically the PSM attribute)?
I can't find any example or anything. Explaination or example files are appriciated! :-)

Thanks in advance..

/Steffen Larsen

maintainer
#1 lore raw

Hi Steffen,

Quoted 7 lines

I have used your examples in dund.c to make a proper SDP client that can advertise my protocol (L2CAP) and PSM correctly to the sdpd daemon. All the attributes looks correctly and functions ok. My question is now: How do I update my SDP record (more specifically the PSM attribute)?
I can't find any example or anything. Explaination or example files are appriciated! :-)

I never did this. If you change the PSM maybe it is a good idea to delete the old one and add a new record.

The library contains a sdp_record_update() function, but I never tried it so far.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw
Quoted 10 lines

Hi Steffen,

Quoted 7 lines

I have used your examples in dund.c to make a proper SDP client that can advertise my protocol (L2CAP) and PSM correctly to the sdpd daemon. All the attributes looks correctly and functions ok. My question is now: How do I update my SDP record (more specifically the PSM attribute)?
I can't find any example or anything. Explaination or example files are appriciated! :-)

Quoted 5 lines

I never did this. If you change the PSM maybe it is a good idea to delete the old one and add a new record.

The library contains a sdp_record_update() function, but I never tried it so far.

hmmm.. I tried this sdp_record_update() function, but I can't make it work. Anyone in here, who have tried it, where it actually worked? Well the deletion and adding a new record of cause works fine, but it could be nicer to have a update function instead. ;-)

/Steffen

-------------------------------------------------------
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
#3 lore raw

Hi Steffen,

Quoted 5 lines
Quoted 2 lines

The library contains a sdp_record_update() function, but I never tried it so far.

hmmm.. I tried this sdp_record_update() function, but I can't make it work. Anyone in here, who have tried it, where it actually worked?

then send me a patch for the library that makes it working.

Quoted 2 lines

Well the deletion and adding a new record of cause works fine, but it could be nicer to have a update function instead. ;-)

As I said, maybe changing a PSM and keeping the record is not a good idea. If you change the PSM then the service is also changed, right?

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

#4 lore raw
Quoted 6 lines

Hi Steffen,

Quoted 4 lines
Quoted 2 lines

The library contains a sdp_record_update() function, but I never tried it so far.

hmmm.. I tried this sdp_record_update() function, but I can't make it

work.

Quoted 3 lines
Quoted 1 line

Anyone in here, who have tried it, where it actually worked?

then send me a patch for the library that makes it working.

Surely I will.. But I have to have some spare time at first. :-)

Quoted 1 line
Quoted 1 line

Well the deletion and adding a new record of cause works fine, but it

could

Quoted 4 lines
Quoted 1 line

be nicer to have a update function instead. ;-)

As I said, maybe changing a PSM and keeping the record is not a good idea. If you change the PSM then the service is also changed, right?

Yes yes for sure.. But I wanted to change the attribute that contained the PSM integer value, through the update function.

/Steffen

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