CN114387775B - Pressure measurement method and device for simulating remote controller - Google Patents

Pressure measurement method and device for simulating remote controller Download PDF

Info

Publication number
CN114387775B
CN114387775B CN202210295690.2A CN202210295690A CN114387775B CN 114387775 B CN114387775 B CN 114387775B CN 202210295690 A CN202210295690 A CN 202210295690A CN 114387775 B CN114387775 B CN 114387775B
Authority
CN
China
Prior art keywords
pressure measurement
script
remote control
equipment
airtest
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.)
Active
Application number
CN202210295690.2A
Other languages
Chinese (zh)
Other versions
CN114387775A (en
Inventor
何志宏
郑梦琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhixiang Information Technology Co ltd
Original Assignee
Beijing Zhixiang Information Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Zhixiang Information Technology Co ltd filed Critical Beijing Zhixiang Information Technology Co ltd
Priority to CN202210295690.2A priority Critical patent/CN114387775B/en
Publication of CN114387775A publication Critical patent/CN114387775A/en
Application granted granted Critical
Publication of CN114387775B publication Critical patent/CN114387775B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C25/00Arrangements for preventing or correcting errors; Monitoring arrangements
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42221Transmission circuitry, e.g. infrared [IR] or radio frequency [RF]
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

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

Pressure measurement method and device for simulating remote controller
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 that:
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 the cycle sentence, intercepting a corresponding key on the remote control puck through touch, and combining with 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, then running the script and carrying 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 the cycle sentence, 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. and starting the operation.
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; in a cycle sentence, intercepting a corresponding key on a remote control puck through touch, and combining a sleep code which is used for finishing a 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; in a circulating statement, intercepting a corresponding key on a remote control puck through touch, 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 (4)

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, newly building an air file on Airtest; writing an infinite loop statement at the beginning; in a circulating statement, intercepting a corresponding key on a remote control puck through touch, and combining a sleep code, wherein the sleep code is used for finishing set pressure measurement operation;
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 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.
3. 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 (personal computer) end, starting Airtest and identifying the connected equipment;
establishing a script module, and creating an air file on Airtest; writing an infinite loop statement at the beginning; in a circulating statement, intercepting a corresponding key on a remote control puck through touch, and combining a sleep code, wherein the sleep code is used for finishing set pressure measurement operation;
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.
4. The pressure measuring device for simulating the remote controller according to claim 3, 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 process of pressure measurement, whether the TV pressure measurement process is abnormal or not is checked through a serial port log; and Airtest automatically generates a log, and whether the script is abnormal or not is obtained by checking the log.
CN202210295690.2A 2022-03-24 2022-03-24 Pressure measurement method and device for simulating remote controller Active CN114387775B (en)

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 CN114387775A (en) 2022-04-22
CN114387775B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6885307B2 (en) * 2002-06-19 2005-04-26 Tarma, Llc Battery monitor
CN104978271B (en) * 2015-07-06 2019-06-04 Tcl集团股份有限公司 A kind of automatic upgrading pressure survey method and system of 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

Also Published As

Publication number Publication date
CN114387775A (en) 2022-04-22

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
CN102053911A (en) Automated testing method and system based on Android and mobile terminal
CN107678949B (en) Automatic testing method for realizing different communication modes of embedded equipment
CN104424094A (en) Method and device for obtaining abnormal information and intelligent terminal device
CN104331373A (en) Monkey test system and method
CN103186439A (en) Server test system and server stability test method
CN101272422A (en) Mobile phone automatized test method
CN102156672B (en) Method for realizing automated test on mobile phone calculator
CN114387775B (en) Pressure measurement method and device for simulating remote controller
CN102467442A (en) Software testing method, system and equipment
CN110442519B (en) Crash file processing method and device, electronic equipment and storage medium
CN108111364B (en) Service system testing method and device
CN101262681A (en) Automatic testing mobile terminal and its implementation method
KR20140046121A (en) System and method for testing application
CN110990842A (en) Recurrence method and device of small probability event, storage medium and electronic equipment
CN107797922B (en) Application page testing method, electronic device and electronic equipment
CN103294575A (en) Test system and test method
CN112506757A (en) Automatic test method, system, computer device and medium thereof
CN104216823A (en) Automatic testing method and master control device
CN104915228A (en) Application program language setting method and device
CN112003647B (en) Detection method, device and equipment for recycled optical modem and storage medium
CN108427882B (en) Android software dynamic analysis detection method based on behavior feature extraction
CN101312546A (en) Method for tracking and recording television operation steps and television thereof
CN109714225A (en) A kind of automated testing method and system of Elink

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