From owner-freebsd-multimedia@freebsd.org Tue Apr 21 07:07:05 2020 Return-Path: Delivered-To: freebsd-multimedia@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0B2F42C26E8 for ; Tue, 21 Apr 2020 07:07:05 +0000 (UTC) (envelope-from marc@blackend.org) Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [IPv6:2a01:e0c:1:1599::13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 495vkw0KGmz3PR4 for ; Tue, 21 Apr 2020 07:07:03 +0000 (UTC) (envelope-from marc@blackend.org) Received: from emphyrio.blackend.org (unknown [82.64.86.146]) by smtp4-g21.free.fr (Postfix) with ESMTPS id 92B9819F5D3; Tue, 21 Apr 2020 09:06:54 +0200 (CEST) Received: from emphyrio.blackend.org (localhost [127.0.0.1]) by emphyrio.blackend.org (8.15.2/8.15.2) with ESMTPS id 03L76stN001209 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 21 Apr 2020 09:06:54 +0200 (CEST) (envelope-from marc@emphyrio.blackend.org) Received: (from marc@localhost) by emphyrio.blackend.org (8.15.2/8.15.2/Submit) id 03L76mxt001208; Tue, 21 Apr 2020 09:06:48 +0200 (CEST) (envelope-from marc) Date: Tue, 21 Apr 2020 09:06:48 +0200 From: Marc Fonvieille To: freebsd-multimedia@freebsd.org Subject: Re: OV511 based webcam and webcamd Message-ID: <20200421070648.GA1173@emphyrio.blackend.org> Mail-Followup-To: freebsd-multimedia@freebsd.org, Hans Petter Selasky References: <20200403120447.GA2599@emphyrio.blackend.org> <20200404134530.GA1250@emphyrio.blackend.org> <207e9fe4-8872-fb8d-4612-1f59a58b1d09@selasky.org> <20200406135820.GA5552@emphyrio.blackend.org> <20200407163528.GA1027@emphyrio.blackend.org> <20200408143803.GA1798@emphyrio.blackend.org> <20200413130419.GA1618@emphyrio.blackend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200413130419.GA1618@emphyrio.blackend.org> X-Rspamd-Queue-Id: 495vkw0KGmz3PR4 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of marc@blackend.org has no SPF policy when checking 2a01:e0c:1:1599::13) smtp.mailfrom=marc@blackend.org X-Spamd-Result: default: False [2.03 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(0.02)[ip: (4.95), ipnet: 2a01:e00::/26(-3.22), asn: 12322(-1.61), country: FR(0.00)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.07)[0.071,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.73)[0.733,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[blackend@freebsd.org,marc@blackend.org]; RECEIVED_SPAMHAUS_PBL(0.00)[146.86.64.82.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12322, ipnet:2a01:e00::/26, country:FR]; FROM_NEQ_ENVFROM(0.00)[blackend@freebsd.org,marc@blackend.org]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2020 07:07:05 -0000 On 13.04.2020 15:04, Marc Fonvieille wrote: > Hans, > > I have several questions: > > - The fact it's a USB 1.0 device, can it be a problem? > > - When plugged, /dev/usb/0.3.0 is created and linked to /dev/ugen0.3. > /dev/usb/0.3.1 is also created. I assume it's Endpoint 1, but I don't > have any /dev/ugen0.3.1 is it normal? > > - If I try to read data from /dev/usb/0.3.1, I get > > kernel: ugen_isoc_read_callback: actlen=0, aframes=0 > syslogd: last message repeated 1 times > kernel: ugen0.3: at usbus0 (disconnected) > > For that, I quickly updated old vid program > (http://ovtvid-bsd.sourceforge.net/) used on 4.11 for 12.1 (see > https://people.freebsd.org/~blackend/usb/vid.c). I get the same > behavoir as with webcamd, i.e., all configuration settings via the > control endpoint are accepted, once the program tries to get video > data it fails (the device is disconnected). > Hello, Do you have some ideas or ways to track down the problem more further? Could you check https://people.freebsd.org/~blackend/usb/vid.c and tell me if I did something wrong? -- Marc