Author Topic: Learning IR Codes from a Remote  (Read 8969 times)

fibres

  • Guru
  • ****
  • Posts: 306
    • View Profile
    • LinuxMCE 08.10 RC Mirror.
Learning IR Codes from a Remote
« on: July 23, 2012, 02:30:32 pm »
Hi Guys

I have a mce_usb2 tranceiver connected to my MEdia Director.

I am trying to setup my Technika 40 Inch LCD TV to be controlled via infrared.

I cannot seem to find the pronto codes for my tv so would like to learn them from my existing control.

I have created a mew device in a/v Equipment in webadmin and assigned it to the correct room. I have gone into A/VV Properties and tried to add by learning the code but this does not seem to be supported with my tranceiver.

I have used irrecord to record the raw codes but when I put these in manually in the av properties section of my new device it does not blast.

And help would be appreciated.

Regards

fibres

  • Guru
  • ****
  • Posts: 306
    • View Profile
    • LinuxMCE 08.10 RC Mirror.
Re: Learning IR Codes from a Remote
« Reply #1 on: July 23, 2012, 03:15:06 pm »
Ok well I have managed to get lirc to contorl this tv from the command line.

I have used irrecord to setup a basic config for the remote

begin remote

  name  technika
  bits           32
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       8956  4368
  one           604  1637
  zero          604   537
  ptrail        591
  repeat       8924  2220
  gap          106711
  toggle_bit_mask 0x0

      begin codes
          KEY_POWER                0x00FE50AF
      end codes

end remote

I have added that to my /etc/lirc/lircd.conf

I can now use the following command using irsend to toggle the tv on/off

irsend SEND_ONCE technika KEY_POWER

Now how do I tell the device template I have created for my tv to use this?

Regards

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Learning IR Codes from a Remote
« Reply #2 on: July 23, 2012, 07:06:48 pm »
You need to convert those bits to pronto codes, so the system can send them.

If you're sure you can't find pronto codes for your remote, try http://www.remotecentral.com/

-Thom

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Learning IR Codes from a Remote
« Reply #3 on: July 23, 2012, 07:07:44 pm »
and if you want to avoid this mess in the future, don't buy a MCE USB transciever. Use a USB UIRT. They can learn codes, and deal entirely in pronto codes for sending/receiving.

-Thom

fibres

  • Guru
  • ****
  • Posts: 306
    • View Profile
    • LinuxMCE 08.10 RC Mirror.
Re: Learning IR Codes from a Remote
« Reply #4 on: July 23, 2012, 09:54:14 pm »
Hi

Any idea how I would go about translating those into pronto codes?

I tried remotecentral.com but couldnt find the codes.

Is there no way to get linuxmce to use lirc irsend? Some kind of basic device that sends a shell command to call irsend?

Regards

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Learning IR Codes from a Remote
« Reply #5 on: July 23, 2012, 10:05:26 pm »
http://www.remotecentral.com/cgi-bin/mboard/rc-discrete/thread.cgi?5717
http://www.remotecentral.com/cgi-bin/mboard/rc-discrete/thread.cgi?5260
http://www.remotecentral.com/cgi-bin/mboard/rc-pronto/thread.cgi?27045

And no, there isn't a "hack this up" routine to call irsend. Please don't use duct tape, and actually do this properly.

I am very tired of people not listening to those of us with supported hardware, and using it. If you use the UIRT, you AVOID ALL THIS BULLSHIT, and can literally train the device without having to do all this convoluted crap.

But okay, keep on doing it the hard way. Go ahead.

-Thom

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile

fibres

  • Guru
  • ****
  • Posts: 306
    • View Profile
    • LinuxMCE 08.10 RC Mirror.
Re: Learning IR Codes from a Remote
« Reply #7 on: July 23, 2012, 11:30:07 pm »
Thats all very well, However I live in the UK and the already expensive USB-UIRT is even more expensive once you have allowed for shipping to the uk.

Also it is made even more un cost effective when all I want this to do is to send an on/off command to a tv.

Not having much luck transfering this lirc to hex.

Regards

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Learning IR Codes from a Remote
« Reply #8 on: July 23, 2012, 11:58:45 pm »
the IR sending part (IRBase) expects you to use pronto codes.. If you now would hack lirc codes into a device template, another user would be unable to use it e.g. with a TIRA or an IrTrans Ethernet. The only sane way to do this, as tschak said, is to use pronto codes.
rock your home - http://www.agocontrol.com home automation

fibres

  • Guru
  • ****
  • Posts: 306
    • View Profile
    • LinuxMCE 08.10 RC Mirror.
Re: Learning IR Codes from a Remote
« Reply #9 on: July 24, 2012, 12:24:21 am »
So can a pronto code learned from a USB-UIRT be blasted with a mce_usb2 tranceiver?

Regards

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Learning IR Codes from a Remote
« Reply #10 on: July 24, 2012, 12:37:59 am »
Yes.

-Thom

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: Learning IR Codes from a Remote
« Reply #11 on: July 24, 2012, 04:15:42 am »
So Fibres all you need to do is mail your remote to someone with a usbuirt and get them to build you a template. I would do this for you but I am living out of a box right now. If you are still struggling in 3 months give me a call. With a harmony, and a usbuirt I may be able to do this without your remote.

fibres

  • Guru
  • ****
  • Posts: 306
    • View Profile
    • LinuxMCE 08.10 RC Mirror.
Re: Learning IR Codes from a Remote
« Reply #12 on: July 24, 2012, 06:28:02 pm »
Hi Techstyle

That would be good. However I am impatient and will probably buy one before then! Or hack some script to call irsend!

Also you still based stateside? Might be a long way to send a remote!
Thanks for the offer anyway!

Regards

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Learning IR Codes from a Remote
« Reply #13 on: July 24, 2012, 07:48:04 pm »
Dude, seriously, you're being difficult.

There are plenty of threads around for converting lirc codes to pronto codes.

You've got guys willing to train your remote for you...

and I even gave you an out to get a different piece of hardware that side steps this problem entirely (the USB UIRT, which is one of three transcievers we use that provide both IR transmitting and learning, there are two others, the IRTrans, and the Tira) I do not have a MCE transciever, so I have no way of extending LIRC_DCE to handle the Learn IR command...

-Thom

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Learning IR Codes from a Remote
« Reply #14 on: July 24, 2012, 07:51:02 pm »
does anybody in Europe want to buy a USB-UIRT from me? I have one for sale, make an offer :-)
rock your home - http://www.agocontrol.com home automation