• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » SimpleLink™ Wi-Fi® » CC3000 Demo assistance
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

CC3000 Demo assistance

This question is answered
Jason Kriek
Posted by Jason Kriek
on Apr 05 2012 19:21 PM
Expert3320 points

Hello,

Customer of mine is trying to get the sensor app up and running, can you please offer some assistance here:

 

I am working with MSP-EXP430FR5739 board and CC3000 WiFi module model TiWi-SL. I am trying to get the Sensor Demo app to work. The problem I am hitting is when the PC (the GUI app) initiates connection, connection never gets established. Network analyzer shows the packets are sent and received back and forth correctly for a short while, but after 2-3 successful SYN packets there is SYN packet sent from the PC to the device, that never gets any response, like it's never received by the device. The behavior does not seem to be always the same, sometimes I think I see data packet (with payload 'DATA' in ASCII) but no response. Sometimes there is a short (<1s) visualization of the blue "moon" in the GUI but it quickly disappears.

 

DHCP works always, and I can always send data out over UDP in my test app, and sometimes (randomly) I can even establish an outgoing TCP connection, but as soon as I start sending over TCP the MCU starts behaving erratically and I cannot step over machine instructions in the debugger.

 

Thanks,

Jason

 

---------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.
---------------------------------------------------------------------------------------------------------

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Pedro5084
    Posted by Pedro5084
    on Apr 11 2012 18:33 PM
    Intellectual2390 points

    Hi Nikola, 

    Also try setting the policy as:

    wlan_ioctl_set_connection_policy (1,1,1); 

    You may check this link, it shows how to add the policy: 

    http://processors.wiki.ti.com/index.php/CC3000_Host_Programming_Guide#Using_WLAN_policy_and_profiles

    For example you could try something like this:

    err = wlan_add_profile (WLAN_SEC_WPA2,"TP-LINK", 7, NULL, 0,0,0,0, "sifra123", 8);
    err = wlan_ioctl_set_connection_policy (1,1,1);
    wlan_stop();
    __delay_cycles(600000);
    wlan_start(0);
    
    
    Pedro 
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nikola Bulatovic103326
    Posted by Nikola Bulatovic103326
    on Apr 12 2012 04:07 AM
    Prodigy120 points

    Hi Gustavo, Pedro,

    I have tried both of your suggestions for connection policy but the result is the same.

    Regards,

    Nikola

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nikola Bulatovic103326
    Posted by Nikola Bulatovic103326
    on Apr 12 2012 08:07 AM
    Prodigy120 points

    I would like to upload my test app, in case that might help. How do I use upload in this forum?

    Nikola

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pedro5084
    Posted by Pedro5084
    on Apr 12 2012 08:21 AM
    Intellectual2390 points

    Use the Insert File (the clip icon), see below. 

    Regarding the policy, could you try to see if the open security works, for example:

    err = wlan_add_profile (WLAN_SEC_UNSEC,"TP-LINK", 7, NULL, 0,0,0,0,NULL, 0);
    err = wlan_ioctl_set_connection_policy (0,0,1);
    wlan_stop();
     __delay_cycles(600000);
    wlan_start(0);

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nikola Bulatovic103326
    Posted by Nikola Bulatovic103326
    on Apr 12 2012 08:46 AM
    Prodigy120 points

    Ok, I see the button. Here is my test app attached.

    Nikola     5270.StartUpWiFi Application.zip

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nikola Bulatovic103326
    Posted by Nikola Bulatovic103326
    on Apr 12 2012 09:49 AM
    Prodigy120 points

    Setting a non-secure profile worked. I can connect wlan and tcp. So there has to be something wrong in the way I am specifying security settings. Does CC3000 driver support WPA?

    I will try other methods.

    Thanks,

    Nikola

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nikola Bulatovic103326
    Posted by Nikola Bulatovic103326
    on Apr 12 2012 11:02 AM
    Prodigy120 points

    I've tried all other encryption methods and none of them works. Has anyone been successful in using secure wifi with profiles? 

    Is there anything i can do to get more information? Should I re-implement profiles using wlan_connect method and scan for networks myself? but then i will soon run out of FRAM space.

    Nikola

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • GustavoL
    Posted by GustavoL
    on Apr 12 2012 11:17 AM
    Intellectual590 points

    Nikola,

    I hope you took into account the fact that the 1st time a profile with security is used, it takes about 6 seconds to calculate the key.

    I recommend that in the meantime, that you use the wlan_connect. It also creates a profile (if the policy is set that profiles be used).

    Why do you need to scan for networks manually? The CC3000 does that all by itself.

    Regards,
    Gustavo

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nikola Bulatovic103326
    Posted by Nikola Bulatovic103326
    on Apr 12 2012 11:36 AM
    Prodigy120 points

    Gustavo,

    Great, wlan_connect really saves profiles and automatically scans next time connection is lost. But i can't delete the profiles saved with wlan_connect by using del_profile. what would be the procedure to delete a profile created this way?

    Thanks,

    Nikola

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • GustavoL
    Posted by GustavoL
    on Apr 12 2012 11:48 AM
    Intellectual590 points

    Nikola,

    Did you read somewhere that del_profile doesn't erase the profiles created by wlan_connect? I had the understanding it does.

    Regards,
    Gustavo

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nikola Bulatovic103326
    Posted by Nikola Bulatovic103326
    on Apr 12 2012 11:54 AM
    Prodigy120 points

    Gustavo,

    I tested wlan_ioctl_del_profile today and it failed. But i have found another way of deleting profiles (set policy 0,0,0 and restart device), so i don't worry too much about this any more.

    Another problem with wlan_connect is that it does not save the profile into NVMEM unless it is able to connect. This would prevent us from setting up the device on one's PC or Mac at home and then using it on another network. The device actually has to be connected on a network to be set up. Is there a workaround for this limitation?

    Regards,

    Nikola

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pedro5084
    Posted by Pedro5084
    on May 02 2012 17:59 PM
    Verified Answer
    Verified by Miguel
    Intellectual2390 points

    Hi Nikola, 

    Could you try something like this: 

    err = wlan_add_profile (WLAN_SEC_WPA2,"TP-LINK", 7, NULL, 0,0x18, x1e, 0x2, "sifra123", 8);
    err = wlan_ioctl_set_connection_policy (0,0,1);
    wlan_stop();
    __delay_cycles(600000);
    wlan_start(0);

    The  arguments in bold are constants. Could you try this. 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nikola Bulatovic103326
    Posted by Nikola Bulatovic103326
    on May 08 2012 04:23 AM
    Prodigy120 points

    Yes, this worked! This allows us to program a profile if needed outside the wi-fi network range.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use