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.

CC3100 : AP Mode and Station Mode

Other Parts Discussed in Thread: CC3100

Hi,

What is the difference between AP Mode and Station mode wrt CC3100 ? 

My requirement is to connect a android mobile phone with my CC3100 board to have a peer to peer connection over wi-fi direct .So, which mode is suitable as per my requirement ?

Thanks in advance .

  • Station Mode is to connect to a Wifi Router/Access Point
    AP Mode is to set the CC3100 up as a Wifi Access Point, which you can then connect to with our mobile

    WiFi Direct is also supported by the CC3100, but it sounds like you just want to use AP Mode, as this is the usual mechanism to connect from a smartphone.

    Both AP Mode and Wifi Direct will only support one connection. This should be find for you, as you just want to connect your smartphone to the CC3100

    Glenn.
  • Hi
    Glenn thanks for your response, we will make our query more detail,

    we want to communicate CC3100 with our smart phone directly without using any external router, for the same we understood AP mode is suitable as you reverted back in my previous query but -
    1. our requirement is to send and receive data packets from our smart phone to CC3100 directly one to one basis.
    2. when we used the out of box method (as per http://processors.wiki.ti.com/index.php/CC31xx_Quick_Start_Guide) to connect CC3100 to our phone we found that CC3100 acts as a stand alone network and once we connect to this network (mysimplelinkXXXX) the connectivity to the existing network is lost ( my home network).
    3. our requirement is to establish a 2 way communication between smart phone and CC3100 in wifi direct mode so that connectivity to existing network is not affected.
    4. kindly help us in configuring CC3100 so that our above requirements are met.
    5. kindly explain the steps for this configuration
  • Hi Vivek,

    This question seems similar to one I answered recently. 

    I may not be understanding you fully, but I believe what you want to achieve is not possible, unless you want to use 2 CC3100 in your solution and develop a bridge....lots of work.

    The best solution is to use Station Mode, by having your CC3100 device connect to a WiFi Router, then you can communicate with you smartphone to the CC3100 device via the WiFi Router, as they will all be on the same WiFi network. You can discover the IP Address of the CC3100 device by using mDNS.

    If instead you are saying you want to do the following

    CC3100 ---- wifi direct ---- Smart phone ---- standard wifi ---- WiFi Router ------ Internet

    Then whether you can do this is up to your smart phone, it would need to be able to connect to a Wifi Router/Access Point and also use Wifi Direct at the same time (which I am pretty sure it will not be able to do). 

    If you want to use WiFi Direct then there is an example in the SDK, look for the P2P example.

    Glenn.

  • Hi Glen ,

    Thanks for your response.

    keeping your points in mind our requirement is :

    CC3100<-------> Wi-fi Direct <-------> Smart Phone.

    Is it possible to do the above way when smart phone is not connected to any other wi-fi network.
  • Yes, the above is possible when your smartphone OR the CC3100 is NOT connected to other WiFi networks. Look at the p2p example in the SDK.....though I cannot think of any advantage of using WiFi Direct over Access Point mode in this architecture.

    You may need to set up the CC3100 as a WiFi Direct Group Owner, as your smart phone may not have WiFi Direct capabilities. This is something I have not done much with, so do your research to see what is required

    Is there any reason you are wanting to use WiFi Direct instead of Access Point Mode?

    Glenn