balajiv
Posts: 33
Joined: Mon May 06, 2013 6:08 am

Raspberry Pi - USB UIRT

Fri Jun 28, 2013 1:44 pm

Hi All,

I am trying to control a Samsung LED TV with USB UIRT connected to the Raspberry Pi.

Here are the steps followed:

1. Installed initscripts on RPi as sudo apt-get install initscripts.

2. Installed LIRC on RPi as sudo apt-get install lirc

3. Plugged in the USB UIRT. Looked for "FTDI USB Serial Device converter now attached to ttyUSB0" in the output of 'dmesg | grep usb'. It was available.

4. Here are the contents of /etc/lirc/hardware.conf
pi@raspberrypi ~ $ cat /etc/lirc/hardware.conf
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="-d /dev/ttyUSB0"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="uirt2_raw"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE=""
MODULES=""

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""

5. Copied the Samsung remote to /etc/lirc/lircd.conf as:
sudo cp /usr/share/lirc/remotes/samsung/lircd.conf.samsung /etc/lirc/lircd.conf

6. Started the lirc service as: sudo /etc/init.d/lirc start which was successful.
pi@raspberrypi ~ $ sudo /etc/init.d/lirc start
[ ok ] Loading LIRC modules:.
[ ok ] Starting remote control daemon(s) : LIRC :.

7. irsend list command gave output as:
pi@raspberrypi ~ $ irsend list "" ""
irsend: Samsung
irsend: Terratec

8. On trying irsend to increase the volume, it failed as:
pi@raspberrypi ~ $ irsend SEND_ONCE Samsung KEY_VOLUMEUP
irsend: command failed: SEND_ONCE Samsung KEY_VOLUMEUP
irsend: transmission failed
pi@raspberrypi ~ $

Am I missing something here grossly ? Can someone resolve this issue ?

Thanks in advance.

balajiv
Posts: 33
Joined: Mon May 06, 2013 6:08 am

Re: Raspberry Pi - USB UIRT

Fri Jun 28, 2013 2:16 pm

Even irw command does not show any output on pressing buttons on remote. :-(

balajiv
Posts: 33
Joined: Mon May 06, 2013 6:08 am

Re: Raspberry Pi - USB UIRT

Wed Jul 03, 2013 11:20 am

Here are the learnings/ debugging issues:

1. If the service does not start successfully, then it means either the hardware.conf does not have the right information or lircd.conf does not have the data in valid format.

2. The service starts successfully but irw does not show any output. It means the lircd.conf file does not have the valid data. Check the remote control config file as per the remote control model and save it as lircd.conf file. Now, restart the service and fire the command irw. You will be able to see the output.

Thanks.

NewPi
Posts: 66
Joined: Sat Aug 18, 2012 2:52 pm

Re: Raspberry Pi - USB UIRT

Sat Jul 20, 2013 5:10 am

balajiv wrote:Here are the learnings/ debugging issues:

1. If the service does not start successfully, then it means either the hardware.conf does not have the right information or lircd.conf does not have the data in valid format.

2. The service starts successfully but irw does not show any output. It means the lircd.conf file does not have the valid data. Check the remote control config file as per the remote control model and save it as lircd.conf file. Now, restart the service and fire the command irw. You will be able to see the output.

Thanks.
Try this :

Code: Select all

modprobe lirc_rpi
This got USB IRToy working with LIRC for me on RPi.
Raspberry Pi Howto, Tips, Tricks and Tools -> http://bit.ly/RPiTricks

kirkinout
Posts: 1
Joined: Sun Sep 29, 2013 12:10 am

Re: Raspberry Pi - USB UIRT

Sun Sep 29, 2013 12:22 am

Unsure if people are still having problems, but I was able to get my USB UIRT to work just fine in sending and receiving commands to and from my Samsung LCD TV. I followed all of the steps shown in the first post except in my hardware.conf file I additionally have

DEVICE="/dev/ttyUSB0"
MODULES="lirc_rpi"

and my lircd.conf file is a copy of the BN59-00599A remote configuration file taken from the remotes.tar linked on lirc.org

so

Code: Select all

irsend SEND_ONCE Samsung_BN59-00599A_TV MUTE
works just fine (Samsung_BN59-00599A_TV and MUTE are the device name and associated command name listed in that configuration file for that specific Samsung remote).

Return to “Automation, sensing and robotics”