Author Topic: wclBluetoothDiscovery.Discovery() never returns any results  (Read 18418 times)

alexey_gusev

  • Guest
hello Mike,

what would you recommend to workaround/fix the following scenario:

- Widcomm BT stack, embedded BT adapter (some HP laptop)
- I start device discovery by calling wclBluetoothDiscovery.Discover()
- there are too many times when it never signals back, I've tried the same with BluetoothOPPClientDemo

As far as I understand there is no way to set a timeout for discovery (except doing it manually with timers etc).
Any ideas are appreciated.

BR,
Alex

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #1 on: June 11, 2009, 04:35:29 PM »
What is WidComm version?

The Discovery method has Timeout parameter.

alexey_gusev

  • Guest
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #2 on: June 12, 2009, 12:59:19 AM »
for the version - please see attached image

for the timeout - oops, my fault :)

[attachment deleted by admin]

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #3 on: June 12, 2009, 01:13:35 AM »
Strange thing. I'll test and try to fix.

alexey_gusev

  • Guest
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #4 on: June 12, 2009, 01:33:56 AM »
btw, Timeout parameter (I assume it's in seconds?) didn't help either, it just went nowhere. Rebooting the laptop usually helps in such cases, but it'd be nice to know what's the reason :)

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #5 on: June 12, 2009, 01:43:13 AM »
Could you somehow send me the drivers used on your laptop?

alexey_gusev

  • Guest
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #6 on: June 12, 2009, 01:47:12 AM »
this is HP EliteBook 8530w, I guess drivers should be on HP site. If you know exact filenames, I can copy them and send.

this (and previous) laptop is kind of good testing piece of metal, because eg now it's trying to connect to the phone it discovered and also doesn't return. Usually it works, but...

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #7 on: June 12, 2009, 09:10:04 AM »
Thanks for the info. I'll try to download drivers an test

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #8 on: June 13, 2009, 01:12:39 PM »
Hi,

I downloaded the drivers from HP site but unfortunatly it does not work with my external BT dongles. I will try to simulate the problem and fix the problem but it may take some time.

I am really sorry for delay with fixing the bug.

alexey_gusev

  • Guest
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #9 on: June 13, 2009, 02:19:00 PM »
no worries ;)

it would be really good to fix this issue as it is worrying a bit. usually it works, and mostly it works with BT dongles, but since it is at least second time when I see such problems with embedded BT hardware, it should be something in there

BR,
Alex

alexey_gusev

  • Guest
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #10 on: June 14, 2009, 07:54:11 AM »
if I can help in any way, please let me know.

alexey_gusev

  • Guest
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #11 on: June 16, 2009, 06:11:12 PM »
in addition to the previous posts, if I have my BT adapter in *bad* state (when it doesn't return results with WCL, but I can see them via Windows), wclBluetoothDiscovery.Discovery() with timeout parameter returns 0 as a return code, but again, never completes discovery within specified timeout.

What are the units for timeout value?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #12 on: June 16, 2009, 06:44:19 PM »
Timeout is in seconds. It hard depends on driver how the value will be processed.

alexey_gusev

  • Guest
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #13 on: June 16, 2009, 09:03:23 PM »
great. is there any way I could get some logs from WCL? I'm quite keen to resolve this issue or at least get some sensible behaviour instead of just infinite discovery. I understand that it may be anything - drivers, WCL or whatever else :)

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: wclBluetoothDiscovery.Discovery() never returns any results
« Reply #14 on: June 16, 2009, 09:06:26 PM »
Unfortunatly WCL doesn't provide any logs but you might get WCL sources and debug it step by step.

 

Sitemap 1 2 3 4 5 6 7