Great work, spaceone. Thank you for provided information.
Can you compile libuvc (
https://libuvc.github.io/libuvc/group__ctrl.html) and provide output of example (compiled example.c) in src folder?
My output of example is:
UVC initialized
Device found
Device opened
DEVICE CONFIGURATION (2bdf:0102/F10615613) ---
Status: idle
VideoControl:
bcdUVC: 0x0110
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: 256x392
bit rate: 40140800-40140800
max frame size: 200704
default interval: 1/25
interval[0]: 1/25
FrameDescriptor(2)
capabilities: 00
size: 256x192
bit rate: 19660800-19660800
max frame size: 98304
default interval: 1/25
interval[0]: 1/25
FrameDescriptor(3)
capabilities: 00
size: 256x196
bit rate: 20070400-20070400
max frame size: 100352
default interval: 1/25
interval[0]: 1/25
FrameDescriptor(4)
capabilities: 00
size: 256x400
bit rate: 40249600-40249600
max frame size: 201248
default interval: 1/25
interval[0]: 1/25
FrameDescriptor(5)
capabilities: 00
size: 256x196
bit rate: 19688000-19688000
max frame size: 98440
default interval: 1/25
interval[0]: 1/25
FrameDescriptor(6)
capabilities: 00
size: 256x200
bit rate: 20193600-20193600
max frame size: 100968
default interval: 1/25
interval[0]: 1/25
FrameDescriptor(7)
capabilities: 00
size: 192x520
bit rate: 39936000-39936000
max frame size: 199680
default interval: 1/25
interval[0]: 1/25
FrameDescriptor(8)
capabilities: 00
size: 192x400
bit rate: 40664000-40664000
max frame size: 203320
default interval: 1/25
interval[0]: 1/25
MJPEGFormat(2)
bits per pixel: 0
GUID: 4d4a5047000000000000000000000000 (MJPG)
default frame: 1
aspect ratio: 0x0
interlace flags: 00
copy protect: 00
FrameDescriptor(1)
capabilities: 00
size: 120x160
bit rate: 7680000-7680000
max frame size: 38400
default interval: 1/25
interval[0]: 1/25
FrameDescriptor(2)
capabilities: 00
size: 240x320
bit rate: 10240000-10240000
max frame size: 153600
default interval: 1/30
interval[0]: 1/30
FrameDescriptor(3)
capabilities: 00
size: 640x360
bit rate: 10240000-10240000
max frame size: 460800
default interval: 1/30
interval[0]: 1/30
FrameFormat(3)
bits per pixel: 16
GUID: 4832363400001000800000aa00389b71 (H264)
default frame: 1
aspect ratio: 0x0
interlace flags: 00
copy protect: 00
FrameDescriptor(1)
capabilities: 00
size: 240x320
bit rate: 8192000-8192000
max frame size: 0
default interval: 1/30
interval[0]: 1/30
END DEVICE CONFIGURATION
First format: (YUY2) 256x392 25fps
bmHint: 0001
bFormatIndex: 1
bFrameIndex: 1
dwFrameInterval: 400000
wKeyFrameRate: 0
wPFrameRate: 0
wCompQuality: 0
wCompWindowSize: 0
wDelay: 0
dwMaxVideoFrameSize: 200704
dwMaxPayloadTransferSize: 12288
bInterfaceNumber: 1
get_mode: Invalid mode (-51)
Device closed
UVC exited
[
I have "broken" 203u too, but no sad - it work with usb camera application enough to me. But I want to help other users and to learn how I can manage this unit.
Some strange that output of th.py in your camera is the same of my "broken".
Also output of ffmpeg, v4l2-ctl is the same (and serial number of device too).
I try to decompile apk file of ht105-203u and hikmicro viewer by apkedit and search for some initial codes, that it send to unit. But at this moment no luck to me.