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.

Acknowledging indication messages

Other Parts Discussed in Thread: CC2540

Hi,

  Currently im transferring a chunk of data using notification messages.However I dont know what will happen if the notification packets gets missed,as notification data is not acknowledged.I'am considering now moving on to indication messages.

Does the speed for indication messages and notification messages differ?. Since each transaction consits of a RX and then Tx.So is the indication message acknowledge piggybacked on the next transmission like TCP/IP.Or does it take double the time to transfer using indication message?

 

 I have written a small patch to handle indication messages.First I enable indication messages by writing 2 to the client configuration.After this I send an indicate message.I can see the indicate message sent by the device on my computer but after this I cannot send any more commands to the device .It says device is in invalid state.

Is it the responsibility of the PC(receiver of indication message) to specifically send an acknowledgement explicitly?

How do i send and acknowledgement packet to the device?

Is the acknowledgement response bound by time interval?

Looking forward to your suggestions

Thanks and regards,

Hansen

  • Hi Hansen,

    Notifications are sent by the server and are not acknowledged in any way. The indications however, needs to be acknowledged. This is done by the BLE Controller at the receiver side during the next connection event (This is mainly because processing does not occur during TX/RX). Could you describe your BLE system at your PC side further?

    BR

  • Hi Nick,

               On the PC side I have an of the shelf central Role device which has a cc2540 controller(PC dongle) by a third party vendor.On the PC software side I have a serial port application on virtual com port.The vendor has said that it would take twice the time to transfer the data .I will verify this and post my results back

    Thanks and regards,

    Hansen

  • Hi,

        It takes double the time and acknowledgement is handled by the stack.

     

    Thanks