Re: MS Stack, pairing no services by James
James
Wed Apr 16 16:28:58 CDT 2008
Hey Peter,
I tried your suggestion but the same thing happens. I can make a client app
on my HTC and connect and converse with a desk top (your C# remote app).
What I cannot do is use my head set?!
I dug through my registry and found the BTHPORT entries and also tried to
use though services. There are cached services for my two devices but I
cannot access/use them. I also tried the services under Local, Supported and
Services?!
Below is a snap shot of my registry (between the >>><<<):
>>>Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT]
"Type"=dword:00000001
"Start"=dword:00000003
"ErrorControl"=dword:00000001
"Tag"=dword:00000005
"ImagePath"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
72,00,69,00,76,00,65,00,72,00,73,00,5c,00,42,00,54,00,48,00,70,00,6f,00,72,\
00,74,00,2e,00,73,00,79,00,73,00,00,00
"DisplayName"="Bluetooth Port Driver"
"Group"="PNP Filter"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters]
"SecurityLevel"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Devices]
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Devices\000dfd1f09ab]
"DibServiceVersion"=dword:00020000
"COD"=dword:00240404
"Name"=hex:4d,6f,74,6f,72,6f,6c,61,20,53,39,00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Devices\000dfd1f09ab\CachedServices]
"00010000"=hex:36,00,59,09,00,00,0a,00,01,00,00,09,00,01,35,06,19,11,1e,19,12,\
03,09,00,04,35,0c,35,03,19,01,00,35,05,19,00,03,08,01,09,00,06,35,09,09,65,\
6e,09,00,6a,09,01,00,09,00,09,35,08,35,06,19,11,1e,09,01,05,09,01,00,25,0f,\
48,61,6e,64,73,2d,46,72,65,65,20,75,6e,69,74,09,03,11,09,00,1b
"00010001"=hex:36,00,50,09,00,00,0a,00,01,00,01,09,00,01,35,06,19,11,08,19,12,\
03,09,00,04,35,0c,35,03,19,01,00,35,05,19,00,03,08,02,09,00,06,35,09,09,65,\
6e,09,00,6a,09,01,00,09,00,09,35,08,35,06,19,11,08,09,01,00,09,01,00,25,07,\
48,65,61,64,73,65,74,09,03,02,28,01
"00010002"=hex:36,00,38,09,00,00,0a,00,01,00,02,09,00,01,35,03,19,11,0b,09,00,\
04,35,10,35,06,19,01,00,09,00,19,35,06,19,00,19,09,01,00,09,00,09,35,08,35,\
06,19,11,0d,09,01,00,09,03,11,09,00,01
"00010003"=hex:36,00,38,09,00,00,0a,00,01,00,03,09,00,01,35,03,19,11,0c,09,00,\
04,35,10,35,06,19,01,00,09,00,17,35,06,19,00,17,09,01,00,09,00,09,35,08,35,\
06,19,11,0e,09,01,00,09,03,11,09,00,02
"00010004"=hex:36,00,38,09,00,00,0a,00,01,00,04,09,00,01,35,03,19,11,0e,09,00,\
04,35,10,35,06,19,01,00,09,00,17,35,06,19,00,17,09,01,00,09,00,09,35,08,35,\
06,19,11,0e,09,01,00,09,03,11,09,00,01
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Devices\0017837115e0]
"DibServiceVersion"=dword:00020000
"COD"=dword:005a020c
"Name"=hex:4a,61,6d,65,73,20,44,65,76,69,74,74,00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Devices\0017837115e0\CachedServices]
"00000000"=hex:35,90,09,00,00,0a,00,00,00,00,09,00,01,35,03,19,10,00,09,00,04,\
35,0d,35,06,19,01,00,09,00,01,35,03,19,00,01,09,00,06,35,09,09,65,6e,09,00,\
6a,09,01,00,09,01,00,25,12,53,65,72,76,69,63,65,20,44,69,73,63,6f,76,65,72,\
79,00,09,01,01,25,25,50,75,62,6c,69,73,68,65,73,20,73,65,72,76,69,63,65,73,\
20,74,6f,20,72,65,6d,6f,74,65,20,64,65,76,69,63,65,73,00,09,01,02,25,0a,4d,\
69,63,72,6f,73,6f,66,74,00,09,02,00,35,03,09,01,00,09,02,01,0a,00,00,00,07
"00010000"=hex:35,5f,09,00,00,0a,00,01,00,00,09,00,01,35,03,19,11,0c,09,00,04,\
35,10,35,06,19,01,00,09,00,17,35,06,19,00,17,09,01,00,09,00,09,35,08,35,06,\
19,11,0e,09,01,00,09,01,00,25,22,41,75,64,69,6f,20,56,69,64,65,6f,20,52,65,\
6d,6f,74,65,20,43,6f,6e,74,72,6f,6c,20,50,72,6f,66,69,6c,65,09,03,11,09,00,\
01
"00010001"=hex:35,3b,09,00,00,0a,00,01,00,01,09,00,01,35,03,19,11,0a,09,00,04,\
35,10,35,06,19,01,00,09,00,19,35,06,19,00,19,09,01,00,09,00,09,35,08,35,06,\
19,11,0d,09,01,00,09,01,00,25,04,41,32,44,50
"00010002"=hex:35,7a,09,00,00,0a,00,01,00,02,09,00,01,35,11,1c,83,1c,40,71,7b,\
c8,4a,9c,a0,1c,15,df,25,a4,ad,bc,09,00,04,35,0c,35,03,19,01,00,35,05,19,00,\
03,08,01,09,00,06,35,09,09,65,6e,09,00,6a,09,01,00,09,00,09,35,16,35,14,1c,\
83,1c,40,71,7b,c8,4a,9c,a0,1c,15,df,25,a4,ad,bc,09,01,00,09,01,00,25,1d,41,\
63,74,69,76,65,20,53,79,6e,63,20,42,6c,75,65,74,6f,6f,74,68,20,53,65,72,76,\
69,63,65
"00010003"=hex:35,43,09,00,00,0a,00,01,00,03,09,00,01,35,06,19,11,12,19,12,03,\
09,00,04,35,0c,35,03,19,01,00,35,05,19,00,03,08,02,09,00,09,35,08,35,06,19,\
11,08,09,01,00,09,01,00,25,0d,56,6f,69,63,65,20,47,61,74,65,77,61,79
"00010004"=hex:35,4e,09,00,00,0a,00,01,00,04,09,00,01,35,06,19,11,1f,19,12,03,\
09,00,04,35,0c,35,03,19,01,00,35,05,19,00,03,08,04,09,00,09,35,08,35,06,19,\
11,1e,09,01,05,09,01,00,25,0d,56,6f,69,63,65,20,47,61,74,65,77,61,79,09,03,\
01,08,01,09,03,11,09,00,05
"00010005"=hex:35,49,09,00,00,0a,00,01,00,05,09,00,01,35,03,19,11,06,09,00,04,\
35,11,35,03,19,01,00,35,05,19,00,03,08,03,35,03,19,00,08,09,00,06,35,09,09,\
65,6e,09,00,6a,09,01,00,09,00,09,35,08,35,06,19,11,06,09,01,00,09,01,00,25,\
03,46,54,50
"00010006"=hex:35,61,09,00,00,0a,00,01,00,06,09,00,01,35,03,19,11,05,09,00,04,\
35,11,35,03,19,01,00,35,05,19,00,03,08,03,35,03,19,00,08,09,00,06,35,09,09,\
65,6e,09,00,6a,09,01,00,09,00,09,35,08,35,06,19,11,05,09,01,00,09,01,00,25,\
10,4f,42,45,58,20,4f,62,6a,65,63,74,20,50,75,73,68,09,03,03,35,06,08,01,08,\
02,08,03
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\LocalServices]
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\LocalServices\{00001101-0000-1000-8000-00805f9b34fb}]
"Count"=dword:000000ff
"Enabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\PerDevices]
@=""
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\PnpId]
"RFCOMM"="MS_RFCOMM"
"BTHBRB"="MS_BTHBRB"
"BTHPAN"="MS_BTHPAN"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Restrictions]
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Restrictions\COD
Major 05 Minor 10]
"DontAddIncomingSPPInWizard"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Restrictions\COD
Major 05 Minor 20]
"DontAddIncomingSPPInWizard"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Restrictions\COD
Major 05 Minor 30]
"DontAddIncomingSPPInWizard"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Restrictions\COD
Major 06 Minor 20]
"DontAddIncomingSPPInWizard"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Services]
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Services\{00000001-0000-1000-8000-00805f9b34fb}]
"SecurityFlags"=dword:00000002
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Services\{00001000-0000-1000-8000-00805f9b34fb}]
"SecurityFlags"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Services\{00001105-0000-1000-8000-00805f9b34fb}]
"SecurityFlags"=dword:00000002
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Services\{00001115-0000-1000-8000-00805f9b34fb}]
"SecurityFlags"=dword:00000002
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Services\{7a51fdc2-fddf-4c9b-affc-98bcd91bf93b}]
"SecurityFlags"=dword:00000002
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\SupportedServices]
"{00001124-0000-1000-8000-00805f9b34fb}"=dword:00000001
"{00001126-0000-1000-8000-00805f9b34fb}"=dword:00000001
"{00001103-0000-1000-8000-00805f9b34fb}"=dword:00000001
"{00001101-0000-1000-8000-00805f9b34fb}"=dword:00000001
<<<
"Peter Foot" <feedback@nospam-inthehand.com> wrote in message
news:DE45C115-14A4-4E3E-B3BD-8029FB0546C8@microsoft.com...
> Have you tried retrieving the records for a generic service/protocol guid
> e.g.
>
> btdevice.GetServiceRecords(InTheHand.Net.Bluetooth.L2CAPProtocol)
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVP
> www.peterfoot.net | www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> "James" <james_devitt@hotmail.comi> wrote in message
> news:13B88D32-D366-49A9-8268-5AA6655F7A17@microsoft.com...
>> Hello Peter,
>> You mean, when I add a new device and then click properties and then the
>> service tab it naturally will be empty? Ouch.
>>
>> I decided to use the DeviceInfo and GetServiceRecords but am doing
>> something wrong as each service I use fails with a socketexception -
>> "SocketException - No such service is known. The service cannot be found
>> in the specified name space." What am I missing?
>>
>> Below is the code I used. I even put the headset into discovery mode and
>> same result.
>>
>> Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
>> System.EventArgs) Handles Button2.Click
>>
>> 'Motorola S9
>> Dim btdevice As InTheHand.Net.Sockets.BluetoothDeviceInfo =
>> cmbDevices.SelectedItem
>>
>> 'Variety of services for the S9
>> 'Cut & Paste in service
>> Dim serviceHandsfree As New
>> System.Guid(InTheHand.Net.Bluetooth.BluetoothService.Handsfree.ToString)
>> Dim serviceHeadset As New
>> System.Guid(InTheHand.Net.Bluetooth.BluetoothService.Headset.ToString)
>> Dim serviceHandsfreeAudioGateway As New
>> System.Guid(InTheHand.Net.Bluetooth.BluetoothService.HandsfreeAudioGateway.ToString)
>> Dim serviceAudioSink As New
>> System.Guid(InTheHand.Net.Bluetooth.BluetoothService.AudioSink.ToString)
>> Dim serviceAudioSource As New
>> System.Guid(InTheHand.Net.Bluetooth.BluetoothService.AudioSource.ToString)
>>
>> 'for simplistic sake I cut & paste in the service -->
>> Dim records As InTheHand.Net.Bluetooth.ServiceRecord() =
>> btdevice.GetServiceRecords(serviceHandsfree)
>>
>> ' Dump each to console
>> For Each curRecord As InTheHand.Net.Bluetooth.ServiceRecord In
>> records
>>
>> MessageBox.Show(InTheHand.Net.Bluetooth.ServiceRecordUtilities.Dump(curRecord))
>> Next
>>
>> End Sub
>>
>>
>>
>>
>> "Peter Foot" <feedback@nospam-inthehand.com> wrote in message
>> news:A3663A49-B31B-4C4E-B448-F62CB2BBE62D@microsoft.com...
>>> In the windows dialogs only those services which XP/Vista supports are
>>> shown, excluding object push so if you try and pair with a headset it
>>> will not list the headset/handsfree service since it doesn't contain the
>>> necessary parts to enable audio over a bluetooth headset (The
>>> functionality was in a few Vista beta builds but was removed before the
>>> final release). The BluetoothDeviceInfo class (in the 32feet.NET
>>> library) has a GetServiceRecords method which allows you to do service
>>> discovery.
>>>
>>> Peter
>>>
>>> --
>>> Peter Foot
>>> Microsoft Device Application Development MVP
>>> www.peterfoot.net | www.inthehand.com
>>> In The Hand Ltd - .NET Solutions for Mobility
>>>
>>> "James" <james_devitt@hotmail.comi> wrote in message
>>> news:4733BD6A-CE4C-4EEE-AE31-A2432B8F81BC@microsoft.com...
>>>> Hello everyone,
>>>>
>>>> Did not see any Bluetooth forums hope others leaving Widcomm for
>>>> Microsoft stack have had this issue. I can pair devices but no services
>>>> are picked up? My Motorola S9's have two services, one for hands free
>>>> and another for headset - neither are found so I have a paired device
>>>> which does not work. Right clicking on the the blue icon in the sys
>>>> tray and selecting send a file works! I chose my HTC Touch and a file
>>>> and presto the file is sent. There are no services for this device
>>>> ether (Touch). I downloaded inthehand Bluetooth library and am able to
>>>> list all devices paired - and of course 0 services for all devices.
>>>>
>>>> I have removed my dongle and drivers, rebooted etc, to know avail -
>>>> pairing and no services found, every time?! Most websites with a
>>>> Microsoft stack issues report no activity at all.
>>>>
>>>> My Bluetooth adapter is from Trend net and is TBW-101UB version 3.
>>>> Under device manager:
>>>> Broadcom Ultimate Low Cost Bluetooth 2.0+EDR; 10/24/2006; 5.1.2535.0
>>>> Microsoft Bluetooth Enumerator; 8/3/2004; 5.1.2600.2180
>>>>
>>>> The only newer drivers are for vista (I'm still on XP)
>>>>
>>>> All thoughts & questions appreciated
>>>>
>>>>
>>>>
>>>
>