AiPi-Cam基础上,打开了set(CONFIG_CHERRYUSB 1),串口log里面看到如下:
[32m[I/USB] New high-speed device on Hub 1, Port 1 connected
[0m[32m[I/USB] New device found,idVendor:0c45,idProduct:1915,bcdDevice:0100
[0m[32m[I/USB] The device has 2 interfaces
[0m[32m[I/USB] Enumeration success, start loading class driver
[0m[32m[I/USB] Loading video_ctrl class driver
[0m[32m[I/USB] Close video device
[0m[32m[I/USB] ============= Video device information ===================
[0m[32m[I/USB] bcdVDC:0100
[0m[32m[I/USB] Num of altsettings:7
[0m[32m[I/USB] Ingore altsetting 0
[0m[32m[I/USB] Altsetting:1, Ep=81 Attr=05 Mps=128 Interval=01 Mult=00
[0m[32m[I/USB] Altsetting:2, Ep=81 Attr=05 Mps=256 Interval=01 Mult=00
[0m[32m[I/USB] Altsetting:3, Ep=81 Attr=05 Mps=800 Interval=01 Mult=00
[0m[32m[I/USB] Altsetting:4, Ep=81 Attr=05 Mps=800 Interval=01 Mult=01
[0m[32m[I/USB] Altsetting:5, Ep=81 Attr=05 Mps=800 Interval=01 Mult=02
[0m[32m[I/USB] Altsetting:6, Ep=81 Attr=05 Mps=1024 Interval=01 Mult=02
[0m[32m[I/USB] bNumFormats:2
[0m[32m[I/USB] FormatIndex:1
[0m[32m[I/USB] FormatType:mjpeg
[0m[32m[I/USB] bNumFrames:4
[0m[32m[I/USB] Resolution:
[0m[32m[I/USB] FrameIndex:1
[0m[32m[I/USB] wWidth: 1280, wHeight: 720
[0m[32m[I/USB] FrameIndex:2
[0m[32m[I/USB] wWidth: 800, wHeight: 600
[0m[32m[I/USB] FrameIndex:3
[0m[32m[I/USB] wWidth: 640, wHeight: 480
[0m[32m[I/USB] FrameIndex:4
[0m[32m[I/USB] wWidth: 320, wHeight: 240
[0m[32m[I/USB] FormatIndex:2
[0m[32m[I/USB] FormatType:uncompressed
[0m[32m[I/USB] bNumFrames:10
[0m[32m[I/USB] Resolution:
[0m[32m[I/USB] FrameIndex:1
[0m[32m[I/USB] wWidth: 1280, wHeight: 720
[0m[32m[I/USB] FrameIndex:2
[0m[32m[I/USB] wWidth: 960, wHeight: 540
[0m[32m[I/USB] FrameIndex:3
[0m[32m[I/USB] wWidth: 848, wHeight: 480
[0m[32m[I/USB] FrameIndex:4
[0m[32m[I/USB] wWidth: 800, wHeight: 600
[0m[32m[I/USB] FrameIndex:5
[0m[32m[I/USB] wWidth: 640, wHeight: 480
[0m[32m[I/USB] FrameIndex:6
[0m[32m[I/USB] wWidth: 640, wHeight: 360
[0m[32m[I/USB] FrameIndex:7
[0m[32m[I/USB] wWidth: 424, wHeight: 240
[0m[32m[I/USB] FrameIndex:8
[0m[32m[I/USB] wWidth: 320, wHeight: 240
[0m[32m[I/USB] FrameIndex:9
[0m[32m[I/USB] wWidth: 320, wHeight: 180
[0m[32m[I/USB] FrameIndex:10
[0m[32m[I/USB] wWidth: 160, wHeight: 120
[0m[32m[I/USB] ============= Video device information ===================
[0m[32m[I/USB] Register Video Class:/dev/video0
[0m[32m[I/USB] Loading video_streaming class driver
[0mmjpeg_frame_pop timeout!
mjpeg_frame_pop timeout!
mjpeg_frame_pop timeout!
能检测到摄像头,但是没有图像出来,是什么原因呢? |