• 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® » associating with a secured WAP
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

associating with a secured WAP

This question is answered
bios.bob
Posted by bios.bob
on Mar 30 2012 15:22 PM
Intellectual900 points

hi,

i'm using the TP-LINK router, and have selected WPA-PSK security; i have assigned a password there, and verified that i can associate with the router (using this password) from my PC and phone....

i'm having trouble, however, associating with this WAP from the CC3000 by calling connect(); in the past, i have had no trouble associating with the WAP before i enabled security....

for the first parameter to connect, i'm passing WLAN_SEC_WPA; and for the last two parameters, i'm passing the password (key) string together with it's length.... 

connect(WLAN_SEC_WPA, ssid, ssidlen, 0, key, keylen)

what am missing here???

thanks

bob.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Igor56492
    Posted by Igor56492
    on Apr 01 2012 08:20 AM
    Intellectual1735 points

    Hi Bob,

    Please make sure that the key that you pass to the connect, and as set in the TP LINK router are matching also in there types.

    In general you can select if the key, provided to the AP is in ASCII or HEX values.

    Regards

    Igor

    cc3000
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • bios.bob
    Posted by bios.bob
    on Apr 01 2012 12:47 PM
    Intellectual900 points

    hi igor,

    i believe i did this....  in the TP LINK router, i am using WPA-PSK (and selected WPA1 specifically)....  i entered an *ascii* password, which is what i used on my phone/PC to associated with the router.

    i passed the *same* ascii string to connect, but had no luck....

    maybe i missed something else....   perhaps you could give me an explicit example, showing me what to do with the TP LINK router set as well as what to pass to connect()

    bob.

    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 02 2012 21:00 PM
    Intellectual590 points

    Bob,

    Could you paste the exact code you're using? How do you obtain the string len?

    Please make sure that the define you're using for security is correct, i.e. is WLAN_SEC_WPA defined as 2?

    Try to configure the sensor demo application to use the WPA to see if it connects. Please note that when using connect, it may take up to 6 seconds for the connection to be established. This happens only once when you use profiles.

    Regards,
    Gustavo

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • bios.bob
    Posted by bios.bob
    on Apr 02 2012 21:07 PM
    Intellectual900 points

    hi gustavo,

    when i pass the value WLAN_SEC_WPA2 (which i believe has the value3), everything worked....  the (text) password i used when setting up the router was passed a C string to connect....

    bob.

    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 05 2012 10:18 AM
    Verified Answer
    Verified by Aaron L
    Intellectual590 points

    Great to hear.

    I would then guess that your AP was configured to use WPA2 and not WPA.

    Regards,
    Gustavo

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
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