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.

Question about "getting_started_with_wlan_ap"

Other Parts Discussed in Thread: CC3200, UNIFLASH

Hello,

i am using CC3200 to check the examples which are supported by TI.

In the example "getting_started_with_wlan_ap" i can not get the IP adress. It shows on Uart interface like that :

Host Driver Version: 1.0.0.10

Build Version 2.0.7.0.31.0.0.4.1.1.5.3.3

Device is configured in default state

Device started as STATION

Enter the AP SSID name : wlan_ap

Device is configured in AP mode

Connect a client to Device

After the above strings it should show a NETAPP Event, that means , i should now get an IP adress, but the programm stops here and dose not go on  anymore. And i can not find the SSID "wlan_ap" in the wlan-list from my PC. Something wrong with the NETAPP EVENT handler ? Or i understand the operation wrongly ?

Thank you for your help,

Best Regards,

Zhang JiaYi

  • Hi,

    I am new to CC3200 and i debug and test the example Getting_started_with_AP. According to the guide

    http://processors.wiki.ti.com/index.php/CC32xx_Getting_Started_with_WLAN_AP#Source_Files_briefly_explained

    i have get some requests from the interface Uart. But after i get the response "Connect a client to Device" the programm stops. Then i check the SSID of the AP on my PC, but not successed.

    I used IAR to debug the programm and i used the latest SDK. I checke other example blinky and it works. The Jumper i dont change.

    According to the programm i found the programm stops before the while loop : while(!IS_IP_LEASED(g_ulStatus)), that means the AP can not give any IP to my PC, because my PC dose not connect to the AP. But my PC can not find the SSID which i define through Uart Interface. How can i solve this problem ?

    Thanks a lot for your help,

    Best Regards,

    Zhang JiaYi

  • Hi,

    Is your execution getting stuck at the below location?

    while(!IS_IP_ACQUIRED(g_ulStatus))
    {
    #ifndef SL_PLATFORM_MULTI_THREADED
    _SlNonOsMainLoopTask();
    #endif
    }

    Can you please confirm that you have not made any changes in the code? Also, please confirm that you have added '_SlNonOsMainLoopTask(); ' in the sequence above?

    Regards,
    Raghavendra

  • Thank you very much for your answer, i am always waiting for it online .

    According to my test the programm stops not at IS_IP_ACQUIRED(), but stops at IS_IP_LEASED(g_ulStatus).

    I dont change the code and use IAR 7402 version, the version of SDK is latest too.

    Could you tell me what doese the function _SlNonOsMainLoopTask() mean ? Because in the code there is nothing to be wirtten in the while Loop IS_IP:ACQUIRED().

    And for this example must i change some hardware, for example Jumper or something ? In wiki there is no guide for this.

    Best Regards,

    Zhang JiaYi
  • Hi,

    Since you are using the default OS based application from the package, you need not use _SlNonOsMainLoopTask.

    Can you please give more details about your setup?

    1. What version servicepack are you using?
    2. Are you using static IP on the client side?
    3. Can you please try with a different station?

    Regards,
    Raghavendra
  • Thx for your answer. I use the IAR 7.40,but not a fully licensed version,it is a 30 days version. I have seen in the document "getting started". On page 17 I t says most of the examples are only supported by fully licensed version and these examples are bbased on 7.30. Maybe it is the reason?
  • Hi, I have changed the version of IAR from 7.40 to 7.30 and 7.30 is a fully licensed version. But i have still the problem. So i begin with the "Getting-Started-Guide" and debug at first the Simplelink project, then i try the example Getting_started_with_wlan_station. I have changed the SSID of my router rightly in common.h but the programm stops at WlannConnect(). My router has no password and it should connect each other easily. But it dose not work. The 2 projects i can not get the right function.

    I have rightly updated the Serverice Pack 1.0.0.10.0 through uniflash.

    Best Regards,
    Zhang JiaYi
  • Hi,

    I have tried two APs. It dose not work. And i used the old SDK 1.0.0 too and the problem still there.

    My board is REV4.1.

    Could you test the example getting_started_with_station and if it is ok , could you please send the original project to my Email address ?

    That is my email : geffon_dihan@hotmail.com

    Thank you very much 

    Best Regards,

    Zhang JiaYi

  • Hi,

    I check the original example Getting_started_with_station but the programm stuck at a point as following :

    while((!IS_CONNECTED(g_ulStatus)) || (!IS_IP_ACQUIRED(g_ulStatus)))

    {

    }

    after i call sl_WlanConnect() i can not get the WlanEvent "SL_WLAN_CONNECT_EVENT" so that the variable g_ulStatus can not be changed and the programm stucks.

    I want to know why can i not get the WLAN event ? My router(tpLink) has no password and his SSID i have written in common.h rightly. 

    Are there errors in drivers or in APIs ?

    Thanks for your help.

    Best regards,

    Zhang JiaYi

  • Hi,

    Can you please run the scan policy application on this board, and check whether you are able to scan both your APs?
    Also verify the security type from scan results (and also from AP's setting page).

    Also, please format your device using uniflash and try again by flashing the service pack.

    Regards,
    Raghavendra
  • Hi, thx for your answer.

    At first i format the chip, then refresh the service pack.

    Then i use IAR 7.30 to debug the program "scan policy".

    After "lRetVal=sl_WlanGetNetworkList()" i make a breakpoint, then debug it and observe the value of netEntries. I get the value of  IRetVal which is the returned value from the fuction, it is 0. That means, the chip 3200 has not found any signal nearby. But i have opened two routers nearby. This is a shortcut for it.

    Maybe that is just the problem. CC3200 can not find any singal, and certainly can not work as a AP or as a Station.

    Could you give me some suggestions about it ? Or maybe i should change to another CC3200 ? This chip is not mine, but from my school.

  • Hi,

    Did you step through all the iterations? I would suggest that you print the list of APs that are available.
    Cannot really comment if this is an issue with the signal or not, because in the AP mode, the station was able to scan the CC3200.

    Regards,
    Raghavendra
  • Hi, 

    I have tried to use scan_policy to scan the available APs nearby. But it shows nothing. That is the result.

    After the function i should see the SSID of my router in "Quick Watch". But obviously nothing there.

    Best Regards,

    Zhang Jia Yi

  • Hi,

    1. Are you using a custom board or are you using cc3200 launchpad?
    2. If you are using the cc3200 launchpad, then have you made any modifications on the board?
    3. At what distance are the 2 Access points from the cc3200 device?
    4. Can you please place an AP (or make your phone as a wifi hotspot) close to the cc3200 device and run the scan policy example?

    Regards,
    Raghavendra
  • Thanks for your answer.

    The AP (my router ) is very near to CC3200 , only about 1 meter. My board is CC3200 Launchpad and i dont change anything.

    But, before using the board i have made a mistake. For the example HTTP-Server i should connect Pin58 and VCC with Jumper together so that the board works as an AP. But i connect wrongly, i connect VCC(P1) and 5v(P3) together. May this wrong operation make the board corrupt? The VCC should be 3.3 v , right ? but if he connects with 5V, then cause an unexpect problem ?

    Best Regards,

    Zhang JiaYi
  • Hi,
    Thank you very much for you help, i have solved this problem. The problem is just the hardware problem. I have wrongly connected the Pin VCC and 5V which causes the broken board.
    My professor just gives me an other same board and it is ok to test the examples.

    Regards and thank you very much,

    Zhang Jia Yi
  • Hi,

    Thanks for confirming. I am closing this thread.

    Regards,
    Raghavendra