Skip to contentSkip to conversation

adding sdp service record attributes

Bluez-users Ka Kin Cheung 2 participants 2 messages Mar 19, 2005 – Mar 22, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi Marcel!
I've set the SDP service profile and the
attributes for headset and set the class of my computer to headset. Then my T610 can search my Linux PC as headset. However, when I pressed "connect" item, the phone tried to connect to the PC, but then the phone showed "Bluetooth connection failed". Is there any thing that I need to set in my PC, or how to modify my sdp program so that the phone can connect to PC?
My steps are as follows:
1.run my sdp program to add service and set the attributes.
2.change the class of my PC to be the one of headset. 3.let T610 to search my PC and then connect to PC.
Is there anything wrong here?
Thank you very much.
Michael

Quoted 35 lines · --- Marcel Holtmann

Hi Andreas,

Quoted 1 line
Quoted 1 line

1.Is there any extra thing I have to put so that

the

Quoted 4 lines
Quoted 2 lines

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 1 line
Quoted 1 line

2.After I add the service record and attribute,

I wish

Quoted 1 line
Quoted 1 line

to let T610 to search my PC as headset. So, is

there

Quoted 3 lines
Quoted 1 line

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

Quoted 1 line

have a look into the hcid config file.

You must set yourself to the headset class of device (0x200404).

Quoted 1 line
Quoted 1 line

3.Is it possible that to browse the services in

T610,

Quoted 4 lines
Quoted 2 lines

and even other mobile devices, and then add the
service records and attributes automatically?

Where? In our own SDP database? What would you

Quoted 13 lines

like to reach with those?

No it is not possible and it also makes no sense at all.

Regards

Marcel

-------------------------------------------------------

Quoted 6 lines

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

Quoted 4 lines

_______________________________________________
Bluez-users mailing list
[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 1 line

_______________________________________________________________________
Yahoo! 工具列 - 內置防止彈出視窗工能!
http://toolbar.yahoo.com.hk

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

#1 lore raw
Quoted 11 lines · Ka Kin Cheung <michaelhku2002 <at> yahoo.com.hk> writes:

Hi Marcel!
I've set the SDP service profile and the
attributes for headset and set the class of my computer to headset. Then my T610 can search my Linux PC as headset. However, when I pressed "connect" item, the phone tried to connect to the PC, but then the phone showed "Bluetooth connection failed". Is there any thing that I need to set in my PC, or how to modify my sdp program so that the phone can connect to PC?

Quoted 9 lines

My steps are as follows:
1.run my sdp program to add service and set the attributes.
2.change the class of my PC to be the one of headset. 3.let T610 to search my PC and then connect to PC.
Is there anything wrong here?
Thank you very much.
Michael

Hi,
After initialising the rfcomm connection (phone to PC; phone gets the setup data via sdp from pc) the phone tries to initialize the "HS/HF-connection" via AT-commands - as I know.

You should have a look to the following pages regarding HF and HS support over BT too:

http://bluetooth-alsa.sourceforge.net/
http://www.crazygreek.co.uk/content/chan_bluetooth
http://www.soft.uni-linz.ac.at/_wiki/tiki-index.php?page=ProjectBluezHandsfree

Regards
Andreas

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