** Camera Model**
Not sure of the model but these are the units I have. The first was the first one installed and it worked fine until I moved the location on my printer. Next time I booted up it was not operating:
What is the problem?
The webcam server is currently not running.
What did you already try to solve it?
I tried unplugging the ribbon cable on both the Pi board and the camera module board and reinserting into the port.
Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)
Webcawebcamd.zip (196.5 KB)
Additional information about your setup (OctoPrint version, OctoPi version, ...)
I have also tried reflashing OctoPi OS on the SD card. Nothing changed.
Is the CSI cable inserted the right way? The silvery contacts need to face away from the Ethernet connector!
Is the CSI cable fully seated?
Did you insert the CSI cable into the Display connector? It needs to be inserted into the CSI connector, which is the one closer to the Ethernet connector.
Is the other end of the CSI cable correctly attached to the camera board?
Is the camera module itself correctly connected to the camera board (see picture below)?
The CSI cable is properly connected at both ends. I double checked that. I am wondering if I possibly damaged the CSI port on either the Pi board or the camera board. Is it possible to short the ports out? If so would switching to a USB webcam be a good solution?
Yes since I'm a Windows guy I am using the desktop mode and VNC into the interface. It's the easiest way for me. Do you think that could have something to do with the problem?
The result from that cmd is:
supported=1 detected=0
Which interface? Octoprint?
You can open it on any devices browser in your home network. You don't need vnc for it.
Just enter http://octopi.local, http://octopi or http://ip-of-the-pi in the address bar.
I was thinking that - if the gpu runs out of vram there can be cam issues.
But now that you posted detected=0 I don't know if that can be the issue.
Let's try to allocate more gpu memory anyway
Edit the config.txt either on your pc or via ssh with sudo nano /boot/config.txt
Change the value in the gpu_mem= line to 512 (256 would probably also work but we just want to be sure).
Save the file (in nano with Ctrl + X -> Y -> enter) and either reboot the pi or put the card back in it and boot it up again.
Okay, this time the get_camera returned:
supported=1 detected=1
But only with the second camera module I have (pic uploaded). The Picam module won't be detected. And still no webcam in OctoPrint.
Found video devices:
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14
/dev/video15
/dev/video16
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>Mar 7 00:00:01 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 640x480 -f 10 -d /dev/video10
MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
i: Using V4L2 device.: /dev/video10
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 10
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
Done bring up all configured video device
Oh my, I'm very sorry to hear that. I hope things are better now.
Funny you suggested that. After I sent my previous message I decided to do just that. So I reflashed the SD card, booted it in the pi, and resetup octoprint. This time I did not install the desktop GUI. So after the reinstall I still have the same issue. The vcgencmd get_camera reports back, supported=1 detected=1 but no streaming available in OctoPrint.
I really think something damaged the CSI port when I was handling the module. It was right after that when it stopped working.
My web cams didn't always seem to be picked up by my pi4 on octoprint. I appear to have fixed it by taking the tick out of the "auto connect on server startup". maybe give this a go.