本技術涉(she)(she)及(ji)遙控,具(ju)體涉(she)(she)及(ji)一(yi)種(zhong)遙控學習方(fang)法。
背景技術:
1、遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)學(xue)(xue)習(xi)(xi)(xi)是指一(yi)(yi)(yi)(yi)種遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)的(de)(de)(de)功(gong)(gong)能(neng),它(ta)可(ke)以讓用戶將原(yuan)有(you)的(de)(de)(de)遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)的(de)(de)(de)按鍵編(bian)碼通過學(xue)(xue)習(xi)(xi)(xi)功(gong)(gong)能(neng)傳輸到另一(yi)(yi)(yi)(yi)個(ge)(ge)(ge)遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)上,并(bing)保(bao)存(cun)為(wei)一(yi)(yi)(yi)(yi)個(ge)(ge)(ge)新(xin)的(de)(de)(de)編(bian)碼序(xu)列。這(zhe)樣,在之后的(de)(de)(de)使用中(zhong),用戶就可(ke)以使用這(zhe)個(ge)(ge)(ge)新(xin)的(de)(de)(de)遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)來(lai)模擬原(yuan)先的(de)(de)(de)遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)進行相應(ying)(ying)的(de)(de)(de)操作和(he)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)制(zhi)。通常情況(kuang)下,遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)學(xue)(xue)習(xi)(xi)(xi)功(gong)(gong)能(neng)需要兩個(ge)(ge)(ge)遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi):一(yi)(yi)(yi)(yi)個(ge)(ge)(ge)待學(xue)(xue)習(xi)(xi)(xi)的(de)(de)(de)遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)和(he)一(yi)(yi)(yi)(yi)個(ge)(ge)(ge)帶學(xue)(xue)習(xi)(xi)(xi)功(gong)(gong)能(neng)的(de)(de)(de)遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)。在學(xue)(xue)習(xi)(xi)(xi)時,帶學(xue)(xue)習(xi)(xi)(xi)功(gong)(gong)能(neng)的(de)(de)(de)遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)會(hui)發送一(yi)(yi)(yi)(yi)個(ge)(ge)(ge)信號,待學(xue)(xue)習(xi)(xi)(xi)的(de)(de)(de)遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)會(hui)接收并(bing)解析該信號,并(bing)將對應(ying)(ying)的(de)(de)(de)按鍵編(bian)碼傳回給帶學(xue)(xue)習(xi)(xi)(xi)功(gong)(gong)能(neng)的(de)(de)(de)遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)。帶學(xue)(xue)習(xi)(xi)(xi)功(gong)(gong)能(neng)的(de)(de)(de)遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)會(hui)將接收到的(de)(de)(de)編(bian)碼保(bao)存(cun)起來(lai),并(bing)為(wei)每個(ge)(ge)(ge)編(bian)碼建立(li)一(yi)(yi)(yi)(yi)個(ge)(ge)(ge)對應(ying)(ying)的(de)(de)(de)按鍵,從而實現了對原(yuan)有(you)遙(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)的(de)(de)(de)學(xue)(xue)習(xi)(xi)(xi)。
2、遙(yao)(yao)控(kong)(kong)(kong)學(xue)習(xi)本質上是(shi)一種錄制(zhi)方式,它(ta)需要(yao)將原有(you)(you)遙(yao)(yao)控(kong)(kong)(kong)器(qi)(qi)(qi)的(de)(de)(de)(de)按鍵編碼序列通過錄制(zhi)的(de)(de)(de)(de)方式傳(chuan)輸(shu)到(dao)一個(ge)新(xin)的(de)(de)(de)(de)遙(yao)(yao)控(kong)(kong)(kong)器(qi)(qi)(qi)上。在(zai)錄制(zhi)時,新(xin)的(de)(de)(de)(de)遙(yao)(yao)控(kong)(kong)(kong)器(qi)(qi)(qi)會(hui)通過紅外傳(chuan)感器(qi)(qi)(qi)接收到(dao)原有(you)(you)遙(yao)(yao)控(kong)(kong)(kong)器(qi)(qi)(qi)發送出(chu)的(de)(de)(de)(de)信號,并(bing)將其(qi)轉化為相應的(de)(de)(de)(de)按鍵編碼序列。由于紅外傳(chuan)感器(qi)(qi)(qi)的(de)(de)(de)(de)不(bu)穩定(ding)性以及信號傳(chuan)輸(shu)過程中可能(neng)(neng)存在(zai)的(de)(de)(de)(de)干擾等因(yin)素,導致新(xin)的(de)(de)(de)(de)遙(yao)(yao)控(kong)(kong)(kong)器(qi)(qi)(qi)接收到(dao)的(de)(de)(de)(de)信號與原有(you)(you)遙(yao)(yao)控(kong)(kong)(kong)器(qi)(qi)(qi)發送出(chu)的(de)(de)(de)(de)信號存在(zai)一定(ding)的(de)(de)(de)(de)誤差,從(cong)而導致遙(yao)(yao)控(kong)(kong)(kong)器(qi)(qi)(qi)操作失效或操作錯誤。同時,在(zai)學(xue)習(xi)過程中,用戶需要(yao)對每個(ge)需要(yao)使用的(de)(de)(de)(de)按鍵進行學(xue)習(xi)。這也就導致了用戶需要(yao)操作多次,才能(neng)(neng)完成所有(you)(you)按鍵的(de)(de)(de)(de)學(xue)習(xi)過程。尤其(qi)是(shi)對于一些復雜的(de)(de)(de)(de)遙(yao)(yao)控(kong)(kong)(kong)器(qi)(qi)(qi),需要(yao)學(xue)習(xi)的(de)(de)(de)(de)按鍵可能(neng)(neng)非常多,這給用戶帶來了一定(ding)的(de)(de)(de)(de)麻煩和不(bu)便(bian)。
3、因此,如(ru)何避免由于新遙控器的接收信(xin)號(hao)與原有遙控器的發送出信(xin)號(hao)之間的誤差(cha)導致的操作錯誤或功能失效,同時減少遙控學習的操作次數,是本領域(yu)技(ji)術人(ren)員(yuan)急需解決的技(ji)術問題(ti)。
技術實現思路
1、基(ji)于上述問題,本技術提供了一種遙(yao)控學習方法,可以避免由于新(xin)遙(yao)控器的(de)(de)接收信號(hao)與原有遙(yao)控器的(de)(de)發送出信號(hao)之間的(de)(de)誤差導致的(de)(de)操作錯誤或功能(neng)失效,同(tong)時減少遙(yao)控學習的(de)(de)操作次(ci)數。
2、本技術實施例公開了如下技術方(fang)案:
3、一種遙控學習方法(fa),所(suo)述方法(fa)包括:
4、響應于學習(xi)(xi)(xi)遙(yao)控(kong)器(qi)接收到目標(biao)遙(yao)控(kong)器(qi)的(de)(de)第(di)一(yi)(yi)(yi)紅(hong)(hong)(hong)外(wai)信號(hao),確定(ding)所(suo)(suo)(suo)述第(di)一(yi)(yi)(yi)紅(hong)(hong)(hong)外(wai)信號(hao)的(de)(de)紅(hong)(hong)(hong)外(wai)協(xie)議參數(shu),確定(ding)所(suo)(suo)(suo)述第(di)一(yi)(yi)(yi)紅(hong)(hong)(hong)外(wai)信號(hao)的(de)(de)第(di)一(yi)(yi)(yi)初步(bu)時(shi)序(xu)數(shu)據;所(suo)(suo)(suo)述學習(xi)(xi)(xi)遙(yao)控(kong)器(qi)已進入學習(xi)(xi)(xi)模式;所(suo)(suo)(suo)述第(di)一(yi)(yi)(yi)紅(hong)(hong)(hong)外(wai)信號(hao)為所(suo)(suo)(suo)述第(di)一(yi)(yi)(yi)被學習(xi)(xi)(xi)按(an)(an)鍵的(de)(de)紅(hong)(hong)(hong)外(wai)信號(hao);所(suo)(suo)(suo)述第(di)一(yi)(yi)(yi)被學習(xi)(xi)(xi)按(an)(an)鍵為在所(suo)(suo)(suo)述按(an)(an)鍵學習(xi)(xi)(xi)列表中的(de)(de)第(di)一(yi)(yi)(yi)個在目標(biao)遙(yao)控(kong)器(qi)上(shang)存在的(de)(de)按(an)(an)鍵;所(suo)(suo)(suo)述紅(hong)(hong)(hong)外(wai)協(xie)議參數(shu)包括(kuo)引導碼、紅(hong)(hong)(hong)外(wai)技(ji)術(shu)編(bian)碼方式以及紅(hong)(hong)(hong)外(wai)技(ji)術(shu)編(bian)碼時(shi)長;
5、對所述第一(yi)初步時(shi)序數據(ju)進行(xing)預處(chu)理(li),得(de)到第一(yi)目(mu)標時(shi)序數據(ju);
6、根(gen)據所(suo)述第(di)一(yi)紅(hong)(hong)外信號的(de)(de)紅(hong)(hong)外協(xie)議(yi)(yi)參數(shu)、所(suo)述第(di)一(yi)目標時(shi)序數(shu)據以(yi)及(ji)所(suo)述學習(xi)(xi)遙(yao)(yao)控器(qi)上的(de)(de)預存遙(yao)(yao)控器(qi)庫構建第(di)一(yi)位(wei)圖,根(gen)據所(suo)述第(di)一(yi)紅(hong)(hong)外信號的(de)(de)紅(hong)(hong)外協(xie)議(yi)(yi)參數(shu)對所(suo)述第(di)一(yi)目標時(shi)序數(shu)據進行解碼得到第(di)一(yi)鍵(jian)值;所(suo)述第(di)一(yi)位(wei)圖有n位(wei)且各位(wei)上的(de)(de)值均為(wei)1;所(suo)述第(di)一(yi)鍵(jian)值與(yu)所(suo)述第(di)一(yi)被學習(xi)(xi)按鍵(jian)具有一(yi)一(yi)對應關系;n為(wei)正整數(shu);
7、基于所述(shu)第(di)(di)一(yi)鍵(jian)值(zhi)與所述(shu)第(di)(di)一(yi)被學習(xi)按鍵(jian)的一(yi)一(yi)對應關(guan)系(xi)對所述(shu)第(di)(di)一(yi)位(wei)(wei)圖(tu)進行置零,得到第(di)(di)一(yi)置位(wei)(wei)位(wei)(wei)圖(tu);
8、根(gen)據(ju)所述第一置位位圖(tu)中1值的(de)數(shu)量確定所述目標遙控(kong)器的(de)紅(hong)外協議參數(shu)和所有(you)(you)按(an)鍵-鍵值對(dui)應關系,將所述目標遙控(kong)器的(de)紅(hong)外協議參數(shu)和所有(you)(you)按(an)鍵-鍵值對(dui)應關系配(pei)置在所述學習(xi)遙控(kong)器上。
9、在一種可能(neng)的實(shi)現方式(shi)中,所述(shu)對所述(shu)第一初步時序數據進行預處理,得(de)到(dao)第一目標時序數據,包括:
10、采用聚類算法將所述第(di)一初步時序(xu)數據(ju)(ju)劃分(fen)(fen)為多(duo)組分(fen)(fen)組時序(xu)數據(ju)(ju);
11、計算各個分組時序數(shu)據(ju)的(de)取(qu)整平(ping)均值;所述取(qu)整平(ping)均值與所述第一初步時序數(shu)據(ju)中用于計算該取(qu)整平(ping)均值的(de)數(shu)據(ju)均具有對應關系;
12、從所述學習遙控(kong)器上的標準參數庫中查(cha)找所述取整平均值對應的第一浮動范圍(wei),以及所述引導(dao)碼對應的第二浮動范圍(wei);
13、若(ruo)所(suo)述(shu)(shu)標(biao)準參(can)數(shu)庫中存(cun)在(zai)所(suo)述(shu)(shu)取整(zheng)平(ping)(ping)(ping)均(jun)值的所(suo)述(shu)(shu)第一(yi)(yi)(yi)浮(fu)動范(fan)圍(wei),將(jiang)(jiang)所(suo)述(shu)(shu)取整(zheng)平(ping)(ping)(ping)均(jun)值與(yu)所(suo)述(shu)(shu)第一(yi)(yi)(yi)浮(fu)動范(fan)圍(wei)的中間值對齊得到目標(biao)值;若(ruo)所(suo)述(shu)(shu)標(biao)準參(can)數(shu)庫中不存(cun)在(zai)所(suo)述(shu)(shu)取整(zheng)平(ping)(ping)(ping)均(jun)值的所(suo)述(shu)(shu)第一(yi)(yi)(yi)浮(fu)動范(fan)圍(wei),將(jiang)(jiang)所(suo)述(shu)(shu)取整(zheng)平(ping)(ping)(ping)均(jun)值作為(wei)目標(biao)值;所(suo)述(shu)(shu)目標(biao)值與(yu)所(suo)述(shu)(shu)取整(zheng)平(ping)(ping)(ping)均(jun)值具有一(yi)(yi)(yi)一(yi)(yi)(yi)對應關系;
14、基于(yu)所(suo)(suo)述(shu)目(mu)標值(zhi)與所(suo)(suo)述(shu)取(qu)整平均(jun)值(zhi)之間的一(yi)(yi)(yi)(yi)一(yi)(yi)(yi)(yi)對應(ying)關(guan)系(xi)和所(suo)(suo)述(shu)取(qu)整平均(jun)值(zhi)與所(suo)(suo)述(shu)第一(yi)(yi)(yi)(yi)初步時(shi)序(xu)數(shu)據(ju)中的數(shu)據(ju)的對應(ying)關(guan)系(xi),將所(suo)(suo)述(shu)第一(yi)(yi)(yi)(yi)初步時(shi)序(xu)數(shu)據(ju)中的數(shu)據(ju)一(yi)(yi)(yi)(yi)一(yi)(yi)(yi)(yi)替換為(wei)與之具有對應(ying)關(guan)系(xi)的所(suo)(suo)述(shu)目(mu)標值(zhi),并將所(suo)(suo)述(shu)引導碼替換為(wei)所(suo)(suo)述(shu)第二浮動范(fan)圍的中間值(zhi),得到(dao)所(suo)(suo)述(shu)第一(yi)(yi)(yi)(yi)目(mu)標時(shi)序(xu)數(shu)據(ju)。
15、在一(yi)種(zhong)可(ke)能的實現方式中,所述按鍵學習(xi)列表的構建包(bao)括(kuo):
16、選取若干個(ge)遙控器;
17、從所(suo)(suo)述(shu)(shu)若(ruo)干個(ge)(ge)遙控(kong)器中選(xuan)取m個(ge)(ge)被學(xue)習(xi)按(an)(an)鍵(jian)(jian)(jian)和所(suo)(suo)述(shu)(shu)m個(ge)(ge)被學(xue)習(xi)按(an)(an)鍵(jian)(jian)(jian)的(de)鍵(jian)(jian)(jian)值(zhi),將所(suo)(suo)述(shu)(shu)m個(ge)(ge)被學(xue)習(xi)按(an)(an)鍵(jian)(jian)(jian)放入候選(xuan)列表中;所(suo)(suo)述(shu)(shu)m個(ge)(ge)被學(xue)習(xi)按(an)(an)鍵(jian)(jian)(jian)為所(suo)(suo)述(shu)(shu)若(ruo)干個(ge)(ge)遙控(kong)器都具備的(de)按(an)(an)鍵(jian)(jian)(jian);各(ge)個(ge)(ge)被學(xue)習(xi)按(an)(an)鍵(jian)(jian)(jian)都具有多個(ge)(ge)相同(tong)鍵(jian)(jian)(jian)值(zhi)和/或不相同(tong)鍵(jian)(jian)(jian)值(zhi),各(ge)個(ge)(ge)被學(xue)習(xi)按(an)(an)鍵(jian)(jian)(jian)的(de)鍵(jian)(jian)(jian)值(zhi)數量(liang)與遙控(kong)器數量(liang)相等;m為正整數;
18、將被學習(xi)按鍵的(de)所有鍵值(zhi)中可(ke)以確(que)定唯(wei)一遙(yao)控(kong)器的(de)鍵值(zhi)作(zuo)為(wei)唯(wei)一鍵值(zhi);
19、統(tong)計各個被學(xue)(xue)(xue)習(xi)(xi)按(an)鍵(jian)(jian)(jian)的(de)(de)唯(wei)一(yi)鍵(jian)(jian)(jian)值的(de)(de)數(shu)(shu)(shu)量,將(jiang)唯(wei)一(yi)鍵(jian)(jian)(jian)值的(de)(de)數(shu)(shu)(shu)量符合(he)數(shu)(shu)(shu)量要求的(de)(de)被學(xue)(xue)(xue)習(xi)(xi)按(an)鍵(jian)(jian)(jian)加入到所述按(an)鍵(jian)(jian)(jian)學(xue)(xue)(xue)習(xi)(xi)列表中作為所述按(an)鍵(jian)(jian)(jian)學(xue)(xue)(xue)習(xi)(xi)列表的(de)(de)第一(yi)按(an)鍵(jian)(jian)(jian),并從所述候(hou)選(xuan)列表中刪除(chu)該被學(xue)(xue)(xue)習(xi)(xi)按(an)鍵(jian)(jian)(jian),刪除(chu)所述唯(wei)一(yi)鍵(jian)(jian)(jian)值可以確定的(de)(de)唯(wei)一(yi)遙控器(qi);加入到所述按(an)鍵(jian)(jian)(jian)學(xue)(xue)(xue)習(xi)(xi)列表中被學(xue)(xue)(xue)習(xi)(xi)按(an)鍵(jian)(jian)(jian)不再稱之為被學(xue)(xue)(xue)習(xi)(xi)按(an)鍵(jian)(jian)(jian);
20、將所(suo)述候選(xuan)列表(biao)中的剩余(yu)被(bei)學(xue)習按鍵(jian)逐一與所(suo)述按鍵(jian)學(xue)習列表(biao)中的按鍵(jian)構成(cheng)候選(xuan)序列;
21、查詢候選序列中(zhong)的所有按(an)鍵是否存在可以從剩余未刪除的遙(yao)控器(qi)中(zhong)確定(ding)唯一遙(yao)控器(qi)的一組(zu)(zu)鍵值(zhi),將(jiang)這組(zu)(zu)鍵值(zhi)作為(wei)唯一鍵值(zhi)組(zu)(zu);
22、統(tong)計各(ge)個候選序(xu)列(lie)中(zhong)唯一鍵值組的(de)數量(liang),將唯一鍵值組的(de)數量(liang)符合數量(liang)要求(qiu)的(de)候選序(xu)列(lie)中(zhong)的(de)被學習(xi)按(an)(an)(an)鍵加入到所(suo)(suo)述(shu)按(an)(an)(an)鍵學習(xi)列(lie)表(biao)中(zhong)作為所(suo)(suo)述(shu)按(an)(an)(an)鍵學習(xi)列(lie)表(biao)的(de)第(di)二按(an)(an)(an)鍵,并(bing)從(cong)所(suo)(suo)述(shu)候選列(lie)表(biao)中(zhong)刪(shan)除該被學習(xi)按(an)(an)(an)鍵,刪(shan)除所(suo)(suo)述(shu)第(di)一按(an)(an)(an)鍵和第(di)二按(an)(an)(an)鍵可(ke)以確(que)定的(de)唯一遙控器(qi);
23、不(bu)斷(duan)重復上(shang)述(shu)構成候選序列(lie)以及后續(xu)步(bu)驟直至(zhi)所(suo)述(shu)候選列(lie)表為空;
24、其中,當所(suo)述(shu)候選列表(biao)(biao)中只存在一(yi)(yi)個被(bei)學習(xi)(xi)按(an)鍵時直接將該被(bei)學習(xi)(xi)按(an)鍵加入到所(suo)述(shu)按(an)鍵學習(xi)(xi)列表(biao)(biao)中作為(wei)所(suo)述(shu)按(an)鍵學習(xi)(xi)列表(biao)(biao)的第x按(an)鍵,并從所(suo)述(shu)候選列表(biao)(biao)刪(shan)除該被(bei)學習(xi)(xi)按(an)鍵;第x按(an)鍵為(wei)所(suo)述(shu)按(an)鍵學習(xi)(xi)列表(biao)(biao)中的最后(hou)一(yi)(yi)個按(an)鍵,x為(wei)正整(zheng)數。
25、在(zai)一種可能的(de)實(shi)現方式中,所(suo)述根據所(suo)述第一置位位圖中1值的(de)數量確定所(suo)述目標遙控(kong)器的(de)紅外協議參數和(he)所(suo)有(you)按鍵-鍵值對(dui)應(ying)關系,包括:
26、當所述第一(yi)置位(wei)位(wei)圖中1值的(de)數(shu)量等于1時,獲取(qu)該位(wei)置對應的(de)該遙控器的(de)紅(hong)(hong)外協(xie)議(yi)參數(shu)和(he)所有(you)按鍵(jian)-鍵(jian)值對應關系作為所述目標遙控器的(de)紅(hong)(hong)外協(xie)議(yi)參數(shu)和(he)所有(you)按鍵(jian)-鍵(jian)值對應關系;
27、當(dang)所(suo)(suo)述第(di)一置(zhi)位(wei)位(wei)圖中(zhong)1值的(de)數量大于1時,確定所(suo)(suo)述按鍵(jian)學(xue)習(xi)列表中(zhong)的(de)第(di)二(er)被學(xue)習(xi)按鍵(jian),根據(ju)所(suo)(suo)述第(di)二(er)被學(xue)習(xi)按鍵(jian)確定所(suo)(suo)述目標遙(yao)(yao)(yao)控器的(de)紅外協議參數和(he)所(suo)(suo)有按鍵(jian)-鍵(jian)值對應關系(xi),并將第(di)二(er)被學(xue)習(xi)按鍵(jian)與其鍵(jian)值的(de)對應關系(xi)記錄(lu)到所(suo)(suo)述學(xue)習(xi)遙(yao)(yao)(yao)控器的(de)存儲器中(zhong);所(suo)(suo)述第(di)二(er)被學(xue)習(xi)按鍵(jian)為在(zai)所(suo)(suo)述按鍵(jian)學(xue)習(xi)列表中(zhong)的(de)第(di)二(er)個在(zai)目標遙(yao)(yao)(yao)控器上(shang)存在(zai)的(de)按鍵(jian)。
28、在一種可(ke)能的(de)實現方式中,所述(shu)(shu)根(gen)據(ju)所述(shu)(shu)第二被學習按鍵(jian)確(que)定(ding)所述(shu)(shu)目標(biao)遙控器的(de)紅外協(xie)議(yi)參數和所有(you)按鍵(jian)-鍵(jian)值對(dui)應關系,包(bao)括:
29、響應于所(suo)(suo)(suo)述(shu)學(xue)習(xi)遙控(kong)器接(jie)收到目標遙控(kong)器的(de)第(di)二(er)紅(hong)外(wai)(wai)信(xin)(xin)號(hao),確定(ding)所(suo)(suo)(suo)述(shu)第(di)二(er)紅(hong)外(wai)(wai)信(xin)(xin)號(hao)的(de)紅(hong)外(wai)(wai)協(xie)議(yi)參數(shu),確定(ding)所(suo)(suo)(suo)述(shu)第(di)二(er)紅(hong)外(wai)(wai)信(xin)(xin)號(hao)的(de)第(di)二(er)初步時(shi)序數(shu)據(ju);所(suo)(suo)(suo)述(shu)第(di)二(er)紅(hong)外(wai)(wai)信(xin)(xin)號(hao)是所(suo)(suo)(suo)述(shu)第(di)二(er)被學(xue)習(xi)按鍵的(de)紅(hong)外(wai)(wai)信(xin)(xin)號(hao);
30、對所(suo)(suo)述第(di)二(er)初(chu)步(bu)時序數據(ju)進(jin)行(xing)所(suo)(suo)述預處理,得到第(di)二(er)目標時序數據(ju);
31、根據所(suo)述(shu)(shu)第二(er)(er)紅外信號(hao)的紅外協議參數(shu)對(dui)所(suo)述(shu)(shu)第二(er)(er)目標(biao)時序數(shu)據進行解碼(ma)得到第二(er)(er)鍵值;所(suo)述(shu)(shu)第二(er)(er)鍵值與所(suo)述(shu)(shu)第二(er)(er)被(bei)學習按鍵具(ju)有一(yi)一(yi)對(dui)應關系(xi);
32、基于(yu)所述(shu)第(di)二鍵值(zhi)對(dui)所述(shu)第(di)一置位位圖進行置零(ling),得到(dao)第(di)二置位位圖;
33、當所(suo)述第二置位(wei)位(wei)圖中1值(zhi)的(de)數量等(deng)于1時,獲取該位(wei)置對應(ying)的(de)該遙控(kong)器的(de)紅外協(xie)議參(can)(can)數和(he)(he)所(suo)有按鍵-鍵值(zhi)對應(ying)關(guan)(guan)系作為所(suo)述目標(biao)遙控(kong)器的(de)紅外協(xie)議參(can)(can)數和(he)(he)所(suo)有按鍵-鍵值(zhi)對應(ying)關(guan)(guan)系;
34、當(dang)所述第(di)二置(zhi)位(wei)位(wei)圖中1值的數(shu)量(liang)(liang)大于1時,從所述按(an)鍵(jian)(jian)(jian)學習(xi)列表中確(que)定新(xin)的被學習(xi)按(an)鍵(jian)(jian)(jian)重(zhong)復(fu)以(yi)上步(bu)驟直至新(xin)的置(zhi)位(wei)位(wei)圖中1值的數(shu)量(liang)(liang)等(deng)于1;在選取新(xin)的被學習(xi)按(an)鍵(jian)(jian)(jian)并重(zhong)復(fu)以(yi)上步(bu)驟這一(yi)個(ge)過程中,若某一(yi)個(ge)基于新(xin)的被學習(xi)按(an)鍵(jian)(jian)(jian)置(zhi)零后的置(zhi)位(wei)位(wei)圖中1值的數(shu)量(liang)(liang)等(deng)于0則(ze)控(kong)制所述學習(xi)遙控(kong)器進(jin)入全鍵(jian)(jian)(jian)學習(xi)模(mo)式。
35、在(zai)一種(zhong)可(ke)能的實現(xian)方(fang)式中(zhong),其(qi)特(te)征在(zai)于,
36、當置位(wei)位(wei)圖中1值的數(shu)量等于0時,控制所述學(xue)習遙(yao)控器進入全鍵學(xue)習模式(shi)。
37、在一種可(ke)能的實現方式中,所述全鍵學習模式包括:
38、提示用戶按下所述目標(biao)遙控器未學習的(de)被學習按鍵;
39、當(dang)所(suo)(suo)述(shu)學習(xi)遙控器接收所(suo)(suo)述(shu)目標(biao)遙控器發出的(de)(de)所(suo)(suo)述(shu)未學習(xi)的(de)(de)被學習(xi)按(an)鍵(jian)的(de)(de)紅外(wai)(wai)信號時,確(que)定(ding)所(suo)(suo)述(shu)未學習(xi)的(de)(de)被學習(xi)按(an)鍵(jian)的(de)(de)紅外(wai)(wai)信號的(de)(de)紅外(wai)(wai)協議參(can)數,確(que)定(ding)所(suo)(suo)述(shu)未學習(xi)的(de)(de)被學習(xi)按(an)鍵(jian)的(de)(de)紅外(wai)(wai)信號的(de)(de)第三(san)初步時序數據(ju);
40、對所述(shu)第三初步時序(xu)數據(ju)進行(xing)所述(shu)預處理(li)得到第三目標(biao)時序(xu)數據(ju);
41、根據(ju)被(bei)學(xue)習按鍵的(de)(de)(de)紅外信號的(de)(de)(de)紅外協(xie)議參數(shu)從所(suo)(suo)述預存遙(yao)控器(qi)庫中查(cha)找(zhao)所(suo)(suo)述第(di)(di)(di)三(san)目標時(shi)序數(shu)據(ju)的(de)(de)(de)按鍵-鍵值(zhi)對(dui)應關(guan)系,將所(suo)(suo)述第(di)(di)(di)三(san)目標時(shi)序數(shu)據(ju)的(de)(de)(de)按鍵-鍵值(zhi)對(dui)應關(guan)系配置到所(suo)(suo)述學(xue)習遙(yao)控器(qi)上,并將所(suo)(suo)述第(di)(di)(di)三(san)目標時(shi)序數(shu)據(ju)的(de)(de)(de)按鍵-鍵值(zhi)對(dui)應關(guan)系記(ji)錄到所(suo)(suo)述學(xue)習遙(yao)控器(qi)的(de)(de)(de)存儲器(qi)中;
42、重復上述(shu)步驟直至所述(shu)目標(biao)遙控(kong)器(qi)的按鍵全部被所述(shu)學習遙控(kong)器(qi)學習。
43、在一(yi)種(zhong)可能的實現方式中,所述根據(ju)所述第(di)一(yi)紅(hong)外信號(hao)的紅(hong)外協議參(can)數、所述第(di)一(yi)目標時序數據(ju)以及所述學(xue)習(xi)遙(yao)控(kong)器上的預存遙(yao)控(kong)器庫構(gou)建第(di)一(yi)位圖,包括:
44、根據所(suo)(suo)述第(di)(di)一紅外信號的(de)紅外協議參數確定所(suo)(suo)述第(di)(di)一目(mu)標(biao)時序數據在所(suo)(suo)述預存遙控器庫中的(de)分組,作為目(mu)標(biao)分組;
45、查詢所述目標分(fen)組中(zhong)遙控器(qi)的(de)數量(liang);
46、基于所(suo)述(shu)目標分組(zu)中遙控器的數量構建所(suo)述(shu)第一位(wei)圖;
47、其中(zhong),所述(shu)第一位(wei)圖(tu)中(zhong)的(de)(de)位(wei)數n等于所述(shu)目標分組中(zhong)遙控器的(de)(de)數量。
48、在一種可能的實現方式(shi)中,所述預存遙控器庫的構建過程,包(bao)括:
49、收集多個遙控(kong)器紅外(wai)數(shu)據(ju);所述(shu)紅外(wai)數(shu)據(ju)包括遙控(kong)器所有按鍵的紅外(wai)信號數(shu)據(ju)和紅外(wai)協議參數(shu);
50、確定各(ge)個遙控器(qi)的(de)各(ge)個按(an)鍵的(de)紅外信(xin)號(hao)數據(ju),得到多個第四(si)初步時序數據(ju);
51、對第四初(chu)步(bu)時序數據進行(xing)所述預處理,得到第四目標時序數據;
52、基于各(ge)個遙控器(qi)的紅外協議參數(shu)和各(ge)個第四(si)目(mu)標時序數(shu)據還原出各(ge)個遙控器(qi)的各(ge)個按(an)(an)鍵的鍵值,并生成按(an)(an)鍵-鍵值對應關系(xi);
53、將各個遙控器的(de)所有按鍵(jian)-鍵(jian)值(zhi)對應關(guan)系和其(qi)紅外協議參數標注(zhu)在各個遙控器上得到(dao)預存(cun)遙控器;
54、將具有相同紅外(wai)協議參(can)數(shu)的預存遙(yao)控(kong)器(qi)劃分到同一分組中,將所有分組組合成一個(ge)所述預存遙(yao)控(kong)器(qi)庫;
55、其中(zhong),所述預存(cun)遙控器庫中(zhong)各分組(zu)的(de)編(bian)號為該(gai)分組(zu)中(zhong)包含的(de)預存(cun)遙控器的(de)數量。
56、在一種可(ke)能(neng)的實現方式中,所述標準參(can)數庫(ku)的構建過(guo)程,包括:
57、收(shou)集常見遙控器的所有(you)紅(hong)外信號,并提取(qu)所有(you)紅(hong)外信號的時序(xu)數(shu)據;
58、為各個時序(xu)數據設(she)置波(bo)動(dong)百分比(bi),得(de)到多個浮(fu)動(dong)范圍;所(suo)述波(bo)動(dong)百分比(bi)根據各個紅外信(xin)號(hao)的(de)時序(xu)數據的(de)均(jun)(jun)值或標(biao)準差設(she)置;所(suo)述均(jun)(jun)值和所(suo)述標(biao)準差是通過收(shou)集常(chang)見遙控器的(de)所(suo)有紅外信(xin)號(hao),并提取它們的(de)時序(xu)數據之后計算得(de)出的(de);
59、將所有浮動范圍組合成一個所述標準參數庫(ku)。
60、相(xiang)較(jiao)于(yu)現有技術(shu),本技術(shu)具(ju)有以下(xia)有益效果:
61、本(ben)技(ji)術提供了一(yi)(yi)(yi)種遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)方(fang)法。具體地,在(zai)(zai)(zai)(zai)執(zhi)行本(ben)技(ji)術實施例(li)提供的(de)(de)(de)(de)遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)方(fang)法時(shi)(shi)(shi)(shi)(shi),首先可(ke)(ke)以(yi)在(zai)(zai)(zai)(zai)已進(jin)入學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)模式的(de)(de)(de)(de)學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)接收(shou)到(dao)目(mu)標遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)的(de)(de)(de)(de)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)紅(hong)(hong)(hong)(hong)外(wai)信號(hao)(hao)(hao)時(shi)(shi)(shi)(shi)(shi),確(que)定(ding)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)紅(hong)(hong)(hong)(hong)外(wai)信號(hao)(hao)(hao)的(de)(de)(de)(de)紅(hong)(hong)(hong)(hong)外(wai)協議(yi)(yi)(yi)參(can)(can)數(shu)(shu)和(he)(he)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)初(chu)步時(shi)(shi)(shi)(shi)(shi)序(xu)數(shu)(shu)據(ju)(ju),其中(zhong),第(di)(di)(di)(di)(di)一(yi)(yi)(yi)紅(hong)(hong)(hong)(hong)外(wai)信號(hao)(hao)(hao)為(wei)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)被學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)按(an)鍵(jian)的(de)(de)(de)(de)紅(hong)(hong)(hong)(hong)外(wai)信號(hao)(hao)(hao),第(di)(di)(di)(di)(di)一(yi)(yi)(yi)被學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)按(an)鍵(jian)為(wei)在(zai)(zai)(zai)(zai)按(an)鍵(jian)學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)列表中(zhong)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)個在(zai)(zai)(zai)(zai)目(mu)標遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)上存(cun)在(zai)(zai)(zai)(zai)的(de)(de)(de)(de)按(an)鍵(jian)。接著(zhu),對(dui)(dui)(dui)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)初(chu)步時(shi)(shi)(shi)(shi)(shi)序(xu)數(shu)(shu)據(ju)(ju)進(jin)行預(yu)處理(li)得到(dao)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)目(mu)標時(shi)(shi)(shi)(shi)(shi)序(xu)數(shu)(shu)據(ju)(ju),并紅(hong)(hong)(hong)(hong)外(wai)信號(hao)(hao)(hao)的(de)(de)(de)(de)紅(hong)(hong)(hong)(hong)外(wai)協議(yi)(yi)(yi)參(can)(can)數(shu)(shu)、目(mu)標時(shi)(shi)(shi)(shi)(shi)序(xu)數(shu)(shu)據(ju)(ju)和(he)(he)學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)上的(de)(de)(de)(de)預(yu)存(cun)遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)庫(ku)構建第(di)(di)(di)(di)(di)一(yi)(yi)(yi)位(wei)(wei)圖,根據(ju)(ju)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)紅(hong)(hong)(hong)(hong)外(wai)信號(hao)(hao)(hao)的(de)(de)(de)(de)紅(hong)(hong)(hong)(hong)外(wai)協議(yi)(yi)(yi)參(can)(can)數(shu)(shu)解(jie)碼(ma)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)目(mu)標時(shi)(shi)(shi)(shi)(shi)序(xu)數(shu)(shu)據(ju)(ju)得到(dao)對(dui)(dui)(dui)應(ying)的(de)(de)(de)(de)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)鍵(jian)值(zhi)(zhi)(zhi),第(di)(di)(di)(di)(di)一(yi)(yi)(yi)位(wei)(wei)圖有(you)n位(wei)(wei)且各位(wei)(wei)上的(de)(de)(de)(de)值(zhi)(zhi)(zhi)均為(wei)1。然后(hou)基于第(di)(di)(di)(di)(di)一(yi)(yi)(yi)鍵(jian)值(zhi)(zhi)(zhi)與第(di)(di)(di)(di)(di)一(yi)(yi)(yi)被學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)按(an)鍵(jian)的(de)(de)(de)(de)一(yi)(yi)(yi)一(yi)(yi)(yi)對(dui)(dui)(dui)應(ying)關(guan)系(xi)對(dui)(dui)(dui)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)位(wei)(wei)圖進(jin)行置零,得到(dao)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)置位(wei)(wei)位(wei)(wei)圖。再根據(ju)(ju)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)置位(wei)(wei)位(wei)(wei)圖中(zhong)1值(zhi)(zhi)(zhi)的(de)(de)(de)(de)數(shu)(shu)量確(que)定(ding)目(mu)標遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)的(de)(de)(de)(de)紅(hong)(hong)(hong)(hong)外(wai)協議(yi)(yi)(yi)參(can)(can)數(shu)(shu)和(he)(he)所(suo)(suo)有(you)按(an)鍵(jian)-鍵(jian)值(zhi)(zhi)(zhi)對(dui)(dui)(dui)應(ying)關(guan)系(xi),將(jiang)(jiang)目(mu)標遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)的(de)(de)(de)(de)紅(hong)(hong)(hong)(hong)外(wai)協議(yi)(yi)(yi)參(can)(can)數(shu)(shu)和(he)(he)所(suo)(suo)有(you)按(an)鍵(jian)-鍵(jian)值(zhi)(zhi)(zhi)對(dui)(dui)(dui)應(ying)關(guan)系(xi)配置在(zai)(zai)(zai)(zai)學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)上。本(ben)技(ji)術在(zai)(zai)(zai)(zai)學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)接收(shou)到(dao)目(mu)標遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)的(de)(de)(de)(de)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)紅(hong)(hong)(hong)(hong)外(wai)信號(hao)(hao)(hao)后(hou),通過對(dui)(dui)(dui)第(di)(di)(di)(di)(di)一(yi)(yi)(yi)初(chu)步時(shi)(shi)(shi)(shi)(shi)序(xu)數(shu)(shu)據(ju)(ju)進(jin)行預(yu)處理(li),可(ke)(ke)以(yi)使接收(shou)到(dao)的(de)(de)(de)(de)信號(hao)(hao)(hao)更加(jia)穩定(ding)可(ke)(ke)靠。這(zhe)樣可(ke)(ke)以(yi)避免由于新(xin)遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)接收(shou)信號(hao)(hao)(hao)與原有(you)遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)發送信號(hao)(hao)(hao)之間的(de)(de)(de)(de)誤差導致操作錯誤或功(gong)能(neng)失效的(de)(de)(de)(de)問(wen)題。同時(shi)(shi)(shi)(shi)(shi),基于目(mu)標遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)的(de)(de)(de)(de)紅(hong)(hong)(hong)(hong)外(wai)協議(yi)(yi)(yi)參(can)(can)數(shu)(shu)和(he)(he)所(suo)(suo)有(you)按(an)鍵(jian)-鍵(jian)值(zhi)(zhi)(zhi)對(dui)(dui)(dui)應(ying)關(guan)系(xi),可(ke)(ke)以(yi)直接將(jiang)(jiang)目(mu)標遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)的(de)(de)(de)(de)紅(hong)(hong)(hong)(hong)外(wai)協議(yi)(yi)(yi)參(can)(can)數(shu)(shu)和(he)(he)所(suo)(suo)有(you)按(an)鍵(jian)-鍵(jian)值(zhi)(zhi)(zhi)對(dui)(dui)(dui)應(ying)關(guan)系(xi)配置在(zai)(zai)(zai)(zai)學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)遙(yao)(yao)(yao)(yao)控(kong)(kong)(kong)(kong)(kong)(kong)(kong)器(qi)(qi)(qi)(qi)(qi)(qi)上,從而實現快速(su)學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)和(he)(he)方(fang)便使用,無需逐個按(an)鍵(jian)進(jin)行學(xue)(xue)(xue)(xue)習(xi)(xi)(xi)。