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.

SIMPLELINK-CC32XX-SDK: sl_Close() and subsequent processing are unstable.

Part Number: SIMPLELINK-CC32XX-SDK
Other Parts Discussed in Thread: CC3135MOD, CC3120

sl_Close() and subsequent processing are unstable.

I'm attempting to establish WiFi communication using a CC3135MOD in STA mode with a third-party SoC. Communication between the SoC and NWP is via SPI.
After calling sl_NetAppDnsGetHostByName() to resolve the IP address for HTTP communication,
the following socket processing sequence occurs:


sl_Socket() → sl_Connect() → sl_Send() → sl_Recv() → sl_Close().


When sl_Close() stops midway, SimpleLinkFatalErrorEventHandler() is called.
Also, if sl_Close() continues to the end without stopping, calling sl_NetAppDnsGetHostByName() to initiate a new HTTP communication stops midway. In this case, SimpleLinkFatalErrorEventHandler() is not called.

Could you please tell me how to resolve this issue?

  • Hi,

    Can you share what you mean by sl_Close() stops midway?

    and what SimpleLinkFatalErrorEventHandler() are you getting? I mean what type/id?

    Shlomi

  • Dear Shlomi:

    When sl_Close() stops midway, it means that 0x9402 is written to the NWP, 0x1402 is returned from the NWP, and then 0x1010 is not returned. SimpleLinkFatalErrorEventHandler() is called approximately one minute after 0x1402 is returned.
    In this case, SimpleLinkFatalErrorEventHandler() has Id = 5, Code = 0x1010.

    Also, if sl_Close() does not stop midway, then 0x9C20 is written to the NWP in the next HTTP communication using sl_NetAppDnsGetHostByName(), and 0x1C20 is returned from the NWP, but 0x1820 is not returned.
    In this case, SimpleLinkFatalErrorEventHandler() is not called.

  • Hi,

    If you do not get the socket async event and fail on command timeout, it probably means that either the NWP asserted (which I believe is not the case since you would get SL_DEVICE_EVENT_FATAL_DEVICE_ABORT instead), or the synchronization between the host and CC3120 is lost.

    Just to make sure NWP is still alive you can pull NWP logs (do you have this option? you can find many posts explaining how to do it in this forum). 

    As for synchronization issue, best would be to have a look at SPI communication with a logic (SALEAE is a good tool).

    Regards,

    Shlomi

  • Dear Shlomi:

    I got the logs.

    How can I send it?

    Can I attach the logs file to this comversation?

  • sure, you can attach the logs.

  • Dear Shlomi:

    I've attached the logs.

    There are two logs.

    First, I'll attach the log when sl_Close() failed.

    � -����{�(�(�-	9
    
    �
    �	-����{�( LS
    �
    �
    �
    ��#
    �
    '�/sys/fips.cfg
    ��:��Ve(�Ze(-
    �!
    '�/sys/certstore.lst
    ��J
    �
    
    �
    -��J-��J�-�	�J��
    ��T)
    �*��1
    �
    �	�
    �*� ��jI�M�
    �z*�""c�ΊI
    �*� �����1��
    �	��
    �)
    ��
    �)
    �
    �
    '�/sys/servicepack.ucf
    ���`
    �
     Hx B
    �!
    '�/sys/ucf_signatures.bin
    ��Ql-��Ql-��Ql4-��Ql4T-�	�Ql��
    �
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!-���`-���`x-���`p
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    ��q1	�
    �!
    '�/sys/mode.cfg
    ���I-���I-���I4-���I4�-�	��I
    ��-���`�C�4��4�4
    �*�@ *�Q x4*�x� 
    �
    �
    ��IO�
    MO�RO-�	��`�Hx
    ��
    ib)��`aaA	9	�)����{�(	�!
    '�/sys/certstore.lst	��J	�
    	�
    )��J	�)��J�)�	�J��	�
    '�/sys/fips.cfg	��:��We(�[e(`aaA			�
    '�/tmp/crashminidump.bin	��+�1��1��1��	�!
    '�/sys/mdmpcfg.ini	��I��ye(	�!
    '�/sys/pmcfg.ini	�I��ye(	\	a"<b	�	�
    	�	�
    '�/sys/servicepack.ucf	���`	�
     Hx B	�!
    '�/sys/ucf_signatures.bin	��Ql)��Ql	�)��Ql4)��Ql4T)�	�Ql��	�	�!
    '�/sys/servicepack.ucf	���`	�
    )���`!	�)���`)���`x)���`p	�	�	�	�	�	�	�	�)���`�	�
    )�1	�!
    '�/sys/ipcfg.ini	���)���	�)���4)���4�)�	���$	�!
    '�/sys/mode.cfg	���I)���I	�)���I4)���I4�)�	��I	��	Q
    	�	�1�`  �1�` 	 @M1�``V H1�`�k l1�`{ ��1�`� � 1�`T' `1w@  �)	1�`�	�	
    	�	� 	f	�	
    	g	�!
    '�/sys/fips.cfg	��:��ye(/-	�	�		�!
    '�/sys/devname.cfg	��c)��c	�)��c4)��c4b)�	�c	��			
    	
    	�	�	�	�	�)�G�	�			�	�	�	�E
    �5	�!
    '�/sys/phypwr.cal	�e�A�ye(	8	�	�	�	P	P	P	P	P	P 	P@	P�PS�	
    	�	�		
    	�)1	�!
    '�/sys/macadd.bin	��q
    �ye(	5	Vc	2$I���		
    	�	�!
    '�/sys/naptlv.bin	�2<�ye(D)���`|	�)���`��0)���`�0	�	�)���`�	�	�0	�)���`���#)���`��#	�	�)��#	�)���`�8	�x)���`�8x	�)�	��`�Hx	�	�	�	�)�x	�	�(	�	��	5%	�	�	�	�)��(	�	�	�	�	�)(��	����	� 	�	<		)	
    <�
    ��
    �	
    <l 	L
    	L
    	�	�	�	<	�
    '�/sys/rxfltr.ini	�����We(�[e(	�
    '�/sys/rxfltr.ini	�����We(�[e(�A	�
    '�/sys/rxfltr.ini	�����We(�[e(�A�A"�A�A�A�A�A�A�B�B	)C	
    =		�!
    '�/sys/p2p.cfg)`	�o��ye(	
    	�	=:A	�		Q%�,)h <��!��		
    ?�!+
    '�/sys/phybg.cal	��^����)��^�	�)��^�t)�	�^��t�t	�
    	<	)				=	=	�		(	�	
    �	d	�!
    '�/sys/date_time.cfg	�
    >(�ye(	3)'c)'c).)):))'))?4)))r), de��l�), ����l�), ,-��l�), ��l�
    f)i1`aaA	s	6	)	
    f)0		�!
    '�/sys/stacfg.ini
    � -����{�(� �%	9
    �
    
    
    �
    �	-����{�( LS
    �
    �
    �
    ��*
    
    �!
    '�/sys/certstore.lst
    ��J
    �
    
    �
    -��J-��J�-�	�J��
    ��5(
    �*��1
    �
    �	�
    �*� ��jI�M�
    �z*�""c�ΊI
    �*� �����1��
    �	��
    g(
    ��
    �(
    �
    �
    '�/sys/servicepack.ucf
    ���`
    �
     Hx B
    �!
    '�/sys/ucf_signatures.bin
    ��Ql-��Ql-��Ql4-��Ql4T-�	�Ql��
    �
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!-���`-���`x-���`p
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    ��Q0	�
    �!
    '�/sys/mode.cfg
    ���I-���I-���I4-���I4�-�	��I
    ��-���`�C�4��4�4
    �*�@ *�Q x4*�x� 
    �
    �
    ��*N�
    /N�4N-�	��`�Hx
    ��
    �R)��`aaA	9	�)����{�(	�!
    '�/sys/certstore.lst	��J	�
    	�
    )��J	�)��J�)�	�J��	�
    '�/sys/fips.cfg	��:��We(�[e(`aaA			�!
    '�/sys/mdmpcfg.ini	��I��ye(	�!
    '�/sys/pmcfg.ini	�I��ye(	\	a"<b�p3	�
    	�	�
    '�/sys/servicepack.ucf	���`	�
     Hx B	�!
    '�/sys/ucf_signatures.bin	��Ql)��Ql	�)��Ql4)��Ql4T)�	�Ql��	�	�!
    '�/sys/servicepack.ucf	���`	�
    )���`!	�)���`)���`x)���`p	�	�	�	�	�	�	�	�)���`�	�	)�1	�!
    '�/sys/ipcfg.ini	���)���	�)���4)���4�)�	���$	�!
    '�/sys/mode.cfg	���I)���I	�)���I4)���I4�)�	��I	��	Q
    	�	�1�`  �1�` 	 @M1�``V H1�`�k l1�`{ ��1�`� � 1�`T' `1w@  �)	1�`�	�		�	� 	f	�		g6!	�	�		�!
    '�/sys/devname.cfg	��c)��c	�)��c4)��c4b)�	�c	��			
    
    	
    
    	�	�	�	�	�)�G�	�			�	�	�		�!
    '�/sys/phybg.cal	��^�)��^�	�	�	�!
    '�/sys/phya.cal	�r$��0(�r	�!
    '�/sys/phypwr.cal	�e�A�ye(	8	�	�	�	P	P	P	P	P	P 	P@	P�PS�	
    	�	�		
    	�)1	�!
    '�/sys/macadd.bin	��q
    �ye(	5	Vc	2$I���		
    	�	�!
    '�/sys/naptlv.bin	�2<�ye(D)���`|	�)���`��0)���`�0	�	�)���`�	�	�0	�)���`���#)���`��#	�	�)��#	�)���`�8	�x)���`�8x	�)�	��`�Hx	�	�)��^�	�	�)�x	�)��^���	�	��)��^�h	5%)�	�^��t	�	�	�	�)���	�	�	�	�	�)(��	����	� 	�	'		)	
    (�
    ��
    �	
    (l 	L
    	L
    	�	�	�	(	�
    '�/sys/rxfltr.ini	�����We(�[e(	�
    '�/sys/rxfltr.ini	�����We(�[e(�A	�
    '�/sys/rxfltr.ini	�����We(�[e(�A�A"�A�A�A�A�A�A�B�B	)C	
    )		�!
    '�/sys/p2p.cfg)`	�o��ye(	
    	�	):A	�		Q%�,)gy�	�
    	<	)	�	*	�!
    '�/sys/date_time.cfg	�
    >(�ye(		3)0		
    +)1	7 				=	=	�		(	�	
    )2�	3)'c)'c).)):))'))?4), deH���), ��H���)), ,-���), ���)	
    .)r1`aaA	s	6	)		
    /)W$Vx�e.
    �\��)i	�!
    '�/sys/stacfg.ini	�TU)�TU	�)�TU4)�TU4�)�	TU	��	K	J#	�#	�!
    '�/sys/pref.net	���ye(	�!
    '�/tmp/chanhist.tbl	���)���	�)���P1A:m*))���P)�	���H�,��0N�|6(a1"	\	
    1	"*"	 		**")	��	6�X)	�)	3�63)	3)	3�	�!
    '�/sys/macadd.bin	��q
    �ye(	5	Vc	2$I���63)	3)	d��!
    '�/sys/mode.cfg	���I)�)���I	�)���I4)���I4�)�	��I	��6d)	d
    � -����{�(� �%	9
    �
    
    
    �
    �	-����{�( LS
    �
    �
    �
    ��*
    
    �!
    '�/sys/certstore.lst
    ��J
    �
    
    �
    -��J-��J�-�	�J��
    ��5(
    �*��1
    �
    �	�
    �*� ��jI�M�
    �z*�""c�ΊI
    �*� �����1��
    �	��
    g(
    ��
    �(
    �
    �
    '�/sys/servicepack.ucf
    ���`
    �
     Hx B
    �!
    '�/sys/ucf_signatures.bin
    ��Ql-��Ql-��Ql4-��Ql4T-�	�Ql��
    �
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!-���`-���`x-���`p
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    ��Q0	�
    �!
    '�/sys/mode.cfg
    ���I-���I-���I4-���I4�-�	��I
    ��-���`�C�4��4�4
    �*�@ *�Q x4*�x� 
    �
    �
    ��*N�
    /N�3N-�	��`�Hx
    ��
    �R)��`aaA	9	�)����{�(	�!
    '�/sys/certstore.lst	��J	�
    	�
    )��J	�)��J�)�	�J��	�
    '�/sys/fips.cfg	��:��We(�[e(`aaA			�!
    '�/sys/mdmpcfg.ini	��I��ye(	�!
    '�/sys/pmcfg.ini	�I��ye(	\	a"<b��s	�
    	�	�
    '�/sys/servicepack.ucf	���`	�
     Hx B	�!
    '�/sys/ucf_signatures.bin	��Ql)��Ql	�)��Ql4)��Ql4T)�	�Ql��	�	�!
    '�/sys/servicepack.ucf	���`	�
    )���`!	�)���`)���`x)���`p	�	�	�	�	�	�	�	�)���`�	�	)�1	�!
    '�/sys/ipcfg.ini	���)���	�)���4)���4�)�	���$	�!
    '�/sys/mode.cfg	���I)���I	�)���I4)���I4�)�	��I	��	Q
    	�	�1�`  �1�` 	 @M1�``V H1�`�k l1�`{ ��1�`� � 1�`T' `1w@  �)	1�`�	�		�	� 	f	�		g6!	�	�		�!
    '�/sys/devname.cfg	��c)��c	�)��c4)��c4b)�	�c	��			
    
    	
    
    	�	�	�	�	�)�G�	�			�	�	�		�!
    '�/sys/phybg.cal	��^�)��^�	�	�	�!
    '�/sys/phya.cal	�r$��0(�r	�!
    '�/sys/phypwr.cal	�e�A�ye(	8	�	�	�	P	P	P	P	P	P 	P@	P�PS�	
    	�	�		
    	�)1	�!
    '�/sys/macadd.bin	��q
    �ye(	5	Vc	2$I���		
    	�	�!
    '�/sys/naptlv.bin	�2<�ye(D)���`|	�)���`��0)���`�0	�	�)���`�	�	�0	�)���`���#)���`��#	�	�)��#	�)���`�8	�x)���`�8x	�)�	��`�Hx	�	�)��^�	�	�)�x	�)��^���	�	��)��^�h	5%)�	�^��t	�	�	�	�)���	�	�	�	�	�)(��	����	� 	�	'		)	
    (�
    ��
    �	
    (l 	L
    	L
    	�	�	�	(	�
    '�/sys/rxfltr.ini	�����We(�[e(	�
    '�/sys/rxfltr.ini	�����We(�[e(�A	�
    '�/sys/rxfltr.ini	�����We(�[e(�A�A"�A�A�A�A�A�A�B�B	)C	
    )		�!
    '�/sys/p2p.cfg)`	�o��ye(	
    	�	):A	�		Q%�,)gy�	�
    	<	)	�	*	�!
    '�/sys/date_time.cfg	�
    >(�ye(		3)0		
    +)1	7 				=	=	�		(	�	
    )2�	3)'c)'c).)):))'))?4), deH���), ��H���)), ,-���), ���)	
    .)r1`aaA	s	6	)		
    /)W$Vx�e.
    �\��)i	�!
    '�/sys/stacfg.ini	�TU)�TU	�)�TU4)�TU4�)�	TU	��	K	J#	�#	�!
    '�/sys/pref.net	���ye(	�!
    '�/tmp/chanhist.tbl	���)���	�)���P1A:��")���P)�	���H�,��0N�|6(a1"	\	
    1	"*"	 		**"	�!
    '�/sys/fips.cfg	��:��ye()	f�	6f)	f	�!
    '�/sys/fips.cfg	��:��ye()	f�6f)	f)	��!NB�!NB�1��x������������1����������<����1������2��������	�"AP_J	�Iqx�G(a!�`G�,��0N�|6!!"!,"!0"!|1#AAP_Johns	T	�	�)
    A	6�)	�		(�!+
    '�/sys/phya.cal	�r$	�r$0	.$AP_J	r	)"++)/#,����	0#AP_J(aA�AP_J$a,1%�AP_J>�	=	z	.$AP_J	H		.$AP_J	r	)"++)/#,����	0#AP_J(aA�AP_J$a,1%�AP_J>�	=	.$BF-I	r	)"++)/#,����	0#BF-I>�	=		r&&	)"00!1�,AP_J �1�,AP_J �(a4��
    "��>�	=	�		8#AP_J	�	L$AP_J	M4��
    "��97!�`G	q	 	�	
    		�	
    	�	�			�	�	,>�	=	 $,)���)��	r	)	#	�)V�) ;	T	r	)",,	�>�	= ,	(	�		�	.$JHCT	.$JHC-)E	�	�	!,)"$�%�{��,)#�����)?"�	r""	)"7>�	=)	))))=	))0)1 ,	�	!	r!!>�	=	r  >�	=	r>�	=	,	r	)">�	=97!�`G), egp���), -.����!�`G	 #y�%�)��	 y	*?"�	r""	)"	 #c�%�)��	 c>�	=		!�`G	�	*>�	=	5	�	�A"	�"����AP_J6�
    L)	�	�	L$AP_J	M� !�`�1��0!� K� 1�@h? �ˀ(a
    !�,��0N�|61��!�b!�`G	), ���), gh���), .4���), ���), hi���), 4.���	r���!�!p	N$)	�
    '		!)	�	)	�	�	-	G$AP_J	H$ohns	I$on	J$�%�{	K��	�,)F))-)/�
    �	.$AP_J	�	�
    	�!{
    )	.$AP_J) )0)@)P)`	� !�`�	N$)�r$	�)]"<)�"	Z"d�!
    
    '�/tmp/chanhist.tbl	���)���	�)���P)���PA)�	���H	
    		��
    '	(
    	N$	�
    �	(
    �!	)wd
    )w���)wd
    ��)�$.d
    ����d
    d
    	�$
    d.1�`�Q�N�1�`�d
    6%.)	%1��0!� K�!
    '�/sys/dhcp.bin	�y
    )�	�
    '1�@�d
    @81�b�d
    #������!
    '�/tmp/table.arp	+�
    �	�l�%)�		+�
    ')�l�%	�)�l�%4)�l�%4�)�	l�%��1��d1�@�d
    1�@1d
    @81�b1d
    ��{��!
    '�/tmp/table.arp	�l�%)
    )�l�%	�)�l�%4)�l�%4�)�	l�%��1��d	�
    1�@1d
    1�@d
    @81�bd
    (ލC��!
    '�/tmp/table.arp	�l�%)�	)�l�%	�)�l�%4)�l�%4�)�	l�%��1��d	�
    1�@d
    )�y
    	�)�y
    4)�y
    4�)�	y
    ��1���1����.d
    1����{��d
    �d
    �1���Q�N
    d��1���ԁQ������Q'	�
    1�A�Q)3)2
    "B�)]"<)�"	Z"d)	3�63)	3)]"<)�"	Z"d)	2��!
    '�/sys/ipcfg.ini	���)p)���	�)���4)���4�)�	���$)wd
    )w���)wd
    ��62)	2)	3�63)	3)	 �)T! �example.1��[	F6 )	 ){d
    1�@d
    1� d
    �
    ')]"<)�"	Z"d1�`d
    �
    �){���1�@d
    @81�bd
    RLM�\b�!
    '�/tmp/table.arp	�l�%)
    	+�
    '	+)�l�%	�)�l�%4)�l�%4�)�	l�%��1��d1�@1d
    @81�b1d
    ��{�	�
    1�@d
    @81�bd
    (ލC�	�
    )]"<)�"	Z"d)]"<)�"	Z"d�
    �)]"<)�"	Z"d)]"<)�"	Z"d�
    �)]"<)�"	Z"d)|���1��[�!	�"	�
    '�/tmp/dnscache.bin	��qT)��qT	�)��qTP)��qTP1A9v6C)��qT/)��qT`�`r)��qTO)�	�qT�`5�H1���6 )	 )	�	�	�	 g�6)	)	�6)	.�	��
    '�
    '�
    �	
    	)/1��#�P���	��0@!�`,�,�g��6)	)	�)]"<)�"	Z"d�
    �)]"<)�"	Z"d)]"<)�"	Z"d0@	��
    �)]"<)�"	Z"d)]"<)�"	Z"d	�k6
    
    z�)	�6)	6)	.�	��
    �)]"<)�"	Z"d	
    	)]"<)�"	Z"d0@	Pg�	
    	11��|�����Z`$\�<		v"	w"('u4	x"	y"		�
    �"��"�	�"	c"�	�!ON	�!	�!zz�!z�zW!�A,�	�W��		|	F�	
    	'(!#B�&12��1΀��{����11��X�����Z`$\�<		v"	w"	x"	y"	�
    	�"	�"	�"	c"	�!Yc	�!&	�!zz�!z�zW!�A�	�d��		|	F�		'(!#B�&12��1΀��{���11��X�����Z`$\�<		v"	w"
    	x"	y"	�
    	�"	�"	�"	c"	�!\c	�!2	�!zz�!z�zW!�A'	�d��		|	F�		'(!#B�&12��1΀��{���	(11��X�����Z`$\�<		v"	w"	
    	x"	y"	�
    	�"	�"	�"	c"	�!^c	�!>	�!zz�!z�zW!�A'	�d��		|	F�	(	'(!#B�&12��1΀��{��ڢ11��X�����Z`$\�<		v"	w"	
    	x"		y"	�
    	�"	�"	�"	c"	�!_c	�!L	�!zz�!z�zW!�A'	�d��		|	F�	2	'(!#B�&12��1΀��{��Т11��X�����Z`$\�<		v"	w"	x"	y"	�
    	�"	�"	�"	c"	�!`c	�!Z	�!zz�!z�zW!�A'	�d��		|	F�		'(!#B�&12��1΀��{��Ƣ	(11��X�����Z`$\�<		v"	w"	
    	x"		y"	�
    	�"	�"	�"	c"	�!`c	�!g	�!zz�!z�zW!�A'	�d��		|	F�	
    	'(!#B�&12��1΀��{����

  • Dear Shlomi:

    I've attached the second log.

    This is the log when sl_Close() is completed.

    Best regards.

    � -����{�(�(�-	9
    
    �
    �	-����{�( LS
    �
    �
    �
    ��#
    �
    '�/sys/fips.cfg
    ��:��Ve(�Ze(-
    �!
    '�/sys/certstore.lst
    ��J
    �
    
    �
    -��J-��J�-�	�J��
    ��T)
    �*��1
    �
    �	�
    �*� ��jI�M�
    �z*�""c�ΊI
    �*� �����1��
    �	��
    �)
    ��
    �)
    �
    �
    '�/sys/servicepack.ucf
    ���`
    �
     Hx B
    �!
    '�/sys/ucf_signatures.bin
    ��Ql-��Ql-��Ql4-��Ql4T-�	�Ql��
    �
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!-���`-���`x-���`p
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    ��q1	�
    �!
    '�/sys/mode.cfg
    ���I-���I-���I4-���I4�-�	��I
    ��-���`�C�4��4�4
    �*�@ *�Q x4*�x� 
    �
    �
    ��IO�
    MO�RO-�	��`�Hx
    ��
    ib)��`aaA	9	�)����{�(	�!
    '�/sys/certstore.lst	��J	�
    	�
    )��J	�)��J�)�	�J��	�
    '�/sys/fips.cfg	��:��We(�[e(`aaA			�
    '�/tmp/crashminidump.bin	��+�1��1��1��	�!
    '�/sys/mdmpcfg.ini	��I��ye(	�!
    '�/sys/pmcfg.ini	�I��ye(	\	a"<b	�	�
    	�	�
    '�/sys/servicepack.ucf	���`	�
     Hx B	�!
    '�/sys/ucf_signatures.bin	��Ql)��Ql	�)��Ql4)��Ql4T)�	�Ql��	�	�!
    '�/sys/servicepack.ucf	���`	�
    )���`!	�)���`)���`x)���`p	�	�	�	�	�	�	�	�)���`�	�
    )�1	�!
    '�/sys/ipcfg.ini	���)���	�)���4)���4�)�	���$	�!
    '�/sys/mode.cfg	���I)���I	�)���I4)���I4�)�	��I	��	Q
    	�	�1�`  �1�` 	 @M1�``V H1�`�k l1�`{ ��1�`� � 1�`T' `1w@  �)	1�`�	�	
    	�	� 	f	�	
    	g	�!
    '�/sys/fips.cfg	��:��ye(/-	�	�		�!
    '�/sys/devname.cfg	��c)��c	�)��c4)��c4b)�	�c	��			
    	
    	�	�	�	�	�)�G�	�			�	�	�	�A
    �5	�!
    '�/sys/phypwr.cal	�e�A�ye(	8	�	�	�	P	P	P	P	P	P 	P@	P�PS�	
    	�	�		
    	�)1	�!
    '�/sys/macadd.bin	��q
    �ye(	5	Vc	2$I���		
    	�	�!
    '�/sys/naptlv.bin	�2<�ye(D)���`|	�)���`��0)���`�0	�	�)���`�	�	�0	�)���`���#)���`��#	�	�)��#	�)���`�8	�x)���`�8x	�)�	��`�Hx	�	�	�	�)�x	�	�(	�	��	5%	�	�	�	�)��(	�	�	�	�	�)(��	����	� 	�	<		)	
    <�
    ��
    �	
    <l 	L
    	L
    	�	�	�	<	�
    '�/sys/rxfltr.ini	�����We(�[e(	�
    '�/sys/rxfltr.ini	�����We(�[e(�A	�
    '�/sys/rxfltr.ini	�����We(�[e(�A�A"�A�A�A�A�A�A�B�B	)C	
    =		�!
    '�/sys/p2p.cfg)`	�o��ye(	
    	�	>:A	�		Q%�,)h <��!��		
    ?�!+
    '�/sys/phybg.cal	��^���))��^�	�)��^�t)�	�^��t�t	�
    	<	)				=	=	�		(	�	
    �	W	�!
    '�/sys/date_time.cfg	�
    >(�ye(	3)'c)'c).)):))'))?4)))r), de��l�), ����l�), ,-��l�), ��l�
    Z)i1`aaA	s	6	)	
    Z)0		�!
    '�/sys/stacfg.ini
    � -����{�(� �%	9
    �
    
    
    �
    �	-����{�( LS
    �
    �
    �
    ��*
    
    �!
    '�/sys/certstore.lst
    ��J
    �
    
    �
    -��J-��J�-�	�J��
    ��5(
    �*��1
    �
    �	�
    �*� ��jI�M�
    �z*�""c�ΊI
    �*� �����1��
    �	��
    g(
    ��
    �(
    �
    �
    '�/sys/servicepack.ucf
    ���`
    �
     Hx B
    �!
    '�/sys/ucf_signatures.bin
    ��Ql-��Ql-��Ql4-��Ql4T-�	�Ql��
    �
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!-���`-���`x-���`p
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    ��Q0	�
    �!
    '�/sys/mode.cfg
    ���I-���I-���I4-���I4�-�	��I
    ��-���`�C�4��4�4
    �*�@ *�Q x4*�x� 
    �
    �
    ��*N�
    /N�4N-�	��`�Hx
    ��
    �R)��`aaA	9	�)����{�(	�!
    '�/sys/certstore.lst	��J	�
    	�
    )��J	�)��J�)�	�J��	�
    '�/sys/fips.cfg	��:��We(�[e(`aaA			�!
    '�/sys/mdmpcfg.ini	��I��ye(	�!
    '�/sys/pmcfg.ini	�I��ye(	\	a"<b��1	�
    	�	�
    '�/sys/servicepack.ucf	���`	�
     Hx B	�!
    '�/sys/ucf_signatures.bin	��Ql)��Ql	�)��Ql4)��Ql4T)�	�Ql��	�	�!
    '�/sys/servicepack.ucf	���`	�
    )���`!	�)���`)���`x)���`p	�	�	�	�	�	�	�	�)���`�	�	)�1	�!
    '�/sys/ipcfg.ini	���)���	�)���4)���4�)�	���$	�!
    '�/sys/mode.cfg	���I)���I	�)���I4)���I4�)�	��I	��	Q
    	�	�1�`  �1�` 	 @M1�``V H1�`�k l1�`{ ��1�`� � 1�`T' `1w@  �)	1�`�	�		�	� 	f	�		g6!	�	�		�!
    '�/sys/devname.cfg	��c)��c	�)��c4)��c4b)�	�c	��			
    
    	
    
    	�	�	�	�	�)�G�	�			�	�	�		�!
    '�/sys/phybg.cal	��^�)��^�	�	�	�!
    '�/sys/phya.cal	�r$��0(�r	�!
    '�/sys/phypwr.cal	�e�A�ye(	8	�	�	�	P	P	P	P	P	P 	P@	P�PS�	
    	�	�		
    	�)1	�!
    '�/sys/macadd.bin	��q
    �ye(	5	Vc	2$I���		
    	�	�!
    '�/sys/naptlv.bin	�2<�ye(D)���`|	�)���`��0)���`�0	�	�)���`�	�	�0	�)���`���#)���`��#	�	�)��#	�)���`�8	�x)���`�8x	�)�	��`�Hx	�	�)��^�	�	�)�x	�)��^���	�	��)��^�h	5%)�	�^��t	�	�	�	�)���	�	�	�	�	�)(��	����	� 	�	'		)	
    (�
    ��
    �	
    (l 	L
    	L
    	�	�	�	(	�
    '�/sys/rxfltr.ini	�����We(�[e(	�
    '�/sys/rxfltr.ini	�����We(�[e(�A	�
    '�/sys/rxfltr.ini	�����We(�[e(�A�A"�A�A�A�A�A�A�B�B	)C	
    )		�!
    '�/sys/p2p.cfg)`	�o��ye(	
    	�	):A	�		Q%�,)gy�	�
    	<	)	�	*	�!
    '�/sys/date_time.cfg	�
    >(�ye(		3)0		
    +)1	7 				=	=	�		(	�	
    )2�	3)'c)'c).)):))'))?4), deH���), ��H���)), ,-���), ���)	
    .)r1`aaA	s	6	)		
    /)W$Vx�e.
    �\��)i	�!
    '�/sys/stacfg.ini	�TU)�TU	�)�TU4)�TU4�)�	TU	��	K	J#	�#	�!
    '�/sys/pref.net	���ye(	�!
    '�/tmp/chanhist.tbl	���)���	�)���P1A:�)���P)�	���H�,��0N�|6(a1"	\	
    1	"*"	 		**")	��	6�X)	�)	3�63)	3)	3�	�!
    '�/sys/macadd.bin	��q
    �ye(	5	Vc	2$I���63)	3)	d��!
    '�/sys/mode.cfg	���I)�)���I	�)���I4)���I4�)�	��I	��6d)	d
    � -����{�(� �%	9
    �
    
    
    �
    �	-����{�( LS
    �
    �
    �
    ��*
    
    �!
    '�/sys/certstore.lst
    ��J
    �
    
    �
    -��J-��J�-�	�J��
    ��5(
    �*��1
    �
    �	�
    �*� ��jI�M�
    �z*�""c�ΊI
    �*� �����1��
    �	��
    h(
    ��
    �(
    �
    �
    '�/sys/servicepack.ucf
    ���`
    �
     Hx B
    �!
    '�/sys/ucf_signatures.bin
    ��Ql-��Ql-��Ql4-��Ql4T-�	�Ql��
    �
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!-���`-���`x-���`p
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    ��Q0	�
    �!
    '�/sys/mode.cfg
    ���I-���I-���I4-���I4�-�	��I
    ��-���`�C�4��4�4
    �*�@ *�Q x4*�x� 
    �
    �
    ��*N�
    .N�3N-�	��`�Hx
    ��
    �R)��`aaA	9	�)����{�(	�!
    '�/sys/certstore.lst	��J	�
    	�
    )��J	�)��J�)�	�J��	�
    '�/sys/fips.cfg	��:��We(�[e(`aaA			�!
    '�/sys/mdmpcfg.ini	��I��ye(	�!
    '�/sys/pmcfg.ini	�I��ye(	\	a"<b��r	�
    	�	�
    '�/sys/servicepack.ucf	���`	�
     Hx B	�!
    '�/sys/ucf_signatures.bin	��Ql)��Ql	�)��Ql4)��Ql4T)�	�Ql��	�	�!
    '�/sys/servicepack.ucf	���`	�
    )���`!	�)���`)���`x)���`p	�	�	�	�	�	�	�	�)���`�	�	)�1	�!
    '�/sys/ipcfg.ini	���)���	�)���4)���4�)�	���$	�!
    '�/sys/mode.cfg	���I)���I	�)���I4)���I4�)�	��I	��	Q
    	�	�1�`  �1�` 	 @M1�``V H1�`�k l1�`{ ��1�`� � 1�`T' `1w@  �)	1�`�	�		�	� 	f	�		g6!	�	�		�!
    '�/sys/devname.cfg	��c)��c	�)��c4)��c4b)�	�c	��			
    
    	
    
    	�	�	�	�	�)�G�	�			�	�	�		�!
    '�/sys/phybg.cal	��^�)��^�	�	�	�!
    '�/sys/phya.cal	�r$��0(�r	�!
    '�/sys/phypwr.cal	�e�A�ye(	8	�	�	�	P	P	P	P	P	P 	P@	P�PS�	
    	�	�		
    	�)1	�!
    '�/sys/macadd.bin	��q
    �ye(	5	Vc	2$I���		
    	�	�!
    '�/sys/naptlv.bin	�2<�ye(D)���`|	�)���`��0)���`�0	�	�)���`�	�	�0	�)���`���#)���`��#	�	�)��#	�)���`�8	�x)���`�8x	�)�	��`�Hx	�	�)��^�	�	�)�x	�)��^���	�	��)��^�h	5%)�	�^��t	�	�	�	�)���	�	�	�	�	�)(��	����	� 	�	'		)	
    (�
    ��
    �	
    (l 	L
    	L
    	�	�	�	(	�
    '�/sys/rxfltr.ini	�����We(�[e(	�
    '�/sys/rxfltr.ini	�����We(�[e(�A	�
    '�/sys/rxfltr.ini	�����We(�[e(�A�A"�A�A�A�A�A�A�B�B	)C	
    )		�!
    '�/sys/p2p.cfg)`	�o��ye(	
    	�	):A	�		Q%�,)gy�	�
    	<	)	�	*	�!
    '�/sys/date_time.cfg	�
    >(�ye(		3)0		
    +)1	7 				=	=	�		(	�	
    )2�	3)'c)'c).)):))'))?4), deH���), ��H���)), ,-���), ���)	
    .)r1`aaA	s	6	)		
    /)W$Vx�e.
    �\��)i	�!
    '�/sys/stacfg.ini	�TU)�TU	�)�TU4)�TU4�)�	TU	��	K	J#	�#	�!
    '�/sys/pref.net	���ye(	�!
    '�/tmp/chanhist.tbl	���)���	�)���P1A:�$9)���P)�	���H�,��0N�|6(a1"	\	
    1	"*"	 		**"	�!
    '�/sys/fips.cfg	��:��ye()	f�	6f)	f	�!
    '�/sys/fips.cfg	��:��ye()	f�6f)	f)	��!NB�!NB�1��x������������1����������<����1������2��������	�"AP_J	�Iqx�G(a!�`G�,��0N�|6!!"!,"!0"!|1#AAP_Johns	T	�	�)
    A	6�)	�		(�!+
    '�/sys/phya.cal	�r$	�r$0	(	.$AP_J	r	)"++)/#,����	0#AP_J(aA�AP_J$a,1%�AP_J>�	=	z	.$AP_J	H		.$AP_J	r	)"++)/#,����	0#AP_J(aA�AP_J$a,1%�AP_J>�	=	.$JHCT	r	)"++)/#,����	0#JHCT>�	=	.$JHC-	r	)"++)/#,����	0#JHC->�	=	.$AP_J	r	)"++)/#,����	0#AP_J(aA�AP_J$a,1%�AP_J>�	=		r&&	)"00!1�,AP_J �1�,AP_J �1�,AP_J �(a4��
    "��>�	=	�		8#AP_J	�	L$AP_J	M4��
    "��97!�`G	q	 	�	
    		�	
    	�	�			�	�	,>�	=	 $,)���)��	r	)	#	�)V�) ;	T	r	)",,	�>�	= ,	(	�		�)E	�	�	!,)"$�%�{��,)#�����)?"�	r""	)"7>�	=)	))))=	))0)1 ,	�	!	r!!>�	=	r  >�	=	r>�	=	,	r	)">�	=97!�`G), egp���), -.����!�`G	 #y�%�)��	 y	*?"�	r""	)"	 #c�%�)��	 c>�	=		!�`G	�	*>�	=	5	�	�A"	�"����AP_J6�
    L)	�	�	L$AP_J	M� !�`�1��0!� K� 1�@h? �ˀ(a
    !�,��0N�|61��!�b!�`G	), ���), gh���), .4���), ���), hi���), 4.���	r���!�!p)		!)	�	)	�	�	-	G$AP_J	H$ohns	I$on	J$�%�{	K��	�,)F))-	N$�
    '	)/�
    �	�	�
    	�!{
    )	.$AP_J) 	.$AP_J)0)@)P)`	� !�`�	N$)�r$	�)]"<)�"	Z"d�!
    
    '�/tmp/chanhist.tbl	���)���	�)���P)���PA)�	���H1�`�d
    'c�1�@�d
    	
    		��
    '	(
    	N$	�
    �	(
    �!	)wd
    )w���)wd
    ��)�$.d
    ����d
    d
    	�$
    d.1�`�Q�N�1�`�d
    6%.)	%1��0!� K�!
    '�/sys/dhcp.bin	�y
    )�	�
    '1�@�d
    @81�b�d
    #������!
    '�/tmp/table.arp	+	+	�l�%)�		+)�l�%	�)�l�%4)�l�%4�)�	l�%��1��d1�@�d
    1�@$d
    @81�b$d
    lT:@b��!
    '�/tmp/table.arp	�l�%)
    )�l�%	�)�l�%4)�l�%4�)�	l�%��1��d	�
    1�@$d
    1�@1d
    @81�b1d
    ��{��!
    '�/tmp/table.arp	�l�%)�	)�l�%	�)�l�%4)�l�%4�)�	l�%��1��d	�
    1�@1d
    1�@d
    @81�bd
    (ލC��!
    '�/tmp/table.arp	�l�%)
    	+)�l�%	�)�l�%4)�l�%4�)�	l�%��1��d	�
    1�@d
    1�`�d
    _c�.d
    )�y
    	�)�y
    4)�y
    4�)�	y
    ��1���1����.d
    1����{��d
    �d
    �1���Q�N
    d,�1��,܁Q,���,�Q'	�
    1�A�Q)3)2
    "B�)]"<)�"	Z"d)	3�63)	3)]"<)�"	Z"d)	2��!
    '�/sys/ipcfg.ini	���)`)���	�)���4)���4�)�	���$)wd
    )w���)wd
    ��62)	2)	3�63)	3)	 �)T! �example.1��[	F6 )	 ){d
    1�@d
    1� d
    �
    ')]"<)�"	Z"d1�`d
    �
    �1�@d
    @81�bd
    RLM�\b�!
    '�/tmp/table.arp	�l�%)�		+�
    '	+	+)�l�%	�)�l�%4)�l�%4�)�	l�%��1��d1�@1d
    @81�b1d
    ��{�	�
    1�@d
    @81�bd
    (ލC�	�
    1�@$d
    @81�b$d
    lT:@b�	�
    )]"<)�"	Z"d)]"<)�"	Z"d){���)|T��&1��[�
    �)]"<)�"	Z"d�!	�"	�
    '�/tmp/dnscache.bin	��qT)��qT	�)��qTP)��qT`1A9��W)��qT/)��qTp�pr)��qTO)�	�qT�p5�H1���6 )	 )	�	�	�	 g�6)	)	�6)	.�	��
    '�
    '	
    	�
    �0@!�`,�,�g��6)	)	�)]"<)�"	Z"d)/�
    �)]"<)�"	Z"d)]"<)�"	Z"d6
    z�0@	��
    �)]"<)�"	Z"d)	�6)	6)	.�	�)]"<)�"	Z"d�
    �)]"<)�"	Z"d)]"<)�"	Z"d0@	Pg�)	 �)T! �example.	�!
    '�/tmp/dnscache.bin	��qT)��qT	�)��qTP1A9�c*)��qTp)�	�qT�H)EsB�T��6 )	 6 )	 	
    		
    	11��%|�����Z`$\�<		v"	w"0&p%	x"	y"
    	�
    �"�"��	�"�c"!	�!LL	�!
    	�!zz�!z�zW!�A,�	�U��		�	I�	
    	'(!#B�&12��1΀��{����11��&X�����Z`$\�<		v"	w"
    	x"	y"	�
    	�"	�"	�"	c"	�!Xc	�!
    
    	�!zz�!z�zW!�A�	�d��		�	I�		'(!#B�&12��1΀��{���11��&X�����Z`$\�<		v"	w"
    	x"
    	y"	�
    	�"	�"	�"	c"	�!\c	�!.
    	�!zz�!z�zW!�A'	�d��		�	I�		'(!#B�&12��1΀��{���	(11��&X�����Z`$\�<		v"	w"	x"	y"	�
    	�"	�"	�"	c"	�!^c	�!9
    	�!zz�!z�zW!�A'	�d��		�	I�	(	'(!#B�&12��1΀��{��ڢ11��&X�����Z`$\�<		v"	w"	
    	x"		y"	�
    	�"	�"	�"	c"	�!_c	�!G
    	�!zz�!z�zW!�A'	�d��		�	I�	2	'(!#B�&12��1΀��{��Т11��&X�����Z`$\�<		v"	w"		x"	y"	�
    	�"	�"	�"	c"	�!`c	�!V
    	�!zz�!z�zW!�A'	�d��		�	I�		'(!#B�&12��1΀��{��Ƣ	(11��&X�����Z`$\�<		v"	w"	
    	x"		y"	�
    	�"	�"	�"	c"	�!`c	�!c
    	�!zz�!z�zW!�A'	�d��		�	I�	
    	'(!#B�&12��1΀��{����11��&X�����Z`$\�<		v"	w"	
    	x"	y"	�
    	�"	�"	�"	c"	�!ac	�!o
    	�!zz�!z�zW!�A'	�d��		�	I�		'(!#B�&12��1΀��{����11��&X�����Z`$\�<		v"	w"	x"	y"	�
    	�"	�"	�"	c"	�!ac	�!
    	�!zz�!z�zW!�A'	�d��		�	I�		'(!#B�&12��1΀��{����	(11��&X�����Z`$\�<		v"	w"	x"	y"	�
    	�"	�"	�"	c"	�!ac	�!�
    	�!zz�!z�zW!�A'	�d��		�	I�	(	'(!#B�&12��1΀��{����11��&X�����Z`$\�<		v"	w"	
    
    	x"		y"	�
    	�"	�"	�"	c"	�!ac	�!�
    	�!zz�!z�zW!�A'	�d��		�	I�	2	'(!#B�&12��1΀��{����11��&X�����Z`$\�<		v"	w"
    	x"	y"	�
    	�"	�"	�"	c"	�!ac	�!�
    	�!zz�!z�zW!�A'	�d��		�	I�		'(!#B�&12��1΀��{����	(11��&X�����Z`$\�<		v"	w"	x"	y"	�
    	�"	�"	�"	c"	�!bc	�!�
    	�!zz�!z�zW!�A'	�d��		�	I�	
    	'(!#B�&12��1΀��{����11��&X�����Z`$\�<		v"	w"	x"	y"	�
    	�"	�"	�"	c"	�!bc	�!�
    	�!zz�!z�zW!�A'	�d��		�	I�		'(!#B�&12��1΀��{��v�

  • Hi,

    Thanks for the logs.

    I do not see any assertion in the case in the failing case.

    I do not see any commands going down to the NWP as well. Is this expected or does the application tries to send new commands?

    At least from NWP perspective, seems like the device is alive and waiting to further commands.

    Also, I could see the event 0x1010 fired back to the host processor so you should have got it.

    Any chance the host processor is stuck somewhere? what if you debug step-by-step when it happens? are you stuck?

    Maybe this is a host-NWP synchronization, I am not sure.

    As I mentioned, Logic captures (like Saleae) would shed some light.

    Regardless, seems like you are using a very old SP, 4.2.0.3 which is from April 2019.

    I am not saying this is the issue but you should consider upgrading to the latest.

    Regards,

    Shlomi

  • Dear Shlomi:

    Thank you for checking the logs.

    You said that event 0x1010 was returned to the host processor, butthat is the case in the second log (teraterm_20251121_2.log).

    In that case, we can also confirm that 0x1010 was returned to the host processor.

    However, when we subsequently attempted HTTP communication again, after sending event 0x9C20 to the NWP, event 0x1C20 was returned to the host processor, but event 0x1820 was not returned to the host processor. (After 0x9C20 was returned to the host processor, there was no response from the NWP.)

    The reason it appears that no command was sent to the NWP is because it is waiting for a response (0x1820) from the NWP.

    Also, in the first log (teraterm_20251121_1.log), event 0x1010 was not returned to the host processor.

    Instead, FatalErrorEventHandler is returned with Code = 0x1010.

    Therefore, in the first log, it is clear that a problem has occurred as indicated by a FatalError. In the second log, sl_Close() has completed once, but the asynchronous response (0x1820) in the subsequent HTTP communication was not confirmed by the host processor, so it is unclear what state the NWP is in.

    Could you please check the logs again regarding these issues?

    Incidentally, both logs I sent were run by the same program.

    Even though it is the same program, the behavior can change, so I would like to confirm how the NWP is behaving in each case.

    Best Regards,

    Daisuke Maeda

  • Hi,

    Maybe I was not clear enough, in the failing case I do see 0x1010 coming back from NWP and the NWP is pending for the next command.

    In the "good case", 0x1010 is returned as you can see in the application and the GetHostByName is also returned, i.e. 0x1C20 AND 0x1820. So the NWP behaves OK.

    The error you get is probably due to the host loosing synchronization on the host interface.

    As I also mentioned, you use a very old SP and I recommend to update it to the latest but this is probably not the reason.

    If you have a logic capture on the SPI lines (like Saleae) it would help to identify what happens on the lines.

    I recommend capturing SPI and IRQ line.

    Regards,

    Shlomi