#Crowsnest Webcam keeps losing connection after a few seconds of working fine
100 messages · Page 1 of 1 (latest)
Ahoi @thorny escarp!
It looks like you did not provide all the necessary information we need to help you.
Please upload your logfiles and a detailed description of your problem.
For further information see: https://docs.mainsail.xyz/faq/getting-help/discord#provide-information
sry, the bot only checks for .log and .txt files. we will add .zip files for the check
ah
[01/04/24 17:47:13] crowsnest: WATCHDOG: Lost Device: '/dev/v4l/by-id/usb-GENERAL_GENERAL_WEBCAM_JH0319_20210712_v102-video-index0'```
is it possible that the cam have connection issues?
i am unsure
it is directly plugged into my Pi 3B+
and it consistently gets detected when i reboot the Pi
do you have a second webcam to doublecheck it
no
i specifically bought this cam for this Setup
basically what happens is, when i reboot, the Cam gets detected, then works for like 30sec, then freezes and only shows black
like, i just rebooted the Pi
and it works fine
but after a minute or 2, it turns black
this is weird
ive set it to 720p and 30fps
and it seems to be working fine for now
pls try to add --camera-force_active=1 to the custom_flags
okay
question
could it be a Bandwith Issue?
like
if i set it to 1080p 30fps
because it seems to be fine when set to 720p
also, about custom flags, how do you adjust exposure and brightness?
so, this seems to have helped
but i will do a test-print to see if it is consistent
pls provide logs. a stream video without anything in it doesnt help...
ok. same error. pls change these settings:
log_level: debug
delete_log: true
restart crowsnest > let it run until a break and then upload the log again
okay
okay
so restarting crowsnest doesnt seem to do anything
so, ill wait for the print to finish and then reboot to get Crowsnest back with the changed settings
should be also ok. i just want a deeper log
[01/04/24 22:28:49] crowsnest: DEBUG: camera-streamer [cam 0]: device/v4l2/device.c: CAMERA: Can't open device: /dev/v4l/by-id/usb-GENERAL_GENERAL_WEBCAM_JH0319_20210712_v102-video-index0
[01/04/24 22:28:49] crowsnest: DEBUG: camera-streamer [cam 0]: device/device.c: CAMERA: Can't open device: /dev/v4l/by-id/usb-GENERAL_GENERAL_WEBCAM_JH0319_20210712_v102-video-index0
ok. it looks more like a hardware issue, than a config/software issue
so like, the camera is borked?
or cable or usb port
hm
lemme try another port
plugged it into a different port
seems to work
just for how long
pls wait until tomorrow and mr.yel will check it again
okay
Run dmesg > ~/printer_data/config/dmesg.txt on a ssh terminal, after the problem appeared once, since the last reboot of the pi.
Then go to your machine page in Mainsail and download the dmesg.txt file you should find there and send it.
It could be a power issue maybe, so you could try a powered usb hub
I now looked through the logs. In this one #1192509359549329468 message the cam came back. If you didn't do anything yourself, it's possible that it's a bad cable. I would suggest the powered usb hub first, if you have one. Otherwise just go with a new cam. This seems like a pretty cheap generic 1080p one anyway.
hm, my Pi does constantly give a low Voltage Warning, even though its plugged into a 30W supply
30w doesn't mean it's getting the needed 5V constantly. The pis are very picky for that. So something with 5.1V could be more stable
hm
There are already problems in the startup. Like 20s after the pi booted. A minute later it disconnects completely. So I would say it's most likely the cam itself.
okay, guess ill buy another then
thx for your help
is there any cam you can recommend?
I'm using some generic ones too for testing, and they work fine. They just shouldn't be too cheap.
Personally I'm using a picam v3, but the pi cams got their own problems in some scenarios. Like if you want to use a touchscreen for example
That's possible
bit annoying, gotta design a new mount again
oh well
i guess thats what we build these Printers for
Just for an example how my usb cams show up:
/dev/v4l/by-id/usb-XHT-211220-ZW_Photry_PC230A_QHD_Webcam_01.00.00-video-index0
/dev/v4l/by-id/usb-SJ-180517-N_1080P_Webcam-video-index0
```vs yours:
/dev/v4l/by-id/usb-GENERAL_GENERAL_WEBCAM_JH0319_20210712_v102-video-index0
interesting
The top one was a pretty expensive one, but they got discontinued and then they sold them for 10€ 😂
The other one is some generic one from amazon, labeled loetad
Yes, but the logitech cams got some problems too.
Like v4l2ctl not getting set correctly. That problem might be fixed with the latest camera-streamer version, but the problem still exists for ustreamer atm
Fingers crossed that this one will work 🤞
Today i have to work on my Printer anyway