Configuring Tekram IRmate 210B for use with IR remote control and Lirc in Linux · Заметки

Here's a brief info how to configure Tekram IRmate 210B COM SIR IR transiever under Linux (ASP 10).

·· [Continuing] ··

I'm using my own init file instead of tweaking multiple system config files here. You can setup this more common way, just read the docs and get the main idea from here: the driver for the device is lirc_sir and you have to pass IRQ and IO numbers to it. Figuring that out took me about 3 hours, as googled sources were all suggesting using lirc_serial!

echo "Setting up lirc..."

# You have to know to which COM port your IRmate is atatched.
# I don't know how to find that, except trying them one by one.

# Free the port from UART:
/bin/setserial /dev/ttyS1 uart none

# Load SIR kernel module. Here are commonly used IRQ and IO port
# numbers of COM ports:
# 3F8/IRQ4 (COM1, /dev/ttyS0)
# 2F8/IRQ3 (COM2, /dev/ttyS1)
# 3E8/IRQ4 (COM3, /dev/ttyS2)
# 2E8/IRQ3 (COM4, /dev/ttyS3)
# Or use 'setserial -g /dev/ttySx' to find out which IP/port are used.
/sbin/modprobe lirc_sir irq=3 io=0x2f8

# On my machine, this dog creates device as lirc0, while programs
# want /dev/lirc as default. Create a symlink:
/bin/ln -s /dev/lirc0 /dev/lirc

# Start lirc service (don't forget to install lirc))):
/etc/init.d/lirc start

Run the script as root and check for errors in console and in /var/log/messages. Then, follow instructions on lirc website how to create /etc/lircd.conf and then you can go on to setting up user-end stuff (e.g. KDE has a nice and easy to use RC service).



1 comment

Archives

                                                                                                                                                                                                                                                                   


© Sergey A. Galin, 1998-2021 sageshome.net/blog/