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 XMPP Reference 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 connect and work with XMPP server using CC3100. It receives/sends an XMPP messages from/to the server.

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\

Warning Warning: The service used by this example, Google Chat, has been phased out. This example no longer works as-is.

Source Files briefly explained[edit]

  1. main - Initializes the device, connects to an access-point and configures the email
  2. xmpp - Wrapper functions to configure/connect to XMPP-Server and send/receive chat-messages. These functions are called from main
  3. base64 - Functions to convert the raw bytes in quasi-big-endian order to Base64 string

Usage[edit]

Prerequisite: This application requires an access-point with internet connectivity

  • 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
  • Open sl_common.h and change SSID_NAME, SEC_TYPE and PASSKEY as per your access-point properties - SimpleLink device will connect to this AP when the application is executed
  • Open config.h and change values for XMPP_USER and XMPP_PWD for setting up the xmpp account credentials.
  • Log-in your 'gtalk' account and add configured xmpp account to your friends list
  • Build the application. Download and execute it on the target device
  • Once the connection is established successfully, wait for configured account to appear ONLINE in your friends' list
Sls_XMPP_1.png


  • When ONLINE, send messages to CC3100. The device shall receive and relay the messages back to the sender
Sls_XMPP_2.png


  • See the self explanatory logs on the terminal-program's console. On success, below message will be displayed on the terminal
Xmpp client log 1.png

Limitations/Known Issues[edit]

  • The size of the message is currently limited to 48
  • Since example doesn't implement a complete XMPP stack:
  1. Retreiving the full friend roster isn't supported
  2. Checking the remote friend status (online, offline) before sending him a message is not supported

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 XMPP Reference 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 XMPP Reference 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 XMPP Reference Application here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article CC3100 XMPP Reference Application here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article CC3100 XMPP Reference Application here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3100 XMPP Reference Application here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3100 XMPP Reference 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 XMPP Reference Application here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article CC3100 XMPP Reference 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