* service search for headset
@ 2009-12-23 10:00 bluezprofile kernel
2009-12-23 10:01 ` bluezprofile kernel
2009-12-23 10:19 ` Iain Hibbert
0 siblings, 2 replies; 5+ messages in thread
From: bluezprofile kernel @ 2009-12-23 10:00 UTC (permalink / raw)
To: linux-bluetooth
Hi,
I am trying to get the service of the remote device. I have used
sdptool browse <remote mac>
to get the list of services supported by the remote device.
I have done between two laptops and I am able to see the services available.
When I do the same for my hands free device, I am not able to get the
service details of handsfree unit.
I have debugged this using sdptool application source.
sdptool application sends the attribute request to the hands free
device, in the reply I am not getting anything. (sdp_send_req and sdp_read_rsp)
sdptool record <remote mac> works fine.
sdptool browse --l2cap <remote mac> also works fine
Why --l2cap option required. Please any one explain me.
In my blueman application it shows the list of services when I pair.
Are they using record mechanism to display services?
Any one please help me in this regard.
I have used bluez 5.58
Nic Shen
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: service search for headset
2009-12-23 10:00 service search for headset bluezprofile kernel
@ 2009-12-23 10:01 ` bluezprofile kernel
2009-12-23 10:19 ` Iain Hibbert
1 sibling, 0 replies; 5+ messages in thread
From: bluezprofile kernel @ 2009-12-23 10:01 UTC (permalink / raw)
To: linux-bluetooth
On Wed, Dec 23, 2009 at 3:30 PM, bluezprofile kernel
<bluezprofile@gmail.com> wrote:
> Hi,
> I am trying to get the service of the remote device. I have used
> sdptool browse <remote mac>
> to get the list of services supported by the remote device.
>
> I have done between two laptops and I am able to see the services available.
> When I do the same for my hands free device, I am not able to get the
> service details of handsfree unit.
> I have debugged this using sdptool application source.
> sdptool application sends the attribute request to the hands free
> device, in the reply I am not getting anything. (sdp_send_req and sdp_read_rsp)
>
> sdptool record <remote mac> works fine.
> sdptool browse --l2cap <remote mac> also works fine
> Why --l2cap option required. Please any one explain me.
>
> In my blueman application it shows the list of services when I pair.
> Are they using record mechanism to display services?
> Any one please help me in this regard.
>
> I have used bluez 5.58
> Nic Shen
>
Sorry it is bluez 4.58
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: service search for headset
2009-12-23 10:00 service search for headset bluezprofile kernel
2009-12-23 10:01 ` bluezprofile kernel
@ 2009-12-23 10:19 ` Iain Hibbert
2009-12-23 11:10 ` bluezprofile kernel
1 sibling, 1 reply; 5+ messages in thread
From: Iain Hibbert @ 2009-12-23 10:19 UTC (permalink / raw)
To: bluezprofile kernel; +Cc: linux-bluetooth
On Wed, 23 Dec 2009, bluezprofile kernel wrote:
> I have done between two laptops and I am able to see the services available.
> When I do the same for my hands free device, I am not able to get the
> service details of handsfree unit.
> I have debugged this using sdptool application source.
> sdptool application sends the attribute request to the hands free
> device, in the reply I am not getting anything. (sdp_send_req and sdp_read_rsp)
All that a "browse" does is start searching for the "Browse Group Root"
UUID and if the handsfree device doesn't provide that UUID in any of the
records then it will return no results when you search for it. Many
devices don't provide "Browse Groups" at all (see SDP specification),
probably your handsfree is like that.
Searching for L2CAP will usually suffice to find all of the (relevant)
service records in a Bluetooth environment, as most bluetooth protocols
operate over L2CAP.
iain
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: service search for headset
2009-12-23 10:19 ` Iain Hibbert
@ 2009-12-23 11:10 ` bluezprofile kernel
2009-12-23 12:02 ` Iain Hibbert
0 siblings, 1 reply; 5+ messages in thread
From: bluezprofile kernel @ 2009-12-23 11:10 UTC (permalink / raw)
To: Iain Hibbert; +Cc: linux-bluetooth
On Wed, Dec 23, 2009 at 3:49 PM, Iain Hibbert <plunky@rya-online.net> wrote:
> On Wed, 23 Dec 2009, bluezprofile kernel wrote:
>
>> I have done between two laptops and I am able to see the services available.
>> When I do the same for my hands free device, I am not able to get the
>> service details of handsfree unit.
>> I have debugged this using sdptool application source.
>> sdptool application sends the attribute request to the hands free
>> device, in the reply I am not getting anything. (sdp_send_req and sdp_read_rsp)
>
> All that a "browse" does is start searching for the "Browse Group Root"
> UUID and if the handsfree device doesn't provide that UUID in any of the
> records then it will return no results when you search for it. Many
> devices don't provide "Browse Groups" at all (see SDP specification),
> probably your handsfree is like that.
>
> Searching for L2CAP will usually suffice to find all of the (relevant)
> service records in a Bluetooth environment, as most bluetooth protocols
> operate over L2CAP.
>
> iain
>
>
>
Thanks for your help. I will refer the SDP spec.
Do I need to use --l2cap option for finding service for such cases? Is
this mandatory?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: service search for headset
2009-12-23 11:10 ` bluezprofile kernel
@ 2009-12-23 12:02 ` Iain Hibbert
0 siblings, 0 replies; 5+ messages in thread
From: Iain Hibbert @ 2009-12-23 12:02 UTC (permalink / raw)
To: bluezprofile kernel; +Cc: linux-bluetooth
On Wed, 23 Dec 2009, bluezprofile kernel wrote:
> Do I need to use --l2cap option for finding service for such cases? Is
> this mandatory?
Sorry I don't really know, and it appears to be undocumented..
iain
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-12-23 12:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-23 10:00 service search for headset bluezprofile kernel
2009-12-23 10:01 ` bluezprofile kernel
2009-12-23 10:19 ` Iain Hibbert
2009-12-23 11:10 ` bluezprofile kernel
2009-12-23 12:02 ` Iain Hibbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).