View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Irblaster Blues again
PostPosted: Fri Aug 13, 2010 6:58 pm 
Offline
Joined: Mon Jan 30, 2006 6:57 pm
Posts: 90
My serial irblaster has been working relatively well for over a year now. Today it started giving me erratic channel changes. I don't know what changed. I have converted from hauppage remote to an mceusb remote in the past month but that didn't seem to affect the serial irblaster. My DirecTV H21-200 has never worked as well with my blaster as my old cable boxes did but it did work.

I tried changing the sleep settings and the position of the blaster to no avail. I tried changing to the mce blaster, but evidently because it is a first generation unit it does not blast.

I found a more specific remote lircd.conf for the H21-200 and tried using it, but it did not help and when I tried to go back to the H20-100 lircd.conf that I have been using, I have no blasting at all.


trying from command line gives this:

Code:
  > /usr/bin/change_chan.sh 244
irsend: command failed: SEND_ONCE DirecTV_HD20-100 2
irsend: unknown remote: "DirecTV_HD20-100"
irsend: command failed: SEND_ONCE DirecTV_HD20-100 4
irsend: unknown remote: "DirecTV_HD20-100"
irsend: command failed: SEND_ONCE DirecTV_HD20-100 4
irsend: unknown remote: "DirecTV_HD20-100"


the Log for lircd shows this:
Code:
Aug 13 20:35:20 mythtv lircd: accepted new client on /dev/lircd1
Aug 13 20:35:20 mythtv lircd: error processing command: SEND_ONCE DirecTV_HD20-100 4
Aug 13 20:35:20 mythtv lircd: unknown remote: "DirecTV_HD20-100"
Aug 13 20:35:20 mythtv lircd: removed client
Aug 13 20:35:21 mythtv lircd: accepted new client on /dev/lircd1
Aug 13 20:35:21 mythtv lircd: error processing command: SEND_ONCE DirecTV_HD20-100 4
Aug 13 20:35:21 mythtv lircd: unknown remote: "DirecTV_HD20-100"
Aug 13 20:35:21 mythtv lircd: removed client


/etc/lircd:

Code:
include "/usr/MythVantage/templates/remotes/mceusb/lircd.conf.mceusb"
include "/usr/MythVantage/templates/transmit/DirecTV_HD20-100/lircd.conf"


If anyone has any ideas, I really would appreciate the help.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 13, 2010 7:49 pm 
Offline
Joined: Mon Jan 30, 2006 6:57 pm
Posts: 90
I think I just found the answer to my question. I forgot to update the change_chan script with the new remote name! :oops:

Maybe that will fix my problem. I will have to wait until recording in process finishes to find out!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 14, 2010 6:16 am 
Offline
Joined: Mon Jan 30, 2006 6:57 pm
Posts: 90
I am glad to report that the codes I found for my receiver work much better than the old ones. For anyone who has a DirecTV H21-200. You can get the codes here.http://www.heistand.org/send_200.conf

Here is what I used:

Code:
#
# this config file was automatically generated
# using WinLIRC 0.6.5 (LIRC 0.6.1pre3) on Thu Feb 14 11:18:41 2008
#
# contributed by Tim Poff
#
# brand:             DirectTV Universal Remote
# model:             RC16
# supported devices: Serial IR device (DCD)
#
# NOTES:
# 1) Keys recorded in DirectTV control mode
# 2) TV INPUT, TV POWER, VOLUME CONTROL, and MUTE keys *not* recorded.
#    These keys function only in TV MODE.
# 3) Product Manual availible, please see:
# http://www.directv.com/learn/pdf/Remote_Controls/universal_remote_user_guide_new.pdf
# DirecTV HD21-200



begin remote

  name   DirecTV_HD21-200
  flags RAW_CODES
  eps            25
  aeps          100

  ptrail          0
  repeat     0     0
  gap    29895


      begin raw_codes

          name power
             2955    1232    1117    1239     520     641
              525     639     529    1229     534     629
              535     629     539    1218     547    1207
              553

          name pause
             2954    1232    1116    1236     520     642
              525     639    1128    1223     535     629
             1138     626     537     621     542    1209
              550

          name rewind
             2952    1229    1117    1239     519     644
              529     634    1134    1223     535     630
             1138    1219     539     625    1145     616
              545

          name chapt_prev
             2952    1230    1114    1242     520     643
              524     639    1129    1226     534    1220
             1137     626     539    1218     547     618
              545

          name stop
             2957    1231    1116    1240     520     643
              525     638    1130    1226     534     631
              535    1221     541     623     545     615
              551

          name chapt_next
             2951    1237    1112    1243     518     646
              521     642    1126    1227     530    1232
             1135    1220     544    1220     544    1213
              550

          name ffwd
             2952    1232    1117    1236     524     646
              522     644    1130    1223     535    1224
              539     626     541     619    1144     614
              544

          name record
             2950    1227    1117    1240     521     643
              521     639    1130    1227     533    1226
              538    1219     544     624    1149    1207
              549

          name play
             2951    1232    1114    1241     523     648
              523     640    1129    1228     535     628
              536     628    1142    1220    1143    1215
              540

          name guide
             2949    1230    1117    1244     519     642
              524     638    1131     631    1128     633
              533     629     538     626     536     625
              541

          name active
             2951    1230    1113    1243     520     645
              524     643    1128     630    1130     631
              537    1226     536     626     540    1216
              544

          name list
             2949    1229    1117    1234     519     646
              525     639    1128     633    1132     631
             1131     628     534     628    1137     623
              537

          name exit
             2951    1228    1115    1240     519     647
              524     638    1134     630     528    1229
             1137     625    1138    1216    1143    1218
              538

          name left_arrow
             2948    1234    1112    1240     517     647
              521     639    1130     631     530     633
             1134    1223    1135    1218     540    1215
              547

          name up_arrow
             2952    1231    1114    1240     523     644
              523     644    1128     633     529     631
              536    1225    1139     625    1139    1216
              537

          name right_arrow
             2950    1232    1112    1240     517     647
              520     641    1127     633     528    1226
              538     626    1138    1221     536    1216
              548

          name down_arrow
             2952    1226    1115    1243     518     648
              524     640    1129     633     530     635
             1135     625    1138    1218     540     626
              540

          name select
             2952    1229    1115    1239     519     649
              525     643    1128     633     532    1228
              538    1222    1143    1216    1143     620
              541

          name back
             2952    1232    1114    1241     520     641
              526     643    1131     633     527    1228
             1137    1223     540     626     539     621
              548

          name menu
             2950    1230    1120    1239     521     642
              524     639    1131     627     533     632
              535     629    1142     623    1139     622
              541

          name info
             2950    1231    1117    1238     516     649
              522     640    1126     633    1129    1224
             1137     624     537    1223     538    1217
              545

          name red
             2952    1230    1113    1240     516     649
              522    1238     530     636     534     630
              534    1219    1144     622     539     625
              544

          name green
             2948    1231    1118    1240     522     638
              526    1236     530     635     538     631
             1137    1219    1140     621    1141     623
              536

          name yellow
             2947    1232    1115    1243     517     645
              523    1236     526     638     532     630
             1137     625    1138     624     538    1218
              544

          name blue
             2951    1232    1114    1241     523     640
              526    1235     529     639     533    1225
              542     624    1142     621    1140     618
              543

          name chan_up
             2955    1225    1122    1236     524     638
              531     632     534     629    1143    1215
              542    1220    1145     619    1145     615
              543

          name chan_down
             2968    1214    1130    1225     533     629
              539     625     544     623    1149    1207
             1152     615    1152     609    1153    1204
              556

          name prev
             2968    1213    1135    1222     537     627
              538     626     543     617    1151    1204
             1153    1201    1158    1203     559     606
              562

          name 1
             2960    1224    1123    1235     522     640
              532     633     535     630     537     629
              542    1215     545     618     549    1206
              555

          name 2
             2957    1220    1126    1229     530     635
              535     628     541     626     540     622
             1148     615     547     617    1153     609
              550

          name 3
             2960    1225    1121    1233     525     636
              530     636     531     631     540     626
             1148    1209     547     617    1152    1208
              549

          name 4
             2957    1225    1122    1235     524     639
              529     630     534     632     535    1226
              543     622     547     617    1151    1206
              548

          name 5
             2956    1227    1122    1238     522     642
              529     635     534     632     536    1224
              541    1217     547    1213     555     614
              553

          name 6
             2952    1230    1118    1241     519     649
              521     639     529     637     532    1224
             1139     622     538    1222     540    1214
              550

          name 7
             2957    1228    1119    1234     526     643
              529     635     533     630     537    1222
             1142    1218     543    1211    1150     614
              548

          name 8
             2956    1224    1120    1235     526     636
              531     637     533     633    1136     619
              541     626     542    1219    1148     614
              543

          name 9
             2948    1233    1116    1238     521     648
              522     640     527     636    1134     630
              537    1228     539    1218    1146    1212
              546

          name dash
             2954    1230    1120    1238     520     643
              524     640     530    1234     534     631
             1142     620     538    1220    1149    1207
              547

          name 0
             2960    1225    1120    1233     529     638
              528     635     534    1227     540     624
              542    1218     548    1207    1155     608
              553

          name enter
             2969    1220    1132    1224     540     628
              541     619     547    1212     553     611
             1153    1205    1154     611     553     607
              557

      end raw_codes

end remote


BTW! I meant to post this in the LinHES hardware section. Maybe forum admin can move it? :)


Top
 Profile  
 
 Post subject: Change Channel Script
PostPosted: Thu Nov 11, 2010 12:09 pm 
Offline
Joined: Wed Apr 12, 2006 11:28 am
Posts: 82
Location: Beverly Hills, Michigan
Hi Grg3,

I was having the same issue as you, not I have it down to just my channel change script (that is where I think the issue is). Could you please post your channel change script?

Thanks,

Paul

_________________
Backend/Frontend
ASUS M4A78-EM w/8400GS 4G RAM pcHDTV 3000 + PVR500 (1045), 1TB, 250 & 320. Iguana IR USB (running R6)
Frontend_1
Asus M2NPV-VM - 1GB RAM - 40 GB Hard Disk - StreamZap
Frontend_2
Dragon 1.0 w/ 2G RAM - 40 GB Hard Disk StreamZap


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 26, 2010 10:21 am 
Offline
Joined: Sun Jul 24, 2005 4:16 pm
Posts: 499
Location: Ft. Worth TX
Hey grg3, I'd been following your entries in the #328 bug fix thread, but haven't had any luck getting an up-to-date 6 running ir blaster yet. (I have one running routinely on a 5.5 machine, and am about to put this one back on 5.5 too...)

What version did you finally get working ? What parts of bugfix 328 worked for you ?

[Related threads]
http://www.eggshellskull.com/lirc/blaster/index.php
http://linhes.org/bugs/issues/328
http://mysettopbox.tv/phpBB2/viewtopic. ... =irblaster
http://mysettopbox.tv/phpBB2/viewtopic. ... =irblaster
http://mysettopbox.tv/phpBB2/viewtopic.php?t=19772
http://mysettopbox.tv/phpBB2/viewtopic. ... 2&start=15
http://mysettopbox.tv/phpBB2/viewtopic. ... =irblaster

Edit: Got it Working

After an excursion into 5.5, which got ir blaster working rather easily, I decided I didn't like 5.5 dropping frames on HD. (My other 5.5 machine just does SD off the other satellite receiver)

So back to my 6.02 CD, followed by a complete pacman -Syyu update.
On a new hard drive.

Now this setup played OTA HD (HDHRs...) & pvr-250 SD from the satbox just fine....
But the ir blaster wasn't working again..

So I put Jams' change_channel.sh file in /usr/bin (My file from the 5.5 machine didn't work...)

Still didn't work until some internet searching found a four line entry by command line:

/sbin/modprobe lirc_i2c 
/sbin/modprobe lirc_serial 
/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

I put this in & it worked !
So I don't think this will survive a reboot, though. Anyone know where it should be put to load on boot ?

http://knoppmyth.net/phpBB2/viewtopic.php?t=22000

My working '/usr/LH/bin/load-modules-mythvantage.sh' file:

Quote:
[greg@mythbox60 etc]$ cat /usr/LH/bin/load-modules-mythvantage.sh

#!/bin/bash
#/usr/bin/load-modules-mythvantage.sh UNLOAD LCD
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions
. /etc/systemconfig
case $1 in
UNLOAD|unload )
MODULELIST=`grep /etc/modules.mythvantage $2`
for i in $MODULELIST
do
/sbin/rmmod $i
done

;;

*) printhl " Loading MythVantage-modules"
#try to load the cx88 modules
if [ ! x$SystemType = xFrontend_only ]
then
/sbin/modprobe cx88-dvb 2>/dev/null
fi

if [ -f /etc/modules.mythvantage ]
then
while read line
do
module=`echo $line |cut -d# -f1`
#this doesn't do anything on boot cause ttySX does not yet exisit
if [ x$module = xlirc_serial ]
then
if [ x$ReceiverType = xSerial ]
then
case $ReceiverSerialport in
ttyS0) FLAGS="io=0x3f8 irq=4";;
ttyS1) FLAGS="io=0x2f8 irq=3" ;;
ttyS2) FLAGS="io=0x3e8 irq=4" ;;
ttyS3) FLAGS="io=0x2f8 irq=3" ;;
esac
/usr/bin/setserial /dev/$ReceiverSerialport uart none 2>/dev/null
if [ $? = 0 ]
then
/sbin/modprobe lirc_serial $FLAGS 2>/dev/nulla
fi
elif [ x$HostBlasterType = xSerial ]
then
case $HostSerialPort_blasterlirc in
ttyS0) FLAGS="io=0x3f8 irq=4";;
ttyS1) FLAGS="io=0x2f8 irq=3" ;;
ttyS2) FLAGS="io=0x3e8 irq=4" ;;
ttyS3) FLAGS="io=0x2f8 irq=3" ;;
esac
/usr/bin/setserial /dev/$HostSerialPort_blasterlirc uart none 2>/dev/null
if [ $? = 0 ]
then
/sbin/modprobe lirc_serial $FLAGS 2>/dev/nulla
fi
fi
fi
/sbin/modprobe $module 2> /dev/null
done < /etc/modules.mythvantage
fi
esac


My working /etc/systemconfig file (ir settings section):

Quote:

#IR settings
Remotetype="streamzap"
ReceiverType="streamzap"
HDHRlirc_device=""
HostLircWait=""
ReceiverSerialport="ttyS0"
HostTransmitproto_1="none"
HostTransmitproto_2="none"
HostTransmitproto_3="none"
HostTransmitproto_4="none"
HostBlasterType="Serial"
HostSerialPort_blasterlirc="ttyS0"
Hostnumblaster="1"
rootSSH=""


My working 'usr/bin/change_channel.sh' file:

Quote:

[greg@mythbox60 etc]$ cat /usr/bin/change_channel.sh

#!/bin/sh
REMOTE_NAME=dish
cmd="$1"

case $cmd in
[0-9]*)
for digit in $(echo $1 | sed -e 's/./& /g'); do irsend --device=/dev/lircd1 SEND_ONCE $REMOTE_NAME $digit
sleep 0.3
# If things work OK with sleep 1, try this for faster channel changes:
# sleep 0.3
done
;;

*)
irsend SEND_ONCE $REMOTE_NAME $cmd
;;
esac
# /usr/bin/fix_audio.sh &



Edit 3/17: After a crash and having to set it up again, I noted other files from Bugfix #328 Notes 1, 9, & 13
that needed to be in one place (here):

Bugfix #328 Note 1:

/usr/LH/bin/load-modules-mythvantage.sh

Code:

[greg@mythbox60 bin]$ cat load-modules-mythvantage.sh
#!/bin/bash
#/usr/bin/load-modules-mythvantage.sh UNLOAD LCD
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions
. /etc/systemconfig
case $1 in
UNLOAD|unload )
MODULELIST=`grep /etc/modules.mythvantage $2`
for i in $MODULELIST
do
/sbin/rmmod $i
done

;;

*) printhl " Loading MythVantage-modules"
#try to load the cx88 modules
if [ ! x$SystemType = xFrontend_only ]
then
/sbin/modprobe cx88-dvb 2>/dev/null
fi

if [ -f /etc/modules.mythvantage ]
then
while read line
do
module=`echo $line |cut -d# -f1`
#this doesn't do anything on boot cause ttySX does not yet exisit
if [ x$module = xlirc_serial ]
then
if [ x$ReceiverType = xSerial ]
then
case $ReceiverSerialport in
ttyS0) FLAGS="io=0x3f8 irq=4";;
ttyS1) FLAGS="io=0x2f8 irq=3" ;;
ttyS2) FLAGS="io=0x3e8 irq=4" ;;
ttyS3) FLAGS="io=0x2f8 irq=3" ;;
esac
/usr/bin/setserial /dev/$ReceiverSerialport uart none 2>/dev/null
if [ $? = 0 ]
then
/sbin/modprobe lirc_serial $FLAGS 2>/dev/nulla
fi
elif [ x$HostBlasterType = xSerial ]
then
case $HostSerialPort_blasterlirc in
ttyS0) FLAGS="io=0x3f8 irq=4";;
ttyS1) FLAGS="io=0x2f8 irq=3" ;;
ttyS2) FLAGS="io=0x3e8 irq=4" ;;
ttyS3) FLAGS="io=0x2f8 irq=3" ;;
esac
/usr/bin/setserial /dev/$HostSerialPort_blasterlirc uart none 2>/dev/null
if [ $? = 0 ]
then
/sbin/modprobe lirc_serial $FLAGS 2>/dev/nulla
fi
fi
fi
/sbin/modprobe $module 2> /dev/null
done < /etc/modules.mythvantage
fi
esac



Bugfix #328 Note 9:

Superceded by Note 13:

(Kebe) made a minimalist /etc/sv/lircd/run script by stripping out everything that's not needed.

Bugfix #328 Note 13 kebe's /etc/sv/lircd/run

Code:
#!/bin/bash exec 2>&1 export TERM=linux . /etc/rc.conf . /etc/rc.d/functions LOG=/tmp/lirc.log if [ -f $LOG ] then rm -f $LOG fi . /etc/systemconfig stat_runit "Starting lirc" [ -e /etc/sv/lircd/.runtime ] || mkdir -p /etc/sv/lircd/.runtime serial_port=$HostSerialPort_blasterlirc if [ -n "$serial_port" ] then #/dev/ttyS0 (COM1), port 0x3f8, irq 4 #/dev/ttyS1 (COM2), port 0x2f8, irq 3 #/dev/ttyS2 (COM3), port 0x3e8, irq 4 #/dev/ttyS3 (COM4), port 0x2e8, irq 3 case $serial_port in ttyS0) FLAGS="io=0x3f8 irq=4" ;; ttyS1) FLAGS="io=0x2f8 irq=3" ;; ttyS2) FLAGS="io=0x3e8 irq=4" ;; ttyS3) FLAGS="io=0x2e8 irq=3" ;; esac /usr/bin/setserial /dev/$serial_port uart none sleep 0.5 /sbin/modprobe lirc_serial $FLAGS sleep 0.5 fi CMD="/usr/sbin/lircd -r -d /dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid" printhl " Device 1" $CMD >>$LOG 2>>$LOG LCMD="/usr/sbin/lircd -r -n -d /dev/lirc0 --output /dev/lircd" exec $LCMD >>$LOG 2>>$LOG


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu