USB-uirt with tv remote

Hi all,

I’m trying to make a USB-uirt work with my tv remote (Samsung CT-90275) and osmc.

The usb-uirt works and is getting recognized by raspberry pi 2.

I pasted the ct-90275 code in the /etc/lirc/lirc.conf

I see the led flashing on the usb-uirt when I press the remote buttons but nothing happens.

Has anyone got this working?

Thanks

will try tonight to see if I can get it to work.

i dont understand why, im pressing buttonsnothing happens.

the driver is detected on boot:

[ 3.630237] lirc_dev: IR Remote Control driver registered, major 246
[ 3.675664] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.640759] lirc_rpi: auto-detected active high receiver on GPIO pin 18
[ 4.641140] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[ 4.641155] lirc_rpi: driver registered!
[ 5.676413] input: lircd as /devices/virtual/input/input4

then I plug in the USB-UIRT:

[ 112.770884] usb 1-1.4: new full-speed USB device number 5 using dwc_otg
[ 112.891290] usb 1-1.4: New USB device found, idVendor=0403, idProduct=f850
[ 112.891316] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 112.891328] usb 1-1.4: Product: USB-UIRT
[ 112.891339] usb 1-1.4: Manufacturer: FTDI
[ 112.917907] usbcore: registered new interface driver usbserial
[ 112.919532] usbcore: registered new interface driver usbserial_generic
[ 112.920256] usbserial: USB Serial support registered for generic
[ 112.932475] usbcore: registered new interface driver ftdi_sio
[ 112.932927] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 112.933236] ftdi_sio 1-1.4:1.0: FTDI USB Serial Device converter detected
[ 112.933842] usb 1-1.4: Detected FT232RL
[ 112.935368] usb 1-1.4: FTDI USB Serial Device converter now attached to ttyUSB0

so far, everything is ok?

then I run mode2 : mode2 -d /dev/lirc0
no olutput on the screen when I press the remote buttons yet the USB-UIRT’s LED flashes everyutime I click a remote button…

What am I missing?

What you’re missing is that the lirc_rpi module is to support GPIO based IR receivers, not USB ones.

The USB device you’ve connected appears to present itself as a serial port - this is not handled by lirc_rpi and lircd is not configured to use such a device.

It might be possible to get this working somehow, but I have no idea how off the top of my head. I would suggest to do some googling to find out how you would use lircd with a serial interface. (Assuming it is possible)

May this this helps, I don’t know if this works or an /etc/lirc/hardware.conf exist but I think so.

ok, finally got it working with a Hardware.conf file:

# /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=false

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="usb_irt_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=""

But now the issue is when the PI reboots, it automatically loads a lirc as it’s running as seen from the output below:

root       237  0.0  0.1   1836  1164 ?        Ss   17:16   0:00 /usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput --output=/var/run/lirc/lircd-lirc0 --pidfile=/var/run/lirc/lircd-lirc0.pid /etc/lirc/lircd.conf

so where is this startup file so I can modify it with what I need:

 /usr/sbin/lircd --driver=uirt2_raw --device=/dev/ttyUSB0 --uinput --output=/var/run/lirc/lircd-lirc0 --pidfile=/var/run/lirc/lircd-lirc0.pid /etc/lirc/lircd.conf

Mod edit: Please use the preformatted text button for code/config files to be displayed correctly in posts.