Skip to content

Conversation

@garasubo
Copy link
Contributor

@garasubo garasubo commented Apr 3, 2025

USBデバイスが再接続しても大丈夫なようにするデモアプリ

@garasubo garasubo requested review from legokichi and ny-a April 3, 2025 06:01
Copy link
Contributor

@legokichi legokichi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

サポートデバイス3b以降のにしましょう

"libv4lconvert0",
"python3",
"python3-pil",
"python3-numpy"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

全部bullseyeに突っ込んでいいのではという気はする

"target_type": "raspberrypi-bullseye",
"boards": [
"RSPi2B",
"RSPiAlpha",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3b以前はサポート切っていいはず

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

てかbullseye未対応

Copy link
Contributor

@legokichi legokichi Apr 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

抜いたとき

Apr 07 07:56:54 raspberrypi dockerd[610]: time="2025-04-07T07:56:54.288502704+01:00" level=debug msg="attach: stderr: begin"
Apr 07 07:56:54 raspberrypi dockerd[610]: time="2025-04-07T07:56:54.288512131+01:00" level=debug msg="attach: stdout: begin"
Apr 07 07:56:54 raspberrypi dockerd[610]: time="2025-04-07T07:56:54.294569947+01:00" level=debug msg=event module=libcontainerd namespace=moby-165536.0 topic=/tasks/exec-added
Apr 07 07:56:54 raspberrypi dockerd[610]: time="2025-04-07T07:56:54.485104608+01:00" level=debug msg=event module=libcontainerd namespace=moby-165536.0 topic=/tasks/exec-started
Apr 07 07:56:54 raspberrypi dockerd[610]: time="2025-04-07T07:56:54.503740187+01:00" level=debug msg=event module=libcontainerd namespace=moby-165536.0 topic=/tasks/exit
Apr 07 07:56:54 raspberrypi dockerd[610]: time="2025-04-07T07:56:54.504452265+01:00" level=debug msg="attach: stdout: end"
Apr 07 07:56:54 raspberrypi dockerd[610]: time="2025-04-07T07:56:54.504711638+01:00" level=debug msg="attach: stderr: end"
Apr 07 07:56:54 raspberrypi dockerd[610]: time="2025-04-07T07:56:54.504956115+01:00" level=debug msg="attach done"
Apr 07 07:56:54 raspberrypi dockerd[610]: time="2025-04-07T07:56:54.505224394+01:00" level=debug msg="Health check for container 337ce60bd3127e2c91c65e60dd150b59b46af1aca950b22a476aff49215cda55 done (exitCode=0)"
Apr 07 07:56:59 raspberrypi kernel: usb 1-1.1.2: USB disconnect, device number 4
Apr 07 07:56:59 raspberrypi kernel: uvcvideo 1-1.1.2:1.1: Failed to resubmit video URB (-19).
Apr 07 07:56:59 raspberrypi kernel: uvcvideo 1-1.1.2:1.1: Failed to resubmit video URB (-19).
Apr 07 07:56:59 raspberrypi kernel: uvcvideo 1-1.1.2:1.1: Failed to resubmit video URB (-19).
Apr 07 07:56:59 raspberrypi kernel: uvcvideo 1-1.1.2:1.1: Failed to resubmit video URB (-19).
Apr 07 07:56:59 raspberrypi kernel: uvcvideo 1-1.1.2:1.1: Failed to resubmit video URB (-19).
Apr 07 07:56:59 raspberrypi thd[381]: Error reading device '/dev/input/event0'
Apr 07 07:57:00 raspberrypi kernel: usb 1-1.1.2: new high-speed USB device number 6 using dwc_otg
Apr 07 07:57:00 raspberrypi kernel: usb 1-1.1.2: New USB device found, idVendor=056e, idProduct=701a, bcdDevice=10.01
Apr 07 07:57:00 raspberrypi kernel: usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Apr 07 07:57:00 raspberrypi kernel: usb 1-1.1.2: Product: ELECOM 2MP Webcam
Apr 07 07:57:00 raspberrypi kernel: usb 1-1.1.2: Manufacturer: Alcor Micro, Corp.
Apr 07 07:57:00 raspberrypi kernel: usb 1-1.1.2: Found UVC 1.00 device ELECOM 2MP Webcam (056e:701a)
Apr 07 07:57:00 raspberrypi kernel: input: ELECOM 2MP Webcam: ELECOM 2MP W as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0/input/input2
Apr 07 07:57:00 raspberrypi mtp-probe[1829]: checking bus 1, device 6: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2"
Apr 07 07:57:00 raspberrypi mtp-probe[1829]: bus: 1, device: 6 was not an MTP device
Apr 07 07:57:00 raspberrypi systemd-udevd[1822]: controlC1: Process '/usr/sbin/alsactl -E HOME=/run/alsa -E XDG_RUNTIME_DIR=/run/alsa/runtime restore 1' failed with exit code 99.
Apr 07 07:57:00 raspberrypi systemd[940]: Reached target Sound Card.
Apr 07 07:57:00 raspberrypi systemd-udevd[1826]: event0: Process '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed with exit code 1.
Apr 07 07:57:00 raspberrypi mtp-probe[1840]: checking bus 1, device 6: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2"
Apr 07 07:57:00 raspberrypi mtp-probe[1840]: bus: 1, device: 6 was not an MTP device
Apr 07 07:57:01 raspberrypi kernel: usb 1-1.1.2: USB disconnect, device number 6
Apr 07 07:57:01 raspberrypi 337ce60bd312[610]: Error capturing image: Command 'ffmpeg -i /dev/video0 -f image2 -s 320x240 -vframes 1 /tmp/image.jpg -y' returned non-zero exit status 1.
Apr 07 07:57:02 raspberrypi 337ce60bd312[610]: Error capturing image: Command 'ffmpeg -i /dev/video0 -f image2 -s 320x240 -vframes 1 /tmp/image.jpg -y' returned non-zero exit status 1.
Apr 07 07:57:04 raspberrypi 337ce60bd312[610]: Error capturing image: Command 'ffmpeg -i /dev/video0 -f image2 -s 320x240 -vframes 1 /tmp/image.jpg -y' returned non-zero exit status 1.
Apr 07 07:57:04 raspberrypi dockerd[610]: time="2025-04-07T07:57:04.508446839+01:00" level=debug msg="Running health check for container 337ce60bd3127e2c91c65e60dd150b59b46af1aca950b22a476aff49215cda55 ..."
Apr 07 07:57:04 raspberrypi dockerd[610]: time="2025-04-07T07:57:04.508929179+01:00" level=debug msg="starting exec command 90436aa1e0aa6b91d96e330d68f46801a726848631045614714a3aecf99b16cf in container 337ce60bd3127e2c91c65e60dd150b59b46af1aca950b22a476aff49215cda55"
Apr 07 07:57:04 raspberrypi dockerd[610]: time="2025-04-07T07:57:04.513655392+01:00" level=debug msg="attach: stdout: begin"
Apr 07 07:57:04 raspberrypi dockerd[610]: time="2025-04-07T07:57:04.513644247+01:00" level=debug msg="attach: stderr: begin"
Apr 07 07:57:04 raspberrypi dockerd[610]: time="2025-04-07T07:57:04.519708315+01:00" level=debug msg=event module=libcontainerd namespace=moby-165536.0 topic=/tasks/exec-added
Apr 07 07:57:04 raspberrypi dockerd[610]: time="2025-04-07T07:57:04.695019729+01:00" level=debug msg=event module=libcontainerd namespace=moby-165536.0 topic=/tasks/exec-started
Apr 07 07:57:04 raspberrypi dockerd[610]: time="2025-04-07T07:57:04.714040260+01:00" level=debug msg=event module=libcontainerd namespace=moby-165536.0 topic=/tasks/exit
Apr 07 07:57:04 raspberrypi dockerd[610]: time="2025-04-07T07:57:04.714935722+01:00" level=debug msg="attach: stdout: end"
Apr 07 07:57:04 raspberrypi dockerd[610]: time="2025-04-07T07:57:04.714961607+01:00" level=debug msg="attach: stderr: end"
Apr 07 07:57:04 raspberrypi dockerd[610]: time="2025-04-07T07:57:04.715118325+01:00" level=debug msg="attach done"
Apr 07 07:57:04 raspberrypi dockerd[610]: time="2025-04-07T07:57:04.715289521+01:00" level=debug msg="Health check for container 337ce60bd3127e2c91c65e60dd150b59b46af1aca950b22a476aff49215cda55 done (exitCode=0)"
Apr 07 07:57:05 raspberrypi 337ce60bd312[610]: Error capturing image: Command 'ffmpeg -i /dev/video0 -f image2 -s 320x240 -vframes 1 /tmp/image.jpg -y' returned non-zero exit status 1.
Apr 07 07:57:07 raspberrypi 337ce60bd312[610]: Error capturing image: Command 'ffmpeg -i /dev/video0 -f image2 -s 320x240 -vframes 1 /tmp/image.jpg -y' returned non-zero exit status 1.
Apr 07 07:57:08 raspberrypi 337ce60bd312[610]: Error capturing image: Command 'ffmpeg -i /dev/video0 -f image2 -s 320x240 -vframes 1 /tmp/image.jpg -y' returned non-zero exit status 1.
Apr 07 07:57:10 raspberrypi 337ce60bd312[610]: Error capturing image: Command 'ffmpeg -i /dev/video0 -f image2 -s 320x240 -vframes 1 /tmp/image.jpg -y' returned non-zero exit status 1.
Apr 07 07:57:12 raspberrypi 337ce60bd312[610]: Error capturing image: Command 'ffmpeg -i /dev/video0 -f image2 -s 320x240 -vframes 1 /tmp/image.jpg -y' returned non-zero exit status 1.
Apr 07 07:57:13 raspberrypi 337ce60bd312[610]: Error capturing image: Command 'ffmpeg -i /dev/video0 -f image2 -s 320x240 -vframes 1 /tmp/image.jpg -y' returned non-zero exit status 1.
Apr 07 07:57:14 raspberrypi dockerd[610]: time="2025-04-07T07:57:14.718276261+01:00" level=debug msg="Running health check for container 337ce60bd3127e2c91c65e60dd150b59b46af1aca950b22a476aff49215cda55 ..."
Apr 07 07:57:14 raspberrypi dockerd[610]: time="2025-04-07T07:57:14.718836860+01:00" level=debug msg="starting exec command 46c009da0663bd863b5228293a5b7ce98008b154a7ba1ba304a514b04dd62919 in container 337ce60bd3127e2c91c65e60dd150b59b46af1aca950b22a476aff49215cda55"
Apr 07 07:57:14 raspberrypi dockerd[610]: time="2025-04-07T07:57:14.724183067+01:00" level=debug msg="attach: stderr: begin"
Apr 07 07:57:14 raspberrypi dockerd[610]: time="2025-04-07T07:57:14.724161558+01:00" level=debug msg="attach: stdout: begin"

Copy link
Contributor

@legokichi legokichi Apr 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

差し直した時

Apr 07 07:58:47 raspberrypi dockerd[610]: time="2025-04-07T07:58:47.114633889+01:00" level=debug msg="attach: stdout: end"
Apr 07 07:58:47 raspberrypi dockerd[610]: time="2025-04-07T07:58:47.114791751+01:00" level=debug msg="attach: stderr: end"
Apr 07 07:58:47 raspberrypi dockerd[610]: time="2025-04-07T07:58:47.114875083+01:00" level=debug msg="attach done"
Apr 07 07:58:47 raspberrypi dockerd[610]: time="2025-04-07T07:58:47.115053933+01:00" level=debug msg="Health check for container 337ce60bd3127e2c91c65e60dd150b59b46af1aca950b22a476aff49215cda55 done (exitCode=1)"
Apr 07 07:58:48 raspberrypi 337ce60bd312[610]: Error capturing image: Command 'ffmpeg -i /dev/video0 -f image2 -s 320x240 -vframes 1 /tmp/image.jpg -y' returned non-zero exit status 1.
Apr 07 07:58:49 raspberrypi 337ce60bd312[610]: Error capturing image: Command 'ffmpeg -i /dev/video0 -f image2 -s 320x240 -vframes 1 /tmp/image.jpg -y' returned non-zero exit status 1.
Apr 07 07:58:51 raspberrypi 337ce60bd312[610]: Error capturing image: Command 'ffmpeg -i /dev/video0 -f image2 -s 320x240 -vframes 1 /tmp/image.jpg -y' returned non-zero exit status 1.
Apr 07 07:58:52 raspberrypi kernel: usb 1-1.1.2: new high-speed USB device number 7 using dwc_otg
Apr 07 07:58:52 raspberrypi 337ce60bd312[610]: Error capturing image: Command 'ffmpeg -i /dev/video0 -f image2 -s 320x240 -vframes 1 /tmp/image.jpg -y' returned non-zero exit status 1.
Apr 07 07:58:53 raspberrypi kernel: usb 1-1.1.2: New USB device found, idVendor=056e, idProduct=701a, bcdDevice=10.01
Apr 07 07:58:53 raspberrypi kernel: usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Apr 07 07:58:53 raspberrypi kernel: usb 1-1.1.2: Product: ELECOM 2MP Webcam
Apr 07 07:58:53 raspberrypi kernel: usb 1-1.1.2: Manufacturer: Alcor Micro, Corp.
Apr 07 07:58:53 raspberrypi kernel: usb 1-1.1.2: Found UVC 1.00 device ELECOM 2MP Webcam (056e:701a)
Apr 07 07:58:53 raspberrypi kernel: input: ELECOM 2MP Webcam: ELECOM 2MP W as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0/input/input3
Apr 07 07:58:53 raspberrypi mtp-probe[2222]: checking bus 1, device 7: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2"
Apr 07 07:58:53 raspberrypi mtp-probe[2222]: bus: 1, device: 7 was not an MTP device
Apr 07 07:58:53 raspberrypi systemd-udevd[2224]: controlC1: Process '/usr/sbin/alsactl -E HOME=/run/alsa -E XDG_RUNTIME_DIR=/run/alsa/runtime restore 1' failed with exit code 99.
Apr 07 07:58:53 raspberrypi systemd-udevd[2223]: event0: Process '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed with exit code 1.
Apr 07 07:58:53 raspberrypi mtp-probe[2235]: checking bus 1, device 7: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2"
Apr 07 07:58:53 raspberrypi mtp-probe[2235]: bus: 1, device: 7 was not an MTP device
Apr 07 07:58:57 raspberrypi dockerd[610]: time="2025-04-07T07:58:57.117686096+01:00" level=debug msg="Running health check for container 337ce60bd3127e2c91c65e60dd150b59b46af1aca950b22a476aff49215cda55 ..."
Apr 07 07:58:57 raspberrypi dockerd[610]: time="2025-04-07T07:58:57.118145098+01:00" level=debug msg="starting exec command 641ce681215be6e8b5518aae72f5a36433718aec4636d8570d99f0544ba726fa in container 337ce60bd3127e2c91c65e60dd150b59b46af1aca950b22a476aff49215cda55"
Apr 07 07:58:57 raspberrypi dockerd[610]: time="2025-04-07T07:58:57.124337692+01:00" level=debug msg="attach: stderr: begin"
Apr 07 07:58:57 raspberrypi dockerd[610]: time="2025-04-07T07:58:57.124352848+01:00" level=debug msg="attach: stdout: begin"
Apr 07 07:58:57 raspberrypi dockerd[610]: time="2025-04-07T07:58:57.130072430+01:00" level=debug msg=event module=libcontainerd namespace=moby-165536.0 topic=/tasks/exec-added
Apr 07 07:58:57 raspberrypi dockerd[610]: time="2025-04-07T07:58:57.324749101+01:00" level=debug msg=event module=libcontainerd namespace=moby-165536.0 topic=/tasks/exec-started
Apr 07 07:58:57 raspberrypi dockerd[610]: time="2025-04-07T07:58:57.344234002+01:00" level=debug msg=event module=libcontainerd namespace=moby-165536.0 topic=/tasks/exit
Apr 07 07:58:57 raspberrypi dockerd[610]: time="2025-04-07T07:58:57.344756441+01:00" level=debug msg="attach: stdout: end"
Apr 07 07:58:57 raspberrypi dockerd[610]: time="2025-04-07T07:58:57.344941854+01:00" level=debug msg="attach: stderr: end"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants