CN102355602A - Processing method for simulative keying of set-top box - Google Patents
Processing method for simulative keying of set-top box Download PDFInfo
- Publication number
- CN102355602A CN102355602A CN2011103409350A CN201110340935A CN102355602A CN 102355602 A CN102355602 A CN 102355602A CN 2011103409350 A CN2011103409350 A CN 2011103409350A CN 201110340935 A CN201110340935 A CN 201110340935A CN 102355602 A CN102355602 A CN 102355602A
- Authority
- CN
- China
- Prior art keywords
- analogue
- key
- top box
- tupe
- serial communication
- 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
The invention discloses a processing method for simulative keying of a set-top box, which relates to the technology of television set-top boxes; and the invention aims at providing a processing method for simulative keying of a set-top box, which can record the keying and the keying time interval in a test process and reproduce the keying process. The method comprises the following technical main points that: a computer tool data processing module, a computer tool serial port communication module, a set-top box serial port driving module and a set-top box remote control receiving module are used; simulative keying processing modes include a mode 1 and a mode 2; when the set-top box is in the mode 1, users input information via a remote controller, the set-top box remote receiving module converts remote control information into simulative keying information, transmits the simulative keying information to a computer tool through the set-top box serial port driving module and the computer tool serial port communication module, and generates a simulative keying record chart for recording user operation information; and when the set-top box is in the mode 2, the computer tool data processing module analyzes the existing simulative keying record chart, and the computer tool serial port communication module transmits the simulative keying information to the set-top box to reproduce the user operation in the mode 1.
Description
Technical field
The present invention relates to the digital TV set-top box technology, relate to the method that a kind of set-top box analogue-key is handled specifically.
Background technology
Along with the Digital Television industry development of globalization, Digital Television worldwide is used widely.Data TV set-top box developer's service object progressively becomes global Digital Television operator from each domestic metropolitan radio and TV operator.The project that set-top box developer need develop is more and more; And it is always limited with personnel to exploit natural resources; In order to improve development efficiency; The set-top box development scheme becomes by a small amount of engineer's on-site development from the direct on-site development of whole project team gradually, and huge team behind the scenes carries out technical support in this locality.Usually in test process, find some problems with regard to the engineer that to have a phenomenon be exactly on-site development like this, and these problems often do not occur also sometimes.Therefore the field engineer also is difficult to repeat the testing procedure (time interval that comprises each button) that goes wrong and occur.Therefore local technical support engineer can not get information accurately, can't deal with problems targetedly, causes needs to drop into very big energy ability reproduction problem, and then deals with problems.Cause development efficiency low like this, postponed development progress.
In producer many times similar demand is arranged in addition, whether before dispatching from the factory, needing to get into factory's detecting pattern such as: set-top box, to detect the hardware effort of every machine normal.The direct labor need use a teleswitch and enter into the various menu of set-top box software, and the operation function corresponding is checked the result.Such operation all is the same to every set-top box.Use artificial mode to operate length consuming time like this, efficient is low.We more need processing mode efficiently.
Summary of the invention
The objective of the invention is provides a kind of and can write down the button and the button time interval in the test process to above-mentioned defective, and reappears the method for the set-top box analogue-key processing of button process.
The technical scheme that the present invention adopts is such: at first, and set-top box and PC Tools definition analogue-key information table and serial communication protocol between the two; The corresponding relation of analogue-key information table agreement analogue-key and remote keying; Serial communication protocol comprises analogue-key command id, analogue-key tupe and analogue-key, and the analogue-key tupe comprises pattern 1, pattern 2; Said method comprises following functional module: PC Tools data processing module, PC Tools serial communication modular, set-top box serial port drive module and set box remote control receiver module;
PC Tools data processing module: be used for confirming the analogue-key tupe according to user's input; If pattern 2 then receives and resolve the analogue-key record sheet 2 that the user imports, each analogue-key in the analogue-key record sheet 2 is sent to the PC Tools serial communication modular successively by certain time interval; If pattern 1, PC Tools data processing module also are used for the analogue-key of receiving computer instrument serial communication modular output, and deposit the time interval of analogue-key and each analogue-key in analogue-key record sheet 1;
PC Tools serial communication modular: when analogue-key tupe 2, be used for analogue-key and analogue-key tupe that receiving computer tool data processing module is sent,, send to set-top box serial port drive module according to the serial communication protocol packing; When the analogue-key tupe is pattern 1, the PC Tools serial communication modular only will be simulated the case tupe and packed according to serial communication protocol, send to set-top box serial port drive module; When analogue-key tupe 1, the PC Tools serial communication modular also is used for the data of receiving set up box serial port drive module output, and parses analogue-key according to serial communication protocol, and sends to the PC Tools data processing module;
Set-top box serial communication modular: the data that when analogue-key tupe 2, are used for the output of receiving computer instrument serial communication modular; Parse analogue-key tupe and analogue-key according to serial communication protocol, the remote control receiver module in set-top box sends analogue-key; When analogue-key tupe 1, then analogue-key and the analogue-key tupe with the output of remote control receiver module sends to the PC Tools serial communication modular according to the serial communication protocol packing;
Set box remote control receiver module: when analogue-key tupe 2, be used for converting the analogue-key of serial port drive module output into remote keying according to the analogue-key information table, and carry out the corresponding function of remote keying; When analogue-key tupe 1, be used for converting the remote keying of remote controller output into analogue-key according to the analogue-key information table, and export to the serial port drive module.
Preferably; When the analogue-key tupe is pattern 1; The analogue-key that PC Tools data processing module receiving computer instrument serial communication modular is beamed back; And obtain current system time; System time when deducting previous analogue-key and receive with current system time obtains this analogue-key with respect to the transmission time interval of analogue-key last time; The PC Tools data processing module deposits analogue-key and transmission time interval thereof in the analogue-key record sheet in the lump; If this analogue-key is first analogue-key, then only deposit this analogue-key in.
Preferably, said analogue-key tupe also comprises mode 3, when analogue-key tupe 3:
The PC Tools data processing module is got the analogue-key in the analogue-key information table at random; And according to the transmission time interval of user's needs appointment; Send analogue-key to serial communication modular, and the transmission time interval of analogue-key and user's appointment is written to analogue-key record sheet 1;
Analogue-key and analogue-key tupe that PC Tools serial communication modular receiving computer tool data processing module is sent according to the serial communication protocol packing, send to set-top box serial port drive module;
The data of set-top box serial port drive module receiving computer instrument serial communication modular output parse analogue-key tupe and analogue-key according to serial communication protocol, and the remote control receiver module in set-top box sends analogue-key;
The set box remote control receiver module converts the analogue-key of serial port drive module output into remote keying according to the analogue-key information table, and carries out the corresponding function of remote keying.
In sum, owing to adopted technique scheme, the invention has the beneficial effects as follows:
Analogue-key tupe 1 has been realized remote keying process (comprising remote keying, information such as remote keying blanking time) record;
Analogue-key tupe 2 has been realized the reproduction of remote keying process, promptly carries out the corresponding function of analogue-key according to the record of analogue-key record sheet according to the time interval; Be not difficult to expect; When dispatching from the factory detection; Only need import the analogue-key record sheet to PC Tools; Set-top box just can be carried out the corresponding function of all analogue-keys according to the time interval in the table automatically; The workman only needs observed result; Need not to re-use the various menu that remote controller enters into set-top box software, the operation function corresponding.
Analogue-key tupe 3 can testing software robustness, guarantee that this button processing method carries out smoothly.
Need not to increase hardware cost, economy is high.
Description of drawings
The present invention will illustrate through example and with reference to the mode of accompanying drawing, wherein:
Fig. 1 is the functional block diagram of the inventive method.
Among the figure: during 1 representative simulation button tupe 1 the analogue-key signal flow to, during 2 representative simulation button tupes 2 the analogue-key signal flow to, during 3 representative simulation button tupes 3 the analogue-key signal flow to.
Embodiment
Disclosed all characteristics in this specification, or the step in disclosed all methods or the process except mutually exclusive characteristic and/or the step, all can make up by any way.
Disclosed arbitrary characteristic in this specification (comprising any accessory claim, summary and accompanying drawing) is only if special narration all can be replaced by other equivalences or the alternative features with similar purpose.That is, only if special narration, each characteristic is an example in a series of equivalences or the similar characteristics.
Adopt artificial input efficiency low to the set-top box button in the conventional art, and complex operation do not allow catchy problem, the invention discloses the method that a kind of set-top box analogue-key is handled.
The prerequisite that this method is implemented is set-top box and PC Tools unified " analogue-key information table ": set-top box need be arranged the corresponding relation of analogue-key and remote keying with PC Tools; Such as analogue-key " 05 " expression is the remote keying of exit function, all will use " 05 " when instrument and set-top box are used ESC Escape so.
This method also need be formulated serial communication protocol, and the communication protocol in this method adopts the form of " analogue-key command id "+" analogue-key tupe "+" analogue-key ".Consider that the set-top box program is in running; May print the information that is used for each module running status of monitoring equipment top box of some other modules; When starting such as set-top box; The init state of each module etc.; " analogue-key command id " must be unique, can not overlap to type information with above-mentioned." analogue-key tupe " has 3 kinds, sees Fig. 1: pattern 1: the user uses the remote control input, and this method converts remote information into analogue-key and sends to instrument, and generates " analogue-key record sheet ", is used for the detailed operation information of recording user; Pattern 2: this method is resolved existing " analogue-key record sheet ", analogue-key is sent to set-top box, reproduction mode 1 user's operation.Through these two kinds of patterns, just can solve the problem and the demand that occur in " background technology ".Mode 3: this method is at random generation analogue-key initiatively, and to " analogue-key record sheet " record button, set-top box is sent analogue-key then earlier, the robustness that this pattern can testing software, but do not solve the technical problem necessary.
Its practical implementation process may further comprise the steps:
The PC Tools data processing module is at first according to user's input validation " analogue-key tupe ".If " analogue-key tupe " is 2; Then the user need import existing " analogue-key record sheet "; The PC Tools data processing module receives and resolves the analogue-key record sheet 2 of user's input, and each analogue-key in the analogue-key record sheet 2 is sent to the PC Tools serial communication modular successively by the time interval in " analogue-key record sheet ".
If mode 3; The PC Tools data processing module is got the analogue-key in the analogue-key information table at random; And according to the transmission time interval of user's needs appointment; Send analogue-key to serial communication modular, and the transmission time interval of analogue-key and user's appointment is written to analogue-key record sheet 1.
Wherein " analogue-key log file " concrete form can adopt following structure:
For(;;)
{
" analogue-key ";
" transmission time interval ";
}
After wherein transmission time interval is meant and sends apart from this button, how often send next button.
Analogue-key and analogue-key tupe that PC Tools serial communication modular receiving computer tool data processing module is sent; " analogue-key command id "+" analogue-key tupe "+" analogue-key " form according to the serial communication protocol regulation is packed analogue-key, sends to set-top box serial port drive module.If the analogue-key tupe is a pattern 1, the PC Tools serial communication modular is only packed " analogue-key command id ", " simulation case tupe " according to serial communication protocol, and " analogue-key " information is empty in the packet.
Pattern 2 or 3 o'clock; The data of set-top box serial communication modular receiving computer instrument serial communication modular output; Parse analogue-key tupe and analogue-key according to serial communication protocol, through the remote control receiver module transmission analogue-key of message queue in set-top box of remote control receiver module.If the analogue-key tupe is a pattern 1; Then set up the formation of this module message; Receive the analogue-key that the remote control receiver module is exported through the formation of this module message, at last said analogue-key and analogue-key tupe are sent to the PC Tools serial communication modular according to serial communication protocol " analogue-key command id "+" analogue-key tupe "+" analogue-key " form packing.
Pattern 2 or 3 o'clock; The set box remote control receiver module is set up message queue; Message queue receives the analogue-key of serial port drive module output; And the analogue-key that the serial port drive module is exported converts remote keying into according to the analogue-key information table; And carry out the corresponding function of remote keying, execute all method steps of pattern 2 or at 3 o'clock to this each functional module.When pattern 1, the set box remote control receiver module receives the remote keying of remote controller output, converts remote keying into analogue-key according to the analogue-key information table, and exports to the message queue of set-top box serial port drive module.
When pattern 1, the data of PC Tools serial communication modular receiving set up box serial port drive module output, and parse analogue-key according to serial communication protocol, and send to the PC Tools data processing module.
When pattern 1; The PC Tools data processing module receives the analogue-key that the instrument serial port module is beamed back; Get access to the current service system time, and deduct the system time that previous analogue-key receives, obtain last time " transmission time interval " of analogue-key.The PC Tools data processing module generates " analogue-key record sheet ", and with this analogue-key and with respect to " transmission time interval " of button last time by the concrete format record of above-mentioned analogue-key log file in record sheet.If receive button for the first time, then only write this analogue-key.Arrive this, all method step when each functional module is accomplished pattern 1.
The present invention is not limited to aforesaid embodiment.The present invention expands to any new feature or any new combination that discloses in this manual, and the arbitrary new method that discloses or step or any new combination of process.
Claims (3)
1. the method that the set-top box analogue-key is handled is characterized in that, at first, and set-top box and PC Tools definition analogue-key information table and serial communication protocol between the two; The corresponding relation of analogue-key information table agreement analogue-key and remote keying; Serial communication protocol comprises analogue-key command id, analogue-key tupe and analogue-key, and the analogue-key tupe comprises pattern 1, pattern 2; Said method comprises following functional module: PC Tools data processing module, PC Tools serial communication modular, set-top box serial port drive module and set box remote control receiver module;
PC Tools data processing module: be used for confirming the analogue-key tupe according to user's input; If pattern 2 then receives and resolve the analogue-key record sheet 2 that the user imports, each analogue-key in the analogue-key record sheet 2 is sent to the PC Tools serial communication modular successively by certain time interval; If pattern 1, PC Tools data processing module also are used for the analogue-key of receiving computer instrument serial communication modular output, and deposit the time interval of analogue-key and each analogue-key in analogue-key record sheet 1;
PC Tools serial communication modular: when analogue-key tupe 2, be used for analogue-key and analogue-key tupe that receiving computer tool data processing module is sent,, send to set-top box serial port drive module according to the serial communication protocol packing; When the analogue-key tupe is pattern 1, the PC Tools serial communication modular only will be simulated the case tupe and packed according to serial communication protocol, send to set-top box serial port drive module; When analogue-key tupe 1, the PC Tools serial communication modular also is used for the data of receiving set up box serial port drive module output, and parses analogue-key according to serial communication protocol, and sends to the PC Tools data processing module;
Set-top box serial communication modular: the data that when analogue-key tupe 2, are used for the output of receiving computer instrument serial communication modular; Parse analogue-key tupe and analogue-key according to serial communication protocol, the remote control receiver module in set-top box sends analogue-key; When analogue-key tupe 1, then analogue-key and the analogue-key tupe with the output of remote control receiver module sends to the PC Tools serial communication modular according to the serial communication protocol packing;
Set box remote control receiver module: when analogue-key tupe 2, be used for converting the analogue-key of serial port drive module output into remote keying according to the analogue-key information table, and carry out the corresponding function of remote keying; When analogue-key tupe 1, be used for converting the remote keying of remote controller output into analogue-key according to the analogue-key information table, and export to the serial port drive module.
2. the method that a kind of set-top box analogue-key according to claim 1 is handled; It is characterized in that; When the analogue-key tupe is pattern 1; The analogue-key that PC Tools data processing module receiving computer instrument serial communication modular is beamed back; And obtain current system time; System time when deducting previous analogue-key and receive with current system time obtains this analogue-key with respect to the transmission time interval of analogue-key last time; The PC Tools data processing module deposits analogue-key and transmission time interval thereof in the analogue-key record sheet in the lump; If this analogue-key is first analogue-key, then only deposit this analogue-key in.
3. the method that a kind of set-top box analogue-key according to claim 1 and 2 is handled is characterized in that said analogue-key tupe also comprises mode 3, when analogue-key tupe 3:
The PC Tools data processing module is got the analogue-key in the analogue-key information table at random; And according to the transmission time interval of user's needs appointment; Send analogue-key to serial communication modular, and the transmission time interval of analogue-key and user's appointment is written to analogue-key record sheet 1;
Analogue-key and analogue-key tupe that PC Tools serial communication modular receiving computer tool data processing module is sent according to the serial communication protocol packing, send to set-top box serial port drive module;
The data of set-top box serial port drive module receiving computer instrument serial communication modular output parse analogue-key tupe and analogue-key according to serial communication protocol, and the remote control receiver module in set-top box sends analogue-key;
The set box remote control receiver module converts the analogue-key of serial port drive module output into remote keying according to the analogue-key information table, and carries out the corresponding function of remote keying.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103409350A CN102355602A (en) | 2011-11-02 | 2011-11-02 | Processing method for simulative keying of set-top box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103409350A CN102355602A (en) | 2011-11-02 | 2011-11-02 | Processing method for simulative keying of set-top box |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102355602A true CN102355602A (en) | 2012-02-15 |
Family
ID=45579087
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011103409350A Pending CN102355602A (en) | 2011-11-02 | 2011-11-02 | Processing method for simulative keying of set-top box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102355602A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294103A (en) * | 2015-05-21 | 2017-01-04 | Tcl集团股份有限公司 | The automated testing method of a kind of Android system analogue-key transmission and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101478696A (en) * | 2008-12-31 | 2009-07-08 | 深圳市同洲电子股份有限公司 | Automatic test method, system and multimedia device for test cases |
CN101646100A (en) * | 2009-08-21 | 2010-02-10 | 深圳创维数字技术股份有限公司 | Method and system for testing machine top box based on serial port communication |
CN101771894A (en) * | 2008-12-31 | 2010-07-07 | 深圳市同洲电子股份有限公司 | Testing system and method for recording track of remote controller and digital television receiving terminal |
CN101937393A (en) * | 2010-08-31 | 2011-01-05 | 中山大学 | Regression testing method and system for browser |
CN101951529A (en) * | 2010-08-31 | 2011-01-19 | 中山大学 | Method and system for testing functions of set top box |
-
2011
- 2011-11-02 CN CN2011103409350A patent/CN102355602A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101478696A (en) * | 2008-12-31 | 2009-07-08 | 深圳市同洲电子股份有限公司 | Automatic test method, system and multimedia device for test cases |
CN101771894A (en) * | 2008-12-31 | 2010-07-07 | 深圳市同洲电子股份有限公司 | Testing system and method for recording track of remote controller and digital television receiving terminal |
CN101646100A (en) * | 2009-08-21 | 2010-02-10 | 深圳创维数字技术股份有限公司 | Method and system for testing machine top box based on serial port communication |
CN101937393A (en) * | 2010-08-31 | 2011-01-05 | 中山大学 | Regression testing method and system for browser |
CN101951529A (en) * | 2010-08-31 | 2011-01-19 | 中山大学 | Method and system for testing functions of set top box |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294103A (en) * | 2015-05-21 | 2017-01-04 | Tcl集团股份有限公司 | The automated testing method of a kind of Android system analogue-key transmission and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102880532B (en) | Cloud technology-based test system and method | |
CN108366067B (en) | System and method for testing consistency of universal service protocol of power system | |
EP2460258A1 (en) | Method and device for auto-generating goose signal connection topology from substation level | |
CN102799519A (en) | Automatic test method for cluster file system | |
CN103885439A (en) | Automated testing system for railway signal computer interlocking system | |
CN103914307A (en) | Interactive-interface fast implementation method based on reusable library | |
CN101090295A (en) | Test system and method for ASON network | |
CN104503896A (en) | Systems And Methods For Batch Device Commissioning And Decommissioning | |
CN105306299A (en) | Streaming media server performance test method and test system | |
CN204291050U (en) | A kind of dispatching and monitoring information check system | |
CN110958327A (en) | Intelligent substation remote testing system and method | |
CN103425497A (en) | Network engineering script across-manufacturer conversion method and device | |
CN103634161A (en) | Train communication protocol consistency detection device and train communication protocol consistency detection method | |
CN105162252A (en) | CID file-based method for achieving automatic mapping of plug-and-play power distribution terminal information | |
CN100361079C (en) | Method for testing synchronous automatic installation for system including multiple complete computers | |
CN105205039A (en) | Customizable SCD (substation configuration description) file verification method | |
Hartmanns | Modest-a unified language for quantitative models | |
CN102355602A (en) | Processing method for simulative keying of set-top box | |
CN108153284A (en) | control program testing method and system | |
CN111610725A (en) | Combined simulation method | |
CN112532432B (en) | Automatic mapping method and system based on LTU terminal | |
CN104915291A (en) | Terminal restart verification method and system | |
Kotikangas | Utilization of digital twin for customer tailored variable speed drive | |
CN116781797A (en) | Protocol message conversion method and equipment | |
CN106033211B (en) | A kind of method and device of control gluing board rubber head cleaning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120215 |