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

MIN_CONN_INTERVAL MAX_CONN_INTERVAL SLAVE_LATENCY CONN_SUP_TIMEOUT parameters values for Android and iOS

MIN_CONN_INTERVAL

MAX_CONN_INTERVAL

SLAVE_LATENCY

CONN_SUP_TIMEOUT

Hey guys, I want use my device with Android as well as iOS, but i am facing some issues for data sending over BLE... I am getting errors like 0x3401, 0x3004...

Anyone can help me for this, what will be the parameters value, which can be suitable for android as well as iOS.

In android app, i have set latency on High... And in nRF device it is 3... Please suggest if any changes is necessary...

If any changes necessary from iOS App or Android App please suggest.

error_code_status = ble_gyro_string_send_(&m_gyro, read_buffer_life, 14);

i getting this errors on above function or service calling... (In this variable "error_code_status")

My maximum data sending rate is 1-Frame/50ms.(20-Frame per 1-Second)

Parents
  • For iOS I would recommend following apples bluetooth asseory design guidelines. But if your maximum datarate is 1 packet/50 ms I guess that should could be your maximum. Then use maybe 30 as min. The default connection interval for iOS is usually within this range. For Android it can vary a bit. But Android would normally accept the range.

    0x3004 = BLE_ERROR_NO_TX_PACKETS. So you have to wait until a buffer is freed. The number of buffers available depends on your softdevice throughput settings.

    0x3401= BLE_ERROR_GATTS_SYS_ATTR_MISSING. System attributes missing, use sd_ble_gatts_sys_attr_set to set them to a known value.

    Look at the documentation for sd_ble_gatts_hvx for details on how to use this.

Reply
  • For iOS I would recommend following apples bluetooth asseory design guidelines. But if your maximum datarate is 1 packet/50 ms I guess that should could be your maximum. Then use maybe 30 as min. The default connection interval for iOS is usually within this range. For Android it can vary a bit. But Android would normally accept the range.

    0x3004 = BLE_ERROR_NO_TX_PACKETS. So you have to wait until a buffer is freed. The number of buffers available depends on your softdevice throughput settings.

    0x3401= BLE_ERROR_GATTS_SYS_ATTR_MISSING. System attributes missing, use sd_ble_gatts_sys_attr_set to set them to a known value.

    Look at the documentation for sd_ble_gatts_hvx for details on how to use this.

Children
No Data
Related