One For All Mosaic on the XBox

I bought a One For All Mosaic aka URC-9990 universal remote control to try and make sense of the mess of remote controls on my table.

Primary concern was compatibility with the xbox specifically to use with XBox Media Center (XBMC). The remote itself is nice enough, UI leaves a bit to be desired during the setup stage but I guess you can't have it all in a £40 remote.

Getting stuff going in the XBox though was another story, the Mosaic has a internet download function that plays a WAV file through your speaker into its microphone, bit like a 300 baud modem without any handshaking or carrier. I downloaded their XBOX profile this got the basics going but since the actual XBox remote control lacks volume, mute etc these were not added.

The Mosaic has a learn function like most of these remote controls I guess but I am sure there is a limited capacity for learned codes so I wanted to not use these if at all possible. It also has a Key Magic system that lets you enter codes manually, the hassle though is that they have obfuscated the codes and what actually gets sent. They say the Key Magic thing is patented etc and you need to speak to their customer support to get the right Magic key to your remote codes. Well thats just b/s all it is is a lookup against one set of numbers that will output the real number out via IR. IR only has 255 valid signals so its not that difficult.

I set the XBMC into debug mode where it shows the IR signals it receives and so made a table of Key Magic codes to actual codes, I also put in what default codes are in use on the XBox remote controller. View the full entry for the table of codes. It was actually very easy there are easily detectible patterns in their mapping from Magic codes to actual codes.

XBMC has in its latest version a global volume control that can be activated in all screens, it also has short cuts for accessing Videos, Movies, Weather and so forth, all accessible by the remote if you know the codes and can program it correctly. The keymap.xml defines what happens when keys or IR signals gets sent. The definition for the global volume up is:

   <action>
      <description>volumeup</description>
      <id>88</id>
      <gamepad>rightthumbstickup</gamepad>
      <remote>volumeplus</remote>
      <keyboard>+</keyboard>
    </action>

Simple stuff, so to activate the volume button on the Mosaic I simply assigned a Magic Key using the table below and put the actual value that the Magic Key sends in the keymap.xml like this:

   <action>
      <description>volumeup</description>
      <id>88</id>
      <gamepad>rightthumbstickup</gamepad>
      <remote></remote>
      <remotecode>129</remotecode>
      <keyboard>+</keyboard>
    </action>

Notice that I cleared out the <remote></remote> blocks and added the <remotecode></remotecode> ones. Actual code 129 maps to Magic Key 262. Using the same simple procedure I also added quick access keys for movies and music and activate the mute button.

I am not sure why One For All feel they need to obfuscate something so fundamental to the operation of the remote control, but I hope this helps you use the device you paid good money for without having to waste additional money and time by having to call or mail them.

Actual Code Sent Key Magic Code XBox Remote Function
0274
1266
2290
3284
4242
5234
6258
7250
8338Menu
9330
10354
11346
12306
13298
14322
15314
16146
17138
18162
19154
20114
21106Play
22130
23122
24210
25202Pause
26226Title
27218
28178Forward
29170Reverse
30194
31186Stop
32275Skip Plus
33267
34291Skip Minus
35285
36243
37235
38259
39251Back
40339
41331
42355Display
43347
44307
45299
46323
47315
48147Zero
49139One
50163Two
51155Three
52115Four
53107Five
54131Six
55123Seven
56211Eight
57203Nine
58227
59219
60179Title
61171
62195
63187
64272
65264
66288
67282
68240
69232
70256
71248
72336
73328
74352
75344
76304
77296
78320
79312
80144
81136
82160
83152
84112
85104
86128Left
87120Right
88208Down
89200Up
90224
91216
92176
93168
94192
95184
96273
97265
98289
99283
100241
101233
102257
103249
104337
105329
106353
107345
108305
109297
110321
111313
112145
113137
114161
115153
116113
117105
118129
119121
120209
121201
122225
123217
124177
125169
126193
127185
128270
129262
130286
131280
132238
133230
134254
135246
136334
137326
138350
139342
140302
141294
142318
143310
144142
145134
146158
147150
148110
149102
150126
151118
152206
153198
154222
155214
156174
157166
158190
159182
160271
161263
162287
163281
164239
165231
166255
167247
168335
169327
170351
171343
172303
173295
174319
175311
176143
177135
178159
179151
180111
181103
182127
183119
184207
185199
186223
187215
188175
189167
190191
191183
192268
193260
195276
196236
197228
198252
199244
200332
201324
202348
203340
204300
205292
206316
207308
208140
209132
210156
211148
212108
213100
214124
215116
216204
217196
218220
219212
220172
221164
222188
223180
224269Select/Enter/OK
225261
227279
228237
229229
230253
231245
232333
233325
234349
235341
236301
237293
238317
239309
240141
241133
242157
243149
244109
245101
246125
247117
248205
249197
250221
251213
252173
253165
254189
255181

4 Comments

Im trying to follow this approach, where did you get the basic Xbox profile. I can not find it on the one for all site.

Regards Ian

I was looking for ages for the above codes.
They are part of the profile for DVD players 0522.
Buttons 4,6 and 0 are not mapped correctly on mine so i had to edit them. 1,2,3,5,7,8,9,reverse,play,forward,stop,pause,up,down,left,right and menu were all correct, power button was orignally mapped to display, changed to 219, same as media centre power button (actual code 59 sent).
Media Centre Remote Codes (Think they are all correct).
Actual Code Sent, Key Magic Code, Xbox Remote Function;
6, 258, Clear;
23, 122, Record;
44, 307, Chnl Minus;
45, 299, Chnl Plus;
46, 323, Vol Minus;
47, 315, Vol Plus;
59, 219, Power;
63, 187, Mute;
154, 222, Recorded TV;
206, 316, My TV;
214, 124, Hash #;
215, 116, Star *;
218, 220, Start;
231, 245, Live TV;
246, 125, My Music;
248, 205, My Videos;
249, 197, My Pictures.

Hi,

I am in competely the same boat as you, so finding this post is a God send. But, like the previous commenter I can't find the original xbox profile. I wonder if you'd be kind enough to post a link.

Also, whilst you're feeling kind, the keymap file from the XBox would be a great helping hand as well.

Sorry for being so cheeky, I hope I can return the favour sometime.

Matt

mailNOSPAM@REMOVECAPITALSmashton.com

can you tell me how can i get de codes in de mosaic
step bij step
thanks

Leave a comment

Recent Entries

  • flashpolicyd 2.0

    I wrote a multi threaded server for Adobe Flash Policy requests, some background from Adobe:Since policy files were first introduced, Flash Player has recognized /crossdomain.xml...

  • Adventures with Ruby

    Some more about my continuing experiences with ruby, in my last post I saidthe language does what you'd expect and as you'll see in my...

  • New programming language of choice - Ruby

    I have fallen out of love with Perl some time ago, I cannot point to one specific thing about it that put me off, I...

  • On working from home

    I've not been posting much here, work has been incredibly manic the last while, especially I need to still finish off my SSO posts with...

  • Rework of puppet facts for /etc/facts.txt

    Previously I blogged a custom fact that reads /etc/facts.txt to build up some custom facts for use in Puppet manifests, well I've since learned a...

Close