innflickstech
Joined: 17 Apr 2013 Posts: 1
|
Posted: Wed Apr 17, 2013 1:12 pm Post subject: Trouble with identifying IR Code Types |
|
|
I am trying to use a learning remote, Celadon USB Programmable Remote, to learn and teach other learning remotes discrete IR commands. However I am having a hard time understanding some of the key elements of this process. For example: I have the Hex Code from Panasonic for Power On/Off. And I need to convert it to the Code below. Is there a way to take the HEX code and convert it to the code type below? Any insight on this would do me a world of good.
Power On - Hex Code (Panasonic TV)
0000 0071 0000 0032 0080 0040 0010 0010 0010 0031 0010 0010 0010 0010 0010 0010 0010 0010
0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0031 0010 0010
0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0031
0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0031
0010 0010 0010 0031 0010 0031 0010 0031 0010 0031 0010 0010 0010 0010 0010 0031 0010 0010
0010 0031 0010 0031 0010 0031 0010 0031 0010 0010 0010 0031 0010 0A9E
What is this Code ?
0313 02 20 80 00 3D BD |
|
3FG Expert
Joined: 19 May 2009 Posts: 3367
|
Posted: Wed Apr 17, 2013 2:01 pm Post subject: |
|
|
This Pronto Hex decodes using either IRScope or IrMaster to Panasonic device 128, Subdevice 0, Function 61, written in decimal notation. In hexadecimal notation that is D = 80, S = 0, and F = 3D:
0313 02 20 80 00 3D BD
Panasonic is a particular example of the Kaseikyo IR protocol:
{37k,432}<1,-1|1,-3>(8,-4,2:8,32:8,D:8,S:8,F:8,(D^S^F):8,1,-173)+ where 2 and 32 are the OEM codes for Panasonic written in decimal notation. In hexadecimal, these are 02 and 20:
0313 02 20 80 00 3D BD
(D^S^F) means the XOR of D, S, and F, and 80^00^3D is BD:
0313 02 20 80 00 3D BD
0313 presumably carries the information about framing-the frequency, definition of 0 and 1, and the lead in and lead out times.
So you should be able to convert any Panasonic IR signal by finding the device, subdevice, and function numbers in hexadecimal notation, compute the XOR of these, and prepend with 0313 02 20. For example Panasonic device 160, subdevice 194, and function 41 (A0, C2, 29, which XORs to 4B) would be written
0313 02 20 A0 C2 29 4B |
|