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

Hard Fault when peripheral MIN_CONN_INTERVAL and MAX_CONN_INTERVAL are reduced from 100-200 down to 50-100.

Hi, 

We've developed a custom board with buttons(peripheral) which will talk to another custom board operating as a repeater (central on one side to talk to our custom board and peripheral to talk an app). I have a state of the system which works well with the exception of latency of data transmission.

I'm trying to minimize the latency of the information sent from the custom board to the repeater, but keep getting faults (on the repeater) every time I load the custom peripheral board and press the buttons to send data to the repeater. The CONN_INTERVAL settings of the custom peripheral board that I've modified too and do not work are as follows: 

#define MIN_CONN_INTERVAL               MSEC_TO_UNITS(20, UNIT_1_25_MS)            /**< Minimum acceptable connection interval */
#define MAX_CONN_INTERVAL               MSEC_TO_UNITS(50, UNIT_1_25_MS)            /**< Maximum acceptable connection interval*/  
#define SLAVE_LATENCY                   0                                           /**< Slave latency. */
#define CONN_SUP_TIMEOUT                MSEC_TO_UNITS(4000, UNIT_10_MS)             /**< Connection supervisory timeout (4 seconds). */

The settings on the custom repeater board has the following CONN_INTERVALs: **Note: I haven't modified this parameter from the original state when the peripheral CONN_INTERVALs were (100-200)

#define MIN_CONN_INTERVAL       MSEC_TO_UNITS(20, UNIT_1_25_MS)        /**< Minimum acceptable connection interval  */
#define MAX_CONN_INTERVAL       MSEC_TO_UNITS(50, UNIT_1_25_MS)        /**< Maximum acceptable connection interval  */
#define SLAVE_LATENCY           0                                       /**< Slave latency. */
#define CONN_SUP_TIMEOUT        MSEC_TO_UNITS(4000, UNIT_10_MS)         /**< Connection supervisory time-out (4 seconds). */

Why, when I decrease the peripheral connection intervals from 100-200 to 20-50, might the repeater crash? Is there something that could cause issues when data arrives to quickly? Is there another setting which may affect this behavior as well? Also, I tried 50-100 without any success. 

Any help is appreciated. 

Thanks!

Related