Skip to content

3.1 Appendix A

betatester3016 edited this page May 28, 2021 · 5 revisions

NEC Configuration file

  1. The following is a sample remote.conf file for the Amlogic m200 media box remote.
# amlogic NEC remote
factory_code    = 0xfb040001
work_mode       = 0
repeat_enable   = 1
repeat_delay    = 40
repeat_peroid   = 39
release_delay   = 121
debug_enable    = 1

key_begin
 0x01 0x02   # Number 1 key on the remote control mapped to KEY_1
 0x02 0x03   # Number 2 key on the remote control mapped to KEY_2
 0x03 0x04   # Number 3 key on the remote control mapped to KEY_3
 0x04 0x05   # Number 4 key on the remote control mapped to KEY_4
 0x05 0x06   # Number 5 key on the remote control mapped to KEY_5
 0x06 0x07   # Number 6 key on the remote control mapped to KEY_6
 0x07 0x08   # Number 7 key on the remote control mapped to KEY_7
 0x08 0x09   # Number 8 key on the remote control mapped to KEY_8
 0x09 0x0a   # Number 9 key on the remote control mapped to KEY_9
 0x00 0x0b   # Number 0 key on the remote control mapped to KEY_0
 0x0d 0x110  # KEY_OK on the remote control is mapped to the left button of a standard mouse
 0x41 0x111  # KEY_ESC on the remote control is mapped to the right button of a standard mouse
key_end

mouse_begin
 0 0x10      # Arrow left
 1 0x11      # Arrow right
 2 0x0b      # Arrow keys
 3 0x0e      # Arrow down
mouse_end
  1. Adding a second NEC remote control configuration file:

create remotesecond.conf with content:

# amlogic NEC remote 
factory_infcode = 1

All other content is the same as the previous configuration file.

factory_code = 0xfe010001
---
key_begin
---
 0x03 4
 0x55 221
---
key_end
  1. File format

The file format is

remote.conf
remotesecond.conf
Clone this wiki locally