CN113157511B - Peripheral detection method, device and readable storage medium - Google Patents

Peripheral detection method, device and readable storage medium Download PDF

Info

Publication number
CN113157511B
CN113157511B CN202110462638.7A CN202110462638A CN113157511B CN 113157511 B CN113157511 B CN 113157511B CN 202110462638 A CN202110462638 A CN 202110462638A CN 113157511 B CN113157511 B CN 113157511B
Authority
CN
China
Prior art keywords
peripheral
input information
test result
configuration file
determining
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
CN202110462638.7A
Other languages
Chinese (zh)
Other versions
CN113157511A (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.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202110462638.7A priority Critical patent/CN113157511B/en
Publication of CN113157511A publication Critical patent/CN113157511A/en
Application granted granted Critical
Publication of CN113157511B publication Critical patent/CN113157511B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a peripheral detection method, which comprises the following steps: when a peripheral detection request is received, the type and configuration mark of the currently connected peripheral are obtained; determining a testing interface corresponding to the peripheral according to the type and the configuration mark, and displaying the testing interface, wherein the testing interface comprises a testing result display area; and when receiving the input information corresponding to the peripheral, updating the display content of the test result display area according to the input information. The invention also discloses a peripheral detection device and a readable storage medium. The invention realizes testing of different peripheral devices under the same test scene, improves the peripheral device detection efficiency and improves the peripheral device detection accuracy.

Description

Peripheral detection method, device and readable storage medium
Technical Field
The present invention relates to the field of peripheral detection technologies, and in particular, to a peripheral detection method and apparatus, and a readable storage medium.
Background
Along with the development of software and chip technology, different peripheral inputs are increasingly applied to intelligent terminals such as intelligent televisions, mobile phones and tablets, and the peripheral inputs can comprise common infrared remote controls, bluetooth remote controls, mechanical keys, light sense keys, touch keys, game sticks, game handles and the like. Different peripheral devices have different structures, connection lines, cost and other differences, when the production line detects all peripheral device inputs, different configuration schemes are required to be applied to detect the peripheral devices based on the different peripheral devices, corresponding detection scenes are required to be configured according to the different peripheral devices, so that the production line can consume time for detecting all the peripheral devices, and the detection steps are complex.
Disclosure of Invention
The invention mainly aims to provide a peripheral detection method, a device and a readable storage medium, and aims to solve the problem that in the prior art, different scenes are required to be configured to detect different peripheral devices, so that the peripheral detection efficiency is low.
In order to achieve the above object, the present invention provides a peripheral detection method, including the steps of:
When a peripheral detection request is received, the type and configuration mark of the currently connected peripheral are obtained;
Determining a testing interface corresponding to the peripheral according to the type and the configuration mark, and displaying the testing interface, wherein the testing interface comprises a testing result display area;
and when receiving the input information corresponding to the peripheral, updating the display content of the test result display area according to the input information.
Optionally, the step of determining the peripheral corresponding test interface according to the type and the configuration flag includes:
obtaining a configuration file corresponding to the peripheral according to the type and the configuration mark, wherein the configuration file is an xml format file;
and determining the testing interface corresponding to the peripheral according to the configuration file.
Optionally, the step of obtaining the configuration file corresponding to the peripheral according to the type and the configuration mark of the peripheral includes:
Acquiring a basic configuration file of the peripheral;
acquiring a difference file corresponding to the peripheral based on the type and the configuration mark of the peripheral;
And determining the peripheral corresponding configuration file based on the basic configuration file and the difference file.
Optionally, the step of updating the display content of the test result display area according to the input information includes:
determining a test result corresponding to the input information according to the input information;
And updating the display content of the test result display area according to the test result.
Optionally, the step of determining, according to the input information, a test result corresponding to the input information includes:
Acquiring a trigger event corresponding to the input information according to the configuration file;
and determining a test result corresponding to the input information according to the trigger event.
Optionally, the step of determining that the input information corresponds to a test result according to the trigger event includes:
Executing the trigger event and collecting operation data corresponding to the trigger event;
And determining a test result corresponding to the input information according to the operation data.
Optionally, before the step of updating the display content of the test result display area according to the input information when receiving the input information corresponding to the peripheral, the step of the peripheral detection method includes:
Receiving a key signal of the peripheral;
and determining input information corresponding to the peripheral according to the key signals.
Optionally, the step of updating the display content of the test result display area according to the test result includes:
obtaining a key detection result corresponding to the test result according to the test result corresponding to the input information;
And updating the display content of the test result display area according to the key detection result.
In addition, to achieve the above object, the present invention also provides a peripheral detection device, including: the device comprises a memory and a processor, wherein the memory stores a peripheral detection program, and the peripheral detection program realizes the steps of the peripheral detection method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a readable storage medium, wherein a computer program is stored on the readable storage medium, and the computer program realizes the steps of the peripheral detection method as described above when being executed by a processor.
According to the peripheral detection method, the type and the configuration mark of the currently connected peripheral are obtained, the corresponding test interface of the peripheral is determined according to the type and the configuration mark, after input information is received, the test result is determined according to the input information, the test result is displayed on the test interface, different peripheral is tested under the same test scene by giving different configuration files to different peripheral, peripheral detection efficiency is improved, and peripheral detection accuracy is improved.
Drawings
FIG. 1 is a schematic diagram of a device architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a peripheral detection method according to the present invention;
FIG. 3 is a diagram showing a test interface corresponding to a remote controller and a test page corresponding to a game pad according to a first embodiment of the peripheral detection method of the present invention;
FIG. 4 is a flowchart of a second embodiment of the peripheral detection method according to the present invention;
FIG. 5 is a flowchart of a third embodiment of a peripheral detection method according to the present invention;
fig. 6 is a corresponding test page after the remote controller detects according to the third embodiment of the peripheral detection method of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: when a peripheral detection request is received, the type and configuration mark of the currently connected peripheral are obtained; determining a testing interface corresponding to the peripheral according to the type and the configuration mark, and displaying the testing interface, wherein the testing interface comprises a testing result display area; and when receiving the input information corresponding to the peripheral, updating the display content of the test result display area according to the input information.
Referring to fig. 1, fig. 1 is a schematic diagram of an apparatus structure of a hardware running environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a smart television, a smart phone, a tablet personal computer, an electronic book reader, an MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 3) player, a portable computer and other devices with display functions.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the apparatus and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a peripheral detection program may be included in the memory 1005, which is one type of computer storage medium.
In the apparatus shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server, and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a peripheral detection program stored in the memory 1005 and perform the following operations:
When a peripheral detection request is received, the type and configuration mark of the currently connected peripheral are obtained;
Determining a testing interface corresponding to the peripheral according to the type and the configuration mark, and displaying the testing interface, wherein the testing interface comprises a testing result display area;
and when receiving the input information corresponding to the peripheral, updating the display content of the test result display area according to the input information.
Further, the processor 1001 may call the peripheral detection program stored in the memory 1005, and further perform the following operations:
obtaining a configuration file corresponding to the peripheral according to the type and the configuration mark, wherein the configuration file is an xml format file;
and determining the testing interface corresponding to the peripheral according to the configuration file.
Further, the processor 1001 may call the peripheral detection program stored in the memory 1005, and further perform the following operations:
Acquiring a basic configuration file of the peripheral;
acquiring a difference file corresponding to the peripheral based on the type and the configuration mark of the peripheral;
And determining the peripheral corresponding configuration file based on the basic configuration file and the difference file.
Further, the processor 1001 may call the peripheral detection program stored in the memory 1005, and further perform the following operations:
determining a test result corresponding to the input information according to the input information;
And updating the display content of the test result display area according to the test result.
Further, the processor 1001 may call the peripheral detection program stored in the memory 1005, and further perform the following operations:
Acquiring a trigger event corresponding to the input information according to the configuration file;
and determining a test result corresponding to the input information according to the trigger event.
Further, the processor 1001 may call the peripheral detection program stored in the memory 1005, and further perform the following operations:
Executing the trigger event and collecting operation data corresponding to the trigger event;
And determining a test result corresponding to the input information according to the operation data.
Further, the processor 1001 may call the peripheral detection program stored in the memory 1005, and further perform the following operations:
Receiving a key signal of the peripheral;
and determining input information corresponding to the peripheral according to the key signals.
Further, the processor 1001 may call the peripheral detection program stored in the memory 1005, and further perform the following operations:
obtaining a key detection result corresponding to the test result according to the test result corresponding to the input information;
And updating the display content of the test result display area according to the key detection result.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a method for detecting a peripheral, where the method for detecting a peripheral includes the steps of:
Step S10, when a peripheral detection request is received, the type and configuration mark of the currently connected peripheral are obtained;
Step S20, determining a testing interface corresponding to the peripheral according to the type and the configuration mark, and displaying the testing interface, wherein the testing interface comprises a testing result display area;
And step S30, when receiving the input information corresponding to the peripheral equipment, updating the display content of the test result display area according to the input information.
In the embodiment of the invention, the device can be an intelligent television, or can be a device for running an android system, such as an intelligent mobile phone, a tablet personal computer and the like. Because all the devices need to be tested in a production line before leaving the factory and can leave the factory after all the tests are qualified, the embodiment of the invention adopts the intelligent television, the intelligent mobile phone, the tablet personal computer and the like in the factory mode as the implementation device. For convenience of explanation, the following embodiments take a smart tv (i.e. a tv to be detected) in a factory mode as an example. Before the television to be detected is detected, a peripheral detection program or an Android Package (APK) developed for the peripheral test needs to be installed in advance. The peripheral detection program integrates different peripheral in a software mode, and simultaneously, the peripheral detection program is integrated in a television system to be detected, and when the television system is burnt in a factory, the integrated detection application program and system software of the television are burnt into a television memory to be detected.
After the television to be detected is started, the television to be detected is connected with a peripheral, wherein the peripheral refers to any equipment which is connected with the television to be detected and performs data interaction, such as a common infrared remote control, a Bluetooth remote controller, a mechanical key, a light sense key, a touch key, a game rocker, a game handle and the like, different connection modes can be selected according to different peripheral connection modes, and the connection modes can be generally divided into wired connection and wireless connection, and the wired connection can be realized by utilizing USB, HDMI, AV, audio and other interfaces through a data transmission line; the wireless connection may be a bluetooth connection, a protocol connection, or a network connection. Different connection modes are selected for different peripheral devices, so that the peripheral devices are connected with the television to be detected.
Further, after the peripheral is connected with the television to be detected, the peripheral sends a detection request to a system of the television to be detected, and the system of the television to be detected starts a peripheral detection program according to the detection request. After the peripheral detection program is started, connection is established with the peripheral, an information request command is sent to the peripheral, a detailed list describing attribute information of the peripheral is fed back to a kernel space of a television to be detected after the peripheral receives the information request command, and then the peripheral detection program acquires the attribute information of the connected peripheral, wherein the attribute information can comprise the type of the peripheral and a configuration mark of the peripheral. The configuration flag of the peripheral is unique flag information of the peripheral, which determines the configuration file to be configured.
Or after the television to be detected is started, the peripheral detection program is started by default, and after the television to be detected is connected with a peripheral, the peripheral detection program acquires the attribute information of the peripheral based on the connected peripheral.
Further, after determining the type and the configuration mark of the connected peripheral, determining the corresponding test interface of the peripheral according to the type and the configuration mark, displaying the test interface on the television to be detected, and based on different peripheral, the corresponding test interfaces are different, referring to fig. 3, and fig. 3 is a test interface corresponding to the remote controller and a test page corresponding to the game handle.
Further, after the peripheral is successfully connected with the television to be detected, triggering a key of the peripheral on the peripheral, so that the television to be detected detects the performance of the key based on the key, the television to be detected receives input information corresponding to the trigger key, the input information can include but is not limited to a key triggering time point and a key triggering name, a test result corresponding to the input information is obtained according to the input information, the test result is displayed on the test page, a detector can judge whether the performance of the key of the peripheral is qualified or not according to the display content, the test result includes a key name, a key value of the key and the like, and the detector can judge whether the performance of the key of the peripheral is qualified or not according to the key value.
After the embodiment of the invention is connected with the peripheral, the test page is displayed on the television to be tested according to the type and the configuration mark of the peripheral, the test result is determined according to the input information of the peripheral, and is updated on the test page, so that a detector can rapidly judge whether the peripheral passes the test or not, and different test pages are configured for the peripheral based on different peripheral, so that different peripheral can be tested simultaneously under the same test scene, the peripheral detection efficiency is improved, and the peripheral detection accuracy is improved.
Further, referring to fig. 4, fig. 4 is a flowchart of a second embodiment of a method for detecting a peripheral, based on the embodiment shown in fig. 2, the step of determining, in the step S20, the peripheral corresponding test interface according to the type and the configuration flag includes:
Step S21, obtaining a configuration file corresponding to the peripheral according to the type and the configuration mark, wherein the configuration file is an xml format file;
and S22, determining the testing interface corresponding to the peripheral according to the configuration file.
In the embodiment of the invention, after the peripheral detection program is started, connection is established with the peripheral, and the corresponding configuration file of the peripheral is generated according to the type and the configuration mark of the peripheral. For example, when the connected peripheral is a remote controller, determining that the type of the peripheral is the remote controller, determining that a configuration mark of the remote controller is sent to the peripheral detection program, and determining that a configuration file corresponding to the remote controller is a xml format by the peripheral detection program according to the configuration mark and the type. It can be understood that the configuration file is built based on the xml format, which has the advantages that (1) the xml format is the W3C standard, all platforms are universal, the portability is good, and the compatibility is good; (2) The xml file format provides a tree-shaped hierarchical structure, and a certain functional block can be easily positioned; (3) the xml file content format is clear and concise, and the reading and writing are convenient; (4) The xml document is expandable, so that the design principle of high cohesion and low coupling is well met in the mode. (6) The method for reading and writing the xml files can be compatible with each platform, is convenient to expand, provides a foundation for expanding new shortcut functions later, can self-define own shortcut function options of each platform by configuring the xml files, and realizes the design principle of high cohesion and low coupling. Based on the above, the embodiment of the invention writes the configuration file based on the xml format, so that the configuration file is compatible with a plurality of platforms, such as televisions, tablets, computers and the like.
After the configuration file corresponding to the peripheral is obtained, a test page is displayed on the television to be detected according to the configuration file corresponding to the peripheral, and the test page is generated based on the configuration file corresponding to the peripheral. It can be understood that when the peripheral types are the same and the configuration flags are the same, the test pages of the peripheral are the same, but when the peripheral types are different and the configuration flags are different, the configuration files of the peripheral may be the same or different, and further the test pages of the peripheral may be the same or different.
It should be noted that, with the development of the television, the system of the current-generation television is more and more huge, and the functions are more and more varied. Resulting in larger and larger firmware and online upgrade packages for television systems. For different television projects based on the same television chip and television system, in order to simplify firmware and upgrade packages, a common package and difference configuration method is adopted, for example *** itself also provides Project Treble requirements for versions after Android 0. For television production and processing, common packages and different configuration requirements are also provided for the management of upgrade packages.
Based on the requirements of common co-package and differential configuration, the embodiment of the invention provides a method for detecting a quick peripheral, which improves the efficiency of peripheral detection, and obtains a configuration file corresponding to the peripheral according to the type and the configuration mark based on the step S21, wherein the step of obtaining the configuration file as an xml format file comprises the following steps:
Acquiring a basic configuration file of the peripheral;
acquiring a difference file corresponding to the peripheral based on the type and the configuration mark of the peripheral;
And determining the peripheral corresponding configuration file based on the basic configuration file and the difference file.
The basic configuration file of the peripheral is an inherent configuration file generated by the television firmware to be detected, and is edited in advance when the television bottom firmware to be detected is edited according to the common attribute of the peripheral, and based on the basic configuration file, the time for loading the basic configuration file when the peripheral is detected is reduced.
Further, the difference file is generated based on different peripheral devices, wherein the difference file refers to a configuration file for testing performance parameters required by the connected peripheral devices, and the content of the difference file can comprise configuration identifiers of the peripheral devices, operation logic of the peripheral devices in the performance parameter testing process, acquisition rules for acquiring data of the peripheral devices and the like. Different performance parameters of different peripherals may correspond to different difference files. The same performance parameter can be correspondingly provided with different difference files according to different test requirements. The difference file can be preconfigured before the detection of the peripheral equipment, and the difference file corresponding to the currently connected peripheral equipment and the basic configuration file of the peripheral equipment are obtained and used as the corresponding configuration file of the currently connected peripheral equipment; in addition, the difference file can be compiled and updated by the current connected peripheral according to a preset template in the peripheral detection process, and the current written difference file and the basic configuration file are used as corresponding configuration files of the connected peripheral, wherein the basic configuration file and the difference file are written in an xml format.
Further, referring to fig. 5, fig. 5 is a flowchart of a third embodiment of a method for detecting a peripheral device, based on the embodiment of fig. 2, the step of updating the display content of the test result display area according to the input information in the step S30 includes:
Step S31, determining a test result corresponding to the input information according to the input information;
And step S32, updating the display content of the test result display area according to the test result.
In the embodiment of the invention, the input information is generated when the detection personnel triggers the physical key of the connected peripheral, the television to be detected receives the input information sent by the peripheral, the television to be detected analyzes the input information after receiving the input information and sends the input information to the peripheral detection program, and the peripheral detection program calculates and acquires the corresponding test result of the input information according to the analyzed input information, so that the test result is displayed on a test page of the television to be detected, and the detection personnel can quickly distinguish whether the key of the peripheral is successfully detected or not. For example, when the connected peripheral is a remote controller and the remote controller presses a standby key, sending input information corresponding to the standby key to an application program to be detected, judging whether the performance parameter corresponding to the standby key is successful or not by the application program to be detected according to the input information corresponding to the standby key, when the operation is successful, proving that the test result of the standby key is qualified, and when the operation is unsuccessful, proving that the test result of the standby key is unqualified, and further displaying the test result on a test page of the television to be detected.
In addition, the step of updating the display content of the test result display area according to the test result includes:
obtaining a key detection result corresponding to the test result according to the test result corresponding to the input information;
And updating the display content of the test result display area according to the key detection result.
The specific implementation mode of obtaining the test result corresponding to the input information and updating the display content of the test result display area according to the test result may be to convert the test result into a corresponding key detection result, when the test result is qualified, display the trigger key in a qualified state according to a preset rule, and when the test result is unqualified, display the trigger key in a unqualified state according to a preset rule.
For example, when the connected peripheral is a remote controller and the remote controller presses a standby key, sending input information corresponding to the standby key to an application program to be detected, judging whether the performance parameter corresponding to the standby key is successful or not by the application program to be detected according to the input information corresponding to the standby key, when the operation is successful, proving that the test result of the standby key is qualified, and when the operation is unsuccessful, proving that the test result of the standby key is unqualified, and further displaying the test result on a test page of the television to be detected. Referring to fig. 6, fig. 6 shows a corresponding test page after the remote controller detects, after the standby key is detected and when the test result is passed, the standby key on the test page is switched to dark gray, and when other keys except the standby key are not detected, the key color remains unchanged, and when the other keys except the standby key are not detected, the key color is switched to light gray. It can be understood that the remote controller is one of the embodiments of the present invention, the peripheral detection program can be applied to a plurality of different peripheral devices, and when the peripheral devices are different, the display content of the test result can be the same or different.
It should be noted that, after triggering the physical key of the peripheral, determining input information of the peripheral according to the physical key, and determining a test result corresponding to the input information according to the input information includes:
Acquiring a trigger event corresponding to the input information according to the configuration file;
and determining a test result corresponding to the input information according to the trigger event.
In this embodiment, the configuration file of the peripheral detection program includes an input information mapping table, where the input information mapping table stores a mapping relationship between input information and a trigger event. Specifically, after the peripheral device externally sets a detection program key signal, the peripheral device detection program analyzes the key signal to determine input information, and then searches a trigger event corresponding to the input information from the input information mapping table according to the input information, further executes the trigger event, outputs a test result corresponding to the trigger event, determines the test result as the test result corresponding to the input information, and further displays the test result on a test page through the peripheral device detection program.
In addition, the step of determining the test result corresponding to the input information according to the trigger event comprises the following steps:
after the trigger event is executed, collecting operation data corresponding to the trigger event;
And determining a test result corresponding to the input information according to the operation data.
In the embodiment of the invention, after the peripheral detection program acquires a trigger event, the trigger event is executed, operation data after the trigger event is executed is acquired, an event response result is acquired according to the operation data, and a test result corresponding to input information is determined according to the event response result. Specifically, the test script corresponding to the trigger event is operated, wherein the configuration file includes the test script of the trigger event, so as to control the television to be detected to operate according to the operation state required by the trigger event and collect the operation data of the television to be detected, further, according to the comparison result of the operation data and the reference parameter, different reference parameters can be set correspondingly for different trigger events, wherein a preset parameter threshold value required to be reached when the television to be detected operates can be used as the reference parameter, and performance parameters corresponding to other competitive television sets can be used as the reference parameter, and the test result can specifically comprise judging results of qualification, disqualification and the like, and can also comprise disqualification problem analysis, performance grade and the like. In order to facilitate data processing and quick output of test results, after the operation data are acquired, the embodiment of the invention can also acquire the database management system to perform data processing on the operation data, further generate a statistical chart based on the processed operation data, output the test results according to the statistical chart, and facilitate processing of drawing data based on the database management system, thereby ensuring quick output of the test results. For example, when the connected peripheral is a remote controller, the triggering event to be tested is to control the television to be detected to enter a standby mode, the operation data to be collected may include a standby response time point of the television to be detected and a receiving time point of receiving input information, and when the time difference meets a preset reference parameter, the test is passed, the test result corresponding to the input information is qualified, and the test result is displayed on a test page through a peripheral detection program based on the time difference between the standby response time point and the receiving time point as a judgment basis of the test result.
In addition, before receiving the input information of the peripheral, the step of the peripheral detection method further comprises:
Receiving a key signal of the peripheral;
and determining input information corresponding to the peripheral according to the key signals.
After triggering the keys of the peripheral, sending a key signal to a peripheral detection program, analyzing the key signal by the peripheral detection program, and determining input information corresponding to the peripheral according to the analyzed key signal, wherein a configuration file of the peripheral detection program is specifically stored with a key mapping table, and the key mapping table comprises a mapping relation between the key signal and the input information.
In the embodiment of the invention, the method determines the connected peripheral of the television and the key performance required to be tested based on the test channel by establishing the test channel between the peripheral detection device and the television to be detected, acquires the corresponding configuration file based on the type of the peripheral and the configuration mark and operates the configuration file so as to realize the control of the operation of the television to be detected and acquire the operation data of the television to be detected, and outputs the input corresponding test result based on the obtained operation data. According to the method, the mode of testing the key performance parameters of the connected peripheral by adopting the operation configuration file of the peripheral detection device is adopted to replace the mode of manually testing according to different testing scenes of different peripheral configuration in the prior art, so that the peripheral detection efficiency and accuracy can be effectively improved.
In order to achieve the above object, the present invention also provides a peripheral detection apparatus including a memory, a processor, and a peripheral detection program stored in the memory and executable on the processor, which when executed by the processor, implements the respective embodiments of the peripheral detection method as described above.
Furthermore, the present invention provides a computer-readable storage medium storing a peripheral detection program which, when executed by a processor, implements the respective embodiments of peripheral detection as described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. A peripheral detection method, characterized in that the steps of the peripheral detection method include:
When a peripheral detection request is received, the type and configuration mark of the currently connected peripheral are obtained;
Acquiring a basic configuration file of the peripheral;
Acquiring a difference file corresponding to the peripheral based on the type and the configuration mark of the peripheral, wherein the difference file refers to a configuration file for testing performance parameters required to be tested of the connected peripheral;
determining the peripheral corresponding configuration file based on the basic configuration file and the difference file, wherein the peripheral corresponding configuration file comprises
The configuration file is an xml format file;
generating a testing interface corresponding to the peripheral device based on the configuration file, and displaying the testing interface, wherein the testing interface comprises a testing result display area;
and when receiving the input information corresponding to the peripheral, updating the display content of the test result display area according to the input information.
2. The peripheral inspection method of claim 1, wherein the step of updating the display contents of the test result display area according to the input information comprises:
determining a test result corresponding to the input information according to the input information;
And updating the display content of the test result display area according to the test result.
3. The peripheral inspection method of claim 2, wherein the step of determining the input information corresponding test result according to the input information comprises:
Acquiring a trigger event corresponding to the input information according to the configuration file;
and determining a test result corresponding to the input information according to the trigger event.
4. The peripheral inspection method as claimed in claim 3, wherein the step of determining the input information corresponding to the test result according to the trigger event comprises:
Executing the trigger event and collecting operation data corresponding to the trigger event;
And determining a test result corresponding to the input information according to the operation data.
5. The peripheral inspection method as claimed in claim 3, wherein the step of updating the display contents of the test result display area according to the input information when the input information corresponding to the peripheral is received, comprises the steps of:
Receiving a key signal of the peripheral;
and determining input information corresponding to the peripheral according to the key signals.
6. The peripheral inspection method of claim 3, wherein the step of updating the display contents of the test result display area according to the test result comprises:
obtaining a key detection result corresponding to the test result according to the test result corresponding to the input information;
And updating the display content of the test result display area according to the key detection result.
7. A peripheral detection device, the peripheral detection device comprising: a memory, a processor, wherein the memory has stored thereon a peripheral detection program which, when executed by the processor, implements the steps of the peripheral detection method of any of claims 1 to 6.
8. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the peripheral detection method according to any of claims 1 to 6.
CN202110462638.7A 2021-04-27 2021-04-27 Peripheral detection method, device and readable storage medium Active CN113157511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110462638.7A CN113157511B (en) 2021-04-27 2021-04-27 Peripheral detection method, device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110462638.7A CN113157511B (en) 2021-04-27 2021-04-27 Peripheral detection method, device and readable storage medium

Publications (2)

Publication Number Publication Date
CN113157511A CN113157511A (en) 2021-07-23
CN113157511B true CN113157511B (en) 2024-06-11

Family

ID=76871727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110462638.7A Active CN113157511B (en) 2021-04-27 2021-04-27 Peripheral detection method, device and readable storage medium

Country Status (1)

Country Link
CN (1) CN113157511B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050086083A (en) * 2004-02-24 2005-08-30 위니아만도 주식회사 Kimchi refrigerator having a fuction for testing a key input state and display state and method of the same
KR20110031619A (en) * 2009-09-21 2011-03-29 에스케이 텔레콤주식회사 Mobile communication terminal and its connection method, mobile communication terminal used connection system and its processing method
CN104575342A (en) * 2014-12-30 2015-04-29 武汉精测电子技术股份有限公司 Integral liquid crystal module testing device
CN104837010A (en) * 2015-04-24 2015-08-12 青岛海信电器股份有限公司 Voice remote control testing method, device and system
CN105141732A (en) * 2015-07-23 2015-12-09 小米科技有限责任公司 Method and device for determining user device
CN106507104A (en) * 2016-12-28 2017-03-15 北京风行在线技术有限公司 A kind of method of testing of television set
CN111581096A (en) * 2020-05-09 2020-08-25 上海锐伟电子科技有限公司 Automatic testing method for android system terminal equipment
CN112181392A (en) * 2020-10-19 2021-01-05 上海航天计算机技术研究所 Method and system for automatically interpreting hardware interface to generate digital external device code
CN112506346A (en) * 2019-05-31 2021-03-16 苹果公司 User interface for managing controllable external devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4746693B2 (en) * 2009-08-05 2011-08-10 株式会社東芝 Information transmitter

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050086083A (en) * 2004-02-24 2005-08-30 위니아만도 주식회사 Kimchi refrigerator having a fuction for testing a key input state and display state and method of the same
KR20110031619A (en) * 2009-09-21 2011-03-29 에스케이 텔레콤주식회사 Mobile communication terminal and its connection method, mobile communication terminal used connection system and its processing method
CN104575342A (en) * 2014-12-30 2015-04-29 武汉精测电子技术股份有限公司 Integral liquid crystal module testing device
CN104837010A (en) * 2015-04-24 2015-08-12 青岛海信电器股份有限公司 Voice remote control testing method, device and system
CN105141732A (en) * 2015-07-23 2015-12-09 小米科技有限责任公司 Method and device for determining user device
CN106507104A (en) * 2016-12-28 2017-03-15 北京风行在线技术有限公司 A kind of method of testing of television set
CN112506346A (en) * 2019-05-31 2021-03-16 苹果公司 User interface for managing controllable external devices
CN111581096A (en) * 2020-05-09 2020-08-25 上海锐伟电子科技有限公司 Automatic testing method for android system terminal equipment
CN112181392A (en) * 2020-10-19 2021-01-05 上海航天计算机技术研究所 Method and system for automatically interpreting hardware interface to generate digital external device code

Also Published As

Publication number Publication date
CN113157511A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN108089977B (en) Application program exception handling method and device and mobile terminal
CN106649126B (en) Method and device for testing application program
CN110020293B (en) Multimedia data display method, device and storage medium
CN108415741B (en) Object serialization and deserialization method and related device
CN109947650B (en) Script step processing method, device and system
CN111078556B (en) Application testing method and device
CN108073495B (en) Method and device for positioning crash reason of application program
CN106776301B (en) Subelement testing method and device
CN102467442A (en) Software testing method, system and equipment
CN109885490B (en) Picture comparison method and device
CN112749074B (en) Test case recommending method and device
CN110750368A (en) Copying and pasting method and terminal
CN107918509B (en) Software shortcut prompt setting method and device and readable storage medium
CN110069407B (en) Function test method and device for application program
CN112000566B (en) Method and device for generating test cases
CN109739758B (en) Test case conversion method and device
CN113157511B (en) Peripheral detection method, device and readable storage medium
CN109871324B (en) Control operation method and device
CN113468260B (en) Data analysis method and device, electronic equipment and storage medium
CN111309613A (en) Application testing method, device, equipment and computer readable storage medium
CN109783379B (en) Script execution exception determining method and device
CN112230980A (en) Dependency relationship detection method and device, electronic equipment and storage medium
CN111552634A (en) Method and device for testing front-end system and storage medium
CN111601035A (en) Image processing method and electronic equipment
CN111475141A (en) List generation method and device and electronic equipment

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