CC3100/CC3200 Simplelink Wi-Fi Internet-On-A
Total Page:16
File Type:pdf, Size:1020Kb
CC3100/CC3200 SimpleLink™ Wi-Fi® Internet-on-a-Chip User’s Guide Literature Number: SWRU368C MAY 2018 – REVISED JANUARY 2021 www.ti.com Table of Contents Table of Contents 1 Overview..................................................................................................................................................................................7 1.1 Document Scope................................................................................................................................................................8 1.2 Overview............................................................................................................................................................................ 8 1.3 Host Driver Overview....................................................................................................................................................... 10 1.4 Configurable Information Element....................................................................................................................................12 2 Writing a Simple Networking Application...........................................................................................................................13 2.1 Overview.......................................................................................................................................................................... 14 3 Device Initialization.............................................................................................................................................................. 19 3.1 Overview.......................................................................................................................................................................... 20 3.2 Host Interface...................................................................................................................................................................21 4 Device Configurations..........................................................................................................................................................25 4.1 Overview.......................................................................................................................................................................... 26 4.2 Device Parameters...........................................................................................................................................................26 4.3 WLAN Parameters........................................................................................................................................................... 26 4.4 Network Parameters........................................................................................................................................................ 28 4.5 Internet and Networking Services Parameters.................................................................................................................28 4.6 Power-Management Parameters..................................................................................................................................... 28 4.7 Scan Parameters............................................................................................................................................................. 29 5 Socket.................................................................................................................................................................................... 35 5.1 Overview.......................................................................................................................................................................... 36 5.2 Socket Connection Flow.................................................................................................................................................. 36 5.3 TCP Connection Flow...................................................................................................................................................... 37 5.4 UDP Connection Flow......................................................................................................................................................39 5.5 Socket Options.................................................................................................................................................................40 5.6 SimpleLink Supported Socket API................................................................................................................................... 41 5.7 Number of Available Sockets........................................................................................................................................... 41 5.8 Packet Aggregation..........................................................................................................................................................42 6 Device Hibernate...................................................................................................................................................................43 6.1 Overview.......................................................................................................................................................................... 43 7 Provisioning.......................................................................................................................................................................... 45 7.1 Overview.......................................................................................................................................................................... 46 7.2 SmartConfig..................................................................................................................................................................... 46 7.3 AP Mode.......................................................................................................................................................................... 48 7.4 WPS................................................................................................................................................................................. 50 8 Security..................................................................................................................................................................................53 8.1 WLAN Security.................................................................................................................................................................54 8.2 Secured Socket................................................................................................................................................................56 8.3 Limitations........................................................................................................................................................................ 59 9 AP Mode.................................................................................................................................................................................61 9.1 General Description......................................................................................................................................................... 62 9.2 Setting AP Mode – API.................................................................................................................................................... 62 9.3 WLAN Parameters Configuration – API........................................................................................................................... 62 9.4 WLAN Parameters Query – API.......................................................................................................................................63 9.5 AP Network Configuration................................................................................................................................................63 9.6 DHCP Server Configuration............................................................................................................................................. 64 9.7 Setting Device URN......................................................................................................................................................... 65 9.8 Asynchronous Events Sent to the Host............................................................................................................................65 9.9 Example Code..................................................................................................................................................................66 10 Peer to Peer (P2P)...............................................................................................................................................................69 10.1 General Description....................................................................................................................................................... 70 SWRU368C – MAY 2018 – REVISED JANUARY 2021 CC3100/CC3200 SimpleLink™ Wi-Fi® Internet-on-a-Chip 3 Submit Document Feedback Copyright © 2021 Texas Instruments Incorporated Table of Contents www.ti.com 10.2 P2P APIs and Configuration.......................................................................................................................................... 70 10.3 P2P Connection Events................................................................................................................................................