This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3100: xmpp client: can't connect to server

Part Number: CC3100
Other Parts Discussed in Thread: CC3200
Hello,
I just starting with the msp430f5529lp and the cc3100. My issue is that when I execute the XMPP client example it can't connect to the XMPP server.
Here are my server parameters:
#define XMPP_USER       "cc3100"
#define XMPP_PWD        "put4jaw"
#define XMPP_DOMAIN     "jabbim.com"
#define XMPP_RESOURCE   "work"

// ip =  88.86.113.70
#define XMPP_IP_ADDR 0x58567146
#define XMPP_DST_PORT   5222

Any help will be greatly appreciated

Thanks,

Javier

  • Hi Javier,

    1) What error are you seeing when the connection fails? Please try printing the error code to your terminal.
    2) Have you successfully connected to an AP with an internet connection?
    3) Does this example work on your setup with the default settings?

    Best regards,
    Sarah

  • Thanks for the response.
    Yes, I can connect to an AP:
     
    XMPP client application - Version 1.2.0
    *******************************************************************************
     Device started as STATION
     Connection established w/ AP and IP is acquired
     Establishing connection with the XMPP server
     Error during establishing connection with the XMPP server
    It looks like it fails here (xmpp.c):
     /* connect to the peer device */
        Status = sl_Connect(g_SockID, ( SlSockAddr_t *)&Addr, AddrSize);
        if( (Status < 0 ) && (SL_ESECSNOVERIFY != Status))
        {
            sl_Close(g_SockID);
            ASSERT_ON_ERROR(Status);
        }
    
    
    

  • Hi Javier,

    Does connecting to the default XMPP server settings from the example work?

    Also, what is the value of Status? Print this to your terminal or view it in the debugger. This will be an error code that you can look up in simplelink/include/socket.h.

    Best regards,
    Sarah
  • I can't connect with the default settings (gmail)
    and I'm getting -370 "SL_ESEC_PROTOCOL_VERSION" for Status.
  • Hi Javier,

    That error code usually means you are using a different secure socket protocol than the server expects. For the Gmail server, try updating the following parameters in XmppClient:

    XmppOption.SecurityMethod = SL_SO_SEC_METHOD_TLSV1_2;
    XmppOption.SecurityCypher = SL_SEC_MASK_TLS_RSA_WITH_AES_256_CBC_SHA;

    You may have to check with your other server for which encryption method it expects. The full list of defines for what we support can be found in simplelink/include/socket.h or in the Secured Socket section of the CC3100/CC3200 User's Guide: http://www.ti.com/lit/swru368

    Best regards,

    Sarah

  • It works, thank you very much Sarah!