cancel
Showing results for 
Search instead for 
Did you mean: 

hci_le_test_end() always return a nb_packet = 0 in hci_le_receiver_test()

velok
Associate

Hello,

I have implemented test functions gci_le_transmitter_test() and hci_le_receiver_test() in our firmware for tests in lab. We have setup a test bench with one hand our product and on the other hand a STEVAL-IDB008V2 driven by BNRGUI software.

We have been able to test transmission with our board with success. Unfortunately, it is not the case in reception mode where we always get a nb_packet received = 0. We have checked our STEVAL board with a Nordic tool to make sure there was transmission from the eval board, which is the case.

I can't figure out why I have this issue (probably configuration or whatever). Please find below, some lines of my code if you have any idea.

SYS_Status_e status = SYS_OK;
char output[64] = {0};
tBleStatus temp = BLE_STATUS_SUCCESS;
 
temp = hci_le_test_end(&nb_packet); 
//nb_packet is a global variable with the following declaration: uint16_t nb_packet = 0;
 
if(temp)   //we always get BLE_STATUS_SUCCESS
{
status = SYS_ERROR;
gCLI_Mgr.errorCode = SYS_ERROR_RADIO_RX;
}
 
    if ( status == SYS_OK )
    {
        /* inform user */
        snprintf(output, 64, "#%d\r\n", nb_packet);
    }
    else
    {
        snprintf(output, 64, "?%ld,%s\r\n", gCLI_Mgr.errorCode, SYS_GetErrorCodeStrName(gCLI_Mgr.errorCode));
    }
    CLI_Send(output, strlen(output));

Thank you for your help

0 REPLIES 0