Author Topic: New IR Transceiver - mce_usb2.c (Solved - Receiver Unsolved - Transmitter)  (Read 14393 times)

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
I have recently purchased a couple of IR transmitters, HP Media Center that come from a vendor not currentl listed in the version of LIRC that LinuxMCE uses. From what I have read online these will work once lirc is updated with the vendor specific info. I plan on rebuilding lirc when I get home.

lsusb shows:

Bus 002 Device 004: ID 1934:5168 where research indicates that 1934 is the vendor ID for: FINTEK.

So my assumption is that I need to add the lines highlighted to mce_usb2.c
Is this the correct approach and if so
How do I get this back into svn or does someone want to do this real quick for me.

How do I make this? Do I need to make all of lirc or just the mce_usb2 driver?

mce_usb.c

#define VENDOR_FINTEK      0x1934

static struct usb_device_id usb_remote_table [] = {
   { USB_DEVICE(VENDOR_PHILIPS, 0x0815) },   /* Philips eHome Infrared Transciever */
   { USB_DEVICE(VENDOR_SMK, 0x031d) },   /* SMK/Toshiba G83C0004D410 */
   { USB_DEVICE(VENDOR_TATUNG, 0x9150) },  /* Tatung eHome Infrared Transceiver */
   { USB_DEVICE(VENDOR_SHUTTLE, 0xc001) },  /* Shuttle eHome Infrared Transceiver */
        { USB_DEVICE(VENDOR_GATEWAY, 0x3009) },  /* Gateway eHome Infrared Transceiver */
        { USB_DEVICE(VENDOR_MITSUMI, 0x2501) },  /* Mitsumi */
   { USB_DEVICE(VENDOR_TOPSEED, 0x0001) },  /* Topseed eHome Infrared Transceiver */
   { USB_DEVICE(VENDOR_RICAVISION, 0x0010) }, /* Ricavision internal Infrared Transceiver */
   { USB_DEVICE(VENDOR_ITRON, 0x7002) },   /* Itron ione Libra Q-11 */
   { USB_DEVICE(VENDOR_FIC, 0x9242) },     /* FIC eHome Infrared Transceiver */
   { USB_DEVICE(VENDOR_FINTEK, 0x5168) },     /* Fintek - HP media center - eHome Infrared Transceiver */
   { }               /* Terminating entry */
};

« Last Edit: January 17, 2012, 03:40:07 pm by kyfalcon »

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: New IR Transceiver - mce_usb2.c
« Reply #1 on: January 01, 2012, 06:00:31 pm »
Can anyone tell me how to build this? There is a Makefile.in and another Makefile.somethingelse but when I run make it tells me there is no Makefile. Any help is appreciated.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: New IR Transceiver - mce_usb2.c
« Reply #2 on: January 01, 2012, 06:53:29 pm »
see if you have a configure script, and if yes, execute that. after that you should have a Makefile

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: New IR Transceiver - mce_usb2.c
« Reply #3 on: January 01, 2012, 09:52:50 pm »
Thanks Posde, the configure script was actuall in the root lirc directory and not in the mce_usb2 directory. Had to change some of the code but built and installled and the thing is working as an IR receiver. Trying to test the transmit functionality now.

Anyone have any ideas how to test the IR transmitter? irw doesn't seem to be part of linuxmce

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: New IR Transceiver - mce_usb2.c
« Reply #4 on: January 02, 2012, 08:20:36 pm »
OK Spoke too soon. I was able to get the mce_usb2 to build within the lirc drivers directory, but as far as getting all of lirc to build I get all kinds of errors. Could someone explain how to build lirc? Can I just grab the latest version of lirc from the lirc website or do we have to stick with what is in the lmc repositories?

Thanks

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: New IR Transceiver - mce_usb2.c (Solved)
« Reply #5 on: January 09, 2012, 03:58:20 pm »
OK, so I was able to add the new remote to the code and rebuild.

go to /usr/src/lirc 0.8.6/drivers/

edit mce_usb.c

add the following to the  static struct usb_device_id mceusb_dev_table[] =

   /* Fintek eHome Infrared Transceiver (HP branded) */
   { USB_DEVICE(VENDOR_FINTEK, 0x5168) },

save the file and do a dpkg -reconfigure lirc_modules_source

make sure your /etc/lirc/hardware.conf is setup correctly.

Reboot and your FINTEK HP transeiver should work.

DragonK

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: New IR Transceiver - mce_usb2.c (Solved)
« Reply #6 on: January 09, 2012, 08:21:09 pm »
Kyfalcon,

This is a alternative to USB-UIRT?
If so, where do we get them?

Karel

bushtech

  • Veteran
  • ***
  • Posts: 98
    • View Profile
Re: New IR Transceiver - mce_usb2.c (Solved)
« Reply #7 on: January 09, 2012, 09:01:37 pm »
Also dying to know
Core:Asus P8H77-V, Intel core i3-3240 LGA155, Inno 3D Nvidia 240 GT (DVI+VGA+HDMI), 4Gb ram, 125Gb SSD
MD: Zotax Zbox ID41

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: New IR Transceiver - mce_usb2.c (Solved)
« Reply #8 on: January 09, 2012, 10:42:12 pm »
Haven't tested the transmit part yet, but I think i purchased on ebay for $13 apiece. Look for HP usb ir transmitter. Once I get a chnace to test the transmit function I'll update.

DragonK

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: New IR Transceiver - mce_usb2.c (Solved)
« Reply #9 on: January 10, 2012, 06:42:25 am »
Once I get a chnace to test the transmit function I'll update.

Waiting....... patiently.....  ;D

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: New IR Transceiver - mce_usb2.c (Solved)
« Reply #10 on: January 10, 2012, 07:32:00 pm »
From, everything I've read, if these have a transmitter they should work, I have recorded some ir codes but can't test them till I get home tonight.

Aviator

  • Veteran
  • ***
  • Posts: 79
    • View Profile
Re: New IR Transceiver - mce_usb2.c (Solved)
« Reply #11 on: January 11, 2012, 04:51:04 pm »
kyfalcon, would you mind posting the model number of the transceiver? Thanks.

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: New IR Transceiver - mce_usb2.c (Solved)
« Reply #12 on: January 11, 2012, 05:17:53 pm »
kyfalcon, would you mind posting the model number of the transceiver? Thanks.

Here is where I got them. http://www.ebay.com/itm/NEW-HP-MCE-USB-receiver-IR-Blaster-Emitter-Wire-/250802845891

I will post the model number when I get home.

By the way everything I have read about lirc says they should work as a transmitter, I know they work as a reciever. I just haven't had a chance to test the transmit part.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: New IR Transceiver - mce_usb2.c (Solved)
« Reply #13 on: January 11, 2012, 11:54:31 pm »
please check the code and make sure the LIRC you are building has the PRONTO command implemented (grep for it).

This is required for the transmitter to work, as we store all our IR codes as PRONTO codes.

-Thom

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: New IR Transceiver - mce_usb2.c (Solved)
« Reply #14 on: January 12, 2012, 05:54:12 pm »
I am assuming you are talking about the lirc code base? I just edited the files that are in /usr/src. Is that where you are talking about?

Thom how do I add pronto codes if it is not there? I was able to use irrecord to create an lircd.conf file for it, but I see it gets overridden when mce_usb restarts. Can I use usb uirt to learn the codes?
« Last Edit: January 12, 2012, 05:56:56 pm by kyfalcon »