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: Changing WPA2 password setting

Guru 16770 points

Part Number: CC3220MODA
Other Parts Discussed in Thread: UNIFLASH

Hi

The customer uses CC3220MODA and has question for changing WPA2 password setting from OTA.

When they download Zip project to CC3220MODA using Uniflash, changing password setting can be reflected.

But changing password settings is not reflected when it is by OTA.


Could it be possible to change WPA2 password setting using OTA?
If yes, do you have sample code?

BestRegards

  • Hello,

    What setting are you talking about? Are you trying to change the password of an existing WLAN profile? If possible provide a code snippet.

    Jesu
  • Hi

    Sorry for obscure question.

    > Are you trying to change the password of an existing WLAN profile?

    Yes.

    I explain using following sheet.

    5102.e2e.xlsx

    For example, WPAv2 and password can be set in Uniflash.

    These settings can be exported into Zip file which includes json file.

    I can see json file is updated for WPAv2 and it offers password for WPAv2.

    Actually, if this Zip project is flashed to CC3220MODA and it launched,

    it requires SSID and password when to connect to CC3220 network.

    So, we can change WPA password setting by downloading Zip with Uniflash.

    Also to create OTA image, Uniflash is used.

    If "Create OTA" in Uniflash is used, TAR file can be generated.

    I think the exported Zip file and Created TAR file are the same basically.

    So the customer changed WPA password in Uniflash and create TAR file for OTA.

    After OTA updated is completed, CC3220 network should offer SSID with new password changed in TAR.

    However, the password has not been changed.  (It means CC3220 network accepts old password)

    To solve this issue, what code do you need?

    BestRegards

  • Hello,

    The best way to update the password is by using sl_WlanSet with the SL_WLAN_AP_OPT_PASSWORD parameter in application code. You can see an example of how it's used in SDK/source/ti/drivers/net/wifi/wlan.h. The way you're doing it writes a system file to Uniflash - I don't believe those system files are included in OTA image.

    Jesu
  • Hi Jesu

    Thank you for your reply.

    I understand OTA image does not include WLAN settings.
    I will consider to use application code.

    BestRegards
  • Hello,

    Glad I could help. If you have new question feel free to post new thread. Closing this thread.

    Jesu