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.

CC3000 Launchpad Initial Connection

I have a launchpad (MSP-EXP-430G2) with a CC3000 booster pack.  I am unable to connect to the AP using the basic wifi application.  I have downloaded and flashed with the latest patches.  I have the latest basic wifi application and am using the latest version of CCS.  I also have the latest smartconfig application on my android phone.  Here is what I've done:

Run the code and connected to the board:

I have a default gateway of 10.8.0.1 and am trying to set the IP of the CC3000 to 10.8.0.58.  I then ping using command prompt in Windows Vista (also connected to the same wifi network) and get "Destination Host Unreachable."  One thing that seemed weird was why, after using the smartconfig, did it assign the CC3000 an IP (168.3.170.128) that is not in the default gateway?  I had everything correct in the smartconfig application and entered the network password and it gave it a random IP.

  • Hi Jordan,

    You may want to double-check the configuration of your default gateway.

    A few things to check:

    - Is the IP address pool configured correctly?

    - Have you reserved the desired 10.8.0.58 IP address with the CC3000's MAC address?

    - In the SmartConfig app, do you see the correct gateway IP address being displayed when connected to the AP?

     

    Hope that helps.

    -Keegan

     

  • Ok.  I tried this at another house using comcast with a Linsksys Wireless-G router.  I accessed the router and found the wireless MAC filter, which was off.

    Then I checked the DHCP settings and found that it has a default gateway of 192.168.1.1 and is set to start the dynamic IP addressing at 192.168.1.100

    Then I ran the code again on the board, and opened up a Putty terminal. And ran the smart config (don't wanna do that again the password was 3 words converted to hex!)  And got a random IP assigned to the board.  I pinged that IP with no response ("Request Timed Out").

    Then I issued the command 08c0a817bc0a811 to change the IP to 192.168.1.123 and tried to ping that IP, but got "Destination Host Unreachable" 

    BTW In the Smart Config app, the correct gateway was displayed.  I also entered the password and pressed start before sending the 01 command to enter smartconfig mode.

  • Hi Jordan,

    Thanks for the detailed follow-up. It appears that you are following the correct procedure with smartconfig, but as a note the command "08c0a817bc0a811" is incomplete and will assign an IP address of 192.168.23.188 to the cc3000 with a default gateway of 10.129.xxx.xxx. There should be 16 hex characters in total, please see http://processors.wiki.ti.com/index.php/CC3000_Basic_Wi-Fi_example_application_for_MSP430#Static_IP_Configuration for details on the command.

    As far as your issues with DHCP are concerned, It sounds like either:

    a) Your router is not the one assigning an IP address to the CC3000.

    b) The CC3000 is not displaying the correct IP address that is being assigned.

     

    Just to double-check, are you certain that you are using smartconfig to connect to the same AP that you are configuring? Could you check your router's DHCP Client list to verify that it is assigning an IP address to the CC3000?

  • Ok.  I'm back at my house.  We have CenturyLink with an ActiontecC1000A and I have been able to run the same program, same steps as before, but this time I was monitoring the device list on the modem, and I fixed the hexadecimal code so that there were zeros in front of the single character values.  First, I ran smartconfig, with the android phone connected to the same wifi network I'm trying to connect the device to.  Here is the device list after running smartconfig:

    10.8.0.50 is my desktop, 10.8.0.55 is my laptop, and 10.8.0.56 is the phone.  The CC3000 never showed up.  In fact, after smartconfig, it spit out the IP address (the wrong one) that I set earlier manually where the hex value was wrong:

    As you can see above, I set a static IP on the cc3000 to 10.8.0.60, and then pinged it with no response.  Then I added that IP and the corresponding MAC address found on the sticker on the CC3000 to the router table:

    I am going to try to connect to the AP manually with the 02 command next...

  • Jordan,

    I have not seen an error like this before, so I am tempted to say the issue lies in the way the router is configured.

    Without assigning an IP manually (as in only using DHCP and Smartconfig) are you able to see the CC3000 in your DHCP client list? If you haven't already, you will need to set the device back to DHCP mode by using the following set of commands (assuming already connected to an AP):

    1) "0a" to clear previous profile

    2) "09" to disconnect

    3)  "080000000000000000" to configure for DHCP mode

    4) Reset the board

    5) Run SmartConfig using "01"

     

    If this does not work, I would try to connect to the AP manually using the 02 command as you suggested.

  • Well, I performed those steps to reset the profile, disconnect, reconfigure to DHCP mode and reset the board.  I ran smartconfig exactly as I had done before, and it finally showed up on the device list of the router with an IP of 10.8.0.57, and the device is pingable.  Thanks for your help, I guess somewhere down the line I must have changed the original settings that enable it to connect using smartconfig.  I wish I knew a little more about how this is working, I've had a hard time learning by using the documentation, any suggestions?  Thanks for your help again,

    Jordan

  • Great to hear you got it working.

    And thanks for the feedback. I understand it can be tough to ramp up on documentation alone, but what would you recommend that TI provide to help users work with the CC3000? Do we simply need more complete documentation on our existing applications? Would it be helpful to have more code examples or demo applications? Perhaps a guide to networking?

     

    -Keegan

  • I think TI has done a great job at making information available on the CC3000 including a documentation, a wiki, and forums.  What would help me is a simple overall picture of how the system works in terms of communication interfaces.  What I think most people, including myself, would like to know is a basic step through tutorial on how to get information between the internet and the CC3000.

    Internet application > Software > WLAN > CC3000 > MCU (and back)

    Just something simple, like an example application that shows all the steps and basic interfaces to send the data.  I know there are some out there, I've seen them on TI's wiki's like this one: http://processors.wiki.ti.com/index.php/CC3000_Home_Automation_Description#Data_Flow.  It doesn't really show the functions in the software and firmware that are actually sending the data.

    For example, if I want to get the MCU to turn on an LED (like one on the launchpad board) how do I do this?  Is it a command that I have the CC3000 send to the MCU via spi?  Where in the code do I put this, is it in the my_wifi_application.c function below?  (Copied from the example code):

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        // Handle receive data command
        case UART_COMMAND_RCV_DATA:
            iReturnValue = recvfrom(ulSocket, pucCC3000_Rx_Buffer, CC3000_APP_BUFFER_SIZE, 0, &tSocketAddr, &tRxPacketLength);
            if (iReturnValue <= 0)
            {
                // No data received by device
                DispatcherUartSendPacket((unsigned char*)pucUARTNoDataString, sizeof(pucUARTNoDataString));
            }
            else
            {
                // Send data to UART...
                DispatcherUartSendPacket(pucCC3000_Rx_Buffer, CC3000_APP_BUFFER_SIZE);

               // Would the function go here???
            }
            break;
    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    So what command do you use to send data to the MCU, and where is the code that is run on the MCU?  Does it have a SPI listener somewhere?  I couldn't find that.  That information would be really helpful!  I am a EE with some embedded system and electronics experience, so I don't expect all the little details, but the main important ones that are different and unique to the CC3000 and embedded wifi in general would help a ton!  Thanks again!

    Jordan