From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 20 18:21:16 2013 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AA9EB4A8 for ; Sun, 20 Jan 2013 18:21:16 +0000 (UTC) (envelope-from torfinn.ingolfsen@getmail.no) Received: from smtp.getmail.no (smtp.getmail.no [84.208.15.66]) by mx1.freebsd.org (Postfix) with ESMTP id 446AAE9D for ; Sun, 20 Jan 2013 18:21:16 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from get-mta-scan04.get.basefarm.net ([10.5.16.4]) by get-mta-out03.get.basefarm.net (Sun Java(tm) System Messaging Server 7.0-0.04 64bit (built Jun 20 2008)) with ESMTP id <0MGX002QMSB9C180@get-mta-out03.get.basefarm.net> for freebsd-multimedia@FreeBSD.org; Sun, 20 Jan 2013 19:21:09 +0100 (MET) Received: from get-mta-scan04.get.basefarm.net (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id F10211F042A2_FC3594B for ; Sun, 20 Jan 2013 18:21:08 +0000 (GMT) Received: from kg-v2.kg4.no (cm-84.215.134.159.getinternet.no [84.215.134.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by get-mta-scan04.get.basefarm.net (Sophos Email Appliance) with ESMTPSA id C91A21F042C7_FC3594F for ; Sun, 20 Jan 2013 18:21:08 +0000 (GMT) Date: Sun, 20 Jan 2013 19:21:04 +0100 From: Torfinn Ingolfsen To: freebsd-multimedia@FreeBSD.org Subject: Re: rtl-sdr port (was: New driver opportunity - rtl2832u) Message-id: <20130120192104.87a818529a6e3fdda8c15b61@getmail.no> In-reply-to: <20120824120445.M89236@martymac.org> References: <20120824120445.M89236@martymac.org> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2013 18:21:16 -0000 Hello, I see that rtl-sdr is in the ports tree now. :-) Yesterday I got a Newsky TV28T[1] stick. Now I wonder what the best way to test it would be? I've done this: tingo@kg-v2$ uname -a FreeBSD kg-v2.kg4.no 8.3-STABLE FreeBSD 8.3-STABLE #6: Fri Apr 27 23:50:55 CEST 2012 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 root@kg-v2# usbconfig -u 1 -a 3 ugen1.3: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON root@kg-v2# rtl_test -t Found 1 device(s): 0: ezcap USB 2.0 DVB-T/DAB/FM dongle Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle Found Rafael Micro R820T tuner Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6 No E4000 tuner found, aborting. (undertandable) How high a samplerate should this be able to do? I'm still losing samples here: root@kg-v2# rtl_test -s 1.3e6 Found 1 device(s): 0: ezcap USB 2.0 DVB-T/DAB/FM dongle Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle Found Rafael Micro R820T tuner Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6 Exact sample rate is: 1300000.021524 Hz Reading samples in async mode... lost at least 188 bytes lost at least 16 bytes lost at least 112 bytes ^CSignal caught, exiting! User cancel, exiting... What would be the best way to test rtl_fm? sox? References: 1) http://www.nooelec.com/store/software-defined-radio/sdr-receivers/tv28tv2.html -- Torfinn Ingolfsen