NUS Problem

Hi guys,

I got very strange problem:

I got 2 units:

1) "Tester" board (which is a CENTRAL) 

2) "TOP" board (which is PHERIPHERAL)

The "Tester" get commands from PC (via uart) and connects to a UUT (which is the "TOP" board) throw BLE (with NUS) protocol.

The "Tester" is based on SDK17 and works fine with many other units which some with SDK11 and some with SDK17.

The problem started when i let the AI migrate the "TOP" from SDK11 to SDK17.

The "Tester" succeeded to connect the "TOP" but after that , when sending some data via NUS protocol from the "TESTER" to the "TOP" , the "TOP" doesn't see it !

 ("nus_data_handler" function never get called on the "TOP" side when connected to the "TESTER"). (ofcorse it worked fine when the "TOP" was with SDK11.........)

However, When connecting to the "TOP" from "NRFCONNECT app" in my cell phone, Everything works perfect and the "TOP" process my commands via the NUS protocol !!

I Also tried to check the things from the "TESTER" point of view and saw that the function : "m_req_data_alloc" inside "nrf_ble_gq_item_add" function returns error 9.

The MAX MTU is setted to 247 on both sides.

I transmit 20 bytes every time, and i tried reduce it to 10.....the "error 9" became disappear  but the data still didn't pass....

Any idea what the problem can be ?!

Related