Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: arkgroup on October 02, 2012, 08:24:32 PM

Title: unable connect: 44
Post by: arkgroup on October 02, 2012, 08:24:32 PM
I am using demo\c#\20\BluetoothClientDemo\.  Windows XP, VS 2010.
Discover works fine, when click Connect, have error : Unable connect: 44
Please help.

Thanks
Title: Re: unable connect: 44
Post by: arkgroup on October 02, 2012, 08:35:53 PM
I am using lenovo laptop with ThinkPad BlueTooth 2.1 With Enhanced Data Rate II
Title: Re: unable connect: 44
Post by: Mike Petrichenko on October 03, 2012, 12:01:43 AM
Hello,

Error 44 (WCL_E_SERVICE_NOT_FOUND) means that device doesn't support service you want connect to (all the error codes are described in WCL doc). Demo uses SPP or DUN to connect to device.
Title: Re: unable connect: 44
Post by: arkgroup on October 03, 2012, 01:43:24 PM
My phone is Samsung Replenish and it has support for SPP. I can connect using My Bluetooth Places, but not in demo.
Maybe something is missing in my laptop?
Title: Re: unable connect: 44
Post by: Mike Petrichenko on October 03, 2012, 01:47:15 PM
Did you select SPP in demo before connect? Also, have you paired phone with PC?
Title: Re: unable connect: 44
Post by: arkgroup on October 03, 2012, 03:10:04 PM
Yes, I did all that. Is anything else I can try?
Title: Re: unable connect: 44
Post by: Mike Petrichenko on October 03, 2012, 05:16:46 PM
Please, run BluetoothDiscovery demo and check what services are available on cell.
Title: Re: unable connect: 44
Post by: arkgroup on October 03, 2012, 05:34:18 PM
Thanks. You were right, I don't see SPP
Here is the services list:

Headset Gateway
SMS
Object Push
AV Remote Control
BRCM Advanced Audio
OBEX File Transfer

So, I cannot use your library?
Title: Re: unable connect: 44
Post by: Mike Petrichenko on October 03, 2012, 05:46:47 PM
It depends on what you need. Your device doesn't support SPP or DUN services (BTClient demo works only with those 2 services just to show how to organize basic communication with device) (interesting, what's SMS service UUID?) but it supports OBEX so you can send files to your device (Check OPPClientDemo)
Title: Re: unable connect: 44
Post by: arkgroup on October 04, 2012, 01:25:51 PM
Here is SMS UUID
00001132-0000-1000-8000-00805f9b34b
I have project that will count how many times per day person with mobile phone entered room with desktop. Any help or sample code would be appreciated.

Thanks
Title: Re: unable connect: 44
Post by: Mike Petrichenko on October 04, 2012, 01:53:56 PM
Hello,

Will check what SMS service is by its UUID. Interesting :).

With regards your task. Use IsInRange method (BluetoothDiscoveryDemo).