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.

CC3130: RadioTool TX issue

Part Number: CC3130

Hi

I've integrated the radiotool.c and made few modifications. However I seem to be stuck in the sl_socket. where I get the errorcode -72

rxSocket = sl_Socket(SL_AF_RF, (eOverrideCCA==1 ? SL_SOCK_RAW:SL_SOCK_DGRAM), eChannel);
if (rxSocket < 0)
{
return RADIO_TOOL_ERROR_TX_CREATING_RAW_SOCKET;
}

Do you have any idea why this error keeps coming.

I'm using the function: RadioStartTX(...) with the params:

Also tried with the eOverrideCCA = 0

And I did add the  retVal = sl_WlanSetMode(ROLE_P2P);

BR

Jørgen Busch

  • Hi Jørgen,

    According error codes:

    #define SL_ERROR_BSD_CONNECTION_PENDING                                 (-72L)  /* Transceiver - Device is connected, disconnect first to open transceiver */

    I think you cannot use SL_AF_RF socket at P2P mode. I think you should be at STA unconnected mode. Make sure that you not have set connection profiles with "auto-connect" connection policy.

    Jan