adding sdp service record attributes
Hi all!
I've coded myself about how to add SDP services
and its attributes. But everytime I reboot Linux, the service record handle and attribute do not exist, so I have to run my program every time so that the record and attribute are set. Also, even though I added the headset service in my PC, T610 still searched my PC as computer, not headset instead. So, I wish to ask 3 questions:
1.Is there any extra thing I have to put so that the service record and attributes are set in my PC permanently and not being erased after reboot? 2.After I add the service record and attribute, I wish to let T610 to search my PC as headset. So, is there any extra thing that I have to put in my code? 3.Is it possible that to browse the services in T610, and even other mobile devices, and then add the service records and attributes automatically?
Attached is my code that I've written referencing
to sdptool.c. Hope you can give me solution about it. Thank you very much.
Michael
_______________________________________________________________________
Yahoo! 工具列 - 內置防止彈出視窗工能!
http://toolbar.yahoo.com.hk
Quoted 3 lines · Ka Kin Cheung <michaelhku2002 <at> yahoo.com.hk> writes:
1.Is there any extra thing I have to put so that the service record and attributes are set in my PC permanently and not being erased after reboot?
Small shell script ?
Quoted 3 lines
2.After I add the service record and attribute, I wish to let T610 to search my PC as headset. So, is there any extra thing that I have to put in my code?
I guess you has to change your device class of your BT-device to phone. Please have a look into the hcid config file.
Quoted 3 lines
3.Is it possible that to browse the services in T610, and even other mobile devices, and then add the service records and attributes automatically?
Where? In our own SDP database? What would you like to reach with those?
-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Andreas,
Quoted 5 lines
Quoted 3 lines
1.Is there any extra thing I have to put so that the service record and attributes are set in my PC permanently and not being erased after reboot?
Small shell script ?
there is no shell script needed, because if you wanna run a server then you need to write a program (and start it) that fulfils this job. The same program can create the SDP record when it starts.
Quoted 6 lines
Quoted 3 lines
2.After I add the service record and attribute, I wish to let T610 to search my PC as headset. So, is there any extra thing that I have to put in my code?
I guess you has to change your device class of your BT-device to phone. Please have a look into the hcid config file.
You must set yourself to the headset class of device (0x200404).
Quoted 5 lines
Quoted 3 lines
3.Is it possible that to browse the services in T610, and even other mobile devices, and then add the service records and attributes automatically?
Where? In our own SDP database? What would you like to reach with those?
No it is not possible and it also makes no sense at all.
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users