SWRU368C
May 2018 – January 2021
CC3100
,
CC3100MOD
,
CC3200
,
CC3200MOD
1
Overview
1.1
Document Scope
1.2
Overview
1.2.1
Features List
1.3
Host Driver Overview
1.4
Configurable Information Element
2
Writing a Simple Networking Application
2.1
Overview
2.1.1
Basic Example Code
3
Device Initialization
3.1
Overview
3.2
Host Interface
3.2.1
SPI Interface
3.2.2
UART Interface
3.2.2.1
Change UART Baud Rate
4
Device Configurations
4.1
Overview
4.2
Device Parameters
4.3
WLAN Parameters
4.3.1
Advanced
4.4
Network Parameters
4.5
Internet and Networking Services Parameters
4.6
Power-Management Parameters
4.6.1
Overview
4.6.2
Power Policy
4.7
Scan Parameters
4.7.1
Scan Policy
5
Socket
5.1
Overview
5.1.1
Transmission Control Protocol (TCP)
5.1.2
User Datagram Protocol (UDP)
5.2
Socket Connection Flow
5.3
TCP Connection Flow
5.3.1
Client Side
5.3.2
Server Side
5.4
UDP Connection Flow
5.4.1
Client Side
5.4.2
Server Side
5.5
Socket Options
5.5.1
Blocking vs NonBlocking
5.5.2
Secure Sockets
5.6
SimpleLink Supported Socket API
5.7
Number of Available Sockets
5.8
Packet Aggregation
6
Device Hibernate
6.1
Overview
7
Provisioning
7.1
Overview
7.2
SmartConfig
7.2.1
General Description
7.2.2
How to Use / API
7.2.2.1
Automatic Activation (Out of the Box)
7.2.2.2
Manual Activation
7.2.2.3
Stopping Smart Config
7.3
AP Mode
7.3.1
General Description
7.3.2
How to Use / API
7.3.3
Things to Note When Configuring AP Provisioning
7.4
WPS
7.4.1
General Description
7.4.2
How to Use / API
7.4.3
Example of Using WPS
7.4.4
Tradeoffs Between Provisioning Options
8
Security
8.1
WLAN Security
8.1.1
Personal
8.1.2
Enterprise
8.1.2.1
General Description
8.1.2.2
How to Use / API
8.1.2.3
Example
8.1.2.4
Limitations
8.2
Secured Socket
8.2.1
General Description
8.2.2
How to Use / API
8.2.2.1
Selecting a Method
8.2.2.2
Selecting a Cipher Suit
8.2.2.3
Selecting the Secured Files for the Socket
8.2.2.4
Set Domain Name for Verification and SNI
8.2.3
Example of Using the SSL
8.2.4
Supported Cryptographic Algorithms
8.3
Limitations
8.3.1
Main Known Limitations
8.3.1.1
STA Mode
8.3.1.2
AP Mode
8.3.1.3
JavaScript Example
8.3.1.4
Host Driver Example
9
AP Mode
9.1
General Description
9.2
Setting AP Mode – API
9.3
WLAN Parameters Configuration – API
9.4
WLAN Parameters Query – API
9.5
AP Network Configuration
9.6
DHCP Server Configuration
9.7
Setting Device URN
9.8
Asynchronous Events Sent to the Host
9.9
Example Code
10
Peer to Peer (P2P)
10.1
General Description
10.1.1
Scope
10.1.2
Wi-Fi Direct Advantage
10.1.3
Support and Abilities of Wi-Fi Direct
10.1.4
Limitations
10.2
P2P APIs and Configuration
10.2.1
Configuring P2P Global Parameters
10.2.1.1
Set P2P Role
10.2.1.2
Set P2P Network Configuration
10.2.1.3
Set P2P Device Name
10.2.1.4
Set P2P Device Type
10.2.1.5
Set P2P Listen and Operation Channels
10.2.2
Configuring P2P Policy
10.2.2.1
Configure P2P Intent Value and Negotiation Initiator
10.2.3
Configuring P2P Profile Connection Policy
10.2.4
Discovering Remote P2P Peers
10.2.4.1
How to Start P2P Discovery
10.2.4.2
How to See/Get P2P Remote Peers (Network P2P List)
10.2.5
Negotiation Method
10.2.6
Manual P2P Connection
10.2.7
Manual P2P Disconnection
10.2.8
P2P Profiles
10.2.9
Removing P2P Profiles
10.3
P2P Connection Events
10.4
Use Cases and Configuration
10.4.1
Case 1 – Nailed P2P Client Low-Power Profile
10.4.2
Case 2 – Mobile Client Low-Power Profile
10.4.3
Case 3 – Nailed Center Plugged-in Profile
10.4.4
Case 4 – Mobile Center Profile
10.4.5
Case 5 – Mobile General-Purpose Profile
10.5
Example Code
11
HTTP Server
11.1
Overview
11.2
Supported Features
11.3
HTTP Web Server Description
11.3.1
Overview
11.3.1.1
Details
11.4
HTTP GET Processing
11.4.1
Overview
11.4.2
Default Web Page
11.4.3
SimpleLink GET Tokens
11.4.4
User-Defined Tokens
11.4.5
HTML Sample Code With Dynamic HTML Content
11.5
HTTP POST Processing
11.5.1
Overview
11.5.2
SimpleLink POST Tokens
11.5.3
SimpleLink POST Actions
11.5.4
User-Defined Tokens
11.5.5
Redirect after POST
11.5.6
HTML Sample Code With POST and Dynamic HTML Content
11.6
Internal Web Page
11.7
Force AP Mode Support
11.8
Accessing the Web Page
11.8.1
SimpleLink in Station Mode
11.8.2
SimpleLink in AP Mode
11.9
HTTP Authentication Check
11.10
Handling HTTP Events in Host Using the SimpleLink Driver
11.11
SimpleLink Driver Interface the HTTP Web Server
11.11.1
Enable or Disable HTTP Server
11.11.2
Configure HTTP Port Number
11.11.3
Enable or Disable Authentication Check
11.11.4
Set or Get Authentication Name, Password, and Realm
11.11.5
Set or Get Domain Name
11.11.6
Set or Get URN Name
11.11.7
Enable or Disable ROM Web Pages Access
11.12
SimpleLink Predefined Tokens
11.12.1
GET Values
11.12.2
POST Values
11.12.3
POST Actions
11.12.4
HTTP Server Limitations
12
mDNS
12.1
Overview
12.2
Protocol Detail
12.3
Implementation
12.3.1
Default Implementation
12.3.2
173
12.3.3
Start and Stop mDNS
12.3.4
mDNS Query – One Shot
12.3.5
mDNS Query – Continuous
12.3.6
mDNS Service Registration
12.4
Supported Features
12.5
Limitations
13
Serial Flash File System
13.1
Overview
13.1.1
Summary of Instructions
File Creation
File Opening
File Closing
File Writing
File Reading
File Deleting
File Information
14
Rx Filter
14.1
Overview
14.2
Detailed Description
14.3
Examples
14.4
Creating Trees
14.5
Host API
14.5.1
Code Example
14.6
Notes and Limitations
15
Transceiver Mode
15.1
General Description
15.2
How to Use / API
15.3
Sending and Receiving
15.4
Changing Socket Properties
15.5
Internal Packet Generator
15.6
Transmitting CW (Carrier-Wave)
15.7
Connection Policies and Transceiver Mode
15.8
Notes about Receiving and Transmitting
15.8.1
Receiving
15.9
Use Cases
15.9.1
Sniffer
15.10
TX Continues
15.11
Ping
15.12
Transceiver Mode Limitations
16
Rx Statistics
16.1
General Description
16.2
How to Use / API
16.3
Notes about Receiving and Transmitting
16.4
Use Cases
16.5
Rx Statistics Limitations
17
Asynchronous Events
17.1
Overview
17.2
WLAN Events
17.3
Netapp Events
17.4
Socket Events
17.5
Device Events
18
Configurable Info Element
18.1
General
18.2
Interface to Application
18.2.1
API Output
18.3
Total Maximum Size of all Information Elements
19
Debug
19.1
Capture NWP Logs
19.1.1
Overview
19.1.2
Instructions
19.1.2.1
Configuring Pin Mux for CC32xx
19.1.2.2
Terminal Settings
19.1.2.3
Run Your Program
19.1.2.4
Send to TI Engineer
A Host Driver Architecture
A.1 Overview
A.1.1 SimpleLink WiFi Host Driver -– Platform-Independent Part
A.1.2 SimpleLink WiFi Host Driver – Platform-Dependent Part
A.1.3 SimpleLink WiFi Driver Configuration
A.1.4 User Application
A.2 Driver Data Flows
A.2.1 Transport Layer Protocol
A.2.2 Command and Command Complete
A.2.3 Data Transactions
A.2.3.1 Data Send (From Host to SimpleLink Network Processor)
A.2.3.2 Data Flow Control
A.2.3.3 Data Receive (From SimpleLink Network Processor to Host)
A.2.3.4 Blocking Receive
A.2.3.5 NonBlocking Receive
B Error Codes
B.1 Error Codes
C How to Generate Certificates, Public Keys, and CAs
C.1 Certificate Generation
Revision History
A
Host Driver Architecture