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.

CC3200 AP gets connected immediately by station with empty pSlWlanEvent->EventData

Other Parts Discussed in Thread: CC3200

      

      Hi,


I define CC3200 as AP with HTTP and TCP server capabilities.
I can connect to it with Note 3 and with a laptop, access the embedded web server pages with the browser and
the tcp server with a .Net TCP client application. The data exchange between TCP client and server works well
in both directions.
When my station connects to CC3200, SL_WLAN_STA_CONNECTED_EVENT and SL_NETAPP_IP_LEASED events are received.

There is no other Wifi station set to connect to CC3200.

But sometimes after CC3200 reset, immediately the SL_WLAN_STA_CONNECTED_EVENT (but not also SL_NETAPP_IP_LEASED) is received and pSlWlanEvent->EventData is empty( I've checked with the debugger).
And due to the fact that CC3200 AP can accept only 1 station, of course I cannot connect with my station.

How can I detect who is connecting to the CC3200 AP ?


This is the log of the running sequence :

Manufacturer ID: 0x5449
Device ID: 0x67
Configuration register value: 0x7480
CHIP ID: 0xf8  

[NETAPP EVENT] IP Acquired: IP=192.168.1.1 , Gateway=192.168.1.1
Device is in AP Mode, Please Connect to AP [mysimplelink-113DE1] and type [mysimplelink.net] in the browser
TCP server socket created. ID : 16
TCP server socket binded. Status : 16
TCP server socket is listening...
[WLAN EVENT] A station connected to me.  // SL_WLAN_STA_CONNECTED_EVENT


Please advise.

Thanks in advance and best regards to all the community,

Sorin.

  • Hi Sorin,

    Not sure I fully understand, but are you saying that someone else is connecting to your CC3200 when it is in Access Point mode? 

    If so, then this is certainly possible if you have not added a passcode, and left the AP using open security. As for finding out who it is, well I could not advise, as it is just a client attaching and as such it would not be identifying its self in any meaningful way. You could develop code to gather information, but this still does not help you identify who it is, unless you have access to all the devices you suspect.

    My advise, is to add a passcode, so only the device you allow can connect.

    If on the other hand you are saying that the CC3200 is in Station Mode, and is connecting to the wrong Wi-Fi router, you can delete the unwanted profiles by accessing the internal website and viewing the network settings.

    Glenn. 

  •      Hi Glenn,

    Thank you for the quick response !

    I understand that can be anyone with a Wifi station, but is happening extremelly fast after the reset and is

    curious that in this situation there is a WLAN event for station connected but not a NETAPP event for CC3200 leasing an IP address to the connected station.

    When it did not happen and I was connecting with my station, there was also the IP leasing event.

    Anyway, I'll add password to AP and try again.

    Best regards,

    Sorin.

  • Sorin,

    Not sure I understand. Is your CC3200 set in Station Mode or Access Point mode?

    There is no reason your CC3200 should connect to a Wi-Fi Station/Router, unless you (or another person) has entered details (SSID and Passcode) to the CC3200. If this is so, then you would see this other profile clearly listed in the profile section of the network setup page.

    Perhaps this is a misunderstanding on terminology?

    Glenn.

  • Glenn,

    My CC3200 is set in Access Point mode.

    I flashed the software setting it in Access Mode with HTTP server and TCP server capabilities.

    Took out the SOP2 jumper, and after pressing the reset button, I see in RealTerm the running log.

    CC3200 enters Access Mode sets it's IP, the HTTP server is set correctly and waiting for http:\\mysimplelink, the TCP server is set correctly and waiting for clients, and immediately gets the

    SL_WLAN_STA_CONNECTED_EVETN for some station (not me) connected to it , but not the SL_NETAPP_IP_LEASED when it leases an IP to that connected station.

    It is odd, because the "alien" station is connecting so fast and it doesn't get an IP from my CC3200 Access Point.

    Yesterday, I connected without problem with my station and worked fine with the HTTP and TCP servers.

    Sorin.

  • Hi Sorin,

    I understand your situation now, just some confusion on terminology.

    When you set the CC3200 into Access Point mode, it is actually a Station. And as such, it cannot have another Wi-Fi Station/Access Point connect to it. Only clients, such as a PC or phone can connect.

    When you set the CC3200 into Station mode, it is now a client, and will need to connect to a Wi-Fi Station/Access Point. This is done by adding a profile, which includes SSID and Passcode.

    As for the alien station, what result have you got from adding a passcode? If you still get the same issue, then I'd be looking at what changes you have made to the code.

    Glenn.

  • Hi Sorin,

    Do you still have issues with using CC3200 as an AP mode, or Did Glenn's response helped you resolve the issue?

    Thanks,
    Alon

  • Hi Sorin,

    I am closing the thread, if issue still exist please open a new thread and add a link to this one for reference

    Thanks,
    Alon