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.

SIMPLELINK-WIFI-CC3120-SDK-PLUGIN: Illegal return value from sl_NetAppStop(MDNS) function

Part Number: SIMPLELINK-WIFI-CC3120-SDK-PLUGIN
Other Parts Discussed in Thread: CC3120MOD

Hi TI experts,

My customer is developing with CC3120MOD.
I received an inquiry from them about the suspension of mDNS, therefor could you please confirm it?

-------

Calling sl_NetAppStop (SL_NETAPP_MDNS_ID) while mDNS is stopped will result in an incorrect return value (positive value, 6023).

Positive values are not defined in error.h.
The Host Driver API documentation also defines the return value as zero or negative.

They are using the SimpleLink SDK WiFi Plugin v2.40.00.22.

Does this issue occur with this version?
Is there a workaround in this version?
Does the latest version fix this issue?

Thank you.

Best Regards,

Yojiro

  • Hi Yojiro,

    This definitely seems like a bug, the positive value is not expected.

    What is the host platform? Did they verify the port? (need to make sure, it is not a porting issue, e.g. wrong SPI transfer) are they sending other commands/data and get the expected responses?

    I'm not familiar with this specific issue, but since this is a very old SDK, it might have been fixed.

    Please let them use the latest SP (from SDK v4.30).

    It would be better to update the entire SDK, but even the SP update may be enough.

    Br,

    Kobi

  • Hi Kobi,

    Thank you for your support!

    There platform is :
      Host MCU: Renesas  RZ/A1H
      OS : RTX v1
      Service Pack: 3.11.1.0_2.0.0.0_2.2.0.6 (CC3x20ServicePack-3.11.1.0_2.0.0.0_2.2.0.6-windows-installer(2.40.00.22).exe)

    With their software, socket communication such as TCP and UDP is working fine. And stopping the HTTP server and DNS server is working fine.

    I have tested the following SPs using the CC3220MODSF Launchpad.
    SP 3.11.1.0: SimpleLink WiFi Plugin 2.40.00.22
    SP 3.16.0.1: SimpleLink WiFi Plugin 4.20.00.10
    SP 3.17.0.4: SimpleLink CC32xx SDK 4.30.00.06

    Test content:
    I added the following code to the Network Terminal Example of CC3220MODSF and ran sl_NetAppStop (SL_NETAPP_MDNS_ID).

    int32_t mDNSStopService(void *arg)
    {
        int32_t result;
        result = sl_NetAppStop(SL_NETAPP_MDNS_ID);
        UART_PRINT("\n\r[mDNS stop] : result: %d\n\r", result);
    
        return(0);
    }
    int32_t mDNSStartService(void *arg)
    {
        int32_t result;
        result = sl_NetAppStart(SL_NETAPP_MDNS_ID);
        UART_PRINT("\n\r[mDNS Start] : result: %d\n\r", result);
    
        return(0);
    }
    

    Result:
    A positive value is returned for the sl_NetAppStop () call while mDNS is stopped on all SPs.
    Please check the figure below.

    Default: mDNS is enable.
    The original inquiry stated that the return value was 6023, but it is an error of 6203.

    Question:

    As a workaround, is it okay to judge sl_NetAppStop errors as non-zero instead of negative?

    Thank you.

    Best Regards,
    Yojiro

  • Hi Yojiro,

    It seems like a bug (it supposed to be -6203 / MSDN_STATUS_ERROR).

    From the testing i've done, it looks like this is being returned only when you try to stop MDNS when it was not started before.

    If you start the MDNS before, it will return 0.

    We will fix this in one of the future releases. For now, I guess this value can be ignored (as the MDNS is stopped afterward).

    Br,

    Kobi