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.

RTOS/CC3100: https on CC3100

Part Number: CC3100


Tool/software: TI-RTOS

Hi,
I am using CC3100 to enble wifi with my tm4c1294xl  launchpad with ti-rtos v2.16. As ti provided the resource, I import the project for https_get for tm4c1294xl over CC3100 and make the environment suitable so its getting the https resposes for both get and post call.
I want to call the same  "https_get" and "https_post" to  my local server, So I replaced the "ca" certificate with my sever certificate, host, port and url also. The socket and  TLS is creating successfully but the "connection is getting fail". But the same phenomenon is working fine with Emac with no issue, why this is not  happening in CC3100 wifi.
Can I know why the connection is getting fail, is need to follow any specific structure for Wifi call, most important any suggestions for this issue? 

Regards,

Ragu DS

  • Hi Raghu,

    There are some examples in the CC3100 SDK for http client and server for MSP430 which you can port to your platform. HTTP libraries from other sources will not work with the CC3100 automatically.

    Please note also, the server certificate is not what is needed, its to ROOT CA for that certificate (highest level).

    -Aaron
  • Hi Made,
    Thanks for reply, I have the root CA only.
  • Hi Made,

    I find one ssl in the example for CC3100SDK,  and go through it. In that before establishing the connection with server some process is going on to configure the secure socket, ie., by calling  "sl_SetSockOpt()". In that the last configure

       sl_SetSockOpt(g_SockID, SL_SOL_SOCKET, SO_SECURE_DOMAIN_NAME_VERIFICATION, SlhostVal, strlen(SlhostVal));

    SO_SECURE_DOMAIN_NAME_VERIFICATION, this eliment is not found anywhere, what value can I give to this.
    Leaving this the main problem is I was getting the errors at the runtime while the above line is called,

    DMA error code: 1
    DMA error!!

    And one more thing I have the service pack also and I want to use with the Host Programming, how can I use these service package.

  • Hi Ragu DS,

    SO_SECURE_DOMAIN_NAME_VERIFICATION is defined in socket.h. It is used to specify the option that is being set. The value of "SlhostVal" that is being used when setting the option should be a string of the domain name that you are verifying. For example, in the SSL demo it is "www.google.com".

    Comment out the following in the spi driver to try to isolate any errors caused by DMA -

    #define ENABLE_DMA

    There is an add-on to the CC3100 SDK that adds a host_programming example that demonstrates how to use the host programming method to update the service pack.

    Best Regards,

    Ben M