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.

throughput drop

Other Parts Discussed in Thread: CC2541, ADS1298

We are working on a project which we connected an ADS1298 to CC2541 using spi. We want to transfer data from spi to an output buffer and then send  three 20byte packets using GATT_Notification. the signal is being sampled at 250hz from 8 channels.To send the data in real time, we need to transfer at least three packets every 12ms. At this rate, data transmission works for about 15 minutes after which the data throughput drops to almost a third and It starts losing lots of packages which it never recovers from. My guess is that there is a buffer overflow, because I occasionally get MSG_BUFFER_NOT_AVAIL return.

Is there any way to increase the throughput or recover the throughput if the buffer overflow happened.

Thank you  

  

  • Could a TI employee take a look at our problem?

    Thank you,

  • Hi Ali,

    Sometimes a connection event will get an error, so will perhaps only transmit 1 of 3 notifications.

    This means the remaining 2 will be transmitted next time.

    However, if the link utilization is close to 100% there is no way to "recover" except by dropping packets/frames. It may well be that you have an overflow situation, depending on how you store the data before sending.

    I'd recommend having a lower utilization of the link (lower connection interval) so you can recover. Otherwise, when you get BUFFER_NOT_AVAIL when calling GATT_Notifcation, simply discard the packet you wanted to send.

    Best regards,
    Aslak 

  • I'll try to drop all packets if connection failed. 

    Thank you.

    Best,

    Ali