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).


Comment from: S.A.G.e [Member]
My lirc setup script under ASP Linux 11. Standard lirc-0.7 has been removed with --nodeps. lirc-0.8 with proper driver was compiled and installed from tar.bz2. Don't forget to run ldconfig after installing new lirc, or apps liked with liblirc won't run.

echo "Setting up lirc..."
/usr/bin/killall lircd
/bin/setserial /dev/ttyS1 uart none
/sbin/rmmod lirc_sir
/sbin/modprobe lirc_sir irq=3 io=0x2f8
/bin/chgrp users /dev/lirc*
/bin/chmod 0660 /dev/lirc*
Permalink 09/22/06 @ 06:00

Leave a comment:

Your email address will not be displayed on this site.
Your URL will not be displayed on this site. Comments containing URL's of non-personal pages may be removed.
Confirmation Code:
Human Confirmation Code (Captcha)

HTML tags and "<", ">" symbols are not allowed. Links will not be converted to hyperlinks. Any commercials are removed and reported as abuse.



© Sergey A. Galin, 1998-2021