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