Tool/software: Code Composer Studio
Hi TI,
SDK is simplelink_cc32xx_sdk_3_30_01_02, and we set CC3220S with STA mode and connect to legal AP.
CC3220S report okay from event SL_NETAPP_EVENT_IPV4_ACQUIRED, and we know the IP address on CC3220S.
At this moment, we try to use PC to ping CC3220S. Sometimes, PC always report failure, why?
Following is how we set up STA mode.
if (sl_WlanPolicySet(SL_WLAN_POLICY_SCAN, SL_WLAN_SCAN_POLICY(0, 0), NULL, 0) != 0) { warning("disable scan policy failed\n"); } if (sl_WlanSetMode(ROLE_STA) < 0) { error("fail to enter sta mode\n"); break; } // Stops the SimpleLink device sl_Stop(SIMPLE_LINK_STOP_TIMEOUT); if (sl_Start(NULL, NULL, NULL) != ROLE_STA) { error("fail to start sta mode\n"); break; }
Anything is helpful. Please help me to address the issue. Thanks.