Problem with webcam (error connecting)

since one of the last updates (machine tab) I have a problem with connecting to an USB webcam module (OV3660). This particular module worked already fine and I got an image. But now it does not. It is and was connected to the waveshare USB hub (piggiback to Pi4B). Now I always get the message: "Error while connecting to http://192.168.xxx.xxx/webcam/?action=snapshot" (xxx ist actually a number, just removed it here) Only strange thing: I checked via Putty and "ls /dev/v4l/by-id". Now there are two devices listed instead of one. I tried: * Disconnectiung/Reconnecting the camera -> no success * Removing/Adding webcam from mainsail -> no success * Checked via Putty "ls /dev/v4l/by-id" -> camera is visible * Checked via Putty "lsusb | tail -n 10" -> camera is connected I'm a bit lost now. What else can I do?
3 Replies
Klonk
KlonkOP2w ago
I checked crownsnest.log and found the following: [12/09/24 13:28:15] crowsnest: INFO: Detect available Devices [12/09/24 13:28:15] crowsnest: ERROR: No usable Devices Found. Stopping crowsnest. Then I did "sudo apt updates" and found that some repository names seem to have changed. I accepted the change and afterwards did "sudo apt upgrade". Now the crowsnest.log shows that the camera is recognized. But for some reason ustreamer does not start. I don't know why. but using "camera-streamer" works.
Klonk
KlonkOP2w ago
I additionally reinstalled crowsnest as described here: https://crowsnest.mainsail.xyz/setup/installation
Klonk
KlonkOP2w ago
I set the parameters for the camera within crowsnest.conf to "camera-streamer". The connection now works. After booting several times. I just for fun tried to change the camera to "Adaptive MPEG-Streamer" For whatever reason, this now works also. Just to be sure I switched off the power waited a few seconds and started the printer again ---> webcam now works again as intended.
Want results from more Discord servers?
Add your server