I used my app based on the ble_peripheral_gls example in sdk 14.2.0.. and I applied static passkey, "000000" to our app.
When I tested my app with android phone runinng nRFconnect app, connection worked fine and then pairing procedure also was good and then disconnection automatically happened for some seconds.
the log on nRFconnect was attached as belows:
nRF Connect, 2019-05-02 APMATE-EE:8F:97:D3:94:2E (EE:8F:97:D3:94:2E) V 08:14:22.794 Connecting to EE:8F:97:D3:94:2E... D 08:14:22.794 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M) D 08:14:23.418 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED D 08:14:23.427 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2) I 08:14:23.427 Connected to EE:8F:97:D3:94:2E D 08:14:23.432 wait(1600ms) V 08:14:25.032 Discovering services... D 08:14:25.032 gatt.discoverServices() I 08:14:25.122 Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms) D 08:14:25.329 [Callback] Services discovered with status: 0 I 08:14:25.329 Services discovered V 08:14:25.333 Generic Access (0x1800) - Device Name [R W] (0x2A00) - Appearance [R] (0x2A01) - Peripheral Preferred Connection Parameters [R] (0x2A04) - Central Address Resolution [R] (0x2AA6) Generic Attribute (0x1801) Nordic UART Service (6e400001-b5a3-f393-e0a9-e50e24dcca9e) - RX Characteristic [W WNR] (6e400002-b5a3-f393-e0a9-e50e24dcca9e) - TX Characteristic [N] (6e400003-b5a3-f393-e0a9-e50e24dcca9e) Client Characteristic Configuration (0x2902) D 08:14:25.334 gatt.setCharacteristicNotification(6e400003-b5a3-f393-e0a9-e50e24dcca9e, true) I 08:14:25.398 Connection parameters updated (interval: 48.75ms, latency: 0, timeout: 5000ms) I 08:14:28.729 Connection parameters updated (interval: 997.5ms, latency: 0, timeout: 4000ms) D 08:14:50.424 [Callback] Connection state changed with status: 8 and new state: DISCONNECTED (0) E 08:14:50.424 Error 8 (0x8): GATT CONN TIMEOUT I 08:14:50.424 Disconnected D 08:14:50.492 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED D 08:15:16.091 gatt.close() D 08:15:16.113 wait(200)