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.

Weird behavior while sending data with Gatt_Notification (CC2540 BLE)

Hello,

When I connect the Master with Peripherals, it will send 5 Gatt_Notification every 3 seconds. It was running quite okay at first, then I found out a weird response from the slave which cause the while GATT_Notification no longer working properly.

This is the correct one. Sending 5 Gatt_Notification

This is the weird part (Look at the part I pointed to - the slave is sending instead of the master)

Please advice. Thanks

  • Hey Kwan,

    Can you tell us what example projects you're using?

    My initial analysis tells me that the Sniffer is probably missing a packet causing it to lose track of master and slave for that channel.

    Perhaps inserting a packet number into the nofication data to keep track of what is sent through the air would help. (Our throughput example shows this.)

    Note that there's also a possible race condition, if the ATT_Find_By_Value_Req is sent before all five notifications are sent.

    Regards,

    -Rebel
  • Hi Rebel,

    I am using the SimpleBLECentral to send Gatt_Notification (x 5) to the connected SimpleBLEPeripheral every 3 seconds. It only managed to work for first 4 cycle. At the fifth cycle, the SimpleBLECentral is sending out the weird behaviour as shown above. Then, it can no longer sending Gatt_Notification. Even after disconnect and reconnect, it fail to send out the Gatt_Notification, only the hard reset can make it works again.

    Thanks