C270 & Octoprint - Prusa MK3 - The webcam server is currently not running

Logitech C270

I can't access the webcam nor starting the webcam server

Edit octopi.txt with different resolutions and frame rate, with or with "-f", "-y", ecc.

Logs

Starting up webcamDaemon...

--- Configuration: ----------------------------

cfg_file: /boot/octopi.txt

camera: auto

usb options: -r 1280x960 -f 30

raspi options: -fps 10

http options: -w ./www-octopi -n --listen 127.0.0.1

Explicitly USB device:


Found video devices:

/dev/video10

/dev/video11

/dev/video12

/dev/video13

/dev/video14

/dev/video15

/dev/video16

/dev/video18

config file='/boot/octopi.txt':USB device was not set in options, start MJPG-streamer with the first found video device: /dev/video10

/root/bin/webcamd: line 184: printf: 0x: invalid hex number

/root/bin/webcamd: line 184: printf: 0x: invalid hex number

<13>Dec 2 12:56:19 root: Starting USB webcam

Checking for VL805 (Raspberry Pi 4)...

  • It seems that you don't have VL805 (Raspberry Pi 4).

There should be no problems with USB (a.k.a. select() timeout)

Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n --listen 127.0.0.1 -i input_uvc.so -r 1280x960 -f 30 -d /dev/video10

MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34

Done bring up all configured video device

Goodbye...

i: Using V4L2 device.: /dev/video10

i: Desired Resolution: 1280 x 960

i: Frames Per Second.: 30

i: Format............: JPEG

i: TV-Norm...........: DEFAULT

Error opening device /dev/video10: video capture not supported.

Init v4L2 failed !! exit fatal

i: init_VideoIn failed

Additional information about your setup (OctoPrint version, OctoPi version, ...)

OctoPrint version : 1.7.3
OctoPi version : 0.18.0
static ip address: 192.168.1.200

Please community help me!
Tnks

It doesn't look like it's seeing the camera as a video device.

SSH to the Pi and run lsusb and see if it is listed, first

Hi Charlie_Powell
this is what came up from lsusb command:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Please note that:

  • the webcam is attached solely to the raspberry pi via micro-usb
  • there are no other power source to the cam
  • the Raspberry Pi Zero 2 W is connected to the Prusa MK3 via solded pins
  • the cam is working just fine when connected to my notebook
  • between the raspberry and the webcam I attached an adapter USB Micro B male to USB A female

Can I do anything differently?

Thank you again for the help.

Just to make sure, you actually attached the cam to the USB data port, not the USB power in port?

You nailed it. As simple as that!
Tomorrow I’ll switch the port and report the follow up.

Thanks to all.
Ciao

Hi Foosel, you were totally right.
I was mistaken with the USB port.

Thank you again. :wink: