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.

CC3100BOOST: What does this mean: Connect a client w/ CC3100 using its SSID name

Part Number: CC3100BOOST
Other Parts Discussed in Thread: CC3100, CC3200

I am trying to create a server for the CC3100. I am using the BOOST and EMUBOOST with a fresh install of Microsoft VC++ 2010. I first did project 0 (which worked fine), them the wlan_server example. Also, please add to the documentation that WPA should be used for the wlan server... it did not want to connect until I switched from OPEN to WPA (I am in a professional environment with dedicated IT folks).

My goal is to have a server that clients can connect to an do /GET and /POST operations. So, I started with the http_server example and the directions on http://processors.wiki.ti.com/index.php/CC31xx_HTTP_Server.

I can get the gateway IP. However, my browser client cannot connect to the gateway IP (which I think is the correct behavior). The entire building is on WiFi, and I am on a guest network.

First, I don't really want an access point. I want a wifi server that can also connect to some smart device. However, for now, it is an access point. I would appreciate a bit of guidance on going to a pure server (and yes, I know I can put it into MODE_STA). Eventually, I want a client that will wake up and dump data to the cloud, but first things first.

The code runs, then waits for a client to connect. However, I do not have an IP address for the device. From Edge or Foxfire (tried both), I can see the request on my laptop running Fiddler. However, no connect.

In following the directions from the CC31xx_HTTP_Server page, it has the statement "Connect a client w/ CC3100 using its SSID name" - WTF? What does this *exactly* mean?

An *exact* example, please.

sl_common.h has:

#define SSID_NAME       "access_point"         /* Access point name to connect to. */
#define SEC_TYPE        SL_SEC_TYPE_OPEN    /* Security type of the Access piont */
#define PASSKEY         ""                  /* Password in case of secure AP */
#define PASSKEY_LEN     pal_Strlen(PASSKEY)  /* Password length in case of secure AP */

/* Configuration of the device when it comes up in AP mode */
#define SSID_AP_MODE       "ssid_ap"       /* SSID of the CC3100 in AP mode */
#define PASSWORD_AP_MODE   "password"                  /* Password of CC3100 AP */
#define SEC_TYPE_AP_MODE   SL_SEC_TYPE_WPA    /* Can take SL_SEC_TYPE_WEP or  SL_SEC_TYPE_WPA as well */

I have searched the forum for this phrase - no luck. I cannot find anything that will start the connection with a client browser.

Once I get a /GET or /POST, I want to construct a simple HTML page and send it to the connected client. This is also not obvious, so a pointer to something that does the send would be most appreciated.

We switched to the CC3100 because the Huzzah/ESP8266 has enough issues we decided to abandon it. You have (generally) better documentation. I was finally able to get what I wanted with Lua code, but it runs too slow.

We are in a bit of a crunch (naturally). Thanks.... bandit

.

  • hi bandit,

    In order for the HTTP client and HTTP server to communicate they need to be on the same local network, i.e. connected to the same Access Point (a.k.a. WLAN server).
    The HTTP Server example for CC3100 supports only 1 mode:
    CC3100 serves as a WLAN Access Point (AP) and the PC (where the browser is on) should connect to it (only second set of parameters in sl_common is relevant).
    You can refer to debug terminal to see the actual role that was started.

    SSID is the name of the WLAN network.
    You should Provide any valid name to SSID_AP_SSID.
    Note, that the default configuration set the security of the CC3100' AP to "OPEN".

    "Connect a client w/ CC3100 using its SSID name" - means that from your PC you should connect the wifi to a network that is named <SSID_AP_MODE> (if the CC3100 is indeed in AP mode,you should see this name appears in the Available Wireless Networks List).

    Once the PC and the CC3200 are connected they are on the same sub network. Now you'll be able to use the browser to connect to the HTTP server on the CC3200.
    You can use the IP address of CC3200 (by default it is 192.168.1.1) or you can use "mysimplelink.net" as the URL (the AP implementation also contains a DNS server that will identify this name).

    Br,
    Kobi
  • Quote: if the CC3100 is indeed in AP mode, you should see this name appears in the Available Wireless Networks List).

    I enlisted the help of my son. While I am *very* experienced with embedded systems, the guts of WiFi is new to me, and I expect to make rookie mistakes. He pointed me to the list - and I am able to make the connection.

    I DO suggest filling out the description of the step for those of us just getting into this particular area. This step description baffled several of us - all old-fart nerds, some with advanced degrees. (Sound of old-farts complaining about kids these days fading into the distance... :^)

    Quote: Note, that the default configuration set the security of the CC3100' AP to "OPEN".

    I did project0. I found I needed WPA to connect with my client's server. As you might expect, they work hard to keep their network secure.

    Quote: you can use "mysimplelink.net" as the URL (the AP implementation also contains a DNS server that will identify this name).

    I am going to need to have a better solution to this because there are going to be a bunch of these things. One starting solution is the client is going to setup another URL and have DNS point to it.

    Quote: You can use the IP address of CC3200 (by default it is 192.168.1.1)

    Looking at netapp.h:


    Quote: You can refer to debug terminal to see the actual role that was started

    I am using VC++ 2010 - when I start the debugger, it pops up a serial window && I can see the slime trail.

    (I have another question, but I will look in the forum first.)

    So, Kobi:

    1) Please put in a request to clarify the text for those of us who are Wi-Fi noobies.

    2) close this out, unless you can see anything in my reply that needs better clarification.

    Thanks! ... bandit