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.

Message Response Timeout

Other Parts Discussed in Thread: CC2540, CC2541

I'm having an issue with the CC2540 development kit that only seems to have popped up recently.

Whenever I write a a configuration attribute, the value is written BUT I then receive a timeout message (presumably because a response is not given to the write command). This problem occurs with most of the projects given in the 1.3 BLE stack, including the basic SimpleBLEPeripheral and KeyfobDemo projects. I have attached the relevant log from BTool. Could anyone direct me as to how I should go about debugging this issue (or if it's a problem seen by others)?

[90] : <Tx> - 05:08:12.943
-Type        : 0x01 (Command)
-Opcode        : 0xFD92 (GATT_WriteCharValue)
-Data Length    : 0x06 (6) byte(s)
 ConnHandle    : 0x0000 (0)
 Handle        : 0x0037 (55)
 Value        : 00:00
Dump(Tx):
01 92 FD 06 00 00 37 00 00 00

------------------------------------------------------------------------------------------------------------------------
[91] : <Rx> - 05:08:12.992
-Type        : 0x04 (Event)
-EventCode    : 0xFF (HCI_LE_ExtEvent)
-Data Length    : 0x06 (6) bytes(s)
 Event        : 0x067F (GAP_HCI_ExtentionCommandStatus)
 Status        : 0x00 (Success)
 OpCode        : 0xFD92 (GATT_WriteCharValue)
 DataLength    : 0x00 (0)
Dump(Rx):
04 FF 06 7F 06 00 92 FD 00

------------------------------------------------------------------------------------------------------------------------
[92] : <Rx> - 05:08:13.118
-Type        : 0x04 (Event)
-EventCode    : 0xFF (HCI_LE_ExtEvent)
-Data Length    : 0x06 (6) bytes(s)
 Event        : 0x0513 (ATT_WriteRsp)
 Status        : 0x00 (Success)
 ConnHandle    : 0x0000 (0)
 PduLen        : 0x00 (0)
Dump(Rx):
04 FF 06 13 05 00 00 00 00

------------------------------------------------------------------------------------------------------------------------
[93] : <Error> - 05:08:52.951
Message Response Timeout
Name = GATT_WriteCharValue
Opcode = 0xFD92

  • Hi Stephen,

    I am not sure what is going on there but could you make sure that you're using the latest version of the CC2540USB Dongle firmware: HostTestRelease (From BLEv1.3)

    Best Regards

  • I too have seen this problem, apparently with all combinations of the dongle firmware, driver and for example, the SimpleBLE Peripheral project with BTOOL v1.3d. It also appears if using the "Advanced Command  GATT_WriteCharValue"  and does not occur with the "GATT_WriteNoResp"  (obviously).

    Interestingly, the write appears to be always successful and the logs of BTOOL 1.2 & 1.3 show the same message sequences. The bug however is a significant issue as the system "locks up" until the message timeout (possibly 30 seconds?)

  • Hi Stephen

    I get the exact same issue and have also only noticed it since using BLE Stack 1.3. Havn't had the time to go back to 1.2.1 to see if the problem goes as well. The strange thing is that the value is written, but followed by a ATT_WriteRsp Success showing that a write response was received correctly. Why the Response timout?

    ------------------------------------------------------------------------------------------------------------------------
    [33] : <Tx> - 10:44:52.223
    -Type : 0x01 (Command)
    -Opcode : 0xFD92 (GATT_WriteCharValue)
    -Data Length : 0x0A (10) byte(s)
    ConnHandle : 0x0000 (0)
    Handle : 0x0007 (7)
    Value : 11:22:33:44:55:66
    Dump(Tx):
    01 92 FD 0A 00 00 07 00 11 22 33 44 55 66

    ------------------------------------------------------------------------------------------------------------------------
    [34] : <Rx> - 10:44:52.245
    -Type : 0x04 (Event)
    -EventCode : 0xFF (HCI_LE_ExtEvent)
    -Data Length : 0x06 (6) bytes(s)
    Event : 0x067F (GAP_HCI_ExtentionCommandStatus)
    Status : 0x00 (Success)
    OpCode : 0xFD92 (GATT_WriteCharValue)
    DataLength : 0x00 (0)
    Dump(Rx):
    04 FF 06 7F 06 00 92 FD 00

    ------------------------------------------------------------------------------------------------------------------------
    [35] : <Rx> - 10:44:52.435
    -Type : 0x04 (Event)
    -EventCode : 0xFF (HCI_LE_ExtEvent)
    -Data Length : 0x06 (6) bytes(s)
    Event : 0x0513 (ATT_WriteRsp)
    Status : 0x00 (Success)
    ConnHandle : 0x0000 (0)
    PduLen : 0x00 (0)
    Dump(Rx):
    04 FF 06 13 05 00 00 00 00

    ------------------------------------------------------------------------------------------------------------------------
    [36] : <Error> - 10:45:32.262
    Message Response Timeout
    Name = GATT_WriteCharValue
    Opcode = 0xFD92

    Tielman

  • I flashed the latest version of the firmware to the dongle and tried the keyfobdemo firmware on another keyfob (just in case) - same problem in both cases unfortunately. As Tielman stated, it seems to be a regression caused by 1.3(d?). Out of curiosity is the old version of the stack available anywhere? I'd like to test it and see if the same problem exists (I can't remember it occurring with 1.2 but I haven't messed with my kit for two or three months now)

  • Looks like it might be a BTool issue. I kept my firmware on the CC2540 as BLE Stack 1.3, but used the BTool that came with Stack 1.2.1. Performing a write seems to be succesful now since Im not getting the error anymore...

  • ...unless the old BTool is simply ignoring the issue that is in the FW :)

  • Ok, I tested it the other way around as well. Old stack FW 1.2.1 on controller and new BTool 1.3...fail! So, BTool 1.3 fails with both versions of the Stack running on the controller and the old BTool 1.2.1 passes with both versions of the Stack running on the controller.

  •  

    TielmanT said:

    Ok, I tested it the other way around as well. Old stack FW 1.2.1 on controller and new BTool 1.3...fail! So, BTool 1.3 fails with both versions of the Stack running on the controller and the old BTool 1.2.1 passes with both versions of the Stack running on the controller.

    So the issue can be temporarily sidestepped by using an old version of BTool? If this is the case, mind forwarding my on a copy of the installer? I can use that until the bug is resolved I guess?

  • Yes, that does sidestep the issue where BTool hangs until the timeout. I attached the installer (hope the server is happy with the 6MB zipped .exe installer :) Le7802.BLE-CC254x-1.2.1.zip

  • Same issue here. Thanks for BLE 1.2.1 fallback link.

  • I, too, have the GATT writing issue with Btool 1.3 (successfully writes, but then hangs til timeout)...  Reverted to Btool 1.2.1 and everything works appropriately.  Thanks for the link.

           - Otto

  • Hi,

    BTool version provided in BLEv1.3 have a few flaws as you report and a new version is just around the corner.

    Best Regards

  • I, too was getting this problem.  Using the Btool in 1.2 stack works around it.  Looking forward to the fix.

  • Should have been fixed in the 1.3.1 release which is out now.
    Aslak 

  • Aslak N. said:

    Should have been fixed in the 1.3.1 release which is out now.
    Aslak 

    I am still seeing this issue with 1.3.1. I upgraded firmware on the USB dongle to 1.3.1 and used the Btool that  came with 1.3.1

    But I'm still seeing the problem that after a simple write, I get Response Timeout. Sensor on other side is also a CC2541 based device.

    However, if I write using BLE explorer on iOS, I am able to write and read the value without a timeout.