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.

CC2642R: CC2642R

Part Number: CC2642R

Good day!
I created a program from the SIMPLE_PROFILE example. Added two additional characteristics to the profile by analogy with the existing ones. When debugging a program, the first characteristic works great, I read 9 bytes. The second characteristic is of the notification type, it transfers an 18 byte structure. I wanted my program to transmit a packet with data on the second characteristic up to 250 times per second. But when trying to transmit about 10 times per second, I ran into a problem: the "GATT_NOTIFY" function returns an error code = 0x16. I did not find a description of the error in the / h file.
I assigned one of the pins for indication, before calling the function, I set it to 1, after calling the function, I set it to 0 so that I can see the signal with an oscilloscope. When I tried to transmit about 100 times per second, I noticed the following: half a second transmits, and the rest half a second is not. What am I doing wrong, what actions should I take. I ask for your advice.
To check if the device is working properly, I use the "GATT_Browser" application for my mobile phone.


Thank you in advance for your help

  • Hey Denis,

    I apologize for this, it's not the easiest to find. Check in bcomdef.h, you'll find the return code 0x16 is blePending. This issue occurs when you queue notifications too quickly and the stack is busy executing another command. In your case, this is likely a prior notification.

    Things you can try to perturb this issue are:

    • Lower the connection interval (this increases the number of connection events allowing you more opportunities to send data)
    • Increase the MAX_NUM_PDU parameter
    • Add a retry mechanism so that you retry the notification should you receive the blePending error

    Hope this helps.