2011年10月15日 星期六

如何建立 HD-A5 用的 irfake_irrp

1073 媒體播放機的核心影音程式叫做 DvdPlayer,它接收ASCII碼而動作,例如'W'(上)、'X'(下)、'A'(左)、'D'(右)、'm'(靜音)...等等。而遙控碼則是經過 venus_irrp 轉成ASCII碼:



而 irfake4 可以攔截路徑並依 irfake_irrp 將遙控碼轉成 ASCII碼,再直接丟給DvdPlayer:



irfake_irrp 只是一個簡單的對照表,例如:

"1","fe017984","echo '7'",數字鍵7
"1","fa057984","echo 'W'",向上


所以要建立一個 irfake_irrp ,我們需要兩筆資料:

1.
遙控器的所有遙控碼


根據 
http://electronmania.blogspot.com/2011/10/hd-a5_14.html
我們可以先為HD-A5建立一個空的 irfake_irrp 表:

#irfake_irrp for HD-A5 54-key
#
"1","bf40fe01","echo '0'",0
"1","fb04fe01","echo '1'",1
"1","fa05fe01","echo '2'",2
"1","a05ffe01","echo '3'",3
"1","f807fe01","echo '4'",4
"1","f708fe01","echo '5'",5
"1","f609fe01","echo '6'",6
"1","f50afe01","echo '7'",7
"1","f40bfe01","echo '8'",8
"1","f30cfe01","echo '9'",9

"1","fc03fe01","echo ''",選時
"1","e01ffe01","echo ''",編輯

"1","bb44fe01","echo ''",上
"1","e21dfe01","echo ''",下
"1","e31cfe01","echo ''",左
"1","b748fe01","echo ''",右
"1","ae51fe01","echo ''",確認

"1","a35cfe01","echo ''",播放
"1","e619fe01","echo ''",靜音
"1","ef10fe01","echo ''",訊息
"1","bc43fe01","echo ''",返回

"1","eb14fe01","echo ''",停止
"1","e718fe01","echo ''",暫停
"1","ea15fe01","echo ''",快進
"1","e51afe01","echo ''",快退
"1","e916fe01","echo ''",下一曲
"1","e41bfe01","echo ''",上一曲
"1","e817fe01","echo ''",音量+
"1","e11efe01","echo ''",音量-

"1","ab54fe01","echo ''",設置
"1","a659fe01","echo ''",縮放
"1","a55afe01","echo ''",解析度
"1","a857fe01","echo ''",慢放

"1","ac53fe01","echo ''",A-B
"1","a758fe01","echo ''",重複
"1","a45bfe01","echo ''",角度
"1","aa55fe01","echo ''",比例

"1","b14efe01","echo ''",字幕
"1","b649fe01","echo ''",音效
"1","af50fe01","echo ''",標題
"1","a956fe01","echo ''",選單

"1","b54afe01","echo ''",音樂
"1","b44bfe01","echo ''",圖片
"1","b34cfe01","echo ''",電影
"1","b24dfe01","echo ''",網路

"1","b946fe01","echo ''",紅
"1","a15efe01","echo ''",綠
"1","be41fe01","echo ''",黃
"1","f20dfe01","echo ''",藍

"1","ee11fe01","echo ''",DISC
"1","ec13fe01","echo ''",USB
"1","ed12fe01","echo ''",CARD
"1","ad52fe01","echo ''",進/退片

"1","ff00fe01","echo ''",電源



2.
DvdPlayer的所有ASCII命令碼



(此表仍需日後補正)


把上面兩筆資料合併,我們就可以得到適合 HD-A5 使用的 irfake_irrp:

#irfake_irrp for HD-A5 54-key
#
"1","bf40fe01","echo '0'",0
"1","fb04fe01","echo '1'",1
"1","fa05fe01","echo '2'",2
"1","a05ffe01","echo '3'",3
"1","f807fe01","echo '4'",4
"1","f708fe01","echo '5'",5
"1","f609fe01","echo '6'",6
"1","f50afe01","echo '7'",7
"1","f40bfe01","echo '8'",8
"1","f30cfe01","echo '9'",9

"1","fc03fe01","echo '-'",選時
"1","e01ffe01","echo 'E'",編輯

"1","bb44fe01","echo 'W'",上
"1","e21dfe01","echo 'X'",下
"1","e31cfe01","echo 'A'",左
"1","b748fe01","echo 'D'",右
"1","ae51fe01","echo ' '",確認

"1","a35cfe01","echo 'S'",播放
"1","e619fe01","echo 'm'",靜音
"1","ef10fe01","echo '}'",訊息
"1","bc43fe01","echo ','",返回

"1","eb14fe01","echo 'Q'",停止
"1","e718fe01","echo 'Z'",暫停
"1","ea15fe01","echo 'F'",快進
"1","e51afe01","echo 'f'",快退
"1","e916fe01","echo 'n'",下一曲
"1","e41bfe01","echo 'p'",上一曲
"1","e817fe01","echo 'V'",音量+
"1","e11efe01","echo 'v'",音量-

"1","ab54fe01","echo '/'",設置
"1","a659fe01","echo 'z'",縮放
"1","a55afe01","echo '\'",解析度
"1","a857fe01","echo 'L'",慢放

"1","ac53fe01","echo '='",A-B
"1","a758fe01","echo '+'",重複
"1","a45bfe01","echo 'e'",角度
"1","aa55fe01","echo 'i'",比例 ?????

"1","b14efe01","echo 's'",字幕
"1","b649fe01","echo 'a'",音效
"1","af50fe01","echo 'M'",標題
"1","a956fe01","echo '{'",選單

"1","b54afe01","echo ''",音樂 ?????
"1","b44bfe01","echo ''",圖片 ?????
"1","b34cfe01","echo ''",電影 ?????
"1","b24dfe01","echo ''",網路 ?????

"1","b946fe01","echo 'u'",紅 --> select
"1","a15efe01","echo 'c'",綠 --> confirm

"1","be41fe01","echo ''",黃 ?????
"1","f20dfe01","echo ''",藍 ?????

"1","ee11fe01","echo ''",DISC ?????
"1","ec13fe01","echo '#'",USB
"1","ed12fe01","echo '&'",CARD --> copy
"1","ad52fe01","echo '!'",進/退片

"1","ff00fe01","echo 'O'",電源





沒有留言: