Hi I'm using nrf52 with softdevice s132,
The problem is when I connect nrf52 with my smartphone, the error code 0x3401 occurss after connecting exactly 147~150 second.
How can I solve this problem?
Thanks.
Hi I'm using nrf52 with softdevice s132,
The problem is when I connect nrf52 with my smartphone, the error code 0x3401 occurss after connecting exactly 147~150 second.
How can I solve this problem?
Thanks.
Hi,
Which version of s132 or SDK you are using?
Which function returns the error code? Is it sd_ble_gatts_hvx()? If so, Ole Morten gives a very informative answer to this in this thread: strange error code 13313 (0x3401) returned by sd_ble_gatts_hvx(). Here is a similar question.
-Amanda H.
Hi, I'm using v17.0.0
And error is in the picture.
I read your answer. But, I already had this code
case BLE_GATTS_EVT_SYS_ATTR_MISSING:
err_code = sd_ble_gatts_sys_attr_set(m_conn_handle, NULL, 0);
APP_ERROR_CHECK(err_code);
break;
in ble_evt_handler function.
And, the problem still alive.
Thank you.
Hi,
this post provided a viable solution, as long as you are happy with the ble_nus_data_send() call failing silently and you set the system attributes later. The key is that this will fail until the system attributes is set, and you can handle it in several different ways.
-Amanda H.
Hi,
I tried the way.
The error code 0x3401 is gone.
But, I still get same problem.
When I connect nrf52 exactly 2m 30s, the connection end.
How can I solve this?
Thank you.
Hi,
I tried the way.
The error code 0x3401 is gone.
But, I still get same problem.
When I connect nrf52 exactly 2m 30s, the connection end.
How can I solve this?
Thank you.
Hi,
Could you provide the log for the disconnect reason in the BLE_GAP_EVT_DISCONNECTED event by reading the p_ble_evt->evt.gap_evt.disconnected.reason as
case BLE_GAP_EVT_DISCONNECTED:
NRF_LOG_INFO("Disconnected, reason %d.",
p_ble_evt->evt.gap_evt.params.disconnected.reason);
m_conn_handle = BLE_CONN_HANDLE_INVALID;
break;
-Amanda H