nRF52833: MTU Exchange Fails and Connection Terminates

Hello Team,

     I am working with nRF52833 configured as a BLE scanner using nRF Connect SDK for VS Code.

Here is my prj.conf:

#
# Copyright (c) 2018 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# ─── UART (Async, no console) ───────────────────────────────────────────────
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_NRFX_UARTE0=y
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n


# ─── FOR UART STOP and RESTART AT RUNTIME WHEN UART RX ERROR EVT TRIGGERS ─────────────────────
CONFIG_PM_DEVICE=y
CONFIG_PM_DEVICE_RUNTIME=y


# ─── BLE Stack (Central / Scanner) ──────────────────────────────────────────
CONFIG_BT=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_SMP=y

# BLE NCS modules
CONFIG_BT_NUS_CLIENT=y
CONFIG_BT_SCAN=y
CONFIG_BT_SCAN_FILTER_ENABLE=y
CONFIG_BT_SCAN_UUID_CNT=1
CONFIG_BT_GATT_DM=y

# MTU / buffer sizing for 40-byte chunks
CONFIG_BT_L2CAP_TX_MTU=247
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_BUF_ACL_RX_SIZE=251
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251

# BLE stack sizes
CONFIG_BT_RX_STACK_SIZE=4096

# Reduce BLE log noise — only errors
CONFIG_BT_LOG_LEVEL_ERR=y

# ─── Stack / Heap ────────────────────────────────────────────────────────────
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
CONFIG_HEAP_MEM_POOL_SIZE=4096

# ─── RTT Logging (no UART backend) ──────────────────────────────────────────
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n
CONFIG_LOG_PRINTK=y
# 23rd March 2026, RTT BUFFER SIZE increased for crash log capture
CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=4096
# ─── GPIO / SPI (needed for nRF21540 FEM) ───────────────────────────────────
CONFIG_GPIO=y
CONFIG_SPI=y

# ─── RTC Calendar ────────────────────────────────────────────────────────────
CONFIG_RTC=y
CONFIG_RTC_UPDATE=y

# ─── Watchdog ────────────────────────────────────────────────────────────────
CONFIG_WATCHDOG=y
CONFIG_REBOOT=y

# ─── Clock (RC low-frequency, 500 ppm) ───────────────────────────────────────
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y

# ─── Range Extender: nRF21540 FEM ────────────────────────────────────────────
CONFIG_MPSL=y
CONFIG_MPSL_FEM=y
CONFIG_MPSL_FEM_NRF21540_GPIO_SPI=y
CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=20
CONFIG_MPSL_FEM_POWER_MODEL=y
CONFIG_MPSL_FEM_POWER_MODEL_NRF21540_USE_BUILTIN=y
CONFIG_BT_CTLR_TX_PWR_ANTENNA=20

# ─── Assert ──────────────────────────────────────────────────────────────────
CONFIG_ASSERT=y

# ─── Heap runtime stats (optional, useful for debugging) ─────────────────────
CONFIG_SYS_HEAP_RUNTIME_STATS=y

# ─────────── prj.conf ADDDED ON -> 9th MARCH for CRC CHECK ──────────────────────
CONFIG_CRC=y

# ─── Fatal Error Debugging 10th MARCH 2026, ───────────────────────────────────────────────────
CONFIG_RESET_ON_FATAL_ERROR=n       # Prevent immediate reboot so output is visible
CONFIG_THREAD_NAME=y                # Show thread name (e.g. "main") instead of "unknown"
CONFIG_ASSERT=y
CONFIG_ASSERT_VERBOSE=y
CONFIG_ASSERT_NO_COND_INFO=n
CONFIG_ASSERT_NO_MSG_INFO=n
# Stack overflow detection
CONFIG_HW_STACK_PROTECTION=y
CONFIG_INIT_STACKS=y
# Immediate logging ensures crash logs are flushed before halt
CONFIG_LOG_MODE_IMMEDIATE=y



#────────────────────────────  THREAD ANALYZER FOR STACK OVERFLOW DETECTION ──────────────────────
#CONFIG_THREAD_NAME=y

#CONFIG_THREAD_ANALYZER=y
#CONFIG_THREAD_ANALYZER_AUTO=y
#CONFIG_THREAD_ANALYZER_RUN_UNLOCKED=y
#CONFIG_THREAD_ANALYZER_USE_LOG=y
#CONFIG_THREAD_ANALYZER_AUTO_INTERVAL=30
#CONFIG_THREAD_ANALYZER_AUTO_STACK_SIZE=2048

#CONFIG_INIT_STACKS=y

AND here is scan/conn Implementaion:

static void discovery_work_handler(struct k_work *work);


static void scan_filter_match(struct bt_scan_device_info *device_info,
    struct bt_scan_filter_match *filter_match,
    bool connectable) {

    char addr[BT_ADDR_LE_STR_LEN];

    bt_addr_le_to_str(device_info->recv_info->addr, addr, sizeof(addr));
   LOG_INF("Filters matched. Address: %s connectable: %d RSSI: %d",addr, connectable, device_info->recv_info->rssi);
  //LOG_INF("Filters matched. ");
  
}


 static void scan_connecting_error(struct bt_scan_device_info *device_info)
{
   // LOG_WRN("Connecting failed");

}


 static void scan_connecting(struct bt_scan_device_info *device_info,
				   struct bt_conn *conn) {
	 default_conn = bt_conn_ref(conn);
     /* Print pointer value (for debugging) */
    LOG_INF("default_conn pointer: %p in scan_connecting", (void *)default_conn);
 
 }
 
 BT_SCAN_CB_INIT(scan_cb, scan_filter_match, NULL,
    scan_connecting_error, scan_connecting);






/* Explicit scan parameters: timeout = 0 => infinite scan */
static struct bt_le_scan_param scan_param = {
    .type     = BT_LE_SCAN_TYPE_ACTIVE,
    .options  = BT_LE_SCAN_OPT_NONE,
    .interval = BT_GAP_SCAN_FAST_INTERVAL,
    .window   = BT_GAP_SCAN_FAST_WINDOW,
    .timeout  = 0,   /* infinite scanning */
};

    static int scan_init(void) {
        int err;
        struct bt_scan_init_param scan_init = {
        .connect_if_match = 1,  //1, // 4th FEB 2026
        .scan_param       = &scan_param,   /* use our params */
        .conn_param       = NULL,          /* BT_LE_CONN_PARAM_DEFAULT */
       };

	
		bt_scan_init(&scan_init);
		bt_scan_cb_register(&scan_cb);
	
		err = bt_scan_filter_add(BT_SCAN_FILTER_TYPE_UUID, BT_UUID_NUS_SERVICE);
		if (err) {
			//LOG_ERR("Scanning filters cannot be set (err %d)", err);
			return err;
		}
	
		err = bt_scan_filter_enable(BT_SCAN_UUID_FILTER, false);
		if (err) {
			//LOG_ERR("Filters cannot be turned on (err %d)", err);
			return err;
		}
	
		//LOG_INF("Scan module initialized");
		return err;
    }


 /* Connection Callbacks */
 BT_CONN_CB_DEFINE(conn_callbacks) = {
	 .connected = on_connected,
	 .disconnected = on_disconnected,
	 .security_changed = on_security_changed
 };
 
 
 
static void discovery_work_handler(struct k_work *work)
{
    if (discovery_conn) {
        int err = start_discovery(discovery_conn);
        if (err) {
            LOG_ERR("start_discovery from work failed (err %d)", err);
        }
    }
}

 static uint8_t custom_uart_notify(struct bt_conn *conn,
	struct bt_gatt_subscribe_params *params,
	const void *data, uint16_t len) {
	char addr[BT_ADDR_LE_STR_LEN];
	static uint8_t frame_checksum = 0;
	static uint32_t total_bytes_received = 0;

	if (conn) {
		bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr));
	}

     LOG_INF("  DATA LEN : %d",len);
	if (!data) {
		received_frames = 0;
		total_bytes_received = 0;
		frame_checksum = 0;
		return BT_GATT_ITER_CONTINUE;
	}

	if (len != FRAME_SIZE) {
		//LOG_ERR("Invalid frame size: %d (expected %d)", len, FRAME_SIZE);
		return BT_GATT_ITER_CONTINUE;
	}

	if (received_frames >= TOTAL_FRAMES) {
		//LOG_WRN("Received extra frame (already have %d frames)", received_frames);
		return BT_GATT_ITER_CONTINUE;
	}

	uint8_t current_checksum = 0;
	for (int i = 0; i < len; i++) {
		current_checksum += ((const uint8_t *)data)[i];
	}

	memcpy(&full_data[received_frames * FRAME_SIZE], data, len);
	received_frames++;
	total_bytes_received += len;
	frame_checksum += current_checksum;


	if (received_frames == TOTAL_FRAMES) {
        uint16_t current_packet_counter = ((full_data[13] << 8) | full_data[14]);  
        uint32_t print_epoch_from_tag = ((full_data[15] << 24) | (full_data[16] << 16) | (full_data[17] << 8) | full_data[18]);
        for(int i=1;i<10;i++)
        {
          current_device_name[i-1] =  full_data[i];
        }
        current_device_name[9] = '\0';
        
        //LOG_INF("*********************************  Device name : %s PACKET COUNTER : %d and epoch_from_tag : %d ***************************",current_device_name,current_packet_counter,print_epoch_from_tag);     
		LOG_INF("Name: %s, PKT CNTR: %d, epoch: %d",current_device_name,current_packet_counter,print_epoch_from_tag);     
		
             
                
		        received_frames = 0;
		        total_bytes_received = 0;
		        frame_checksum = 0;
                data_non_empty_check = true;
                memset(&full_data,0,sizeof(full_data));

                memset(&current_device_name,0,sizeof(current_device_name));
                current_packet_counter = 0;  // 30th DEC 2025, Clear Variable for next cycle

                //21th JAN 2026, Added to terminate ble connection from scanner side, need to test contineously.
                if (epoch_wr_counter_check >= LOGS_PER_WRITE) 
                {
                    central_terminate_ble_conn_flag = true;
                }           
	}

	return BT_GATT_ITER_CONTINUE;
}




 static int bt_custom_subscribe_receive(struct bt_custom_client *custom) 
 {
	 static struct bt_gatt_subscribe_params subscribe_params;

	 if (!custom || !custom->conn || !custom->value_handle || !custom->cccd_handle) 
     {
		 //LOG_ERR("Invalid custom client parameters");
		 return -EINVAL;
	 }
 
	 memset(&subscribe_params, 0, sizeof(subscribe_params));
	 subscribe_params.value_handle = custom->value_handle;
	 subscribe_params.ccc_handle = custom->cccd_handle;
	 subscribe_params.notify = custom_uart_notify;
	 subscribe_params.value = BT_GATT_CCC_NOTIFY;
	 
     int err = bt_gatt_subscribe(custom->conn, &subscribe_params);
     if (err) 
     {
		 LOG_ERR("Subscription failed: %d", err);
		 return err;
	 }
     LOG_INF("bt_gatt_subscribe err code: %d",err);
	 return 0;
 }
 
 static uint8_t discover_func(struct bt_conn *conn,
	 const struct bt_gatt_attr *attr,
	 struct bt_gatt_discover_params *params) 
 {
	 int err;
	 
	 if (!attr) {
		//LOG_INF("Discovery complete in discover function");
		// Assign discovered handles to your client structure
		my_custom_client.conn = conn;
		my_custom_client.value_handle = my_char_handle;   // Set during characteristic discovery
		my_custom_client.cccd_handle  = my_cccd_handle;   // Set during descriptor discovery

		/*if (bt_custom_subscribe_receive(&my_custom_client)) {
			LOG_INF("Subscription to custom characteristic failed");
		}*/
    int sub_char_err = bt_custom_subscribe_receive(&my_custom_client);
    if (sub_char_err) 
    {
      LOG_ERR("Subscription to custom characteristic failed (err: %d)", sub_char_err);
    }

		return BT_GATT_ITER_STOP;
	}


	if (params->type == BT_GATT_DISCOVER_PRIMARY) 
    {
		struct bt_gatt_service_val *svc = (struct bt_gatt_service_val *)attr->user_data;
		LOG_INF("Found service, start_handle: 0x%04x, end_handle: 0x%04x", attr->handle, svc->end_handle);

		discover_params.uuid = NULL; // Discover all characteristics
		discover_params.start_handle = attr->handle + 1;
		discover_params.end_handle = svc->end_handle;
		discover_params.type = BT_GATT_DISCOVER_CHARACTERISTIC;
		discover_params.func = discover_func;

		err = bt_gatt_discover(conn, &discover_params);
		if (err) {
			LOG_INF("Characteristic discovery failed (err %d)", err);
		}
		return BT_GATT_ITER_STOP;

	} 
    else if (params->type == BT_GATT_DISCOVER_CHARACTERISTIC) 
    {
		struct bt_gatt_chrc *chrc = (struct bt_gatt_chrc *)attr->user_data;
		//LOG_INF("Characteristic UUID type: 0x%x", chrc->uuid->type);

		my_char_handle = chrc->value_handle;
		LOG_INF("Characteristic handle: 0x%04x", my_char_handle);

		// Start descriptor (CCCD) discovery for this characteristic
		discover_params.uuid = BT_UUID_GATT_CCC;
		discover_params.start_handle = my_char_handle + 1;
		discover_params.end_handle = params->end_handle;
		discover_params.type = BT_GATT_DISCOVER_DESCRIPTOR;
		discover_params.func = discover_func;

		err = bt_gatt_discover(conn, &discover_params);
		if (err) {
			LOG_INF("Descriptor discovery failed (err %d)", err);
		}
		return BT_GATT_ITER_STOP;

	} 
    else if (params->type == BT_GATT_DISCOVER_DESCRIPTOR) 
    {
		// Check if this is the CCCD
		if (bt_uuid_cmp(attr->uuid, BT_UUID_GATT_CCC) == 0) {
			my_cccd_handle = attr->handle;
			LOG_INF("CCCD handle: 0x%04x", my_cccd_handle);
		}
		// Continue to next attribute if needed
	}

	return BT_GATT_ITER_CONTINUE;
 }


 
 //static 
 int start_discovery(struct bt_conn *conn) 
 {
	 int err;
	 
	 //LOG_INF("Starting discovery for custom UUID");
     // Print the conn pointer address to confirm it is non-NULL
    LOG_INF("start_discovery: conn pointer = %p", (void *)conn);
	 char uuid_str[37];
	 bt_uuid_to_str(&custom_uart_uuid.uuid, uuid_str, sizeof(uuid_str));
	 //LOG_INF("Custom UUID: %s", uuid_str);
 
	 discover_params.uuid = &custom_uart_uuid.uuid;
	 discover_params.func = discover_func;
	 discover_params.start_handle = BT_ATT_FIRST_ATTRIBUTE_HANDLE;
	 discover_params.end_handle = BT_ATT_LAST_ATTRIBUTE_HANDLE;
	 discover_params.type = BT_GATT_DISCOVER_PRIMARY;
 
	 err = bt_gatt_discover(conn, &discover_params);
	 if (err) {
		 LOG_ERR("Custom service discovery failed (err %d)", err);
		 return err;
	 }
	 return 0;
 }
 


 
 static void exchange_func(struct bt_conn *conn, uint8_t err,struct bt_gatt_exchange_params *params)
{
    if (!err) {
        uint16_t mtu = bt_gatt_get_mtu(conn);
        LOG_INF("Negotiated MTU size is: %d", mtu);
    } else {
        LOG_WRN("MTU exchange failed (err %" PRIu8 "), proceeding with default MTU", err);
    }

    // Defer discovery to system workqueue (outside BT RX thread)
    discovery_conn = conn;
    k_work_submit(&discovery_work);
}
 
 
 
 void on_connected(struct bt_conn *conn, uint8_t err) {
  
    ble_evt_in_process_flag = true; // 8th JAN 2026, added to check ble event for scan timer timeout execution
    memset(&full_data,0,sizeof(full_data));
	 if (err) {
        
        LOG_INF("Conn fail err code: %d",err);
 
		 if (default_conn == conn) 
         {
			LOG_INF("default_conn pointer: %p in on_Connected", (void *)default_conn);
            bt_conn_unref(default_conn);
			default_conn = NULL;
		 }
 
         ble_connection_error_flag = true; // 31st DEC 2025
		 return;
	 }
     
  

     LOG_INF("--------------------  CONNECTED to BLE DEVICE ---------------------");
     
     int scan_stop_err = bt_scan_stop();
     if (scan_stop_err == -EALREADY) 
     {
        LOG_INF(" ################# scan already stop (err %d)", scan_stop_err);
     }
    


	 static struct bt_gatt_exchange_params exchange_params;
	 exchange_params.func = exchange_func;
	 err = bt_gatt_exchange_mtu(conn, &exchange_params);
	 LOG_INF("MTU exchange request (err %d)", err);
	 
     
 }

 
 static void on_disconnected(struct bt_conn *conn, uint8_t reason) {
   
   LOG_INF(" -------------------- Disconnected... (reason 0x%02x) -------------------------", reason);

    // Reset state and clean up
    received_frames = 0;
    my_char_handle = 0;
    my_cccd_handle = 0;

    
    if (default_conn == conn) 
    {
        bt_conn_unref(default_conn);
        default_conn = NULL;
    }

    
    ble_data_ready_flag = true;
    
  
}


Expected Execution Sequence:

  1. Scanner starts scanning for nearby devices
  2. Filters device based on matching service UUID
  3. Initiates connection upon match
  4. On successful connection:
    • MTU exchange request is initiated
    • On MTU exchange callback → start service discovery
    • On discovery completion → subscribe to characteristic
    • Connected tag sends data log

Data Transfer Details:

  • Total log size: 1040 bytes
  • Sent in 26 frames
  • Each frame: 40 bytes

Issue Observed:

  • Occasionally, the full data log is received successfully
  • However, most of the time, device disconnecting as:
    • MTU exchange fails, Error 0x3E (Connection Failed to be Established / Timeout)
    • MTU exchnage and sunscription succ, Error 0x13 (Remote User Terminated Connection)

  • RTT logs (showing both successful and failing cases)

        

00> *** Booting nRF Connect SDK v2.9.1-60d0d6c8d42d ***
00> *** Using Zephyr OS v3.7.99-ca954a6216c9 ***
00> [00:00:00.002,471] <inf> combined_ble: 
00> 
00> 
00> 
00> [00:00:00.011,352] <inf> combined_ble: Bluetooth initialized initially...
00> [00:00:00.011,779] <inf> combined_ble: UART_RX_BUF_REQUEST
00> [00:00:00.012,115] <inf> combined_ble: uart_init returns err code : 0

00> [00:00:00.014,160] <inf> combined_ble:  Scan Resume err code : 0
00> [00:00:23.358,306] <inf> combined_ble: Filters matched. Address: E5:F7:69:AF:E8:21 (random) connectable: 0 RSSI: -66
00> [00:00:23.362,304] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:00:23.381,774] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:00:23.383,087] <inf> combined_ble: MTU exchange request (err 0)
00> [00:00:23.583,343] <inf> combined_ble: Negotiated MTU size is: 247
00> [00:00:23.683,319] <inf> combined_ble: Found service, start_handle: 0x0010, end_handle: 0x0015
00> [00:00:23.783,721] <inf> combined_ble: Characteristic handle: 0x0012
00> [00:00:23.883,300] <inf> combined_ble: CCCD handle: 0x0013
00> [00:00:23.883,758] <inf> combined_ble: bt_gatt_subscribe err code: 0
00> [00:00:24.233,581] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.234,466] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.283,630] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.333,618] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.383,605] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.433,624] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.483,612] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.533,630] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.583,618] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.633,605] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.683,624] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.733,612] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.883,605] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.933,624] <inf> combined_ble:   DATA LEN : 40
00> [00:00:24.983,612] <inf> combined_ble:   DATA LEN : 40
00> [00:00:25.033,630] <inf> combined_ble:   DATA LEN : 40
00> [00:00:25.083,618] <inf> combined_ble:   DATA LEN : 40
00> [00:00:25.133,605] <inf> combined_ble:   DATA LEN : 40
00> [00:00:25.183,624] <inf> combined_ble:   DATA LEN : 40
00> [00:00:25.283,630] <inf> combined_ble:   DATA LEN : 40
00> [00:00:25.333,618] <inf> combined_ble:   DATA LEN : 40
00> [00:00:25.383,605] <inf> combined_ble:   DATA LEN : 40
00> [00:00:25.433,624] <inf> combined_ble:   DATA LEN : 40
00> [00:00:25.483,612] <inf> combined_ble:   DATA LEN : 40
00> [00:00:25.533,630] <inf> combined_ble:   DATA LEN : 40
00> [00:00:25.583,618] <inf> combined_ble:   DATA LEN : 40
00> [00:00:25.583,984] <inf> combined_ble: Name: S1IAD1902, PKT CNTR: 9105, epoch: 1774530000
00> [00:00:27.633,148] <inf> combined_ble:   DATA LEN : 0
00> [00:00:27.633,514] <inf> combined_ble:  -------------------- Disconnected... (reason 0x13) -------------------------



00> [00:00:00.014,312] <inf> combined_ble:  Scan Resume err code : 0
00> [00:00:07.774,078] <inf> combined_ble: Filters matched. Address: E4:36:13:61:FA:F1 (random) connectable: 0 RSSI: -75
00> [00:00:07.777,496] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:00:07.805,419] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:00:07.806,732] <inf> combined_ble: MTU exchange request (err 0)
00> [00:00:08.056,976] <inf> combined_ble: Negotiated MTU size is: 247
00> [00:00:08.057,342] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:00:08.156,951] <inf> combined_ble: Found service, start_handle: 0x0010, end_handle: 0x0015
00> [00:00:08.357,299] <inf> combined_ble: Characteristic handle: 0x0012
00> [00:00:08.506,958] <inf> combined_ble: CCCD handle: 0x0013
00> [00:00:08.507,385] <inf> combined_ble: bt_gatt_subscribe err code: 0
00> [00:00:08.657,226] <inf> combined_ble:   DATA LEN : 40
00> [00:00:08.658,111] <inf> combined_ble:   DATA LEN : 40
00> [00:00:08.707,275] <inf> combined_ble:   DATA LEN : 40
00> [00:00:08.757,263] <inf> combined_ble:   DATA LEN : 40
00> [00:00:08.807,281] <inf> combined_ble:   DATA LEN : 40
00> [00:00:08.857,269] <inf> combined_ble:   DATA LEN : 40
00> [00:00:08.907,287] <inf> combined_ble:   DATA LEN : 40
00> [00:00:08.957,275] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.007,263] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.057,281] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.107,269] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.157,257] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.207,275] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.257,263] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.307,281] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.357,269] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.407,287] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.457,275] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.507,263] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.557,281] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.607,269] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.657,257] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.757,263] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.807,281] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.857,269] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.907,257] <inf> combined_ble:   DATA LEN : 40
00> [00:00:09.907,623] <inf> combined_ble: Name: S1IAD1640, PKT CNTR: 1454, epoch: 1774530000
00> [00:00:11.956,787] <inf> combined_ble:   DATA LEN : 0
00> [00:00:11.957,153] <inf> combined_ble:  -------------------- Disconnected... (reason 0x13) -------------------------
00> [00:00:12.028,747] <inf> combined_ble:  Scan Resume err code : 0
00> [00:00:12.029,113] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:01:32.874,420] <inf> combined_ble: Filters matched. Address: E5:F7:69:AF:E8:21 (random) connectable: 0 RSSI: -66
00> [00:01:32.876,892] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:01:32.897,308] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:01:32.898,590] <inf> combined_ble: MTU exchange request (err 0)
00> [00:01:33.148,895] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:01:33.149,291] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:01:33.149,749] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:01:33.150,268] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:01:33.212,829] <inf> combined_ble:  Scan Resume err code : 0
00> [00:01:33.213,195] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:01:38.499,298] <inf> combined_ble: Filters matched. Address: DC:BF:AF:86:1F:0E (random) connectable: 0 RSSI: -70
00> [00:01:38.505,981] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:01:41.507,904] <inf> combined_ble: Conn fail err code: 2
00> [00:01:41.508,270] <inf> combined_ble: default_conn pointer: 0x20002d18 in on_Connected
00> [00:01:41.523,010] <inf> combined_ble:  Scan Resumed err code : 0
00> [00:01:42.030,883] <inf> combined_ble: Filters matched. Address: D4:D7:B8:24:41:E6 (random) connectable: 0 RSSI: -68
00> [00:01:42.035,430] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:01:42.055,511] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:01:42.056,823] <inf> combined_ble: MTU exchange request (err 0)
00> [00:01:42.307,098] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:01:42.307,495] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:01:42.307,983] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:01:42.308,502] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:01:42.326,446] <inf> combined_ble:  Scan Resume err code : 0
00> [00:01:42.326,812] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:01:42.346,130] <inf> combined_ble: Filters matched. Address: D4:D7:B8:24:41:E6 (random) connectable: 0 RSSI: -71
00> [00:01:42.349,578] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:01:42.373,321] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:01:42.374,633] <inf> combined_ble: MTU exchange request (err 0)
00> [00:01:42.774,810] <inf> combined_ble: Negotiated MTU size is: 247
00> [00:01:42.775,207] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:01:42.874,938] <inf> combined_ble: Found service, start_handle: 0x0010, end_handle: 0x0015
00> [00:01:42.975,128] <inf> combined_ble: Characteristic handle: 0x0012
00> [00:01:43.124,847] <inf> combined_ble: CCCD handle: 0x0013
00> [00:01:43.125,274] <inf> combined_ble: bt_gatt_subscribe err code: 0
00> [00:01:43.274,658] <inf> combined_ble:   DATA LEN : 0
00> [00:01:43.275,054] <inf> combined_ble:  -------------------- Disconnected... (reason 0x13) -------------------------
00> [00:01:43.330,352] <inf> combined_ble:  Scan Resume err code : 0
00> [00:01:43.330,718] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:02:11.426,574] <inf> combined_ble: Filters matched. Address: D4:72:A9:51:FD:79 (random) connectable: 0 RSSI: -73
00> [00:02:11.428,527] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:02:11.457,458] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:02:11.458,770] <inf> combined_ble: MTU exchange request (err 0)
00> [00:02:11.709,045] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:02:11.709,442] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:02:11.709,930] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:02:11.710,449] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:02:11.762,542] <inf> combined_ble:  Scan Resume err code : 0
00> [00:02:11.762,908] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:02:11.827,209] <inf> combined_ble: Filters matched. Address: D4:72:A9:51:FD:79 (random) connectable: 0 RSSI: -75
00> [00:02:11.830,688] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:02:11.857,421] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:02:11.858,734] <inf> combined_ble: MTU exchange request (err 0)
00> [00:02:12.109,008] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:02:12.109,405] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:02:12.109,893] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:02:12.110,412] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:02:12.165,863] <inf> combined_ble:  Scan Resume err code : 0
00> [00:02:12.166,229] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:02:21.975,708] <inf> combined_ble: Filters matched. Address: C7:5C:04:2A:9E:85 (random) connectable: 0 RSSI: -67
00> [00:02:21.978,240] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:02:24.980,163] <inf> combined_ble: Conn fail err code: 2
00> [00:02:24.980,529] <inf> combined_ble: default_conn pointer: 0x20002d18 in on_Connected
00> [00:02:24.982,971] <inf> combined_ble:  Scan Resumed err code : 0
00> [00:03:02.798,858] <inf> combined_ble: Filters matched. Address: E4:36:13:61:FA:F1 (random) connectable: 0 RSSI: -73
00> [00:03:02.801,147] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:03:02.824,401] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:03:02.825,714] <inf> combined_ble: MTU exchange request (err 0)
00> [00:03:03.075,988] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:03:03.076,385] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:03:03.076,873] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:03:03.077,392] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:03:03.123,596] <inf> combined_ble:  Scan Resume err code : 0
00> [00:03:03.123,962] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:03:05.355,743] <inf> combined_ble: Filters matched. Address: CC:0D:F5:68:F7:4D (random) connectable: 0 RSSI: -64
00> [00:03:05.361,755] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:03:05.378,845] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:03:05.380,157] <inf> combined_ble: MTU exchange request (err 0)
00> [00:03:05.630,462] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:03:05.630,828] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:03:05.631,317] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:03:05.631,835] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:03:05.729,095] <inf> combined_ble:  Scan Resume err code : 0
00> [00:03:05.729,461] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:03:05.750,457] <inf> combined_ble: Filters matched. Address: CC:0D:F5:68:F7:4D (random) connectable: 0 RSSI: -73
00> [00:03:05.752,227] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:03:05.773,315] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:03:05.774,627] <inf> combined_ble: MTU exchange request (err 0)
00> [00:03:06.024,871] <inf> combined_ble: Negotiated MTU size is: 247
00> [00:03:06.025,238] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:03:06.174,835] <inf> combined_ble: Found service, start_handle: 0x0010, end_handle: 0x0015
00> [00:03:06.275,238] <inf> combined_ble: Characteristic handle: 0x0012
00> [00:03:06.374,847] <inf> combined_ble: CCCD handle: 0x0013
00> [00:03:06.375,274] <inf> combined_ble: bt_gatt_subscribe err code: 0
00> [00:03:06.625,122] <inf> combined_ble:   DATA LEN : 40
00> [00:03:06.625,976] <inf> combined_ble:   DATA LEN : 40
00> [00:03:06.675,140] <inf> combined_ble:   DATA LEN : 40
00> [00:03:06.725,158] <inf> combined_ble:   DATA LEN : 40
00> [00:03:06.775,146] <inf> combined_ble:   DATA LEN : 40
00> [00:03:06.825,164] <inf> combined_ble:   DATA LEN : 40
00> [00:03:06.875,152] <inf> combined_ble:   DATA LEN : 40
00> [00:03:06.925,140] <inf> combined_ble:   DATA LEN : 40
00> [00:03:06.975,158] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.025,146] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.075,164] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.125,152] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.175,140] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.225,158] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.275,146] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.325,164] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.375,152] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.425,140] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.475,158] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.525,146] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.575,164] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.625,152] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.675,140] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.725,158] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.775,146] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.825,164] <inf> combined_ble:   DATA LEN : 40
00> [00:03:07.825,500] <inf> combined_ble: Name: S1IAD1885, PKT CNTR: 7646, epoch: 1774529400
00> [00:03:09.874,664] <inf> combined_ble:   DATA LEN : 0
00> [00:03:09.875,030] <inf> combined_ble:  -------------------- Disconnected... (reason 0x13) -------------------------
00> [00:03:09.936,126] <inf> combined_ble:  Scan Resume err code : 0
00> [00:03:09.936,492] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:04:27.888,671] <inf> combined_ble: Filters matched. Address: E5:F7:69:AF:E8:21 (random) connectable: 0 RSSI: -68
00> [00:04:27.894,287] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:04:27.915,344] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:04:27.916,687] <inf> combined_ble: MTU exchange request (err 0)
00> [00:04:28.116,912] <inf> combined_ble: Negotiated MTU size is: 247
00> [00:04:28.117,279] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:04:28.216,888] <inf> combined_ble: Found service, start_handle: 0x0010, end_handle: 0x0015
00> [00:04:28.317,291] <inf> combined_ble: Characteristic handle: 0x0012
00> [00:04:28.416,900] <inf> combined_ble: CCCD handle: 0x0013
00> [00:04:28.417,327] <inf> combined_ble: bt_gatt_subscribe err code: 0
00> [00:04:28.767,181] <inf> combined_ble:   DATA LEN : 40
00> [00:04:28.768,035] <inf> combined_ble:   DATA LEN : 40
00> [00:04:28.817,199] <inf> combined_ble:   DATA LEN : 40
00> [00:04:28.867,187] <inf> combined_ble:   DATA LEN : 40
00> [00:04:28.967,193] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.017,211] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.067,199] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.117,187] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.167,205] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.217,193] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.317,199] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.367,187] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.417,205] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.467,193] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.517,211] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.567,199] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.617,218] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.667,205] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.717,193] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.767,211] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.817,199] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.867,187] <inf> combined_ble:   DATA LEN : 40
00> [00:04:29.917,205] <inf> combined_ble:   DATA LEN : 40
00> [00:04:30.017,211] <inf> combined_ble:   DATA LEN : 40
00> [00:04:30.067,199] <inf> combined_ble:   DATA LEN : 40
00> [00:04:30.117,187] <inf> combined_ble:   DATA LEN : 40
00> [00:04:30.117,553] <inf> combined_ble: Name: S1IAD1902, PKT CNTR: 9105, epoch: 1774530000
00> [00:04:32.166,717] <inf> combined_ble:   DATA LEN : 0
00> [00:04:32.167,083] <inf> combined_ble:  -------------------- Disconnected... (reason 0x13) -------------------------
00> [00:04:32.220,703] <inf> combined_ble:  Scan Resume err code : 0
00> [00:04:32.221,069] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:04:37.027,069] <inf> combined_ble: Filters matched. Address: D4:D7:B8:24:41:E6 (random) connectable: 0 RSSI: -71
00> [00:04:37.028,869] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:04:37.045,806] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:04:37.047,119] <inf> combined_ble: MTU exchange request (err 0)
00> [00:04:37.397,308] <inf> combined_ble: Negotiated MTU size is: 247
00> [00:04:37.397,705] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:04:37.497,436] <inf> combined_ble: Found service, start_handle: 0x0010, end_handle: 0x0015
00> [00:04:37.597,625] <inf> combined_ble: Characteristic handle: 0x0012
00> [00:04:37.697,357] <inf> combined_ble: CCCD handle: 0x0013
00> [00:04:37.697,784] <inf> combined_ble: bt_gatt_subscribe err code: 0
00> [00:04:37.897,613] <inf> combined_ble:   DATA LEN : 40
00> [00:04:37.898,498] <inf> combined_ble:   DATA LEN : 40
00> [00:04:37.947,662] <inf> combined_ble:   DATA LEN : 40
00> [00:04:37.997,650] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.047,668] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.097,656] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.147,674] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.197,662] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.247,650] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.297,668] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.347,656] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.397,644] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.447,662] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.497,650] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.547,668] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.597,656] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.647,674] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.697,662] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.747,650] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.847,656] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.897,674] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.947,662] <inf> combined_ble:   DATA LEN : 40
00> [00:04:38.997,650] <inf> combined_ble:   DATA LEN : 40
00> [00:04:39.047,668] <inf> combined_ble:   DATA LEN : 40
00> [00:04:39.097,656] <inf> combined_ble:   DATA LEN : 40
00> [00:04:39.147,644] <inf> combined_ble:   DATA LEN : 40
00> [00:04:39.148,010] <inf> combined_ble: Name: S1IAD1588, PKT CNTR: 1454, epoch: 1774530000
00> [00:04:41.197,174] <inf> combined_ble:   DATA LEN : 0
00> [00:04:41.197,540] <inf> combined_ble:  -------------------- Disconnected... (reason 0x13) -------------------------
00> [00:04:41.232,727] <inf> combined_ble:  Scan Resume err code : 0
00> [00:04:41.233,093] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:05:06.514,251] <inf> combined_ble: Filters matched. Address: D4:72:A9:51:FD:79 (random) connectable: 0 RSSI: -90
00> [00:05:06.520,874] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:05:06.533,538] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:05:06.534,851] <inf> combined_ble: MTU exchange request (err 0)
00> [00:05:06.785,125] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:05:06.785,522] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:05:06.786,010] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:05:06.786,529] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:05:06.861,541] <inf> combined_ble:  Scan Resume err code : 0
00> [00:05:06.861,907] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:06:32.020,843] <inf> combined_ble: Filters matched. Address: C7:5C:04:2A:9E:85 (random) connectable: 0 RSSI: -71
00> [00:06:32.024,719] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:06:32.048,004] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:06:32.049,316] <inf> combined_ble: MTU exchange request (err 0)
00> [00:06:32.299,591] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:06:32.299,987] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:06:32.300,476] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:06:32.300,994] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:06:32.349,822] <inf> combined_ble:  Scan Resume err code : 0
00> [00:06:32.350,189] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:06:32.359,039] <inf> combined_ble: Filters matched. Address: C7:5C:04:2A:9E:85 (random) connectable: 0 RSSI: -70
00> [00:06:32.361,907] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:06:32.384,704] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:06:32.385,986] <inf> combined_ble: MTU exchange request (err 0)
00> [00:06:32.636,291] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:06:32.636,657] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:06:32.637,145] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:06:32.637,664] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:06:32.653,045] <inf> combined_ble:  Scan Resume err code : 0
00> [00:06:32.653,411] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:06:32.670,288] <inf> combined_ble: Filters matched. Address: C7:5C:04:2A:9E:85 (random) connectable: 0 RSSI: -68
00> [00:06:32.676,208] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:06:32.690,795] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:06:32.692,108] <inf> combined_ble: MTU exchange request (err 0)
00> [00:06:32.992,309] <inf> combined_ble: Negotiated MTU size is: 247
00> [00:06:32.992,675] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:06:33.092,437] <inf> combined_ble: Found service, start_handle: 0x0010, end_handle: 0x0015
00> [00:06:33.192,626] <inf> combined_ble: Characteristic handle: 0x0012
00> [00:06:33.292,327] <inf> combined_ble: CCCD handle: 0x0013
00> [00:06:33.292,755] <inf> combined_ble: bt_gatt_subscribe err code: 0
00> [00:06:33.542,602] <inf> combined_ble:   DATA LEN : 40
00> [00:06:33.543,487] <inf> combined_ble:   DATA LEN : 40
00> [00:06:33.592,651] <inf> combined_ble:   DATA LEN : 40
00> [00:06:33.642,639] <inf> combined_ble:   DATA LEN : 40
00> [00:06:33.742,645] <inf> combined_ble:   DATA LEN : 40
00> [00:06:33.792,633] <inf> combined_ble:   DATA LEN : 40
00> [00:06:33.842,651] <inf> combined_ble:   DATA LEN : 40
00> [00:06:33.892,639] <inf> combined_ble:   DATA LEN : 40
00> [00:06:33.942,626] <inf> combined_ble:   DATA LEN : 40
00> [00:06:33.992,645] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.092,651] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.142,639] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.192,626] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.242,645] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.292,633] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.342,651] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.392,639] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.442,626] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.492,645] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.542,633] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.592,651] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.642,639] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.842,651] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.892,639] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.942,626] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.992,645] <inf> combined_ble:   DATA LEN : 40
00> [00:06:34.993,011] <inf> combined_ble: Name: S1IAD1876, PKT CNTR: 9101, epoch: 1774530000
00> [00:06:37.042,175] <inf> combined_ble:   DATA LEN : 0
00> [00:06:37.042,541] <inf> combined_ble:  -------------------- Disconnected... (reason 0x13) -------------------------
00> [00:06:37.060,272] <inf> combined_ble:  Scan Resume err code : 0
00> [00:06:37.060,638] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:07:12.610,198] <inf> combined_ble: Filters matched. Address: E4:36:13:61:FA:F1 (random) connectable: 0 RSSI: -76
00> [00:07:12.612,670] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:07:12.628,509] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:07:12.629,821] <inf> combined_ble: MTU exchange request (err 0)
00> [00:07:12.880,096] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:07:12.880,493] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:07:12.880,981] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:07:12.881,500] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:07:12.898,803] <inf> combined_ble:  Scan Resume err code : 0
00> [00:07:12.899,169] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:08:37.878,631] <inf> combined_ble: Filters matched. Address: E5:F7:69:AF:E8:21 (random) connectable: 0 RSSI: -77
00> [00:08:37.881,988] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:08:37.907,287] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:08:37.908,630] <inf> combined_ble: MTU exchange request (err 0)
00> [00:08:38.108,856] <inf> combined_ble: Negotiated MTU size is: 247
00> [00:08:38.109,222] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:08:38.258,850] <inf> combined_ble: Found service, start_handle: 0x0010, end_handle: 0x0015
00> [00:08:38.359,252] <inf> combined_ble: Characteristic handle: 0x0012
00> [00:08:38.458,831] <inf> combined_ble: CCCD handle: 0x0013
00> [00:08:38.459,289] <inf> combined_ble: bt_gatt_subscribe err code: 0
00> [00:08:38.759,124] <inf> combined_ble:   DATA LEN : 40
00> [00:08:38.759,979] <inf> combined_ble:   DATA LEN : 40
00> [00:08:38.809,143] <inf> combined_ble:   DATA LEN : 40
00> [00:08:38.859,161] <inf> combined_ble:   DATA LEN : 40
00> [00:08:38.909,149] <inf> combined_ble:   DATA LEN : 40
00> [00:08:38.959,136] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.009,155] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.059,143] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.109,161] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.209,136] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.309,143] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.359,161] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.409,149] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.509,155] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.609,161] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.659,149] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.709,136] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.759,155] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.809,143] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.859,161] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.909,149] <inf> combined_ble:   DATA LEN : 40
00> [00:08:39.959,136] <inf> combined_ble:   DATA LEN : 40
00> [00:08:40.009,155] <inf> combined_ble:   DATA LEN : 40
00> [00:08:40.059,143] <inf> combined_ble:   DATA LEN : 40
00> [00:08:40.109,161] <inf> combined_ble:   DATA LEN : 40
00> [00:08:40.159,149] <inf> combined_ble:   DATA LEN : 40
00> [00:08:40.159,515] <inf> combined_ble: Name: S1IAD1902, PKT CNTR: 9105, epoch: 1774530000
00> [00:08:42.258,666] <inf> combined_ble:   DATA LEN : 0
00> [00:08:42.259,033] <inf> combined_ble:  -------------------- Disconnected... (reason 0x13) -------------------------
00> [00:08:42.289,886] <inf> combined_ble:  Scan Resume err code : 0
00> [00:08:42.290,252] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:08:42.774,871] <inf> combined_ble: Filters matched. Address: DC:BF:AF:86:1F:0E (random) connectable: 0 RSSI: -68
00> [00:08:42.778,045] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:08:42.798,889] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:08:42.800,170] <inf> combined_ble: MTU exchange request (err 0)
00> [00:08:43.050,537] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:08:43.050,933] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:08:43.051,422] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:08:43.051,940] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:08:43.093,597] <inf> combined_ble:  Scan Resume err code : 0
00> [00:08:43.093,963] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:08:43.120,483] <inf> combined_ble: Filters matched. Address: DC:BF:AF:86:1F:0E (random) connectable: 0 RSSI: -74
00> [00:08:43.125,976] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:08:46.127,899] <inf> combined_ble: Conn fail err code: 2
00> [00:08:46.128,265] <inf> combined_ble: default_conn pointer: 0x20002d18 in on_Connected
00> [00:08:46.198,364] <inf> combined_ble:  Scan Resumed err code : 0
00> [00:08:46.939,636] <inf> combined_ble: Filters matched. Address: D4:D7:B8:24:41:E6 (random) connectable: 0 RSSI: -70
00> [00:08:46.941,528] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:08:46.966,552] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:08:46.967,864] <inf> combined_ble: MTU exchange request (err 0)
00> [00:08:47.218,139] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:08:47.218,536] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:08:47.219,024] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:08:47.219,543] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:08:47.302,093] <inf> combined_ble:  Scan Resume err code : 0
00> [00:08:47.302,459] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:09:16.413,360] <inf> combined_ble: Filters matched. Address: D4:72:A9:51:FD:79 (random) connectable: 0 RSSI: -79
00> [00:09:16.415,222] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:09:16.432,281] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:09:16.433,593] <inf> combined_ble: MTU exchange request (err 0)
00> [00:09:16.683,868] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:09:16.684,265] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:09:16.684,753] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:09:16.685,272] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:09:16.733,978] <inf> combined_ble:  Scan Resume err code : 0
00> [00:09:16.734,344] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:09:16.750,762] <inf> combined_ble: Filters matched. Address: D4:72:A9:51:FD:79 (random) connectable: 0 RSSI: -68
00> [00:09:16.757,110] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:09:16.777,954] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:09:16.779,235] <inf> combined_ble: MTU exchange request (err 0)
00> [00:09:17.029,541] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:09:17.029,907] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:09:17.030,395] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:09:17.030,914] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:09:17.037,200] <inf> combined_ble:  Scan Resume err code : 0
00> [00:09:17.037,567] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:09:27.020,965] <inf> combined_ble: Filters matched. Address: C7:5C:04:2A:9E:85 (random) connectable: 0 RSSI: -86
00> [00:09:27.024,597] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:09:27.051,422] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:09:27.052,734] <inf> combined_ble: MTU exchange request (err 0)
00> [00:09:27.303,009] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:09:27.303,405] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:09:27.303,894] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:09:27.304,412] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:09:27.350,250] <inf> combined_ble:  Scan Resume err code : 0
00> [00:09:27.350,616] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:09:27.602,722] <inf> combined_ble: Filters matched. Address: C7:5C:04:2A:9E:85 (random) connectable: 0 RSSI: -82
00> [00:09:27.605,865] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:09:27.632,354] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:09:27.633,666] <inf> combined_ble: MTU exchange request (err 0)
00> [00:09:27.883,941] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:09:27.884,338] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:09:27.884,826] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:09:27.885,345] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:09:27.953,765] <inf> combined_ble:  Scan Resume err code : 0
00> [00:09:27.954,132] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:10:10.257,507] <inf> combined_ble: Filters matched. Address: CC:0D:F5:68:F7:4D (random) connectable: 0 RSSI: -66
00> [00:10:10.261,413] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:10:10.280,731] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:10:10.282,043] <inf> combined_ble: MTU exchange request (err 0)
00> [00:10:10.482,299] <inf> combined_ble: Negotiated MTU size is: 247
00> [00:10:10.482,666] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:10:10.582,275] <inf> combined_ble: Found service, start_handle: 0x0010, end_handle: 0x0015
00> [00:10:10.682,678] <inf> combined_ble: Characteristic handle: 0x0012
00> [00:10:10.832,275] <inf> combined_ble: CCCD handle: 0x0013
00> [00:10:10.832,702] <inf> combined_ble: bt_gatt_subscribe err code: 0
00> [00:10:11.132,537] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.133,422] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.182,586] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.232,574] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.332,580] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.382,568] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.432,586] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.482,574] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.532,592] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.582,580] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.632,568] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.732,574] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.782,592] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.832,580] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.882,568] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.932,586] <inf> combined_ble:   DATA LEN : 40
00> [00:10:11.982,574] <inf> combined_ble:   DATA LEN : 40
00> [00:10:12.032,592] <inf> combined_ble:   DATA LEN : 40
00> [00:10:12.082,580] <inf> combined_ble:   DATA LEN : 40
00> [00:10:12.132,568] <inf> combined_ble:   DATA LEN : 40
00> [00:10:12.182,586] <inf> combined_ble:   DATA LEN : 40
00> [00:10:12.282,562] <inf> combined_ble:   DATA LEN : 40
00> [00:10:12.332,580] <inf> combined_ble:   DATA LEN : 40
00> [00:10:12.382,568] <inf> combined_ble:   DATA LEN : 40
00> [00:10:12.482,574] <inf> combined_ble:   DATA LEN : 40
00> [00:10:12.532,562] <inf> combined_ble:   DATA LEN : 40
00> [00:10:12.532,928] <inf> combined_ble: Name: S1IAD1885, PKT CNTR: 7648, epoch: 1774530600
00> [00:10:14.582,092] <inf> combined_ble:   DATA LEN : 0
00> [00:10:14.582,458] <inf> combined_ble:  -------------------- Disconnected... (reason 0x13) -------------------------
00> [00:10:14.602,783] <inf> combined_ble:  Scan Resume err code : 0
00> [00:10:14.603,149] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:11:32.856,781] <inf> combined_ble: Filters matched. Address: E5:F7:69:AF:E8:21 (random) connectable: 0 RSSI: -74
00> [00:11:32.860,931] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:11:32.884,185] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:11:32.885,498] <inf> combined_ble: MTU exchange request (err 0)
00> [00:11:33.335,723] <inf> combined_ble: Negotiated MTU size is: 247
00> [00:11:33.336,090] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:11:33.435,699] <inf> combined_ble: Found service, start_handle: 0x0010, end_handle: 0x0015
00> [00:11:33.536,102] <inf> combined_ble: Characteristic handle: 0x0012
00> [00:11:33.635,711] <inf> combined_ble: CCCD handle: 0x0013
00> [00:11:33.636,138] <inf> combined_ble: bt_gatt_subscribe err code: 0
00> [00:11:33.835,510] <inf> combined_ble:   DATA LEN : 0
00> [00:11:33.835,937] <inf> combined_ble:  -------------------- Disconnected... (reason 0x13) -------------------------
00> [00:11:33.884,979] <inf> combined_ble:  Scan Resume err code : 0
00> [00:11:33.885,345] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:11:41.896,392] <inf> combined_ble: Filters matched. Address: D4:D7:B8:24:41:E6 (random) connectable: 0 RSSI: -68
00> [00:11:41.898,040] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:11:41.918,243] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:11:41.919,555] <inf> combined_ble: MTU exchange request (err 0)
00> [00:11:42.169,830] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:11:42.170,227] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:11:42.170,715] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:11:42.171,234] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:11:42.196,075] <inf> combined_ble:  Scan Resume err code : 0
00> [00:11:42.196,441] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:11:42.207,397] <inf> combined_ble: Filters matched. Address: D4:D7:B8:24:41:E6 (random) connectable: 0 RSSI: -69
00> [00:11:42.209,228] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:11:42.234,741] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:11:42.236,022] <inf> combined_ble: MTU exchange request (err 0)
00> [00:11:42.686,248] <inf> combined_ble: Negotiated MTU size is: 247
00> [00:11:42.686,614] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:11:42.786,346] <inf> combined_ble: Found service, start_handle: 0x0010, end_handle: 0x0015
00> [00:11:42.886,535] <inf> combined_ble: Characteristic handle: 0x0012
00> [00:11:43.036,254] <inf> combined_ble: CCCD handle: 0x0013
00> [00:11:43.036,712] <inf> combined_ble: bt_gatt_subscribe err code: 0
00> [00:11:43.136,077] <inf> combined_ble:   DATA LEN : 0
00> [00:11:43.136,474] <inf> combined_ble:  -------------------- Disconnected... (reason 0x13) -------------------------
00> [00:11:43.199,981] <inf> combined_ble:  Scan Resume err code : 0
00> [00:11:43.200,347] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:12:11.420,471] <inf> combined_ble: Filters matched. Address: D4:72:A9:51:FD:79 (random) connectable: 0 RSSI: -76
00> [00:12:11.423,156] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:12:11.444,396] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:12:11.445,709] <inf> combined_ble: MTU exchange request (err 0)
00> [00:12:11.695,983] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:12:11.696,380] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:12:11.696,868] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:12:11.697,387] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:12:11.731,628] <inf> combined_ble:  Scan Resume err code : 0
00> [00:12:11.731,994] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:12:11.761,138] <inf> combined_ble: Filters matched. Address: D4:72:A9:51:FD:79 (random) connectable: 0 RSSI: -74
00> [00:12:11.764,007] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:12:11.788,238] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:12:11.789,550] <inf> combined_ble: MTU exchange request (err 0)
00> [00:12:12.039,825] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:12:12.040,222] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:12:12.040,710] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:12:12.041,229] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:12:12.134,948] <inf> combined_ble:  Scan Resume err code : 0
00> [00:12:12.135,314] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:13:05.206,451] <inf> combined_ble: Filters matched. Address: CC:0D:F5:68:F7:4D (random) connectable: 0 RSSI: -67
00> [00:13:05.208,099] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:13:05.230,499] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:13:05.231,781] <inf> combined_ble: MTU exchange request (err 0)
00> [00:13:05.482,086] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:13:05.482,482] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:13:05.482,971] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:13:05.483,459] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:13:05.490,692] <inf> combined_ble:  Scan Resume err code : 0
00> [00:13:05.491,058] <inf> combined_ble: 
00> 
00> 
00> 
00> 
00> [00:14:27.825,225] <inf> combined_ble: Filters matched. Address: E5:F7:69:AF:E8:21 (random) connectable: 0 RSSI: -74
00> [00:14:27.828,826] <inf> combined_ble: default_conn pointer: 0x20002d18 in scan_connecting
00> [00:14:27.850,372] <inf> combined_ble: --------------------  CONNECTED to BLE DEVICE ---------------------
00> [00:14:27.851,684] <inf> combined_ble: MTU exchange request (err 0)
00> [00:14:28.101,959] <wrn> combined_ble: MTU exchange failed (err 14)
00> [00:14:28.102,355] <inf> combined_ble: start_discovery: conn pointer = 0x20002d18
00> [00:14:28.102,844] <err> combined_ble: Custom service discovery failed (err -128)
00> [00:14:28.103,363] <inf> combined_ble:  -------------------- Disconnected... (reason 0x3e) -------------------------
00> [00:14:28.175,506] <inf> combined_ble:  Scan Resume err code : 0
00> [00:14:28.175,872] <inf> combined_ble: 
00> 
00> 


While debugging the peripheral-side logs s, I am observing an error code: - 128

  Could you please help identify the possible root cause of:

  • MTU exchange failure
  • Unexpected BLE disconnections
  • And whether the peripheral error -128 could be related to this issue

  Also, please suggest any configuration or implementation changes required to stabilize the connection.

Parents
  • Hi

    Have you set the MTU size and data length size to support the same size in both central and peripheral It seems like the MTU size is set correctly, but the data length also needs to be set correctly to allow for larger data lengths. In what kind of environment are you testing for here, because it seems like there is a disconnect during the data transfer, possibly due to the surrounding environments.

    Best regards,

    Simon

  • Hi Simonr,

       I am using nRF52833 with nRF Connect SDK for VS Code (v2.9.0) on the central side.

       The MTU size has been configured on the central side, and I have also configured the data length parameters accordingly. Please find attached the prj.conf file from the central side for your reference.

     

    #
    # Copyright (c) 2018 Nordic Semiconductor
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    
    # ─── UART (Async, no console) ───────────────────────────────────────────────
    CONFIG_SERIAL=y
    CONFIG_UART_ASYNC_API=y
    CONFIG_NRFX_UARTE0=y
    CONFIG_CONSOLE=n
    CONFIG_UART_CONSOLE=n
    
    
    # ─── FOR UART STOP and RESTART AT RUNTIME WHEN UART RX ERROR EVT TRIGGERS ─────────────────────
    CONFIG_PM_DEVICE=y
    CONFIG_PM_DEVICE_RUNTIME=y
    
    
    # ─── BLE Stack (Central / Scanner) ──────────────────────────────────────────
    CONFIG_BT=y
    CONFIG_BT_CENTRAL=y
    CONFIG_BT_GATT_CLIENT=y
    CONFIG_BT_SMP=y
    
    # BLE NCS modules
    CONFIG_BT_NUS_CLIENT=y
    CONFIG_BT_SCAN=y
    CONFIG_BT_SCAN_FILTER_ENABLE=y
    CONFIG_BT_SCAN_UUID_CNT=1
    CONFIG_BT_GATT_DM=y
    
    # MTU / buffer sizing for 40-byte chunks
    CONFIG_BT_L2CAP_TX_MTU=247
    CONFIG_BT_BUF_ACL_TX_SIZE=251
    CONFIG_BT_BUF_ACL_RX_SIZE=251
    CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
    
    # BLE stack sizes
    CONFIG_BT_RX_STACK_SIZE=4096
    
    # Reduce BLE log noise — only errors
    CONFIG_BT_LOG_LEVEL_ERR=y
    
    # ─── Stack / Heap ────────────────────────────────────────────────────────────
    CONFIG_MAIN_STACK_SIZE=4096
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
    CONFIG_HEAP_MEM_POOL_SIZE=4096
    
    # ─── RTT Logging (no UART backend) ──────────────────────────────────────────
    CONFIG_LOG=y
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_UART=n
    CONFIG_LOG_PRINTK=y
    # 23rd March 2026, RTT BUFFER SIZE increased for crash log capture
    CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=4096
    # ─── GPIO / SPI (needed for nRF21540 FEM) ───────────────────────────────────
    CONFIG_GPIO=y
    CONFIG_SPI=y
    
    # ─── RTC Calendar ────────────────────────────────────────────────────────────
    CONFIG_RTC=y
    CONFIG_RTC_UPDATE=y
    
    # ─── Watchdog ────────────────────────────────────────────────────────────────
    CONFIG_WATCHDOG=y
    CONFIG_REBOOT=y
    
    # ─── Clock (RC low-frequency, 500 ppm) ───────────────────────────────────────
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y
    
    # ─── Range Extender: nRF21540 FEM ────────────────────────────────────────────
    CONFIG_MPSL=y
    CONFIG_MPSL_FEM=y
    CONFIG_MPSL_FEM_NRF21540_GPIO_SPI=y
    CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=20
    CONFIG_MPSL_FEM_POWER_MODEL=y
    CONFIG_MPSL_FEM_POWER_MODEL_NRF21540_USE_BUILTIN=y
    CONFIG_BT_CTLR_TX_PWR_ANTENNA=20
    
    # ─── Assert ──────────────────────────────────────────────────────────────────
    CONFIG_ASSERT=y
    
    # ─── Heap runtime stats (optional, useful for debugging) ─────────────────────
    CONFIG_SYS_HEAP_RUNTIME_STATS=y
    
    # ─────────── prj.conf ADDDED ON -> 9th MARCH for CRC CHECK ──────────────────────
    CONFIG_CRC=y
    
    # ─── Fatal Error Debugging 10th MARCH 2026, ───────────────────────────────────────────────────
    CONFIG_RESET_ON_FATAL_ERROR=n       # Prevent immediate reboot so output is visible
    CONFIG_THREAD_NAME=y                # Show thread name (e.g. "main") instead of "unknown"
    CONFIG_ASSERT=y
    CONFIG_ASSERT_VERBOSE=y
    CONFIG_ASSERT_NO_COND_INFO=n
    CONFIG_ASSERT_NO_MSG_INFO=n
    # Stack overflow detection
    CONFIG_HW_STACK_PROTECTION=y
    CONFIG_INIT_STACKS=y
    # Immediate logging ensures crash logs are flushed before halt
    CONFIG_LOG_MODE_IMMEDIATE=y
    
    
    
    #────────────────────────────  THREAD ANALYZER FOR STACK OVERFLOW DETECTION ──────────────────────
    #CONFIG_THREAD_NAME=y
    
    #CONFIG_THREAD_ANALYZER=y
    #CONFIG_THREAD_ANALYZER_AUTO=y
    #CONFIG_THREAD_ANALYZER_RUN_UNLOCKED=y
    #CONFIG_THREAD_ANALYZER_USE_LOG=y
    #CONFIG_THREAD_ANALYZER_AUTO_INTERVAL=30
    #CONFIG_THREAD_ANALYZER_AUTO_STACK_SIZE=2048
    
    #CONFIG_INIT_STACKS=y
    
    

    At the moment, I do not have configuration details from the peripheral side, as the peripheral device (tag) has been provided by the client. Therefore, I am not able to confirm whether the MTU size and data length settings are matched on the peripheral side.

      Regarding the test environment, testing is being performed in a standard indoor environment.

      Please let me know if you need any additional logs or configuration details from the central side.

Reply
  • Hi Simonr,

       I am using nRF52833 with nRF Connect SDK for VS Code (v2.9.0) on the central side.

       The MTU size has been configured on the central side, and I have also configured the data length parameters accordingly. Please find attached the prj.conf file from the central side for your reference.

     

    #
    # Copyright (c) 2018 Nordic Semiconductor
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    
    # ─── UART (Async, no console) ───────────────────────────────────────────────
    CONFIG_SERIAL=y
    CONFIG_UART_ASYNC_API=y
    CONFIG_NRFX_UARTE0=y
    CONFIG_CONSOLE=n
    CONFIG_UART_CONSOLE=n
    
    
    # ─── FOR UART STOP and RESTART AT RUNTIME WHEN UART RX ERROR EVT TRIGGERS ─────────────────────
    CONFIG_PM_DEVICE=y
    CONFIG_PM_DEVICE_RUNTIME=y
    
    
    # ─── BLE Stack (Central / Scanner) ──────────────────────────────────────────
    CONFIG_BT=y
    CONFIG_BT_CENTRAL=y
    CONFIG_BT_GATT_CLIENT=y
    CONFIG_BT_SMP=y
    
    # BLE NCS modules
    CONFIG_BT_NUS_CLIENT=y
    CONFIG_BT_SCAN=y
    CONFIG_BT_SCAN_FILTER_ENABLE=y
    CONFIG_BT_SCAN_UUID_CNT=1
    CONFIG_BT_GATT_DM=y
    
    # MTU / buffer sizing for 40-byte chunks
    CONFIG_BT_L2CAP_TX_MTU=247
    CONFIG_BT_BUF_ACL_TX_SIZE=251
    CONFIG_BT_BUF_ACL_RX_SIZE=251
    CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
    
    # BLE stack sizes
    CONFIG_BT_RX_STACK_SIZE=4096
    
    # Reduce BLE log noise — only errors
    CONFIG_BT_LOG_LEVEL_ERR=y
    
    # ─── Stack / Heap ────────────────────────────────────────────────────────────
    CONFIG_MAIN_STACK_SIZE=4096
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
    CONFIG_HEAP_MEM_POOL_SIZE=4096
    
    # ─── RTT Logging (no UART backend) ──────────────────────────────────────────
    CONFIG_LOG=y
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_UART=n
    CONFIG_LOG_PRINTK=y
    # 23rd March 2026, RTT BUFFER SIZE increased for crash log capture
    CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=4096
    # ─── GPIO / SPI (needed for nRF21540 FEM) ───────────────────────────────────
    CONFIG_GPIO=y
    CONFIG_SPI=y
    
    # ─── RTC Calendar ────────────────────────────────────────────────────────────
    CONFIG_RTC=y
    CONFIG_RTC_UPDATE=y
    
    # ─── Watchdog ────────────────────────────────────────────────────────────────
    CONFIG_WATCHDOG=y
    CONFIG_REBOOT=y
    
    # ─── Clock (RC low-frequency, 500 ppm) ───────────────────────────────────────
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y
    
    # ─── Range Extender: nRF21540 FEM ────────────────────────────────────────────
    CONFIG_MPSL=y
    CONFIG_MPSL_FEM=y
    CONFIG_MPSL_FEM_NRF21540_GPIO_SPI=y
    CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=20
    CONFIG_MPSL_FEM_POWER_MODEL=y
    CONFIG_MPSL_FEM_POWER_MODEL_NRF21540_USE_BUILTIN=y
    CONFIG_BT_CTLR_TX_PWR_ANTENNA=20
    
    # ─── Assert ──────────────────────────────────────────────────────────────────
    CONFIG_ASSERT=y
    
    # ─── Heap runtime stats (optional, useful for debugging) ─────────────────────
    CONFIG_SYS_HEAP_RUNTIME_STATS=y
    
    # ─────────── prj.conf ADDDED ON -> 9th MARCH for CRC CHECK ──────────────────────
    CONFIG_CRC=y
    
    # ─── Fatal Error Debugging 10th MARCH 2026, ───────────────────────────────────────────────────
    CONFIG_RESET_ON_FATAL_ERROR=n       # Prevent immediate reboot so output is visible
    CONFIG_THREAD_NAME=y                # Show thread name (e.g. "main") instead of "unknown"
    CONFIG_ASSERT=y
    CONFIG_ASSERT_VERBOSE=y
    CONFIG_ASSERT_NO_COND_INFO=n
    CONFIG_ASSERT_NO_MSG_INFO=n
    # Stack overflow detection
    CONFIG_HW_STACK_PROTECTION=y
    CONFIG_INIT_STACKS=y
    # Immediate logging ensures crash logs are flushed before halt
    CONFIG_LOG_MODE_IMMEDIATE=y
    
    
    
    #────────────────────────────  THREAD ANALYZER FOR STACK OVERFLOW DETECTION ──────────────────────
    #CONFIG_THREAD_NAME=y
    
    #CONFIG_THREAD_ANALYZER=y
    #CONFIG_THREAD_ANALYZER_AUTO=y
    #CONFIG_THREAD_ANALYZER_RUN_UNLOCKED=y
    #CONFIG_THREAD_ANALYZER_USE_LOG=y
    #CONFIG_THREAD_ANALYZER_AUTO_INTERVAL=30
    #CONFIG_THREAD_ANALYZER_AUTO_STACK_SIZE=2048
    
    #CONFIG_INIT_STACKS=y
    
    

    At the moment, I do not have configuration details from the peripheral side, as the peripheral device (tag) has been provided by the client. Therefore, I am not able to confirm whether the MTU size and data length settings are matched on the peripheral side.

      Regarding the test environment, testing is being performed in a standard indoor environment.

      Please let me know if you need any additional logs or configuration details from the central side.

Children
No Data
Related