USB UVC Header Packet Error Bit set every ISO transfer

SteffyR
Posts: 1
Joined: Tue Jul 25, 2023 6:57 am

USB UVC Header Packet Error Bit set every ISO transfer

Postby SteffyR » Thu Aug 10, 2023 4:28 am

Hi all,
Im sorry if this is in wrong topic...
I have been trying to get a Thermal Imaging Camera going with ESP32-S3 devkit.
I have tried almost every example / sample I can find, including examples from the main branch in git hub and previous branches, all with identical results.
The reason I post in hardware is that I think I am beyond limit of the USB speed for this device, but confused to how the camera knows this?
I can connect, I can negotiate a streaming profile, and start streaming, but from then on nearly every ISO packets header has the error bit set.
To me this seems to infer something in the camera is not happy, but it does work fine plugged into a pc or mac.

I have the camera plugged into the USB port on the esp devkit and UART to PC to view terminal.
I have split the the power lines off from the USB cable to power the device, and the esp32 is powered from UART from PC.

The interface descriptor offers little in way of negotiating a slower stream, (bottom of this post)

So the question is to the experts out there, is why would the error bit be set if the host port cannot keep up?
Can anyone suggest anything here please, its driving me insane.
Waiting for device
Device found
*** Device descriptor ***
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0xef
bDeviceSubClass 0x2
bDeviceProtocol 0x1
bMaxPacketSize0 64
idVendor 0xbda
idProduct 0x5830
bcdDevice 1.10
iManufacturer 3
iProduct 1
iSerialNumber 2
bNumConfigurations 1
*** Configuration descriptor ***
bLength 9
bDescriptorType 2
wTotalLength 324
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 4
bmAttributes 0x80
bMaxPower 100mA
*** Interface Association Descriptor ***
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 0xe
bFunctionSubClass 0x3
bFunctionProtocol 0x0
iFunction 5
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 0xe
bInterfaceSubClass 0x1
bInterfaceProtocol 0x0
iInterface 5
*** Class-specific VC Interface Descriptor ***
bLength 0xd
bDescriptorType 0x24
bDescriptorSubType 1
bcdUVC 100
wTotalLength 78
dwClockFrequency 15000000
bFunctionProtocol 1
bInCollection 1
baInterfaceNr 18
*** Input Terminal Descriptor (Camera) ***
bLength 0x12
bDescriptorType 0x24
bDescriptorSubType 2
bTerminalID 1
wTerminalType 201
bAssocTerminal 0
iTerminal 0
wObjectiveFocalLengthMin 0
wObjectiveFocalLengthMax 0
wOcularFocalLength 0
bControlSize 3
bmControls 0xe
*** Processing Unit Descriptor ***
bLength 0xb
bDescriptorType 0x24
bDescriptorSubType 5
bUnitID 2
bSourceID 1
wMaxMultiplier 0
bControlSize 2
bmControls 0x157f
iProcessing 0
bmVideoStandards 0x9
*** Output Terminal Descriptor ***
bLength 0x9
bDescriptorType 0x24
bDescriptorSubType 3
bTerminalID 3
wTerminalType 101
bAssocTerminal 0
bSourceID 4
iTerminal 0
*** Extension Unit Descriptor unsupported, skipping... ***
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 0x3 INT
wMaxPacketSize 16
bInterval 6
*** Class-specific Interrupt Endpoint Descriptor ***
bLength 0x5
bDescriptorType 0x25
bDescriptorSubType 3
wMaxTransferSize 16
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 0xe
bInterfaceSubClass 0x2
bInterfaceProtocol 0x0
iInterface 0
*** Class-specific VC Interface Descriptor ***
bLength 0xe
bDescriptorType 0x24
bDescriptorSubType 1
bcdUVC 5701
wTotalLength 33024
dwClockFrequency 16909056
bFunctionProtocol 0
bInCollection 1
baInterfaceNr 0
*** Selector Unit Descriptor ***
bLength 0x1b
bDescriptorType 0x24
bDescriptorSubType 4
bUnitID 1
bNrInPins 1
baSourceID1 89
baSourceID2 85
iSelector 89
*** Processing Unit Descriptor ***
bLength 0x1e
bDescriptorType 0x24
bDescriptorSubType 5
bUnitID 1
bSourceID 0
wMaxMultiplier 640
bControlSize 224
bmControls 0x1
iProcessing 0
bmVideoStandards 0xe1
*** Output Terminal Descriptor ***
bLength 0xa
bDescriptorType 0x24
bDescriptorSubType 3
bTerminalID 0
wTerminalType 8001
bAssocTerminal 2
bSourceID 224
iTerminal 1
*** VS Color Format Descriptor ***
bLength 0x6
bDescriptorType 0x24
bDescriptorSubType 0xd
bColorPrimaries 0x1
bTransferCharacteristics 1
bMatrixCoefficients 0x4
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 0xe
bInterfaceSubClass 0x2
bInterfaceProtocol 0x0
iInterface 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 0x5 ISOC
wMaxPacketSize 128
bInterval 1
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 2
bNumEndpoints 1
bInterfaceClass 0xe
bInterfaceSubClass 0x2
bInterfaceProtocol 0x0
iInterface 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 0x5 ISOC
wMaxPacketSize 256
bInterval 1
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 3
bNumEndpoints 1
bInterfaceClass 0xe
bInterfaceSubClass 0x2
bInterfaceProtocol 0x0
iInterface 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 0x5 ISOC
wMaxPacketSize 384
bInterval 1
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 4
bNumEndpoints 1
bInterfaceClass 0xe
bInterfaceSubClass 0x2
bInterfaceProtocol 0x0
iInterface 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 0x5 ISOC
wMaxPacketSize 512
bInterval 1
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 5
bNumEndpoints 1
bInterfaceClass 0xe
bInterfaceSubClass 0x2
bInterfaceProtocol 0x0
iInterface 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 0x5 ISOC
wMaxPacketSize 768
bInterval 1
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 6
bNumEndpoints 1
bInterfaceClass 0xe
bInterfaceSubClass 0x2
bInterfaceProtocol 0x0
iInterface 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 0x5 ISOC
wMaxPacketSize 780
bInterval 1
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 7
bNumEndpoints 1
bInterfaceClass 0xe
bInterfaceSubClass 0x2
bInterfaceProtocol 0x0
iInterface 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 0x5 ISOC
wMaxPacketSize 800
bInterval 1
*** String Descriptors ***
iProduct: USB Camera
iManufacturer: Generic
iSerialNumber: 200901010001
DEVICE CONFIGURATION (0bda:5830/2) ---
Status: idle
VideoControl:
bcdUVC: 0x0100
VideoStreaming(1):
bEndpointAddress: 129
Formats:
UncompressedFormat(1)
bits per pixel: 16
GUID: 5955593200001000800000aa00389b71 (YUY2)
default frame: 1
aspect ratio: 0x0
interlace flags: 00
copy protect: 00
FrameDescriptor(1)
capabilities: 00
size: 640x480
bit rate: 14745600-14745600
max frame size: 614400
default interval: 1/3
interval[0]: 1/3
StillFrameDescriptor
bEndPointAddress: 00
wWidth(1) = 640
wHeight(1) = 480
END DEVICE CONFIGURATION

Who is online

Users browsing this forum: Baidu [Spider] and 104 guests