Here is my advertising interval and connection parameter configuration(SDK15.0.0 softdevice6.0.0) :
Here is my advertising interval and connection parameter configuration(SDK15.0.0 softdevice6.0.0) :
Hi,
Do you have an application on the device beside the bootloader ?
You are saying you connect to the bootloader then you restart bluetooth on the phone, then leave it like that ?
If it's the case and if you don't have any application, there is an inactive timer on the bootloader that restart it if the phone does nothing.
Hi,
I'm sure that I'm running an application. And this application is a demo about ANCS.
This is my log (Disconnection in log is automatic and at intervals of 30s, Follow the above procedure):
0> <info> app: p_ble_evt->header.evt_id = 0x39 //Handle Value Notification or Indication event 0> <info> app: p_ble_evt->header.evt_id = 0x12 0> <info> app: Fast advertising with Whitelist 0> <info> app: p_ble_evt->header.evt_id = 0x11 0> <info> app: Disconnected. 0> <info> app: p_ble_evt->header.evt_id = 0x10 0> <info> app: Connected. 0> <info> app: p_ble_evt->header.evt_id = 0x14 0> <info> app: Connection secured: role: 1, conn_handle: 0x0, procedure: 0. 0> <info> app: p_ble_evt->header.evt_id = 0x1A //Connection security updated 0> <info> app: p_ble_evt->header.evt_id = 0x39 0> <info> app: p_ble_evt->header.evt_id = 0x30 //Primary Service Discovery Response event 0> <info> app: p_ble_evt->header.evt_id = 0x55 //Exchange MTU Request 0> <info> app: p_ble_evt->header.evt_id = 0x32 //Characteristic Discovery Response event. 0> <info> app: p_ble_evt->header.evt_id = 0x32 0> <info> app: p_ble_evt->header.evt_id = 0x33 //Descriptor Discovery Response event 0> <info> app: p_ble_evt->header.evt_id = 0x30 0> <info> app: p_ble_evt->header.evt_id = 0x32 0> <info> app: p_ble_evt->header.evt_id = 0x32 0> <info> app: p_ble_evt->header.evt_id = 0x32 0> <info> app: p_ble_evt->header.evt_id = 0x32 0> <info> app: p_ble_evt->header.evt_id = 0x33 0> <info> app: p_ble_evt->header.evt_id = 0x33 0> <info> ble_ancs_c: Control Point Characteristic found. 0> <info> ble_ancs_c: Notification point Characteristic found. 0> <info> ble_ancs_c: Data Source Characteristic found. 0> <info> ble_ancs_c: Enable Notification Source notifications. writing to handle: 41 0> <info> ble_ancs_c: Enable Data Source notifications. Writing to handle: 44 0> <info> app: p_ble_evt->header.evt_id = 0x33 0> <info> app: p_ble_evt->header.evt_id = 0x38 //Write Response event 0> <info> app: p_ble_evt->header.evt_id = 0x38 0> <info> app: p_ble_evt->header.evt_id = 0x38 0> <info> app: 0> Notification 0> <info> app: Event: Added 0> <info> app: Category ID: Social 0> <info> app: Category Cnt:1 0> <info> app: UID: 0 0> <info> app: Flags: 0> <info> app: Silent 0> <info> app: Pre-existing 0> <info> app: Negative Action 0> <info> app: p_ble_evt->header.evt_id = 0x39 //Handle Value Notification or Indication event 0> <info> app: 0> Notification 0> <info> app: Event: Added 0> <info> app: Category ID: Social 0> <info> app: Category Cnt:2 0> <info> app: UID: 1 0> <info> app: Flags: 0> <info> app: Silent 0> <info> app: Pre-existing 0> <info> app: Negative Action 0> <info> app: p_ble_evt->header.evt_id = 0x39 0> <info> app: p_ble_evt->header.evt_id = 0x12
Thank you for any reply.
Hi,
I'm sure that I'm running an application. And this application is a demo about ANCS.
This is my log (Disconnection in log is automatic and at intervals of 30s, Follow the above procedure):
0> <info> app: p_ble_evt->header.evt_id = 0x39 //Handle Value Notification or Indication event 0> <info> app: p_ble_evt->header.evt_id = 0x12 0> <info> app: Fast advertising with Whitelist 0> <info> app: p_ble_evt->header.evt_id = 0x11 0> <info> app: Disconnected. 0> <info> app: p_ble_evt->header.evt_id = 0x10 0> <info> app: Connected. 0> <info> app: p_ble_evt->header.evt_id = 0x14 0> <info> app: Connection secured: role: 1, conn_handle: 0x0, procedure: 0. 0> <info> app: p_ble_evt->header.evt_id = 0x1A //Connection security updated 0> <info> app: p_ble_evt->header.evt_id = 0x39 0> <info> app: p_ble_evt->header.evt_id = 0x30 //Primary Service Discovery Response event 0> <info> app: p_ble_evt->header.evt_id = 0x55 //Exchange MTU Request 0> <info> app: p_ble_evt->header.evt_id = 0x32 //Characteristic Discovery Response event. 0> <info> app: p_ble_evt->header.evt_id = 0x32 0> <info> app: p_ble_evt->header.evt_id = 0x33 //Descriptor Discovery Response event 0> <info> app: p_ble_evt->header.evt_id = 0x30 0> <info> app: p_ble_evt->header.evt_id = 0x32 0> <info> app: p_ble_evt->header.evt_id = 0x32 0> <info> app: p_ble_evt->header.evt_id = 0x32 0> <info> app: p_ble_evt->header.evt_id = 0x32 0> <info> app: p_ble_evt->header.evt_id = 0x33 0> <info> app: p_ble_evt->header.evt_id = 0x33 0> <info> ble_ancs_c: Control Point Characteristic found. 0> <info> ble_ancs_c: Notification point Characteristic found. 0> <info> ble_ancs_c: Data Source Characteristic found. 0> <info> ble_ancs_c: Enable Notification Source notifications. writing to handle: 41 0> <info> ble_ancs_c: Enable Data Source notifications. Writing to handle: 44 0> <info> app: p_ble_evt->header.evt_id = 0x33 0> <info> app: p_ble_evt->header.evt_id = 0x38 //Write Response event 0> <info> app: p_ble_evt->header.evt_id = 0x38 0> <info> app: p_ble_evt->header.evt_id = 0x38 0> <info> app: 0> Notification 0> <info> app: Event: Added 0> <info> app: Category ID: Social 0> <info> app: Category Cnt:1 0> <info> app: UID: 0 0> <info> app: Flags: 0> <info> app: Silent 0> <info> app: Pre-existing 0> <info> app: Negative Action 0> <info> app: p_ble_evt->header.evt_id = 0x39 //Handle Value Notification or Indication event 0> <info> app: 0> Notification 0> <info> app: Event: Added 0> <info> app: Category ID: Social 0> <info> app: Category Cnt:2 0> <info> app: UID: 1 0> <info> app: Flags: 0> <info> app: Silent 0> <info> app: Pre-existing 0> <info> app: Negative Action 0> <info> app: p_ble_evt->header.evt_id = 0x39 0> <info> app: p_ble_evt->header.evt_id = 0x12
Thank you for any reply.
Hi,
Could you describe in more detail how do you test again ? How is it related to DFU ?
If you simply test softdevice+ancs (no bootloader) what do you see ?
Hi,
Actually, this is not related to DFU.
First, I download softdevice and ANCS (without bootloader). Then I just use keil to download and run only app about ANCS.
The next step is to search for and connect to the bluetooth device via my phone app.
Finally, do the following.
Operation flow:
1. First connect bluetooth and pair.
2. Turn off the Apple phone system Bluetooth and then open.
This time the automatic connection will be repeated and automatically disconnected.
I tested this because our project have this problem right now.
I don't see any problem in your log, could you point me to where in the log showing it's disconnecting and connecting again ? Please post the full log.
Please try to test with unmodified version of the ANCS (suggest to test with the precompiled hex).
As sniffer trace would greatly help.