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 with Tiva1294 Example

Other Parts Discussed in Thread: CC3100, MSP430F5529, CC31XXEMUBOOST, EK-TM4C1294XL, TM4C1294NCPDT

Hello,

I just got my CC3100 and I am trying to figure out how use the TM4C1294XL/CC3100 with the tcpEcho Application.  I downloaded tcpEchoCC3100_TivaTm4C1294NCPDT and reviewed the the readme.  It is not clear what exactly I need to do to get the CC3100 connected to an access point.  I loaded tcpEchoCC3100 on my 1294 platform that has the CC3100 connected.  The jumpers are all connected correctly.  I guess I need some sort of SmartConfig application to set up the CC3100 with the correct AP SSID, security settings, and passwords.  I tried to compile the "getting_started_with_station" with visual studio 2010 express but when I ran it in debug mode the application failed due to a "un-handled exception error".

Any idea on what I need to do?  I have spent the last 1.5 days looking at the other examples for CC31XXEMUBOOST and MSP430F5529 to see if I could follow these examples with no luck.  Need help please!

Best Regards,

Steve Mansfield

  • Stephen Mansfield said:
    I tried to compile the "getting_started_with_station" with visual studio 2010 express but when I ran it in debug mode the application failed due to a "un-handled exception error".

    I am not sure if it is possible to build the wlan_station example program using Visual Studio 2010. 

    If you download the SDK for CC3100 there should be a document guide how to build wlan_station. I have build it using TI Code Composer Stuido without errors.

    Also, you can do a search in this forum for related posts.

    - kel

  • Hello Kel,

    The CC3100 Quick Start documentation specifically calls out VS Express as a way to compile "getting_started_with_station".  Anyway, I did see in another document a method to compile "getting_started_with_station" with Code Composer.  I will try Code Composer as you suggested.

    I have another question about the CC3100.  Assuming I have a good compile and running version of "Getting_started_with_station", I connect the CC3100 USB port, J7, to the PC.  Is that correct?  I have plugged a USB cable from my PC to J7 and I did not get a windows "High Bong" -- successful USB connection.  I checked with the device manager running on the PC and did not see a USB port associated with the CC3100.  Even though I do not have "Getting_started_with_station" running just yet on the PC I would have expected the CC3100 USB port to be working.  Is there something I am missing?

    Best Regards,

    Steve Mansfield

  • Hi Stephen,

    I will try to summarise and answer your questions in parts.

    As you noticed the separate projects and examples are provided for simplellink studio and CCS environment in the SDK.

    To work with Simplelink studio you will need visual studio 2010 and the CC310XXEMUBOOST board. The error you mentioned is first post is most probably because the CC31XXEMUBOOST is not connected properly.

    I am assuming the "tcpEchoCC3100_TivaTm4C1294NCPDT" example you are referring is part of ti-rtos for tiva. This example uses the smartconfig method to connect to an AP. For first time connection with AP you will need to press the "Board_BUTTON0"  to put the device in smartconfig mode and then use the Wifi-starter app to connect to AP. You can download the app from http://www.ti.com/tool/wifistarter.

    The J7 USB port on CC3100 Booster-pack is only to supply power and doesn't have any debug interface. Device port won't get associated with this connector.

    Regards,

    Ankur

  • Hello Ankur,

    Ok, here is where I am.  I have a Tiva EK-TM4C1294XL Launchpad Evaluation board with the CC3100 plugged onto the BoosterPack1 connectors.  I have the CC3100 J8 connected with a jumper such that the right pin and center pin are connected together (*  *_*).  The UN-jumpered J8 left pin would be the pin closest to the edge of the board.  I powered up the 1294 with the USB cable and pressed SW2 on the CC3100 to place the device in smartconfig mode.  I downloaded the tcpEchoCC3100_TivaTm4C1294NCPDT program and load it onto the 1294 Launchpad and ran it.  LED0 comes on.  I press Board_Button0.  I then run the iPhone smartconfig application.  The application says its for a CC3000 but I assume it works with the CC3100.  I could not find a smartconfig iphone application for the CC3100.  I see the correct SSID for our wireless router and I enter the password.  I then press start on the iPhone and the application starts.  However, nothing happens.  The iphone smartconfig runs for several minutes and then times out.  According to the readme notes for the tcpEchoCC3100, I should see LED1 come on when a connection is made and the IP address for the CC3100 prints out on the console.  However the tcpEchoCC3100 application only prints out "Starting the TCP Echo example for the CC3100 .." and then waits for the CC3100 to be connected to the AP.  This does not happen.  Anything I am doing wrong here?  I have tried several variations of loading and depressing switches with no luck.  Any help would be welcome.


    Best Regards,

    Steve Mansfield

  • Hi Steve,

    If you are connecting the jumper on J8 header of CC3100 on LDO side (i.e. leaving the pin near the edge) then you need to provide power using the onboard USB cable. Please refer to cc3100_boost_user_guide (swru371) for details.

    You don't need to press the SW2 button on the CC3100 BP, device is put into smart config mode using API while running the application when Board_Button0 on tiva board is pressed.

    The new smartconfig app is called "WiFi starter app". You can download the iOS version from below link

    http://www.ti.com/tool/wifistarter

    Regards,

    Ankur

  • Hello Ankur,


    I downloaded the new smartconfig app as you suggested.  However, there are no readme files.  It looks like this download is an Apple iOS project.  Do I have to download the Apple developers kit and build a binary for my iphone from this project?  I am not that familiar with iOS.  My expertise is with Android, Blackberry, and Symbian.  I did not see any binary or loadable files.

    Best Regards,

    Steve Mansfield

  • Ankur was suggesting you get the actual App and not the source code.

    You can get either the latest SimpleLink App from the Apple App Store or the Google Play Store.

    If you go to the page where you downloaded the source code, you will see the icons for these stores just below. You can click on these when on your iOS device or Android device to get the actual App you need - http://www.ti.com/tool/wifistarter

    Glenn.

  • Hello Glenn,

    Thanks Glenn, I found the application last night on the Apple App Store.  By the way, it looks to me that the only applications on http://www.ti.com/tool/wifistarter are the source code projects.  The CC3000 has the actual app but the CC3100 does not.

    Best Regards,

    Steve Mansfield

  • Hello Everyone,

    Ok, I finally got tcpEchoCC3100_TivaTM4C1294NCPDT to work.  I know the folks at TI are very busy but the issue here is the documentation has not caught up with using the CC3100 on any of the LaunchPad Evaluation kits.  I spent a good 1+ weeks trying to get this thing to work but persistence finally paid off.  Here is my story...

    Tiva Platform

    I am using the CC3100 on a Tiva TM4C1294NCPDT but I think this procedure should work with many of the other Tiva LaunchPad platforms.  The CC3100 has a handy interface called SmartConfig.  This interface allows the developer to easily setup and store WiFi Access Point information plus other stuff.  It is real handy in that you don't have to manually input the SSID, security configurations, and passwords every time you power up the Tiva/CC3100.  You simply load it one time and it gets saved to flash.  To get it to work you run your Tiva application and you configure the CC3100 to enable SmartConfig and that's it.  The CC3100 will extract any connect information from its flash and try to find and connect to the Access Point, exchange passwords and session keys, and get a DHCP IP address -- Very easy and saves a lot of setup headaches.  There are 3 ways to set up SmartConfig.  The first is by using an iPhone or Android smartphone application.  The second is using the CC3100's AP provisioning capabilities.  The 3rd is to hard program it with your Tiva application.  We will just talk about 1 and 2.


    Method 1: Apple iPhone SimpleLink mobile application

    The SimpleLink mobile application is a very easy interface to quickly set up the CC3100.  Often you don't have a keyboard or easy interface to the CC3100.  You can use the SimpleLink application on a mobile phone to set up in flash necessary Access Point information like SSID, security type, and password.  However,, the Apple iPhone application, Texas Instruments SimpleLink Wi-Fi Starter Mobile application, does not seem to  work.  At least I could not get it to work.  You can find it in the Apple iPhone store under "TI".  The TI apps engineers kept sending me to the TI webpage, http://www.ti.com/tool/wifistarter but there are only the source code projects.  They insisted the actual binary was their but I could not find it.  Go to the Apple App Store.   I played with it for a day with absolutely no luck with it connecting to and updating a CC3100 Booster Pack.  The version in the Apple Apps Store was Version 1.0.  I will post another forum on the issues with this application.  Hopefully it will get fixed in the near future.  Setting up the CC3100 with the mobile application makes more sense when it works.

    Method 2: CC3100 AP Provisioning

    The Board And Jumpers:  First, plug your CC3100 into the BoosterPack1 connector.  Make sure you orient the card correctly!!!  Look inside the box the CC3100 came in and you will see how to orient the card with a TI MCU LaunchPad.  It is shown very clearly on the inside box board positioning flap.  Don't get exasperated!  It took me a couple of hours to figure this one out.  The CC3100 videos talk about lining up the arrows of the two boards but their are no arrows on the LaunchPad MCU boards.  Well, actually their are 2 really big arrows but we won't go their today.  Their are 3 jumpers on the CC3100 board you need to make sure are set up correctly.  J6 and J5 are a no-brainer -- make sure they have a jumper installed.  J8 is a 3 pin jumper.  For our application, the Jumper should be connected to the pins such that the jumper is closest to the edge of the CC3100 board

    (*_*  * )

    In this configuration I believe the CC3100 gets it's power from the Tiva board.  The other configuration is for getting power from the CC3100 J7 USB connector.  Plug in a USB cable to the Tiva Debug port and connect it to the PC that is running Code Composer with the tcpEchoCC3100_TivaTM4C1249NCPDT application.

    Setting Up CC3100 SimpleLink

    Ok, don't start the tcpEchoCC3100 application just yet.  You should see 3 LED's lit up on the CC3100 board -- green, red, and yellow.  Press the reset button, SW2, on the CC3100 board.  Then press and hold SW1 and then press for 1 second SW3 and then release it.  After you release SW3 you can release SW1.  This places the CC3100 in Access Point mode.  Go to a pc that has a wireless interface card and look for "mysimplelink-####".  It might take a couple of seconds to show up on the pc network status menu.  Once it shows, right click on the mysimplelink and press connect.  After a few seconds it should connect.  Then go to your pc browser and type "http://mysimplelink.net/setup.html.  A TI SimpleLink Setup Page will be displayed.  This shows that you have successfully connected your pc to the CC3100 card.  Scroll down the page a little bit and you will find "WiFi Connectivity Profiles Settings".  Type in your local WiFi routers SSID, Security type, and the password in the Security Key box.  You can set the profile priority as well.  I think this is the priority in which the CC3100 selects which access point to connect to first.  It goes through the list in priority, 7 being the highest, until it gets a good connect.  Scroll down the page a little more and make sure the "AutoStart" and "Auto Smart Config" boxes are clicked.  Go back up to the Profile Settings and click "Add".  In a few seconds you should see your SSID profile in the profile box.  You can repeat the process to add additional access points.

    tcpEchoCC3100 Tiva Application

    Now unplug the USB connector to the Tiva board or press the reset button, SW2, on the CC3100 board.  Build and and load tcpEcho onto the Tiva board.  Run it and you will see on the console "Starting the TCP Echo example for the CC3100"  If this is the very first time you are running this application with a correctly set up SimpleLink you will have to press Board_Button0.  For the Tiva 1294 board it is USR_SW1 or the switch in the very lower left corner next to the edge of the board.  I believe you only have to do this once and never again.  I tried it and it seems to be correct but who knows?  At this point the CC3100 will go out and find the access points you set up in the previous step get a good DHCP IP address.  Once it gets the DHCP IP address it will print it on the console.  If you get the IP address you are good to go!!!!

    tcpSendRecieve PC Application

    I will go quickly on this part.  There is a readme in the tcpEcho project that explains how to use this program.  You can find the tcpSendRecieve applicaiton in C:\ti\tirtos_tivac_2_01_00_03\packages\examples\tools.  Copy the executable to your C: drive.  Now run a command window and point it to the C: directory.  Now run the application with the following args,

    tcpSendReceive ###.###.###.### 1000 1 -l256

    The ###... is the ip address that was printed in the console window.  The program should start running and print out the number of microseconds delay between TCP packets.  I tried this a couple of time and it worked each time.  Everything is real easy when you know how to do it.

    Good Luck,

    Steve Mansfield