This is a little HOWTO about setting up LIRC at another port than usual.
Nowadays most boards coming to market do only posses one serial port. Unfortunately it’s a common habit leaving away the D-Sub 9 back-panel mount. Actually there’s only a pin array on the motherboard itself.
If you only have a serial LIRC receiver you want to connect, and nothing else, like a UPS or stuff, you can just buy such a cable for a few cent. See pic:
But for a few bugs more you can buy a two port serial PCI adaptor. Current Linux distros support most of the card, and it’s quite painless to make such a serial card work. Just plug the card into the mainboard, boot your machine and perform a:
lspci | grep -i serial
05:01.0 Serial controller: NetMos Technology PCI 9835 Multi-I/O Controller (rev 01)
dmesg | grep ttyS
should also return a few lines. If so, you know the adaptor was recognized by the Linux kernel, and only thing to do now, is to mask out the kernels own serial functionality. This is usually done by the command:
setserial /dev/ttyS1 uart none
If this command is not installed, simply perform a ‘
aptitude install setserial‘ on a Debian-based system.
You’ll also have to install LIRC:
aptitude install lirc
It’s common an interactive interface is going to ask you a few question, and you have to make a few selections.
The important things are:
Home-brew (16x50 UART compatible serial port)
transmitter: none(if you are using a passive only device, without controlling anything else)
- /dev/ttyS0 is COM1
- /dev/ttyS1 is COM2
- /dev/ttyS2 is COM3