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.

CC2642R: Where can I see the default values ​​and configuration methods related to the number of retransmissions and transmission timeout times?

Part Number: CC2642R

Tool/software:

1、simplelink_cc13x2_26x2_sdk_5_20_00_52

2、Indicate method is used to transmit data(GATT_PROP_INDICATE)

  • Hi,

    According to the BLUETOOTH CORE SPECIFICATION Version 5.4 | Vol 3, Part F page 1413 Section 3.3.3 Transaction :

    A transaction not completed within 30 seconds shall time out. Such a transaction shall be considered to have failed and the local higher layers shall be informed of this failure. No more Attribute Protocol requests, commands, indications or notifications shall be sent to the target device on this ATT bearer.

    So the default value for transactions timeout are 30 seconds, and cannot be changed. This means that if a response to an indication is not received within 30 seconds, it is considered a timeout.

    Kind regards,
    Maxence

  • The host receives ATT_HANDLE_VALUE_IND, but does not call the ATT_HandleValueCfm interface, and will block and no longer receive the new ATT_HANDLE_VALUE_IND. Is this normal?

  • Hi,

    I need more context to understand your problem. Are you a peripheral or a central ? Are you using code from one of our examples, like basic_BLE ? Which functions are you calling in your GATT even handler that receives the ATT_HANDLE_VALUE_IND ? Have you tried calling ATT_HandleValueCfm yourself ? Could you show the piece of code that you are using for the indications ?

    Kind regards,
    Maxence

  • void SimpleCentral_processGATTMsg(gattMsgEvent_t *pMsg){
      if(pMsg->method == ATT_HANDLE_VALUE_IND){
        //ATT_HandleValueCfm(pMsg->connHandle);
        ...
      }
    }
    Now simulate if the ATT_HandleValueCfm(pMsg->connHandle) call fails successfully, it will not be able to receive ATT_HANDLE_VALUE_IND. Do you have any good suggestions? We are now opening the disconnect. Do you think it is feasible?
  • When using the indicate function, do you have any suggestions on the reliability of the entire mechanism?

  • hi,

    I'm sorry but I don't understand your situation. Could you answer those questions :

    - Are you a peripheral or a central ?
    - Are you using code from one of our examples, like basic_BLE ?
    - Could you have a minimum reproducible example of the problem ?
    - Is the problem that you are successfuly recieving the indication but you're not sending the indication response ?

    I would invite you to also read the User Guide about GATT, it may help you in solving your problem (link and link).

    Kind regards,
    Maxence

  • For example, simple_peripheral project.

    We are using the indicate method to transmit data. For some key links, we assume that if an exception occurs, we need to add mechanisms in the application to ensure its reliability.Do you have any suggestions for this?

  • Hi !

    In your data event handler, you can add BLEAPPUTIL_ATT_ERROR_RSP in the event mask. When this bit is in the event mask of your data handler, any error from the central or peripheral during a data transaction like an indication will be reported in your data event handler function.

    Kind regards,
    Maxence