[mythtvnz] Sky decoder and PVR-500

Robin Gilks g8ecj at gilks.org
Mon Sep 14 10:55:23 BST 2009


> On Mon, 14 Sep 2009 21:22:43 Stephen Worthington wrote:
>> Fortunately, I have ir blaster hardware already - I think it came with
>> the MCE remote.  The trick will be getting it to work, as I have never
>> used it.
>
> The blaster part of the MCE remote has worked for some time now with
> standard
> LIRC, it works well.
>
> hads


To use the MCE IR blaster you need two parts - a script that MythBackend
calls to change the channels and the correct section in the lircd.conf
file to generate the correct codes to be sent.

Here is the script I use (I have mine as /usr/local/bin/sky.sh) where I
have the LED lead plugged into the socket with the '1' label next to it...

#!/bin/sh

REMOTE_NAME=sky
cmd="$1"
DEVICE=/dev/lircd

/usr/bin/irsend SET_TRANSMITTERS 1
case $cmd in
    [0-9]*)
    # make sure we unmute by hitting vol up
    # /usr/bin/irsend -d $DEVICE SEND_ONCE $REMOTE_NAME Vol+
    # sleep 0.1
    for digit in $(echo $1 | sed -e 's/./& /g'); do
        /usr/bin/irsend -d $DEVICE SEND_ONCE $REMOTE_NAME $digit
        sleep 1
        # If works OK with sleep 1, try this for faster channel changes:
        # sleep 0.2
    done
    ;;

    *)
        /usr/bin/irsend -d $DEVICE SEND_ONCE $REMOTE_NAME $cmd
        ;;
esac

and here is the section of the /etc/lircd.conf file that contains the
codes. I'm not sure if its the one from the lirc.org website or one I
generated myself now but it drives the standard Pace Sky box OK :-)


# Please make this file available to others
# by sending it to <lirc at bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.7.0(serial) on Tue Jul  5 19:50:34 2005
#
# contributed by
#
# brand:                       sky.conf
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  name  sky
  bits           16
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       9139  4359
  one           708  1536
  zero          708   409
  ptrail        702
  repeat       9140  2115
  pre_data_bits   16
  pre_data       0x213C
  gap          107822
  min_repeat      1
  toggle_bit      0


      begin codes
          1                        0x0000000000000CF3
          2                        0x000000000000946B
          3                        0x0000000000009C63
          4                        0x00000000000014EB
          5                        0x00000000000004FB
          6                        0x0000000000001CE3
          7                        0x0000000000004CB3
          8                        0x00000000000054AB
          9                        0x00000000000044BB
          0                        0x000000000000CC33
          Chan+                    0x000000000000AC53
          Chan-                    0x000000000000EC13
          Vol+                     0x000000000000649B
          Vol-                     0x000000000000E41B
          Mute                     0x000000000000A45B
          Menu                     0x000000000000748B
          Exit                     0x0000000000005CA3
          Text                     0x0000000000006C93
          TV                       0x0000000000008C73
          Spare                    0x000000000000F40B
          Left                     0x0000000000002CD3
          Right                    0x000000000000DC23
          Up                       0x000000000000D42B
          Down                     0x00000000000024DB
          Info                     0x00000000000034CB
          Plus                     0x0000000000003CC3
          Select                   0x000000000000C43B
          Red                      0x0000000000007C83
          Green                    0x000000000000B44B
          Yellow                   0x000000000000BC43
          Blue                     0x000000000000FC03
          S_power                  0x000000000000847B
      end codes

end remote


-- 
Robin Gilks






More information about the mythtvnz mailing list