#Crowsnest Webcam keeps losing connection after a few seconds of working fine

100 messages · Page 1 of 1 (latest)

thorny escarp
#

Ive set up a USB Webcam with Crowsnest using WebRTC, it works for a few seconds to minutes, then loses Connection

lavish atlasBOT
#

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

We are glad to help and chat with you on our Community Discord, but if you need help and want the best support possible you should, follow a few simple rules:

thorny escarp
#

what?

thorny escarp
queen onyx
# thorny escarp what?

sry, the bot only checks for .log and .txt files. we will add .zip files for the check

thorny escarp
#

ah

queen onyx
#
[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?

thorny escarp
#

i am unsure

#

it is directly plugged into my Pi 3B+

#

and it consistently gets detected when i reboot the Pi

queen onyx
#

do you have a second webcam to doublecheck it

thorny escarp
#

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

queen onyx
#

pls try to add --camera-force_active=1 to the custom_flags

thorny escarp
#

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?

thorny escarp
#

but i will do a test-print to see if it is consistent

thorny escarp
#

okay

#

so

#

it seems to have only helped for a little bit

#

it just went black

queen onyx
#

pls provide logs. a stream video without anything in it doesnt help...

thorny escarp
queen onyx
#

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

thorny escarp
#

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

queen onyx
#

should be also ok. i just want a deeper log

thorny escarp
#

ye

queen onyx
#
[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

thorny escarp
#

so like, the camera is borked?

queen onyx
#

or cable or usb port

thorny escarp
#

hm

#

lemme try another port

#

plugged it into a different port

#

seems to work

#

just for how long

thorny escarp
#

yep

#

didnt help

#

disconnected after 30min again

#

you recommend a new Camera?

queen onyx
#

pls wait until tomorrow and mr.yel will check it again

thorny escarp
#

okay

exotic salmon
#

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

exotic salmon
# thorny escarp heres the new log

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.

thorny escarp
thorny escarp
exotic salmon
thorny escarp
#

hm

exotic salmon
#

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.

thorny escarp
#

thx for your help

#

is there any cam you can recommend?

exotic salmon
#

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

thorny escarp
#

okay

#

so i guess i just had bad luck

exotic salmon
#

That's possible

thorny escarp
#

bit annoying, gotta design a new mount again

#

oh well

#

i guess thats what we build these Printers for

exotic salmon
#

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

thorny escarp
#

interesting

exotic salmon
#

The top one was a pretty expensive one, but they got discontinued and then they sold them for 10€ 😂

thorny escarp
#

oh

#

nice

exotic salmon
#

The other one is some generic one from amazon, labeled loetad

thorny escarp
#

yea ive read that the Logi C920 is popular

#

but that thing is verry expensive

exotic salmon
#

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

thorny escarp
#

okay

#

ive ordered a new one

#

should be here Monday

#

lets see

exotic salmon
#

Fingers crossed that this one will work 🤞

thorny escarp
#

Today i have to work on my Printer anyway