CN114387775A - Pressure measurement method and device for simulating remote controller - Google Patents
Pressure measurement method and device for simulating remote controller Download PDFInfo
- Publication number
- CN114387775A CN114387775A CN202210295690.2A CN202210295690A CN114387775A CN 114387775 A CN114387775 A CN 114387775A CN 202210295690 A CN202210295690 A CN 202210295690A CN 114387775 A CN114387775 A CN 114387775A
- Authority
- CN
- China
- Prior art keywords
- pressure measurement
- script
- remote control
- module
- equipment
- 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.)
- Granted
Links
- 238000009530 blood pressure measurement Methods 0.000 title claims abstract description 47
- 238000000034 method Methods 0.000 title claims abstract description 33
- 230000002159 abnormal effect Effects 0.000 claims description 12
- 238000004088 simulation Methods 0.000 claims description 2
- 238000012360 testing method Methods 0.000 abstract description 7
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C25/00—Arrangements for preventing or correcting errors; Monitoring arrangements
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C23/00—Non-electrical signal transmission systems, e.g. optical systems
- G08C23/04—Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
- H04N21/42204—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
- H04N21/42206—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
- H04N21/42221—Transmission circuitry, e.g. infrared [IR] or radio frequency [RF]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Measuring Fluid Pressure (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The invention provides a pressure measurement method and a pressure measurement device for simulating a remote controller, wherein the method comprises the following steps: installing and opening a remote control genius APP on equipment with an infrared function; installing the USB monitor service to a charging port, and then adding corresponding remote control key values one by one; connecting the equipment with a PC end, starting Airtest and identifying the connected equipment; establishing a script, wherein the script runs a pressure measurement code in a circulating mode; the PC end is connected to the TV, then the script is operated, pressure measurement is carried out, the testing efficiency is improved, and the labor cost is reduced.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a pressure measurement method and device for a simulation remote controller.
Background
And simulating a scene that a user operates the TV by using a remote controller, and detecting whether the TV normally works after the pressure test is executed. This operation requires the tester to perform RC operations on each page to detect if there is a problem with the television.
The disadvantages of the method are:
1. the manual execution efficiency is low;
2. the workload is large and the repetition is many.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a pressure test method and a pressure test device for simulating a remote controller, so that the test efficiency is improved, and the labor cost is reduced.
In a first aspect, the present invention provides a pressure measurement method for simulating a remote controller, including:
step 1, installing and opening a remote control genius APP on equipment with an infrared function;
step 2, installing the USB monitor service to a charging port, and then adding corresponding remote control key values one by one;
step 3, connecting the equipment with a PC end, starting Airtest and identifying the connected equipment;
step 4, establishing a script, wherein the script runs a pressure measurement code circularly;
and 5, connecting the PC end to the TV, then running the script, and performing pressure measurement.
Further, the step 4 is further specifically: newly building an air file on Airtest; writing an infinite loop statement at the beginning; and in a circulating statement, intercepting a corresponding key on the remote control puck through touch, and combining a sleep code which is used for finishing the set pressure measurement operation.
Further, the step 5 is further specifically:
connecting a PC end with a UART serial port of a TV, then running a script, and carrying out pressure measurement; in the pressure measurement process, whether the TV pressure measurement process is abnormal or not is checked through the serial port log; and Airtest automatically generates a log, and whether the script is abnormal or not is obtained by checking the log.
In a second aspect, the present invention provides a pressure measurement device simulating a remote controller, comprising:
installing a software module, installing and opening a remote control genius APP on equipment with an infrared function;
the device comprises an adding key value module, a charging port and a remote control module, wherein the adding key value module is used for installing USB monitor service to the charging port and then adding corresponding remote control key values one by one;
the identification equipment module is used for connecting the equipment with a PC end, starting Airtest and identifying the connected equipment;
establishing a script module, and establishing a script, wherein the script runs a pressure measurement code circularly;
and the pressure measuring module is used for connecting the PC end to the TV, and then running the script to carry out pressure measurement.
Further, the script establishing module is further specifically: newly building an air file on Airtest; writing an infinite loop statement at the beginning; and in a circulating statement, intercepting a corresponding key on the remote control puck through touch, and combining a sleep code which is used for finishing the set pressure measurement operation.
Further, the pressure measuring module further specifically comprises:
connecting a PC end with a UART serial port of a TV, then running a script, and carrying out pressure measurement; in the pressure measurement process, whether the TV pressure measurement process is abnormal or not is checked through the serial port log; and Airtest automatically generates a log, and whether the script is abnormal or not is obtained by checking the log.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
1. the testing efficiency is improved;
2. the labor cost is reduced;
3. and the method has scene portability.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
FIG. 1 is a flow chart of a method according to one embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device according to a second embodiment of the present invention.
Detailed Description
The embodiment of the application provides a pressure measurement method and device for simulating a remote controller, solves the technical problems of low test efficiency and high labor cost in the prior art, and has the beneficial effects of improving the test efficiency and reducing the labor cost.
The technical scheme in the embodiment of the application has the following general idea:
1. the method comprises the following steps that a mobile phone is provided with a remote control genie APP, and meanwhile, a USB monitor service is connected with the mobile phone and records a corresponding remote control key value;
2. connecting a mobile phone with a PC end through a data line, and opening an Airtest and connecting equipment;
3. compiling air script;
4. the operation is started.
Example one
As shown in fig. 1, the present embodiment provides a pressure measurement method for simulating a remote controller, including:
step 1, installing and opening a remote control genius APP on equipment with an infrared function;
step 2, installing the USB monitor service to a charging port, and then adding corresponding remote control key values one by one; then the USB monitor service is detached; adding remote key values specifically comprises: registering an account number, self-defining an infrared remote control, editing a signal, and recording a key value of a remote controller, wherein the USB monitor service is an infrared receiver;
step 3, connecting the equipment with a PC end, starting Airtest and identifying the connected equipment, wherein touch and sleep codes exist in Airtest software;
step 4, newly building an air file on Airtest; writing an infinite loop statement at the beginning; intercepting a corresponding key on the remote control puck through touch in a circulating statement, and combining a sleep code, wherein the sleep code is used for finishing set pressure measurement operation;
step 5, connecting the PC end with a UART serial port of the TV, and then running a script (namely, an air file), wherein the script runs directly at the PC end to carry out pressure measurement; in the pressure measurement process, whether the TV pressure measurement process is abnormal or not is checked through the serial port log; and Airtest automatically generates a log, and whether the script is abnormal or not is obtained by checking the log.
Through the scheme, the problem that whether the television is halted or not can be detected by simulating the remote controller.
Based on the same inventive concept, the application also provides a device corresponding to the method in the first embodiment, which is detailed in the second embodiment.
Example two
As shown in fig. 2, in the present embodiment, there is provided a pressure measurement device simulating a remote controller, including:
installing a software module, installing and opening a remote control genius APP on equipment with an infrared function;
the device comprises an adding key value module, a charging port and a remote control module, wherein the adding key value module is used for installing USB monitor service to the charging port and then adding corresponding remote control key values one by one; then the USB monitor service is detached; adding remote key values specifically comprises: registering an account number, self-defining an infrared remote control, editing a signal, and recording a key value of a remote controller, wherein the USB monitor service is an infrared receiver;
the device identification module is used for connecting the device with a PC end, starting Airtest and identifying the connected device, wherein touch and sleep codes exist in Airtest software;
establishing a script module, and creating an air file on Airtest; writing an infinite loop statement at the beginning; intercepting a corresponding key on the remote control puck through touch in a circulating statement, and combining a sleep code, wherein the sleep code is used for finishing set pressure measurement operation;
the pressure measuring module is used for connecting the PC end with a UART serial port of the TV, and then running a script (namely an air file), wherein the script runs directly at the PC end to carry out pressure measurement; in the pressure measurement process, whether the TV pressure measurement process is abnormal or not is checked through the serial port log; and Airtest automatically generates a log, and whether the script is abnormal or not is obtained by checking the log.
Through the scheme, the problem that whether the television is halted or not can be detected by simulating the remote controller.
Since the apparatus described in the second embodiment of the present invention is an apparatus used for implementing the method of the first embodiment of the present invention, based on the method described in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and the deformation of the apparatus, and thus the details are not described herein. All the devices adopted in the method of the first embodiment of the present invention belong to the protection scope of the present invention.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.
Claims (6)
1. A pressure measurement method for simulating a remote controller is characterized by comprising the following steps: the method comprises the following steps:
step 1, installing and opening a remote control genius APP on equipment with an infrared function;
step 2, installing the USB monitor service to a charging port, and then adding corresponding remote control key values one by one;
step 3, connecting the equipment with a PC end, starting Airtest and identifying the connected equipment;
step 4, establishing a script, wherein the script runs a pressure measurement code circularly;
and 5, connecting the PC end to the TV, then running the script, and performing pressure measurement.
2. The pressure measurement method for simulating the remote controller according to claim 1, wherein: the step 4 is further specifically as follows: newly building an air file on Airtest; writing an infinite loop statement at the beginning; and in a circulating statement, intercepting a corresponding key on the remote control puck through touch, and combining a sleep code which is used for finishing the set pressure measurement operation.
3. The pressure measurement method for simulating the remote controller according to claim 1, wherein: the step 5 is further specifically as follows:
connecting a PC end with a UART serial port of a TV, then running a script, and carrying out pressure measurement; in the pressure measurement process, whether the TV pressure measurement process is abnormal or not is checked through the serial port log; and Airtest automatically generates a log, and whether the script is abnormal or not is obtained by checking the log.
4. The utility model provides a pressure measuring device of simulation remote controller which characterized in that: the method comprises the following steps:
installing a software module, installing and opening a remote control genius APP on equipment with an infrared function;
the device comprises an adding key value module, a charging port and a remote control module, wherein the adding key value module is used for installing USB monitor service to the charging port and then adding corresponding remote control key values one by one;
the identification equipment module is used for connecting the equipment with a PC end, starting Airtest and identifying the connected equipment;
establishing a script module, and establishing a script, wherein the script runs a pressure measurement code circularly;
and the pressure measuring module is used for connecting the PC end to the TV, and then running the script to carry out pressure measurement.
5. The pressure measuring device for simulating the remote controller as claimed in claim 4, wherein: the script establishing module is further specifically: newly building an air file on Airtest; writing an infinite loop statement at the beginning; and in a circulating statement, intercepting a corresponding key on the remote control puck through touch, and combining a sleep code which is used for finishing the set pressure measurement operation.
6. The pressure measuring device for simulating the remote controller as claimed in claim 4, wherein: the pressure measuring module is further specifically as follows:
connecting a PC end with a UART serial port of a TV, then running a script, and carrying out pressure measurement; in the pressure measurement process, whether the TV pressure measurement process is abnormal or not is checked through the serial port log; and Airtest automatically generates a log, and whether the script is abnormal or not is obtained by checking the log.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210295690.2A CN114387775B (en) | 2022-03-24 | 2022-03-24 | Pressure measurement method and device for simulating remote controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210295690.2A CN114387775B (en) | 2022-03-24 | 2022-03-24 | Pressure measurement method and device for simulating remote controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114387775A true CN114387775A (en) | 2022-04-22 |
CN114387775B CN114387775B (en) | 2022-07-05 |
Family
ID=81205665
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210295690.2A Active CN114387775B (en) | 2022-03-24 | 2022-03-24 | Pressure measurement method and device for simulating remote controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114387775B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115629847A (en) * | 2022-12-21 | 2023-01-20 | 北京智象信息技术有限公司 | Linux system TV memory data capturing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040178918A1 (en) * | 2002-06-19 | 2004-09-16 | Lockhart Bradley W. | Battery monitor |
CN104978271A (en) * | 2015-07-06 | 2015-10-14 | Tcl集团股份有限公司 | Automatic upgrade pressure measurement method and system for Android system |
CN105469573A (en) * | 2015-12-16 | 2016-04-06 | 苏州汉辰数字科技有限公司 | Cloud smart controller APP and key value learning and assignment method |
CN112395187A (en) * | 2020-11-05 | 2021-02-23 | 华人运通(江苏)技术有限公司 | Test method, test system, computer device and storage medium |
-
2022
- 2022-03-24 CN CN202210295690.2A patent/CN114387775B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040178918A1 (en) * | 2002-06-19 | 2004-09-16 | Lockhart Bradley W. | Battery monitor |
CN104978271A (en) * | 2015-07-06 | 2015-10-14 | Tcl集团股份有限公司 | Automatic upgrade pressure measurement method and system for Android system |
CN105469573A (en) * | 2015-12-16 | 2016-04-06 | 苏州汉辰数字科技有限公司 | Cloud smart controller APP and key value learning and assignment method |
CN112395187A (en) * | 2020-11-05 | 2021-02-23 | 华人运通(江苏)技术有限公司 | Test method, test system, computer device and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115629847A (en) * | 2022-12-21 | 2023-01-20 | 北京智象信息技术有限公司 | Linux system TV memory data capturing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN114387775B (en) | 2022-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101778307B (en) | Device for testing functions of set top box | |
CN101493790B (en) | Record playback system and record back method | |
CN107678949B (en) | Automatic testing method for realizing different communication modes of embedded equipment | |
CN102467442A (en) | Software testing method, system and equipment | |
CN114387775B (en) | Pressure measurement method and device for simulating remote controller | |
CN110830791A (en) | Automatic testing method, device and system for software function of television complete machine | |
CN110688305B (en) | Test environment synchronization method, device, medium and electronic equipment | |
CN105100796A (en) | Television test method, device and system | |
CN104536863A (en) | Application program test method and device | |
KR20140046121A (en) | System and method for testing application | |
CN111639000B (en) | Method for quickly extracting backup data of android mobile terminal and automatic backup system | |
CN102821010B (en) | Simulator for protector | |
CN110990842A (en) | Recurrence method and device of small probability event, storage medium and electronic equipment | |
CN112231206A (en) | Script editing method for application program test, computer readable storage medium and test platform | |
CN103294575A (en) | Test system and test method | |
CN104216823A (en) | Automatic testing method and master control device | |
CN114578790A (en) | Unmanned aerial vehicle flight control automatic test method, system, equipment and medium | |
CN104915228A (en) | Application program language setting method and device | |
CN105095063A (en) | Application program testing method, apparatus and system | |
CN101312546A (en) | Method for tracking and recording television operation steps and television thereof | |
US7415560B2 (en) | Method of automatically monitoring computer system debugging routine | |
CN113538725B (en) | Method for testing hardware products and related equipment | |
CN115422091A (en) | Firmware debugging method and device, electronic equipment and storage medium | |
CN112003647A (en) | Detection method, device and equipment for recycled optical modem and storage medium | |
CN114911656A (en) | Automatic IPMI instruction testing method, single chip microcomputer and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |