This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

NUS example - sd_ble_gatts_hvx returns error number 0x3003

SoftDevice : S110 7.1

SDK 7.2

Example : experimental_ble_app_uart

Using IAR 7.1

Using nRFGo Studio 1.19.0

Board : PCA10001 V 2.0.0 (Rev. 2 MCU)

Test device : Nexus 5 (Android 5.1.1) and iPhone 6+ (iOS 8.4)

Toolbox App Version : 1.14.1 (at Nexus 5) & 2.1 (at iPhone 6+)

/**********************************************/

When using the example, I added some codes.

I added a timer and the timer handler sends message to the connected centrals every 3 seconds.

NUS 1

This is the value of m_nus after when I set the NUS's RX Characteristic to "NOTIFY"

(using Master Panel Control App).

After connecting with the central, it works.

However, after a minute or so, ble_nus_send_string returned BLE_ERROR_INVALID_ATTR_HANDLE.

In other words, sd_ble_gatts_hvx returned BLE_ERROR_INVALID_ATTR_HANDLE 0x3003.

NUS 2

When it returns this error code, the value of m_nus was like this.

What could be the reason?

Added : 23, July, 2015 : Like this?

Before) Before

The peripheral sends string "S" to the central using a timer interrupt.

The duration is 1 second.

After)

After

-Regards, Mango922

Related