Re: headset service search problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 6 Nov 2009, nirav rabara wrote:

> I have been trying to search only headset devices among other
> bluetooth devices using SDP.
>
> Problem - 1)
>
> -> when I search for UUID 0x1108 (for headset). It shows me mobile
> devices also because it support headset service
>    Is there any other way to search  particularly for headset only??

Well, you could do a device inquiry first and filter the responses using
the "Class of Device" value. A headset will claim to be an AV device
(major #4) rather than a Phone (major #2). See section 5.5.1 in the
Headset Profile specification..

Then, you can probe the devices you find and check for "Headset" in the
service class attributes but that might only apply to version 1.0 of the
HSP specification because the newer profile (v1.2) seems to provide
different UUIDs for "Headset HS" (0x1131), "Headset AG" (0x1112) and
"Headset Profile" (0x1108)

> Problem - 2)
>
> -> when I search for the search for the service(headset). Bluetoothd
> is going to get PIN no. because sometimes link key gets fail (in case
> of new headset device whose is getting connected first time ).
> -> Why bluetoothd need PIN when I am try to search for the service.
> (not connecting)
>
> Is there any way to search for the services without entering PIN ??

If the remote device requires authentication, then no.

iain


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux