Skip to content

Camera does not return data #10

@ShangDali6

Description

@ShangDali6

hello ,I transplanted your project. My camera can be recognized and configured successfully, but there is no data output.
Stuck here

case VIDEO_STATE_DATA_IN:
  
  result = USBH_LL_GetURBState(phost, VIDEO_Handle->camera.Pipe);
  if((result == USBH_URB_DONE) && ((phost->Timer - VIDEO_Handle->camera.timer) >= VIDEO_Handle->camera.Poll))
  {
    VIDEO_Handle->camera.timer = phost->Timer;
     rxlen = USBH_LL_GetLastXferSize(phost, VIDEO_Handle->camera.Pipe);//Return the last transfered packet size.
    video_stream_process_packet((uint16_t)rxlen);
      
    USBH_IsocReceiveData(phost,
                        (uint8_t*)tmp_packet_framebuffer,
                        VIDEO_Handle->camera.EpSize,
                        VIDEO_Handle->camera.Pipe);
  }

The value of result has always been VIDEO_STATE_IDLE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions