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.

Help in executing the HCI_Send_Raw_Command on Bluetopia



I have to execute a VS command given in the wiki at this link
http://processors.wiki.ti.com/index.php/CC256x_VS_HCI_Commands#HCI_VS_Read_RSSI_.280xFDFC.29 

I have tried using this code, but it always returns an error.

if((BluetoothStackID) && (ConnectionHandle))
{
/* Next, write the command to the device. */
Length = sizeof(rssi);
ret_val = HCI_Send_Raw_Command(BluetoothStackID, 0x3F, 0x01FC, sizeof(Word_t), (Byte_t *)&ConnectionHandle, &Status, &Length, rssi, TRUE);

if((!ret_val) && (!Status))
{
/* We were successful */

Upon execution of this code, I always get error (-16) which corresponds to BTPS_ERROR_HCI_RESPONSE_ERROR.

Can anyone help me with this? Anything that I am doing wrong here?

Regards
Shashank