This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/LAUNCHXL-CC2650: UpdateLink

Part Number: LAUNCHXL-CC2650

Tool/software: Code Composer Studio

I want to make central to change the connection interval of sensorTags using GAPCentralRole_UpdateLink, so, when I click the right button of the central device, it should change a connection interval, but nothing happens. Could someone help me just writing the code that works in this way, or is it imposible?

This is my code:

if (keys & KEY_RIGHT) {
if(BLE_STATE_CONNECTED){
/*
* connHandle
* connIntervalMin
* connIntervalMax
* connLatency
* connTimeout
* Bikoiztu egin dira konexioko parametroak, 800 eta 1600 hurrenez hurren.*/
GAPCentralRole_UpdateLink(connHandle,
DEFAULT_UPDATE_MIN_CONN_INTERVAL_PRIMA,
DEFAULT_UPDATE_MAX_CONN_INTERVAL_PRIMA,
DEFAULT_UPDATE_SLAVE_LATENCY,
DEFAULT_UPDATE_CONN_TIMEOUT_PRIMA);
}

  • Part Number: LAUNCHXL-CC2650

    Tool/software: Code Composer Studio

    Can someone tell me how can I use GAPCentralRole_UpdateLink() function to make sure that central device changes the connection interval of the peripheral?

  • Part Number: LAUNCHXL-CC2650

    Tool/software: Code Composer Studio

    I would like to change the connection parameter from the central: when I click a button in the central device, I would like to send a message to a sensorTag just to change it's connection parameters, so, if the sensorTag was connected every 15 seconds, when i click a button in the central, i would like to change to connect the sensorTag every 5 seconds.

    Is it possible? How would be the code?

  • Hi Aitor,

    The maximum BLE connection interval is 4 seconds. Are you trying to update the connection interval or are you trying to reconnect with the sensor tag every 5 seconds? I would recommend you take a look at our SimpleLink Academy Connections module for some guidance on connections: dev.ti.com/.../
  • Part Number: LAUNCHXL-CC2650

    Tool/software: Code Composer Studio

    Hi all.

    I would like to update connection parameter from the central, so when I press the right button (for example), to change the connection parameters. How could I do this?

  • Hello Aitor,

    I've merged your three posts into one since they are concerning the same topic. Please post follow up questions on this topic in this thread.

    Regarding GAPCentralRole_UpdateLink, you can find this API defined in central.h. I suggest reviewing the SimpleLink Academy lab that Rachel recommends and taking a BLE Packet Sniffer trace during this operation.

    Note that connection parameters are updated only during an active connection. It's not clear from your description if you are trying to establish a connection or update an existing connection.

    Best wishes