Skip to content

uvc bulk #2139

@rrrrrrobot

Description

@rrrrrrobot

Operating System

Linux

Board

stm32f746g-disco

Firmware

/device/video_capture
commit:433ffe2152ea3763fcd8d5b108f694d2c6cb826d
hs mode

What happened ?

ubuntu cannot enable UVC BULK transport
Don't support Linux?
Windows supports the display of images

How to reproduce ?

run demo
hs mode
CFG_TUD_VIDEO_STREAMING_EP_BUFSIZE 512

:~$ v4l2-ctl --device=/dev/video0 --set-fmt-video=width=640,height=480,pixelformat=YUYV --stream-mmap --stream-to=file.raw
VIDIOC_STREAMON returned -1 (Cannot allocate memory)

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

USBD Setup Received 80 00 00 00 00 00 02 00
Get Status
Queue EP 80 with 2 bytes ...
USBD Xfer Complete on EP 80 with 2 bytes
Queue EP 00 with 0 bytes ...
USBD Xfer Complete on EP 00 with 0 bytes

USBD Setup Received 21 01 00 01 01 00 30 00
VIDEO control request
Queue EP 00 with 48 bytes ...
USBD Xfer Complete on EP 00 with 48 bytes
0000: 01 00 01 01 10 27 00 00 00 00 00 00 00 00 00 00 |.....'..........|
0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
VIDEO control complete
Queue EP 80 with 0 bytes ...
USBD Xfer Complete on EP 80 with 0 bytes

USBD Setup Received A1 82 00 01 01 00 30 00
VIDEO control request
Queue EP 80 with 48 bytes ...
USBD Xfer Complete on EP 80 with 48 bytes
VIDEO control complete
Queue EP 00 with 0 bytes ...
USBD Xfer Complete on EP 00 with 0 bytes

USBD Setup Received A1 83 00 01 01 00 30 00
VIDEO control request
Queue EP 80 with 48 bytes ...
USBD Xfer Complete on EP 80 with 48 bytes
VIDEO control complete
Queue EP 00 with 0 bytes ...
USBD Xfer Complete on EP 00 with 0 bytes

USBD Setup Received 21 01 00 01 01 00 30 00
VIDEO control request
Queue EP 00 with 48 bytes ...
USBD Xfer Complete on EP 00 with 48 bytes
0000: 01 00 01 01 10 27 00 00 00 00 00 00 01 00 00 00 |.....'..........|
0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
VIDEO control complete
Queue EP 80 with 0 bytes ...
USBD Xfer Complete on EP 80 with 0 bytes

USBD Setup Received A1 81 00 01 01 00 30 00
VIDEO control request
Queue EP 80 with 48 bytes ...
USBD Xfer Complete on EP 80 with 48 bytes
VIDEO control complete
Queue EP 00 with 0 bytes ...
USBD Xfer Complete on EP 00 with 0 bytes

USBD Setup Received 21 01 00 02 01 00 30 00
VIDEO control request
Queue EP 00 with 48 bytes ...
USBD Xfer Complete on EP 00 with 48 bytes
0000: 01 00 01 01 10 27 00 00 01 00 00 00 01 00 01 00 |.....'..........|
0010: 00 00 00 60 09 00 00 02 00 00 C0 FC 9B 01 03 01 |...`............|
0020: 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
VIDEO control complete
Queue EP 80 with 0 bytes ...
Queue EP 81 with 2048 bytes ...
USBD Xfer Complete on EP 80 with 0 bytes

USBD Setup Received 01 0B 00 00 01 00 00 00
Set Interface
VIDEO control request
reopen VS 0
CLOSING Endpoint: 0x81
close EP81
Open EP 81 with Size = 512
Allocated 512 bytes at offset 3520
open EP81
Queue EP 80 with 0 bytes ...
USBD Xfer Complete on EP 80 with 0 bytes

Screenshots

No response

I have checked existing issues, dicussion and documentation

  • I confirm I have checked existing issues, dicussion and documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions