NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

CC3100 TCP Socket Application

From Texas Instruments Wiki
Jump to: navigation, search
Cc31xx cc32xx return home.png
Cc31xx return sample apps.png

Overview and application details[edit]

This is a sample application demonstrating how to open and use a standard TCP socket with CC3100.

NoteNote: This wiki page is only applicable for CC3100-SDK v1.0.0 and upward releases. For documentation on older SDKs' examples, refer corresponding file in <cc3100-sdk-installation-location>\cc3100-sdk\docs\examples\

Usage[edit]

  • Connect the board to a Windows-PC and configure the terminal-program for seeing the logs - [| CC31xx_&_CC32xx_Terminal_Setting_Wiki] has detailed instructions for configuring the terminal-program
  • Edit sl_common.h and update the following parameters for the device to establish connection w/ the access-point
   #define SSID_NAME       "<ap_name>"
   #define SEC_TYPE        <security-type>
   #define PASSKEY         ""
  • Edit main.c and update the following parameters of the remote server
   #define IP_ADDR         0xc0a80164
  • Build and launch the application
  • Open an Iperf TCP server listening on port PORT_NUM on Windows-PC
   Iperf -s -p <PORT_NUM> -i 1
  • The device will connect to Iperf server and send some packets
  • The application also starts a TCP server on PORT_NUM
  • Open an Iperf client on Windows, connect to CC3100 on PORT_NUM
  • The Iperf version used in testing was: iperf-2.0.9-win64 (running on windows 10)
   Iperf -c <DEST_IP_ADDR> -p <PORT_NUM> -i 1
  • The device receives the packets sent by the Iperf client and closes the socket.
  • See the self explanatory logs on the terminal-program's console. On success, below message will be displayed on the terminal
Tcp socket logs 1.png

Limitations/Known Issues[edit]

None

Links[edit]

{{#invoke: Navbox | navbox }} {{#invoke: Navbox | navbox }}

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article CC3100 TCP Socket Application here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article CC3100 TCP Socket Application here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article CC3100 TCP Socket Application here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article CC3100 TCP Socket Application here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article CC3100 TCP Socket Application here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3100 TCP Socket Application here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3100 TCP Socket Application here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article CC3100 TCP Socket Application here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article CC3100 TCP Socket Application here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity