Ruark  Vita Audio R2i - R2 & R2 mk3 remote control IR codes for universal remote - Page 1
Forum section: electronics / repair

author: rh100605
author_rank: Regular Contributor
timestamp: May 08, 2023, 02:43:46 pm
content: Does anyone have the IR remote codes for the Ruark-Vita audio R2/R2i and R2 mk3 so that I can program a universal remote with a laptop and the YS-IRTM infrared to serial (eBay) ? The same board can be used to "read" remote codes.I have already published the Remote codes for the Ruark R4i on eevblog.Now I would like to help the community by publishing other Ruark remote control codes so those who have lost their remotes can program a universal remote such as the "one for all Contour" universal remote URC1210 / URC1240 or the Geemarc TV10The NEC 38khz codes for the R2i all start with 0x86 6B and follow a pattern very similar to the R4i. So Preset 1 is 0x86 6B 01 and power is 0x86 6B 1EPej has agreed to post on EEVblog how to use the Source Forge program RMIR to load these to any JP1 universal remote control. More details in later posts.UPDATE:- The Ruark R2 mk3 is an internet / DAB/ Bluetooth / USB music systemThis remote uses 38Khz NEC1 encodingThe device code is 0x01 sub device 0xFE, Hex function codes (OBC) follow+ 00Power 01Menu 06- 09Left 0APause 0C (Also mute)Back 0DSource 0EPreset 14Right 15Select 16Example :- Power is 0x01 FE 01 or Source is 0x01 FE 0EIf the long push on Presets and Info does not work remember that older IR receivers are sensitive to Electronic ballast high frequency Fluorescent lighting, creating pulses in the null fields sent on a long button push..

author: rh100605
author_rank: Regular Contributor
timestamp: June 11, 2023, 11:50:39 am
content: Update 11th June 2023 - The actual Ruark R2i Remote codesI 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.Put the two AA batteries in the remote. Pins go 1(dot), 3, 5 on the side with the white dot. Pins 2(opposite dot), 4,6 on the other side.Connections:- Look for the dot on pin1 More detailhttp://www.hifi-remote.com/wiki/index.php/JP1_Cables1 - (empty):VDD 2 - Yellow:RTS 3 - Black:GND 4 - Green:TXD 5 - (empty) 6 - White:RXDBlue: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 MuteA very similar layout to the R4i !!!Hex Function RMIR Hex cmd01 Preset 1 7F02 Preset 2 BF03 Preset 3 3F04 Preset 4 DF05 Preset 5 5F06 Info 9F07 Left/down 1F08 OK EF09 Right/up 6F0A DAB AF0C Aux1/2 CF0D IPOD 4F0E Volume dwn 8F12 Clk/Alarm B71A Audio A71B FM 271E Pwr on/off 871F Volume up 07FF Mute 00So what is RMIR reporting as Hex commands. The secret is in the NEC ProtocolWe 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 exampleClock B7 (1011 0111) reverse (1110 1101) invert 0001 0010 or 0x12 . Total code 86 6B 12Preset1 7F (0111 1111) reverse (1111 1110) invert 0000 0001 or 0x01. Total code 86 6B 01Preset2 BF (1011 1111) reverse (1111 1101) invert 0000 0010 or 0x02. Total code 86 6B 02Now 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 pejNote 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

author: pej
author_rank: Contributor
timestamp: June 11, 2023, 10:05:03 pm
content: Intro:There seem to be quite a number of R2 / R2i's missing IR remote controls. Neither have I seen remotes for sale. The Ruark remotes look as if they are glued together and so do not know what is inside. I provide a replacement solution that uses readily available Contour One for All. Contour learnt all the functions and allowed me to build setup code 2000 for R2 / R2i using no other equipment other than a UART for interfacing to a computer.The Contour is a stunning remote control that includes a remote learning function (provided you have the original). But I found the performance of the learnt functions good, but a little inconsistent. If you don't have the original remote you are really stuck because Ruark/Vita is not listed on code list provided with this remote. I recall only Logitec might offer Ruark IR it is discontinued.Older R2:There is a slight oddity with this solution. So it may not be technically perfect.(Solved - see next post)The original Ruark remote fully works BOTH R2 and R2i models, but the Contour (One for All) will ONLY works fully the R2i. Press and hold does not work on the older R2. That means, for example, you cannot use the Contour remote to store a station in pre-set memory or scroll up and down volume or stations by holding button on remote. You need to use the R2 Rotordial for push and hold. But it is still very useful to have for R2 and gives full access to 3D Sound and Audio settings which are not on the R2 Rotordial. The Ruark R2 and R2i remotes look almost identical apart from the the first two (top LH) buttons which are labelled 3D and EQ while R2i is labelled Clock and Audio respectively. IR Hex codes are the same respectively.There has been some confusion over Hex codes and OBC with rh100605, partly because I have never done anything like this, but am learning! This solution never used OBC codes but Fig 3 shows them. Now I know how they are worked out.Software:As mentioned above, you need RemoteMaster from SourceForge and it requires Java Development Kit dependency. Within RemoteMaster there are three programs - RMIR, RMDU and RMPB. RMIR and RMDU are used here.Hardware:You will need a Contour / Contour 4 / possibly Contour 8 (8 not tested).As mentioned above, underneath the Contour battery cover you will find a 6-pin connector which is a JP1 interface. Pin 1 should be identified with a careful look at the PCB silk screen.You need a USB UART with flow control running at 38400 bps connected to the JP1 interface. The JP1 is fussy with the UART used - CP2102 did not work, I gather FT232RL works. Bus Pirate has FT232RL within - I had to use this.Amendment: For those of you not using a Bus Pirate, in brackets, on the diagram below, the regular USB UART connection names are shown which I hope will work.Bus Pirate (you don't need to do all this if you are not using Bus Pirate), (Windows Device manager is all you will need with conventional USB UART).So I used Bus Pirate which I detail here - Bus Pirate is a bit fiddly to set up and you will probably use something simpler. I use Tera Term SW as a terminal for setting up Bus Pirate (Tera Term SW not needed for a conventional USB UART setup).Bus Pirate (BP) Setup:Contour remote JP1 interface connections to BPBPGND|-------------------| 5 3 1 || Contour Remote || Pin Nos || 6 4 2 |-------------------| | |BP BP BPMISO MOSI CLOCK(RxD) (TxD) (RTS)Plug in Bus Pirate to computer USBWin device manager - initial port speed setting is 115200 bps-------------------------------------------------------------------Tera Term software settings I used -serial USB com port (COM1)setup/serial port - speed 115200 & 'enter new setting'-------------------------------------------------------------------In Tera Term terminal - press enter - HiZthen enter the following for setting the mode and final bit rate:m - 3 UART7 384001 8 Data bits and parity (default)1 stop bit (default)1 Idle 1 (default)2 Normal (H=3.3v,L=GND)(H can be up to 5.5v)b - 7 38400-------------------------------------------------------------------In Tera Term window menu - setup/serial port - speed 38400 & 'enter new setting'Win device manager port settings set speed to 38400-------------------------------------------------------------------In Tera Term terminal - space to continue - UART>In terminal enter (3) - this is UART with flow controlUART BridgeReset to exitAre you sure? - enter 'y'-------------------------------------------------------------------Bus Pirate is ready to go configured as a 38400 bps UART with flow control.Close Tera Term (otherwise it will conflict with RMIR) and open RMIRUsing RMIR/RMDU software:Firstly download the contents of the Contour Remote. I just found pressing the download button works if all is connected/setup correctly. This download brings up the menus you need.Next click on Devices (Fig 1) and then new - that will take you to RMDU Device Upgrade Editor (Fig 2).On the Setup page (Fig 2) I entered NEC1 protocol Device 134, Sub Device 107. The fixed data and protocol ID should take care of themselves and show the values below. I used default setup code 2000 and I selected AMP (for Contour 4, or TV for Contour).Under the functions menu (Fig 3) I recall adding the Ruark remote key name to the corresponding hex code shown below and in Fig 3.Under the Buttons menu (Fig 4) I recall dragging the Ruark remote key names (as just entered above) to the function column. This is where you make a choice as to which button on the Contour remote does which function of the Ruark remote. And it seems quite flexible.Move on to the layout menu (Fig 5) and you will see a picture of the Contour remote and the keys used. You will also see a few extra Contour keys highlighted, but not assigned (eg 6 to 9 and mute). These highlighted keys appear to be a feature of how this software works, they all have 00h assigned and they all mute the R2i - added bonus that is not on original remote!The key map (Fig 6) just shows an map of the Ruark keys against the Contour keys.Recap:For Ruark Vita Audio1. SetupDevice 134Sub Dev 107Prot NEC1Fixed Data 20 9E 29NEC1 Protocol PID 005A2. Enter HEX & name under functionB7 A7 87Ck Au On/Off7F BF 3F1 2 3DF 5F 9F4 5 Info1F EF 6FBk/Dn OK Fwd/upAF 27 07DAB FM Vol upCF 4F 8FAux iPod Vol dn3. Under buttons drag and drop to assign as you wish.I uploaded the above to the Contour remote. Unplugged the JP1/UART connection. Press the AMP button (because I have Contour 4) press setup and enter code 2000 just like you would for any other alternative IR product. All worked perfectly on R2i as far as I could make out.Conclusion:If you have just the single device Contour URC1210, you need to select TV (not AMP) on the set up page of the Upgrade RMDU software (Fig 2).Indeed there has been confusion between Hex and OBC (Fig 3 shows both). Confusion as to what device and sub-device values are, what is the fixed data? I am new to all this and learning. How rh100605 figured it out is amazing. Perhaps I should have posted this earlier.The above Hex values came, from the learnt function of the Contour Then Contour was connected to the RMIR software to reveal those values. No OBC values were used.The software did not recognise Contour (URC1210), but selecting Contour 4 (URC1240) worked fine. Single device Contour URC1210 does have phantom buttons which allow you to have more than one device! I find this interesting but not investigated it. These Contour remotes are quite clever particularly when connected to a PC.As stated earlier I found the learned values a little inconsistent in performance, so entering them manually as an upgrade resolved this. I found only learnt codes got older R2 fully working including press and hold, but did not know how they differed to the manually entered codes or what was missing.Hoping there is enough here to get remotes working with R2 and R2i with many thanks to rh100605 for encouragement.

author: pej
author_rank: Contributor
timestamp: August 15, 2023, 06:15:11 pm
content: In the post above I said the Contour 4 remote solution may not be technically perfect - it does fully work Ruark R2i and only partially works older R2.I discovered the Contour's IR signal was a little fast in timing by just 1.03%.There is a fix for the remote push and hold for the older Ruark R2. This will still also work the R2i by bringing the IR waveform timing much closer to the original Ruark remote which fully works both Ruarks R2 and R2i.These additional steps are what I did:Within RMIR click on devices (Fig1).Double click on NEC1 to bring up Protocol editor (Fig2).Change the following uSec times by adding 1.03% to them:1 Burst ON - 564OFF - 5680 Burst ON - 564OFF - 1706Lead-in ON - 9086OFF - 4542Lead-Out OFF - 108988This is important to do in this order (as there is a bug in the software), go the PF Details tab (Fig3) and then click update and OK.Download to the remote and all should work.This timing issue and bug was raised here:http://www.hifi-remote.com/forums/viewtopic.php?t=103333This is my full working solution here:http://www.hifi-remote.com/forums/dload.php?action=file&file_id=26773but you will need to sign in.This is the JP1 owner's full solution which happens to work without changing anything:http://www.hifi-remote.com/forums/dload.php?action=file&file_id=26769But again you will need to sign inMany thanks to rh100605 for the support to solve this.