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.

CC3220MODA: SSID in network list

Guru 16770 points
Part Number: CC3220MODA
Other Parts Discussed in Thread: UNIFLASH,

Hi

We faced problem of programming CC3220MODA with Uniflash Image creater.

Please see following sheet.

e2e_v1.xlsx

Customer's software sets "CUSTOM-MAC ADDRESS" as SSID that can be seen in network list. (MAC ADDRESS is unique by every CC3220MODA)

It works well generally.

However, it sometimes works that two SSID would be listed in network list.
One is supposed SSID ("CUSTOM-MAC ADDRESS")  
Another is SSID that set in AP & Wifi Direct Group Owner WLAN Configuration window of Uniflash. ("CUSTOM-9999999999999999")

It has been confirmed that shown "MAC ADDRESS" listed in network list is matched to those of programmed device with Uniflash.

This problem occured in some boards.
However, it is difficult to reproduce same issue so far.

Could it be possible to exist two SSID in network list?
Have you ever seen before such phenomenon?

Uniflash version is 4.5.0.

BestRegards

  • Na Na,

    Can you provide a code snippet on how you are setting the AP name in your code? Are you also setting it in the Wi-Fi direct area in Uniflash? If you remove the name there, does the issue go away?

    BR,

    Vince

  • Hi Vincent

    Thank you for your reply.

    >Are you also setting it in the Wi-Fi direct area in Uniflash?

    Do you mean following area?  If so, yes CUSTOM-9999999999999999 is set in SSID.

    >If you remove the name there, does the issue go away?

    Do you mean SSID area should leave blank?

    If so, when it was saved, I got following error at leaving SSID blank.

    >>String length should be between 1 - 32!

    Could you please confirm it again?

    I try to obtain code snippet and will share to you.

    BestRegards

  • Hi

    We have additional question.

    If SSID is set in "AP & WIFI Direct Group Owner WLAN Configuration" of Uniflash,
    what API does get this SSID? (In this case, CUSTOM-9999999999999999)

    Regarding to OOB demo, SSID area in Uniflash is set as mysimplelink in default.
    As result, mysimplelink-<3 LSB of MAC ADDRESS> can be seen at network list in PC.
    However, if SSID area is modified, for example it was testsimplelink, then testsimplelink can be seen at network list.

    Where is the code that changing SSID like above processing?

    And the following is sl_WlanSet command to set our SSID.
    Please tell us if this was not code you meant.

    _i16 Status;
    _u8 device_name[64] ;
    strcpy ((char *)device_name,(char *)"CUSTOM-");
    sprintf((const _u8 *)(device_name+strlen(device_name)),"%02x%02x%02x%02x%02x%02x",
    simpleLinkMac[0],
    simpleLinkMac[1],
    simpleLinkMac[2],
    simpleLinkMac[3],
    simpleLinkMac[4],
    simpleLinkMac[5]);

    Status = sl_WlanSet(SL_WLAN_CFG_AP_ID,
    SL_WLAN_AP_OPT_SSID,
    strlen((_u8 *) device_name),
    (_u8 *)device_name);



    BestRegards
  • Na Na,

    What modes are you setting the device in? Are you looking to do Wi-Fi direct and STA mode?

    BR,
    Vince
  • Hi Vincent

    Thank you for your reply.
    I might have made you confuse because I asked you about OOB.

    >What modes are you setting the device in? Are you looking to do Wi-Fi direct and STA mode?
    The customer sets CC3220MODA as AP mode. AP provisioning is used to configure WiFi (SSID, Password) after start up.

    Normally, regarding to the software they coded, CUSTOM-9999.., in other words SSID filled in Uniflash , should never appear in WiFi list. However, customer experienced that CUSTOM-9999.. could appear at PC WiFi list.

    So, we want to avoid that SSID filled in uniflash appears in PC WiFi list.
    However, we can not have clarified yet the root cause why SSID filled in Uniflash appears in PC WiFi list.

    I thought it will be help if make it clear what source code is used in OOB to get SSID from Uniflash.



    BestRegards
  • Hi

    Could you tell me what code is adding 3 LSB MAC ADDERSS to SSID in OOB demo?

    BestRegards
  • na na,

    I don't see the same issue when running Out Of Box, and having that AP name set to something. The only time that would happen is if you enabled wifi direct.

    Another thought is that the end device might have remembered that AP from a previous connection, and thats why you see it?

    BR,
    VInce
  • Hi Vince

    >I don't see the same issue when running Out Of Box, and having that AP name set to something.
    >The only time that would happen is if you enabled wifi direct.

    As long as demonstrating OOB, I don't also see same issue that the customer faced.
    However, they don't intend to make Wifi-Direct avalable.

    Can you tell what the setting in Uniflash makes Wifi-Direct disable?

    >Another thought is that the end device might have remembered that AP from a previous connection, and thats why you see it?
    I also doubted it. Actually, it is the most likely.
    However, the goal is to avoid presence of undesired SSID from network list.
    If the problem is caused of Wifi-Direct enabled by Uniflash setting , I want to know how to disable Wifi-Direct.

    BestRegards
  • The only way to enable Wi-Fi direct is via the API call. You would have to set the wlan mode to wifi direct to enable. If you are not doing this, then you should not have a issue.

    BR,

    Vince 

  • Hi Vincent

    Thank you for your reply.

    We need to look into the customer's code again.

    It will take a time, so I close this thread once.

    Thank you for your cooperation.

    BestRegards