Other Parts Discussed in Thread: , SYSCONFIG
Host Test application is loaded on CC2651R1 chip and configured as simple server. An android BLE App connects as client and stays for ever. But iPhone app connects and stays in connection for 10-12 minutes then disconnects. We don't have access to the iPhone source code. Host test app (BLE server) does not send any disconnect event to the host application.
If we disconnect manually with iPhone app, then Host Test application sends the disconnect event but never sends the disconnect event when it disconnects automatically after 10-12 mins. Using the CC2440 usb sniffer, we could capture only until the connection request from iPhone. After that sniffer looses the tracking. No encryption commands are used for the host_test server application from the host..
Please help us understand the issue
1) Why we don't get the disconnect event when using the iPhone APP after 10-15 mins of successful connection? We get the disconnect event when we do the disconnection from iPhone before it disconnects by itself. Android app keep the connection for ever.
2) Why the sniffer is not tracking iPhone after connection request (logs attached)? When we connect the same host_test server app using android app, then we can sniff completely. Server does not have any encryption. Just one GATT_AddService and few GATT_AddAttributes .
UPDATE:
After iPhone disconnection, i send the command "HCI_EXT_GetConnInfoCmd" to host_test. I got the reply as, iPhone is in still connection. I turned OFF the BLE form iPhone settings but even after 15 mins, host_test shows, the connection is there.
Rx: 04 FF 10 20 04 00 20 FC 08 01 00 01 7C 67 5F 30 A0 54 01
Event 0xFC20 Alloc Conns(8) Active Conns(1)