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

connect inteval time

i use  the BLE uart example to test.  I delete the UART hardware init and just use the BLE send data to phone every 500ms.  I found whatever i set the MIN_CONN_INTERVAL and MAX_CONN_INTERVAL,  the connet interval seems have not change. below is the power consumption i have catched. you can see. every 500ms the current is big. It's beacaure i have send data to phone every 500ms. My question is what happend every 50ms?  you can see the current aslo incressd every 50ms. is that mean the connet event will happend every 50ms? how to reduce this event for save power?

Parents Reply Children
  • Hi 

    As mentioned before, all you can do is set the MIN_CONN_INTERVAL and MAX_CONN_INTERVAL defines, and hope that the central will give you the connection interval that you are asking for. 

    Set both of these to MSEC_TO_UNITS(250, UNIT_1_25_MS) to request this particular connection interval. 

    You can also try to increase the MAX_CONN_PARAMS_UPDATE_COUNT parameter, which will increase the amount of times that the peripheral asks for updated connection parameters. 

    Best regards
    Torbjørn

Related