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.

CC3200: How to increase the PHY RATE in 'http_client_demo'

Part Number: CC3200


Dear Sir,

I'm using  the 'http_client_demo' of CC3200, we want to send files on http, when CC3200 is close to AP, the transfer is ok, but when it becomes further, the transfer  mostly failed. so we want to increase the phy_rate, or the tx_power, but how should i set ?  the followings are the steps of my demo, it mostly faied at the RED part.

1)sl_Start(NULL,NULL,NULL);//

2)WlanConnect –〉sl_WlanPolicySet,sl_WlanConnect

3)ret = HTTP_ConnectToServer(g_HttpHandle, g_HTTP_Server);

   HTTPCli_setRequestFields(g_HttpHandle, fields);

HTTPCli_setRequestFields(g_HttpHandle, fields);

HTTPCli_sendRequest(g_HttpHandle, HTTPCli_METHOD_POST,HTTP_SERVER_POST_REQUEST_URI, 0);

HTTPCli_sendRequestBody(g_HttpHandle, (const char*)g_data_upload_via_http_buffer, databegin_len);

HTTP_ReadResponse(g_HttpHandle);

HTTP_DisconnectFromServer(g_HttpHandle);

  • Hi Cindy,

    You cannot increase the Phy rate in this case. Because the connection for the AP and the sockets are being handled by the Simplelink device, you cannot control this. The TX power is probably already maximum, but you can change it using the API sl_WlanSet()

    -Aaron
  • Dear Sir,

    Thanks for your replay.   Is the PHY_RATE only be set by sl_SetSockOpt()?  i see this in 'Socket.h'.  In what case, we can set  'sl_SetSockOpt'?

    \par
    <b> SL_SO_PHY_RATE:</b>
    \code
    _u32 rate = 6; // see wlan.h RateIndex_e for values
    sl_SetSockOpt(SockID, SL_SOL_PHY_OPT, SL_SO_PHY_RATE, &rate, sizeof(rate));
    \endcode

  • Hi,

    No. This sl_SetSockOpt() is not related in your case. Option SL_SO_PHY_RATE is related only for transceiver mode. In connected mode (AP, STA) you cannot set WiFi data rate. This is internally handled by NWP (network processor) itself.

    Jan