From owner-freebsd-questions@FreeBSD.ORG  Sun Mar  4 23:46:02 2007
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
X-Original-To: freebsd-questions@freebsd.org
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 6E91C16A408
	for <freebsd-questions@freebsd.org>;
	Sun,  4 Mar 2007 23:46:02 +0000 (UTC)
	(envelope-from stapleton.41@gmail.com)
Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.191])
	by mx1.freebsd.org (Postfix) with ESMTP id EB1B313C442
	for <freebsd-questions@freebsd.org>;
	Sun,  4 Mar 2007 23:46:01 +0000 (UTC)
	(envelope-from stapleton.41@gmail.com)
Received: by mu-out-0910.google.com with SMTP id g7so1441456muf
	for <freebsd-questions@freebsd.org>;
	Sun, 04 Mar 2007 15:46:00 -0800 (PST)
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta;
	h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=dGCcZAEzNrTnjpGFXKyr12zTXXpl5FwCYUI3xHR+gqMVeEoNyv3FG6JNzNUa9a/M5E0cVZ7AykEvFmxf/tWk7weLkP5Xn0F49HfXhy/rRubYKSTTe410MdospTYsApOPN7HH4ewNLPbfXEt7PnWlybLDe+Cjjxicn892TjvUaJ8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=XTl+PnKwI80KmBlHCBrqYOn2sb0JmYIJXjLFHgc9sO2VftZ15XndGMM1cF6rrg/5M4tv5/Pb5ha8hT4ZE9gS6Gk+Q/R1gVTyWDBFGoluNQ8h5lfCqRGlIfMSUiph3sRPbXLp2zVw8H7QyfmdgqpFEF/QFUIHTYGC3Ow+0dQOor0=
Received: by 10.82.154.2 with SMTP id b2mr4299294bue.1173051960621;
	Sun, 04 Mar 2007 15:46:00 -0800 (PST)
Received: by 10.82.191.16 with HTTP; Sun, 4 Mar 2007 15:46:00 -0800 (PST)
Message-ID: <80f4f2b20703041546h7a0e071ay7ec18d5d9e44ea55@mail.gmail.com>
Date: Sun, 4 Mar 2007 23:46:00 +0000
From: "Jim Stapleton" <stapleton.41@gmail.com>
To: "Josh Paetzel" <josh@tcbug.org>, freebsd-questions@freebsd.org
In-Reply-To: <80f4f2b20703041417m548502f2yfb2de1383780b6c0@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <80f4f2b20703021833kfa8d0dxaa838b2bfc72f400@mail.gmail.com>
	<80f4f2b20703021834u131ae0e8i6f73e29d013e04d4@mail.gmail.com>
	<200703032317.16140.josh@tcbug.org>
	<80f4f2b20703040456pbbc5be5nb094e6b612198214@mail.gmail.com>
	<80f4f2b20703041417m548502f2yfb2de1383780b6c0@mail.gmail.com>
Cc: 
Subject: Re: hauppauge PVR 150 problem loading modules
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Mar 2007 23:46:02 -0000

OK, this little script seemed to get the job done, but... it's not
horribly fast/efficient (I found a tuner the same as 0x55 that works
with 0x67 also). For testing purposes, is there an mpeg player that
will gake input from stdin?

I.E. I would replace
cat /dev/cxm0 > test_$START.mpg &
with
cat /dev/cxm0 | some_app &

Thanks,
-Jim Stapleton

#!/bin/sh

INC=0.10
START=740.00
STOP=750.00
P=$START

cat /dev/cxm0 > test_$START.mpg &
TEST=$(echo "$P <= $STOP" | bc)
while [ "$TEST" -eq "1" ]
do
  echo $P
  pvr250-setchannel -m 2 $P
  P=$(echo "$P + $INC" | bc)
  TEST=$(echo "$P <= $STOP" | bc)
  sleep 2
done

kill $(ps -A | grep cat | grep cxm0 | cut -f 2 -d ' ')

noatun test_$START.mpg


On 3/4/07, Jim Stapleton <stapleton.41@gmail.com> wrote:
> OK, I'm working on that, what's the most trivial method of finding out
> if the tuner is working?
>
> I saw a cat /dev/cxm0 > test.mpg comment, do I have to set channel
> before I do that, should I use the pvr250_setchannel application?
>
>
> Thanks,
> -Jim Stapleton
>