Default IR protocol is NEC type. IR Remote Controller IR code
♨ 카랜더 일정 :
컨텐츠 정보
- 7,213 조회
본문
IR Remote Controller
Manufacturer Code: 0x4DB2
Button | IR code | Scancode | Android |
---|---|---|---|
Power | 0xDC | 116 | KEYCODE_POWER |
Mute | 0x88 | 113 | KEYCODE_VOLUME_MUTE |
Home | 0x82 | 102 | KEYCODE_HOME |
OK | 0xCE | 97 | KEYCODE_DPAD_CENTER |
Up | 0xCA | 103 | KEYCODE_DPAD_UP |
Left | 0x99 | 105 | KEYCODE_DPAD_LEFT |
Right | 0xC1 | 106 | KEYCODE_DPAD_RIGHT |
Down | 0xD2 | 108 | KEYCODE_DPAD_DOWN |
Menu | 0xC5 | 139 | KEYCODE_MENU |
Back | 0x9A | 158 | KEYCODE_BACK |
Volume Down | 0x81 | 109 | KEYCODE_VOLUME_DOWN |
Volume Up | 0x80 | 104 | KEYCODE_VOLUME_UP |
The IR remote key map is defined in /system/etc/remote.conf file.
Default IR protocol is NEC type.
Manufacturer Code ( Address Code | Inverted Address Code )
: 0x4DB2
Data Code (IR Code | Inverted IR Code)
Button | IR code on Android | IR code on LIRC | Data code based on NEC | event |
---|---|---|---|---|
Power | 0xDC | 0x3B | 0x3BC4 | KEY_POWER |
Mute | 0x88 | 0x11 | 0x11EE | KEY_MUTE |
Home | 0x82 | 0x41 | 0x41BE | KEY_HOME |
OK | 0xCE | 0x73 | 0x738C | KEY_ENTER |
Up | 0xCA | 0x53 | 0x53AC | KEY_UP |
Left | 0x99 | 0x99 | 0x9966 | KEY_LEFT |
Right | 0xC1 | 0x83 | 0x837C | KEY_RIGHT |
Down | 0xD2 | 0x4B | 0x4BB4 | KEY_DOWN |
Menu | 0xC5 | 0xA3 | 0xA35C | KEY_MENU |
Back | 0x9A | 0x59 | 0x59A6 | KEY_BACK |
Volume Down | 0x81 | 0x81 | 0x817E | KEY_VOLUMEDOWN |
Volume Up | 0x80 | 0x01 | 0x01FE | KEY_VOLUMEUP |
Data format of Hardkernel stock remote controller is based on NEC protocol.
And NEC transmission code is configured as following.
- Address code 8bit : 0x4D (0100 1101b), Actual address code is 0xB1 and 0x4D is the LSB/MSB swapped code of 0xB2 for LIRC format.
- Inverted Address code 8bit : 0xB2 (1011 0010b), 0/1 inverted code of 0x4D
- Data code 8bit
- Inverted Data code 8bit
For example, KEY_POWER format is as following.
[ Address code | Inverted Address code | IR code | Inverted IR code ]
= 0x4d | 0xb2 | 0x3b | 0xc4 = 0x4db23bc4
You can confirm the full data format using irw command.
root@odroid:~# irw 000000004db23bc4 01 KEY_POWER odroid 000000004db211ee 01 KEY_MUTE odroid 000000004db241be 00 KEY_HOME odroid 000000004db2738c 00 KEY_ENTER odroid
Please note that IR code format that is configured LIRC is different (lsb/msb position swapped) from its format on Android remote.
■ ▶ ☞ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다 ♠ . ☞ 본자료는 https://11q.kr 에 등록 된 자료 입니다♠.
뷰PDF 1,2
office view
관련자료
-
링크
댓글목록
등록된 댓글이 없습니다.