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.

about ATT_ReadReq of HostTestRelease

Other Parts Discussed in Thread: CC2640, CC2541, LMP91200

dear sir,

ask you a question,what is the maximun event response time  of ATT_ReadReq (Command = 0xFD0A, Event = 0x050A) ?

i read sensor data,and then response to central(HostTestRelease).

but it seems too late to respnse ,and then command fail.

if it is really time out,how to set this time out value?

  • Hello,

    All ATT procedures have a maximum 30 secs response time. Is this CC254x or CC2640?

    Best wishes
  • dear sir,
    i use cc2541
    i find this issue is due to spi0 (cc2541 port0 pin2.3.4.5)
    when i use spi0 to access ti lmp91200, ble stack goes wrong in cc2541 peripheral .
    central(host test release) responses with "ble not connected" error status code.
    this means spi 0 may affects ble stack behavior in cc2541. does ti know this issue?(or it is just my bug? but i don't think so.)
  • dear sir,
    i have solved this issue.
    i use gpio to emulate spi bus traffic. it is successful.
    but the issue spi0 affects ble stack to response central still not solved. this issue left for ti to solve.
  • Hello,

    You likely will not be able to perform I/O operations in your Service's callback function. This will cause the BLE stack to be delayed too long, thus a BLE scheduling conflict will occur. Therefore, you should poll your sensor via SPI in your BLE app, then read the most recent value from RAM in your ATT callback function.

    Best wishes
  • dear sir,
    i have solved my problem.but it is not due to delay issue.
    spi 0 works very fast so that no serious delay is taken.(just several micro seconds.)
    the issue is spi 0 will affect ble stack operation in cc2541.
    i use gpio to emulate spi bus behavior. this take longer time delay then cc2541 spi0 needs.

    if longer delay time is needed, i will put code in applicaiotn.
    this will make ble central behavior more complicated.
    i will do this if necessary,but not spi case.