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.

CCS/CC3200: Scanning the RSSI regularly will affect TCP data transmission

Part Number: CC3200


Tool/software: Code Composer Studio

Hi,

I found that CC3200 scans RSSI regularly will affect TCP data transmission.

How to scan the RSSI regularly without affecting the real-time transmission of TCP?

Scanning interval : 5 seconds

TCP sending data packets frequency : 20 Hz

The real-time data will pause every 5 seconds. When  scanning is stopped, it will not pause.

The RSSI scanning part of the code is as follows:

long lRetVal = -1;

unsigned char ucpolicyOpt;
union
{
unsigned char ucPolicy[4];
unsigned int uiPolicyLen;
}policyVal;

//
// enable scan
//
ucpolicyOpt = SL_SCAN_POLICY(1);
//
// set scan cycle to 5 seconds
//
policyVal.uiPolicyLen = 5;
//
// set scan policy - this starts the scan
//
lRetVal = sl_WlanPolicySet(SL_POLICY_SCAN , ucpolicyOpt, (unsigned char*)(policyVal.ucPolicy), sizeof(policyVal));

if(lRetVal!=0)
{
UART_PRINT("Unable to set the Scan Policy\n\r");
}

Regards,

Kevin

  • Hi Kevin,

    Code above is related to scanning neighbours WLAN networks. If you want to read RSSI of current link your should use different code like this.

    It is expected behaviour that a fast scan interval can change real-time behaviour of your socket. It comes for the basic logic how WLAN scanning works.

    Jan