#libcam not work in crowsnest

122 messages · Page 1 of 1 (latest)

tropic sun
#

Sometimes it doesn't.
Whenever it did, I solved it with cd crowsnest && make update.
But this time it doesn't work.
I have verified that the camera is working with libcamera-hello -list.
The crowsnest.log also says it is working.
But what I can actually see is not.

#

okay fixed
I changed the MODE to mjpg and then back to camera-streamer, and it worked.

young bay
#

The next time this happens, set log_level: debug then you might see the error

tropic sun
#

libcamera on my second Pi4 doesn't have this problem
Only the Pi connected to the printer(main PI) has the problem

young bay
young bay
tropic sun
#

both is bookworm.
Second PI did not modify anything after installing.
The main PI is where I modify the printer and runs a lot of commands. Could this be a problem?

young bay
#

It only happens, if you run an update on the system packages in the updatemanager or on the console

#

So you most likely did just update the system packages

tropic sun
#

oh yes I did

young bay
tropic sun
young bay
young bay
#

It's just an old deprecated mode name, but it was ustreamer all along and the parameter just got renamed

tropic sun
#

oh okay

young bay
#

From your log btw:

Starting ustreamer with Device /dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2.1:1.0-video-index0 ...
Starting ustreamer with Device /dev/v4l/by-id/usb-046d_0825_15C067D0-video-index0 ...
Starting ustreamer with Device /dev/video40 ...
Starting ustreamer with Device /dev/v4l/by-id/usb-Generic_FULL_HD_1080P_Webcam_200901010001-video-index0 ...
Starting ustreamer with Device /dev/v4l/by-id/usb-Generic_USB_Camera_200901010001-video-index0 ...
Starting ustreamer with Device /dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2.3:1.0-video-index0 ...```
tropic sun
#

oh XD

#

all ustreamer

#

I changed it to ustreamer libcam and it doesn't work again
I will upload log file

young bay
#

But I just realized, there is no deprecation warning 🙈

young bay
#

The libcam is this Starting camera-streamer with Device /base/soc/i2c0mux/i2c@1/ov5647@36 ...

#

That's a bit higher up in the log, that's why I didn't copy it

#

For the others, just send the log

tropic sun
#

okay so libcam mode : camera-streamer

young bay
#

Yes, but without the space after mode

tropic sun
#

okay

tropic sun
young bay
#

Send a picture of the PCB of the libcam

tropic sun
#

okay

#

I taped it up temporarily

young bay
#

It's a fake 🙈

tropic sun
#

??

young bay
#

Those don't work at all with libcam on bullseye and it seems like they don't work perfectly on bookworm then

young bay
#

The lower one is an original pi cam v1

#

The other, with the print directly on the cable, is a fake

tropic sun
#

oh...

young bay
#

The layout and so on of the PCB, is also different

tropic sun
#

copy version?

young bay
#

Yes

tropic sun
#

😂

young bay
#

They are of lower quality so it's possible that they break faster, or don't work at all...

#

They work with legacy mode pretty good, but that got "removed" with Bookworm

tropic sun
#

okay
And... I have another PI camera that I bought from Aliexpress (currently connected to a second PI)

#

It currently works fine on the second PI.

#

Is it worth changing both?

young bay
#

The original has no autofocus and it's not just a copied version (not claiming it's a picamera v1) so it should be fine ig

tropic sun
#

oh okay

#

I realise now that's copy version haha

young bay
#

A lot of people don't realise it, as they think they can just safe some money by buying the cheaper one, and then have problems, because the seller sold them fake products

#

Really annoying those fakes

tropic sun
#

I didn't realise that fake cameras were a problem

#

You just swapped two cameras with each other.
But the fake camera works fine on the second PI.
Is it possible that the cable is the problem?

#

that was looking good in Second PI a moment ago

tropic sun
#

okay main PI camera cable is long (about 1m)

young bay
#

Running alongside some steppers maybe?

#

1m is already long and with some electrical noise, they can get pretty bad

#

*long for a ribbon cable

tropic sun
#

yes trying 15cm cable

#

and same error

young bay
#

With both cams? (just to rule out another cable fault)

#

Or use the cable from the other pi once

tropic sun
#

okay

tropic sun
young bay
#

Yeah, then it's the pi, for sure

#

It might be a driver problem and we only know of reinstalling to fix those

#

Another thing you could try would be to disconnect all the other cams

#

And comment them out in the crowsnest.conf

tropic sun
#

ok

#

same error

young bay
#

Sry, meant reflashing, so completely wiping the system

tropic sun
#

oh ok
It's the same pi 4B
I will try swapping the two SD cards

#

software issue

#

I switched the SD card and it works fine in the main PI

young bay
#

The "bad" sdcard also makes problems with the other pi?

tropic sun
#

no also work

young bay
#

So it cannot be only a software issue then?

tropic sun
#

oh..

#

so hard

#

I will check 1m cable also work fine

#

and working

#

why

young bay
#

Let it run for while to see if it's really working and not just a fluke

tropic sun
#

ok

#

working still

#

try switch back

#

and same error

tropic sun
young bay
#

Weird

tropic sun
young bay
#

With klipperscreen I would expect a differen error 🤔

tropic sun
#

Stopping the klipper screen -> same error
However, unplug LCD cable -> fixed

young bay
#

Then it might be an overload on the spi bus

tropic sun
#

Is the only way to fix it is to turn off the LCD?

young bay
#

Maybe 🤷‍♂️

#

Those kind of issues are the worst and I never encountered one myself

#

So it's all just speculation and experience through other people debugging

tropic sun
#

okay

tropic sun
#

and finally fixed!

young bay
#

That thing is not stable on Bookworm

#

It's possible that you have to sometimes reboot the pi, that it will work

tropic sun
#

okay As long as it's not completely unusable, it's fine.

tropic sun
young bay
#

It will support the correct logging of the cams