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.

CC3135: CC3135 No Response for second command

Part Number: CC3135

Hi,

I am integrating the cc3135 using uart communication.

After the Deivce Enable routine i receive the initial starting sequence.

when the device is ready i send the command to read the mac address, the command is transmitted correctly via UART. I receive the IRQ Interrupt, and the modules answers.

However if i try to send a second command the module does not respond. IRQ stays low. Do I need to send some sort of Acknowledgment ?

Regards,

Michael

  • Hi Michael,

    Did you port our host driver from the SDK or plugin? Which version are you using? The host driver should take care of all of the communication needs, and you only have to worry about making sure the user.h is filled in correctly for it to operate. 

    BR,

    Vince 

  • Hi Vince,

    i used the sdk wifi plugin version 4.20.00.10. Do I need to use the sdk instead? if so which version of the sdk is best suited for the cc3135/ cc3135mod

    i defined the UART communication in the user.h and the read and write functions are working correctly, as i am able to receive the starting sequence and request the mac address of the device.

    I attached my user.h file

    8863.user.h

    regards,

    michael

  • No the Plugin should be fine. 

    Have you called Sl_Start() successfully? Are you starting the sl_Task() before doing any commands?

  • I run the sl_Task in a sepreate Thread. After the Thread is created i call sl_start() from a different Thread and receive the init sequence. I do not send anything at this point. The module role equals ROLE_STA.

    After sl_start finished i'm able to execute one command. When sending the second command the IRQ Line stays low and there is no response from the module.

    The following picture shows the first command (reading the mac address)

    the pink signal is the transmission from the module. the blue one is the host data, the yellow one is the IRQ line and the green one is the RTS Signal from the module. The host rts is always kept low as we ware working with dma.
    When the host send the next command i can see the transmission on the blue line. The IRQ and module RTS line stay low

    Edit:

    Here a two better pictures from the scope. 

    The first shows the initial sequence from the module and the Read command from the host (mac address)

    CH1 (yellow): IRQ Line
    Ch2 (sky blue): Module RX
    Ch3 (dark blue): Module TX

    This picture shows the second request from the host (again asking fpr the mac address)

    CH1 (yellow): module RTS
    CH2 ( sky blue) Module RX
    CH4 (dark blue) module CTS

    The following picture shows the second command again with IRQ and TX captured

    CH1 (yellow):  IRQ
    CH2 (sky blue): Module RX
    CH3 (dark blue): Module TX

    The IRQ line stays low until the function reaches the timeout and returns errorcode -2005.

    Regards,

    michael

  • Hi Michael,

    This behavior seems odd. Can you capture NWP logs from the module to help me understand whats going on the Wi-Fi side? 

    https://processors.wiki.ti.com/index.php/CC3120_%26_CC3220_Capture_NWP_Logs

    BR,

    Vince 

  • Hi Vince,

    as requested the NWP log (

    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2020.09.15 16:09:59 =~=~=~=~=~=~=~=~=~=~=~=
    -��J-��J�-�	�J��
    ��T)
    �*��1
    �
    �	�
    �*� �{�A}�
    F*�""�4��
    �*� ����1��
    �	��
    �)	��
    �)��)
    �
    �
    �
    '�/sys/servicepack.ucf
    ���`
    �
    - 2c B
    �!
    '�/sys/ucf_signatures.bin
    ��Ql-��Ql-��Ql4-��Ql4T-�	�Ql��
    �
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!-���`-���`x-���`p
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �*��|L	�
    �!
    '�/sys/mode.cfg
    ���I-���I-���I4-���I4�-�	��I
    ��-���`z�����ٸ�
    �*�@ *�Q �*�	 x**�.	 
    �
    �
    �)��L)�
    �L)��L-�	��`-�2c
    �)�
    2�L)��`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	���`	�
    ) 2c 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�	�			�	�	�	���5	�!
    '�/sys/phypwr.cal	�e�A)�e�A	�	�	�	�	�	P	P	P	P	P	P 	P@	P�PS�	
    	�	�		
    	�)1	�!
    '�/sys/macadd.bin	��q
    �ye(	5	V4	2$��		
    	�	�!
    '�/sys/naptlv.bin	�2<�ye(D)���`|	�)���`���)���`��	�	�)���`\ 	�	���	�)���`` �,)���`h ,	�	�)�,	�)���`pL	�p)���`xLp	�)�	��`)�2c	�	�	�	�)�p	�	�(	�	��	5%	�	�	�	�)��(	�)�e�A�8)�e�A8)�	e�A�8	�	�	�)(��8	����	� 	�	@		)	
    @�
    ��
    �	
    @l 	L
    	L
    	�	�	�	A	�
    '�/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			�!
    '�/sys/mdns.cfg	�[\)�[\	�)�[\4)�[\4�)�	[\�B�B��B��A�A�A�B��	�)C	
    D		�!)`
    '�/sys/p2p.cfg	�o��ye(	
    	�	D:A	�		Q%�,)h <��!��		
    F		�!
    '�/sys/httpsrv.cfg	�F�)�F�	�)�F�4)�F�4��!+
    '�/sys/phybg.cal	��^�)`	)p	)�	)��^�	�)��^�t)�	�^��t�t	�
    	<	)				=	=	�		(	�	
    �	m	�!
    '�/sys/date_time.cfg	�
    >(�ye(3�)'4)'4).!āBB��)):!āBB��))'!āBB��))?4)))r), de��), ����), ,-��), ��)i
    p1`aaA	s	6	)	)0
    p	�!
    '�/sys/stacfg.ini	�TU17)2�	3)�TU	�)�TU4)�TU4�)�	TU	��	K	J#	�#	�!
    '�/sys/pref.net	���ye(	�!
    '�/tmp/chanhist.tbl	����ye((aR�SS1"D] N	E	x��	T	�	�)X�) ��): )�	F���	�	�D	 N	{
    r)	�	 	�	�	�	�	 	�		�	�P	�P�:*"	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	�)V�) ;	T	r	)",,SS	�)���D] N	E	x)���>�	=	T	�	�)X�) ��): D	 N)	(�!+
    '�/sys/phya.cal	�r$	�r$ 	�	�
    	�!������)	�0)�r$	�	�)V�) ;	T	r	)",,SS	�)���D] N	E	x	�>�	=	T	�	�)X�) ��): D	 N)	(	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	�)V�) ;	T	r	)",,SS	�)���>�	=	11��J��t	�Z`$\�<		v"w"^{	x"gy"^^	�
    	�"+ 	�"	�"+c"T�	�!	�!	�!�!�W�A��		R	:�	
    	'(!#B�&12��!΀�
    � -����{�(� �%	9
    �
    
    
    �
    �	-����{�( LS
    �
    �
    �
    ��(
    
    �!
    '�/sys/certstore.lst
    ��J
    �
    
    �
    -��J-��J�-�	�J��
    ��5(
    �*��1
    �
    �	�
    �*� �{�A}�
    F*�""�4��
    �*� ����1��
    �	��
    g(
    ��
    �(
    �
    �
    '�/sys/servicepack.ucf
    ���`
    �
    - 2c B
    �!
    '�/sys/ucf_signatures.bin
    ��Ql-��Ql-��Ql4-��Ql4T-�	�Ql��
    �
    �!
    '�/sys/servicepack.ucf
    ���`
    �
    -���`!-���`-���`x-���`p
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    �
    ��Q0	�
    �!
    '�/sys/mode.cfg
    ���I-���I-���I4-���I4�-�	��I
    ��-���`z�����ٸ�
    �*�@ *�Q �*�	 x**�.	 
    �
    �
    �����
    �����-�	��`-�2c
    ��
    J�)��`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)��k	�
    	�	�
    '�/sys/servicepack.ucf	���`	�
    ) 2c 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)�e�A	�	�	�	�	�	P	P	P	P	P	P 	P@	P�PS�	
    	�	�		
    	�)1	�!
    '�/sys/macadd.bin	��q
    �ye(	5	V4	2$��		
    	�	�!
    '�/sys/naptlv.bin	�2<�ye(D)���`|	�)���`���)���`��	�	�)���`\ 	�	��	�)���`` �,)���`h ,	�	�)�,	�)���`pL	�p)���`xLp	�)�	��`)�2c	�	�)��^�	�	�)�p	�)��^���	�	��)��^�h	5%)�	�^��t	�	�	�	�)���	�)�e�A�8)�e�A8)�	e�A�8	�	�	�)(��8	����	� 	�	,		)	
    ,�
    ��
    �	
    ,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			�!
    '�/sys/mdns.cfg	�[\)�[\	�)�[\4)�[\4�)�	[\�B�B��B��A�A�A�B��	�)C	
    0		�!)`
    '�/sys/p2p.cfg	�o��ye(	
    	�	0:A	�		Q%�,)gy�	�
    	<	)	�	1	�!
    '�/sys/date_time.cfg	�
    >(�ye(	3�)0	
    217				=	=	�		(	�	
    )2�		�!
    '�/sys/httpsrv.cfg!āBB��	3)'4!āBB��)'4).!āBB��)):))'))?4)), de�d), ��<d), ,-<d), <d)	
    5)r1`aaA	s	6	)		
    6)i	�!
    '�/sys/stacfg.ini	�F�	�TU)�TU	�)�TU4)�TU4�)�	TU	��	K	J#	�#	�!
    '�/sys/pref.net	���ye(	�!
    '�/tmp/chanhist.tbl	����ye((aR�SS1"D] N	E	x��	T	�	�)X�) ��): )�F�	�)�F�4D	 N	{	
    8))�F�4�)�	F���	�	�	�	 	�	�	�	�	 	�		�	�P	�P�:*"	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	�	)	3�	�!
    '�/sys/macadd.bin	��q
    �ye(	5	V4	2$��63)	3	.$Data	r	)"++)/#����	0#Data>�	=	�)V�) ;	T	r	)",,SS	�)���D] N	E	x)���>�	=	T	�	�)X�) ��): D	 N)	(�!+
    '�/sys/phya.cal	�r$	�r$ 	�	�
    	�!������)	�0)�r$	�	�)V�) ;	T	r	)",,SS	�)���D] N	E	x	�>�	=	T	�	�)X�) ��): D	 N)	(	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	�)V�) ;	T	r	)",,SS	�)���>�	=11��9���
    غZ`$\�<		v"	w"&	x"	y"	�
    �"
    �$	�"�"
    �c"(	�!XX	�!
    	�!|[�!|�[W!�A'��		R	:�		'(!#B�12��!΀�11��:���
    غZ`$\�<		v"	w"	x"	y"	�
    	�"	�"	�"	c"	�!^c	�!
    	�!|[�!|�[W!�A���		R	:�	$	'(!#B�12��!΀�	E	x��	T	�	�)X�) ��): D	 N)	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	�)V�) ;	T	r	)",,SS	�)���D] N	E	x)���>�	=	T	�	�)X�) ��): D	 N)	�)V�) ;	T	r	)",,SS	�)���D] N	E	x	�>�	=	T	�	�)X�) ��): D	 N)	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	�)V�) ;	T	r	)",,SS	�)���>�	=11�E����
    غZ`$\�<		v"	w"	x"	y"	�
    	�"	�"	�"	c"	�!`c	�!	�!|[�!|�[W!�A���		R	:�	.	'(!#B�12��!΀�11�E����
    غZ`$\�<		v"	w"	x"	y"	�
    	�"	�"	�"	c"	�!ac	�!	�!|[�!|�[W!�A'��		R	:�	8	'(!#B�12��!΀�	E	x��	T	�	�)X�) ��): D	 N)	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	.$Data	r	)"++)/#����	0#Data>�	=	�)V�) ;	T	r	)",,SS	�)���D] N	E	x)���>�	=	T	�	�)X�) ��): D	 N)	�)V�) ;	T	r	)",,SS	�)���D] N	E	x	�>�	=	T	�	�)X�) ��): D	 N)	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	.$Data	r	)"++)/#$����	0#Data>�	=	�)V�) ;	T	r	)",,SS	�)���>�	=11�����
    غZ`$\�<		v"	w"	x"	y"	�
    	�"	�"	�"	c"	�!ac	�!'	�!|[�!|�[W!�A���		R	:�		'(!#B�12��!΀�1
    ).

    Are there any pin configuration that might explain such a behavior ? Is there a possibility the module might switch back to SPI communication?

    Regards,

    Michael

  • Hi Michael, the NWP logs look corrupted. Be sure to have a common ground between test equipment.

    Is this a custom board? I would suggest lets do a HW design review to make sure there isn't any hardware limitation that is effecting us.

    https://www.ti.com/tool/SIMPLELINK-WIFI-DESIGN-REVIEWS

    BR,

    Vince 

  • Hi Vince,

    A comparision with the module connected to the launchpad showed that the Modules RTS line was not connected properly. 

    Therefor the host sent data to the module even if the modules RTS line was high.

    Thank you for your support

    Regards,

    Michael