LinuxMCE Forums

General => Users => Topic started by: fibres on July 23, 2012, 02:30:32 pm

Title: Learning IR Codes from a Remote
Post by: fibres 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
Title: Re: Learning IR Codes from a Remote
Post by: fibres 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
Title: Re: Learning IR Codes from a Remote
Post by: tschak909 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
Title: Re: Learning IR Codes from a Remote
Post by: tschak909 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
Title: Re: Learning IR Codes from a Remote
Post by: fibres 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
Title: Re: Learning IR Codes from a Remote
Post by: tschak909 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
Title: Re: Learning IR Codes from a Remote
Post by: tschak909 on July 23, 2012, 10:07:19 pm
or you can just use this: http://www.amazon.com/USB-UIRT-Universal-Infrared-Receiver-Transmitter/dp/B005TX3LOU/ref=sr_1_1?ie=UTF8&qid=1343074015&sr=8-1&keywords=usb+uirt

-Thom
Title: Re: Learning IR Codes from a Remote
Post by: fibres 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
Title: Re: Learning IR Codes from a Remote
Post by: hari 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.
Title: Re: Learning IR Codes from a Remote
Post by: fibres 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
Title: Re: Learning IR Codes from a Remote
Post by: tschak909 on July 24, 2012, 12:37:59 am
Yes.

-Thom
Title: Re: Learning IR Codes from a Remote
Post by: Techstyle 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.
Title: Re: Learning IR Codes from a Remote
Post by: fibres 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
Title: Re: Learning IR Codes from a Remote
Post by: tschak909 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
Title: Re: Learning IR Codes from a Remote
Post by: hari 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 :-)
Title: Re: Learning IR Codes from a Remote
Post by: Techstyle on July 25, 2012, 05:13:42 am
if you look at which other TV's use the same remote codes on the Sky remote as your Technika then perhaps you can use codes for a different brand.

look up your TV here:

http://www.satcure.com/tech/digicode2.htm#contrib (http://www.satcure.com/tech/digicode2.htm#contrib)

then look what else uses the same number then perhaps you can find the pronto codes for that. Technika is a Tesco brand which is probably the same parts as other brands.

start to build a template, put in the alternate manufacturer and you may find the suggested pronto codes work