AnsweredAssumed Answered

Please help me !! Problems with IsocReceiveData

Question asked by linh nguyen on May 26, 2017
Latest reply on Aug 15, 2017 by frerichs.dirk

I am developing a UVC Host FULL Speed Driver in Kit STM32F4 Discovery .

I brought up Webcam and it streaming data.

But when I receive data from Isochronos Endpoint

My source :

USBH_IsocReceiveData(phost,imgBuffer,EpOutSize,pipe_out_uvc);
 uint32_t time_count = phost->Timer;

while (1){

   URB_Status = USBH_LL_GetURBState(phost,pipe_out_uvc);

   if (USBH_URB_DONE == URB_Status && phost->Timer-time_count > tbInterval_stream){

      time_count = phost->Timer;

      uint32_t Xfer_len =USBH_LL_GetLastXferSize (phost, pipe_out_uvc);

      if(Xfer_len){

         USBH_UsrLog("[DEBUG]==========>header size : %d",*imgBuffer);   

      }

 

   }

}

I received event USBH_URB_DONE but Xfer_len always  equal 0 and nothing in imgBuffer.

Please help me fix my problem. Thanks you so much !!!

I using lib usb in STM32Cube FW_F4 V1.16.0

Outcomes