Here's a resource that
lists most Sony codes. Also, you need a program to convert Device.Subdevice and Function numbers to Pronto Hex. I
recommend IrMaster.
IrMaster can convert version 2 LIRC files to Pronto Hex directly, but the file you've linked to is old, and doesn't contain enough information to construct an IR signal. However, Sony codes are very well understood, and I hand converted the linked file to Device and function number format. Then I compared each of the decoded device/function numbers to those published in the first link of the post. All but two agreed.
Function | IR protocol | Device | Func num | | | | | |
sleep | Sony12 | 16 | 96 | | | | | |
select | Sony12 | 16 | 98 | | | | | |
set | Sony12 | 16 | 101 | | | | | |
power | Sony12 | 16 | 21 | | | | | |
play | Sony20 | 26.57 | 50 | | | | | |
pause | Sony20 | 26.57 | 57 | | | | | |
stop | Sony20 | 26.57 | 56 | | | | | |
preset- | Sony20 | 26.57 | 48 | | | | | |
preset+ | Sony20 | 26.57 | 49 | | | | | |
clear | Sony12 | 17 | 15 | Published device is 26.57 | | |
tunning- | Sony20 | 26.57 | 51 | | | | | |
tunning+ | Sony20 | 26.57 | 52 | | | | | |
vol+ | Sony12 | 16 | 18 | | | | | |
vol- | Sony12 | 16 | 19 | | | | | |
game | Sony12 | 16 | 124 | | | | | |
d.skip | Sony12 | 17 | 62 | | | | | |
cd | Sony12 | 16 | 37 | | | | | |
tuner | Sony12 | 16 | 15 | Published gives either device 13, F = 15 or Device 16, F=33 |
tape | Sony12 | 16 | 35 | | | | | |
video | Sony12 | 16 | 105 | | | | | |
preseteq | Sony12 | 18 | 124 | | | | | |
surround | Sony12 | 12 | 63 | | | | | |
effectonoff | Sony12 | 12 | 40 | | | | | |
p.file | Sony12 | 12 | 111 | | | | | |
up | Sony20 | 26.57 | 120 | | | | | |
right | Sony20 | 26.57 | 123 | | | | | |
down | Sony20 | 26.57 | 121 | | | | | |
left | Sony20 | 26.57 | 122 | | | | | |
enter | Sony20 | 26.57 | 124 | | | | | |
To use these, start up IrMaster and select the Protocol as either Sony12 (devices 12, 16,17, 18) or Sony20 (26.57). Enter the Device number into the D cell. For 26.57, enter 26 in the D cell, and 57 in the S cell. Enter a function number into the F cell and click Generate. For example Power is Sony12, Device 16, function 21:
0000 0068 0000 000D 0060 0018 0030 0018 0018 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 0018 0018 0018 0018 0018 0030 0408
Play is 26.57 function 50:
0000 0068 0000 0015 0060 0018 0018 0018 0030 0018 0018 0018 0018 0018 0030 0018 0030 0018 0018 0018 0018 0018 0030 0018 0018 0018 0030 0018 0030 0018 0030 0018 0018 0018 0018 0018 0030 0018 0030 0018 0030 0018 0018 0018 0018 01F8