View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 11 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jul 25, 2008 1:16 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1995
Location: /dev/null
Anyone successfully using a serial cable to control channel changing on an R5.5 system and a digital cable box? I found this page that kind of outlines the process. There is also a very old wiki page here. Also the following that I can't get to work in the url equals syntax:

http://www.mythtv.org/wiki/index.php/Co ... p_Box_(STB)_via_USB_or_Serial

As I understand it, /usr/local/bin/change_channel will allow me to change channels on my digital box (I believe they'll be giving me a DCT-2000 series, either a 22xx or 25xx) via a serial cable.

To test the connection (change to channel 12 for example) is the syntax simply:
Code:
$ /usr/local/bin/change_channel 12
? Some of the content in that 2nd link is over my head (wrapper script for example) where there is a discussion about ports (/dev/ttyS0 vs. /dev/ttyS1 etc.?)

Thanks for info as always :)

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 16, 2009 8:23 pm 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
Graysky, were you ever able to figure this out?

I've not been able to find a recent post detailing the setup, and I just got a DCT-2000. I have a serial cable on the way, so when it arrives, I'd like to have a procedure identified for getting it linked with my Myth box.

[EDIT] I'm running R5.5 currently.

_________________
Silverstone LC10|MSI K8N Neo4-F|1GB PC3200|Athlon 64 X2 4200+|NEC 3550A DVD-RW
750GB + 400GB w/Storage Groups|eVGA GeForce 7600 GS w/VGA out to Aquos 32" LCD |PVR-500|PVR-250|SiliconDust HDHomerun


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 16, 2009 8:28 pm 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
What kind of serial cable do you mean? There is all kinds of support for ieee1394 (aka. firewire). I'm not familiar with DCT-2000 but most ieee1394 commands are common between STBs.

C


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 17, 2009 9:43 am 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
DCT-2000 doesn't have firewire, unfortunately.

_________________
Silverstone LC10|MSI K8N Neo4-F|1GB PC3200|Athlon 64 X2 4200+|NEC 3550A DVD-RW
750GB + 400GB w/Storage Groups|eVGA GeForce 7600 GS w/VGA out to Aquos 32" LCD |PVR-500|PVR-250|SiliconDust HDHomerun


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 17, 2009 6:44 pm 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
ok. what does it have? maybe someone can help you if they know what kind of serial device you are talking about. It's not ieee1394; is it USB? RS-232? something else. These are the more popular serial devices but I am not familiar with what a DCT-2000 has specifically.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 18, 2009 12:13 am 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
It's just a standard 9-pin serial interface. The setup was detailed on the Wiki here: http://www.knoppmythwiki.org/index.php?page=MotorolaDct2000

but since KnoppMyth V5A15 is the most recent build noted, I imagine I can't use these steps verbatim to get things working in R5.5. Almost all of the instructions I've found for setting up this box via serial cable are from 2005 or earlier... that's why I was checking to see if graysky had been able to get his configured on R5.5.

_________________
Silverstone LC10|MSI K8N Neo4-F|1GB PC3200|Athlon 64 X2 4200+|NEC 3550A DVD-RW
750GB + 400GB w/Storage Groups|eVGA GeForce 7600 GS w/VGA out to Aquos 32" LCD |PVR-500|PVR-250|SiliconDust HDHomerun


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 19, 2009 6:31 am 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
I don't think it will work as is in that How-to but I do note that this program for the dct-2000 still exists in the 0.21-fixes contribs at mythtv.org. You should just be able to get that source and directory for 0.21-fixes and recompile essentially as in the how-to.

You may have to play with a few things to get it working but I see no obvious reason why it wouldn't work.

I'm traveling starting today so will only be popping in from time to time but wanted to get you started.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 21, 2009 5:52 pm 
Offline
Joined: Sun Nov 13, 2005 5:56 pm
Posts: 83
I know this topic has been inactive for a month but I just came across it. I have been using RS232 to control my comcast cable boxes for probably 4 or 5 years (I'm guessing). And I haven't recompiled since I first used them (I have two versions, one for each box). I just kept moving them forward when I upgraded. Now, I'm still using R5F27 but I don't think there shouldn't be any reason why it won't work with R5.5. I would think, worst case, would be one would have to compile using that system. One of the things I do remember is that, when compiling, having to change the serial port designation in the source, channel.c. One version uses /dev/ttyS0 and the other /dev/USB0 (I use a USB-Serial adapter). Hence, two versions. After compiling, the only interaction the program has with MythTV is the passing of the parameter (the new channel). And that is done indirectly because of the shell wrapper script. Make sure the program talks to the correct serial port (via channel.c) and that nothing else is using that port, like a serial mouse via xorg.conf (or whatever it's called these days). Not having seen anything specific about why it doesn't work, this response is pretty general.

=S=


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 21, 2009 7:09 pm 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
I was never able to find any instructions that were complete enough for me to get the serial control working in 5.5... I ended up just getting an irblaster, which works fine.

_________________
Silverstone LC10|MSI K8N Neo4-F|1GB PC3200|Athlon 64 X2 4200+|NEC 3550A DVD-RW
750GB + 400GB w/Storage Groups|eVGA GeForce 7600 GS w/VGA out to Aquos 32" LCD |PVR-500|PVR-250|SiliconDust HDHomerun


Top
 Profile  
 
 Post subject: Serial control in R5.5
PostPosted: Sat Aug 08, 2009 4:38 pm 
Offline
Joined: Mon Mar 13, 2006 2:01 pm
Posts: 7
I upgraded to R5.5 a couple months ago - and (IIRC) I had to copy the channel program from my old installation to the R5.5 install. I worked fine for me though.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 08, 2009 4:58 pm 
Offline
Joined: Fri Sep 15, 2006 12:16 pm
Posts: 292
Several things I can think of to consider:
- either make sure there is not a difference in ground potentials (voltage difference between grounds) between the STB and the PC or use an optical isolater circuit.
- I think you will have to use a separate serial port from your LIRC receiver. LIRC probably uses ttyS0. This cable will probably use ttyS1.
- you still need LIRC to read IR from your remote, but you will not be sending via lirc. you will just send some simple commands out with something like (some really wild guesses):
Code:
echo $1 >/dev/ttyS1

and that may be all you need in your new channel_change script, but you need to read the programmer's manual for the STB and see exactly what it may need besides the channel number.
- You need to set the baud rate of this serial port. look into the setserial program.
- the serial cable needs to be crossed (null mdem cable), not straight thru. Each transmit signal goes to the receive on the other side, but there are other wires that need to cross too.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu