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.

CC31xx as Client HTML Get request Smartphone tethering/hotspot

Other Parts Discussed in Thread: CC3200, CC3100, CC3100MODBOOST

Hi,

we currently use RN171 from a competitor and have major issues with it. Our application must use a smartphone as the Access Point (hotspot/tethering enabled).

The module looses connection to the smartphone AP a lot, has difficulties re-connecting etc.

Also, when connection is good, there are major delays (10 to 30 seconds) from opening a TCP port until the connection is opened. Then there are also delays when sending the html get requests as well.

I was wondering if anyone has successfully used a smartphone as AP (tethering though 4G/3G) and sending HTML Get requests to a server with cc31xx ?

Best Regards,

Hans Christian Glittenberg

  • Hi Hans,

    I am personally working in this manner all of the time, using my smartphone in tethering mode, to run many different examples and demos with CC3100 and CC3200.
    A fast an easy example I can recommend on is "get_weather" code example which is available in our SDK (open source code, available to anyone).
    It connects to a weather cloud server and sends HTML GET request to it, querying about the weather forecast, parses the HTML response and presents it.
    I've run it all over the world many times, using either my personal smartphone or a local smartphone in tethering mode and it always worked just fine.

    Thanks,
    Alon
  • Hi Alon,

    This is great news to hear! Thank you for the reply. I have bought cc3100 dev kit and look forward to test the example code next week. It will most probably be little work to change our current module with this new one since all the other application code is up and running. I also look forward to using SPI instead of UART (with a lot of undocumented garbage coming out of the module(!))

    Do you have some "numbers" on the latency? Not specific, but is it sort of real time, like would it take, from request to answer (open->close), less than 1 second? For small packets, less than 1000 bytes...

    Thanks,

    HC

  • Like Alon, I am using this method all the time, and it works flawlessly.

    For 1KB is will be as quick...but there is no way to provide numbers for connecting to a server on the Internet and get a response.....there are way too many factors to provide any data, it depends on yours network connection, where you are located, what service you are connecting to and so on.

    Glenn.
  • Hi Hans,

    I would recommend you to read the power management application note: www.ti.com/.../swra462
    It is taken from our wiki which might be a good place to search for some more information as well: processors.wiki.ti.com/.../CC31xx_&_CC32xx?DCMP=cc3100cc3200&HQS=simplelinkwifi-wiki

    This App note is addressing all the parameters that you are looking into like: init time, WiFi connection time, socket creation time (+SSL), data transfer time etc..
    It looks at everything from power consumption perspective, but I believe you will find a lot of interesting information there, relevant for your use case.

    Thanks,
    Alon
  • Hi Alon,

    I received CC3100MODBOOST and MSP430 FR5969 Launchpad.

    Unfortunately, there are only 2 example applications for this platform. All projects listed on the wiki etc are for: msp430f5529lp.
    When buying at the online store, the solution provided was with the launchpad 5969. I now see that it should have been the other version...
    How can I test the weather demo with my launchpad version?

    Best Regards,

    Hans Christian
  • Hi Alon,

    I tried the simplelink studio and was able to run the get_weather. However, after I enter a city, i receive Error Code -2002 which is: HTTP_RECV_ERROR. Inserting a breakpoint and watch, it seems that the &appData.Recvbuff[0] is empty in:
    sl_Recv(appData.SockID, &appData.Recvbuff[0], MAX_RECV_BUFF_SIZE, 0); ...

    Regards

    HC
  • Hi Alon,

    we changed the weather app to our own server, and it works with very little latency, using hotspot on sony xperia z1 compact!

    thank you all :-) We will port the code into our own eco system and add the new hardware with wires for initial test.

  • Hi Hans,

    I'm glad to hear.
    I'm waiting to see your product shipping thousands of units :-)

    Thanks,
    Alon