This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

a little timeout between closing and new connection

Hi

We use nrf52832 as central.

Phone is connected to it as peripheral.

If phone has disconnected and is connecting after that, connection is not established.

If time between disconnecting and new connecting is more (If go out for some time or switch off bluetooth on phone for some time) - connection will be established successfuly.

Connected has closed by reason 0x08

<info> app: Scanning start
<info> app: BLE_GAP_EVT_ADV_REPORT peer_id=0x0
<info> app: Start_connection for Bonded peer
<info> app: scan_evt_handler id = 6
<info> app: Connecting to target 0x4212F3DE9B61
<info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no chan
<info> app: Scanning start
<info> app: BLE_GAP_EVT_DISCONNECTED: 0 , reason=0x8
<info> app: Scanning start


It has happen periodically.

Sometimes other reasons are occured.

#define BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION 0x16 /**< Local Host Terminated Connection. */

#define BLE_HCI_STATUS_CODE_LMP_RESPONSE_TIMEOUT 0x22 /**< LMP Response Timeout. */

It seems to me that some timeout settings have effect.

Please advice which settings could be changed to solve this issue.

Thanks

Parents Reply Children
No Data
Related