[mythtv-users] DCT2000, Homebrew transmitter,
and the ensuinghilarity
Adrian Burden
aburden at onegeeksopinion.com
Mon Jun 9 20:11:14 EDT 2003
There was a post last week on slow channel changing. They posted a c
program to compile and use. It speeds up the channel changing.
Here is the code that Carlos Talbot [carlos at talbot.net] reposted
Paste into change_channel.c
Compile with
gcc -o change_channel change_channel.c
<--cut-->
#include <stdio.h>
#include <stdlib.h>
send_channel(int number) {
static char command[100];
sprintf(command,"/usr/local/bin/rc SEND_ONCE gi-motorola-dct2000
%d",number);
system(command);
}
send_exit() {
static char command[100];
sprintf(command,"/usr/local/bin/rc SEND_ONCE gi-motorola-dct2000
ENTER");
system(command);
}
main (int argc, char *argv[]) {
int channel, hundreds, tens, ones;
channel=atoi(argv[1]);
if(channel>999) {
fprintf(stderr,"error- channel is 4 digits\n");
channel=channel%1000;
}
hundreds=channel/100;
channel=channel-(hundreds*100);
tens=channel/10;
ones=channel=channel-(tens*10);
send_channel(hundreds);
usleep(300000);
send_channel(tens);
usleep(300000);
send_channel(ones);
usleep(300000);
send_exit();
return 0;
}
<--cut-->
> -----Original Message-----
> From: mythtv-users-bounces at snowman.net
> [mailto:mythtv-users-bounces at snowman.net] On Behalf Of Brian Z
> Sent: Monday, June 09, 2003 3:31 PM
> To: mythtv-users at snowman.net
> Subject: [mythtv-users] DCT2000, Homebrew transmitter, and
> the ensuinghilarity
>
>
> Hi all,
>
> I've managed to put together a homegrown IR transmitter for
> use with my DCT2000 cable box, smack lirc around a bit to use
> the aforementioned tx as well as the receiver which came with
> the card (PCTV Pro), and all is working. One little problem...
>
> When changing channels, its about a half a second delay on
> the frontend to display the tuned-to channel info that would
> normally accompany the near-instantaneous change, but an
> additional 2-3 seconds as the transmitter actually changes
> the channel. I think I'm looking for a way to delay the time
> it takes mythtv to display the new channel info. That way, it
> can wait for the actual tuning to "catch up". I could
> probably change the tx speed in the channel changing script,
> but that would likely result in a lot of missed digits (A Bad Thing).
>
> This is probably a question best posed to the dev list, but
> for some reason I'd feel guilty asking such a frivilous
> question. Anyone?
>
> Thanks.
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at snowman.net
> http://lists.snowman.net/cgi-> bin/mailman/listinfo/mythtv-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: change_channel.c
Type: application/octet-stream
Size: 817 bytes
Desc: not available
Url : /pipermail/attachments/20030609/df081f00/change_channel.obj
More information about the mythtv-users
mailing list