LinHES Forums http://forums.linhes.org/ |
|
IR Blaster http://forums.linhes.org/viewtopic.php?f=14&t=2092 |
Page 1 of 1 |
Author: | loskinski [ Fri Jul 30, 2004 12:39 am ] |
Post subject: | IR Blaster |
Hello I have been working on this project for a few days now. I have everything working for the most part. I am just on the last part of the project. The IR Blaster. I am having some problems with it. I used the instructions at http://losdos.dyndns.org:8080/public/my ... _LIRC.html I thought i did it correctly or followed them. I am getting an error when i am trying to test it out. I get a Connection Refused. I have tried to search and read the forums but i havent been able to figure anything out. Any help would be great. Thank you Dave |
Author: | wrooster [ Tue Aug 10, 2004 12:35 pm ] |
Post subject: | Re: IR Blaster |
loskinski wrote: Hello I have been working on this project for a few days now. I have everything working for the most part. I am just on the last part of the project. The IR Blaster. I am having some problems with it. I used the instructions at http://losdos.dyndns.org:8080/public/my ... _LIRC.html I thought i did it correctly or followed them. I am getting an error when i am trying to test it out. I get a Connection Refused.
I have tried to search and read the forums but i havent been able to figure anything out. Any help would be great. Thank you Dave hi dave, i'm the author of that howto. what exactly are you doing to generate the error, and at which step in my process does it occur? just so we are on the same page, you are running knoppmyth, right? (=debian). did you follow my process verbatim, and did you notice any type of error messages along the way? if you can provide me a little more detail about your troubles i'm pretty sure i can figure out what is amiss. jim |
Author: | kb9mwo [ Thu Aug 19, 2004 7:41 pm ] |
Post subject: | Here are my problems (different person) using PRE7 lirc |
$ ./myth-ledxmit.sh lirc-0.7.0pre7 ./myth-ledxmit.sh: Copying lirc source directory... ./myth-ledxmit.sh: Moving lirc directories ./myth-ledxmit.sh: Moving lirc files mv: cannot move `./drivers/lirc_sasem/lirc_sasem.c' to `./drivers/ledxmit_sasem/lirc_sasem.c': No such file or directory So I added in your script: echo "$0: Moving lirc directories" mv ./drivers/lirc_atiusb ./drivers/ledxmit_atiusb # note, comment out the next line if you are using a LIRC version < 0.7.0 mv ./drivers/lirc_mceusb ./drivers/ledxmit_mceusb mv ./drivers/lirc_bt829 ./drivers/ledxmit_bt829 mv ./drivers/lirc_dev ./drivers/ledxmit_dev mv ./drivers/lirc_gpio ./drivers/ledxmit_gpio mv ./drivers/lirc_i2c ./drivers/ledxmit_i2c mv ./drivers/lirc_it87 ./drivers/ledxmit_it87 mv ./drivers/lirc_parallel ./drivers/ledxmit_parallel mv ./drivers/lirc_serial ./drivers/ledxmit_serial mv ./drivers/lirc_sir ./drivers/ledxmit_sir mv ./drivers/lirc_sasem ./drivers/ledxmit_sasem ^ this last line I added to see if it would help. It kinda did. I then get it to run, then at the end of the run, I get this: checking for Linux kernel sources... /tmp/LEDXMITMF.ZHyba4:260: arch/i386/Makefile: No such file or directory /tmp/LEDXMITMF.ZHyba4:543: Rules.make: No such file or directory make: *** No rule to make target `Rules.make'. Stop. /tmp/LEDXMITMF.ZHyba4:260: arch/i386/Makefile: No such file or directory /tmp/LEDXMITMF.ZHyba4:543: Rules.make: No such file or directory make: *** No rule to make target `Rules.make'. Stop. /tmp/LEDXMITMF.ZHyba4:260: arch/i386/Makefile: No such file or directory /tmp/LEDXMITMF.ZHyba4:543: Rules.make: No such file or directory make: *** No rule to make target `Rules.make'. Stop. ./configure: line 7787: test: -eq: unary operator expected /usr/src/linux/ checking for which drivers can be installed on this system... checking for caraca_init in -lcaraca_client... no checking for ir_strerror in -lirman... no checking for ir_strerror in -lirman_sw... no checking for portaudio.h... no checking for alsa/asoundlib.h... yes checking for snd_pcm_open in -lasound... yes updating cache ./config.cache creating ./config.status creating Makefile creating drivers/Makefile creating drivers/ledxmit_serial/Makefile creating drivers/ledxmit_sir/Makefile creating drivers/ledxmit_parallel/Makefile creating drivers/ledxmit_i2c/Makefile creating drivers/ledxmit_gpio/Makefile creating drivers/ledxmit_dev/Makefile creating drivers/ledxmit_it87/Makefile creating drivers/ledxmit_bt829/Makefile creating drivers/ledxmit_atiusb/Makefile creating drivers/ledxmit_mceusb/Makefile creating drivers/ledxmit_sasem/Makefile creating daemons/Makefile creating tools/Makefile creating doc/Makefile creating doc/man/Makefile creating config.h You will have to use the ledxmit_serial kernel module. Now enter 'make' and 'make install' to compile and install the package. ./myth-ledxmit.sh: Running make cd . && \ /bin/sh /home/joseph/myth-ledxmit/myth-ledxmit.WIP/missing --run automake --gnu Makefile configure.in:18: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst configure.in:1058: warning: do not use m4_regexp: use regexp or m4_bregexp configure.in:17: your implementation of AM_INIT_AUTOMAKE comes from an configure.in:17: old Automake version. You should recreate aclocal.m4 configure.in:17: with aclocal and run automake again. WARNING: `automake' is missing on your system. You should only need it if you modified `Makefile.am', `acinclude.m4' or `configure.in'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd . && \ CONFIG_HEADERS= CONFIG_LINKS= \ CONFIG_FILES=Makefile /bin/sh ./config.status creating Makefile make all-recursive make[1]: Entering directory `/home/joseph/myth-ledxmit/myth-ledxmit.WIP' Making all in drivers make[2]: Entering directory `/home/joseph/myth-ledxmit/myth-ledxmit.WIP/drivers' cd .. && \ CONFIG_HEADERS= CONFIG_LINKS= \ CONFIG_FILES=drivers/Makefile /bin/sh ./config.status creating drivers/Makefile make[2]: Leaving directory `/home/joseph/myth-ledxmit/myth-ledxmit.WIP/drivers' make[2]: Entering directory `/home/joseph/myth-ledxmit/myth-ledxmit.WIP/drivers' Making all in ledxmit_dev make[3]: Entering directory `/home/joseph/myth-ledxmit/myth-ledxmit.WIP/drivers/ledxmit_dev' cd ../.. && \ CONFIG_HEADERS= CONFIG_LINKS= \ CONFIG_FILES=drivers/ledxmit_dev/Makefile /bin/sh ./config.status creating drivers/ledxmit_dev/Makefile make[3]: Leaving directory `/home/joseph/myth-ledxmit/myth-ledxmit.WIP/drivers/ledxmit_dev' make[3]: Entering directory `/home/joseph/myth-ledxmit/myth-ledxmit.WIP/drivers/ledxmit_dev' mv Makefile Makefile.automake cp ../Makefile.kernel Makefile make -C /usr/src/linux/ SUBDIRS=/home/joseph/myth-ledxmit/myth-ledxmit.WIP/drivers/ledxmit_dev modules \ KBUILD_VERBOSE=1 make[4]: Entering directory `/usr/src/kernel-headers-2.4.25-chw' Makefile:260: arch/i386/Makefile: No such file or directory Makefile:543: Rules.make: No such file or directory make[4]: *** No rule to make target `Rules.make'. Stop. make[4]: Leaving directory `/usr/src/kernel-headers-2.4.25-chw' make[3]: *** [ledxmit_dev.o] Error 2 make[3]: Leaving directory `/home/joseph/myth-ledxmit/myth-ledxmit.WIP/drivers/ledxmit_dev' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/joseph/myth-ledxmit/myth-ledxmit.WIP/drivers' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/joseph/myth-ledxmit/myth-ledxmit.WIP' make: *** [all] Error 2 Any thoughts or help. Thanks for creating this. I am really excited about using it! -Joseph |
Author: | wrooster [ Thu Aug 19, 2004 8:06 pm ] |
Post subject: | |
joseph, thanks for the patch to fix the new driver in the lirc pre7 tree. i'm going to add that to my web page script. regarding your specific problem... first, can you post the output of the following: $ uname -a $ dmesg | grep "Linux version" $ gcc -v $ where make next, which version of knoppmyth did you install, or is this a non-knoppmyth setup that you DIY'd? on my knoppmyth system the script and the lirc pre7 compile run straight through without error, once your edit is in place. see info below for comparison... regards jim jds@mythtv:~ $ cd /tmp jds@mythtv:/tmp $ wget http://lirc.sourceforge.net/software/sn ... e7.tar.bz2 21:56:56 (85.56 KB/s) - `lirc-0.7.0pre7.tar.bz2' saved [452630/452630] jds@mythtv:/tmp $ bzip2 -d *bz2 ; tar xf *7.tar jds@mythtv:/tmp $ ~/myth-ledxmit.sh lirc-0.7.0pre7 /home/jds/myth-ledxmit.sh: Copying lirc source directory... /home/jds/myth-ledxmit.sh: Moving lirc directories /home/jds/myth-ledxmit.sh: Moving lirc files /home/jds/myth-ledxmit.sh: Renaming lirc vars in files /home/jds/myth-ledxmit.sh: Renaming LIRC vars in files /home/jds/myth-ledxmit.sh: Restoring exec permissions /home/jds/myth-ledxmit.sh: Running configure creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c <... snipped 'cause joe got it all working and this was way too long ...> make[2]: Leaving directory `/tmp/myth-ledxmit.WIP' make[1]: Leaving directory `/tmp/myth-ledxmit.WIP' jds@mythtv:~ $ jds@mythtv:/tmp $ gcc -v Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.2/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,ob jc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib - -enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gn u --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.2 20030812 (Debian prerelease) jds@mythtv:/tmp $ where make make is /usr/bin/make jds@mythtv:/tmp $ uname -a Linux mythtv 2.4.21-xfs #1 SMP Thu Oct 2 17:33:33 PDT 2003 i686 GNU/Linux jds@mythtv:/tmp $ dmesg | grep "Linux version" Linux version 2.4.21-xfs (root@Knoppix) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 SMP Thu Oct 2 17:33:33 PDT 2003 |
Author: | wrooster [ Thu Aug 19, 2004 8:37 pm ] |
Post subject: | Re: Here are my problems (different person) using PRE7 lirc |
but perhaps now i see your problem. you may have to unpack your kernel sources, see http://mysettopbox.tv/phpBB2/viewtopic.php?t=1935 for info and tips. based on the info in http://mysettopbox.tv/phpBB2/viewtopic.php?t=1357 it goes something like this: Code: cd /usr/src
sudo bzcat linux-2.4.25-chw.tar.bz2 | tar -xvf - cp linux/.config linux-2.4.25-chw [type y] sudo rm linux ln -s linux-2.4.25-chw linux cd linux-2.4.25-chw make oldconfig dep NOTE: on KnoppMythR4V3, there is one error that needs correcting: sudo rm /lib/modules/2.4.25-chw/build sudo ln -sf /usr/src/linux-2.4.25-chw /lib/modules/2.4.25-chw/build although i don't recall having to do this with knoppmyth R4V2. (?) jim kb9mwo wrote: I then get it to run, then at the end of the run, I get this:
checking for Linux kernel sources... /tmp/LEDXMITMF.ZHyba4:260: arch/i386/Makefile: No such file or directory /tmp/LEDXMITMF.ZHyba4:543: Rules.make: No such file or directory make: *** No rule to make target `Rules.make'. Stop. |
Author: | kb9mwo [ Thu Aug 19, 2004 10:58 pm ] |
Post subject: | Unpacking source did it! |
Great, I have it working now! But... I can't find the right codes for my DSS. I have an older Sony SAT-A2 DSS. It uses the RM-Y130 remote which I can't figure out how to configure the ledxmitd.conf file to get it to work. Any help? I get the blinky led which is good, but I need the right codes for my dss... BTW, thanks again for this code and scripting, it is very cool to be able to control devices this way. Plus, it cost me nothing. I had the parts at my shop. -Joseph |
Author: | wrooster [ Thu Aug 19, 2004 11:11 pm ] |
Post subject: | Re: Unpacking source did it! |
kb9mwo wrote: Great, I have it working now! gonna tell us what you had to do? ![]() ![]() kb9mwo wrote: But... I can't find the right codes for my DSS. I have an older Sony SAT-A2 DSS. It uses the RM-Y130 remote which I can't figure out how to configure the ledxmitd.conf file to get it to work. Any help? see http://lirc.sourceforge.net/remotes/sony/ and try the config file from any of the similar sony remotes -- e.g. the RM-Y135. myth doesn't have to send your receiver any fancy functions to change the channel -- just the numbers. and my bet is that most of the sony stuff uses similar keycodes for the numbers. you just have to find one that has working numbers, and you're in. kb9mwo wrote: I get the blinky led which is good, but I need the right codes for my dss... if that's the case, you are 99% of the way there. just need the config file, and like i said, only the basic stuff (like the numbers) has to work. kb9mwo wrote: BTW, thanks again for this code and scripting, it is very cool to be able to control devices this way. Plus, it cost me nothing. I had the parts at my shop. -Joseph
what kind of shop? regards, jim |
Author: | kb9mwo [ Fri Aug 20, 2004 5:36 pm ] |
Post subject: | This is what I did |
It was a function of having to get the source unzipped and reset the link so I could compile to it. I should have thought of that before... duh... Now, I got the remote totally working. I just happened to read the rm-y500 should work with the dss receiver and IT DOES! I just have to finish with the script and I should be on my way. I assume, cause I haven't looked yet, that I can have both the cable (pvr-250 tuner) and the DSS both working and myth will autoswitch based on the configuration I use between the two sets of channels. So far, everything is going very very cool. You open source guys are the BEST! My shop manufactures area measurement equipment. We also do engineering contract work and are an official Atmel AVR consultant. So I have electronics up the wazoo for prototyping. Being the president has its advantages allowing me to "borrow" parts for experiments. www.measurearea.com (cheap plug for my invention) Again, guys, thanks... This blows tivo away in every way, shape, and form. I will never conform to doing things the "commercial" way. It's the experimental way or die trying! -Joseph Gottlieb (yes, also the pinball family) |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |