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: [CC3220S] Sometimes, I can not ping the platform, why?

Other Parts Discussed in Thread: CC3220S

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.

  • Hi,

    Does anyone can help me out? Even if provide me some debug process is good. Thanks.

  • Hi,

    A few hints:

    • It seems that this issue may to be related to your AP. Please try to use another type of AP just for a test.
    • What version of ServicePack do you have uploaded inside device? Can you try with latest ServicePack?
    • Can you test with the always on power policy set?

    Jan

  • Hi Jan,

    1. I can try it. By the way, can I dump more log when this situation happened?

    2. The version is sp_3.13.0.3_2.0.0.0_2.2.0.6.bin. I prefer not to upgrade my sdk right now.

    3. Not always happened. Sometimes, it happened even if I remove all power and plug power back.

    Thanks.

  • HI,

    > 1. I can try it. By the way, can I dump more log when this situation happened?

    You can capture NWP log. After that you can upload here log for analysis. Because I don't have tool for NWP log analysis you will need to wait for answer from TI side.

    > 2. The version is sp_3.13.0.3_2.0.0.0_2.2.0.6.bin. I prefer not to upgrade my sdk right now.

    With upgrade from 3.30 to 4.10 you should not expect any issue. But you can try to upgrade ServicePack from SDK 4.10 without changing SimpleLink driver version (SDK version) inside your code.

    > 3. Not always happened. Sometimes, it happened even if I remove all power and plug power back.

    No. You don't understand what I talking about. I talk about setup of always on power policy inside your code. After changing power policy may to be NWP restart required.

    retVal = sl_WlanPolicySet(SL_WLAN_POLICY_PM, SL_WLAN_ALWAYS_ON_POLICY, NULL, 0);

    Jan

  • Hi Jan D,

    Thanks a lot.

    1. I will wait for your tool from TI side and please teach me how to use it. Thanks.

    2. I will try to upgrade ServicePack from SDK 4.10 without changing driver version and see if it helps or not.

    3. What is the default value of SL_WLAN_POLICY_PM? I will try your suggestion. Thanks.

  • Hi,

    1. No. You cannot wait for a tool. You need to put here NWP log and TI guys will analyse this log and provide you feedback.

    2. OK. Let me know.

    3. Default value of power policy is SL_WLAN_NORMAL_POLICY. In case of your application is line powered, using of always on power policy is not a issue. This policy can mitigate potential issues with AP which does not follow standards and improve overall performance of CC32xx as well.

    Jan

  • Hi Jan D,

    1. I will try to capture log and post it.

    2. Please wait for my updates.

    3. In our application setting, we would like to put CC3220S into deep sleep mode when no any request.

        So, I think we can not apply SL_WLAN_ALWAYS_ON_POLICY right?

        By the way, apply SL_WLAN_ALWAYS_ON_POLICY to cc3220s, STA mode is working well.

    Thanks.

  • Hi,

    SL_WLAN_ALWAYS_ON_POLICY disable power saving features of NWP. That means it increase power consumption when is NWP running. But if you disable NWP by the sl_Stop() API inside your code, this power policy does no affect power consumption because NWP is already off.

    Jan

  • Hi Eric,

    Thank you for following Jan's debug steps. They are very helpful.

    Please be sure to try the latest servicepack version (SDK 4.10) with the normal power policy, and see if that improves performance with your router.

    For an explanation of all power policies, please see the Power Management Application Note and the Power Management chapter of the NWP Programmer's Guide.

    Best regards,

    Sarah

  • Hi Jan and Sarah,

    After upgrade SDK 4.10, anything looks good so far. I will test STA mode more. If I still have question, will post new topic. Thanks.