OpenWrt Forum Archive

Topic: Any users of Tira-2 (IR transceiver) via lirc & ftdi ?

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi

  I'm a new OpenWRT user, and I'm trying to find info./assistance on getting my IR transceiver working.

  I have Whiterussian (0.9) on my router and have most key functions already working, including a webserver and (to see if I could) webcam.  I now want to use an IR transceiver to control other equipment sitting beside the router. I have a TIRA-2 device (from a company called Home Electronics) in the US, which is reported via dmesg as:

usb.c: registered new driver serial
usbserial.c: USB Serial support registered for Generic
usbserial.c: USB Serial Driver core v1.4
usbserial.c: USB Serial support registered for FTDI SIO
usbserial.c: USB Serial support registered for FTDI 8U232AM Compatible
usbserial.c: USB Serial support registered for FTDI FT232BM Compatible
usbserial.c: USB Serial support registered for USB-UIRT Infrared Tranceiver
usbserial.c: USB Serial support registered for Home-Electronics TIRA-1 IR Transc
usbserial.c: Home-Electronics TIRA-1 IR Transceiver converter detected
usbserial.c: Home-Electronics TIRA-1 IR Transceiver converter now attached to tt
ftdi_sio.c: v1.3.5:USB FTDI Serial Converters Driver

....not sure what the difference between TIRA-1 and TIRA-2 really is.

also lsusb:

Bus 003 Device 005: ID 0403:fa78 Future Technology Devices International, Ltd
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0403 Future Technology Devices International, Ltd
  idProduct          0xfa78
  bcdDevice            4.00
  iManufacturer           1 Home Electronics
  iProduct                2 Tira-2
  iSerial                 3 HE000001
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      Remote Wakeup
    MaxPower              110mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2 Tira-2
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0


  Knowing next to nothing about IR, I believe I additionally need the lirc module which I am hopeful will ultimately allow me to use this (http://www.pixelbeat.org/programs/Tira-2/) utility to send IR keypresses.

  So.....can anyone help ? Is this just a case of getting the lirc module compiled for 0.9 ?  (NSLU2 optware contains a Makefile which could be reworked ?)

  I have had limited success to date with cross-compilation (not had the time to really focus on it) following the openwrt buildroot guide - not really up to reworking a Makefile and building lirc though :-(

TIA

I'm the author of the Tira-2.py util you mentioned above.
This util is independent of LIRC. Currently it supports
capturing remote control button presses and recording
them in a file. It can then be used to replay button presses
back out the Tira-2 transceiver.

Tell me what you want to do exactly, and I'll see
if Tira-2.py can (be modified to) do what you want.

Note support for this transceiver is not easy to integrate into LIRC
due to it's different modes.

Pádraig.

The discussion might have continued from here.