1 2 3 4 Previous Next 45 Replies Latest reply on Feb 17, 2020 1:16 AM by JayakrishnaT_76

    CyCx3UvcAppUSBEventCB never executed

    MaSt_4567191

      as per subject, the event is registered by

       

          CyU3PUsbRegisterEventCallback(CyCx3UvcAppUSBEventCB);

       

      but never executed. AFIK this means no USB event is triggerered by the system so the various booleans like glMipiActive, glIsConfigured, glIsStreamingStarted etc. are left to false ...

      I connected a MIPI stream to the CX3 inputs (the connection is a bit noisy since I bypassed an FPGA which merges two sensors into one) just to check the USB

       

      Can you address a way ti debug this? I guess the MIPI peripheral deliver some interrupt to the CPU as soon as a valid stream is detected right?

       

      Thanks much

        • 1. Re: CyCx3UvcAppUSBEventCB never executed
          JayakrishnaT_76

          Hello Marco,

           

          CyU3PUsbRegisterEventCallback() function registers a USB event callback function with the USB driver.  So, whenever a USB event of interest happens, the callback function CyCx3UvcAppUSBEventCB will be invoked. Inside the callback function, the event that triggered the callback is identified.

           

          Please let me know how did you confirm that CyCx3UvcAppUSBEventCB is not triggered.

           

          You can make use of the API CyU3PDeviceReset(CyFalse); inside the callback function (CyCx3UvcAppUSBEventCB) to check whether the callback was triggered or not. If the callback was triggered, then the device will enumerate as Bootloader Device in Control Center. This can be used to check whether the callback function was triggered or not.

           

          Please let me know if your application is UVC compliant or not. If it is UVC compliant, which host application are you using for streaming the video.

           

          Best Regards,

          Jayakrishna

          1 of 1 people found this helpful
          • 2. Re: CyCx3UvcAppUSBEventCB never executed
            MaSt_4567191

            Hello jayakrishna

             

            >Please let me know how did you confirm that

            > CyCx3UvcAppUSBEventCB is not triggered.

            I just put a breakpoint at the CyCx3UvcAppUSBEventCB but the execution never break

             

            > You can make use of the API CyU3PDeviceReset(CyFalse); inside the callback function

            > (CyCx3UvcAppUSBEventCB) to check whether the callback was triggered or not

             

            How? Just call it from inside CyCx3UvcAppUSBEventCB

             

            > Please let me know if your application is UVC compliant or not. If it is UVC compliant,

            Supposedly yes

             

            > which host application are you using for streaming the video.

             

            VLC player (this works with Denebola board with the default (Capture Mode: DirectSHow, Video Decice Name: CX3-UVC which enumaerates correctly)

            • 3. Re: CyCx3UvcAppUSBEventCB never executed
              JayakrishnaT_76

              Hello Marco,

               

              Please make use of the following code snippet for implementing device reset using the API CyU3PDeviceReset(CyFalse); inside the event callback.

               

              After programming denebola kit with the .img file, please open the host application and start streaming. If you see that the device is reset, that is, it enumerates as a bootloader device in control center, then the callback is triggered. Otherwise, it is not triggered.

               

              Best Regards,

              Jayakrishna

              1 of 1 people found this helpful
              • 4. Re: CyCx3UvcAppUSBEventCB never executed
                MaSt_4567191

                Thanks, Got it

                I confirm that my system does not move to boot mode i.e. I cannot see it in the USB control center

                • 5. Re: CyCx3UvcAppUSBEventCB never executed
                  MaSt_4567191

                  Sorry , it is (I forgot to save the c file … sorry)

                  I can see the boot manager enumareted in the USB control

                  • 6. Re: CyCx3UvcAppUSBEventCB never executed
                    JayakrishnaT_76

                    Hello,

                     

                    Now you can copy and paste the CyU3PDeviceReset(CyFalse); statement into different cases within the callback function. While doing so, use the API only for one event at a time. This can be used to  check which event triggered the callback. Note that when you do this, the initial CyU3PDeviceReset(CyFalse); need to be removed or commented out to prevent unnecessary resets.

                     

                    Best Regards,

                    Jayakrishna

                    1 of 1 people found this helpful
                    • 7. Re: CyCx3UvcAppUSBEventCB never executed
                      MaSt_4567191

                      OK, after a painful and frustrating trial-and-error blind process I can see some activity on the DMA. The key action was to have VLC media player open *before* I make my application in execution. This may be  due my ignorance about how video over USB and UVC behaves ...

                       

                      I still cannot see video on VLC, though (Your input can't be opened: VLC is unable to open the MRL 'dshow://'. Check the log for details.): any idea to address me on the proper way?

                      I attached the configuration file for you to check if UVC can be unpleased by some settings ...

                       

                      This is the log: first the bRType change according to

                      bRType = 0x81, bRequest = 0x0, wValue = 0x0, wIndex = 0x0, wLength= 0x2

                      bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                      StpCB:In SET_FTR 0::1

                      bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0

                      StpCB:In SET_FTR 0::1

                      bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA

                      bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1

                      bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                      StpCB:In SET_FTR 0::1

                      AppInit:GpifSMStart passed

                      bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0

                      StpCB:In SET_FTR 0::1

                      bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA

                      bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1

                      bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                      StpCB:In SET_FTR 0::1

                      bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0

                      StpCB:In SET_FTR 0::1

                      bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA

                      bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1

                      bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                      StpCB:In SET_FTR 0::1

                      bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0

                      StpCB:In SET_FTR 0::1

                      bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA

                      bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1

                      bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                      StpCB:In SET_FTR 0::1

                       

                      Then the application start-stop and the printflag active Frame informations

                       

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x5

                      AplnStrt:SMState = 0x1

                      Prod = 13 Cons = 13  Prtl_Sz = 30832 Frm_Cnt = 407 Frm_Sz = 509440 B

                      Video timer

                      AplnStop:SMState = 0x5

                      AplnStrt:SMState = 0x1

                      Prod = 33 Cons = 33  Prtl_Sz = 18992 Frm_Cnt = 408 Frm_Sz = 1233920 B

                      Video timer

                      AplnStop:SMState = 0x5

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x5

                      AplnStrt:SMState = 0x1

                      Prod = 14 Cons = 14  Prtl_Sz = 7792 Frm_Cnt = 409 Frm_Sz = 523216 B

                      Prod = 14 Cons = 14  Prtl_Sz = 34976 Frm_Cnt = 410 Frm_Sz = 550400 B

                      Prod = 36 Cons = 36  Prtl_Sz = 26304 Frm_Cnt = 411 Frm_Sz = 1351680 B

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Prod = 54 Cons = 54  Prtl_Sz = 16416 Frm_Cnt = 412 Frm_Sz = 2004480 B

                      Prod = 64 Cons = 64  Prtl_Sz = 12772 Frm_Cnt = 413 Frm_Sz = 2368996 B

                      Prod = 75 Cons = 74  Prtl_Sz = 6160 Frm_Cnt = 414 Frm_Sz = 2767360 B

                      Prod = 56 Cons = 55  Prtl_Sz = 6784 Frm_Cnt = 415 Frm_Sz = 2068480 B

                      Video timer

                      AplnStop:SMState = 0x5

                      AplnStrt:SMState = 0x1

                      Prod = 68 Cons = 67  Prtl_Sz = 1168 Frm_Cnt = 416 Frm_Sz = 2504656 B

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x5

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x5

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Prod = 80 Cons = 80  Prtl_Sz = 14080 Frm_Cnt = 417 Frm_Sz = 2959360 B

                      Prod = 39 Cons = 38  Prtl_Sz = 336 Frm_Cnt = 418 Frm_Sz = 1436160 B

                      Prod = 50 Cons = 50  Prtl_Sz = 12640 Frm_Cnt = 419 Frm_Sz = 1853440 B

                      Prod = 43 Cons = 43  Prtl_Sz = 19472 Frm_Cnt = 420 Frm_Sz = 1602560 B

                      TimeDiff = 13792 ms FPS = 2

                      Prod = 16 Cons = 16  Prtl_Sz = 33024 Frm_Cnt = 421 Frm_Sz = 622080 B

                      Prod = 75 Cons = 74  Prtl_Sz = 6160 Frm_Cnt = 422 Frm_Sz = 2767360 B

                      Prod = 63 Cons = 63  Prtl_Sz = 33232 Frm_Cnt = 423 Frm_Sz = 2352640 B

                      Prod = 55 Cons = 55  Prtl_Sz = 15440 Frm_Cnt = 424 Frm_Sz = 2040320 B

                      Prod = 19 Cons = 19  Prtl_Sz = 32656 Frm_Cnt = 425 Frm_Sz = 732160 B

                      Prod = 33 Cons = 33  Prtl_Sz = 26672 Frm_Cnt = 426 Frm_Sz = 1241600 B

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Prod = 30 Cons = 30  Prtl_Sz = 11680 Frm_Cnt = 427 Frm_Sz = 1116160 B

                      Prod = 41 Cons = 41  Prtl_Sz = 21424 Frm_Cnt = 428 Frm_Sz = 1530880 B

                      Prod = 103 Cons = 103  Prtl_Sz = 9552 Frm_Cnt = 429 Frm_Sz = 3801600 B

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Prod = 16 Cons = 16  Prtl_Sz = 33024 Frm_Cnt = 430 Frm_Sz = 622080 B

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Prod = 90 Cons = 90  Prtl_Sz = 29920 Frm_Cnt = 431 Frm_Sz = 3343360 B

                      Prod = 74 Cons = 74  Prtl_Sz = 35296 Frm_Cnt = 432 Frm_Sz = 2759680 B

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Prod = 68 Cons = 68  Prtl_Sz = 2752 Frm_Cnt = 433 Frm_Sz = 2506240 B

                      Prod = 89 Cons = 89  Prtl_Sz = 10416 Frm_Cnt = 434 Frm_Sz = 3287040 B

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Prod = 58 Cons = 58  Prtl_Sz = 17632 Frm_Cnt = 435 Frm_Sz = 2152960 B

                      Prod = 68 Cons = 68  Prtl_Sz = 7872 Frm_Cnt = 436 Frm_Sz = 2511360 B

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x5

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x5

                      AplnStrt:SMState = 0x1

                      Prod = 60 Cons = 60  Prtl_Sz = 10560 Frm_Cnt = 437 Frm_Sz = 2219520 B

                      Prod = 64 Cons = 64  Prtl_Sz = 29696 Frm_Cnt = 438 Frm_Sz = 2385920 B

                      Prod = 75 Cons = 74  Prtl_Sz = 1040 Frm_Cnt = 439 Frm_Sz = 2762240 B

                      Prod = 75 Cons = 74  Prtl_Sz = 6160 Frm_Cnt = 440 Frm_Sz = 2767360 B

                      Prod = 75 Cons = 74  Prtl_Sz = 6160 Frm_Cnt = 441 Frm_Sz = 2767360 B

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x5

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Video timer

                      AplnStop:SMState = 0x7

                      AplnStrt:SMState = 0x1

                      Prod = 91 Cons = 90  Prtl_Sz = 784 Frm_Cnt = 442 Frm_Sz = 3351040 B

                      Prod = 30 Cons = 30  Prtl_Sz = 19360 Frm_Cnt = 443 Frm_Sz = 1123840 B

                      Video timer

                      AplnStop:SMState = 0x5

                      AplnStrt:SMState = 0x1

                      • 8. Re: CyCx3UvcAppUSBEventCB never executed
                        JayakrishnaT_76

                        Hello,

                         

                        Please find my comments below:

                        1. Please share me the complete project. This is because I would like to have a detailed check on the MIPI configurations and the descriptors.

                        2. Use Wire shark and send me the USB Trace. This can be used to find out where exactly the streaming of data to host is breaking and the size of data sent to the host.

                        3. Also share the UART prints that are obtained using teraterm.

                         

                        Can you please try streaming using MPC-HC or AmCap and let me know if you are seeing the same behaviour using these applications also?

                         

                        Best Regards,

                        Jayakrishna

                        • 9. Re: CyCx3UvcAppUSBEventCB never executed
                          MaSt_4567191

                          >Can you please try streaming using MPC-HC or AmCap and let me know if

                          >you are seeing the same behaviour using these applications also?

                          Same behaviour with AmCap: pausing playback stops messaging from the CX3UVC, playing back again I can see lihe on the UBS xfers. Things like

                          I understands that packets are recived by the producer (MIPI periheral) and transferred over the USB by the consumer

                           

                          Below the dump of the UART output

                           

                          At reset (please ignore the Write Failed @addr= messagessince sensor configuration is done off-line

                           

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

                          bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA

                          bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                          StpCB:In SET_FTR 1::1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0

                          StpCB:In SET_FTR 1::1

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

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

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

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

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

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

                          Writing Configuration Settings:

                          USB Setup CB:Call AppSTOP1

                          AplnStop:SMState = 0x2

                          AplnStrt:SMState = 0x2

                          bRType = 0x81, bRequest = 0x0, wValue = 0x0, wIndex = 0x0, wLength= 0x2

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA

                          bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA

                          bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          AppInit:GpifSMStart passed

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA

                          bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA

                          bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA

                          bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          Write Failed @addr=0x1A

                          Write Failed @addr=0x1A

                          Write Failed @addr=0x1A

                          ***I: Sensor(0x90) initialization

                          Writing Configuration Settings:

                          Register = 0x98E: Value = 0xC97E

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0

                          Write Failed @addr=0x98E

                          StpCB:In SET_FTR 0::1

                          Write Failed @addr=0x98E

                          Write Failed @addr=0x98E

                          Image Sensor Init Err = 0xFF

                          bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA

                          bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA

                          bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0

                          StpCB:In SET_FTR 0::1

                          bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0

                          StpCB:In SET_FTR 0::1

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

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

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

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

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

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

                          Writing Configuration Settings:

                          AplnStrt:SMState = 0x2

                          Prod = 54 Cons = 54  Prtl_Sz = 13856 Frm_Cnt = 1 Frm_Sz = 2001920 B

                          Prod = 11 Cons = 11  Prtl_Sz = 7184 Frm_Cnt = 2 Frm_Sz = 412160 B

                          Prod = 49 Cons = 49  Prtl_Sz = 34096 Frm_Cnt = 3 Frm_Sz = 1838080 B

                          Prod = 46 Cons = 46  Prtl_Sz = 8864 Frm_Cnt = 4 Frm_Sz = 1702400 B

                          Prod = 75 Cons = 75  Prtl_Sz = 31760 Frm_Cnt = 5 Frm_Sz = 2792960 B

                          Prod = 58 Cons = 58  Prtl_Sz = 22752 Frm_Cnt = 6 Frm_Sz = 2158080 B

                           

                          When streaming

                           

                          Video timer

                          AplnStop:SMState = 0x7

                          AplnStrt:SMState = 0x1

                          Prod = 55 Cons = 54  Prtl_Sz = 80 Frm_Cnt = 2321 Frm_Sz = 2024960 B

                          Prod = 83 Cons = 83  Prtl_Sz = 29072 Frm_Cnt = 2322 Frm_Sz = 3084800 B

                          Prod = 28 Cons = 28  Prtl_Sz = 33352 Frm_Cnt = 2323 Frm_Sz = 1064200 B

                          Prod = 38 Cons = 38  Prtl_Sz = 6432 Frm_Cnt = 2324 Frm_Sz = 1405440 B

                          Prod = 51 Cons = 51  Prtl_Sz = 9104 Frm_Cnt = 2325 Frm_Sz = 1886720 B

                          Prod = 49 Cons = 48  Prtl_Sz = 3376 Frm_Cnt = 2326 Frm_Sz = 1807360 B

                          Prod = 13 Cons = 13  Prtl_Sz = 33392 Frm_Cnt = 2327 Frm_Sz = 512000 B

                          Prod = 45 Cons = 45  Prtl_Sz = 20080 Frm_Cnt = 2328 Frm_Sz = 1676800 B

                          Prod = 78 Cons = 78  Prtl_Sz = 5792 Frm_Cnt = 2329 Frm_Sz = 2877440 B

                          Prod = 40 Cons = 40  Prtl_Sz = 35200 Frm_Cnt = 2330 Frm_Sz = 1507840 B

                          • 10. Re: CyCx3UvcAppUSBEventCB never executed
                            JayakrishnaT_76

                            Hello Marco,

                             

                            According to my understanding, in the logs shared before whatever comes before When streaming is obtained without starting host application and whatever comes afterwards are obtained after starting the host application. Please correct me if I'm wrong.

                             

                            For better understanding of this issue, please do the following 

                            1.Please share the complete project.

                            2.Also, please share the UART prints using teraterm.

                             

                            Best Regards,

                            Jayakrishna

                            • 11. Re: CyCx3UvcAppUSBEventCB never executed
                              MaSt_4567191

                              First of all many thanks for your offer to look at the project file (Attached: project name is 'pinco')

                               

                              Let me explain a bit the background of our system

                               

                              1. I started working on a customer board derived from Denebola with the important addition of an FPGA getting two left-right eye MIPI streams 1280x720@24fps and merging into a single 2560x720p@24fps: this merged MIPI is sent to the CX3. My question is: can host UVC on the PC support such resolution

                               

                              2. Since the FPGA is not working so far (hopefully tomorrow will) , we bypassed the merging device and send the MIPI output of a single sensor to the CX3 MIPI (also to scale down the complexity: make it working with one sensor first, then two sensors + merging). Bypass has bee done by external wires, so I was concerned about signal integrity, still I think the CX can get MIPI data, though corrupted somehow. Still this setup is of concern since I am not sure if UVC host can handle this resolution (it is out of quetion design a special host for this ...).

                               

                              I then report a step forward in the process. I changed the resolution from 1288x728@24fps to 1280x720@24.5fps, guessing that the first combination will not please the UVC host. Now I can then see 'something' on the VLC screen as well as AMCap - after one minute the player started playing, why I cannot explain - so my understanding is that 1288x728@24.5 fps (we were driven to enter this number from aptina documentation and support people). 'Something' mean a lousy image (not video coming from the sensor

                               

                              I removed from the project files the contents of the APIs which may be IP sensitive for eOn/Aptina (the software application is under NDA), the program should be compile clean under eclipse thous; BTW the USB related code is there: please check the parameters and let me know

                               

                              Regards

                              • 12. Re: CyCx3UvcAppUSBEventCB never executed
                                JayakrishnaT_76

                                Hello,

                                 

                                I will have a look through the project and let you know if I find some problems in it. I assume that the bits per pixel is 16. Please correct me if I'm wrong. Also, please confirm which resolution and fps are you trying to stream now.Is it 1280*720 @ 24fps or is it 1280*720 @ 24.5fps or is it 1288*728@24fps or is it 1288*728@24.5fps.

                                 

                                Best Regards,

                                Jayakrishna

                                • 13. Re: CyCx3UvcAppUSBEventCB never executed
                                  MaSt_4567191

                                  >Please correct me if I'm wrong. Also, please confirm which resolution and fps

                                  >are you trying to stream now.Is it 1280*720 @ 24fps or is it 1280*720 @ 24.5fps

                                  >or is it 1288*728@24fps or is it 1288*728@24.5fps.

                                  Thanks. The project I sent is 1288*728@24.5fps: you can see it opening the configuration file. Sorry for the confusion

                                  Regards

                                  • 14. Re: CyCx3UvcAppUSBEventCB never executed
                                    MaSt_4567191

                                    Sorry,

                                    The project I sent is 1280*720@24.5fps: you can see it opening the configuration file. Sorry for the confusion

                                    Regards

                                    1 2 3 4 Previous Next