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.

CC3100MOD: Error -340 when connecting to server infrastracture

Part Number: CC3100MOD
Other Parts Discussed in Thread: CC3200, UNIFLASH, CC3100

Hello,

we are trying to make a connection between CC3100MOD and our server infrastructure (builded on AWS), but we are getting an -340 error. We are using IAR as development tool and the example HTTP Client with TLS option from the documentation of the CC3100MOD. We bought the SSL certificate on AlphaSSL and we integrated it on AWS and a DNS CNAME redirect from our domain and AWS.
When we started to get this error I thought it could be certificate/server related, even through I could navigate the domain through the browser without problems (the certificate is valid and there are no errors).
So I started testing through openssl the connection passing the same parameters and the same certificate we are using into the CC3100MOD and we are able to established the connection. So it might be something wrong with the configuration of the board.
We have been using any different kind of cipher even though we thing the right one should be SL_SEC_MASK_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 because while testing the connection through command line I know the cipher is ECDHE-RSA-AES128-GCM-SHA256.

  • Hi,

    Typically, getting error -340 means that there was some misconfiguration in your code when setting up the HTTPclient connection, but there a couple things to check to see if this is the case.

    First, are you able to connect to your server without using the HTTP library? If you take the ssl example and adapt it to point to your server, are you able to successfully connect without running into the -340 error?

    Next, could you please collect NWP logs from the CC3100mod? This will allow me to see the flow of the connection and what the underlying cause of the issue might be on the NWP side. Please follow the instructions here: http://processors.wiki.ti.com/index.php/CC3100_%26_CC3200_Capture_NWP_Logs

    Regards,

    Michael 

  • Hello Michael,

    thanks for replying.

    About the first suggestion, connecting without using the HTTP library, actually we were testing also the connection to google.com as it was showed on your example, using a certificate from https://pki.goog/ (with the GS Root R2 - RSA 2048, SHA-1 certificate) and the connection was working. We also tried with some other certificates from the same google site but it wasn't working, but I guess because the URL from Google wasn't reachable. But in general, since with the certificate I described above it was working, probably it's not related with HTTP library. What do you think?

    Related to NWP logs we are working on it, we are solving some issues while connecting the board.

    Thank you

  • Hi,

    Could you run the same connection test without the HTTP client library, but to the AWS server you are using? In order to determine that the HTTP library is not related to this problem, we will need to see if a basic TLS connection to your AWS server results in the same behavior.

    If it results in the same behavior then there may be an issue with the NWP in how the TLS handshake is done between your server and the CC3220. Thus the need for NWP logs.

    If not using the HTTP client results in a successful connection, then taking a closer look at the HTTP client configuration and implementation would make sense.

    Regards,

    Michael

  • Hello Michael,

    I have some updates:

    - we tried to connect to our AWS server without the HTTP library as you suggested. We got the error -92

    - related to NWP log, we tried to follow the instruction from the link you sent us but that's specific for the CC3200 model. How can we adapt the instruction you sent or how can we get the instructions for the CC3100MOD (our model)?

    Thank you

  • Hi,

    Where are you getting error -92 from? Is it from a connect() call or is it from an setSockOpt() call? 

    For the NWP logs, on the CC3100mod the UART TX debug output signal should be always on. You do not need to run any pinmux code to mux out the NWP logs. The logs can be captured on the TEST_62 signal output of the CC3100mod, which is on pin52.

    Regards,

    Michael

  • Hello Michael,

    related to the error -92, we are getting it at the line: 

    retVal = sl_SetSockOpt(g_SockID, SL_SOL_SOCKET, SO_SECURE_DOMAIN_NAME_VERIFICATION, g_Google, pal_Strlen(g_Google))

    where g_Google is not Google related, just we didn't change the var declaration from the example, but we are using our Amazon Server Infrastructure.

    Related to the logs, we are gonna have a look soon

    Thanks

  • Hello Michael,

    following the previous message I sent you few hours ago, related to the logs, we got something and I am gonna attach here both files

    Please let me know if anything I can help you with and also if the info related to the error -92 I sent you in the previous message can help somehow.

    Thanks

    
    � -�-1{�@	��	��
    �
    �	-�-1{�@
    ��F�V
    �
    �*��
    �
    �	�
    �*� ��RC��mH.*�33,@'�^�
    �*� D�[���E#
    �	��
    2
    ��
    �
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!-���`-���`@-���`8
    �
    �
    �-�	��`�
    ��z2	�
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!
    �
    �
    �-���`�	0�00-�	��`�
    �*�� *�� 
    �
    �
    ��]A�
    �A��A��
    �
    �
    �
    �
    �
    �
    �
    
    �	-�-1{�@
    �
    	
    �
    '�/sys/date_time.cfg
    �
    >(
    �
    �
    '�/tmp/table.arp
    �l�%��
    �
    '�/tmp/phy.cal
    �]��
    �
    �!
    '�/sys/pmcfg.ini
    �I�-�I�
    �
    -�I�
    -�	I�
    �
    
    
    a"<b
    �
    �
    
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!
    �
    -���`-���`@-���`8
    �
    �
    �
    �
    �-���`0-�	��`�
    ���*�
    �!
    '�/sys/ipcfg.ini
    ���-���
    �
    -����-�	��
    �
    �
    �!
    '�/sys/mode.cfg
    ���I-���I
    �
    -���I-���I<-�	��I
    �
    P
    Q
    �
    �7�`� �t7�`�l 97�`إ �7�`�� T7�`�� �7�`dI �7�`,i 7w@� 0w
    2�`��	��
    �
    � 
    f�	�
    g��	�
    �!
    '�/sys/devname.cfg
    ��c
    ��	
    
    �
    ������.�c�	��
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!
    �
    
    �
    �
    �
    �
    �
    �
    �!
    '�/tmp/phy.cal
    �]��
    ��
    ���
    �
    '�/sys/wlangen.ini
    ��j�N�PPPPPP P@P�PS�
    ���
    
    ��.1
    �!
    '�/sys/macadd.bin
    ��q
    
    ��5V@2$�^�'	
    ��-���`D
    �-���`H��-���`P�
    �-���`0����-���`4�P-���`<P��.�P�-���`��-���`�
    �-�	��`�
    ���.���
    �
    ���.������
    � ��.9
    �
    �
    ��	�
    �
    '�/sys/rxfltr.ini
    �����N
    �
    '�/sys/rxfltr.ini
    �����N�A
    �
    '�/sys/rxfltr.ini
    �����N�A�A"�A�A�A�A�A�B�B
    �!
    '�/sys/httpsrv.cfg
    �F�
    ��	�
    �
    P
    �!
    '�/sys/macadd.bin
    ��q
    
    ��5V@2$�^�'
    �!
    '�/sys/mdns.cfg
    �[\-�[\
    �
    -�[\-�[\�-�	[\�
    �B�B��B��A�A�A�B��A�A��
    �!
    '�/sys/macadd.bin
    ��q
    
    ��5V@2$�^�'�P�:.
    �
    �!
    '�/sys/p2p.cfg
    �o�
    ��.7.
    �.CP�.4".`
    ���
    h�!@
    '�/tmp/phy.cal
    �]��
    �
    
    	�T
    �
    G-�]��
    �
    -�]���-�	]���
    ����	.mQR==�(�
    mmmmm�	-
    �!
    '�/sys/date_time.cfg
    �
    >(
    ��3�.'@.'@m...m.:.m.'..?4....*, de*, ��*, ,-.s*, �
    0[��.q
    s6)	
    0
    �!)W$Vx�e\B
    '�/sys/stacfg.ini.0
    
    �TU1
    7.2�-�TU
    �
    -�TUh3-�	TU
    �
    h
    K
    J#
    �
    �!
    '�/sys/pref.net
    ��-��
    �
    -��p-�	��
    pR�S
    {
    4
    ")	f�
    6f4)	f
     
    
    **"*"71�����<�Z`8	\�
    ;	
    v"
    w"
    x"
    y"
    �"
    �"
    �"
    c"
    �!
    �!
    �!�!�W�A��A�
    
    '(#B!72�W)	��
    J#
    �
    �!
    '�/sys/stacfg.ini
    �TU-�TU
    �
    -�TUh-�	TU
    �
    hS�S6�)	�)	���!
    �
    �
    '�/sys/pref.net
    ��-��
    �
    -��p-�	��
    p
    'S�S6�)	�)	��s{6�)	�71������t-?����)	2�e$e$�!
    '�/sys/ipcfg.ini
    ���-���
    �
    -����-�	��
    �
    �62)	2)	��
    C6�)	�)	���!
    '�/sys/mode.cfg
    ���I-���I
    �
    -���I-���I<-�	��I
    �
    P.=m6�)	�)	��
    a"<b�!
    '�/sys/pmcfg.ini
    �I�-�)	���!
    '�/sys/�
    � -�-1{�@	��	��
    �
    
    �
    �	-�-1{�@
    ���
    �
    �*��
    �
    �	�
    �*� ��RC��mH.*�33,@'�^�
    �*� D�[���E#
    �	��
    �
    ��
    ~
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!-���`-���`@-���`8
    �
    �
    �-�	��`�
    ���	�
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!
    �
    �
    �-���`�	0�00-�	��`�
    �*�� *�� 
    �
    �
    ���-�
    
    .�V.��
    �
    �
    �
    �
    �
    �
    �
    
    �	-�-1{�@
    �
    	
    �!
    '�/sys/pmcfg.ini
    �I�-�I�
    �
    -�I�
    -�	I�
    �
    
    
    a"<b���
    �
    
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!
    �
    -���`-���`@-���`8
    �
    �
    �
    �
    �-���`0-�	��`�
    ��*�
    �!
    '�/sys/ipcfg.ini
    ���-���
    �
    -����-�	��
    �
    �
    �!
    '�/sys/mode.cfg
    ���I-���I
    �
    -���I-���I<-�	��I
    �
    P
    Q
    �
    �7�`� �t7�`�l 97�`إ �7�`�� T7�`�� �7�`dI �7�`,i 7w@� 0w
    2�`��	�
    �
    � 
    f�	
    g��	
    �!
    '�/sys/devname.cfg
    ��c
    ��	
    
    
    �����.�c�	�
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!
    �
    
    �
    �
    �
    �
    �
    �
    �!
    '�/tmp/phy.cal
    �]��-�]��
    �
    
    ���
    �
    '�/sys/wlangen.ini
    ��j�N�PPPPPP P@P�PS�
     ��
    
     �.1
    �!
    '�/sys/macadd.bin
    ��q
    
    ��5V@2$�^�'	
    !�-���`D
    �-���`H��-���`P�
    �-���`0����-���`4�P-���`<P��.�P�-���`��-���`�
    �-�	��`�
    �-�]����.���-�]����-�]���-�	]���
    �
    ���.�������
    � �-.9
    -
    -
    ��	-
    �
    '�/sys/rxfltr.ini
    �����N
    �
    '�/sys/rxfltr.ini
    �����N�A
    �
    '�/sys/rxfltr.ini
    �����N�A�A"�A�A�A�A�A�B�B
    �!
    '�/sys/httpsrv.cfg
    �F�
    ��	�
    �
    P
    �!
    '�/sys/macadd.bin
    ��q
    
    ��5V@2$�^�'
    �!
    '�/sys/mdns.cfg
    �[\-�[\
    �
    -�[\-�[\�-�	[\�
    �B�B��B��A�A�A�B��A�A��
    �!
    '�/sys/macadd.bin
    ��q
    
    ��5V@2$�^�'�P�:.
    1
    �!
    '�/sys/p2p.cfg
    �o�
    ��.7.
    2.CP�.4".`
    �3�
    g�	.mQR==�(�
    mmmmm�	5
    �!
    '�/sys/date_time.cfg
    �
    >(
    ��3�.'@.'@m...m.:.m.'..?4....*, de$�.s*, ��$�*, ,-�*, �
    7[��.q
    s6)	
    8)W$Vx�e\B
    �!
    '�/sys/stacfg.ini.0
    
    �TU1
    7.2�-�TU
    �
    -�TUh-�	TU3
    �
    h
    K
    J#
    �
    �!
    '�/sys/pref.net
    ��-��
    �
    -��p-�	��
    pR�S
    {
    <
    "
     
    
    **"*"71�.���<�Z`8	\�;	
    v"
    w"
    x"
    y"
    �"
    �"
    �"
    c"
    �!
    �!
    �!�!�W�A��&�
    
    '(#B!72�W)	��
    NBF%NB"5��x������������5����������<����5������2��������
    �"link
    �
    CIOx�	�'�`*
    3
    "�\
    T��m6�)	�.���.$Ciscr
    )"++./����0#Cisc>�=.$Ciscr
    )"++./����0#Cisc>�=.$Ciscr
    )"++./����0#Cisc>�=.$Ciscr
    )"++./����0#Cisc>�=.$Ciscr
    )"++./����0#Cisc>�=.$Ciscr
    )"++./����0#Cisc>�=.$Airtr
    )"++./����0#Airt>�=.$Airtr
    )"++./����0#Airt>�=.$linkr
    )"++./����0#link>�=.$linkm
    H
    
    �"link
    �.$linkr
    )"++./����0#link>�=.$ATOSr
    )"++./����0#ATOS>�=.$ATOSr
    )"++./����0#ATOS>�=r&&
    )"00-D�
    �'	
    E-Dy
    �'	4
    C
    "�
    >�=�.� m
    8#link
    �L$linkM4
    �
    "�
    m9'�`*qmmmmm
     �
    mm
    �
    ��	��>�= $�.��mr)*]"<*�"
    Z"m#�
    Tr
    )",,>�= �	.$link���.!."$��.#���..?"�r""
    )"7>�=...=.=).0 �!r!!>�=r  >�=r>�=,r
    )">�=m9'�`*mmm*, egH�*, -.H�mm'�`*
     #y-�(m y*?"�r""
    )"
     #c-�(m c>�=	m'�`*m�*>�=m5	�	�"�"����link��6�L)	�
    �L$linkM
    �!
    '�/tmp/table.arp
    �l�%
    ���b'�`*	*, l�*, ghl�*, .4l�*, l�*, hil�*, 4.l�r.	*]"<*�"
    Z"dm!.�)��-G$linkH$sysI$J$K��.D..-
    N*
    
    *]"<*�"
    Z"dm.$link.2�@���f��2�@���.$link
    
    	
    N*
    2�@���f��
    (
    
    N*
    
    
    
    	*]"<*�"
    Z"dm
    (
    
    (
    
    *�$f��������
    �$��f*w�6%f)	%.3
    mm"B�.2�
    
    	�
    
    	)	 �-T! �!test.ila6 )	 *{
    	*|� 
    	6 )	 )	���!
    '�/sys/date_time.cfg
    �
    >(
    �
    	�^
    �_-�
    >(
    �
    -�
    >(,-�
    >(,-�	
    >(
    �
    4�
    6�)	�)	��d� 6P)	)	��6)	)	��6)	)	��6)	)	�6)	.��
    	0@$�`,�,�
    	���
    �
    �!-����
    �
    -�����-�	����
    ��0@��(,����(�
    �T,"���� 	�6�)	)	�6)	.��0@71��	x�<�Z`8	\�;	
    v""
    w"HM�K
    x"K5)
    y"4
    �"��"/(�"�c"z
    �!]]
    �!%%
    �!&[�!&�[W"�A
    �K��1
    �
    
    '(#B!72��
    	
    	
    
    � -�-1{�@	��	��
    �
    �	-�-1{�@
    ��F�V
    �
    �*��
    �
    �	�
    �*� ��RC��mH.*�33,@'�^�
    �*� D�[���E#
    �	��
    2
    ��
    �
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!-���`-���`@-���`8
    �
    �
    �-�	��`�
    ��z2	�
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!
    �
    �
    �-���`�	0�00-�	��`�
    �*�� *�� 
    �
    �
    ��]A�
    �A��A��
    �
    �
    �
    �
    �
    �
    �
    
    �	-�-1{�@
    �
    	
    �
    '�/sys/date_time.cfg
    �
    >(
    �
    �
    '�/tmp/table.arp
    �l�%��
    �
    '�/tmp/phy.cal
    �]��
    �
    �!
    '�/sys/pmcfg.ini
    �I�-�I�
    �
    -�I�
    -�	I�
    �
    
    
    a"<b
    �
    �
    
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!
    �
    -���`-���`@-���`8
    �
    �
    �
    �
    �-���`0-�	��`�
    ���*�
    �!
    '�/sys/ipcfg.ini
    ���-���
    �
    -����-�	��
    �
    �
    �!
    '�/sys/mode.cfg
    ���I-���I
    �
    -���I-���I<-�	��I
    �
    P
    Q
    �
    �7�`� �t7�`�l 97�`إ �7�`�� T7�`�� �7�`dI �7�`,i 7w@� 0w
    2�`��	��
    �
    � 
    f�	�
    g��	�
    �!
    '�/sys/devname.cfg
    ��c
    ��	
    
    �
    ������.�c�	��
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!
    �
    
    �
    �
    �
    �
    �
    �
    �!
    '�/tmp/phy.cal
    �]��
    ��
    ���
    �
    '�/sys/wlangen.ini
    ��j�N�PPPPPP P@P�PS�
    ���
    
    ��.1
    �!
    '�/sys/macadd.bin
    ��q
    
    ��5V@2$�^�'	
    ��-���`D
    �-���`H��-���`P�
    �-���`0����-���`4�P-���`<P��.�P�-���`��-���`�
    �-�	��`�
    ���.���
    �
    ���.������
    � ��.9
    �
    �
    ��	�
    �
    '�/sys/rxfltr.ini
    �����N
    �
    '�/sys/rxfltr.ini
    �����N�A
    �
    '�/sys/rxfltr.ini
    �����N�A�A"�A�A�A�A�A�B�B
    �!
    '�/sys/httpsrv.cfg
    �F�
    ��	�
    �
    P
    �!
    '�/sys/macadd.bin
    ��q
    
    ��5V@2$�^�'
    �!
    '�/sys/mdns.cfg
    �[\-�[\
    �
    -�[\-�[\�-�	[\�
    �B�B��B��A�A�A�B��A�A��
    �!
    '�/sys/macadd.bin
    ��q
    
    ��5V@2$�^�'�P�:.
    �
    �!
    '�/sys/p2p.cfg
    �o�
    ��.7.
    �.CP�.4".`
    ���
    h�!@
    '�/tmp/phy.cal
    �]��
    �
    
    	�T
    �
    G-�]��
    �
    -�]���-�	]���
    ����	.mQR==�(�
    mmmmm�	,
    �!
    '�/sys/date_time.cfg
    �
    >(
    ��3�.'@.'@m...m.:.m.'..?4....*, de*, ��*, ,-.s*, �
    .[��.q
    s6)	
    /
    �!)W$Vx�e\B
    '�/sys/stacfg.ini.0
    
    �TU1
    7.2�-�TU
    �
    -�TUh3-�	TU
    �
    h
    K
    J#
    �
    �!
    '�/sys/pref.net
    ��-��
    �
    -��p-�	��
    pR�S
    {
    3
    ")	f�
    6f4)	f
     
    
    **"*"71�����<�Z`8	\�
    ;	
    v"
    w"
    x"
    y"
    �"
    �"
    �"
    c"
    �!
    �!
    �!�!�W�A��A�
    
    '(#B!72�W)	��
    J#
    �
    �!
    '�/sys/stacfg.ini
    �TU-�TU
    �
    -�TUh-�	TU
    �
    hS�S6�)	�)	���!
    �
    �
    '�/sys/pref.net
    ��-��
    �
    -��p-�	��
    p
    'S�S6�)	�)	��s{6�)	�71������t-?����)	2�e$e$�!
    '�/sys/ipcfg.ini
    ���-���
    �
    -����-�	��
    �
    �62)	2)	��
    C6�)	�)	���!
    '�/sys/mode.cfg
    ���I-���I
    �
    -���I-���I<-�	��I
    �
    P.=m6�)	�)	��
    a"<b�!
    '�/sys/pm)	���!
    '�/sys/m�
    � -�-1{�@	��	��
    �
    
    �
    �	-�-1{�@
    ���
    �
    �*��
    �
    �	�
    �*� ��RC��mH.*�33,@'�^�
    �*� D�[���E#
    �	��
    �
    ��
    ~
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!-���`-���`@-���`8
    �
    �
    �-�	��`�
    ���	�
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!
    �
    �
    �-���`�	0�00-�	��`�
    �*�� *�� 
    �
    �
    ���-�
    .�W.��
    �
    �
    �
    �
    �
    �
    �
    
    �	-�-1{�@
    �
    	
    �!
    '�/sys/pmcfg.ini
    �I�-�I�
    �
    -�I�
    -�	I�
    �
    
    
    a"<b�J�
    �
    
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!
    �
    -���`-���`@-���`8
    �
    �
    �
    �
    �-���`0-�	��`�
    ��*�
    �!
    '�/sys/ipcfg.ini
    ���-���
    �
    -����-�	��
    �
    �
    �!
    '�/sys/mode.cfg
    ���I-���I
    �
    -���I-���I<-�	��I
    �
    P
    Q
    �
    �7�`� �t7�`�l 97�`إ �7�`�� T7�`�� �7�`dI �7�`,i 7w@� 0w
    2�`��	�
    �
    � 
    f�	
    g��	
    �!
    '�/sys/devname.cfg
    ��c
    ��	
    
    
    �����.�c�	�
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!
    �
    
    �
    �
    �
    �
    �
    �
    �!
    '�/tmp/phy.cal
    �]��-�]��
    �
    
    ���
    �
    '�/sys/wlangen.ini
    ��j�N�PPPPPP P@P�PS�
     ��
    
     �.1
    �!
    '�/sys/macadd.bin
    ��q
    
    ��5V@2$�^�'	
    !�-���`D
    �-���`H��-���`P�
    �-���`0����-���`4�P-���`<P��.�P�-���`��-���`�
    �-�	��`�
    �-�]����.���-�]����-�]���-�	]���
    �
    ���.�������
    � �-.9
    -
    -
    ��	-
    �
    '�/sys/rxfltr.ini
    �����N
    �
    '�/sys/rxfltr.ini
    �����N�A
    �
    '�/sys/rxfltr.ini
    �����N�A�A"�A�A�A�A�A�B�B
    �!
    '�/sys/httpsrv.cfg
    �F�
    ��	�
    �
    P
    �!
    '�/sys/macadd.bin
    ��q
    
    ��5V@2$�^�'
    �!
    '�/sys/mdns.cfg
    �[\-�[\
    �
    -�[\-�[\�-�	[\�
    �B�B��B��A�A�A�B��A�A��
    �!
    '�/sys/macadd.bin
    ��q
    
    ��5V@2$�^�'�P�:.
    1
    �!
    '�/sys/p2p.cfg
    �o�
    ��.7.
    2.CP�.4".`
    �3�
    g�	.mQR==�(�
    mmmmm�	5
    �!
    '�/sys/date_time.cfg
    �
    >(
    ��3�.'@.'@m...m.:.m.'..?4....*, de$�.s*, ��$�*, ,-�*, �
    7[��.q
    s6)	
    8)W$Vx�e\B
    �!
    '�/sys/stacfg.ini.0
    
    �TU1
    7.2�-�TU
    �
    -�TUh-�	TU3
    �
    h
    K
    J#
    �
    �!
    '�/sys/pref.net
    ��-��
    �
    -��p-�	��
    pR�S
    {
    <
    "
     
    
    **"*"71�.���<�Z`8	\�;	
    v"
    w"
    x"
    y"
    �"
    �"
    �"
    c"
    �!
    �!
    �!�!�W�A��&�
    
    '(#B!72�W)	��
    NBF%NB"5��x������������5����������<����5������2��������
    �"link
    �
    CIOx�	�'�`*
    3
    "�\
    T��m6�)	�.���.$Ciscr
    )"++./����0#Cisc>�=.$Ciscr
    )"++./����0#Cisc>�=.$Ciscr
    )"++./����0#Cisc>�=.$Ciscr
    )"++./����0#Cisc>�=.$Ciscr
    )"++./����0#Cisc>�=.$Ciscr
    )"++./����0#Cisc>�=.$Airtr
    )"++./����0#Airt>�=.$Airtr
    )"++./����0#Airt>�=.$Airtr
    )"++./����0#Airt>�=.$linkr
    )"++./����0#link>�=.$linkm
    H
    
    �"link
    �.$linkr
    )"++./����0#link>�=.$ATOSr
    )"++./����0#ATOS>�=.$ATOSr
    )"++./����0#ATOS>�=r&&
    )"00-D�
    �'	
    E-Dy
    �'	4
    C
    "�
    >�=�.� m
    8#link
    �L$linkM4
    �
    "�
    m9'�`*qmmmmm
     �
    mm
    �
    ��	��>�= $�.��mr)*]"<*�"
    Z"m#
    �
    Tr
    )",,>�= �	���.!."$��.#���...?"�r""
    )"7>�=..=.=).0 �!r!!>�=r  >�=r>�=,r
    )">�=m9'�`*mmm*, egH�*, -.H�mm'�`*
     #y-�(m y*?"�r""
    )"
     #c-�(m c>�=	m'�`*m�*>�=m5	�	�"�"����link��6�L)	�
    �L$linkM
    �!
    '�/tmp/table.arp
    �l�%
    ���b'�`*	*, l�*, ghl�*, .4l�*, l�*, hil�*, 4.l�r.	*]"<*�"
    Z"dm!.
    N*
    �)��-G$linkH$sysI$J$K��.D
    *]"<*�"
    Z"dm..-.$link.2�@���f��2�@���.$link
    
    	
    N*
    2�@���f��
    (
    
    N*
    
    
    
    	
    (
    
    (
    
    *�$f��������
    �$��f*w�6%f)	%*]"<*�"
    Z"dm.3
    m.2�m"B�)	���!
    '�/sys/date_time.cfg
    �
    >(
    �
    	�^
    �_-�
    >(
    �
    -�
    >(,-�
    >(,-�	
    >(
    �
    4�
    6�)	�)	 �-T! �test.ila6 )	 *{*{
    
    	*|� 6 )	 
    	)	��d� 6P)	)	��6)	)	��6)	)	��6)	�
    
    	
    	
    	71�����<�Z`8	\�;	
    v"
    w";@eI
    x"?/
    y"/
    �"�"��"b
    c"�
    �!^^
    �!$#
    �!&z�!&�zW"�A
    �L��1
    �
    
    '(#B!72��)	���\6�)	71�����<�Z`8	\�;	
    v"
    w"
    x"
    y"
    �"�
    �"�
    �"c"�
    �!`c
    �!0&
    �!&z�!&�zW"�AA
    �d��1
    �
    
    '(#B!72��

  • Hi,

    For the first HTTP log, it seems like you are getting an error at the TLS handshake, right after the client hello. You should double-check the HTTPCli_SecureParams you are passing to HTTPCli_setSecureParams and ensuring that you have the correct method.secureMethod and mask.secureMask set for the security parameters you are passing to the HTTP client.

    For the SSL log, it seems like you indeed get an error from the NWP at sl_setSockOpt(). However, this is probably because the NWP servicepack on your device is either missing or very out-of-date, judging from the log output that I see. Please download the latest servicepack from http://www.ti.com/tool/download/CC3100SDK and then flash it to your CC3100mod with Uniflash.

    Regards,

    Michael

  • Hello Michael,

    we were checking the method.secureMethod and mask.secureMask as you were suggesting and we found out that for the method, we are using:

    #define SL_SO_SEC_METHOD_TLSV1_2

    and it should be fine since from the other side we have:

    Protocol: SSLv3 TLSv1.2

    Related to the mask we might found the issue. We are using:

    #define SL_SEC_MASK_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256

    but from the other side we have:

    Cipher: ECDHE-RSA-AES128-GCM-SHA256

    The issue can be AES-CBC from the mask vs AES-GCM from the server side. We were also checking that updating the SDK to v. 1.3.0 (the latest) doesn't change anything related to this part. 

    So we need the support of AES-GCM somehow. For example the v2 of the SDK for the CC3200 it has the support for AES-GCM. Is there anything that can help with our model CC3100MOD?

    Thanks

  • Hello Michael, 

    following the message I sent you few hours ago, I might found the real issue. As explained into this conversation https://e2e.ti.com/support/wireless-connectivity/wifi/f/968/t/465892?SNI-Support where also other people are using AWS like us and also them are getting -340, the problem here is SNI. This is a default setting from AWS and it's crucial. I don't really get why it isn't supported from the TI modules. Is there a way or any update or any suggestion you have related to it? We need somehow to manage the SNI support

    Thanks

  • Hi,

    SNI is supported on the CC3100/CC3200 as of servicepack version 1.0.1.11-2.10.0.0, released in 2017. From the logs provided in previously in this thread, it seems like your CC3100mod is not running the most up-to-date servicepack. In the SDK download page: http://www.ti.com/tool/download/CC3100SDK, there is a separate installer for the servicepack that you will need to download and install. Then, you will need to use Unflash version 3.x to flash the servicepack. The manual for Uniflash v3.x can be found here: http://processors.wiki.ti.com/index.php/CC3100_%26_CC3200_UniFlash

    Please update the servicepack on your device and try performing your TLS connection again.

    Regards,
    Michael

  • Hi,

    I assume that you have resolved your issue since I have not heard back from you. If not, feel free to post a response to this thread, or open a new thread regarding this issue.

    Regards,
    Michael