|
From: Jay J. <cu...@ch...> - 2009-01-11 03:12:54
|
I am setting up a MythTV box for a friend, and he needs an "IR blaster" to control an HD to SD converter box. I am using Fedora 10, and the "provided" lirc RPMs from Fedora. I figured out how to get lirc to simultaneously support coexistance with his Hauppauge 350 (lirc_i2c) and serial (lirc_serial), with two lircd processes. The receivers on both work fine, and the Hauppauge receiver works fine with MythTV. However, transmitting is not working. Even when I remove lirc_i2c and just run the serial lirc, the transmitter is unable to get the controlled device to respond. So, after trying "this and that" to no avail, I took my two transmitters (one a home built using the "improved" two-transistor circuit, off of the site, and one purchased over to my Windows box) and installed each, one at a time in turn, and tried them with WinLIRC, and both work fine from Windows (so, the transmitter hardware is fine). But neither transmitter works using the lirc I have installed under Fedora 10 . On the two-transistor circuit, I have a visible LED in series with the IR LED (series so that I was sure the IR LED wasn't connected backwards), and the visible LED does flash when I use irsend on the Linux box. However, none of the devices I try to control respond to the Linux box -- and both transmitters control both devices fine from WinLIRC. In both cases I used identical configuration files for WinLIRC and Linux lirc, and I have tried both "raw" and standard config files. (Currently using the "raw" file). So, the config file is fine, too. So, I see only two possibilities: Either DTR on the COM port on the Linux box is busted (seems really unlikely, especially given the visible indication from the other LED), or a software problem (perhaps inverted pulses from Linux LIRC irsend or something I need to provide to modprobe lirc_serial?, wrong frequency, or some such). FYI, I also noted that I was unable to get the transmitter to do anything at all on COM2 on the Linux box, even when providing serial port parameters to modprobe. Perhaps it wasn't compiled with that support? Is there any way to tell how it was compiled? I also tried unloading lirc_i2c and lirc_dev and doing the modprobe for lirc_serial, and adjusting lircd appropriately, to no avail -- wanted to make sure lirc_i2c wasn't interfering. I searched the mailing list archives, and didn't see anything that seemed to apply. Suggestions? Right now my prime suspect is lirc_serial . Here is the info from my most recent test (where I eliminated lirc_i2c): [root@mythsoby1 ~]# uname -a Linux mythsoby1 2.6.27.9-159.fc10.i686 #1 SMP Tue Dec 16 15:12:04 EST 2008 i686 i686 i386 GNU/Linux [root@mythsoby1 ~]# rpm -q -a | grep lirc lirc-0.8.4a-1.fc10.i386 lirc-devel-0.8.4a-1.fc10.i386 lirc-remotes-0.8.4a-1.fc10.i386 lirc-doc-0.8.4a-1.fc10.i386 lirc-libs-0.8.4a-1.fc10.i386 [root@mythsoby1 ~]# lsmod | grep lirc lirc_serial 15072 0 lirc_dev 14232 1 lirc_serial # dmesg lirc_dev: IR Remote Control driver registered, major 61 lirc_serial: auto-detected active low receiver lirc_dev: lirc_register_plugin: sample_rate: 0 [root@mythsoby1 ~]# ls -ld /dev/lirc* lrwxrwxrwx 1 root root 5 2009-01-10 20:31 /dev/lirc -> lirc0 crw-rw-rw- 1 mythtv root 61, 0 2009-01-10 20:31 /dev/lirc0 srw-rw-rw- 1 root root 0 2009-01-10 20:34 /dev/lircd1 (Note: when I started lircd, I specifically indicated output=/dev/lircd1. I realize this isn't "typical"). lircd --driver=default --device=/dev/lirc0 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid # irsend -d /dev/lircd1 SEND_ONCE Tivax.raw POWER POWER POWER # tail /var/log/messages Jan 10 20:58:42 localhost lircd-0.8.4a[8781]: accepted new client on /dev/lircd1 Jan 10 20:58:43 localhost lircd-0.8.4a[8781]: removed client Thanks in advance for any help. (Otherwise, I suppose the next step will be to hook a 'scope up and see what the signals coming out of the serial ports actually look like -- but that is a bit of work...) JRJ --- Jay R. Jaeger The Computer Collection cu...@ch... |
|
From: Matt N. <ma...@fr...> - 2009-01-11 05:37:37
|
Just to start simple and as a sanity check, did you set the transmitter? I did not see it in your description. I have set mine like this: # irsend SET_TRANSMITTERS 1 2 # irsend --count=1 SEND_ONCE YAMAHA_RECEIVER DVD_LD On Sat, Jan 10, 2009 at 8:12 PM, Jay Jaeger <cu...@ch...> wrote: > I am setting up a MythTV box for a friend, and he needs an "IR blaster" to > control an HD to SD converter box. I am using Fedora 10, and the > "provided" lirc RPMs from Fedora. I figured out how to get lirc to > simultaneously support coexistance with his Hauppauge 350 (lirc_i2c) and > serial (lirc_serial), with two lircd processes. The receivers on both work > fine, and the Hauppauge receiver works fine with MythTV. However, > transmitting is not working. Even when I remove lirc_i2c and just run the > serial lirc, the transmitter is unable to get the controlled device to > respond. > > So, after trying "this and that" to no avail, I took my two transmitters > (one a home built using the "improved" two-transistor circuit, off of the > site, and one purchased over to my Windows box) and installed each, one at > a time in turn, and tried them with WinLIRC, and both work fine from > Windows (so, the transmitter hardware is fine). But neither transmitter > works using the lirc I have installed under Fedora 10 . > > On the two-transistor circuit, I have a visible LED in series with the IR > LED (series so that I was sure the IR LED wasn't connected backwards), and > the visible LED does flash when I use irsend on the Linux box. However, > none of the devices I try to control respond to the Linux box -- and both > transmitters control both devices fine from WinLIRC. > > In both cases I used identical configuration files for WinLIRC and Linux > lirc, and I have tried both "raw" and standard config files. (Currently > using the "raw" file). So, the config file is fine, too. > > So, I see only two possibilities: Either DTR on the COM port on the Linux > box is busted (seems really unlikely, especially given the visible > indication from the other LED), or a software problem (perhaps inverted > pulses from Linux LIRC irsend or something I need to provide to modprobe > lirc_serial?, wrong frequency, or some such). > > FYI, I also noted that I was unable to get the transmitter to do anything > at all on COM2 on the Linux box, even when providing serial port parameters > to modprobe. Perhaps it wasn't compiled with that support? Is there any > way to tell how it was compiled? > > I also tried unloading lirc_i2c and lirc_dev and doing the modprobe for > lirc_serial, and adjusting lircd appropriately, to no avail -- wanted to > make sure lirc_i2c wasn't interfering. > > I searched the mailing list archives, and didn't see anything that seemed > to apply. > > Suggestions? Right now my prime suspect is lirc_serial . > > Here is the info from my most recent test (where I eliminated lirc_i2c): > > [root@mythsoby1 ~]# uname -a > Linux mythsoby1 2.6.27.9-159.fc10.i686 #1 SMP Tue Dec 16 15:12:04 EST 2008 > i686 i686 i386 GNU/Linux > > [root@mythsoby1 ~]# rpm -q -a | grep lirc > lirc-0.8.4a-1.fc10.i386 > lirc-devel-0.8.4a-1.fc10.i386 > lirc-remotes-0.8.4a-1.fc10.i386 > lirc-doc-0.8.4a-1.fc10.i386 > lirc-libs-0.8.4a-1.fc10.i386 > > [root@mythsoby1 ~]# lsmod | grep lirc > lirc_serial 15072 0 > lirc_dev 14232 1 lirc_serial > > # dmesg > > lirc_dev: IR Remote Control driver registered, major 61 > lirc_serial: auto-detected active low receiver > lirc_dev: lirc_register_plugin: sample_rate: 0 > > > [root@mythsoby1 ~]# ls -ld /dev/lirc* > lrwxrwxrwx 1 root root 5 2009-01-10 20:31 /dev/lirc -> lirc0 > crw-rw-rw- 1 mythtv root 61, 0 2009-01-10 20:31 /dev/lirc0 > srw-rw-rw- 1 root root 0 2009-01-10 20:34 /dev/lircd1 > > (Note: when I started lircd, I specifically indicated > output=/dev/lircd1. I realize this isn't "typical"). > > lircd --driver=default --device=/dev/lirc0 --output=/dev/lircd1 > --pidfile=/var/run/lircd1.pid > > # irsend -d /dev/lircd1 SEND_ONCE Tivax.raw POWER POWER POWER > > # tail /var/log/messages > > Jan 10 20:58:42 localhost lircd-0.8.4a[8781]: accepted new client on > /dev/lircd1 > Jan 10 20:58:43 localhost lircd-0.8.4a[8781]: removed client > > Thanks in advance for any help. > > (Otherwise, I suppose the next step will be to hook a 'scope up and see > what the signals coming out of the serial ports actually look like -- but > that is a bit of work...) > > JRJ > --- > Jay R. Jaeger The Computer Collection > cu...@ch... > > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > |
|
From: <li...@ba...> - 2009-01-11 08:50:54
|
Hi! Jay Jaeger "cu...@ch..." wrote: > I am setting up a MythTV box for a friend, and he needs an "IR blaster" to [...] > serial lirc, the transmitter is unable to get the controlled device to > respond. [...] > Suggestions? Right now my prime suspect is lirc_serial . ACK. [...] > (Otherwise, I suppose the next step will be to hook a 'scope up and see > what the signals coming out of the serial ports actually look like -- but > that is a bit of work...) Before doing that try to provide all module parameters explicitly at the modprobe call, like type=0 softcarrier=1 txsense=0 irq=x io=y If that does not help, try compiling the module yourself. Christoph |
|
From: Jay J. <cu...@ch...> - 2009-01-11 13:36:25
|
THANKS!!! That fixed it. (I am guessing maybe softcarrier was the one -- I had already been specifying the io and irq parameters). I also figured out why it didn't want to work on the second serial port. I already had an entry in modprobe.d which specified the parameters for COM1, which (apparently) overrode what I had specified on the modprobe command. (The main reason for the modprobe.d entry was to set the serial port properly so that lirc_serial could attach to it). It now looks like: alias char-major-61-1 lirc_serial options lirc_serial irq=4 io=0x3f8 type=0 softcarrier=1 txsense=0 install lirc_serial setserial /dev/ttyS0 uart none; /sbin/modprobe --ignore-install lirc_serial which works fine. Thanks very very much. JRJ At 09:48 AM 1/11/2009 +0100, Christoph Bartelmus wrote: >Hi! > >Jay Jaeger "cu...@ch..." wrote: > > I am setting up a MythTV box for a friend, and he needs an "IR blaster" to >[...] > > serial lirc, the transmitter is unable to get the controlled device to > > respond. >[...] > > Suggestions? Right now my prime suspect is lirc_serial . > >ACK. > >[...] > > (Otherwise, I suppose the next step will be to hook a 'scope up and see > > what the signals coming out of the serial ports actually look like -- but > > that is a bit of work...) > >Before doing that try to provide all module parameters explicitly at the >modprobe call, like type=0 softcarrier=1 txsense=0 irq=x io=y >If that does not help, try compiling the module yourself. > >Christoph > >------------------------------------------------------------------------------ >Check out the new SourceForge.net Marketplace. >It is the best place to buy or sell services for >just about anything Open Source. >http://p.sf.net/sfu/Xq1LFB --- Jay R. Jaeger The Computer Collection cu...@ch... |
|
From: Jay J. <cu...@ch...> - 2009-01-11 13:36:20
|
Thanks for the reply. I did try that, however, SET_TRANSMITTERS only applies to devices that support more than one transmitter. If your transmitter only has one, and you try SET_TRANSMITTERS on this device, it tells you your device doesn't support multiple transmitters. JRJ At 10:31 PM 1/10/2009 -0700, Matt Nelson wrote: >Just to start simple and as a sanity check, did you set the >transmitter? I did not see it in your description. I have set mine like this: > ># irsend SET_TRANSMITTERS 1 2 ># irsend --count=1 SEND_ONCE YAMAHA_RECEIVER DVD_LD > >On Sat, Jan 10, 2009 at 8:12 PM, Jay Jaeger ><<mailto:cu...@ch...>cu...@ch...> wrote: >>I am setting up a MythTV box for a friend, and he needs an "IR blaster" to >>control an HD to SD converter box. I am using Fedora 10, and the >>"provided" lirc RPMs from Fedora. I figured out how to get lirc to >>simultaneously support coexistance with his Hauppauge 350 (lirc_i2c) and >>serial (lirc_serial), with two lircd processes. The receivers on both work >>fine, and the Hauppauge receiver works fine with MythTV. However, >>transmitting is not working. Even when I remove lirc_i2c and just run the >>serial lirc, the transmitter is unable to get the controlled device to >>respond. >> >>So, after trying "this and that" to no avail, I took my two transmitters >>(one a home built using the "improved" two-transistor circuit, off of the >>site, and one purchased over to my Windows box) and installed each, one at >>a time in turn, and tried them with WinLIRC, and both work fine from >>Windows (so, the transmitter hardware is fine). But neither transmitter >>works using the lirc I have installed under Fedora 10 . >> >>On the two-transistor circuit, I have a visible LED in series with the IR >>LED (series so that I was sure the IR LED wasn't connected backwards), and >>the visible LED does flash when I use irsend on the Linux box. However, >>none of the devices I try to control respond to the Linux box -- and both >>transmitters control both devices fine from WinLIRC. >> >>In both cases I used identical configuration files for WinLIRC and Linux >>lirc, and I have tried both "raw" and standard config files. (Currently >>using the "raw" file). So, the config file is fine, too. >> >>So, I see only two possibilities: Either DTR on the COM port on the Linux >>box is busted (seems really unlikely, especially given the visible >>indication from the other LED), or a software problem (perhaps inverted >>pulses from Linux LIRC irsend or something I need to provide to modprobe >>lirc_serial?, wrong frequency, or some such). >> >>FYI, I also noted that I was unable to get the transmitter to do anything >>at all on COM2 on the Linux box, even when providing serial port parameters >>to modprobe. Perhaps it wasn't compiled with that support? Is there any >>way to tell how it was compiled? >> >>I also tried unloading lirc_i2c and lirc_dev and doing the modprobe for >>lirc_serial, and adjusting lircd appropriately, to no avail -- wanted to >>make sure lirc_i2c wasn't interfering. >> >>I searched the mailing list archives, and didn't see anything that seemed >>to apply. >> >>Suggestions? Right now my prime suspect is lirc_serial . >> >>Here is the info from my most recent test (where I eliminated lirc_i2c): >> >>[root@mythsoby1 ~]# uname -a >>Linux mythsoby1 2.6.27.9-159.fc10.i686 #1 SMP Tue Dec 16 15:12:04 EST 2008 >>i686 i686 i386 GNU/Linux >> >>[root@mythsoby1 ~]# rpm -q -a | grep lirc >>lirc-0.8.4a-1.fc10.i386 >>lirc-devel-0.8.4a-1.fc10.i386 >>lirc-remotes-0.8.4a-1.fc10.i386 >>lirc-doc-0.8.4a-1.fc10.i386 >>lirc-libs-0.8.4a-1.fc10.i386 >> >>[root@mythsoby1 ~]# lsmod | grep lirc >>lirc_serial 15072 0 >>lirc_dev 14232 1 lirc_serial >> >># dmesg >> >>lirc_dev: IR Remote Control driver registered, major 61 >>lirc_serial: auto-detected active low receiver >>lirc_dev: lirc_register_plugin: sample_rate: 0 >> >> >>[root@mythsoby1 ~]# ls -ld /dev/lirc* >>lrwxrwxrwx 1 root root 5 2009-01-10 20:31 /dev/lirc -> lirc0 >>crw-rw-rw- 1 mythtv root 61, 0 2009-01-10 20:31 /dev/lirc0 >>srw-rw-rw- 1 root root 0 2009-01-10 20:34 /dev/lircd1 >> >>(Note: when I started lircd, I specifically indicated >>output=/dev/lircd1. I realize this isn't "typical"). >> >>lircd --driver=default --device=/dev/lirc0 --output=/dev/lircd1 >>--pidfile=/var/run/lircd1.pid >> >># irsend -d /dev/lircd1 SEND_ONCE Tivax.raw POWER POWER POWER >> >># tail /var/log/messages >> >>Jan 10 20:58:42 localhost lircd-0.8.4a[8781]: accepted new client on >>/dev/lircd1 >>Jan 10 20:58:43 localhost lircd-0.8.4a[8781]: removed client >> >>Thanks in advance for any help. >> >>(Otherwise, I suppose the next step will be to hook a 'scope up and see >>what the signals coming out of the serial ports actually look like -- but >>that is a bit of work...) >> >>JRJ >>--- >>Jay R. Jaeger The Computer Collection >><mailto:cu...@ch...>cu...@ch... >> >> >>------------------------------------------------------------------------------ >>Check out the new SourceForge.net Marketplace. >>It is the best place to buy or sell services for >>just about anything Open Source. >><http://p.sf.net/sfu/Xq1LFB>http://p.sf.net/sfu/Xq1LFB |
|
From: naenyc <mil...@ya...> - 2009-03-05 17:58:02
|
Thanks for this thread. I had a working system a year ago, and when I came back, nothing functioned Built the new Mythdora with no success. Same issues, lirc worked in XP on all systems. This thread kind of nails the "softcarrier issue" http://www.gossamer-threads.com/lists/atrpms/users/12294 http://www.gossamer-threads.com/lists/atrpms/users/12294 As an aside, was unable to pass the parameter on the command line, ended up putting it in the options. Does anybody know why the IR Blaster cannot be detected in my camera, but the remotes can? naenyc Jay Jaeger wrote: > > I am setting up a MythTV box for a friend, and he needs an "IR blaster" to > control an HD to SD converter box. I am using Fedora 10, and the > "provided" lirc RPMs from Fedora. I figured out how to get lirc to > simultaneously support coexistance with his Hauppauge 350 (lirc_i2c) and > serial (lirc_serial), with two lircd processes. The receivers on both > work > fine, and the Hauppauge receiver works fine with MythTV. However, > transmitting is not working. Even when I remove lirc_i2c and just run the > serial lirc, the transmitter is unable to get the controlled device to > respond. > > So, after trying "this and that" to no avail, I took my two transmitters > (one a home built using the "improved" two-transistor circuit, off of the > site, and one purchased over to my Windows box) and installed each, one at > a time in turn, and tried them with WinLIRC, and both work fine from > Windows (so, the transmitter hardware is fine). But neither transmitter > works using the lirc I have installed under Fedora 10 . > > On the two-transistor circuit, I have a visible LED in series with the IR > LED (series so that I was sure the IR LED wasn't connected backwards), and > the visible LED does flash when I use irsend on the Linux box. However, > none of the devices I try to control respond to the Linux box -- and both > transmitters control both devices fine from WinLIRC. > > In both cases I used identical configuration files for WinLIRC and Linux > lirc, and I have tried both "raw" and standard config files. (Currently > using the "raw" file). So, the config file is fine, too. > > So, I see only two possibilities: Either DTR on the COM port on the Linux > box is busted (seems really unlikely, especially given the visible > indication from the other LED), or a software problem (perhaps inverted > pulses from Linux LIRC irsend or something I need to provide to modprobe > lirc_serial?, wrong frequency, or some such). > > FYI, I also noted that I was unable to get the transmitter to do anything > at all on COM2 on the Linux box, even when providing serial port > parameters > to modprobe. Perhaps it wasn't compiled with that support? Is there any > way to tell how it was compiled? > > I also tried unloading lirc_i2c and lirc_dev and doing the modprobe for > lirc_serial, and adjusting lircd appropriately, to no avail -- wanted to > make sure lirc_i2c wasn't interfering. > > I searched the mailing list archives, and didn't see anything that seemed > to apply. > > Suggestions? Right now my prime suspect is lirc_serial . > > Here is the info from my most recent test (where I eliminated lirc_i2c): > > [root@mythsoby1 ~]# uname -a > Linux mythsoby1 2.6.27.9-159.fc10.i686 #1 SMP Tue Dec 16 15:12:04 EST 2008 > i686 i686 i386 GNU/Linux > > [root@mythsoby1 ~]# rpm -q -a | grep lirc > lirc-0.8.4a-1.fc10.i386 > lirc-devel-0.8.4a-1.fc10.i386 > lirc-remotes-0.8.4a-1.fc10.i386 > lirc-doc-0.8.4a-1.fc10.i386 > lirc-libs-0.8.4a-1.fc10.i386 > > [root@mythsoby1 ~]# lsmod | grep lirc > lirc_serial 15072 0 > lirc_dev 14232 1 lirc_serial > > # dmesg > > lirc_dev: IR Remote Control driver registered, major 61 > lirc_serial: auto-detected active low receiver > lirc_dev: lirc_register_plugin: sample_rate: 0 > > > [root@mythsoby1 ~]# ls -ld /dev/lirc* > lrwxrwxrwx 1 root root 5 2009-01-10 20:31 /dev/lirc -> lirc0 > crw-rw-rw- 1 mythtv root 61, 0 2009-01-10 20:31 /dev/lirc0 > srw-rw-rw- 1 root root 0 2009-01-10 20:34 /dev/lircd1 > > (Note: when I started lircd, I specifically indicated > output=/dev/lircd1. I realize this isn't "typical"). > > lircd --driver=default --device=/dev/lirc0 --output=/dev/lircd1 > --pidfile=/var/run/lircd1.pid > > # irsend -d /dev/lircd1 SEND_ONCE Tivax.raw POWER POWER POWER > > # tail /var/log/messages > > Jan 10 20:58:42 localhost lircd-0.8.4a[8781]: accepted new client on > /dev/lircd1 > Jan 10 20:58:43 localhost lircd-0.8.4a[8781]: removed client > > Thanks in advance for any help. > > (Otherwise, I suppose the next step will be to hook a 'scope up and see > what the signals coming out of the serial ports actually look like -- but > that is a bit of work...) > > JRJ > --- > Jay R. Jaeger The Computer Collection > cu...@ch... > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > > -- View this message in context: http://www.nabble.com/lirc-lirc-0.8.4a-1.fc10.i386-irsend-not-working-properly-for-me-tp21395633p22356982.html Sent from the LIRC mailing list archive at Nabble.com. |