CN103246605A - Method and system for collocating remote controller key values based on xml (extensive markup language) - Google Patents
Method and system for collocating remote controller key values based on xml (extensive markup language) Download PDFInfo
- Publication number
- CN103246605A CN103246605A CN2013101225224A CN201310122522A CN103246605A CN 103246605 A CN103246605 A CN 103246605A CN 2013101225224 A CN2013101225224 A CN 2013101225224A CN 201310122522 A CN201310122522 A CN 201310122522A CN 103246605 A CN103246605 A CN 103246605A
- Authority
- CN
- China
- Prior art keywords
- key assignments
- telepilot
- key
- xml document
- xml
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Selective Calling Equipment (AREA)
Abstract
An embodiment of the invention discloses a method for collocating remote controller key values based on xml (extensive markup language). The method includes: reading pre-stored xml files, analyzing the read xml files to acquire key value information corresponding to each key on a remote controller, and collocating systematic remote controller key values according to analyzed key value information corresponding to each key. The embodiment of the invention further discloses a system for collocating remote controller key values based on xml. The method and the system for collocating remote controller key values based on xml have the advantages that after key functions are tested by researchers and testers, and the corresponding functions are found to be incorrect, only the xml files need to be modified and compiling of software is not required.
Description
Technical field
The present invention relates to a kind of digital TV field, relate in particular to a kind of telepilot key assignments collocation method and system based on xml.
Background technology
Existing test procedure comprises test code and the corresponding key parameters of telepilot, and the corresponding key assignments of telepilot is directly write extremely in test procedure, revises key assignments if desired, needs to recompilate software.
To the disposal route of wrong key assignments, as shown in Figure 1, behind the system initialization, from testing software, directly obtain the telepilot key assignments now, obtain key command again, judge whether coupling, if do not match, need remodify software and compile.
If the telepilot key assignments is made mistakes in process of production, software or telepilot will remodify so, and the telepilot key assignments is managed cumbersome.And each client to telepilot require different, corresponding function also different, all need to remodify and compile test procedure at every turn, be unfavorable for research and development and the test.
Summary of the invention
Embodiment of the invention technical matters to be solved is, a kind of method and system that dispose based on the telepilot key assignments of xml are provided.Can in the process that system starts, read the xml document that prestores, obtain the corresponding key assignments of its telepilot by xml document analysis program, and apply it in this system.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of telepilot key assignments collocation method based on xml, comprising:
Read the xml document that prestores;
Resolve the described xml document that reads, obtain the corresponding key assignments information of each key of telepilot;
The corresponding key assignments information configuration system of each key of telepilot telepilot key assignments according to described parsing.
Further, the described xml document that prestores that reads also comprises before:
The corresponding key assignments information of storage each key of telepilot in the xml document.
Further, also comprise after the described corresponding key assignments information configuration system of each key of the telepilot telepilot key assignments according to described parsing:
Configuration to described system remote-controller key assignments is tested;
Further, described configuration to described system remote-controller key assignments comprises after testing:
According to described test result the key assignments information in the described xml document is revised;
According to the key assignments information configuration system telepilot key assignments in the described revised xml document.
Further, described xml document comprises the key assignments information of each key correspondence of remote controller models, platform, coded format and telepilot.
Accordingly, the embodiment of the invention also provides a kind of telepilot key assignments configuration-system based on xml, comprising:
Read module is used for reading the xml document that prestores;
Parsing module is used for resolving the described xml document that reads, and obtains the corresponding key assignments information of each key of telepilot;
First configuration module is used for the corresponding key assignments information configuration system of each key of the telepilot telepilot key assignments according to described parsing.
Further, also comprise:
Memory module is used in the corresponding key assignments information of xml document storage each key of telepilot.
Further, also comprise:
Test module is used for the configuration of described system remote-controller key assignments is tested.
Further, also comprise:
The revision module is used for according to described test result the key assignments information of described xml document being revised;
Second configuration module is used for configuration according to the key assignments information configuration system telepilot key assignments of described revised xml document.
Further, described xml document comprises the key assignments information of each key correspondence of remote controller models, platform, coded format and telepilot.
The present invention is by providing a kind of telepilot key assignments collocation method and system based on xml, system reads the xml document that prestores in the process that starts, obtain the corresponding key assignments of telepilot by xml document analysis program, and apply it in this system, if the key assignments in the key assignments of this telepilot and the system does not match, so only need to revise the xml document, do not need to recompilate new software, improved the efficient of test.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow figure that wrong key assignments appears in telepilot in the prior art;
The first embodiment process flow diagram of a kind of telepilot key assignments collocation method based on xml of Fig. 2 the present invention;
Fig. 3 is the second embodiment process flow diagram of a kind of telepilot key assignments collocation method based on xml of the present invention;
Fig. 4 is the first embodiment block diagram of a kind of telepilot key assignments configuration-system based on xml of the present invention;
Fig. 5 is the second embodiment block diagram of a kind of telepilot key assignments configuration-system based on xml of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The present invention can be applicable on the equipment such as intelligent television, Digital Television, set-top box and Web TV, only is that example describes below with the set-top box.
The present invention is based on xml telepilot key assignments collocation method the first embodiment flow process as shown in Figure 2:
Step 101: read the xml document that prestores.In the specific implementation, can in system in set-top box, increase a subregion, be used for depositing this xml document, during initialize routine, according to the xml address of document, begin to load the xml document, read the xml document that prestores.
Step 102: resolve the described xml document that reads, obtain the corresponding key assignments information of each key of telepilot.Call the software interface that the xml form writes and test used document, obtain the corresponding key assignments information of each key of telepilot routine file on probation, this test case file is carried out xml resolve, obtain the corresponding key assignments information of each key of telepilot in proper order according to the test case file form after resolving.
Step 103: according to the corresponding key assignments information configuration system of each key of the telepilot telepilot key assignments of described parsing.To resolve that the corresponding key parameters input test of current each key of test interface corresponding remote controller interface function is configured in the xml document of back.
Technological means that the embodiment of the invention adopts reads this xml document with system of the present invention in the process that starts, obtain the corresponding key assignments of its telepilot by xml document analysis program, and apply it in this system.
The telepilot key assignments that the present invention is based on xml revise and the second embodiment flow process of adjustment method as shown in Figure 3, this embodiment shows the process that the corresponding key assignments of its telepilot is configured of obtaining.
Step 201: the corresponding key assignments information of storage each key of telepilot in the xml document.Xml is as data memory format, has been penetrated into Internet and other every field, and it can provide message exchange, extraction, processing, and the inquiry of data.And the xml document can well solve the data representation problem in some fields as the means of storage data.Utilize data binding can create and safeguard the xml document easily simultaneously.The general-purpose platform that the xmlL document will become exchanges data and share.Present embodiment is stored data with xml, then this xml file is put into the subregion of appointment, and wherein, the xml document comprises the key assignments information of each key correspondence of remote controller models, platform, coded format and telepilot.
Step 202: read the xml document that prestores.In the specific implementation, can when initialize routine, according to the xml address of document, begin to load the xml document, read the xml document that prestores.
Step 203: resolve the described xml document that reads, obtain the corresponding key assignments information of each key of telepilot.Identical with the S102 among the preamble embodiment, repeat no more in the present embodiment.
Step 204: according to the corresponding key assignments information configuration system of each key of the telepilot telepilot key assignments of described parsing.Identical with the S103 among the preamble embodiment, repeat no more in the present embodiment.
Step 205: the configuration to described system remote-controller key assignments is tested.According to the test code after the compiling configuration of described system remote-controller key assignments is tested, analyzed the generation final testing result, and with current test result output.
Step 206: the key assignments information in the described xml document is revised according to described test result.Test result according to output draws the corresponding key parameters of each key of rational telepilot, uses the corresponding key parameters of these each keys of rational telepilot that the key assignments information in the described xml document is revised.
Step 207: according to the key assignments information configuration system telepilot key assignments in the described revised xml document.The corresponding key parameters input test of each key of corresponding remote controller interface function in the revised xml document is configured.
Store data with xml, then this xml file is put into the subregion of appointment, software reads data after starting, and carries out telepilot key assignments coupling, can carry out key assignments very easily and revise and test telepilot.And do not need to recompilate software after the telepilot key assignments mistake, and only needing this xml file modification, programming then can be easy to revise easily the telepilot key assignments to the subregion of appointment then.Can deal with problems very easily when mistake appears in telepilot, also the unprofessional people who does software goes to revise simultaneously, needs only understanding and can be familiar with numeral, the meeting programming.
Corresponding with the embodiment of the telepilot key assignments collocation method that the present invention is based on xml, the present invention also provides the embodiment based on the telepilot key assignments configuration-system of xml.
The present invention is based on xml telepilot key assignments configuration-system the first embodiment block diagram as shown in Figure 4, the telepilot key assignments configuration-system based on xml in the embodiment of the invention can be implemented on intelligent television, digital TV set-top box, the Web TV, and this system comprises: read module 310, parsing module 320 and first configuration module 330.Wherein:
Read module 310 is used for reading the xml document that prestores.In concrete the enforcement, this xml file can be put into the subregion of appointment, during program initialization, read module 310 reads the xml document that prestores.
The present invention is based on xml telepilot key assignments configuration-system the second embodiment block diagram as shown in Figure 5, this system comprises: memory module 410, read module 420, parsing module 430, first configuration module 440, test module 450, revision module 460 and second configuration module 470.
Wherein, memory module 410 is used in the corresponding key assignments information of xml document storage each key of telepilot.Memory module 410 adopts the xml form that the corresponding key assignments information of each key of telepilot of testing apparatus is carried out abstractdesription, in concrete the enforcement, can increase a subregion in the system in set-top box, is used for depositing this xml document.
Read module 420 is used for reading the xml document that prestores.Read module 420 can according to the xml address of document, begin to load the xml document when initialize routine, read the xml document that prestores.
Parsing module 430 is used for resolving the described xml document that reads, and obtains the corresponding key assignments information of each key of telepilot.In concrete the enforcement, parsing module 430 can call the software interface that the xml form writes and test used document, obtain the corresponding key assignments information of each key of telepilot routine file on probation, this test case file is carried out xml resolve, obtain the corresponding key assignments information of each key of telepilot in proper order according to the test case file form after resolving.
System reads the xml document that prestores in the process that starts, obtain the corresponding key assignments of its telepilot by xml document analysis program, and apply it in this system, if the key assignments in the key assignments of this telepilot and the system does not match, so only need to revise the xml document, do not need to recompilate new software, improved the efficient of test.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosed is preferred embodiment of the present invention only, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.
Claims (10)
1. the telepilot key assignments collocation method based on xml is characterized in that, comprising:
Read the xml document that prestores;
Resolve the described xml document that reads, obtain the corresponding key assignments information of each key of telepilot;
The corresponding key assignments information configuration system of each key of telepilot telepilot key assignments according to described parsing.
2. method according to claim 1 is characterized in that, the described xml document that prestores that reads also comprises before:
The corresponding key assignments information of storage each key of telepilot in the xml document.
3. method according to claim 1 is characterized in that, also comprises after the described corresponding key assignments information configuration system of each key of the telepilot telepilot key assignments according to described parsing:
Configuration to described system remote-controller key assignments is tested.
4. method according to claim 3 is characterized in that, described configuration to described system remote-controller key assignments comprises after testing:
According to described test result the key assignments information in the described xml document is revised;
According to the key assignments information configuration system telepilot key assignments in the described revised xml document.
5. method according to claim 1 is characterized in that, described xml document comprises the key assignments information of each key correspondence of remote controller models, platform, coded format and telepilot.
6. the telepilot key assignments configuration-system based on xml is characterized in that, comprising:
Read module is used for reading the xml document that prestores;
Parsing module is used for resolving the described xml document that reads, and obtains the corresponding key assignments information of each key of telepilot;
First configuration module is used for the corresponding key assignments information configuration system of each key of the telepilot telepilot key assignments according to described parsing.
7. system according to claim 6 is characterized in that, also comprises:
Memory module is used in the corresponding key assignments information of xml document storage each key of telepilot.
8. system according to claim 6 is characterized in that, also comprises:
Test module is used for the configuration of described system remote-controller key assignments is tested.
9. system according to claim 6 is characterized in that, also comprises:
The revision module is used for according to described test result the key assignments information of described xml document being revised;
Second configuration module is used for configuration according to the key assignments information configuration system telepilot key assignments of described revised xml document.
10. system according to claim 6 is characterized in that, described xml document comprises the key assignments information of each key correspondence of remote controller models, platform, coded format and telepilot.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101225224A CN103246605A (en) | 2013-04-10 | 2013-04-10 | Method and system for collocating remote controller key values based on xml (extensive markup language) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101225224A CN103246605A (en) | 2013-04-10 | 2013-04-10 | Method and system for collocating remote controller key values based on xml (extensive markup language) |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103246605A true CN103246605A (en) | 2013-08-14 |
Family
ID=48926135
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013101225224A Pending CN103246605A (en) | 2013-04-10 | 2013-04-10 | Method and system for collocating remote controller key values based on xml (extensive markup language) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103246605A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686356A (en) * | 2013-12-10 | 2014-03-26 | 深圳Tcl新技术有限公司 | Method and device for adjusting key values |
CN103777966A (en) * | 2014-02-28 | 2014-05-07 | 广州视源电子科技股份有限公司 | Method and device for extracting code information from binary file |
CN107707956A (en) * | 2017-10-18 | 2018-02-16 | 广东九联科技股份有限公司 | A kind of free collocation method of set-top box remote controller button and device |
CN108012170A (en) * | 2017-12-05 | 2018-05-08 | 晶晨半导体(上海)股份有限公司 | A kind of remote controler key assignments upgrade-system and method |
CN108040275A (en) * | 2017-12-29 | 2018-05-15 | 福州福大海矽微电子有限公司 | A kind of method and terminal of remote controller operation web browser |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101639973A (en) * | 2008-07-30 | 2010-02-03 | Tcl集团股份有限公司 | Management method for remote controller |
CN101661481A (en) * | 2008-08-29 | 2010-03-03 | 国际商业机器公司 | XML data storing method, method and device thereof for executing XML query |
CN102081537A (en) * | 2010-12-31 | 2011-06-01 | 青岛海信宽带多媒体技术有限公司 | Method for upgrading software |
-
2013
- 2013-04-10 CN CN2013101225224A patent/CN103246605A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101639973A (en) * | 2008-07-30 | 2010-02-03 | Tcl集团股份有限公司 | Management method for remote controller |
CN101661481A (en) * | 2008-08-29 | 2010-03-03 | 国际商业机器公司 | XML data storing method, method and device thereof for executing XML query |
CN102081537A (en) * | 2010-12-31 | 2011-06-01 | 青岛海信宽带多媒体技术有限公司 | Method for upgrading software |
Non-Patent Citations (2)
Title |
---|
李广强等: "基于控件和XML的可定制软件开发方案", 《计算机工程》 * |
蔡瑞等: "基于XML实现遥控器界面自动生成", 《电脑知识与技术》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686356A (en) * | 2013-12-10 | 2014-03-26 | 深圳Tcl新技术有限公司 | Method and device for adjusting key values |
CN103686356B (en) * | 2013-12-10 | 2017-09-12 | 深圳Tcl新技术有限公司 | The method of adjustment and device of button value |
CN103777966A (en) * | 2014-02-28 | 2014-05-07 | 广州视源电子科技股份有限公司 | Method and device for extracting code information from binary file |
CN103777966B (en) * | 2014-02-28 | 2017-05-31 | 广州视源电子科技股份有限公司 | A kind of method and device that code information is extracted from binary file |
CN107707956A (en) * | 2017-10-18 | 2018-02-16 | 广东九联科技股份有限公司 | A kind of free collocation method of set-top box remote controller button and device |
CN108012170A (en) * | 2017-12-05 | 2018-05-08 | 晶晨半导体(上海)股份有限公司 | A kind of remote controler key assignments upgrade-system and method |
CN108040275A (en) * | 2017-12-29 | 2018-05-15 | 福州福大海矽微电子有限公司 | A kind of method and terminal of remote controller operation web browser |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107918666B (en) | Data synchronization method and system on block chain | |
CN104484216A (en) | Method and device for generating service interface document and on-line test tool | |
CN104133772A (en) | Automatic test data generation method | |
CN103246605A (en) | Method and system for collocating remote controller key values based on xml (extensive markup language) | |
CN104657274A (en) | Method and device for testing software interface | |
CN110543301B (en) | Method and device for generating jenkins code file | |
CN104133676A (en) | Function execution method and function execution device based on scripts | |
CN108229182B (en) | Method and system for verifying picture configuration by using information isomorphism | |
CN104881311A (en) | Method and apparatus for judging version compatibility | |
CN113051011A (en) | RPA and AI combined image information extraction method and device | |
CN116560642A (en) | Code generation method and device, electronic equipment and storage medium | |
CN107122182B (en) | Method and system for constructing and releasing code | |
CN111273942A (en) | Code generation method, storage medium, electronic device and system | |
CN102073688A (en) | Device for converting client form to Web page and method thereof | |
CN105022635A (en) | Algorithm file generating method and apparatus based on cloud platform and cloud platform | |
CN110544092A (en) | Dynamic newly-added multi-type database data operation chaining method for block chain | |
CN112114794B (en) | Automatic generation method and device of website application program and computer storage medium | |
CN111857752B (en) | PostgreSQL database installation method, device and equipment | |
CN114625372A (en) | Automatic component compiling method and device, computer equipment and storage medium | |
KR101534493B1 (en) | Source code security weakness detection apparatus and method based on structure conversion | |
CN113807698A (en) | Work order generation method and device, electronic equipment and readable storage medium | |
CN110427339A (en) | A kind of method and apparatus for converting automatic response file format | |
CN107861725B (en) | iOS data reverse automatic analysis strategy | |
CN111930361A (en) | Artificial intelligence operation mirror image templating construction method and device | |
CN102270126A (en) | Method and equipment for quickly determining interface code and test script parameter value |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130814 |
|
RJ01 | Rejection of invention patent application after publication |