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.

CC3200 connection with www.ti.exosite.com for ADC of signal in real time

Other Parts Discussed in Thread: CC3200

Hi,

I am new to CC3200. I am trying to access CC3200 by one example named "getting_started_with_wlan_station" in IAR Workbench. 

Problem Faced while accessing this practical :

1) The error is "Device couldn't ping the external host" . I am accessing it through mobile which acts as an access point. Network security is OPEN , Network name - "kp-hotspot"  and Password - "" (null) .  And mobile is working with  PROXY FREE network.

2) I want to send ADC data to ExositeWeb Page and want to plot signal over there in real time. I am not able to find out way where to write code for ADC and how to compose code for connection with webpage.

I have been trying to access CC3200 since last one and half month. I have read online articles made available by TI. But there is no outcome. 

Please help me!! Looking positively for guidance.

  • Hi Ankit,

    1 ) Regarding the "Device couldn't ping external host", here the device tries to ping "www.ti.com" by default. Please make sure that your AP (hotspot) has Internet connectivity to reach the external host.

    2) Regarding the exosite demo, please follow the below post (e2e.ti.com/.../1434920).
    Code for ADC should be written for CC3200 itself. Please check the sample example for adc at 'cc3200-sdk\example\adc' in the CC3200 SDK.
    You can then merge the 2 applications, based on your use case.

    Regards,
    Raghavendra
  • 1) Have you connected to the CC3200 when it is an Access Point, or have you set up the smart phone as a Hot Spot which the CC3200 is connecting to. The first option I explained will not provide you access to the Internet

    2) You will need to combine the code which Exosite provides with the adc example in the SDK.

    Glenn.
  • Hi Raghavendra & Glenn,

    Thanks for your reply.

    I have tried again with Dongle of one mobile service provider Which doesn't require proxy settings. But Still there was problem and on Tera Term Screen it is shown like "Error [-2001] at line [731] in function [CheckInternetConnection]   , Device couldn't ping the external host". For this i have written this code block for internet access ,

    #define SSID_NAME           "TP-LINK_POCKET_3020_965EAE"    /* AP SSID */
    #define SECURITY_TYPE       SL_SEC_TYPE_OPEN                /* Security type (OPEN or WEP or WPA*/
    #define SECURITY_KEY        ""                              /* Password of the secured AP */

    Here, I am using TP-LINK wifi router  for access point. I have plugged in Dongle in this wifi router. I also checked Mobile, I have made mobile as HotSpot nd there was also no security and no password.But there was also the same problem. It is not going forward.

  • Hi Ankit,

    Did the mobile phone have the internet connectivity when you tried to ping? Also, were you able to access internet from a mobile/PC when connected to the AP with dongle?

    Regards,
    Raghavendra
  • Hi Raghavendra,


    I have TP-Link Wifi Router in which there is a slot for 3G/4G Dongle connection. I have connected Dongle in that slot. And i have made that wifi router an access point, Earlier i have mentioned code to link with that router.

    Router doesn't require Proxy Settings.

    CC3200 is properly made Station, It is assigned an IP address also. But while CC3200 tries access "ti.com" , the error comes , An error was mentioned in  earlier post.

    Please help me out in this. I am not able to find any clue to over come this problem.

  • Hi Glenn,

    Thanks for your reply.

    I have tried again with Dongle of one mobile service provider Which doesn't require proxy settings. But Still there was problem and on Tera Term Screen it is shown like "Error [-2001] at line [731] in function [CheckInternetConnection]   , Device couldn't ping the external host". For this i have written this code block for internet access ,

    #define SSID_NAME           "TP-LINK_POCKET_3020_965EAE"    /* AP SSID */
    #define SECURITY_TYPE       SL_SEC_TYPE_OPEN                /* Security type (OPEN or WEP or WPA*/
    #define SECURITY_KEY        ""                              /* Password of the secured AP */

    Here, I have TP-Link Wifi Router in which there is a slot for 3G/4G Dongle connection. I have connected Dongle in that slot. And i have made that wifi router an access point, i have mentioned code to link with that router above.I also checked with Mobile, I have made mobile as HotSpot and there was also no security and no password.But there was also the same problem. It is not going forward.

    CC3200 is properly made Station, It is assigned an IP address also. But while CC3200 tries to access "ti.com" , the error comes , an error has been mentioned above.

    Please help me out in this. I am not able to find any clue to over come this problem.

  • Hi Ankit,

    I am not sure what else to suggest, perhaps some more testing with other devices connected to your router to see if they can access the server you are trying to access.

    Glenn
  • Hi Ankit,

    Can you please test with some other AP? Also, please make sure that data is ON when you are using the smartphone as an AP.

    Regards,
    Raghavendra
  • Hi Glenn,

    I can understand the problem happening with me is quit difficult to understand. I would like to express whole procedure and error happening with this practical.

    The error is coming in line no. [731] of [CheckInternetConnection] function of  main.c of  [getting_started_with_wlan_station] example of CC3200-SDK.

    The pointer is getting into IF statement because of  variable "g_ulPingPacketsRecv" is having value '0' and variable  'g_ulPingPacketsRecv' is Number of Ping Packets received. 

    Whole IF statement is like this :

    if (0 == g_ulPingPacketsRecv)
    {

    // Problem with internet connection

    ASSERT_ON_ERROR(INTERNET_CONNECTION_FAILED);              <-- Line No. 731

    }

    The error is [-2001], i.e. (-7D0-1)  in hex.

    The statement looks like in terminal window is like this :

     " Error [-2001] at line [731] in function [CheckInternetConnection]

    Device couldn't ping the external host "

  • Hi Raghavendra,

    I can understand the problem happening with me is quit difficult to understand. I would like to express whole procedure and error happening with this practical.

    The error is coming in line no. [731] of [CheckInternetConnection] function of main.c of [getting_started_with_wlan_station] example of CC3200-SDK.

    The pointer is getting into IF statement because of variable "g_ulPingPacketsRecv" is having value '0' and variable 'g_ulPingPacketsRecv' is Number of Ping Packets received.

    Whole IF statement is like this :

    if (0 == g_ulPingPacketsRecv)
    {

    // Problem with internet connection

    ASSERT_ON_ERROR(INTERNET_CONNECTION_FAILED); <-- Line No. 731

    }

    The error is [-2001], i.e. (-7D0-1) in hex.

    The statement looks like in terminal window is like this :

    " Error [-2001] at line [731] in function [CheckInternetConnection]

    Device couldn't ping the external host "
  • Hi Ankit,

    We do understand the test case. That is why I had requested above "Can you please test with some other AP? Also, please make sure that data is ON when you are using the smartphone as an AP." Could you please share you observation?

    Regards,
    Raghavendra
  • Hi Raghavendra,

    Thanks for your reply.

    First of all, i have tested CC3200 with my institute's proxy server.Second time I have tested with Mobile phone acting as an AP, also Data was ON.Third time i have tested with Dongle.In these three, common error is "Error [-2001] at line [731] in function [CheckInternetConnection] , Device couldn't ping the external host". While testing with my institute's proxy server ,i can understand there were so many restrictions , but the same error had happened while accessing it with Mobile Phone as an AP and Dongle as an AP.These last two are open network, so i don't get the point why this is happening.

    I have mentioned 'IF' statement in my previous comment , from 'IF' statement i had tried to back track whole things which are responsible for this error message , some things i did understand but few things i couldn't. If you have still doubt in my question then i can explain whole thing step by step where exactly the function inside 'IF' statement is heading.
  • Hi TI,

    I am working with CC3200 in IAR Embedded Workbench for ARM 7.40 and testing a “getting_started_with_wlan_station”code whose explanation is given in video, whose link i have mentioned below. I correctly followed all the steps mentioned in video.But i don't know why the error is coming?

    First image explains the SSID NAME, SECURITY TYPE and PASSWORD.

    Second image explains the error displayed on TERA TERM.

    Third image explains the error function CheckInternetConnection() along with line where error is stuck.

    Please help me. I have been facing this problem since last one month. Its urgent to solve this error.

    Thanking you in advance.

    Link for Video : www.youtube.com/watch?v=oian8iwg2jQ

  • Hi Ankit,

    Just to confirm that you haven't modified anything in the example (except the AP credential information).

    Can you please try following test?
    1) Change the 'HOST_NAME' macro value to "www.google.com" and test the example.
    2) Try running the application in the debug mode and verify the IP received by the 'sl_NetAppDnsGetHostByName()' API.

    Regards,
    Ankur
  • Hi Ankur,

    Thank you for answering my question.

    I would like to share updated output when i changed 'HOST_NAME' and ran in debug mode.

                    *************************************************

                              CC3200 WLAN STATION Application

                    *************************************************

    Host Driver Version: 1.0.0.10

    Build Version 2.4.0.2.31.1.3.0.1.1.0.3.34

    Device is configured in default state

    Device started as STATION

    [WLAN EVENT] STA Connected to the AP: TP-LINK_POCKET_3020_965EAE ,BSSID: e8:de:27:96:5e:ae

    [NETAPP EVENT] IP Acquired: IP=192.168.0.101 , Gateway=192.168.0.254

    Connection established w/ AP and IP is aquired

    Pinging...!

    Error [-2001] at line [731] in function [CheckInternetConnection]

    Device couldn't ping the external host

    --> I am using dongle of one mobile service provider. To make AP , i have plugged it into wi-fi router (setup's image has been attached). So now what should i do to troubleshoot this problem?

    -->Sir, can you please help me in printing value of 'lRetVal' on Tera Term? I tried with UART_PRINT but it seems to print  string only.

    If i can print 'lRetVal' then it may become easy to analyse.

    -->Please Guide me.

    Thanking you.

    Regards,

    Ankit

  • Hi Ankit,

    As I requested please verify the IP received by 'sl_NetAppDnsGetHostByName()' function. You can put the breakpoint just after this function call and check the value in 'ulIpAddr' variable.
    Also please share if you have made any changes at the code/logic level in the example.

    You can use the 'Report()' function to print the values (behaves similar to printf)

    Regards,
    Ankur
  • Hello Sir,

    I have placed breakpoint after 'sl_NetAppDnsGetHostByName()' function and watched values of various variable. Watch window has been attached.

    The output on Tera Term is:

                  

                     *************************************************

                               CC3200 WLAN STATION Application

                     *************************************************

    Host Driver Version: 1.0.0.10

    Build Version 2.4.0.2.31.1.3.0.1.1.0.3.34

    Device is configured in default state

    Device started as STATION

    [WLAN EVENT] STA Connected to the AP: TP-LINK_POCKET ,BSSID: e8:de:27:96:5e:ae

    [NETAPP EVENT] IP Acquired: IP=192.168.0.100 , Gateway=192.168.0.254

    Connection established w/ AP and IP is aquired

    Pinging...!

    lRetVal = 0

    lRetVal = 0

    Error [-2001] at line [734] in function [CheckInternetConnection]

    Device couldn't ping the external host

    Kindly suggest me for further test.

  • Hi TI,


    As i posted questions regarding problem in CC3200 getting started Wlan Station example code. (Link :   https://e2e.ti.com/support/wireless_connectivity/f/968/p/416313/1526355#1526355 )

    In that i am trying to get 'External Host IP Address' (Image has been attached). 

    So can you please tell me how to convert integer format value to network format value in CC3200 getting started wlan station example code?

    I want to read IP Address acquired at line no. 707.

    Please Guide me.

    Thanking you in advance.

    Regards,

    Ankit

  • Hi Ankit,

        The IP address is stored at unsigned long ulIpAddr. Do you mean to convert the value to IP address with a dot separator like this 172.16.254.1?

        It is not that hard. Seeing the link below will give you an idea how. But, probably you can get sample codes for that in the internet.

        IP address

    - kel

  • Hi Kel,

    Many many thanks for replying my post.

    I got online to convert an unsigned int value to an IPV4 address.

    my application is to push signal on  ti.exosite.com in real time. For that i have to perform ADC for this.

    so i am testing 'getting started wlan station' example. To perform this test i am using Dongle of one mobile service provider. The reason for using dongle is, it is said to open network, no proxy restriction is there.

    When i perform test , error comes like 'Device couldn't ping the external host'. I don't know why this error is coming.

    I am placing few snapshot taken today while performing test.

    In main.c file, i have placed two breakpoints one at line no. 710 and other at line no.717

    According to 3627729924, IPV4 address is : 216.58.196.4  ( Link )

    According to 3232235774, IPV4 address is : 192.168.0.254 ( Link )

    How to find PORT no. through which whole communication is being established, because i suspect there might be issue regarding port no.

    Can you please help me?

    Thanking you.

    Regards,

    Ankit