1 2 Previous Next 26 Replies Latest reply on Dec 24, 2019 11:26 PM by RashiV_61

    cx3 under linux  do not display

    user_3936656

      hi:

      Cx3 has an image under windows, but under linux, don not  displayed ,using guvcview   uart log  display

        CX3_DMA_RESET_EVENT eventFlag = 24

       

       

      CB failure

      AplnStop:SMState = 0x7

      AplnStrt:SMState = 0x1

      bRType = 0x2, bRequest = 0x1, wValue = 0x0, wIndex = 0x83, wLength= 0x0

      AplnStop:SMState = 0x1

      bRType = 0x21, bRequest = 0x1, wValue = 0x100, wIndex = 0x1, wLength= 0x22

      UsbCB: evtype=10

      bRType = 0xA1, bRequest = 0x82, wValue = 0x100, wIndex = 0x1, wLength= 0x22

      USB Setup CB:CyCx3UvcAppGetProbeControlData-CY_U3P_HIGH_SPEED

      UsbCB: evtype=10

      bRType = 0xA1, bRequest = 0x83, wValue = 0x100, wIndex = 0x1, wLength= 0x22

      USB Setup CB:CyCx3UvcAppGetProbeControlData-CY_U3P_HIGH_SPEED

      UsbCB: evtype=10

      bRType = 0x21, bRequest = 0x1, wValue = 0x100, wIndex = 0x1, wLength= 0x22

      UsbCB: evtype=10

      bRType = 0xA1, bRequest = 0x81, wValue = 0x100, wIndex = 0x1, wLength= 0x22

      USB Setup CB:CyCx3UvcAppGetProbeControlData-CY_U3P_HIGH_SPEED

      UsbCB: evtype=10

      bRType = 0x21, bRequest = 0x1, wValue = 0x200, wIndex = 0x1, wLength= 0x22

      USB Setup CB:Set video resultion =1

      USBStpCB:CyU3PMipicsiSetIntfParams ->MT9P031_RAW8_5M

      AplnStrt:SMState = 0x1

      UsbCB: evtype=10

        • 1. Re: cx3 under linux  do not display
          RashiV_61

          Hello,

           

          - Please let me know the kernel version and OS version that you are working with.

          - Also, which firmware are you using for CX3  and is it the default or have you made any changes to the firmware. Please mention the changes.

          -Did it work on Windows platform?

           

          Regards,

          Rashi

          • 2. Re: cx3 under linux  do not display
            user_3936656

            Rashi:

               Sorry, I just came back from my vacation. I used Ubuntu version 16.04.and  linux  kernel version linux-image-4.4.0-72 , I can use the firmware normally in the window without any changes.

            • 3. Re: cx3 under linux  do not display
              RashiV_61

              Hello,

               

              - Also, which firmware are you using for CX3  and is it the default or have you made any changes to the firmware. Please mention the changes.

               

              Can you share your firmware?

               

              If not, please share the debug prints to know where the error has occurred. I am not able to get the cause of the problem from the prints you have given in previous response. It would be a help if you can share the firmware or point out which API is failing from the debug prints.

               

              Regards,

              Rashi

              • 4. Re: cx3 under linux  do not display
                user_3936656

                Rashi:

                     Can I bring the board to your company for debugging? It's not very stable now. Is there something wrong with my program structure? Can you help me to have a look at it on the spot。 thanks.

                • 5. Re: cx3 under linux  do not display
                  user_3936656

                  Rashi:

                  The above situation occurs after running for a period of time. What causes this generally。

                  • 6. Re: cx3 under linux  do not display
                    RashiV_61

                    Hello,

                     

                    From the logs you shared, it seems that there is DMA_RESET_EVENT. In default cx3 examples,this event is generally set due to two reasons:

                     

                    1) When there is timeout: Timeout occurs when time between the two frames is more than the timer value (generally 500 ms).

                    2) When CyU3PDmaMultiChannelCommitBuffer API fails. This API fails when the host is slower to consume the DMA buffers as compared to the incoming data (from the sensor).

                     

                    Can you try debugging which of the two possibility is causing the DMA_RESET_EVENT?

                    - If the problem is due to commitbuffer failures, please refer to this KBA Invalid Sequence Error in Multi-Channel Commit Buffer - KBA218830 which is for FX3-UVC, similar changes can be done to your CX3  firmware.

                    - If the problem is due to timeout, try increasing the timer value to a value more than the frame period

                     

                    Also refer to this thread with the same problem UVC streaming is failed on linux if using usb 3 hub.

                     

                    If this still doesn't help, please share the firmware you are using. Meanwhile, i am trying to reproduce the issue at my end.

                     

                    Regards,

                    Rashi

                    • 7. Re: cx3 under linux  do not display
                      user_3936656

                      Rashi:

                            Hello, the test is normal at present, but one bug is that the intermediate program is turned off. You need to plug in and dial a cx3 hardware again before you can turn on the software again. What should I do about this.

                      • 8. Re: cx3 under linux  do not display
                        RashiV_61

                        Hello,

                         

                        Please restate your meaning of intermediate program.

                        Is it the host application that closes ?

                        Please confirm if it the host application that is turned off and CX3 needs to be reset to start the host application again?

                        Which host application are you using? IS the behaviour same when CX3 is programmed with the default firmware?

                        Please probe the usb lines and share the traces. You can use wireshark (usbmon - linux) for that.

                         

                        Regards,

                        Rashi

                        • 9. Re: cx3 under linux  do not display
                          user_3936656

                          Rashi:

                             Thank you for your reply,The upper computer software can only be used once. After it is turned off,  need to Plugged cx3 again to use the upper computer software.

                          • 10. Re: cx3 under linux  do not display
                            user_3936656

                            Rashi:

                               Thank you for your reply,The upper computer software can only be used once. After it is turned off,  need to Plugged cx3 again to use the upper computer software.   Can we get through on the phone? My phone number is 18911808268。thanks

                            • 11. Re: cx3 under linux  do not display
                              user_3936656

                              Rashi:

                                 HI  ,  I am 4.15.0-72-generic in the Ubuntu 18.04 USB2.0 kernel. When I load the firmware, I continuously prompt the attachment log. This is the control. Is it not corresponding?@ ! !

                               

                               

                               

                              [10:52:15:414] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:15:421] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:15:421] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:15:426] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:15:926] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:15:926] ␍␊

                              [10:52:15:926] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:15:932] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:15:932] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:15:939] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:16:438] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:16:438] ␍␊

                              [10:52:16:438] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:16:446] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:16:446] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:16:453] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:16:950] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:16:950] ␍␊

                              [10:52:16:950] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:16:957] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:16:957] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:16:964] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:17:462] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:17:462] ␍␊

                              [10:52:17:462] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:17:469] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:17:469] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:17:474] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:17:974] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:17:974] ␍␊

                              [10:52:17:974] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:17:983] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:17:983] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:17:991] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:18:485] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:18:485] ␍␊

                              [10:52:18:485] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:18:495] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:18:495] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:18:505] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:18:997] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:18:997] ␍␊

                              [10:52:18:997] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:19:006] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:19:006] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:19:013] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:19:510] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:19:510] ␍␊

                              [10:52:19:510] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:19:519] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:19:519] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:19:526] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:20:022] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:20:022] ␍␊

                              [10:52:20:022] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:20:029] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:20:029] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:20:036] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:20:533] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:20:535] ␍␊

                              [10:52:20:535] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:20:542] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:20:542] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:20:548] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:21:044] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:21:046] ␍␊

                              [10:52:21:046] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:21:052] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:21:052] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:21:061] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:21:558] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:21:558] ␍␊

                              [10:52:21:558] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:21:566] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:21:566] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:21:572] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:22:071] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:22:071] ␍␊

                              [10:52:22:071] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:22:078] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:22:078] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:22:084] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:22:578] ␍bRType = 0xA1, bRequest = 0x87, wValue = 0x200, wIndex = 0x100, wLength= 0x1␊

                              [10:52:22:581] ␍␊

                              [10:52:22:581] ␍Line:968⇥ VC:T ID 0x1 CS 0x200 Req 0x87 ␊

                              [10:52:22:588] ␍USBStpCB:VCI SendEP0Data = 64␊

                              [10:52:22:588] ␍current event is CY_FX_UVC_VIDEO_CONTROL_REQUEST_EVENT!!! wIndex_mv = 0x100␊

                              [10:52:22:595] ␍Unsupported request. Fail by stalling the control endpoint␊

                              [10:52:25:101] ␍U<break>

                              • 12. Re: cx3 under linux  do not display
                                RashiV_61

                                Hello,

                                 

                                Please let me know why are you probing usb lines while programming?

                                Is there a problem while programming cx3?

                                 

                                Regards,

                                Rashi

                                • 13. Re: cx3 under linux  do not display
                                  user_3936656

                                  Rashi:

                                      My program is normal under windows, but not under Ubuntu 18.04 USB 2.0 and USB 3.0. My upper computer software uses the same image of qtcam guvcview, which is black screen. This problem bothers me for a long time. Please guide me

                                  • 14. Re: cx3 under linux  do not display
                                    user_3936656

                                    Hi Rashi:

                                         Can I have your email?

                                     

                                    [09:48:30:799] ␍SensorRead2B SlaveAddr = 0x1C ,Reg = 0xC , buf[0] = 0xBE , buf[1] = 0x87 ␊

                                    [09:48:30:807] ␍[CyCx3UvcAppThread_Entry]CX3_DMA_RESET_EVENT eventFlag = 24␊

                                    [09:48:30:815] ␍CB failure␊

                                    [09:48:30:815] ␍AplnStop:SMState = 0x5␊

                                    [09:48:30:851] ␍AplnStrt:SMState = 0x1␊

                                     

                                    when I open qtcam  , Now the debug print   up log.

                                    1 2 Previous Next