Dear experts,
The following is my development environment:-
a. Using the PCA10040 development board,
b nRF UART 2.0 Anadroid application on my Nokia 6.0 mobile.
c. ble_app_uart, Nordic Uart Service example from the link:- C:\Nordic Semiconductor\examples\ble_peripheral\ble_app_uart\pca10040\s132\ses
d. Softdevice S132.
3. BLE mode:- BLE Peripheral.
After loading the S132 hex and the application hex, I am able to discover the device in my nRF UART 2.0 app when I press connect button. Once I select the BT device from the list, it gets connected...which is good. Next I am able to send data using ble_nus_data_send() from the development board. I can also send data from the Android app by typing in the text window, press "SEND" and the data seen on the UART/USB interface connected to the developmen board on the PC/Laptop hyperterminal.
So far all is good...
Next I disconnect by pressing the "DISCONNECT" button on the Android App. I can see that the LED on the development board is bliinking every 2 seconds that means it is adverttisement mode. In the next 2-5 seconds, I again press "CONNECT" button, able to discover the development board, press the item and the message COnnected appeats on the Android APp. But in the next 5 seconds, I see that the device gets immediately disconnected as I see the message "DISCONNECTED" on the android app. Only if I POR the development board, I can repeat the connection and disconnection....second connection always fails!!!!! Can you help to fix this problem? My intention is to support back-to-back connection to different or same BLE peripherals one at a time, send data, disconnect and want to repeat the cycle. Please help!!!!
Thanks & regards
Sandeep Suresh