View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 14 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Feb 18, 2006 9:47 am 
Offline
Joined: Thu Feb 09, 2006 11:44 am
Posts: 12
Location: Louisville / Shepherdsville KY
Ok, finally have my new box built (see http://mysettopbox.tv/phpBB2/viewtopic.php?t=8433 for details) and I'm getting ready to install Knoppmyth and purchase the necessary cables for to interface with my system.

I have a question regarding being able to control my DCT-2524 box. The cable will come into the box, and I plan on using the s-video out and sound out to my PVR-250 box.

Can someone confirm that my thoughts are either right or wrong, and if wrong, give me some hints to the "right" way:

1. To change channels I will control my PVR-350 using the remote and receiver that came with it.

2. Using lirc and an IR blaster connected to my serial port and after proper configuration, it will send the proper codes to the DCT-2524 and change the channel.

3. To record a program, lirc and IR blaster will change the channel on the 2524 as Myth tells it to.

Is my understanding correct?

TIA!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 18, 2006 10:31 am 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
Yes you understand correctly.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 18, 2006 7:21 pm 
Offline
Joined: Tue Feb 14, 2006 8:08 pm
Posts: 3
Location: DC
I am in the same situation and have 2 add on questions regarding this.

1. my comcast service has encrypted QAM. I've looked around and I'm pretty sure using a cable box and IR blaster solves this. Am I correct?

2. can you still scan the channels when the cable box is sending the signal to the computer? won't it just find one channel? When I look around, most people are just talking about using the firewire (which I don't want to do).

i'm one of the "very new" people, but i'm having fun figuring this out and reading up on it.

8)


Last edited by k9brand on Sat Feb 18, 2006 9:15 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 18, 2006 7:48 pm 
Offline
Joined: Thu Feb 09, 2006 11:44 am
Posts: 12
Location: Louisville / Shepherdsville KY
Well, I have the box up and running. All I need to do now is get the IR Blaster and run a network cable into the living room.

I'm currently just using my cable box to change the channel and running in the s-video from it to the PVR-350. Works good enough to get me by for a bit.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 04, 2006 3:25 pm 
Offline
Joined: Thu Feb 09, 2006 11:44 am
Posts: 12
Location: Louisville / Shepherdsville KY
Well, I have my IRBlaster from http://www.irblaster.info/ (very quick service by the way) and I plan on hooking it up this weekend. Does anyone know of a howto for controlling the 2524? That would be great!

Also, I solved my ethernet cable "issue". I purchased a Wireless "Game" adapter, which is basically a wireless to ethernet adapter. Works great by the way! :)

TIA again.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 08, 2006 11:20 pm 
Offline
Joined: Sat Mar 26, 2005 3:49 pm
Posts: 290
I had all of my IRblaster stuff working until I started testing something a few days ago. Once I get it sorted I'll put together a relevant howto.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 08, 2006 11:25 pm 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
Here is how I have done it

Things to NOTE I have 2 PVR250 cards if you have one change the lirc2 lines to lirc1
if you want my change_channel.sh script and lircd.conf file PM me with your email address and I will send them.

tar -jxvf lirc<tab> #it will auto complete

change directory to the newly made lirc.0.7.2pvr150 directory

cd /usr/src/lirc.0.7.2pvr150

run setup

./setup.sh


Here I am going by memory but choose serial then
transmitter and software generated

then menu item 3

then

make

then

make install (I realize the version in KnoppMyth has serial support now but I recompiled anyway)

In your /etc/modutils/lirc you'll need something like

Code:
alias char-major-61-0 lirc_i2c
alias char-major-61-1 lirc_i2c
alias char-major-61-2 lirc_serial
options lirc_serial irq=3 io=0x2f8 # for COM2

Update modules.conf

Code:
update-modules




Then in /etc/init.d/bootmisc.sh put something like

Code:
/sbin/modprobe lirc_i2c
/usr/sbin/lircd --device=/dev/lirc --output=/dev/lircd
/usr/sbin/lircd --device=/dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid
/bin/setserial /dev/ttyS1 uart none
/sbin/modprobe lirc_serial
/usr/sbin/lircd --device=/dev/lirc2 --output=/dev/lircd2 --pidfile=/var/run/lircd2.pid


You'll also need to make the extra devices in /dev

Code:
cd /dev
mknod /dev/lirc1 c 61 1
mknod /dev/lirc2 c 61 2


lircd will be your first x50 card, lircd1 will be the second and lircd2 will be com2

Make a "/etc/lirc/lircd.conf" file that includes configurations for both devices (remote and set-top box) by concatenating the two configuration files together. For example, if your set-top box file is "stb.conf" and the file for your remote is "remote.conf", then:

Code:
cat remote.conf stb.conf > /etc/lirc/lircd.conf

(save your old lircd.conf first)

Make a channel changing script "change_channel.sh" for use with Mythtv

Code:
#!/bin/sh
STB_NAME=XXXXX
for digit in $(echo $1 | sed -e 's/./& /g'); do
irsend --device=/dev/lircd1 SEND_ONCE $STB_NAME $digit
sleep 0.4
done
irsend --device=/dev/lircd1 SEND_ONCE $STB_NAME SELECT


Note: replace "XXXXX" with value from the "name" line in the lircd configuration file for your set-top box. Put it someplace useful, like /usr/local/bin and don't forget to make the script executable by all.

12. Run mythtv-setup to tell it to use "change_channel.sh"

REBOOT

Craig


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 12, 2006 1:12 pm 
Offline
Joined: Thu Feb 09, 2006 11:44 am
Posts: 12
Location: Louisville / Shepherdsville KY
Thanks iscraigh, I'll give this a go and see! I'll post up my results. :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 12, 2006 1:47 pm 
Offline
Joined: Sat Mar 26, 2005 3:49 pm
Posts: 290
You'll still need a valid DCT-2244 file to cat into your lircd.conf. Here's my entire lircd.conf (this assumes you have an irblaster AND a pvrx50 with the silver remote).

Code:
# /etc/lircd.conf
#
#
# brand:   Hauppauge                    lirc.conf
# model no. of remote control:  PVR-350
# devices being controlled by this remote:
#
#

begin remote

  name  grayHauppauge
  bits           13
  flags RC5
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          200966
  repeat_bit    2

      begin codes
          Power                    0x00000000000017BD
          Go                       0x0000000000001FBB
          TV                       0x000000000000179C
          Videos                   0x0000000000001F98
          Music                    0x0000000000001799
          Pictures                 0x0000000000001F9A
          Guide                    0x000000000000179B
          Radio                    0x0000000000001F8C
          UP                       0x0000000000001794
          LEFT                     0x0000000000001F96
          RIGHT                    0x0000000000001797
          DOWN                     0x0000000000001F95
          OK                       0x00000000000017A5
          Back-Exit                0x0000000000001F9F
          Menu                     0x000000000000178D
          Prev-Channel             0x0000000000001F92
          Mute                     0x000000000000178F
          Volume-UP                0x0000000000001F90
          Volume-DOWN              0x0000000000001791
          Channel-UP               0x0000000000001FA0
          Channel-DOWN             0x00000000000017A1
          Record                   0x0000000000001FB7
          Stop                     0x00000000000017B6
          Rewind                   0x0000000000001FB2
          Forward                  0x00000000000017B4
          Play                     0x0000000000001FB5
          Previous                 0x00000000000017A4
          Next                     0x0000000000001F9E
          Pause                    0x00000000000017B0
          1                        0x0000000000001F81
          2                        0x0000000000001782
          3                        0x0000000000001F83
          4                        0x0000000000001784
          5                        0x0000000000001F85
          6                        0x0000000000001786
          7                        0x0000000000001F87
          8                        0x0000000000001788
          9                        0x0000000000001F89
          0                        0x0000000000001780
          star                     0x0000000000001F8A
          hash                     0x000000000000178E
          red                      0x0000000000001F8B
          green                    0x00000000000017AE
          yellow                   0x0000000000001FB8
          blue                     0x00000000000017A9
      end codes

end remote
#
# this config file was originally generated
# using lirc-0.6.6(serial) on Fri Mar 28 22:46:44 2003
# modified by hand on Sunday Jul 17 00:12:00 2005
#
# contributed by rob scullion
# based on the DCT2000 file contrib'd by shane bradley
#
# brand:                       Motorola
# model no. of remote control: ? - Comcast badged
# devices being controlled by this remote: DCT2524/1612
#
# Note: The "ON DEMAND" button on the Comcast
# badged remote just sends a "1" followed by
# an "ok/select" and is thus not included in
# this config file.
                                                                               
begin remote
 name  DIGITAL
  bits             16
  flags SPACE_ENC|CONST_LENGTH
  eps              30
  aeps            100

  header         9036  4424
  one             556  2185
  zero            556  4424
  ptrail          556
  gap          100025
  toggle_bit        0


      begin codes
          power                    0x000000000000AFF9
          rew                      0x00000000000087F7
          play                     0x00000000000027FD
          ffwd                     0x00000000000047FB
          stop                     0x000000000000C7F3
          pause                    0x00000000000007FF
          rec                      0x00000000000073FC
          skipback                 0x000000000000C3F7
          mydvr                    0x00000000000043FF
          live                     0x00000000000083F0
          pageup                   0x000000000000A3F3
          pagedown                 0x00000000000023FB
          a_lock                   0x00000000000097F6
          b_day-                   0x00000000000063FD
          c_day+                   0x000000000000E3F5
          up                       0x000000000000D3F6
          down                     0x00000000000053FE
          left                     0x00000000000093F1
          right                    0x00000000000013F9
          ok/select                0x00000000000077F8
          guide                    0x000000000000F3F4
          info                     0x00000000000033FA
          menu                     0x00000000000067F9
          exit                     0x000000000000B7F4
          help                     0x000000000000B3F2
          last                     0x00000000000037FC
          vol+                     0x0000000000004FF3
          vol-                     0x0000000000008FFB
          mute                     0x0000000000000FF7
          fav                      0x00000000000057FA
          ch+                      0x0000000000002FF5
          ch-                      0x000000000000CFFD
          1                        0x0000000000007FF0
          2                        0x000000000000BFF8
          3                        0x0000000000003FF4
          4                        0x000000000000DFFC
          5                        0x0000000000005FF2
          6                        0x0000000000009FFA
          7                        0x0000000000001FF6
          8                        0x000000000000EFFE
          9                        0x0000000000006FF1
          0                        0x000000000000FFFF
          tv/vcr_input             0x000000000000D7F2
          hdzoom_enter             0x000000000000FDFC
          pnp-swap                 0x0000000000003BF2
      end codes

end remote


Works for me.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 04, 2006 12:59 pm 
Offline
Joined: Mon Mar 13, 2006 2:01 pm
Posts: 7
Correct me if I'm wrong - but will this allow you to access the cable menu for Comcasts 'On Demand' stuff? Like the pay per view stuff?

And if that is the case - how could I get the codes for a DCT-2000 digital cable box?
:?:


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 04, 2006 1:06 pm 
Offline
Joined: Sat Mar 26, 2005 3:49 pm
Posts: 290
If you read near the bottom where the code is commented, you'll see a mention of the Comcast On Demand button..which is just controlled by sending a 1 to the box then an enter. In practice it may be different however, so you may need to experiment.

For the remote codes for a DCT2000 box, I suggest a little googling for 'lirc DCT2000'. There's a master lirc site that has all known and decoded codes for hundreds of set top boxes.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 04, 2006 1:30 pm 
Offline
Joined: Mon Mar 13, 2006 2:01 pm
Posts: 7
Thanks!! :D

I've been thinking about, and getting confused about, getting this to work on a setup where there is a backend server which controls multiple cable boxes and a frontend at each tv. I get lost in trying to figure out how to get the correct signal to the correct cable box. Theoretically, a frontend will get any available cable box.... :shock:


Any hints as to how I might configure that?? :?:


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 04, 2006 2:59 pm 
Offline
Joined: Sat Mar 26, 2005 3:49 pm
Posts: 290
I imagine since you're following a lirc thread that you're trying to do this via either infrared (ir blaster) or serial. Basically your backend, which I'm assuming has multiple tuners plugged into your multiple cable boxes, will need to control each box individually.

Personally I haven't gotten in this deep yet. I know that you can set recordings and priorities to use specific inputs (tuners) but not sure how the frontends treat the backend when it comes to this. Perhaps frontend A controls backend tuner A all the time, or each frontend that requests a channel change will check to see if any tuners are on that channel already and start the stream.

I know something like this is definitely doable and probably much simpler than I'm making it out to be. I'll wait for someone that's more experienced with multiple backend tuners and frontends to fill in the blanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 04, 2006 3:24 pm 
Offline
Joined: Mon Mar 13, 2006 2:01 pm
Posts: 7
Like I said, I'm getting confused myself.

I'm actually using a serial cable to control the tuner boxes. I have 5 tuners in the back end, two just taking an anolog cable signal (basically straight from the wall - no tuner box) and three taking a digital signal from the cable boxes. One of the boxes is an HD box. The analog tuners can tune the channels directly from the basic analog signal from the wall, so I'm fine with those. It's the digital boxes I'm confused about.

My understanding, though limited at this point, is that the front end passes its commands to what ever tuner it has control of. The backend manages what available tuner gets assigned to the requesting front end.

The system is not completely setup yet, although I'm able to watch any tuner and record multiple signals simultaneously. I have a frontend setup and am able to watch/record from it, but I haven't got it traversing menus from the digital cable boxes.

Still a work in progress - but it's coming along slowly. :shock:


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 17 guests


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