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.

CC3120MOD: Connection a STA to AP

Part Number: CC3120MOD
Other Parts Discussed in Thread: CC3120

Hi,

we use the CC3120MOD in STA mode.

I would like to confirm, the proper manner of working for our case.

The module will be used in movable device, which will move in one building_1 covered from multiple AP's, with the some SSID_1 and password_1 (but  different BSSID (MAC)).

The device can move to other building_2 covered from AP's with SSID_2 and password_2 (with different BSSID's)

The usage is intermittently connected.

Connection policy is Auto + fast.

IP address allocation mode is by DHCP.

Questions:

1. Is this topology of the Wi-Fi network is possible? 

2. Can I use the profiles, which can be stored in the CC3120MOD (up to 7) for purpose of a ?

profile_1 - > building_1 with SSID_1 and password_1. (MAC_11, MAC_12, MAC13,...)

profile_2 -> building_2 with SSID_1 and password_2 (MAC_21, MAC_22, MAC33,...)

profile_3 .......

..

profile_7 -> ....

If yes, I will use the API sl_WlanProfileAdd(), because custom application for delivering of the SSID and password is used.

One of the input parameters of this API is MAC address, is this value is a must?

If I have Wi-Fi network from AP's , with the some SSID and passords and different BSSID (MAC addresses), which MAC address should be used for this parameter.  

Best regards,

Ilian

  • HI Ilian,

    Having multiple Wi-Fi profiles added to a CC3xxx device is allowable, and indeed for your use case where the device will move between two SSIDs the approach of adding both profiles in with sl_WlanProfileAdd() makes the most sense.

    The MAC address is an optional input parameter for the sl_WlanProfileAdd() API. If it is provided then the profile will only work with the BSSID corresponding to the MAC address inputted for that profile. If you leave the MAC address parameter as NULL, then any BSSID for the profile SSID will work. So for your case please leave the MAC address/BSSID parameter as NULL.

    Let me know if you need more clarification or have further questions on using multiple Wi-FI profiles with the CC3120.


    Regards,

    Michael

  • Hi Michael,

    Thank you very much for your answer!.

    Only for my confirmation.

    Behind one SSID and password (one profile saved in CC3xxx) , it is possible to have many MAC addresses/BSSIDs. The saved profile will work with all of this MAC addresses/BSSIDs (devices)?

    Best regards,

    Ilian

  • Hi Ilian,

    Yes, for a saved profile with a given SSID, it can work across the entire set of possible BSSIDs as long as you provided NULL as the MAC address during sl_WlanProfileAdd().

    Regards,

    Michael

  • Hi Michael.

    Thank you!

    Your answer was very useful!

    Best regards,

    Ilian