Calvin,
I obtained this from someone on the list a while back. It's basically a
c program to replace the shell and perl script. Just compile and install
in your path. Make sure to update your external command path within
MythTV setup. Since it makes usleep calls it can decress the delay
between digits to less than a second.
----------------------------------------------------------------------------------
#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;
}
----------------------------------------------------------------------------------
Calvin Gorriaran wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Does anyone use their mythtv box to watch all live tv with a DCT2000 and IRBlaster? After getting it setup
>last night I don't think it will be a real option because of the time it takes for the channel to change.
>Anyone found a way to speed this up?
>
>
>
>Calvin
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.0 (FreeBSD)
>
>iD8DBQE+4LGO1CCG53ZaRNYRAlfwAKCFV7/QbOlce/MzuyfdStqMUttwhgCdFxPZ
>yT9iJQyECI3UKcADqck5ZaU=
>=ONf1
>-----END PGP SIGNATURE-----
>_______________________________________________
>mythtv-users mailing list
>mythtv-users@snowman.net
>http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users
>
>