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.

CC1350: Understanding behaviour of BLE radio command.

Part Number: CC1350

Hi all,

First of all I link the Technical Reference Manual http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=SWCU117. I'm going to make often mention of it along my question.

When I send to the radio the BLE Scanner command, referenced as CMD_BLE_SCANNER (Technical Reference Manual 23.6.1), the radio returns the status ACTIVE (TRM 23.3.2.2).

I check repeatedly this status in a loop while I wait for incoming advertisments. At the moment at receiving one the status changes to BLE_ERROR_RXBUF "No available RX buffer (Advertiser, Scanner,
Initiator)" (TRM 23.6.4).

I have pointed a data entry structure as is referenced in (TRM 23.3.5) so as I did in example for the CMD_BLE_GENERIC_RX command, which is working fine indeed.

It's coded as follows:

In the params structure (TRM Table 23-92) I point pRxQ to my queue.

params->pRxQ = &data_queue;

In my queue according to (TRM Table 23-9) I have two entries defined as is explained in (TRM 23.3.2.7.2) linked in a circular buffer.

rx_buf_0->pNextEntry = rx_buf_1;
rx_buf_1->pNextEntry = rx_buf_0;

And finally my data queue points to the first of the linked entries (buffers)

data_queue.pCurrEntry = rx_buf_0;
data_queuep.LastEntry = NULL;

Am I missing any step else?

For example if I don't point to any data queue.

params->pRxQ = NULL;

Then there isn't any change in command state when the advertisments are sent.

I can add more info of the values used in both command and parameters if it's needed to clarify.

I was wondering too if it is possible to test somehow this and another commands in SmartRF Studio. In Command View it seems to have the option to "Execute" commands with "Export Code". Although when I try it in the output window only can see the status IDLE after the execution.

Thanks in advance and regards.

Eduardo.