Setting up a serial LIRC receiver at COM2

On my serial card (see picture) the COM2 port is, if you are looking at the front of the panel, the right one.

RS323 two port serial adaptor with COM2 and COM3
RS232 two port serial adaptor with COM2 and COM3

Now you will need to find out the IRQ and adress this card is using . Do this:

lspci -v | grep -A4 Seri
05:01.0 Serial controller: NetMos Technology PCI 9835 Multi-I/O Controller (rev 01) (prog-if 02)
Subsystem: LSI Logic / Symbios Logic Device 0002
Flags: medium devsel, IRQ 17
I/O ports at ec00 [size=8]
I/O ports at e880 [size=8]

You should control now if the file /etc/modprobe.d/lirc-serial is there, and if it is there, the following entries shoudl be adjusted accordingly.

options lirc_serial irq=17 io=0xec00 share_irq=1

The ‘share_irq=1‘ was quite important here, since without it, the lirc command like mode2, irw or irrecord just refused to work. If you encounter problems with your LIRC setup, check this setting.

if you should use

dpkg-reconfigure lirc

again, you’ll have to look for the settings in /etc/modprobe.d/lirc-serial, because it’s very likely they are gone.

Now it’s time to unload and reload the lirc-serial module:

modprobe -r lirc-serial
modprobe lirc-serial

Verify is anything is reported back, if you perform this:

lsmod | grep lirc

Btw: You can look for other parameters for a module, e.g for the lirc-serial module:

modinfo lirc-serial

The setserial command is usually handled automatically in the file /etc/serial.conf. The presence of this file and the following entry

/dev/ttyS1 uart none

indicate you don’t to care for it after booting your machine.


All was set up on a Kubuntu Intrepid Ibex 8.10 final.

Linux pulsar 2.6.27-7-generic #1 SMP Thu Oct 30 04:12:22 UTC 2008 x86_64 GNU/Linux

That’s it! 🙂

2 thoughts on “Setting up a serial LIRC receiver at COM2

  1. Thank you very much, I have the same card as you and everything works well now.

    Bye

  2. Im a layman to all this. I wanted to unlock a huawei modem on XP through COM port but I dont know if im required to add what kind of hardware to the port since the software i am using keep on telling me that there is no detection. can you help

Comments are closed.