CEC-HDMI Feature
CEC (Consumer Electronics Control) feature is used on HDMI interface. CEC is a bus integrated in HDMI interface with defined protocol of interaction. CEC allows the user to operate both devices (TV and STB) with one remote control (for the TV) simultaneously.
Enabling CEC on STB
CEC support is turned on and off in System Settings (Advanced Settings), it is executed at the API level.
Pressing the buttons on the RC is transmitted from the TV to STB via CEC bus with the commands of HDMI-CEC protocol and at the level of API do not differ from the keystrokes of the keyboard or RC.
The list of used keys is tabulated:
CEC command |
onKeyPress |
Keyboard key |
Keyboard keycode |
"TV -> STB : UI command <Select> " |
EV_KEY__SELECT |
select |
93 |
TV -> STB : UI command <Up> " |
EV_KEY__UP |
Up |
38 |
TV -> STB : UI command <Down> |
EV_KEY__DOWN |
Down |
40 |
TV -> STB : UI command <Left> |
EV_KEY__LEFT |
Left |
37 |
TV -> STB : UI command <Right> |
EV_KEY__RIGHT |
Right |
39 |
TV -> STB : UI command <Exit> |
EV_KEY__EXIT |
Home |
36 |
TV -> STB : UI command <0> |
EV_KEY__0 |
0 |
48 |
TV -> STB : UI command <1> |
EV_KEY__1 |
1 |
49 |
TV -> STB : UI command <2> |
EV_KEY__2 |
2 |
50 |
TV -> STB : UI command <3> |
EV_KEY__3 |
3 |
51 |
TV -> STB : UI command <4> |
EV_KEY__4 |
4 |
52 |
TV -> STB : UI command <5> |
EV_KEY__5 |
5 |
53 |
TV -> STB : UI command <6> |
EV_KEY__6 |
6 |
54 |
TV -> STB : UI command <7> |
EV_KEY__7 |
7 |
55 |
TV -> STB : UI command <8> |
EV_KEY__8 |
8 |
56 |
TV -> STB : UI command <9> |
EV_KEY__9 |
9 |
57 |
TV -> STB : UI command <Enter> |
EV_KEY__ENTER |
enter |
13 |
TV -> STB : UI command <CH up> |
EV_KEY__CH_UP |
tab |
9 |
TV -> STB : UI command <CH down> |
EV_KEY__CH_DOWN |
Shift+tab |
9 |
TV -> STB : UI command <Play> |
EV_KEY__PLAY |
Alt+R |
82 |
TV -> STB : UI command <STOP> |
EV_KEY__STOP |
Alt+S |
83 |
TV -> STB : UI command <Pause> |
EV_KEY__PAUSE |
Alt+R |
82 |
TV -> STB : UI command <Rewind> |
EV_KEY__REWIND |
Alt+B |
66 |
TV -> STB : UI command <FastForw> |
EV_KEY__FAST_FORW |
Alt+F |
70 |
TV -> STB : UI command <Mute> |
EV_KEY__MUTE |
alt |
192 |
TV -> STB : UI command <f1 blue > |
EV_KEY__F1_BLUE |
Ctrl + F1 |
112 |
TV -> STB : UI command <f2 red > |
EV_KEY__F2_BLUE |
Ctrl + F2 |
113 |
TV -> STB : UI command <f3 green > |
EV_KEY__F3_BLUE |
Ctrl + F3 |
114 |
TV -> STB : UI command <f4 yello > |
EV_KEY__F4_YELLO |
Ctrl + F4 |
115 |