This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE data write delay

FormerMember
FormerMember

Hello, all

I have a problem with ble data exchanging.

I have programmed an application which controls servo motors through phone application.

At the connection, ble data is sent immediately by clicking phone app button,

but the problem is that it lasts only few seconds.

After 3~4 sec, data exchanging has a delay and operates like a queue.


please watch this link.

As you can see, data exchange has delay 3~4 sec later and it operates past event even I don't click app button.


So I found solution but it also has another problem.

I set CONN_SUP_TIMEOUT to MSEC_TO_UNITS(10000, UNIT_10_MS) from MSEC_TO_UNITS(4000, UNIT_10_MS)

data exchanging has no delay permanently, but after 1~2 minute the connection is disconnected.


Here is the link.

Unlike first video, there is no delay but after 1-2 minute the connection is lost.


I also changed value of MIN_CONN_INTERVAL and MAX_CONN_INTERVAL, but the result has delay or disconnection event.

How do I exchange ble data without delay and diconnection event?

Related