Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: alexey_gusev on June 11, 2009, 03:59:03 PM

Title: wclBluetoothDiscovery.Discovery() never returns any results
Post by: alexey_gusev on June 11, 2009, 03:59:03 PM
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
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: Mike Petrichenko on June 11, 2009, 04:35:29 PM
What is WidComm version?

The Discovery method has Timeout parameter.
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: alexey_gusev 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]
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: Mike Petrichenko on June 12, 2009, 01:13:35 AM
Strange thing. I'll test and try to fix.
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: alexey_gusev 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 :)
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: Mike Petrichenko on June 12, 2009, 01:43:13 AM
Could you somehow send me the drivers used on your laptop?
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: alexey_gusev 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...
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: Mike Petrichenko on June 12, 2009, 09:10:04 AM
Thanks for the info. I'll try to download drivers an test
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: Mike Petrichenko 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.
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: alexey_gusev 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
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: alexey_gusev on June 14, 2009, 07:54:11 AM
if I can help in any way, please let me know.
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: alexey_gusev 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?
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: Mike Petrichenko on June 16, 2009, 06:44:19 PM
Timeout is in seconds. It hard depends on driver how the value will be processed.
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: alexey_gusev 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 :)
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: Mike Petrichenko 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.
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: alexey_gusev on July 04, 2009, 04:55:15 PM
Hello Mike,

any news about this issue? Should wclBluetoothDiscovery.Discovery(Radio,Timeout) just finish if Timeout is reached? I don't see it EVER worked :)

BR,
Alex
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: Mike Petrichenko on July 04, 2009, 05:03:32 PM
Timeout works only on stack which supports it. WidComm seems does not support such feature.
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: alexey_gusev on July 04, 2009, 05:07:50 PM
is it possible to terminate the discovery internally in WCL in such case? I just want to avoid adding unnecessary timers myself :)
Title: Re: wclBluetoothDiscovery.Discovery() never returns any results
Post by: Mike Petrichenko on July 04, 2009, 05:27:16 PM
It is possible by calling Terminate() method. But in this case you do not get discovered devices list. Any way, please try the attached wcl2wbt.dll. It may solve your problem. Simple, replace the old DLL with new one.

[attachment deleted by admin]