LinHES Forums
http://forum.linhes.org/

ledxmit IR Blaster and Dual Satellite Receivers (Solved)
http://forum.linhes.org/viewtopic.php?f=11&t=9522
Page 1 of 1

Author:  vabiro [ Fri Apr 07, 2006 12:23 pm ]
Post subject:  ledxmit IR Blaster and Dual Satellite Receivers (Solved)

Hi,

I have managed to get my IR blaster from www.irblaster.info working with one of my ExpressVu 3100 (Similar to Dish 301) receivers using the tutorial http://losdos.dyndns.org:8080/public/my ... _LIRC.html. To do this I used the ledxmitd.conf file based on the remote deffinition at http://lirc.sourceforge.net/remotes/dishnet/SAT_301.

So far all is good, so I want to add a second receiver, and make use of the second receiver on my PVR-500.

I scrolled down to the section in the above tutorial to the section for using multiple receivers. I generated the raw remote for for my second remote address (9) and pased it into the /etc/ledxmitd.conf file below the original one, and called the remote "31009".

I also took the change_chan.sh script and changed the name to change_chan2.sh and changed the remote name from 3100 to 31009.

At this point, after rebooting or restarting the daemon I should be able to change channels on my second receiver, but no go. Receiver 1 (3100) is working fine, but the new receiver isn't (31009).

I have created new ledxmitd.conf where both remote profiles are in rew format, generated by the JVC_RAW script. This caused both to stop working at all.

When I send a command to the change_chan2.sh script here is the response I get:
Code:
#/usr/local/bin/change_chan2.sh 500
/usr/local/lirc-ledxmit/bin/ledxmit-irsend: command failed: SEND_ONCE 31009 5
/usr/local/lirc-ledxmit/bin/ledxmit-irsend: transmission failed
/usr/local/lirc-ledxmit/bin/ledxmit-irsend: command failed: SEND_ONCE 31009 0
/usr/local/lirc-ledxmit/bin/ledxmit-irsend: transmission failed
/usr/local/lirc-ledxmit/bin/ledxmit-irsend: command failed: SEND_ONCE 31009 0
/usr/local/lirc-ledxmit/bin/ledxmit-irsend: transmission failed


versus what happend when I do the original script.

Here is the content of the change_chan2.sh script:
Code:
#!/bin/sh
REMOTE_NAME=31009
for digit in $(echo $1 | sed -e 's/./& /g'); do
  /usr/local/lirc-ledxmit/bin/ledxmit-irsend SEND_ONCE $REMOTE_NAME $digit
  sleep 0.3  # note, you may have to tweak the interdigit delay up a bit, depending on your DISH receiver model
done


The only thing that I have been unable to figure out is how to use a non-raw file similar to the original one I used for the first receiver, but with a remote address of 9. I have been unable to figure out is how to modify that file so that it sends address 9 for the second remote.

Any thoughts on what could be going on?

Cheers
Victor

Author:  vabiro [ Tue Apr 11, 2006 10:31 am ]
Post subject:  Problem Solved

Hi,

It seems as though the mix of hex and Decimal in the /etc/ledxmit.conf file was not cool. I had been trying to keep the remote definitions in the same fromat and managed to find the the right format by locating an archived version of the defunct site http://lircsetup.com/lirc/multi/index.php by going to http://www.archive.org and entering the original URL that was showing as being dead.

On the archived page I found the /etc/ledxmit.conf for the remote addresses 1, 6, and 9. I had to make one modification to the file because every time I would enter a channel number like 500, it would only show the last digit as being entered (i.e. the only number that would be entered was 0)

To fix this I changed "min_repeat 1" to "min_repeat 4" which is the amount in the file on the remote definition at http://lirc.sourceforge.net/remotes/dishnet/SAT_301.

The remote config for 1 is on the http://lirc.sourceforge.net/remotes/dishnet/SAT_301, so I will provide only 6 and 9:

Remote address 6 for the ExpressVu 3100:
Code:
begin remote

  name  DISH_6
  bits           16
  flags SPACE_ENC|NO_HEAD_REP
  eps            30
  aeps          100

  header        350  6000
  one           324  2800
  zero          324  1700
  ptrail        324
  gap          6000
  min_repeat      4
  toggle_bit      0


      begin codes
          tv/video                 0x000000000000A37F
          power                    0x000000000000F77F
          menu                     0x000000000000D37F
          page_up                  0x000000000000C36F
          page_down                0x000000000000E36F
          guide                    0x000000000000AF7F
          pointer_up               0x000000000000977F
          pointer_left             0x0000000000008F7F
          pointer_right            0x0000000000009F7F
          pointer_down             0x000000000000877F
          select                   0x000000000000BF7F
          recall                   0x000000000000937F
          info                     0x000000000000FF7F
          view                     0x000000000000A77F
          cancel                   0x000000000000B77F
          sys_info                 0x0000000000006F7F
          record                   0x000000000000837F
          1                        0x000000000000EF7F
          2                        0x000000000000EB7F
          3                        0x000000000000E77F
          4                        0x000000000000DF7F
          5                        0x000000000000DB7F
          6                        0x000000000000D77F
          7                        0x000000000000CF7F
          8                        0x000000000000CB7F
          9                        0x000000000000C77F
          0                        0x000000000000BB7F
          *                        0x0000000000006B7F
          #                        0x000000000000677F
      end codes

end remote



For remote address 9:
Code:
begin remote

  name  DISH_9
  bits           16
  flags SPACE_ENC|NO_HEAD_REP
  eps            30
  aeps          100

  header        350  6000
  one           324  2800
  zero          324  1700
  ptrail        324
  gap          6000
  min_repeat      4
  toggle_bit      0


      begin codes
          tv/video                 0x000000000000A3BF
          power                    0x000000000000F7BF
          menu                     0x000000000000D3BF
          page_up                  0x000000000000C3AF
          page_down                0x000000000000E3AF
          guide                    0x000000000000AFBF
          pointer_up               0x00000000000097BF
          pointer_left             0x0000000000008FBF
          pointer_right            0x0000000000009FBF
          pointer_down             0x00000000000087BF
          select                   0x000000000000BFBF
          recall                   0x00000000000093BF
          info                     0x000000000000FFBF
          view                     0x000000000000A7BF
          cancel                   0x000000000000B7BF
          sys_info                 0x0000000000006FBF
          record                   0x00000000000083BF
          1                        0x000000000000EFBF
          2                        0x000000000000EBBF
          3                        0x000000000000E7BF
          4                        0x000000000000DFBF
          5                        0x000000000000DBBF
          6                        0x000000000000D7BF
          7                        0x000000000000CFBF
          8                        0x000000000000CBBF
          9                        0x000000000000C7BF
          0                        0x000000000000BBBF
          *                        0x0000000000006BBF
          #                        0x00000000000067BF
      end codes

end remote


Voila! I now have both tuners and receivers working in concert perfectly.

I hope this helps some one else avoid the frustration I endured.

Cheer
Victor

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/