Update 11th June 2023 - The actual Ruark R2i Remote codes
I received from Pej a list of the learned Hex command codes that RMIR reported after uploading the remote via the JP1 serial port using the program RMIR.
After downloading Java , I downloaded the RMIR ( Remote master) program from Source Forge.
I had previously made the Contour remote learn some of the R4i codes using the instructions that came with the remote.
So I started RMIR coupled to the JP1 connector and FTDI USB to serial converter and downloaded the Contour 4 urc1240 remote data.
Connections:- Look for the dot on pin1 More detail
http://www.hifi-remote.com/wiki/index.php/JP1_Cables1 - (empty):VDD 2 - Yellow:RTS 3 - Black:GND 4 - Green:TXD 5 - (empty) 6 - White:RXD
Blue:CTS (not connected) Red:5V (not connected)
The Contour remote R4i learned codes had Device 143 sub device 239 which in Hex is 0x8F and 0xEF .
The listing Pej sent started with device 134 and sub device 107 So I tried 134/107 or 0x86 and 0x6B as the fixed device code in the YS IRTM transmitter from eBay.
The PEJ listing Hex command codes (18 of them) did not work, however I started at 0x86,6B,00 then 01,02 etc to see if they had any effect on the radio.
E.G using the program Realterm (which is needed to send hex) + the eBay YS IRTM board send A1,F1,86,6B,0A for DAB as the source.
Nineteen codes worked on the Ruark / Vita R2i that corresponded to the 18 buttons on the remote and Mute
A very similar layout to the R4i !!!
Hex Function RMIR Hex cmd
01 Preset 1 7F
02 Preset 2 BF
03 Preset 3 3F
04 Preset 4 DF
05 Preset 5 5F
06 Info 9F
07 Left/down 1F
08 OK EF
09 Right/up 6F
0A DAB AF
0C Aux1/2 CF
0D IPOD 4F
0E Volume dwn 8F
12 Clk/Alarm B7
1A Audio A7
1B FM 27
1E Pwr on/off 87
1F Volume up 07
FF Mute 00
So what is RMIR reporting as Hex commands. The secret is in the NEC Protocol
We were much closer then either of us thought, you needed the Hex version of OBC as the last code !
The Hex command code is in NEC1 format. The binary has first to be reversed then inverted, I found this by looking up OBC to Hex command conversion on Google.
For example
Clock B7 (1011 0111) reverse (1110 1101) invert 0001 0010 or 0x12 . Total code 86 6B 12
Preset1 7F (0111 1111) reverse (1111 1110) invert 0000 0001 or 0x01. Total code 86 6B 01
Preset2 BF (1011 1111) reverse (1111 1101) invert 0000 0010 or 0x02. Total code 86 6B 02
Now to see if RMIR (Remote Master IR) program can take these codes and put them into the one for all remote using the JP1 serial link which is explained in a post by pej
Note that RMIR uses decimal when entering the One Button Codes (OBC) and the device / sub device numbers.
Clock would be Device 154, Sub device 107, OBC 18. i.e 0x86 6B 12 in decimal