Author Topic: BluetoothdiscoveryDemo does not find widcomm device  (Read 23607 times)

Jov

  • Guest
BluetoothdiscoveryDemo does not find widcomm device
« on: July 31, 2012, 05:38:37 PM »
Hi,

my laptop has a widcomm bluetooth radio using broadcom driver version 5.1.0.4601 (for the Bluetooth Bus Enumerator device - btkrnl.sys). I am running Windows XP SP3. Bluetooth seems to work fine, I can also enumerate the devices with the Broadcom Bluetooth SDK.

When I start BluetoothdiscoveryDemo it does not find any radios. It just pops up a message box that says "Nothing found".

Any ideas?

Thank you

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: BluetoothdiscoveryDemo does not find widcomm device
« Reply #1 on: July 31, 2012, 07:02:22 PM »
Hi,

If may appear because you don't have wcl2wbt.dll which is required when WCL works with WidComm. It is located in WCL\Redist folder.

Jov

  • Guest
Re: BluetoothdiscoveryDemo does not find widcomm device
« Reply #2 on: August 01, 2012, 09:54:30 AM »
Hi Mike,

I had already found a mention for that somewhere and checked if the DLL was loaded. To be certain, I copied it to the build directory.

I have included the loading sequence as running it under VS2008 shows it:

Quote
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WCL\MFC\demo\BluetoothDiscoveryDemo\build\BluetoothDiscoveryDemo.exe', Symbols loaded.
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugMFC_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_2a62a75b\mfc90ud.dll', Symbols loaded.
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcr90d.dll', Symbols loaded.
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\user32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\secur32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\msimg32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\ole32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WCL\MFC\demo\BluetoothDiscoveryDemo\build\wcl.dll', Binary was not built with debug information.
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_31a54e43\msvcr90.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_31a54e43\msvcp90.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\shimeng.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\imm32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.MFCLOC_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_730c3508\mfc90enu.dll', Binary was not built with debug information.
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\shimeng.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\version.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\version.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\apphelp.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\msctfime.ime'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\hid.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\wintrust.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\wlanapi.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\wzcsapi.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\rtutils.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\bthprops.cpl'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\devmgr.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\mpr.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\shell32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\version.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\wmi.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\wbtapi.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\msi.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\mfc42.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\msvcp60.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\mfc42loc.dll', Binary was not built with debug information.
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\wbtapi.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\msvcp60.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\mfc42.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\msi.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\mfc42loc.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WCL\MFC\demo\BluetoothDiscoveryDemo\build\wcl2wbt.dll', Binary was not built with debug information.
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\mfc42.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\wbtapi.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\msi.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\msvcp60.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\wtsapi32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\winsta.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll'
'BluetoothDiscoveryDemo.exe': Loaded 'C:\WINDOWS\system32\mfc42loc.dll', Binary was not built with debug information.
The thread 'Win32 Thread' (0x1730) has exited with code 0 (0x0).
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WCL\MFC\demo\BluetoothDiscoveryDemo\build\wcl2wbt.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\wtsapi32.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\winsta.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\netapi32.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\wbtapi.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\msvcp60.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\msi.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\mfc42.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\bthprops.cpl'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\devmgr.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\wmi.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\version.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\shell32.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\mpr.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\mfc42loc.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\wlanapi.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\wzcsapi.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\rtutils.dll'
'BluetoothDiscoveryDemo.exe': Unloaded 'C:\WINDOWS\system32\hid.dll'
The thread 'Win32 Thread' (0xe4c) has exited with code 2 (0x2).
The program '[0x14D0] BluetoothDiscoveryDemo.exe: Native' has exited with code 2 (0x2).

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: BluetoothdiscoveryDemo does not find widcomm device
« Reply #3 on: August 01, 2012, 10:01:27 AM »
Hi,

Its a little bit strange. Could you please tell me more information about your laptop so I can download the driver version you use from official vendor site and check it here (I have only 5.1.0.1100 and 5.5.0.3200, would be great to test it with exactly your version)?

Jov

  • Guest
Re: BluetoothdiscoveryDemo does not find widcomm device
« Reply #4 on: August 01, 2012, 10:30:56 AM »
Hi Mike,

as far as I can tell, it is http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=be&prodTypeId=321957&prodSeriesId=3357377&prodNameId=3357378&swEnvOID=1093&swLang=13&mode=2&taskId=135&swItem=ob-57457-1 . The laptop is a HP 6910p.

I haven't installed this to see if this matches what is on my system but a version of this software is definitely installed. The driver date on the "Bluetooth Bus Enumerator" device is 20/11/2007 and the driver version is 5.1.0.4601. The "HP Integrated Module with Bluetooth 2.0 Wireless Technology" device is from 3/12/2007 and has driver version 5.1.0.4800.
« Last Edit: August 01, 2012, 10:37:26 AM by Jov »

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: BluetoothdiscoveryDemo does not find widcomm device
« Reply #5 on: August 01, 2012, 10:40:05 AM »
Thanks a lot. I'll download it and test here. Will back to you with my result and possible fixes.

P.S. By the way, WCL includes 2 wcl2wbt.dlls: OLD and NEW. Try to use OLD (from redist\old folder) instead of NEW one used by default (they use different versions of WD SDK and the new one may not work correctly with old WD drivers).

Jov

  • Guest
Re: BluetoothdiscoveryDemo does not find widcomm device
« Reply #6 on: August 01, 2012, 10:57:36 AM »

That helped! I used the old DLL and now I can detect the device. "Connectable" and "Discoverable" show "Error 4" as column content though. Detected devices show "Error 40" as "RSSI".

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: BluetoothdiscoveryDemo does not find widcomm device
« Reply #7 on: August 01, 2012, 11:00:10 AM »
Error 4 == WCL_E_FEATURE_NOT_SUPPORTED. WidComm doesn't support that properties.

Error 40 == WCL_E_NOT_CONNECTED: WidComm requires that device is connected to be able to measure its RSSI. WCL trys to simulate connection with enumerationg services on a remote device and try to measure RSSI during its enumerating. But its not good way because hard to "catch" the moment when device is connected. So the best way is connect to device and then read RSSI.

By the way, if you do not need Bluetooth 2.1 authentication (SSP) then you can simple use OLD wcl2wbt.dll - it works with ALL WidComm drivers version.

Jov

  • Guest
Re: BluetoothdiscoveryDemo does not find widcomm device
« Reply #8 on: August 01, 2012, 12:07:13 PM »

I'm not sure I can continue using the old DLL but for now, it'll do to get something up and running.

Thank you for your excellent support.

 

Sitemap 1 2 3 4 5 6 7