I am a Red Hat Linux 7.1 user. But I am using the newest archived kernel -
I have a project to do something like play CD music on a normal PC with the
So I choose the LIRC package as my solution. I am using the "lirc-0.6.4"
package which download from http://www.lirc.org.
Until now, I can't get any response from the "mode2" tool. Would you please
tell me what compenent or step I make wrong?
1. I will use a normal IR remote-controller (like TV or Stereo) and a IR
receiver which made by our H/W member
(He follow the instructions from the remote-controller company.)
2. I connect it to the serial port 2 (COM2).
3. I configure the lirc as "Home-brew (16x50 UART compatible serial port)"
with/without "With transmitter diode" and with
"Software generated carrier".
4. I compile the Linux kerenl with serial port as a module. And adding
"alias char-major-61 lirc_serial" in /etc/modules.conf.
5. After the system booting, I run "insmod lirc_serial".
And run "insmod serial" (Do I need this action?)
The serial driver seems to lock another serial port (COM1). It doesn't
appear any message about serial port 2.
I also tried not to run this action, but with the same result.
6. Run "mode2", but no result.
7. Run "irrecord", but no result.
The messages in /var/log/messages are like below:
lirc_serial: auto-detected active high receiver
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT
SHARE_IRQ SERIAL_PCI ISAPNP enabled
lirc_serial: Interrupt 3, port 02f8 obtained
lirc_serial: freed IRQ 3
lirc_serial: cleaned up module
What ever I tried on "mode2" or "irrecord", there's no data dump on the
screen. I ever get some messages in the
"/var/log/messages" file, but I don't know how to reproduce it. Sometimes I
reboot the system,
the first time I tried the insmod and mode2 will get something like below:
lirc_Serial: in calc_pulse_lengths_in_clocks, freq=38000, duty_cycle=50,
clk/jiffy=2621440, pulse=3449, space=3449, conv_us_to_clocks=262
Because our H/W member connect a simple IR-receiver on the serial port.
He said that it needs baudrate 9600 and only got one RX signal. But I don't
know how to set the baudrate on "/dev/lirc".
And does the external board needs other signal to my PC? (Is RX enough?)
Also, the BIOS has an option about UART 2 mode.
Default is "standard". I accept HPSIR and ASKAIR. I don't know if it impact?
I asked the H/W member, the external board is using 5V (match the manual
I only need to receive the button actions from the remote controller.
I think I will use "irexec" to run the applications (like CD Player or
Would you please tell me what wrong in my procedure is? I still can't figure
out why there's no response.
Please help me. Thanks.