IR-Blaster not working

  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:0938787a6d93a224fbec137d501f714c' in /var/www/mythdora/html/includes/cache.inc on line 26.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p>I am having some issues as I try to install an IR-Blaster.</p>\n<p>My setup:<br />\n- Remote control SnapStream FireFly (the old one, not the mini)<br />\n- IR Blaster from <a href=\"http://www.irblaster.info\">www.irblaster.info</a></p>\n<p>This is what I have done so far.<br />\n1. Installed MD5.<br />\n2. Upgraded as stated on the mainpage of Mythdora.com<br />\n3. re-ran the IR-Blaster setup using MythTV-Frontend<br />\n4. re-ran remote control using Snapstream</p>\n<p>Testing<br />\n1. Tested script (change_chan.pl), but fails<br />\n[root@laotratv bin]# ./change_chan.pl 3<br />\nchannel changing 3<br />\nirsend: command failed: SEND_ONCE Snapstream ENTER<br />\nirsend: hardware does not support sending</p>\n<p>I found this post --&gt; <a href=\"http://www.mythdora.com/?q=node/3529\">http://www.mythdora.com/?q=node/3529</a><br />\nBut not really sure what to do.</p>\n<p>Below my files:</p>\n<p>==============================================<br />\n1. change_chan.pl:<br />\n#!/usr/bin/perl</p>\n<p># make sure to set this string to<br />\n# the corresponding remote in /etc/lircd.conf<br />\n$remote_name = \"Snapstream\";</p>\n<p># Let\'s assume you don\'t need to press enter after you punch in a<br />\n# channel number. Change this to 1 if your cable box expects you press<br />\n# enter after each command<br />\n$needs_enter = 1;</p>\n<p># Change this to point to your rc executable<br />\n$rc_command = \"/usr/bin/irsend\";<br />\n$ir_device = \"-d /dev/lircd1\";<br />\n[[... file is longer, but there seems nothing to change]]</p>\n<p>==============================================</p>\n<p>2. /etc/rc.d/rc.local<br />\n#!/bin/bash</p>\n<p># This file allows you to execute things at the end of boot</p>\n<p>touch /var/lock/subsys/local<br />\nirexec -d<br />\n#IRBlaster<br />\nsetserial /dev/ttyS0 uart none<br />\n/sbin/modprobe lirc_serial type=0 irq=4 io=0x3f8 softcarrier=1<br />\n/usr/sbin/lircd --device=/dev/lirc0 --output=/dev/lircd<br />\n/usr/sbin/lircd --driver=default --device=/dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid</p>\n<p>==============================================</p>\n<p>3. /etc/sysconfig/modules/lirc.modules<br />\ntouch /var/lock/subsys/local<br />\nirexec -d<br />\n#IRBlaster<br />\nsetserial /dev/ttyS0 uart none<br />\n/sbin/modprobe lirc_serial type=0 irq=4 io=0x3f8 softcarrier=1<br />\n/usr/sbin/lircd --device=/dev/lirc0 --output=/dev/lircd<br />\n/usr/sbin/lircd --driver=default --device=/dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid</p>\n<p>==============================================</p>\n<p>4. /etc/modprobe.d/lirc<br />\n# lirc module configuration<br />\nalias char-major-61 lirc_atiusb</p>\n<p>==============================================</p>\n<p>Now doing some research I found this article --&gt; <a href=\"http://www.eggshellskull.com/lirc/blaster/index.php\">http://www.eggshellskull.com/lirc/blaster/index.php</a><br />\nThere are some important differences... So I am lost on what approach to follow...<br />\nAny advice will be useful.</p>\n<p>Regards,<br />\nCGS</p>\n', created = 1369050454, expire = 1369136854, headers = '', serialized = 0 WHERE cid = '1:0938787a6d93a224fbec137d501f714c' in /var/www/mythdora/html/includes/cache.inc on line 109.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:746e5c9809c41ebfbf7ef9dded992f82' in /var/www/mythdora/html/includes/cache.inc on line 26.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p>I realize that I need to change<br />\nchange_chan.pl:<br />\n$remote_name = \"DCT2000\";</p>\n<p>And add DCT2000 content into my /etc/lircd.conf file.<br />\nBut still not working</p>\n', created = 1369050454, expire = 1369136854, headers = '', serialized = 0 WHERE cid = '1:746e5c9809c41ebfbf7ef9dded992f82' in /var/www/mythdora/html/includes/cache.inc on line 109.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:fd4d9c51d2633d8fc46f2f0bf226c7c6' in /var/www/mythdora/html/includes/cache.inc on line 26.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p>I tell you what, let\'s try and simplify things a bit. First let\'s use another channel change script. I\'m not too fond of the one in MD5. We will be using a very simple one instead that will be included in the new release. So create another channel change script called changechannel.sh like so.</p>\n<p>-----------------------------<br />\n#!/bin/bash</p>\n<p>REMOTE=DCT2000</p>\n<p>for digit in $(echo $1 | sed -e \'s/./&amp; /g\'); do</p>\n<p>irsend SEND_ONCE $REMOTE $digit<br />\nsleep 0.2 #sleep command can be altered if digits don\'t enter properly. Maybe 0.4</p>\n<p>done<br />\nirsend SEND_ONCE $REMOTE OK</p>\n<p>-----------------------------</p>\n<p>Then make it executable:<br />\nchmod 775 /usr/local/changechannel.sh</p>\n<p>Also you can remove all of what you have in step 3 as the exact same thing is in step 2. Try all that first and then see if things will change the channel from the command line. If that still doesn\'t work then there have been some reports of people having issues with the lirc_serial module loading too soon. So what you might want to try next is to keep lirc from starting at boot. Do this as root by doing chkconfig lircd off. Then add the following to the end of your rc.local file</p>\n<p>/sbin/modprobe lirc_atiusb</p>\n<p>\"Please ignore the man behind the curtain\"<br />\nDennis</p>\n', created = 1369050454, expire = 1369136854, headers = '', serialized = 0 WHERE cid = '1:fd4d9c51d2633d8fc46f2f0bf226c7c6' in /var/www/mythdora/html/includes/cache.inc on line 109.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:7ee834acd95a5efc693cacccaa73a62b' in /var/www/mythdora/html/includes/cache.inc on line 26.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p>\"Please ignore the man behind the curtain\"<br />\nDennis</p>\n', created = 1369050454, expire = 1369136854, headers = '', serialized = 0 WHERE cid = '1:7ee834acd95a5efc693cacccaa73a62b' in /var/www/mythdora/html/includes/cache.inc on line 109.

I am having some issues as I try to install an IR-Blaster.

My setup:
- Remote control SnapStream FireFly (the old one, not the mini)
- IR Blaster from www.irblaster.info

This is what I have done so far.
1. Installed MD5.
2. Upgraded as stated on the mainpage of Mythdora.com
3. re-ran the IR-Blaster setup using MythTV-Frontend
4. re-ran remote control using Snapstream

Testing
1. Tested script (change_chan.pl), but fails
[root@laotratv bin]# ./change_chan.pl 3
channel changing 3
irsend: command failed: SEND_ONCE Snapstream ENTER
irsend: hardware does not support sending

I found this post --> http://www.mythdora.com/?q=node/3529
But not really sure what to do.

Below my files:

==============================================
1. change_chan.pl:
#!/usr/bin/perl

# make sure to set this string to
# the corresponding remote in /etc/lircd.conf
$remote_name = "Snapstream";

# Let's assume you don't need to press enter after you punch in a
# channel number. Change this to 1 if your cable box expects you press
# enter after each command
$needs_enter = 1;

# Change this to point to your rc executable
$rc_command = "/usr/bin/irsend";
$ir_device = "-d /dev/lircd1";
[[... file is longer, but there seems nothing to change]]

==============================================

2. /etc/rc.d/rc.local
#!/bin/bash

# This file allows you to execute things at the end of boot

touch /var/lock/subsys/local
irexec -d
#IRBlaster
setserial /dev/ttyS0 uart none
/sbin/modprobe lirc_serial type=0 irq=4 io=0x3f8 softcarrier=1
/usr/sbin/lircd --device=/dev/lirc0 --output=/dev/lircd
/usr/sbin/lircd --driver=default --device=/dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid

==============================================

3. /etc/sysconfig/modules/lirc.modules
touch /var/lock/subsys/local
irexec -d
#IRBlaster
setserial /dev/ttyS0 uart none
/sbin/modprobe lirc_serial type=0 irq=4 io=0x3f8 softcarrier=1
/usr/sbin/lircd --device=/dev/lirc0 --output=/dev/lircd
/usr/sbin/lircd --driver=default --device=/dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid

==============================================

4. /etc/modprobe.d/lirc
# lirc module configuration
alias char-major-61 lirc_atiusb

==============================================

Now doing some research I found this article --> http://www.eggshellskull.com/lirc/blaster/index.php
There are some important differences... So I am lost on what approach to follow...
Any advice will be useful.

Regards,
CGS

update ....

I realize that I need to change
change_chan.pl:
$remote_name = "DCT2000";

And add DCT2000 content into my /etc/lircd.conf file.
But still not working

I tell you what, let's try

I tell you what, let's try and simplify things a bit. First let's use another channel change script. I'm not too fond of the one in MD5. We will be using a very simple one instead that will be included in the new release. So create another channel change script called changechannel.sh like so.

-----------------------------
#!/bin/bash

REMOTE=DCT2000

for digit in $(echo $1 | sed -e 's/./& /g'); do

irsend SEND_ONCE $REMOTE $digit
sleep 0.2 #sleep command can be altered if digits don't enter properly. Maybe 0.4

done
irsend SEND_ONCE $REMOTE OK

-----------------------------

Then make it executable:
chmod 775 /usr/local/changechannel.sh

Also you can remove all of what you have in step 3 as the exact same thing is in step 2. Try all that first and then see if things will change the channel from the command line. If that still doesn't work then there have been some reports of people having issues with the lirc_serial module loading too soon. So what you might want to try next is to keep lirc from starting at boot. Do this as root by doing chkconfig lircd off. Then add the following to the end of your rc.local file

/sbin/modprobe lirc_atiusb

"Please ignore the man behind the curtain"
Dennis

"Please ignore the man behind the curtain"
Dennis