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.

Web Server Application Flow

Hi,

I am trying to work Web Server Application sample software for demo.

  1. Get Cc3000webserverv2.zip file from Wiki.
  2. Import CCS project from it and Build CC3000HostDriver and webserver.
  3. Put CC3000 module toFR5739EVM and connect USB to PC.
  4. Do First Time Configuration flow.
  5. Confirm turn ON LED 1, 2 ,3 and 8.

I could not confirm to working http server part now. MSP430 program counter was at hci_event_handler().  I confirmed to assign IP Address to CC3000 by Access Point web page (192.168.1.1).

Do I need to have any more configuration or operation?

Regards,
Shungo

  • Shungo,

    At the time the Webserver application was created, a bug in the First Time config in which a restart was required was still present. Please press the red reset button. You should should then see LEDS 1 through 4 turn on and the webserver accessible.

    This issue will be resolved in a future version.

    Regards,
    Gustavo

  • Hi, Gustavo,

    Thank you for quick reply and explain for my question.

    I tried reset button of FR5739EVM after confirming TCP-IP assigned after First Time Config. However I confirmed just only LED1 turn on only.
    I tried also with CCS. Confirmed LED1.2.3 and 8 turn on by First Time Config and CPU suspend and CPU reset by CCS command. This was the same result...

    In this time, I am thinking to modify demo_config.h as below.
    #define DEFAULT_OUT_OF_BOX_SSID       "TP-LINK_XXXXXX" // XXXXXX is put my AP ID.

    I confirmed LED1, 2, 3 and 4 with this. However, I could not access to webserver yet.
    I disabled LAN configuration of IE to default, but could not access yet.

    Do you have any more configuration for not only CC3000 side but also PC or Internet Explorer side?

    regards,
    Shungo

  • Shungo,

    Please attempt to first use First Time Config using the Sensor Application. It should help you get the procedure down.

    The best way for you to see what is going on is to connect to the USB port of the FRAM board using hyperterminal. Please look at your device manager to see which serial port

    is assigned to the FRAM board. Then use hyperterminal, putty or a program of your choice and connect to that port @ 9600 baud.

    For more information about the features, please look at the next steps section of the Getting Started guide (at the end of the page).

    As for the fact that after restarting the board, only LED1 is on. This would indicate that First Time Config was not correct and the CC3000 is unable to connect to the AP. If LEDs 2,3,and 4 do turn on, then that doesn't matter.

    Changing the SSID in the code is definitively possible, but in the terminal you can use the command assoc:

    assoc linksys

    which would connect the CC3000 to an AP with SSID "linksys"

    Regards,
    Gustavo

  • Hi Gustavo,

    I tried First Time Config with Sensor Application. My sensor demo is not work proper as other post but I think First Time Config is maybe fine, because CC3000 could connect  after reset and I confirmed IP address. However I could not confirmed below message "First Time Config Complete". CPU is stopped at below SimpleLinkWaitEvent.

    StartFirstTimeConfig(); -> wlan_start(0); -> SimpleLink_Init_Start(usPatchesAvailableAtHost); -> SimpleLinkWaitEvent(HCI_CMND_SIMPLE_LINK_START, 0); -> wait hci_event_handler...

    I tried hyperterminal with webserver demo, but I could not get any message. I also checked program, there is no terminalPrint function. Do you say about Sensor Demo?

    regards,
    Shungo

  • Shungo,

    Due to space constraints, the webserver application does not contain any terminal functionality. I was referring to the Sensor Application and I apologize if that caused confusion.

    You are seeing that the CC3000 device connects, but why is the CPU stopped? Are you stopping it? Have you tried using a browser on a PC to go to the IP address?

    Regards,
    Gustavo



  • Hi Gustavo,

    OK. terminal function is only for Sensor Application.

    About CPU stop,
    I checked terminal with Sensor Application for checking First Time Config. So I could not see "First Time Config Complete".
    So I am debugging with CCS. I wait some seconds after LED1,2,3 and 8 turn on and stopped MSP430. Then Program
    counter was at hci_event_handler. I checked program sequence.

    After push S1, MSP430 run below flow.
    StartFirstTimeConfig(); -> wlan_start(0); -> SimpleLink_Init_Start(usPatchesAvailableAtHost); -> SimpleLinkWaitEvent(HCI_CMND_SIMPLE_LINK_START, 0); ->hci_event_handler...

    So it looks MSP430 is waiting hct event from CC3000.
    Do you know is this issue of MSP430 program or CC3000 firmware or other?

    regards,
    Shungo

  • Shungo,

    I suggest that you first try to make sure everything works without first time config. To do so, modify the name of the AP in demo_config.h and run the code.

    LEDs 1 through 4 should light up and then you should then be able to connect to the webserver by using the IP address.

    Regards,
    Gustavo