Connection interval woes | Cypress Semiconductor
Connection interval woes
I am using the BLE Pioneer Kit with the PSoC BLE Module and the connection example code from AN92584.
I am able to achieve similar connection current measurements as AN92584 but only at 30ms interval wjile connected to CySmart on my iPhone.
In the code I found this, which I believe is where connIntv is set:
if(connected && connUpdate)
static CYBLE_GAP_CONN_UPDATE_PARAM_T hrmConnectionParam =
800, /* Minimum connection interval of 1000 ms */
800, /* Maximum connection interval of 1000 ms */
0, /* Slave latency */
500 /* Supervision timeout of 5 seconds */
conResult = CyBle_L2capLeConnectionParamUpdateRequest(cyBle_connHandle.bdHandle, &hrmConnectionParam);
if(conResult != CYBLE_ERROR_OK)
connUpdate = 0;
No matter what values I put in for Min and Max interval, the project just connects at 30ms interval.
I know this because I have a scope across my ammeter on J15 and can see waveforms similar to AN92584 and always 30 ms apart.
What else must I do to set the connection interval?
I tried debugging but I am not real good at that process here yet.