CN110702346B - Vibration testing method and device, storage medium and terminal - Google Patents

Vibration testing method and device, storage medium and terminal Download PDF

Info

Publication number
CN110702346B
CN110702346B CN201910942359.3A CN201910942359A CN110702346B CN 110702346 B CN110702346 B CN 110702346B CN 201910942359 A CN201910942359 A CN 201910942359A CN 110702346 B CN110702346 B CN 110702346B
Authority
CN
China
Prior art keywords
vibration
vibration mode
target
option
tester
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
CN201910942359.3A
Other languages
Chinese (zh)
Other versions
CN110702346A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910942359.3A priority Critical patent/CN110702346B/en
Publication of CN110702346A publication Critical patent/CN110702346A/en
Application granted granted Critical
Publication of CN110702346B publication Critical patent/CN110702346B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M7/00Vibration-testing of structures; Shock-testing of structures
    • G01M7/02Vibration-testing by means of a shake table
    • G01M7/025Measuring arrangements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01HMEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
    • G01H17/00Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves, not provided for in the preceding groups

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a vibration testing method, a vibration testing device, a storage medium and a terminal, and belongs to the technical field of testing; the method comprises the following steps: receiving a motor test instruction; responding to a motor test instruction, randomly generating a target vibration mode, and controlling the motor to vibrate in the target vibration mode; displaying a set of vibration mode options; selecting a vibration mode option; and generating a test result of the motor according to the matching result of the vibration mode option selected by the tester and the target vibration mode. In the embodiment of the application, only after really feeling the vibration process, the tester can select the vibration mode option matched with the target vibration mode from the vibration mode option set, so that the condition that the tester misses the test is avoided. After the tester selects the vibration mode option, the terminal generates a test result of the motor based on the matching result of the selected vibration mode option and the target vibration mode, and the test result is more accurate and reliable.

Description

Vibration testing method and device, storage medium and terminal
Technical Field
The present application relates to the field of testing technologies, and in particular, to a vibration testing method and apparatus, a storage medium, and a terminal.
Background
In order to ensure the quality of the product, each function of the product needs to be strictly tested before the product leaves a factory; for example, for a product carrying a vibration function, the vibration function needs to be tested before shipping. In the related technology, when the vibration function is tested, a tester directly senses whether the vibration function of the product is normal; however, this test method completely depends on the judgment result finally given by the tester, and even if the tester gives the judgment result without performing the vibration test, the judgment result cannot be found; the test results are not reliable enough.
Disclosure of Invention
The embodiment of the application provides a vibration testing method, a device, a storage medium and a terminal, which can solve the problem that the vibration testing method in the related art completely depends on the final judgment result given by a tester, and even if the tester gives the judgment result when the tester does not carry out vibration testing, the judgment result cannot be found; the test result is not reliable enough. The technical scheme is as follows;
in a first aspect, an embodiment of the present application provides a vibration testing method, including the following steps:
receiving a motor test instruction;
responding to a motor test instruction, randomly generating a target vibration mode, and controlling the motor to vibrate in the target vibration mode;
displaying a set of vibration mode options via a display screen; wherein the set of vibration pattern options includes a vibration pattern option matching the target vibration pattern;
selecting a vibration mode option according to a selection instruction triggered by a tester;
and generating a test result of the motor according to the matching result of the vibration mode option selected by the tester and the target vibration mode.
In a second aspect, an embodiment of the present application provides a vibration testing apparatus, including:
the receiving module is used for receiving a motor test instruction;
the response module is used for responding to the motor test instruction, randomly generating a target vibration mode and controlling the motor to vibrate in the target vibration mode;
the display module is used for displaying the vibration mode option set through a display screen; wherein the set of vibration pattern options includes a vibration pattern option matching the target vibration pattern;
the selection module is used for selecting a vibration mode option according to a selection instruction triggered by a tester;
and the generating module is used for generating a test result of the motor according to the matching result of the vibration mode option selected by the tester and the target vibration mode.
In a third aspect, embodiments of the present application provide a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to perform any of the method steps described above.
In a fourth aspect, an embodiment of the present application provides a terminal, including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform any of the method steps described above.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
in the embodiment of the application, after receiving a motor test instruction, the terminal randomly generates a target vibration mode and displays a vibration mode option set through a display screen for a tester to select; the method and the device have the advantages that the vibration mode option matched with the target vibration mode can be selected from the vibration mode option set only after a tester really feels the vibration process, and the condition that the tester misses the test is avoided. After the tester selects the vibration mode option, the terminal generates a test result of the motor based on a matching result of the selected vibration mode option and the target vibration mode; compared with the method that the test result is directly obtained by a tester, the method and the device are more accurate and reliable in result.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal provided in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of an operating system and a user space provided in an embodiment of the present application;
FIG. 3 is an architectural diagram of the android operating system of FIG. 1;
FIG. 4 is an architecture diagram of the IOS operating system of FIG. 1;
fig. 5 is a schematic interface display diagram of a terminal according to an embodiment of the present application;
fig. 6 is a schematic view of another interface display of the terminal provided in the embodiment of the present application;
FIG. 7 is a schematic flow chart of a vibration testing method provided in an embodiment of the present application;
FIG. 8 is a schematic flow chart of a vibration testing method provided by an embodiment of the present application;
FIG. 9 is a schematic flow chart of a vibration testing method provided by an embodiment of the present application;
fig. 10 is a schematic structural diagram of a vibration testing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Referring to fig. 1, a block diagram of a terminal 100 according to an exemplary embodiment of the present application is shown. The terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, memory 120, input device 130, and output device 140 may be connected by a bus 150.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall terminal 100 using various interfaces and lines, and performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-programmable gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a read-only Memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium. The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like, and the operating system may be an Android (Android) system (including a system based on Android system depth development), an IOS system developed by apple inc (including a system based on IOS system depth development), or other systems. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
Referring to fig. 2, the memory 120 may be divided into an operating system space, in which an operating system runs, and a user space, in which native and third-party applications run. In order to ensure that different third-party application programs can achieve a better operation effect, the operating system allocates corresponding system resources for the different third-party application programs. However, the requirements of different application scenarios in the same third-party application program on system resources are different, for example, in a local resource loading scenario, the third-party application program has a higher requirement on the disk reading speed; in the animation rendering scene, the third-party application program has a high requirement on the performance of the GPU. The operating system and the third-party application program are independent from each other, and the operating system cannot sense the current application scene of the third-party application program in time, so that the operating system cannot perform targeted system resource adaptation according to the specific application scene of the third-party application program.
In order to enable the operating system to distinguish a specific application scenario of the third-party application program, data communication between the third-party application program and the operating system needs to be opened, so that the operating system can acquire current scenario information of the third-party application program at any time, and further perform targeted system resource adaptation based on the current scenario.
Taking an operating system as an Android system as an example, programs and data stored in the memory 120 are as shown in fig. 3, and a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360, and an application layer 380 may be stored in the memory 120, where the Linux kernel layer 320, the system runtime library layer 340, and the application framework layer 360 belong to an operating system space, and the application layer 380 belongs to a user space. The Linux kernel layer 320 provides underlying drivers for various hardware of the terminal 100, such as a display driver, an audio driver, a camera driver, a bluetooth driver, a Wi-Fi driver, power management, and the like. The system runtime library layer 340 provides a main feature support for the Android system through some C/C + + libraries. For example, the SQLite library provides support for a database, the OpenGL/ES library provides support for 3D drawing, the Webkit library provides support for a browser kernel, and the like. Also provided in the system runtime library layer 340 is an Android runtime library (Android runtime), which mainly provides some core libraries that can allow developers to write Android applications using the Java language. The application framework layer 360 provides various APIs that may be used in building an application, and developers may build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, session management, resource management, and location management. At least one application program runs in the application layer 380, and the application programs may be native application programs carried by the operating system, such as a contact program, a short message program, a clock program, a camera application, and the like; or a third-party application developed by a third-party developer, such as a game-like application, an instant messaging program, a photo beautification program, a shopping program, and the like.
Taking an operating system as an IOS system as an example, programs and data stored in the memory 120 are shown in fig. 4, and the IOS system includes: a Core operating system Layer 420(Core OS Layer), a Core Services Layer 440(Core Services Layer), a Media Layer 460(Media Layer), and a touchable Layer 480(Cocoa Touch Layer). The kernel operating system layer 420 includes an operating system kernel, drivers, and underlying program frameworks that provide functionality closer to hardware for use by program frameworks located in the core services layer 440. The core services layer 440 provides system services and/or program frameworks, such as a Foundation framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, and so forth, as required by the application. The media layer 460 provides audiovisual related interfaces for applications, such as graphics image related interfaces, audio technology related interfaces, video technology related interfaces, audio video transmission technology wireless playback (AirPlay) interfaces, and the like. Touchable layer 480 provides various common interface-related frameworks for application development, and touchable layer 480 is responsible for user touch interaction operations on terminal 100. Such as a local notification service, a remote push service, an advertising framework, a game tool framework, a messaging User Interface (UI) framework, a UI framework, a map framework, and so forth.
In the framework shown in FIG. 4, the framework associated with most applications includes, but is not limited to: a base framework in the core services layer 440 and a UIKit framework in the touchable layer 480. The base framework provides many basic object classes and data types, provides the most basic system services for all applications, and is UI independent. While the class provided by the UIKit framework is a basic library of UI classes for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides an infrastructure for applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, and the like.
The Android system can be referred to as a mode and a principle for realizing data communication between the third-party application program and the operating system in the IOS system, and details are not repeated herein.
The input device 130 is used for receiving input instructions or data, and the input device 130 includes, but is not limited to, a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used for outputting instructions or data, and the output device 140 includes, but is not limited to, a display device, a speaker, and the like. In one example, the input device 130 and the output device 140 may be combined, and the input device 130 and the output device 140 are touch display screens for receiving touch operations of a user on or near the touch display screens by using any suitable object such as a finger, a touch pen, and the like, and displaying user interfaces of various applications. The touch display screen is generally provided at a front panel of the terminal 100. The touch display screen may be designed as a full-face screen, a curved screen, or a profiled screen. The touch display screen can also be designed to be a combination of a full-face screen and a curved-face screen, and a combination of a special-shaped screen and a curved-face screen, which is not limited in the embodiment of the present application.
In addition, those skilled in the art will appreciate that the configuration of terminal 100 illustrated in the above-described figures is not intended to be limiting of terminal 100, and that terminal 100 may include more or less components than those shown, or some components may be combined, or a different arrangement of components. For example, the terminal 100 further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
In the embodiment of the present application, the main body of execution of each step may be the terminal 100 described above. Optionally, the execution subject of each step is an operating system of the terminal 100. The operating system may be an android system, an IOS system, or another operating system, which is not limited in this embodiment of the present application.
The terminal 100 of the embodiment of the present application may further include a display device, where the display device may be various devices capable of implementing a display function, for example: a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink panel, a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), and the like. The user can view information such as displayed text, images, and video using the display device on the terminal 100101. The terminal 100 may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality) device, an automobile, a data storage device, an audio playing device, a video playing device, a notebook, a desktop computing device, a wearable device such as an electronic watch, an electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, an electronic garment, or the like.
In the terminal 100 shown in fig. 1, the processor 110 may be configured to call an application program stored in the memory 120 and specifically execute the vibration test method according to the embodiment of the present application.
According to the technical scheme provided by the embodiment of the application, after the terminal receives a motor test instruction, a target vibration mode is randomly generated, and a vibration mode option set is displayed through a display screen for a tester to select; the method and the device have the advantages that the vibration mode option matched with the target vibration mode can be selected from the vibration mode option set only after a tester really feels the vibration process, and the condition that the tester misses the test is avoided. After the tester selects the vibration mode option, the terminal generates a test result of the motor based on a matching result of the selected vibration mode option and the target vibration mode; compared with the method that the test result is directly obtained by a tester, the method and the device are more accurate and reliable in result.
In the following method embodiments, for convenience of description, only the main body of execution of each step is described as the terminal 100.
The vibration testing method provided by the embodiment of the present application will be described in detail below with reference to fig. 7 to 9.
Referring to fig. 7, a flow chart of a vibration testing method according to an embodiment of the present application is schematically shown. As shown in fig. 7, the method of the embodiment of the present application may include the following steps:
s701, receiving a motor test command.
The motor test instruction is used for motor vibration test, the motor test instruction may be generated by the terminal 100 based on a test operation triggered by a tester, and the type of the test operation may be one or more of touch operation, voice control operation, key operation, and somatosensory operation. For example, the terminal 100 receives an instruction to start a vibration test application, displays a vibration test interface, the vibration test interface is provided with a virtual test button, when the terminal 100 receives a single-click operation on the test button, the touch screen of the terminal 100 generates a motor test instruction, and sends the motor test instruction to the processor of the terminal 100, and the processor of the terminal 100 receives the motor test instruction from the touch screen.
And S702, responding to a motor test instruction, randomly generating a target vibration mode, and controlling the motor to vibrate in the target vibration mode.
The randomly generated target vibration pattern may be at least one vibration pattern randomly selected by the terminal 100 directly in a preset vibration pattern set. The randomly generated target vibration pattern may also be at least one vibration pattern randomly generated by the terminal 100 based on one or more of a vibration frequency, a vibration time, and a vibration number.
The target vibration mode randomly generated by the terminal 100 is specifically one vibration mode or multiple vibration modes, and may be default of the system or preset by a tester.
And S703, displaying the vibration mode option set through the display screen.
Wherein the set of vibration pattern options includes a vibration pattern option matching the target vibration pattern.
The vibration mode option set comprises a plurality of vibration mode options, and the plurality of vibration mode options comprise at least one vibration mode option matched with the target vibration mode.
When the target vibration pattern is a vibration pattern, one vibration pattern option matching the target vibration pattern may be included in the vibration pattern option set. For example, the target vibration mode is vibration at a frequency of 180Hz for 7 seconds; the vibration mode option set comprises an option of short vibration and an option of long vibration. In order to facilitate a tester to accurately judge whether the target vibration mode is long vibration or short vibration without a timing tool, the time lengths of the long vibration and the short vibration in the vibration mode should be different greatly as much as possible. For example, the vibration time of the long vibration is set to 7 seconds, and the vibration time of the short vibration is set to 3 seconds; then the option of the long vibration in the set of vibration pattern options at this time is the vibration pattern option matching the target vibration pattern.
When the target vibration pattern is a vibration pattern, the vibration pattern option set may also include more than two vibration pattern options matching the target vibration pattern. For example, the target vibration mode is vibration at a frequency of 180Hz for 7 seconds; the set of vibration mode options includes a short vibration option, a long vibration option, a fast vibration option, and a slow vibration option. In order to facilitate a tester to accurately judge whether a target vibration mode is fast vibration or slow vibration without a vibration detection tool, the frequencies of the fast vibration and the slow vibration in the vibration mode are greatly different as much as possible. For example, the frequency of the fast vibration is set to 180Hz, and the frequency of the slow vibration is set to 80 Hz; then the option of long vibration and the option of fast vibration in the vibration pattern option set are both the vibration pattern options matching the target vibration pattern at this time.
When the target vibration pattern is two or more vibration patterns, one vibration pattern option matching the target vibration pattern may be included in the vibration pattern option set. For example, the target vibration mode is one long vibration and then one short vibration; the vibration mode option set comprises an option of two times of short vibration after one time of long vibration, an option of one time of short vibration after one time of long vibration and an option of two times of short vibration after two times of long vibration; and the option of one-time long vibration and one-time short vibration is the vibration mode option matched with the target vibration mode. When the target vibration mode is two or more vibration modes, the time interval between the vibration modes should be as large as possible for the tester to distinguish. For example, after each vibration mode, the next vibration mode is entered after an interval of 1 second or more. Specifically, the first long vibration and the second short vibration may be: after the vibration was continued for 7 seconds, the vibration was stopped for 1 second and then continued for 3 seconds.
When the target vibration pattern is two or more vibration patterns, the vibration pattern option set may also include two or more vibration pattern options matching the target vibration pattern. For example, the target vibration mode is two short vibrations after one long vibration; the vibration mode option set comprises an option which only generates long vibration, an option which only generates short vibration, an option which generates both long vibration and short vibration, an option which has the long vibration times less than the short vibration times and an option which has the long vibration times more than the short vibration times; and the options of long and short vibration occurrence and the options of long vibration times less than short vibration times are vibration mode options matched with the target vibration mode. When the target vibration pattern includes multiple long vibrations or multiple short vibrations, the duration of each long vibration may be consistent, and the duration of each short vibration may be consistent, so as to facilitate the distinction of the tester. Specifically, the two short oscillations after the one long oscillation may be: the vibration was continued for 7 seconds, stopped for 1 second, continued for 3 seconds, stopped for 1 second, and continued for another 3 seconds.
When the target vibration pattern is two or more vibration patterns, the vibration pattern option set may be composed of only vibration pattern options matching each vibration pattern. For example, the target vibration mode is one long vibration and then one short vibration; the vibration mode option set comprises a long vibration option and a short vibration option; at this time, the vibration pattern options matching the target vibration pattern are: selecting a long vibration option and then selecting a short vibration option; i.e. it needs to be judged at this time in combination with the sequence of the tester selecting each vibration mode.
And S704, selecting a vibration mode option according to a selection instruction triggered by the tester.
The selection instruction is used for selecting the vibration mode option, the selection instruction may be generated by the terminal 100 based on a selection operation triggered by a tester, and the type of the selection operation may be one or more of a touch operation, a voice control operation, a key operation, and a motion sensing operation. For example, the terminal 100 displays a vibration mode option set interface when vibration in the target vibration mode is completed, and generates a selection instruction when the terminal detects a single-click operation of any vibration mode option in the vibration mode option set.
When the vibration mode option set includes more than two vibration mode options matched with the target vibration mode, in order to obtain the complete selection of the tester, options representing the completion of the selection, such as determination and the like, may be further displayed on the display screen of the terminal 100, so that when the tester selects the options representing the completion of the selection, such as determination and the like, the selection instruction is generated completely; the decision is then made based on the selection made by the tester. For example, the target vibration mode is vibration at a frequency of 180Hz for 7 seconds; the vibration mode option set comprises a short vibration option, a long vibration option, a fast vibration option and a slow vibration option; in addition, certain options are displayed on the display screen of the terminal 100; after the tester clicks the long vibration option and the fast vibration option, the selection instruction is generated only after clicking the determined option.
S705, generating a test result of the motor according to the matching result of the vibration mode option selected by the tester and the target vibration mode.
When only one vibration mode option matched with the target vibration mode is included in the vibration mode option set, the vibration mode option selected by the testing personnel is matched with the target vibration mode only when the vibration mode option selected by the testing personnel is completely matched with the target vibration mode.
When the vibration mode option set comprises more than two vibration mode options matched with the target vibration mode, the vibration mode option selected by the testing personnel is matched with the target vibration mode only when the matching rate of the vibration mode option selected by the testing personnel and the target vibration mode is greater than a threshold value.
The matching rate of the vibration pattern option selected by the tester and the target vibration pattern may be: the ratio of the number of vibration mode options matched with the target vibration mode in the plurality of vibration mode options selected by the tester to the total number of vibration mode options matched with the target vibration mode in the vibration mode option set. If the total number of the vibration pattern options matching the target vibration pattern in the vibration pattern option set is 3, and the number of the vibration pattern options matching the target vibration pattern in the plurality of vibration pattern options selected by the tester is 1, the matching rate of the vibration pattern option selected by the tester to the target vibration pattern is 1/3.
Of course, in order to avoid that the tester selects all the vibration mode options in the vibration mode option set, and thus misjudges the selection as the matching condition, when the matching rate of the vibration mode option selected by the tester and the target vibration mode is calculated, the ratio of the number of the vibration mode options selected by the tester to the total number of the vibration mode options matched with the target vibration mode in the vibration mode option set needs to be considered. Specifically, when the number of vibration mode options selected by the tester is greater than the total number, the selection mismatch can be directly judged. If the total number of the vibration mode options matched with the target vibration mode in the vibration mode option set is 3, and the number of the vibration mode options selected by the tester is 4, the selection is directly judged to be unmatched.
The matching rate of the vibration mode option selected by the tester and the target vibration mode can also be: a matching rate of the order of the plurality of vibration pattern options selected by the tester to the order in which the vibration patterns matching in the target vibration pattern occur. For example, the target vibration mode is one long vibration and then one short vibration; the vibration mode option set comprises an option of long vibration and an option of short vibration. If the tester selects the option of long vibration first and then selects the option of short vibration, the sequence of the option of long vibration selected by the tester is 1, and the sequence of the option of short vibration selected by the tester is 2; and the vibration mode matched with the option of long vibration in the target vibration mode is 1, and the vibration mode matched with short vibration is 2, namely the matching rate of the vibration mode option selected by the tester and the target vibration mode is 100%.
The specific value of the threshold may be default of the system, or may be preset by the tester.
In the embodiment of the application, after receiving a motor test instruction, the terminal randomly generates a target vibration mode and displays a vibration mode option set through a display screen for a tester to select; the method and the device have the advantages that the vibration mode option matched with the target vibration mode can be selected from the vibration mode option set only after a tester really feels the vibration process, and the condition that the tester misses the test is avoided. After the tester selects the vibration mode option, the terminal generates a test result of the motor based on a matching result of the selected vibration mode option and the target vibration mode; compared with the method that the test result is directly obtained by a tester, the method and the device are more accurate and reliable in result.
Please refer to fig. 8 and fig. 9, which are schematic flow charts of the vibration testing method according to the embodiment of the present application. The embodiment of the present application is illustrated in a case where a vibration test method is applied to the terminal 100.
When the randomly generated target vibration pattern in step S702 is: when the terminal 100 directly selects at least one vibration mode randomly from the preset vibration mode set, the vibration testing method of the embodiment of the application may include the following steps:
s801, establishing a mapping relation between the vibration mode options and the vibration modes.
When a plurality of vibration mode options are preset in the terminal 100, in order to facilitate the terminal 100 to quickly acquire a vibration mode matched with the vibration mode option selected by the tester, the terminal 100 may directly determine the associated vibration mode of the vibration mode option selected by the tester through the mapping relationship by establishing the mapping relationship between the vibration mode option and the vibration mode, and determine whether the selected vibration mode option is matched with the target vibration mode by determining whether the associated vibration mode is matched with the target vibration mode. When the vibration pattern option is not previously set in the terminal 100, the terminal 100 may generate the vibration pattern option based on a specific numerical value of the target vibration pattern.
S802, receiving a motor test command.
Specifically, refer to step S701, which is not described herein again.
S803, responding to a motor test instruction, and acquiring a preset vibration mode set; wherein the set of vibration modes includes a plurality of vibration modes.
And S804, randomly selecting at least one vibration mode from the vibration mode set as a target vibration mode, and controlling the motor to vibrate according to the target vibration mode.
After receiving the motor test instruction, the terminal 100 directly calls a preconfigured vibration mode set, and randomly selects one or more vibration modes in the vibration mode set as a target vibration mode.
And S805, displaying the vibration mode option set through the display screen.
Wherein the set of vibration pattern options includes a vibration pattern option matching the target vibration pattern.
The vibration pattern option set may be a vibration pattern option set randomly generated by the terminal 100 based on the target vibration pattern. For example, when a plurality of vibration mode options are preset on the terminal 100 and a vibration mode option matching the target vibration mode is included: the vibration mode option set may be composed of at least one vibration mode option selected by the terminal 100 from a plurality of preset vibration mode options that matches the target vibration mode and at least one vibration mode option selected from the plurality of preset vibration mode options that does not match the target vibration mode.
When a plurality of vibration mode options are preset on the terminal 100, but there is no vibration mode option matching the target vibration mode: the vibration mode option set may be composed of at least one vibration mode option generated by the terminal 100 according to a specific value of the target vibration mode and at least one vibration mode option selected from a plurality of preset vibration mode options; at this time, the terminal 100 defines a vibration mode option which is matched with the target vibration mode for the vibration mode option in the vibration mode option set and is equal to the numerical value; specifically, when the target vibration mode is vibrated at a frequency of 180Hz for 7 seconds, the terminal 100 may directly generate a long vibration option and a fast vibration option according to the specific values of the target vibration mode, i.e., 180Hz and 7 seconds, and then select a short vibration option and a slow vibration option from the plurality of vibration mode options to form a vibration mode option set; and defining the option of long vibration and the option of fast vibration as vibration pattern options matching the target vibration pattern.
When there is no vibration mode option on terminal 100: the vibration mode option set may also be a vibration mode option set directly generated by the terminal 100 according to a specific numerical value of the target vibration mode, and an option in the vibration mode option set that is equal to the numerical value is defined as a vibration mode option matched with the target vibration mode; specifically, when the target vibration pattern is vibrated at a frequency of 180Hz for 7 seconds, the terminal 100 may generate an option of short vibration, an option of long vibration, an option of fast vibration, and an option of slow vibration directly according to specific values of the target vibration pattern of 180Hz and 7 seconds to constitute a vibration pattern option set; and defining the option of long vibration and the option of fast vibration as vibration pattern options matching the target vibration pattern.
When the terminal 100 is preset with a plurality of vibration mode option sets and includes a vibration mode option set matching the target vibration mode, the vibration mode option set may also be a vibration mode option set matching the target vibration mode selected by the terminal 100 from the preset plurality of vibration mode option sets. In order to facilitate the terminal 100 to quickly acquire the vibration mode option set matching the target vibration mode, a mapping relationship between the target vibration mode and the vibration mode option set may be established.
And S806, selecting a vibration mode option according to a selection instruction triggered by the tester.
Specifically, refer to step S704, which is not described herein again.
And S807, inquiring the associated vibration mode of the vibration mode option selected by the tester according to the preset mapping relation.
S808, when the associated vibration mode is the same as the target vibration mode, matching the vibration mode option selected by the tester with the target vibration mode; or the like, or, alternatively,
when the associated vibration pattern is not the same as the target vibration pattern, the vibration pattern option selected by the tester is not matched with the target vibration pattern.
When the number of the vibration mode options selected by the tester is multiple, the associated vibration mode of each vibration mode option selected by the tester needs to be inquired, and whether each associated vibration mode is matched with the target vibration mode is judged. In order to facilitate the terminal 100 to quickly determine whether the associated vibration pattern matches the target vibration pattern, a mapping relationship between the associated vibration pattern and the target vibration pattern may be established.
For example, the target vibration mode is vibration at a frequency of 180Hz for 7 seconds; the set of vibration mode options includes a short vibration option, a long vibration option, a fast vibration option, and a slow vibration option. Wherein, the associated vibration mode of the short vibration option is vibration for 3 seconds; the associated vibration mode of the long vibration option is vibration for 7 seconds; the associated vibration mode of the fast vibration option is that the vibration frequency is 180 Hz; the associated vibration mode for the slow vibration option is a vibration frequency of 80 Hz. The vibration modes matching the target vibration mode are long vibration and fast vibration. When the tester selects the option of long vibration, matching with the target vibration mode; when the tester selects the option of short vibration, it does not match the target vibration pattern.
S809, when the vibration mode option selected by the tester is matched with the target vibration mode, generating a test identifier which represents that the motor vibration test passes; or the like, or, alternatively,
and when the vibration mode option selected by the tester is not matched with the target vibration mode, displaying the vibration mode option matched with the target vibration mode through the display screen.
Whether the vibration mode option selected by the tester matches the target vibration mode or not can be referred to the step S705, which is not described herein again.
And S810, acquiring a human face image of the tester through the camera.
The face image of the tester is collected, so that the working state of the tester can be monitored conveniently. This step is not limited to being completed in step S810, and may be implemented in any step before S810.
S811, carrying out face recognition based on the face image to obtain the identity of the tester, and binding the identity with the test result of the motor.
By binding the identity of the tester with the test result of the motor, when the test result has a problem, the tester can directly trace back to the specific tester according to the bound identity.
When the randomly generated target vibration pattern in step S702 is: when the terminal 100 randomly generates at least one vibration mode based on one or more of a vibration frequency, a vibration time, and a vibration frequency, the vibration testing method of the embodiment of the present application may further include the following steps:
s901, receiving a motor test instruction.
Specifically, refer to step S701, which is not described herein again.
And S902, responding to a motor test instruction, and randomly generating one or more of vibration frequency, vibration time and vibration times.
One or more of the randomly generated vibration frequency, vibration time, and vibration times include a randomly generated vibration frequency, a randomly generated vibration time, a randomly generated vibration times, a randomly generated vibration frequency and vibration time, a randomly generated vibration frequency and vibration times, a randomly generated vibration time and vibration times, and a randomly generated vibration frequency, vibration time, and vibration times. When the number of randomly generated vibrations includes a plurality of times, the time interval of each vibration may also be randomly generated.
And S903, generating a target vibration mode based on one or more of the vibration frequency, the vibration time and the vibration frequency, and controlling the motor to vibrate in the target vibration mode.
For example, when the randomly generated vibration frequency is 180Hz, then the generated target vibration pattern may be vibrated at a frequency of 180 Hz.
And S904, displaying the vibration mode option set through the display screen.
Wherein the set of vibration pattern options includes a vibration pattern option matching the target vibration pattern.
Specifically, refer to step S805, which is not described herein again.
And S905, selecting a vibration mode option according to a selection instruction triggered by a tester.
Specifically, refer to step S704, which is not described herein again.
S906, when the vibration mode option selected by the tester is matched with the target vibration mode, generating a test identification which represents that the motor vibration test passes; or the like, or, alternatively,
and when the vibration mode option selected by the tester is not matched with the target vibration mode, displaying the vibration mode option matched with the target vibration mode through the display screen.
Whether the vibration mode option selected by the tester matches the target vibration mode or not can be referred to the step S705, which is not described herein again.
And S907, acquiring a face image of the tester through a camera.
The face image of the tester is collected, so that the working state of the tester can be monitored conveniently. This step is not limited to being completed in step S907, and may be implemented in any step before S907.
And S908, carrying out face recognition based on the face image to obtain an identity of the tester, and binding the identity with the test result of the motor.
By binding the identity of the tester with the test result of the motor, when the test result has a problem, the tester can directly trace back to the specific tester according to the bound identity.
In the embodiment of the application, after receiving a motor test instruction, the terminal randomly generates a target vibration mode and displays a vibration mode option set through a display screen for a tester to select; the method and the device have the advantages that the vibration mode option matched with the target vibration mode can be selected from the vibration mode option set only after a tester really feels the vibration process, and the condition that the tester misses the test is avoided. After the tester selects the vibration mode option, the terminal generates a test result of the motor based on a matching result of the selected vibration mode option and the target vibration mode; compared with the method that the test result is directly obtained by a tester, the method and the device are more accurate and reliable in result.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 10, a schematic structural diagram of a vibration testing apparatus according to an exemplary embodiment of the present application is shown. The vibration testing apparatus may be implemented as all or a portion of the terminal 100 by software, hardware, or a combination of both. The device includes:
a receiving module 1001 for receiving a motor test instruction;
a response module 1002, configured to randomly generate a target vibration pattern in response to a motor test instruction, and control the motor to vibrate in the target vibration pattern;
a display module 1003 configured to display the vibration mode option set through a display screen; wherein the set of vibration pattern options includes a vibration pattern option matching the target vibration pattern;
the selection module 1004 is used for selecting a vibration mode option according to a selection instruction triggered by a tester;
a generating module 1005, configured to generate a test result of the motor according to a matching result between the vibration mode option selected by the tester and the target vibration mode.
Optionally, the response module 1002 may include:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring a preset vibration mode set; wherein the set of vibration modes comprises a plurality of vibration modes;
a first generating unit for randomly selecting at least one vibration pattern from the set of vibration patterns as a target vibration pattern.
Optionally, the apparatus may further comprise:
the query module is used for querying the associated vibration mode of the vibration mode option selected by the tester according to the preset mapping relation;
the judging module is used for matching the vibration mode option selected by the tester with the target vibration mode when the associated vibration mode is the same as the target vibration mode; or, when the associated vibration pattern is not the same as the target vibration pattern, the vibration pattern option selected by the tester is not matched with the target vibration pattern.
Optionally, the apparatus may further comprise:
and the establishing module is used for establishing a mapping relation between the vibration mode options and the vibration modes.
Optionally, the response module 1002 may include:
a second generating unit for randomly generating one or more of a vibration frequency, a vibration time, and a vibration frequency;
a third generating unit for generating the target vibration pattern based on one or more of the vibration frequency, the vibration time, and the vibration frequency.
Optionally, the generating module 1005 may include:
when the vibration mode option selected by the tester is matched with the target vibration mode, generating a test identifier which represents that the motor vibration test passes; or the like, or, alternatively,
and when the vibration mode option selected by the tester is not matched with the target vibration mode, displaying the vibration mode option matched with the target vibration mode through the display screen.
It should be noted that, when the apparatus provided in the foregoing embodiment executes the vibration testing method, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the embodiments of the vibration testing method provided by the above embodiments belong to the same concept, and details of implementation processes are found in the embodiments of the method, which are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the embodiment of the application, after receiving a motor test instruction, the terminal randomly generates a target vibration mode and displays a vibration mode option set through a display screen for a tester to select; the method and the device have the advantages that the vibration mode option matched with the target vibration mode can be selected from the vibration mode option set only after a tester really feels the vibration process, and the condition that the tester misses the test is avoided. After the tester selects the vibration mode option, the terminal generates a test result of the motor based on a matching result of the selected vibration mode option and the target vibration mode; compared with the method that the test result is directly obtained by a tester, the method and the device are more accurate and reliable in result.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps in the embodiments shown in fig. 7 to 10, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 7 to 10, which is not described herein again.
The present application also provides a terminal 100 comprising a processor and a memory; wherein the memory stores a computer program adapted to be loaded and executed by the processor to implement the vibration testing method of the various embodiments as described above.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (10)

1. A vibration testing method, comprising the steps of:
receiving a motor test instruction;
responding to the motor test instruction, randomly generating a target vibration mode, and controlling the motor to vibrate in the target vibration mode;
displaying a set of vibration mode options via a display screen; wherein the set of vibration pattern options includes a vibration pattern option matching the target vibration pattern;
selecting a vibration mode option according to a selection instruction triggered by a tester;
and generating a test result of the motor according to the matching result of the vibration mode option selected by the tester and the target vibration mode.
2. The method of claim 1, wherein the randomly generating the target vibration pattern comprises:
acquiring a preset vibration mode set; wherein the set of vibration modes comprises a plurality of vibration modes;
randomly selecting at least one vibration mode from the set of vibration modes as the target vibration mode.
3. The method of claim 2, further comprising:
inquiring the associated vibration mode of the vibration mode option selected by the tester according to a preset mapping relation;
when the associated vibration pattern is the same as the target vibration pattern, the vibration pattern option selected by the tester is matched with the target vibration pattern; or when the associated vibration mode is not the same as the target vibration mode, the vibration mode option selected by the tester is not matched with the target vibration mode.
4. The method of claim 3, further comprising:
and establishing a mapping relation between the vibration mode options and the vibration modes.
5. The method of claim 1, wherein the randomly generating the target vibration pattern comprises:
randomly generating one or more of vibration frequency, vibration time and vibration times;
generating a target vibration pattern based on one or more of the vibration frequency, vibration time, and vibration number.
6. The method of claim 1, wherein generating the test results for the motor based on the matching of the vibration pattern option selected by the tester to the target vibration pattern comprises:
when the vibration mode option selected by the tester is matched with the target vibration mode, generating a test identifier which represents that the motor vibration test passes; or the like, or, alternatively,
and when the vibration mode option selected by the tester is not matched with the target vibration mode, displaying the vibration mode option matched with the target vibration mode through a display screen.
7. The method of claim 1, further comprising:
acquiring a face image of the testing personnel through a camera;
and carrying out face recognition based on the face image to obtain the identity of the tester, and binding the identity with the test result of the motor.
8. A vibration testing apparatus, comprising:
the receiving module is used for receiving a motor test instruction;
the response module is used for responding to the motor test instruction, randomly generating a target vibration mode and controlling the motor to vibrate in the target vibration mode;
the display module is used for displaying the vibration mode option set through a display screen; wherein the set of vibration pattern options includes a vibration pattern option matching the target vibration pattern;
the selection module is used for selecting a vibration mode option according to a selection instruction triggered by a tester;
and the generating module is used for generating a test result of the motor according to the matching result of the vibration mode option selected by the tester and the target vibration mode.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any of claims 1 to 7.
10. A terminal, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.
CN201910942359.3A 2019-09-30 2019-09-30 Vibration testing method and device, storage medium and terminal Active CN110702346B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910942359.3A CN110702346B (en) 2019-09-30 2019-09-30 Vibration testing method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910942359.3A CN110702346B (en) 2019-09-30 2019-09-30 Vibration testing method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110702346A CN110702346A (en) 2020-01-17
CN110702346B true CN110702346B (en) 2021-06-18

Family

ID=69197410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910942359.3A Active CN110702346B (en) 2019-09-30 2019-09-30 Vibration testing method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110702346B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416776B (en) * 2020-11-24 2022-12-13 天津五八到家货运服务有限公司 Selection method and device of operating environment, test equipment and storage medium
CN115824387A (en) * 2022-10-28 2023-03-21 瑞声开泰声学科技(上海)有限公司 Vibration signal testing method and device, storage medium and electronic device
CN116659782B (en) * 2022-11-22 2023-12-12 荣耀终端有限公司 Motor testing method and apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568041A (en) * 2008-04-21 2009-10-28 鸿富锦精密工业(深圳)有限公司 Mobile phone vibration function testing system and mobile phone vibration function testing method
CN102840910B (en) * 2011-06-23 2014-05-14 启碁科技股份有限公司 Electronic device with vibration test function and method for establishing vibration test algorithm
WO2014043391A1 (en) * 2012-09-12 2014-03-20 Finley Lee Ledbetter System and method for vibration analysis
CN105572587A (en) * 2015-12-08 2016-05-11 惠州Tcl移动通信有限公司 Mobile terminal motor automatic detection method and system
CN106054075A (en) * 2016-06-27 2016-10-26 联想(北京)有限公司 Method for determining vibration motor driving parameter and electronic device
CN107202631A (en) * 2017-07-27 2017-09-26 信利光电股份有限公司 A kind of method, system and the single-chip microcomputer of test vibration motor performance

Also Published As

Publication number Publication date
CN110702346A (en) 2020-01-17

Similar Documents

Publication Publication Date Title
CN110702346B (en) Vibration testing method and device, storage medium and terminal
CN111459586B (en) Remote assistance method, device, storage medium and terminal
WO2020156199A1 (en) Application login method and device, terminal and storage medium
CN111225138A (en) Camera control method and device, storage medium and terminal
CN111125663B (en) Control method and device for child mode, storage medium and terminal
CN111124668A (en) Memory release method and device, storage medium and terminal
CN110413347A (en) The processing method of advertisement, device, storage medium and terminal in application program
CN112218130A (en) Control method and device for interactive video, storage medium and terminal
CN111913614B (en) Multi-picture display control method and device, storage medium and display
CN113825022B (en) Method and device for detecting play control state, storage medium and electronic equipment
CN113126859A (en) Contextual model control method, contextual model control device, storage medium and terminal
CN112995562A (en) Camera calling method and device, storage medium and terminal
CN115379005A (en) Message processing method and device, storage medium and electronic equipment
CN113114849A (en) Alarm clock reminding method and device, storage medium and terminal
CN113419650A (en) Data moving method and device, storage medium and electronic equipment
CN111538997A (en) Image processing method, image processing device, storage medium and terminal
CN111859999A (en) Message translation method, device, storage medium and electronic equipment
CN110674340A (en) Audio testing method and device, storage medium and terminal
WO2023273936A1 (en) Wallpaper setting method and apparatus, and storage medium and electronic device
CN111212411B (en) File transmission method, device, storage medium and terminal
CN117591488B (en) File detection method and device, storage medium and electronic equipment
CN112612633B (en) Inter-process communication method, inter-process communication device, storage medium and terminal
CN114443204A (en) Interface content generation method and device, storage medium and computer equipment
CN107800618B (en) Picture recommendation method and device, terminal and computer-readable storage medium
CN115129403A (en) Animation display method and device, storage medium 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
GR01 Patent grant