VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    CS-USB-IMX307 OpenCV 連續採集影像造成 USB disconnct

    Scheduled Pinned Locked Moved USB camera
    53 Posts 2 Posters 29.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      coolmitch @veye_xumm
      last edited by

      @veye_xumm 我採用了另一個方式測試

      #!/bin/bash
      for ((i=0; i<65535; i++))
      do
      echo $i
      ffmpeg -nostats -loglevel error -y -ss 1 -input_format h264 -s 1280x720 -i /dev/video0 -qscale:v 4 -vframes:v 1 x_$i.jpg
      done

      過程之中,發現偶而會發生 usb disconnect,但試過幾秒鐘以後 /dev/video0 會恢復,/var/log/syslog 供你參考如下。

      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.144960] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.153091] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.161241] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.169387] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.177587] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.185759] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.194705] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.202921] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.211077] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.219321] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.352440] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.360757] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.369166] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.377529] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.385906] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.394391] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.402716] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.411089] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.419444] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.427776] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.436038] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.444389] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.452627] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.460955] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.469267] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.477825] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.486160] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.494606] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.502981] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.511349] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.519751] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.528160] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.537713] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.546059] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.554462] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.562788] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.571129] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.579431] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.587747] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.596009] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
      Jul 26 13:23:41 aaeon2-desktop kernel: [ 5019.604306] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.146409] uvcvideo: Failed to set UVC probe control : -71 (exp. 34).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.157496] usb 1-2.4: USB disconnect, device number 14
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.446407] usb 1-2.4: new high-speed USB device number 15 using tegra-xusb
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.467800] usb 1-2.4: New USB device found, idVendor=12d1, idProduct=4321
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.467806] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.467809] usb 1-2.4: Product: CS-USB-IMX307
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.467813] usb 1-2.4: Manufacturer: Tianjin Zhonganyijia
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.467816] usb 1-2.4: SerialNumber: 2021-04-29-v1.5
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.470465] uvcvideo: Found UVC 1.10 device CS-USB-IMX307 (12d1:4321)
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.471587] uvcvideo 1-2.4:1.0: Entity type for entity Processing 2 was not initialized!
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.479723] uvcvideo 1-2.4:1.0: Entity type for entity Extension 10 was not initialized!
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.487840] uvcvideo 1-2.4:1.0: Entity type for entity Camera 1 was not initialized!
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.495916] input: CS-USB-IMX307 as /devices/70090000.xusb/usb1/1-2/1-2.4/1-2.4:1.0/input/input13
      Jul 26 13:24:40 aaeon2-desktop mtp-probe: checking bus 1, device 15: "/sys/devices/70090000.xusb/usb1/1-2/1-2.4"
      Jul 26 13:24:40 aaeon2-desktop mtp-probe: bus: 1, device: 15 was not an MTP device
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.542905] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.551162] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.559371] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.567559] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.575761] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.584017] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.592309] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.600554] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.608770] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.617072] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.625240] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.633379] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.770479] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.778644] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.787072] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.795848] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.804199] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.812503] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.820840] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.829081] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.837376] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.845630] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.853925] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.862165] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.870514] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.879054] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.887437] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.895810] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.904180] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:24:40 aaeon2-desktop kernel: [ 5078.912498] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:24:41 aaeon2-desktop kernel: [ 5078.920895] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:24:41 aaeon2-desktop kernel: [ 5078.929288] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:24:41 aaeon2-desktop kernel: [ 5078.937663] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:24:41 aaeon2-desktop kernel: [ 5078.946001] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:24:41 aaeon2-desktop kernel: [ 5078.954489] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:24:41 aaeon2-desktop kernel: [ 5078.962813] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
      Jul 26 13:24:41 aaeon2-desktop kernel: [ 5078.971128] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
      Jul 26 13:24:41 aaeon2-desktop kernel: [ 5078.979399] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
      Jul 26 13:24:41 aaeon2-desktop kernel: [ 5078.987747] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
      Jul 26 13:24:41 aaeon2-desktop kernel: [ 5078.996002] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
      Jul 26 13:24:41 aaeon2-desktop kernel: [ 5079.004317] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
      Jul 26 13:41:30 aaeon2-desktop kernel: [ 6088.358117] uvcvideo: Failed to resubmit video URB (-1).
      Jul 26 13:50:55 aaeon2-desktop kernel: [ 6653.807693] uvcvideo: Failed to set UVC probe control : -71 (exp. 34).
      Jul 26 13:50:55 aaeon2-desktop kernel: [ 6653.837631] usb 1-2.4: USB disconnect, device number 15
      Jul 26 13:51:04 aaeon2-desktop kernel: [ 6662.787047] usb 1-2.4: new high-speed USB device number 16 using tegra-xusb
      Jul 26 13:51:04 aaeon2-desktop kernel: [ 6662.808375] usb 1-2.4: New USB device found, idVendor=12d1, idProduct=4321
      Jul 26 13:51:04 aaeon2-desktop kernel: [ 6662.808382] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      Jul 26 13:51:04 aaeon2-desktop kernel: [ 6662.808385] usb 1-2.4: Product: CS-USB-IMX307
      Jul 26 13:51:04 aaeon2-desktop kernel: [ 6662.808389] usb 1-2.4: Manufacturer: Tianjin Zhonganyijia
      Jul 26 13:51:04 aaeon2-desktop kernel: [ 6662.808392] usb 1-2.4: SerialNumber: 2021-04-29-v1.5
      Jul 26 13:51:04 aaeon2-desktop kernel: [ 6662.809783] uvcvideo: Found UVC 1.10 device CS-USB-IMX307 (12d1:4321)
      Jul 26 13:51:04 aaeon2-desktop kernel: [ 6662.810743] uvcvideo 1-2.4:1.0: Entity type for entity Processing 2 was not initialized!
      Jul 26 13:51:04 aaeon2-desktop kernel: [ 6662.821950] uvcvideo 1-2.4:1.0: Entity type for entity Extension 10 was not initialized!
      Jul 26 13:51:04 aaeon2-desktop kernel: [ 6662.830122] uvcvideo 1-2.4:1.0: Entity type for entity Camera 1 was not initialized!
      Jul 26 13:51:04 aaeon2-desktop kernel: [ 6662.838278] input: CS-USB-IMX307 as /devices/70090000.xusb/usb1/1-2/1-2.4/1-2.4:1.0/input/input14
      Jul 26 13:51:04 aaeon2-desktop mtp-probe: checking bus 1, device 16: "/sys/devices/70090000.xusb/usb1/1-2/1-2.4"
      Jul 26 13:51:04 aaeon2-desktop mtp-probe: bus: 1, device: 16 was not an MTP device
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6662.885275] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6662.893367] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6662.901637] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6662.909836] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6662.918044] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6662.926446] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6662.934702] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6662.942881] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6662.951132] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6662.959303] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6662.967467] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.115351] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.123726] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.131948] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.140270] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.148620] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.156904] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.165085] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.173327] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.181513] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.189676] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.197823] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.206008] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.214132] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.222335] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.230681] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.238945] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.247174] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.255483] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.263777] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.272081] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.280342] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.288592] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.296788] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.305055] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.313251] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.321453] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.329581] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.337809] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.346102] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
      Jul 26 13:51:05 aaeon2-desktop kernel: [ 6663.354333] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
      Jul 26 13:51:07 aaeon2-desktop systemd[1]: S

      1 Reply Last reply Reply Quote 0
      • veye_xummV Offline
        veye_xumm @coolmitch
        last edited by

        @coolmitch
        请问,你的关闭,会把jetson nano 和 usb摄像头都断电吗?

        Questions will be answered as soon as possible, please be patient.
        如果你使用中文,请直接用中文提问。
        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

        C 2 Replies Last reply Reply Quote 0
        • C Offline
          coolmitch @veye_xumm
          last edited by

          @veye_xumm jetson nano 使用 systemctl suspend 到休眠狀態,USB 不斷電。

          1 Reply Last reply Reply Quote 0
          • C Offline
            coolmitch @veye_xumm
            last edited by

            @veye_xumm

                    以下是一段 python 程式碼,「開啟」「讀取」「關閉」的程序,cap.releaes() 之後,系統休眠約 54 sec,然後回到 cv2.VideoCapture() 重複一直執行。因為 cv2.VideoCapture() 啟動之後,每秒 30 張影像會一直放進 buffer 中,不讀取會一直佔住。所以為了讀取最新的影像,我會先用 cap.release() 先關閉 video capture。
            
                    # 啟用一個影像擷取
                    cap = cv2.VideoCapture(self.CAM_PORT, cv2.CAP_V4L)
                    cap.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter.fourcc('h','2','6','4'))
                    cap.set(cv2.CAP_PROP_FRAME_WIDTH, 1920)
                    cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 1080)
                    cap.set(cv2.CAP_PROP_FPS, 30)
            
                    # 丟棄前面讀到的過亮的影像
                    for i in range(self.DISCARD_NUM):
                        ret, frame = cap.read()
            
                    # 讀取正常影像
                    ret, frame = cap.read()
            
                    # 儲存影像檔
                    cv2.imwrite(save_to, resized_frame, self.TARGET_JPEG_QUALITY)
            
                    # 關閉影像擷取
                    cap.release()
            
            veye_xummV 1 Reply Last reply Reply Quote 0
            • veye_xummV Offline
              veye_xumm @coolmitch
              last edited by

              @coolmitch
              我现在基本的判断,是摄像头这端内存资源管理的问题,类似于内存泄漏. 我已经安排排查此问题,需要一定的时间.

              Questions will be answered as soon as possible, please be patient.
              如果你使用中文,请直接用中文提问。
              May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

              C 2 Replies Last reply Reply Quote 0
              • C Offline
                coolmitch @veye_xumm
                last edited by

                @veye_xumm
                提供一些線索...這是 /var/log/syslog 的一些資訊

                [ 4961.933476] usb 1-2.4: USB disconnect, device number 12
                [ 4970.882438] usb 1-2.4: new high-speed USB device number 13 using tegra-xusb
                [ 4970.903606] usb 1-2.4: New USB device found, idVendor=12d1, idProduct=4321
                [ 4970.903614] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
                [ 4970.903617] usb 1-2.4: Product: CS-USB-IMX307
                [ 4970.903621] usb 1-2.4: Manufacturer: Tianjin Zhonganyijia
                [ 4970.903624] usb 1-2.4: SerialNumber: 2021-04-29-v1.5
                [ 4970.905040] uvcvideo: Found UVC 1.10 device CS-USB-IMX307 (12d1:4321)
                [ 4970.905982] uvcvideo 1-2.4:1.0: Entity type for entity Processing 2 was not initialized!
                [ 4970.917193] uvcvideo 1-2.4:1.0: Entity type for entity Extension 10 was not initialized!
                [ 4970.925351] uvcvideo 1-2.4:1.0: Entity type for entity Camera 1 was not initialized!
                [ 4970.933539] input: CS-USB-IMX307 as /devices/70090000.xusb/usb1/1-2/1-2.4/1-2.4:1.0/input/input11
                [ 4970.979741] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4970.987867] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4970.996011] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.004088] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.012257] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.020492] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.028706] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.036895] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.045066] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.053206] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.061446] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.069795] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.078037] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.086199] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.094521] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.102697] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 4971.110911] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 4971.260231] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 4971.268496] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 4971.276995] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 4971.285387] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 4971.293860] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 4971.302262] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 4971.310654] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 4971.319020] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 4971.327543] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 4971.335948] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 4971.344292] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 4971.352674] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 4971.361012] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 4971.369406] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 4971.377790] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 4971.386318] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 4971.394660] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 4971.403045] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 4971.411374] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 4971.419670] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 4971.427938] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 4971.436250] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 4971.444499] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 4971.452928] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 5018.765475] usb 1-2.4: USB disconnect, device number 13
                [ 5019.050465] usb 1-2.4: new high-speed USB device number 14 using tegra-xusb
                [ 5019.071859] usb 1-2.4: New USB device found, idVendor=12d1, idProduct=4321
                [ 5019.071865] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
                [ 5019.071869] usb 1-2.4: Product: CS-USB-IMX307
                [ 5019.071872] usb 1-2.4: Manufacturer: Tianjin Zhonganyijia
                [ 5019.071875] usb 1-2.4: SerialNumber: 2021-04-29-v1.5
                [ 5019.074779] uvcvideo: Found UVC 1.10 device CS-USB-IMX307 (12d1:4321)
                [ 5019.075927] uvcvideo 1-2.4:1.0: Entity type for entity Processing 2 was not initialized!
                [ 5019.084098] uvcvideo 1-2.4:1.0: Entity type for entity Extension 10 was not initialized!
                [ 5019.092210] uvcvideo 1-2.4:1.0: Entity type for entity Camera 1 was not initialized!
                [ 5019.100251] input: CS-USB-IMX307 as /devices/70090000.xusb/usb1/1-2/1-2.4/1-2.4:1.0/input/input12
                [ 5019.144960] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.153091] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.161241] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.169387] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.177587] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.185759] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.194705] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.202921] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.211077] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.219321] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.352440] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.360757] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.369166] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.377529] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.385906] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.394391] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5019.402716] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5019.411089] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5019.419444] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5019.427776] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5019.436038] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5019.444389] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5019.452627] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5019.460955] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5019.469267] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5019.477825] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5019.486160] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5019.494606] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5019.502981] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5019.511349] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5019.519751] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5019.528160] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5019.537713] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5019.546059] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5019.554462] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5019.562788] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 5019.571129] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 5019.579431] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 5019.587747] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 5019.596009] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 5019.604306] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 5078.146409] uvcvideo: Failed to set UVC probe control : -71 (exp. 34).
                [ 5078.157496] usb 1-2.4: USB disconnect, device number 14
                [ 5078.446407] usb 1-2.4: new high-speed USB device number 15 using tegra-xusb
                [ 5078.467800] usb 1-2.4: New USB device found, idVendor=12d1, idProduct=4321
                [ 5078.467806] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
                [ 5078.467809] usb 1-2.4: Product: CS-USB-IMX307
                [ 5078.467813] usb 1-2.4: Manufacturer: Tianjin Zhonganyijia
                [ 5078.467816] usb 1-2.4: SerialNumber: 2021-04-29-v1.5
                [ 5078.470465] uvcvideo: Found UVC 1.10 device CS-USB-IMX307 (12d1:4321)
                [ 5078.471587] uvcvideo 1-2.4:1.0: Entity type for entity Processing 2 was not initialized!
                [ 5078.479723] uvcvideo 1-2.4:1.0: Entity type for entity Extension 10 was not initialized!
                [ 5078.487840] uvcvideo 1-2.4:1.0: Entity type for entity Camera 1 was not initialized!
                [ 5078.495916] input: CS-USB-IMX307 as /devices/70090000.xusb/usb1/1-2/1-2.4/1-2.4:1.0/input/input13
                [ 5078.542905] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.551162] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.559371] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.567559] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.575761] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.584017] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.592309] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.600554] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.608770] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.617072] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.625240] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.633379] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.770479] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.778644] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.787072] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.795848] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 5078.804199] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5078.812503] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5078.820840] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5078.829081] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5078.837376] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5078.845630] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5078.853925] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5078.862165] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5078.870514] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 5078.879054] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5078.887437] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5078.895810] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5078.904180] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5078.912498] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5078.920895] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5078.929288] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5078.937663] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5078.946001] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5078.954489] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 5078.962813] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 5078.971128] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 5078.979399] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 5078.987747] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 5078.996002] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 5079.004317] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 6088.358117] uvcvideo: Failed to resubmit video URB (-1).
                [ 6653.807693] uvcvideo: Failed to set UVC probe control : -71 (exp. 34).
                [ 6653.837631] usb 1-2.4: USB disconnect, device number 15
                [ 6662.787047] usb 1-2.4: new high-speed USB device number 16 using tegra-xusb
                [ 6662.808375] usb 1-2.4: New USB device found, idVendor=12d1, idProduct=4321
                [ 6662.808382] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
                [ 6662.808385] usb 1-2.4: Product: CS-USB-IMX307
                [ 6662.808389] usb 1-2.4: Manufacturer: Tianjin Zhonganyijia
                [ 6662.808392] usb 1-2.4: SerialNumber: 2021-04-29-v1.5
                [ 6662.809783] uvcvideo: Found UVC 1.10 device CS-USB-IMX307 (12d1:4321)
                [ 6662.810743] uvcvideo 1-2.4:1.0: Entity type for entity Processing 2 was not initialized!
                [ 6662.821950] uvcvideo 1-2.4:1.0: Entity type for entity Extension 10 was not initialized!
                [ 6662.830122] uvcvideo 1-2.4:1.0: Entity type for entity Camera 1 was not initialized!
                [ 6662.838278] input: CS-USB-IMX307 as /devices/70090000.xusb/usb1/1-2/1-2.4/1-2.4:1.0/input/input14
                [ 6662.885275] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6662.893367] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6662.901637] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6662.909836] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6662.918044] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6662.926446] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6662.934702] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6662.942881] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6662.951132] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6662.959303] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6662.967467] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6663.115351] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6663.123726] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6663.131948] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6663.140270] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6663.148620] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 6663.156904] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 6663.165085] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 6663.173327] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 6663.181513] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 6663.189676] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 6663.197823] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 6663.206008] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 6663.214132] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 6663.222335] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 6663.230681] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 6663.238945] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 6663.247174] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 6663.255483] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 6663.263777] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 6663.272081] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 6663.280342] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 6663.288592] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 6663.296788] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 6663.305055] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 6663.313251] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 6663.321453] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 6663.329581] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 6663.337809] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 6663.346102] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 6663.354333] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 7342.477650] usb 1-2.4: USB disconnect, device number 16
                [ 7342.844167] usb 1-2.4: new high-speed USB device number 17 using tegra-xusb
                [ 7342.865519] usb 1-2.4: New USB device found, idVendor=12d1, idProduct=4321
                [ 7342.865525] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
                [ 7342.865528] usb 1-2.4: Product: CS-USB-IMX307
                [ 7342.865532] usb 1-2.4: Manufacturer: Tianjin Zhonganyijia
                [ 7342.865535] usb 1-2.4: SerialNumber: 2021-04-29-v1.5
                [ 7342.866898] uvcvideo: Found UVC 1.10 device CS-USB-IMX307 (12d1:4321)
                [ 7342.867828] uvcvideo 1-2.4:1.0: Entity type for entity Processing 2 was not initialized!
                [ 7342.879045] uvcvideo 1-2.4:1.0: Entity type for entity Extension 10 was not initialized!
                [ 7342.887191] uvcvideo 1-2.4:1.0: Entity type for entity Camera 1 was not initialized!
                [ 7342.895228] input: CS-USB-IMX307 as /devices/70090000.xusb/usb1/1-2/1-2.4/1-2.4:1.0/input/input15
                [ 7342.939501] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7342.947675] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7342.955795] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7342.963880] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7342.972045] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7342.981108] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7342.989412] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7342.997634] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7343.005864] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7343.014096] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7343.022235] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7343.030360] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7343.162439] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7343.170627] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7343.179022] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7343.187333] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7343.195549] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7343.203782] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7343.211991] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7343.220211] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7343.228434] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7343.236689] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7343.244938] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7343.253222] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7343.261516] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7343.270060] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7343.278414] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7343.286810] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7343.295181] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7343.303548] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7343.311882] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7343.320300] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7343.328629] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7343.337016] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7343.345382] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7343.353774] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 7343.362036] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 7343.370356] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 7343.378604] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 7343.386896] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 7343.395186] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 7753.613657] usb 1-2.4: USB disconnect, device number 17
                [ 7753.906891] usb 1-2.4: new high-speed USB device number 18 using tegra-xusb
                [ 7753.928150] usb 1-2.4: New USB device found, idVendor=12d1, idProduct=4321
                [ 7753.928156] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
                [ 7753.928159] usb 1-2.4: Product: CS-USB-IMX307
                [ 7753.928163] usb 1-2.4: Manufacturer: Tianjin Zhonganyijia
                [ 7753.928166] usb 1-2.4: SerialNumber: 2021-04-29-v1.5
                [ 7753.929585] uvcvideo: Found UVC 1.10 device CS-USB-IMX307 (12d1:4321)
                [ 7753.930559] uvcvideo 1-2.4:1.0: Entity type for entity Processing 2 was not initialized!
                [ 7753.939037] uvcvideo 1-2.4:1.0: Entity type for entity Extension 10 was not initialized!
                [ 7753.947168] uvcvideo 1-2.4:1.0: Entity type for entity Camera 1 was not initialized!
                [ 7753.955321] input: CS-USB-IMX307 as /devices/70090000.xusb/usb1/1-2/1-2.4/1-2.4:1.0/input/input16
                [ 7754.002503] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.010592] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.018985] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.027163] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.035381] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.043617] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.054862] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.063064] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.071327] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.079595] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.212479] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.220778] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.229277] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.237661] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.246054] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.254522] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                [ 7754.262867] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7754.271184] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7754.279469] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7754.287775] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7754.296068] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7754.304370] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7754.312554] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7754.320775] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7754.328988] uvcvideo: Failed to query (GET_DEF) UVC control 4 on unit 2: -32 (exp. 2).
                [ 7754.337448] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7754.345632] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7754.353887] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7754.362624] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7754.371018] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7754.379358] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7754.387774] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7754.396119] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7754.404543] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7754.412884] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                [ 7754.421265] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 7754.429508] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 7754.437820] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 2: -32 (exp. 2).
                [ 7754.446090] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 7754.454384] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
                [ 7754.462685] uvcvideo: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).

                [21453.263169] Call trace:
                [21453.263173] [<ffffff80082f5480>] sysfs_remove_group+0x98/0xa0
                [21453.263177] [<ffffff80082f54c4>] sysfs_remove_groups+0x3c/0x58
                [21453.263180] [<ffffff800877af94>] device_remove_attrs+0x5c/0x80
                [21453.263183] [<ffffff800877bcd0>] device_del+0x108/0x248
                [21453.263187] [<ffffff8008ad0f64>] __input_unregister_device+0x134/0x158
                [21453.263190] [<ffffff8008ad1d2c>] input_unregister_device+0x5c/0x80
                [21453.263203] [<ffffff80011e092c>] uvc_status_cleanup+0x3c/0x48 [uvcvideo]
                [21453.263213] [<ffffff80011d53e8>] 0xffffff80011d53e8
                [21453.263224] [<ffffff80011d5640>] 0xffffff80011d5640
                [21453.263227] [<ffffff8008b171a8>] v4l2_device_release+0xd0/0x110
                [21453.263230] [<ffffff800877b124>] device_release+0x3c/0x98
                [21453.263234] [<ffffff800845e5cc>] kobject_put+0x94/0x1e8
                [21453.263237] [<ffffff800877b624>] put_device+0x24/0x30
                [21453.263239] [<ffffff8008b16448>] v4l2_release+0x60/0xa0
                [21453.263243] [<ffffff800825e7f8>] __fput+0x90/0x1d0
                [21453.263247] [<ffffff800825e9b0>] ____fput+0x20/0x30
                [21453.263252] [<ffffff80080d8d84>] task_work_run+0xbc/0xd8
                [21453.263256] [<ffffff800808b2ec>] do_notify_resume+0xa4/0xb0
                [21453.263259] [<ffffff800808379c>] work_pending+0x8/0x10

                1 Reply Last reply Reply Quote 0
                • C Offline
                  coolmitch @veye_xumm
                  last edited by

                  @veye_xumm
                  希望有改版時,對於 uvcvideo 的參數也能夠支援。目前我無法對 power_line_frequency 做設定,對於不支援這些參數這點我非常困擾。以下是對 CS-USB-IMX307 (/dev/video0) 以及另一款 USB Camera module (/dev/video1) 的比較

                  v4l2-ctl -d /dev/video0 -list-ctrls
                  VIDIOC_S_INPUT: failed: Device or resource busy
                  brightness 0x00980900 (int) : min=0 max=100 step=1 default=50 value=50
                  contrast 0x00980901 (int) : min=0 max=100 step=1 default=50 value=50
                  saturation 0x00980902 (int) : min=0 max=100 step=1 default=50 value=50
                  hue 0x00980903 (int) : min=0 max=100 step=1 default=50 value=50
                  error 5 getting ctrl White Balance Temperature, Auto
                  aaeon@aaeon2-desktop:~$ v4l2-ctl -d /dev/video1 -list-ctrls
                  Video input set to 0 (Camera 1: Camera, ok)
                  brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0
                  contrast 0x00980901 (int) : min=0 max=100 step=1 default=38 value=38
                  saturation 0x00980902 (int) : min=0 max=100 step=1 default=60 value=60
                  hue 0x00980903 (int) : min=-180 max=180 step=1 default=0 value=0
                  white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1
                  gamma 0x00980910 (int) : min=100 max=500 step=1 default=440 value=440
                  gain 0x00980913 (int) : min=0 max=128 step=1 default=40 value=40
                  %(#ff0000)[power_line_frequency 0x00980918 (menu) : min=0 max=2 default=1 value=1]
                  white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=10 default=4600 value=4600 flags=inactive
                  sharpness 0x0098091b (int) : min=0 max=100 step=1 default=80 value=80
                  backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=0 value=1
                  exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3
                  exposure_absolute 0x009a0902 (int) : min=50 max=10000 step=1 default=166 value=50 flags=inactive
                  exposure_auto_priority 0x009a0903 (bool) : default=0 value=1
                  focus_absolute 0x009a090a (int) : min=0 max=1023 step=1 default=68 value=68 flags=inactive
                  focus_auto 0x009a090c (bool) : default=1 value=1

                  veye_xummV 1 Reply Last reply Reply Quote 0
                  • veye_xummV Offline
                    veye_xumm @coolmitch
                    last edited by

                    @coolmitch
                    这个问题,可能是v4l2-ctl在一个一个查询参数配置的时候,遇到不支持的参数之后就停掉了。实际摄像头是支持power_line_frequency 的,要不然我们用pc的软件也会显示不支持。
                    当然怎样通过命令行去配置,我现在只能想到C语言调用v4l2接口一途。

                    Questions will be answered as soon as possible, please be patient.
                    如果你使用中文,请直接用中文提问。
                    May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                    C 1 Reply Last reply Reply Quote 0
                    • C Offline
                      coolmitch @veye_xumm
                      last edited by

                      @veye_xumm 一般是可以這樣設定
                      v4l2-ctl -d /dev/video1 --set-ctrl=power_line_frequency=2
                      不會報錯誤訊息

                      但我對 CS-USB-IMX307 設定時,回應是
                      v4l2-ctl -d /dev/video0 --set-ctrl=power_line_frequency=2
                      unknown control 'power_line_frequency'

                      對了,我去下載你說那個 potplayer 但畫面長不一樣,是不是版本不同?我找不到設定的地方....

                      veye_xummV 1 Reply Last reply Reply Quote 0
                      • veye_xummV Offline
                        veye_xumm @coolmitch
                        last edited by

                        @coolmitch
                        可以参考一下这篇文章:
                        http://wiki.veye.cc/index.php/Windows系统下怎样查看USB摄像头视频

                        另外,我这边对opencv和python不太熟。使用你给的ffmpeg的方法,的确重现了一次问题。
                        现在我的结论是,并不是内存泄漏,需要进一步查找,困难度比预期的要高。
                        有没有更快重现问题的方法?

                        Questions will be answered as soon as possible, please be patient.
                        如果你使用中文,请直接用中文提问。
                        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                        C 1 Reply Last reply Reply Quote 0
                        • C Offline
                          coolmitch @veye_xumm
                          last edited by

                          @veye_xumm
                          我用 ffmpeg 看到的錯誤訊息跟 python3+opencv 跑出來的有點不太一樣。但都需要跑很久(每次都大概需要 2~3hrs 左右)可以重現。(本來每分鐘跑一個循環需要 2 天半)。如果我給你 python3 的程式碼,你那邊能夠執行嗎?(需要有 opencv 安裝好)

                          veye_xummV 1 Reply Last reply Reply Quote 0
                          • veye_xummV Offline
                            veye_xumm @coolmitch
                            last edited by

                            @coolmitch
                            我今天安装了一个3.2.0版本的opencv,跑你之前给的例程不行。
                            安装4.5.2的版本,失败了。

                            Questions will be answered as soon as possible, please be patient.
                            如果你使用中文,请直接用中文提问。
                            May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                            C 1 Reply Last reply Reply Quote 0
                            • C Offline
                              coolmitch @veye_xumm
                              last edited by

                              @veye_xumm
                              我重寫一個 python3 程式給你。照理沒有一定要 4.5.2,但你可以試看看 https://qengineering.eu/install-opencv-4.5-on-jetson-nano.html
                              我是照這個步驟編譯的。編譯過程一定要把 swap 打開,不然虛擬記憶體會不夠用。

                              veye_xummV 1 Reply Last reply Reply Quote 0
                              • veye_xummV Offline
                                veye_xumm @coolmitch
                                last edited by

                                @coolmitch
                                我也是按照这个步骤做的。但是cmake阶段报错了。😰

                                Questions will be answered as soon as possible, please be patient.
                                如果你使用中文,请直接用中文提问。
                                May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                                C 1 Reply Last reply Reply Quote 0
                                • C Offline
                                  coolmitch @veye_xumm
                                  last edited by

                                  @veye_xumm cmake 可能需要重新安裝新版。
                                  參考這個(我有點忘記更新 cmake 的程序了)
                                  https://stackoverflow.com/questions/49859457/how-to-reinstall-the-latest-cmake-version

                                  ----------------- BEGIN imx307_debug.py --------------------

                                  import cv2

                                  def run_once():

                                  cap = cv2.VideoCapture('/dev/video0', cv2.CAP_V4L)
                                  # cap.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter.fourcc('M','J','P','G'))
                                  cap.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter.fourcc('h','2','6','4'))
                                  cap.set(cv2.CAP_PROP_FRAME_WIDTH, 1920)
                                  cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 1080)
                                  cap.set(cv2.CAP_PROP_FPS, 30)
                                  
                                  # 讀取 10 個 frames
                                  for i in range(10):
                                      ret, frame = cap.read()
                                  
                                  cap.release()
                                  

                                  def main():
                                  cap_count = 0
                                  while True:
                                  run_once()
                                  print('-- %d --' % cap_count)
                                  cap_count += 1

                                  if name == 'main':
                                  main()

                                  ----------------- END imx307_debug.py --------------------

                                  veye_xummV 1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    coolmitch
                                    last edited by

                                    重新把程式碼排版ㄧ下...

                                    #! /usr/bin/python3
                                    import cv2
                                    
                                    def run_once():
                                    
                                        cap = cv2.VideoCapture('/dev/video0', cv2.CAP_V4L)
                                        # cap.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter.fourcc('M','J','P','G'))
                                        cap.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter.fourcc('h','2','6','4'))
                                        cap.set(cv2.CAP_PROP_FRAME_WIDTH, 1920)
                                        cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 1080)
                                        cap.set(cv2.CAP_PROP_FPS, 30)
                                    
                                        # 讀取 10 個 frames
                                        for i in range(10):
                                            ret, frame = cap.read()
                                    
                                        cap.release()
                                    
                                    def main():
                                        cap_count = 0
                                        while True:
                                            run_once()
                                            print('-- %d --' % cap_count)
                                            cap_count += 1
                                    
                                    if __name__ == '__main__':
                                        main()
                                    
                                    veye_xummV 1 Reply Last reply Reply Quote 0
                                    • veye_xummV Offline
                                      veye_xumm @coolmitch
                                      last edited by

                                      @coolmitch
                                      请问你的cmake版本是?
                                      我的是3.10.2

                                      Questions will be answered as soon as possible, please be patient.
                                      如果你使用中文,请直接用中文提问。
                                      May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                                      C 1 Reply Last reply Reply Quote 0
                                      • veye_xummV Offline
                                        veye_xumm @coolmitch
                                        last edited by

                                        @coolmitch
                                        我更新了一下cmake,还是编译不过。
                                        anyway,这事先放一放。
                                        我现在改了一个版本的固件,用ffmpeg循环测试的方法,测试到6000+次数,还是稳定的。
                                        请你也升级并老化测试一下:

                                        下载链接:
                                        https://www.mediafire.com/file/nnysng0map7jnf0/dimaging_upgrade.bin/file

                                        升级方法:
                                        http://wiki.veye.cc/index.php/USB升级固件方法

                                        Questions will be answered as soon as possible, please be patient.
                                        如果你使用中文,请直接用中文提问。
                                        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                                        C 1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          coolmitch @veye_xumm
                                          last edited by

                                          @veye_xumm
                                          cmake --version
                                          cmake version 3.10.2

                                          CMake suite maintained and supported by Kitware (kitware.com/cmake).
                                          我的也是 3.10.2
                                          所以會不會是有什麼 dependent lib 沒有安裝完全?

                                          1 Reply Last reply Reply Quote 0
                                          • C Offline
                                            coolmitch @veye_xumm
                                            last edited by

                                            @veye_xumm
                                            升級後,開機看到這個
                                            [ 48.421580] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                                            [ 53.659534] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                                            [ 53.672858] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
                                            [ 53.681295] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                                            [ 89.889940] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
                                            [ 410.317273] uvcvideo: Failed to resubmit video URB (-1).

                                            不過我還是讓他去跑著測試了...
                                            今晚先用 python3 的程式跑跑看...

                                            veye_xummV 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • First post
                                              Last post