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.

Can not load odd number of images if > 24, unknown error occur

Hello all and thanks for the help,
I have two Light Crafter 2.0. In the old one I am able to load a certain number of images and is working perfect (it has an old version 2.0.1 ).
With the new one I have some problems. After the upgrade to the version 2.0.1 I found out that for certain number of images I got a command error - packet failed. So I decided to upgrade this to the version 3.0 but still I have the same problem. 

I also notice that in the drop down button list seems that you can just load even number of images after 25. In fact with 25-27 and others I have my packet fail error. 


I wondering why, because with the other LCr I don't have this issue at all.

Thanks for your help.

Pablo

  • Hello Pablo,

    In the pattern sequence mode, if the bit depth is set to 1 then you should be able to pattern counts (1-96) including the odd number of patterns. I will look into the source code and troubleshoot the problem of packet sending failure for odd number of patterns (25,27).

    Could you collect the debug log by connecting the RS232 serial cable and send it over in this scenario when you try to send odd number of patterns?

    Regards

    Manasi

  • Hello Manasi, thanks for your quick reply.

    Sorry but I don't know how to provide you with those information. I tried some programs for serial port monitor but I can't make them work. How to create this debug log? 

    Thank you for your help.

    Pablo.

  • Hello Manasi,

    I still don't know how to get the debug log you were asking, but what I try to use wireshark and see the traffic.

    I'm attaching 2 files for each lightcrafter that I have. The operation mode for those are the same:

    1. Set display mode  = pattern sequence
    2. Set pattern count = 25
    3. Upload the 25 images
    4. Press start button to run the pattern sequence
    5. Just in the one that work I press a couple of times next.

    The thing that I notice, in the packet 1389 of the fail file I got an unknown error.

    I changed the extension of the file. Needs to be change in .pcapng to open them with wireshark.

    6076.TestPatternSequenceFAIL.txt

    8838.TestPatternSequenceSUCESS.txt

    Thank you very much for your help.

    Pablo

  • Hello all,

    I checked some old posts about how to get the debug log [1][2] that Manasi was asking for and I managed to get that, it took me a while. 

    The first thing that I notice from this log is that the characters that I see on Teraterm are meaningless (as you can see in the attachments) I though is an incorrect value of the baud rate but is not that the problem( baud rate = 115200), but maybe for you means something. I did the same test on the 2 LightCrafters that I have, both are giving me strange characters and just one of them works (load 25 images).

    Please let me know if I can help you in providing more information to solve this annoying problem.

    From_boot.log -> the log start from the booting. I load my 25 images, press start sequence and then I saw my message ("load failed") by using the GUI.
    
    load25.log -> is the log that I receive when I press start sequence (after loading 25 images) and then I saw my message ("load failed") by using the GUI.

    ^�$H@?�  $  $  $  $   $  $  $  $  $  %   $  $  %���?>>>>>>>>f p$����?2��!   $  $  $  %   $  $   $  $  $  $   $  $  $  $���ro8&i.B
    	.Bf	f���I< ���?2��B�	 @!	
    �.B��.Bf
    	&����.�	.�N� �MN�I 2& 8?.B
    	�.B
    ������.Bf
    	.��B�	.�?drB
    	�.B
    �������.Bf
    	.��B�	.�@	.B
    	�.B
    ���.B	f
    I���	.�	�&$`p? �I$ x�I< >�x�B 2��B�	 @!
    	�.B
    ��.Bf
    ?����.�	.�N� 2�B�2�@�d�.B	
    	�.B
    ������.BfI.��B�	.�?dr
    	��.B
    ����������B�	.��	.B
    	�.B	
    ��.Bf
    	�����.�	.�	N&$B`�? �I$ �I< >�&$B`p? �I  �I< >�&$B`�? �I$ �I< >�&`p? �I �I< >�&$B`�? �I$ �I< >�&$B`�? �I$ �I< >�&$B`�? �I$ �I< >�&$`pI? �I �I< >�&4`pA? �I$ �I< >�&``@ �I$ x�I< >�&``? �I$ r�I< >�&$`�? �I$ x�I< >�&$``? �I$ fI< >�&``? �I$ `I� >�&$B`�? �I r�I< >�&$B`�? �I$ �I< >�&$B`�? �I �I >�&$B`�? �I$ �I< >�&$``? �I �I< >�&$B``? �I �I< >�&$``? �I �I< >�&$``? �I$ �I� >�&$``? �I$ �I< >�&$``? �I$ �I >���?2&  
    @��B�	 @!
    	�.B��.Bf
    ������.�	.�	��  LN�I 2& 8?.B
    	�.B
    ������.Bf
    ?.��B�	.�@�d�.B
    	�.B
    ��������.��B�	.��		2BfI �I$ �I< �I< ���&$B`�? �I$ �I< >�&�``? �I �I< >�&$B`�? �I$ �I< >�&$B`�? �I$ �I< >�&$B`�A �I$ �I< >�&$``@ �I �I >�&``I �I$ �I< >�&$B`�@ �I$ �I< >�&$``@ �I$ �I� >�&``I �I$ x�I< >�'$``@ �I$ r�I >�&$``I �I$ x�I< >�&$B`�@ �I$ f�I< >�&$B`�? �I$ `I >�&$``@ �I$ r�I< >�&$``? �I �I >�&$B``? �I$ �I� >�&$B``? �I �I� >�&$B``@? �I$ �I< >�&$``I �I$ �I< >�&$`�? �I$ �I< >�&$B`�? �I$ �I< >�&$B``? �I$ �I< >�&$B`�@ �I$ �I� >���C�$�2�d�2`�0�x�x�2���&&I�r����6�����&��
    �\��^H	>x@|>`��wf4x��2��Ix>>>MN!<� ��&�� �x ��B����x I>80| @�r?o.��B�3H H���x a>80| ��r�o.��B�2H@���x >80| @�r�o.��B���`�Z��x `����� ���r�'/$`>x 2 >xx`@�0�Z�	�x `�����`���r?o.��B���2����x  �����`���r?o�>&8$	�@���0	�2�$H4�I����H���2` �� dI��?��BB�2�� ���2 ����������	&>&&> |@<@	�2�22��2�0��>r   >  &>2@ >f@ 8p�!���0�r�������$O���B�����2 �&&&&
    �$@/����H�02������??I����&��3�`�?>>H8@ > >>>x�|f�B d�B��r �4tB�?>>fp
    ���@$I�����&���?!2����&� �?>>f@8L>x&&0�9�������'�����B$d@��r�������o���$B�$(�¸�@�$$�x���2�0B�B ��B��$���a����p�C@�$$O\8 H 0�2 	` H 0     00      4               4      4     44               0                        44                22�2$�2��B eI! I$&&&
    �
    $@�r?$	I`�$I!@Q2r@�r���I2&d�r�� B�2 2��?I�&�B����x�I@�������&&flH&�B`?o/��H ��Ba�&H&
    �)I�r�HH�
    03�����y !`�2�0����p2�!`�B$`@9 >8pp���=8\ >f0$	�@�2`�2�H����2B@����3B222�2�0�����p� `��@���@@�2�&�l&h?d����
    O.?��2B�`�B$��  �BdBd��$��220��� ?dLfO
    	 &>8  8&>& >   `|8@& <&>@  & @<@8>B$�@0��L�����f	
    2B �iS0"2�B�Id		 B&$0&H& 22 L<&H L�&H|&  �IH$0�2�$@4 p�t��f��x$@4 p�2&&�@��
    � ��0H B ��o��r����22�d (	 �&�r` ��f��f��BdO
    $ !���p�r��`�22�d �	 ��&���r` �2f�&�BdO	 H$$
    >.8\x2�d �	 �rH�r`��"��&L��B$oL�H��&k���&C�320��$����B�@d�2�r��&f
    ��22�f�2�00��&f
    �B$����rBrB�0. �`��&>n0B&f�H0 &>``$ 8
    0&>x@�f�2���� pB�0?�B�td0IHP�P�����	@2��2 �2B�2@�r���'!&$22�@�2�4$��fL�L x`�r2�4
    
    &�
    ?V ���p�r����22�  �	 �&oN@�2�`H� @� ��r@�B��pH �@$�r���B$g��бB`@2��4d2��BdB��&oB B2$?!0 �@ 2�2�2�H0��0�@�f >8$@��� ��2&B�&��0�����`>H�x�Cd2B$��B$��2$(R�2�$8`�� �2�@����$2�$x`�� �2�&
    @�������?7�	&�zHP��p�y�2� ���2��2�2��&&��L
    <8x?��2�B@2B`	O@!�� �2�B$�2B$�	��pB$�2��0�@0�2I' �2�(I?�f��������	I02�2�oH �2� ����	I0�2��d t2��0�f����h�2��B!��&'����?B`�2�� �2��BdB�x�`@����p�r��`�22�d �	 ���&f�r` ��f�2��B$o
    ��`2B�	?r����22�d �	 �2�H�r` ��"��$��Bdo
    �B$d�r����22�d �	 �2�H�r` �f��&���BdO �r��p�22���$B�T2�r�`2B�	?2�H�B$d�2�HO�P��B`$d?��B�`�2�� �2��B B���
    H B�2� ��@�2��B�����B$@@�$NHH> 8@ >| <$x���r�����B@�2B�2B���B$�@�HH>L|    >H����a�I$&�r �$�����&�2�r�00�B!�Jb >.80|2  >@|@>��z��2� ���``I �rB$ 	�H?p2`���B`$d����p2`��d@�0�B`�T2�r2�8 B&8$��&�2 ��@��&&�@�D�&�x3��d�� ��$�2�?B��`�B��B�4$2�y��0B$�B@2B$@	O$@� $�	@B$@2B$@	N B
    ( |P8& &��0I@�0�r&�	&
    ��2$$`?��``�B���$�2B22�0I�2r&�&�&�2`���0� ��s�����rB$��2��B����&
    ?�N & >H
    
     a��22�HJ|> `��0� ��sf�&����rB��2�B����&
    ?�2`�2�02�$$ �2 �2�02�_2����0LBa���0�¸B��C��c ��r?� L�ArH�f?�rBdO	8 >>`�xy @��2�$@ � �&����������������������f������?2`�0��������f���������������������B �I8���������������������������?2 � �����������������������������2�0�B B@N�&8$	�d�&��  t2� �6oB BO
     B�>x $@&& |8|d 8$>��H�M	�02 �h?d��2�2�@��02?7HH	�02 � Rd�r� �2` @��02?7 �&����C$H&L& f�8 ��r`����$fI 3f 2g &2}8HH	�02 �p ���02`�)I2�2�@����
    OH2`��02 �2���0B�@!22�  	�2$$7! d	���tHB$d$ ��� &��o $��� ���tH ��0�@���`$�22y8	3  80<
    H� ���0H `f�2�B`�T2� ���0H� ���dM0d		2�B`�T2�@$����p�2�r��`���d	B$���  `
    � >$@�!��2�����2$$�O  `
    < >x8@ p|& 8@> |& 8
    @���� ���4H� ���tH  f��&2�2���B`��@d��M   $rB� �$I
    &I��!B$��2�����2$$�OH  >>2>>��H>>8@ >@ >B��@ 2����������H32�V��f�L�@`�s��pB��22�022�B`��0?r'��$	I
    @�V&����2�2�22�02���� ���t� ���tH `fI��&2�2	&�B`��@d��H!ff? 8>B@>`
    I`A���pB��22�022�B`��0?r' ���tH� ���tH `fI��&2�2$�B`��@ ��$�&2��B`�T2�  B`��0�$ f@0>H0�
    32eBB�C��B`�T2�d��� �N&��&f�B$i��¹f@|8& &��'Ho p>&>  p>��02H@�B$�2B@	N!B L2�B`��2�$@�2B�`	@?d		2�!`��8&&8 @&  $`��8��!B H2�B`�2�$@�2B�`	@?d		2�!H @?8&&8 @&  $`@?8��B BH? B�	f$>fL8>f$I?&��2�02�N�0p2�r�` �0������B B��2�$@T��&�(�2��2Bd�2���&B�	  
    `?��, B`�T2�� �2��BdB��o�@ �2B2�<T2���`�@ �2B2� (T2���o� 8>&pd�<T����o^$pd�<T2���o8>&pd�<T2����
    �x& 8>&pd�<T����o^$Bpd� (T�������@ �2B2� (T2��4o^$Bpd�<T2���'8>&pd� (T��2	Io 8>&pd� (T��2	Io� 8>&pd� (T�������@ �2B2� (T��B2����@ �2B2� (T������o8>&pd� (T��`���@ �2B2� <T2���_3$H> > 8@ >2  �0�2�@���HH	�02 �`2���?�B��� a7. 0 �2�rr` �B ?`��2��&�&O
    .HH>|    >H��|
    pH2��@$r?&fLHr??	��&&�&��B`�
    pH@��d�B$��2`��2��VQ`H�`�O$ H x8H  >@��?���������������������������������������������><>>.� �22�2����`�2���>|>>|@>�2��2`��2���2�!?�2�2��2���>P2�r �2�2�2�2�22P�2�2�r`�2��`�2 ���2����PP220��2�P��2P�P���?>>>>>>>>PH������������������������������������������������wf�\I ���22�t��a�0�s?r�` �  d�s?B����L
    &on2�0�I@2�f� ����f&H&�B��'n2�2k � >B@��?B�$O
    �B!d?���d�r�22�$N  B H2 r2H2���d�r�d2����`�0H@0d2�2�0���������&&�&H�
    Ox�`		����2�2���0$0�2�B��d�H  f2$�H��� �y�?d��H��� �y�2��$�H��� �/$8>>`$$I��� �H  f2�H��� �y�?d�$�H��� �U '&$2��0��`$d��2`I�``&f�$�� �y`a�����H��� �y &n0f���H��� �I>H?���¸HHy`�.^0"�

    `@`@�&f�$�� �y������$�H@��� �y &n0Hf��$�H��� �I<>H?���¸HH.^30f�

    Thank you for your help.

    Pablo.

    [1] http://e2e.ti.com/support/dlp__mems_micro-electro-mechanical_systems/f/850/p/176873/967093.aspx#967093

    [2] http://e2e.ti.com/support/dlp__mems_micro-electro-mechanical_systems/f/850/p/269160/997042.aspx#997042

  • Hello Juan,

    My apologies for latency in the response. 

    I tried to implement the same test for odd number of images on my end and was successfully able to run the sequence of odd number of patterns pretty consistently with different odd number of patterns.

    Could you try the same test on your end and let me know the result just so I know we are on the same page:

    • Download 3.0 software bundle and run the GUI 5.0.0, DM365 version 5.0, FPGA version 2.6.43, MSP430 version 3.0
    • Set the pattern sequence settings  as shown in the attached screenshot
    • Make sure that if you are selecting bet depth = 1 , then you upload the 1 bit depth images 
    • Start the sequence

    Let me know if this works and if not we can take it form there.

    Regards

    Manasi

  • Hi Manasi,

    I made the test and the command fail, as you can see in the screenshot.

    I also notice a small thing.. we are using 2 different version of the GUI. Mine doesn't have the rotate checkbox and the tabcontrol debug but I don't think that is the solution.

    Is normal when I set, in Display Mode, Stored Pattern Sequence, that the three led are turn off? I just notice this behavior since I decide to link again the light engine to the board.

    Does the log file that I attached you in the previous post is normal? I was expecting a different kind of log.

    Thank  you for  your time.

    Pablo

  • Hello TI forum,

    I'm still unable to solve this issue :( I'm really concerned about the log that I got. The screenshot here below is the one that I received during the booting. The cable we use to have this log is a stereo 2.5 mm plug with an RS232 end terminal plus an FTDI cable connected to the USB port. I didn't have the FTDI chipset extension but I assume it should work as well. 

    I also tried the same connection with a microcontroller that sends UART messages and in that case I received the message correctly.

    Waiting for any help.

    Pablo

     

  • Hello Pablo,

    I received the log file you had sent, although I could not decipher the log probably because I thought the serial port settings were not right.

    I am unable to reproduce the issue here at my end, the pattern sequence mode works fine with odd and even number of images. But I suspect that the bit depth of the images that you are using might not actually be 1 and so the failure.

    Could you try the attached set of 25 images and see if a setting of pattern count = 25 and all the same other settings works for you?

    Again please make sure, you hit "Set" on Pattern Sequence settings first and then browse the images and hit "Upload All" before you "Start" the sequence.

    Let me know how that works on your system.

    6131.1BitDepthTestImages.zipRegards

    Manasi

  • Hello Manasi, thank you for your reply and for trying to help me. I tried your images but the system still is not working.

    The settings for the serial port used are the one that you can see in the screenshot above which I assume are the correct ones.  I have no idea why my log message is in that format, the only thing that I can add is that the stereo cable and rs232 connector was made in the lab anyway the connections are correct. 

    The bit depth of the images used is 1 (I'm sure about that because are the same images used with the other LCr that works fine).

    I also put the upper board of the LCr that works well in the other one and with this configuration my system works well. But if I put the upper board  of the LCr which  has the problem in the LCr that works fine, well this system is not working and has this problems with odd images.

    So these means that the problem is with the upper board. How can I proceed to understand a bit more where is the problem and how I can solve it?

    Thanks for your help.

    Pablo

  • Hello Pablo,

    Thanks for trying it out. I would recommend trying one more thing just to make sure that you are not missing a step while setting up the pattern sequence mode manually.

    If you look at the downloaded latest 3.0 software bundle (DLPLCRSoftwareBundle-3.0), it has a directory called API Sample Code v2.0 - Windows and that actually has a reference Visual Studio solution that sets up the Lightcrafter in various modes. If you look at LCR_Cmd_Interface.cpp file, the Demo 5 in that is "Pattern Sequence Mode for 1Bpp images". Currently the pattern count is set to 8, but you can modify the file to set the desired pattern count (25 or any odd number) and make sure you put those 1 bpp images in the path read through the file. Then you can rebuild the Visual Studio solution and run it on LightCrafter. The directory should have instructions on how to build this on Visual studio.

    This would bypass the GUI completely and directly send the commands through this reference applications code.

    Let me know if that works successfully.

    Also could you tell me if there is a sticker (red label) on the systems board? And what does it say , is it 2.0 or below?

    Regards

    Manasi

  • Hello Manasi,

    Yes I'm familiar with the TI demo code. I also made a debug operation, the command that send the number of images is executed but the one who should make start the pattern sequence is the one who cause troubles.

    Both the LightCrafter that I have are 2.0.

    Thanks for your help.

    Pablo

  • Hello Pablo,

    For 1BPP patterns Number of patterns = 25 is not a valid option. Try 26 it should work.

    The reason -

    In the pattern sequence mode there are 4 buffers with each occupying max 24 1BPP patterns. The system is designed in such a way that for nuumber of patterns > 24 it should be possible distribute evens across the four buffers.

    Now if the number is 25, it is not possible to distribute while if it is 26. The DM365 distribute 26 as follows 

                      Buffer-0                    Buffer-1                   Buffer-2                   Buffer-3

    PatNo          0-12                       13-25                      0-12                         13-25

    So Key here is select a number which can be evenly distributed. Therefore refer to the GUI you can see numbers missing b/w 1-96 for 1BPP pattern selection.

    Regards,

    Sanjeev

     

     

  • Hello Sanjeev,

    Yes for 26 the device is working fine. But actually it also has other issues, for example it has problems for 95-94-90-81-27 and others images (and for all the numbers >96 ) but is working fine for 96-30-80 and others. 

    I don't understand why both device are not working in the same way, 25 images in the other LigthCrafter that I have is a valid option. For my application I need to load some images this number can be bellow 1000, but in this conditions it cannot be used.

    Thanks for your help.

    Pablo

  • Hello Pablo,

    There should be some configuration mismatch issue between the two.

    Could you please let us know the exact  DM365 F/W Version and GUI version?  Are you running the sample code on the both the LCr Kits? Are both having 2.0 sticker?

    The Extended Pattern Sequence mode can support any pattern count there is discussion on this topic on how it is different from earlier Pattern Sequence Mode http://e2e.ti.com/support/dlp__mems_micro-electro-mechanical_systems/f/850/t/206767.aspx

    Please go thru this topic to understand more about how this mode works, feel free to comment back.

    Regards,
    Sanjeev

     

  • Hello Sanjeev, sorry for the delay in response.

    In the Lightcrafter that has problem:

    DM365: 4.0 --- FPGA: 2.6.43 ---- MSP430: 2.7

    I also upgraded it to DM365: 5.0 --- FPGA: 2.6.43 ---- MSP430: 3.0 without success. I tried both GUIs the 4.0.1 and the 5.0.0. 

    The other LCr has DM365: 4.0 --- FPGA: 2.6.43 ---- MSP430: 2.7, I didn't upgrade it yet because I'm afraid that some problems may occurs.

    In both the platform I'm running the same code, and both have the 2.0 sticker.

    I'm aware about the number of pattern that is possible to run in the LCr, that is why I don't understand why I have some problem with it.  If the upper board is damage/has some issues (seems that because of the previous test made with the swapping of the 2 upper boards) why I'm still able to run the pattern sequence mode few patterns?

    Thank you for your help.

    Best regards,

    Pablo.

  • Hello Pablo,

    As you mentioned, 

    1. The working LightCrafter has - DM365 v4.0,FPGA v2.6.43 and MSP430 v2.7.
    2. The NOT working also had DM365 v4.0,FPGA v2.6.43 and MSP430 v2.7 you are still seeing the problem when migrated to latest DM365 v5.0, FPGA v2.6.43 and MSP430 v3.0. It looks like you have reverted back to the older version. Now you are not clear on why the 2nd one failing while the 1st one works.

    It looks like 2nd has problem, I suggest to do the following, 

    a. Remove all the solution if you have stored if any...

    b. Run this configuration 1bpp 97 patterns chose exposure = 20000us Then try running 8bpp 13 patterns chose exposure 20000us. 

    Let me know what happens, does it throw any error?

    Regards,

    Sanjeev

  • Dear Sanjeev, 

    Yes now both LCr now have the same firmware, I tried to upgrade the second board to see if I can solve my problems but without success. I trying to made up my mind and seems that I never saw this second board working. 

    I tried your suggestions and still I received the "Command packet error". In particular this is what I did, let me know what do you think.

    Thank you for your help Sanjeev.

    Best regards,

    Pablo.

  • Hello Pablo,

    It is clearly showing the the FAIL cases are the ones which uses Extended Pattern Sequence Mode. 

    To use this there should be a minor hardware change suggested, since the sticker showing, 2.0 version I think it should be there.

    Irrespective of the sticker on the board, please check the following -

    On the top board i.e., System Board please check if the Resistor R205 is installed. if it is NOT then you must install a 0Ohm resistor on this board. With this change I think it should work.

    Regards,

    Sanjeev

  • Hello Sanjeev,

    You're right, the R205 is not there! My LCr has the 2.0 sticker on it, I though all of them have for default this 0 ohm resistor issue fix and I I would have never though about that.. In fact in the other one there this resistor installed.

    A simple wire can be enough?

    I saw also that the R202 is there and I read quickly in the forum that I need to remove this resistor, am I right? (the working LCr doesn't have R202 on it ). 

    Thank you. I will try and let you know if this solve my problem.

    Best regards,

    Pablo.

  • Hi Pablo,

    Yes, you need to remove R202. Yes, simple wire should also work. If you remove R202 properly you could use at R205.

    Good luck. Sorry it took so much time. We will also check why 2.0 sticker put on this while hardware change is not done.

    Regards,

    Sanjeev

  • Hello Sanjeev,

    Finally. We did this soldering operation and now everything is working fine. I'm glad even if it took some time, thank you Sanjeev and thanks Manasi for trying at first.

    All the best, 

    Pablo.

  • Hello Pablo,

    That's a great news!

    Thanks for your patience and we would look at why the hardware mod was not present on the LightCrafter board with 2.0 sticker.

    Let us know if you have any further questions!

    Regards

    Manasi