[mythtv-users] Updated dct-channel for controlling DCT-2000 via serial port

Joshua Goldenhar joshuag29 at comcast.net
Sun Oct 19 10:51:54 EDT 2003


On Fri, 2003-10-17 at 02:09, Jim Paris wrote:
> > > Isaac, perhaps this can get included in the contrib/ directory?
> > 
> > Not with it using automake/conf.  I don't really want to bloat the release 
> > tarball up by another 100k just for the configure script for this -- you 
> > could replace all of that with, what, a 20 line makefile and not lose any 
> > important functionality? =)
> 
> Yeah, figured you'd say that. :)
> 
> Automake is actually pretty useful for dependency tracking, the
> dist/distcheck targets, etc, but you're right.  Here:
> 
>   http://jim.sh/tv/dct-channel-1.3.tar.gz
> 
> -jim

Jim,

Thanks for the work!

I have the same cable box (and provider) as you, DCT 2244, and am using
the python scripts to change channel successfully:
[root at mythtv dct-channel-1.3]# /usr/local/bin/changechannel.bin 40
changing channel to  040
chancode is  c
Recvd:  0x10 0x70 0x0 0x2 0x80 0x4 0x6a 0xa3 0x10 0x3 0x10 0x78 0x0 0x2
0x80 0x4 0x30 0x83 0x10 0x3 0x10 0x78 0x0 0x2 0x91 0x4 0xbc 0xca 0x10
0x3 

Recvd:  0x10 0x70 0x0 0x2 0x80 0x4 0x6a 0xa3 0x10 0x3 0x10 0x78 0x0 0x2
0x80 0x4 0x30 0x83 0x10 0x3 0x10 0x78 0x0 0x2 0x91 0x4 0xbc 0xca 0x10
0x3 

Recvd:  0x10 0x70 0x0 0x2 0x80 0x4 0x6a 0xa3 0x10 0x3 0x10 0x78 0x0 0x2
0x80 0x4 0x30 0x83 0x10 0x3 0x10 0x78 0x0 0x2 0x91 0x4 0xbc 0xca 0x10
0x3 

I just downloaded/compiled your program but it's not happy:

[root at mythtv dct-channel-1.3]# ./channel -p /dev/ttyS0 -vv 40
Attempting to initialize DCT
SENT: type 0x70, len 2, seq 0x03
RECV: type 0x70, len 2, seq 0x80
SENT: type 0x78, len 3, seq 0x03
      data 0x00
RECV: type 0x78, len 2, seq 0x80
Serial timeout
Didn't get expected status message
Initialization failed
Attempting to initialize DCT
SENT: type 0x70, len 2, seq 0x03
RECV: type 0x70, len 2, seq 0x80
SENT: type 0x78, len 3, seq 0x03
      data 0x00
RECV: type 0x78, len 2, seq 0x80
Serial timeout
Didn't get expected status message
Initialization failed
Attempting to initialize DCT
SENT: type 0x70, len 2, seq 0x03
RECV: type 0x70, len 2, seq 0x80
SENT: type 0x78, len 3, seq 0x03
      data 0x00
RECV: type 0x78, len 2, seq 0x80
Serial timeout
Didn't get expected status message
Initialization failed
Attempting to initialize DCT
SENT: type 0x70, len 2, seq 0x03
RECV: type 0x70, len 2, seq 0x80
SENT: type 0x78, len 3, seq 0x03
      data 0x00
RECV: type 0x78, len 2, seq 0x80
Serial timeout
Didn't get expected status message
Initialization failed
Communication failed after 4 tries
0

(ran as root, python script works fine before or after trying your
program, serial port is ttyS0)

Any idea what's up?

Thanks,

Josh

> 
> ______________________________________________________________________
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



More information about the mythtv-users mailing list