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?
请帮助尽快在这方面。
Thanks and Regards
Raj Johri
Keywords:
Device:
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
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
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
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
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
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
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
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
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!
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