IR Remote config creation

I’ve got an Odriod N2+, running 19.3.

I used the How to configure IR remote control guide.

I’ve gone as far a pressing all the 17 used buttons on my Sony remote; here are the results:

842.785744: event type EV_MSC(0x04): scancode = 0x1ae215
842.785744: event type EV_SYN(0x00).
842.830550: event type EV_MSC(0x04): scancode = 0x1ae215
842.830550: event type EV_SYN(0x00).
842.875457: event type EV_MSC(0x04): scancode = 0x1ae215
842.875457: event type EV_SYN(0x00).
842.920365: event type EV_MSC(0x04): scancode = 0x1ae215
842.920365: event type EV_SYN(0x00).
843.080027: event type EV_MSC(0x04): scancode = 0x1ae215
843.080027: event type EV_SYN(0x00).
865.099003: event type EV_MSC(0x04): scancode = 0x10012
865.099003: event type EV_SYN(0x00).
865.143818: event type EV_MSC(0x04): scancode = 0x10012
865.143818: event type EV_SYN(0x00).
865.188635: event type EV_MSC(0x04): scancode = 0x10012
865.188635: event type EV_SYN(0x00).
865.332029: event type EV_MSC(0x04): scancode = 0x10012
865.332029: event type EV_SYN(0x00).
866.800925: event type EV_MSC(0x04): scancode = 0x10013
866.800925: event type EV_SYN(0x00).
866.845731: event type EV_MSC(0x04): scancode = 0x10013
866.845731: event type EV_SYN(0x00).
866.992028: event type EV_MSC(0x04): scancode = 0x10013
866.992028: event type EV_SYN(0x00).
868.971984: event type EV_MSC(0x04): scancode = 0x1ae263
868.971984: event type EV_SYN(0x00).
869.016803: event type EV_MSC(0x04): scancode = 0x1ae263
869.016803: event type EV_SYN(0x00).
869.176027: event type EV_MSC(0x04): scancode = 0x1ae263
869.176027: event type EV_SYN(0x00).
871.989933: event type EV_MSC(0x04): scancode = 0x1ae22c
871.989933: event type EV_SYN(0x00).
872.034741: event type EV_MSC(0x04): scancode = 0x1ae22c
872.034741: event type EV_SYN(0x00).
872.079646: event type EV_MSC(0x04): scancode = 0x1ae22c
872.079646: event type EV_SYN(0x00).
872.236028: event type EV_MSC(0x04): scancode = 0x1ae22c
872.236028: event type EV_SYN(0x00).
874.699120: event type EV_MSC(0x04): scancode = 0x1ae243
874.699120: event type EV_SYN(0x00).
874.743927: event type EV_MSC(0x04): scancode = 0x1ae243
874.743927: event type EV_SYN(0x00).
874.904029: event type EV_MSC(0x04): scancode = 0x1ae243
874.904029: event type EV_SYN(0x00).
877.074996: event type EV_MSC(0x04): scancode = 0x1ae229
877.074996: event type EV_SYN(0x00).
877.119805: event type EV_MSC(0x04): scancode = 0x1ae229
877.119805: event type EV_SYN(0x00).
877.164713: event type EV_MSC(0x04): scancode = 0x1ae229
877.164713: event type EV_SYN(0x00).
877.324026: event type EV_MSC(0x04): scancode = 0x1ae229
877.324026: event type EV_SYN(0x00).
879.426139: event type EV_MSC(0x04): scancode = 0x1ae23f
879.426139: event type EV_SYN(0x00).
879.470957: event type EV_MSC(0x04): scancode = 0x1ae23f
879.470957: event type EV_SYN(0x00).
879.632026: event type EV_MSC(0x04): scancode = 0x1ae23f
879.632026: event type EV_SYN(0x00).
885.595204: event type EV_MSC(0x04): scancode = 0x1ae239
885.595204: event type EV_SYN(0x00).
885.640022: event type EV_MSC(0x04): scancode = 0x1ae239
885.640022: event type EV_SYN(0x00).
885.800026: event type EV_MSC(0x04): scancode = 0x1ae239
885.800026: event type EV_SYN(0x00).
886.693312: event type EV_MSC(0x04): scancode = 0x1ae23a
886.693312: event type EV_SYN(0x00).
886.738128: event type EV_MSC(0x04): scancode = 0x1ae23a
886.738128: event type EV_SYN(0x00).
886.896027: event type EV_MSC(0x04): scancode = 0x1ae23a
886.896027: event type EV_SYN(0x00).
888.472614: event type EV_MSC(0x04): scancode = 0x1ae23b
888.472614: event type EV_SYN(0x00).
888.517424: event type EV_MSC(0x04): scancode = 0x1ae23b
888.517424: event type EV_SYN(0x00).
888.676028: event type EV_MSC(0x04): scancode = 0x1ae23b
888.676028: event type EV_SYN(0x00).
890.214462: event type EV_MSC(0x04): scancode = 0x1ae23c
890.214462: event type EV_SYN(0x00).
890.259280: event type EV_MSC(0x04): scancode = 0x1ae23c
890.259280: event type EV_SYN(0x00).
890.420027: event type EV_MSC(0x04): scancode = 0x1ae23c
890.420027: event type EV_SYN(0x00).
892.237013: event type EV_MSC(0x04): scancode = 0x1ae23d
892.237013: event type EV_SYN(0x00).
892.281822: event type EV_MSC(0x04): scancode = 0x1ae23d
892.281822: event type EV_SYN(0x00).
892.440027: event type EV_MSC(0x04): scancode = 0x1ae23d
892.440027: event type EV_SYN(0x00).
894.402490: event type EV_MSC(0x04): scancode = 0x1ae242
894.402490: event type EV_SYN(0x00).
894.447307: event type EV_MSC(0x04): scancode = 0x1ae242
894.447307: event type EV_SYN(0x00).
894.604026: event type EV_MSC(0x04): scancode = 0x1ae242
894.604026: event type EV_SYN(0x00).
897.609766: event type EV_MSC(0x04): scancode = 0x1ae21a
897.609766: event type EV_SYN(0x00).
897.654574: event type EV_MSC(0x04): scancode = 0x1ae21a
897.654574: event type EV_SYN(0x00).
897.812026: event type EV_MSC(0x04): scancode = 0x1ae21a
897.812026: event type EV_SYN(0x00).
898.670414: event type EV_MSC(0x04): scancode = 0x1ae219
898.670414: event type EV_SYN(0x00).
898.715225: event type EV_MSC(0x04): scancode = 0x1ae219
898.715225: event type EV_SYN(0x00).
898.872027: event type EV_MSC(0x04): scancode = 0x1ae219
898.872027: event type EV_SYN(0x00).
899.969701: event type EV_MSC(0x04): scancode = 0x1ae218
899.969701: event type EV_SYN(0x00).
900.014520: event type EV_MSC(0x04): scancode = 0x1ae218
900.014520: event type EV_SYN(0x00).
900.059416: event type EV_MSC(0x04): scancode = 0x1ae218
900.059416: event type EV_SYN(0x00).
900.216026: event type EV_MSC(0x04): scancode = 0x1ae218
900.216026: event type EV_SYN(0x00).

There are appear to be 17 unique scancodes there, but I can’t match this up with anything from the guide; have I done something incorrectly?

After some more reading, I assume to create my own protocols, I would exchange my own scan codes for the ones found here:

[[protocols]]
name = "mecool"
protocol = "nec"
[protocols.scancodes]
0x52 = "KEY_1"
0x50 = "KEY_2"
0x10 = "KEY_3"
0x56 = "KEY_4"
0x54 = "KEY_5"
0x14 = "KEY_6"
0x4e = "KEY_7"
0x4c = "KEY_8"
0x0c = "KEY_9"
0x0f = "KEY_0"
0x45 = "KEY_MENU"
0x55 = "KEY_CHANNELUP"
0x15 = "KEY_CHANNELDOWN"
0x13 = "KEY_VOLUMEUP"
0x17 = "KEY_VOLUMEDOWN"
0x0d = "KEY_HOME"
0x1b = "KEY_RIGHT"
0x5a = "KEY_LEFT"
0x06 = "KEY_UP"
0x16 = "KEY_DOWN"
0x1a = "KEY_ENTER"
0x19 = "KEY_MUTE"
0x05 = "KEY_BACK"
0x02 = "KEY_INFO"
0x44 = "KEY_STOP"
0x08 = "KEY_PREVIOUSSONG"
0x0b = "KEY_NEXTSONG"
0x59 = "KEY_POWER"
0x4a = "KEY_REWIND"
0x48 = "KEY_FASTFORWARD"
0x46 = "KEY_PLAYPAUSE"
0x1f = "KEY_FAVORITES"
0x4d = "KEY_EPG"
0x04 = "KEY_RECORD"
0x51 = "KEY_ESC"
0x42 = "KEY_RED"
0x40 = "KEY_GREEN"
0x00 = "KEY_YELLOW"
0x03 = "KEY_BLUE"
0x01 = "KEY_LANGUAGE"
0x09 = "KEY_SUBTITLE"
0x12 = "KEY_CONTEXT_MENU"
0x11 = "KEY_COMPOSE"
0x58 = "KEY_CONFIG"
0x18 = "KEY_TEXT"

So I would substitute 0x52 = "KEY_1" with 0x1ae215 = "KEY_1" etc?

Would I also change protocol = “nec” to protocol = “sony” given I have a Sony remote?

and

CoreELEC Wiki - Remote Troubleshooter

About | FAQ | Terms of Service | Privacy Policy | Legal Notice