BLE Connection Issue

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
11 posts / 0 new
Last post
johrirj88
Offline
Last seen: 10 months 6 days ago
Joined: 2020-02-17 11:43
BLE Connection Issue

Hi,

We are using BLE peripheral example code, from SDK which is working, but we have following situation:

We need BLE to be enabled and connected once a connection is established with a mobile app, which, as of now is disconnecting after around 10 seconds.
1. For how much time a task executes when it is created using OS_TASK_CREATE() function?
2. We need to execute it for infinite amount of time, how to do this?
3. Please share SDK manual which can explain other related queries on the functions used?

Please help in this regard asap.

Thanks and Regards

Raj Johri

Keywords: 
Device: 
PM_Dialog
Offline
Last seen: 1 month 1 week ago
Staff
Joined: 2018-02-08 11:03
Hi johrirj88,

Hi johrirj88,

Thanks for your question but it’s not clear what your issue is.

>>>We need BLE to be enabled and connected once a connection is established with a mobile app, which, as of now is disconnecting after around 10 seconds.

Can you please explain this? What do you mean with "We need BLE to be enabled and connected once a connection is established"? Are you running the ble_peripheral examples of the SDK and it is disconnected after 10 sec?  

Thanks, PM_Dialog

johrirj88
Offline
Last seen: 10 months 6 days ago
Joined: 2020-02-17 11:43
Yes, we are using ble

Yes, we are using ble_peripheral example from SDK, and it disconnects after 10 sec. How do we make it to be connected infinitely once the BLE connection is established.

 

Thanks and Regards

Raj Johri

PM_Dialog
Offline
Last seen: 1 month 1 week ago
Staff
Joined: 2018-02-08 11:03
Hi johrirj88,

Hi johrirj88,

My apologies for the delay. What is the central that you are using? Can you please run t in debug mode? The ble_peripheral example is working as provided by the SDK -  no need to do further modifications.

Thanks, PM_Dialog

johrirj88
Offline
Last seen: 10 months 6 days ago
Joined: 2020-02-17 11:43
Hi, I think you are not

Hi, I think you are not getting my point. I already told in my question that ble_peripheral code from SDK is working. My question is very clear that BLE gets disconnected after 10 seconds. How to keep it connected once the connection is established.

 

Thanks and Regards

Raj Johri

PM_Dialog
Offline
Last seen: 1 month 1 week ago
Staff
Joined: 2018-02-08 11:03
Hi johrirj88,

Hi johrirj88,

As mentioned before, the ble_peripheral example of the SDK is working correctly as provided by the SDK, this means, that you should not do any modification in order to have a stable connection with a peer device. So, if you use the project as provided by the SDK, the device will start advertising. Then, you should be able to detect from a BLE Mobile application. If you connect into it, it should not be disconnected after 10 seconds. The connection must be stable, and the services must be discovered.

What is the Central that you are using? Is it a mobile application? Addition, which DK are you using?

Just use the ble_peripheral example without any modifications.

Thanks, PM_Dialog

electromotivated
Offline
Last seen: 1 year 3 weeks ago
Joined: 2020-05-05 21:11
We have been with the same

We have been with the same issue using the DA14683-USB DK using the SDK 1.0.14.1081. Exact same issue. We use the LightBlue Android app. And no, we have not made any modifications to the demo code

PM_Dialog
Offline
Last seen: 1 month 1 week ago
Staff
Joined: 2018-02-08 11:03
Hi electromotivated, I’ve

Hi electromotivated, I’ve replied you in this forum thread:

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-hardware-device-reference-designs/da14683-usb

Hi johrirj88, are you using the DA14683 USB-DK or the Pro-DK?

Thanks, PM_Dialog

johrirj88
Offline
Last seen: 10 months 6 days ago
Joined: 2020-02-17 11:43
Its, DA14683 USB-DK.

Its, DA14683 USB-DK.

However the link you mentioned above solved the problem. I shifted the switch SW6 to VBAT position, now I can see a continuous connection.

Thanks and Regards

Raj Johri

electromotivated
Offline
Last seen: 1 year 3 weeks ago
Joined: 2020-05-05 21:11
Thank you so much! I would

Thank you so much! I would perhaps make an explicit note of this in future tutorials/docs when they are revisioned. Other than that we are quite happy with the resources and products and look foward to integrating your products in our designs!

PM_Dialog
Offline
Last seen: 1 month 1 week ago
Staff
Joined: 2018-02-08 11:03
Hi johrirj88 and

Hi johrirj88 and electromotivated,

Glad that you are figured your issues out. If anyone you have any follow up question, please create a new forum ticket.

Thanks, PM_Dialog