Author Topic: Can not disconnect completly my device from wclBluetoothHandsFreeClient  (Read 43079 times)

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Can not disconnect completly my device from wclBluetoothHandsFreeClient
« Reply #15 on: February 17, 2016, 03:00:28 PM »
Hi,

That was just a test solution. I am working on the way allows you to find all BS default running services and disconnect any of them. Should be ready closer to tonigh.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Can not disconnect completly my device from wclBluetoothHandsFreeClient
« Reply #16 on: February 18, 2016, 03:23:22 PM »
Hi,

Sorry for a little bit delay with update. I am having some problems with disconnecting already connected devices. As soon as I'll fix it i send you new version. I think just a few hours but probably one-two days.

mariluz.costa

  • Guest
Re: Can not disconnect completly my device from wclBluetoothHandsFreeClient
« Reply #17 on: February 22, 2016, 04:26:48 PM »
Don't worry Mike.

Thank you for trying helping me.

Mariluz

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Can not disconnect completly my device from wclBluetoothHandsFreeClient
« Reply #18 on: February 24, 2016, 07:10:47 AM »
Hello,

Please, try the attached version. Take a look on BluetoothDiscoveryDemo to find out how to control build-in Bluetooth services (BlueSoleil).

[attachment deleted by admin]

mariluz.costa

  • Guest
Re: Can not disconnect completly my device from wclBluetoothHandsFreeClient
« Reply #19 on: March 03, 2016, 03:32:56 PM »
Hello Mike,
I just test your new solution helping me to disconnect all services from the Bluetooth device.
Sorry for the delay, I encountered some difficulties on other issues.

I test with my solution and then with your demo, and the result remains the same: only one service is disconnected, the one I registered. The others registered by BlueSoleil itself are not disconnected. I believed so hard that it could be possible. But it seems that BlueSoleil it's a kind of непослушный ребёнок and wont listen.

I hope you got another idea  :)

Mariluz

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Can not disconnect completly my device from wclBluetoothHandsFreeClient
« Reply #20 on: March 03, 2016, 03:38:45 PM »
Hello,

I am not sure what you meant by "disconnecting" but current WCL version can only disable pre-defined (build-in) BlueSoleil services. There are few methods for that. Take a look on BluetoothDiscoveryDemo. WCL does nothing with already connected services except your application initiates the connection. And if so then your application must close the connection as well as it always must do for any hardware resource it allocated.

As I told it is more or lesss possible to find all existing connection (for BlueSoileil) and try to close them after discussing it with my developers we found that it is not reasonable and more it is even bad idea. Think what may happen if you connected to let say internet and then one of application decide to terminate it. Bad idea.

So all your application opened it must close. All what was opened by other applications must be closed by those applications.

However  to prevent connection to predefined services (AVRCP in your case) you can disable this default build-in service now by calling wclBluetoothRadio.StopServer() method (refer to the BluetoothDiscoveryDemo).

mariluz.costa

  • Guest
Re: Can not disconnect completly my device from wclBluetoothHandsFreeClient
« Reply #21 on: March 15, 2016, 03:24:36 PM »
Hi Mike,
Sorry for my silence, I was sick.
I completely agree with you on all points.
And wclBluetoothRadio.StopServer() method is exactly what I was looking for. I just tested it and it works fine in my application.

Thank you for your precious help.

Mariluz

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Can not disconnect completly my device from wclBluetoothHandsFreeClient
« Reply #22 on: March 15, 2016, 04:02:40 PM »
You are very welcome.

 

Sitemap 1 2 3 4 5 6 7