Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 2 months ago.
Arch BLE disconnects after 10 seconds
Dear mbed Experts,
I have made some changes to the "BLE_LoopbackUART" example imported from the nRF51-DK page. The code works fine on the nRF51-DK board. However, with the same code on the Seeed Arch BLE board, the connection to my iPhone app is dropped after 10 seconds!
On the Arch BLE Wiki website, I read that
Quote:
If the BLE device is disconnected frequently, we can improve the stability by changing the BLE parameters - Advertising Duration (main.cpp), Min Interval and Max Interval (nRF51822/projectconfig.h)
I changed the following two parameters to various numbers ranging 7.5ms to 4s with no luck.
#define CFG_GAP_CONNECTION_MIN_INTERVAL_MS 20 /**< Minimum acceptable connection interval */ #define CFG_GAP_CONNECTION_MAX_INTERVAL_MS 200 /**< Maximum acceptable connection interval */
Both boards use the nRF51822 chip so I can't see the problem. Any ideas?
Thanks, Soren