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.

RTOS/CC2640: CC2640 will disconnect if you start scan when connecting in multi_role

Part Number: CC2640

Tool/software: TI-RTOS

CC2640 will disconnect if you start scan when connecting in multi_role,  and disconect reason is 0x28 = instant passed.

How to slove this issue, should I change the connection parameters? How to determine these parameters?

  • 1.Init the scan parameters when task init :
    GAP_SetParamValue(TGAP_CONN_SCAN_INT, 80);
    GAP_SetParamValue(TGAP_CONN_SCAN_WIND, 80);
    GAP_SetParamValue(TGAP_CONN_HIGH_SCAN_INT, 80);
    GAP_SetParamValue(TGAP_CONN_HIGH_SCAN_WIND, 80);
    GAP_SetParamValue(TGAP_GEN_DISC_SCAN_INT, 80);
    GAP_SetParamValue(TGAP_GEN_DISC_SCAN_WIND, 80);
    GAP_SetParamValue(TGAP_LIM_DISC_SCAN_INT, 80);
    GAP_SetParamValue(TGAP_LIM_DISC_SCAN_WIND, 80);
    GAP_SetParamValue(TGAP_CONN_EST_SCAN_INT, 80);
    GAP_SetParamValue(TGAP_CONN_EST_SCAN_WIND, 80);

    2.start scan when device is connecting
    3.if master found a device,stop scan and restart scan
    4.update connection parameters: connection_interval = 1000, connLatency=0,connTimeout=6000
    5.Disconnected automatically in a moment,reson = 0x28
  • Hi,

    It's hard to say what's going on, it's possible there's two control procedures going on and conflicting. According to the spec, if two instant based control procedures are started, (which should not happen if the spec if followed), then a situation like this could occur.

    Do you have a sniffer capture?

    Regards,
    Rebel