CN108124042B - Device fault detection method and device and mobile terminal - Google Patents

Device fault detection method and device and mobile terminal Download PDF

Info

Publication number
CN108124042B
CN108124042B CN201711375591.0A CN201711375591A CN108124042B CN 108124042 B CN108124042 B CN 108124042B CN 201711375591 A CN201711375591 A CN 201711375591A CN 108124042 B CN108124042 B CN 108124042B
Authority
CN
China
Prior art keywords
audio
voice signal
mobile terminal
signal
preset
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
CN201711375591.0A
Other languages
Chinese (zh)
Other versions
CN108124042A (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.)
Shaanxi Teana Digital Technology Co ltd
Original Assignee
Xiamen Meitu Mobile 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 Xiamen Meitu Mobile Technology Co Ltd filed Critical Xiamen Meitu Mobile Technology Co Ltd
Priority to CN201711375591.0A priority Critical patent/CN108124042B/en
Publication of CN108124042A publication Critical patent/CN108124042A/en
Application granted granted Critical
Publication of CN108124042B publication Critical patent/CN108124042B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The invention provides a device fault detection method and device and a mobile terminal, and the method and device are applied to the mobile terminal. The mobile terminal comprises a sounding device and an audio acquisition device, and the method comprises the following steps: and superposing a test audio signal with preset intensity in the voice signal to be output to obtain a first voice signal and play the first voice signal through a sound production device. And acquiring the first voice signal played by the sound generating device through the audio acquisition device to obtain a second voice signal. And judging whether the second voice signal has preset identification information or not, and if so, comparing the strength of the second voice signal with the preset signal strength to detect whether a sounding device and an audio acquisition device of the mobile terminal have faults or not. Therefore, the fault detection can be carried out on the sounding device and the audio acquisition device in the using process of the mobile terminal, and the mobile terminal is very convenient.

Description

Device fault detection method and device and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a device fault detection method and device and a mobile terminal.
Background
In the using process of the mobile terminal, the problems of low call volume, low playing volume and the like often occur, so that the user is off the phone. However, the problem of causing the volume of the mobile terminal to be small may not be the problem of the device itself but may be caused by a reason unknown to the user, such as the microphone or speaker outlet of the device being blocked by a foreign object. If the user quits the machine due to the reasons, the loss is not meaningful for manufacturers, and the user is very troublesome, so that the user experience is influenced.
Disclosure of Invention
In order to overcome the above-mentioned deficiencies in the prior art, the present invention provides a device failure detection method applied to a mobile terminal, the mobile terminal including a sound generation device and an audio acquisition device, the method including:
superposing a test audio signal with preset intensity in the voice signal to be output to obtain a first voice signal and playing the first voice signal through the sound generating device, wherein the test audio signal comprises preset identification information;
acquiring a first voice signal played by the sound generating device through the audio acquisition device to obtain a second voice signal;
analyzing the second voice signal and judging whether the second voice signal has the identification information;
and when the second voice signal has the identification information, comparing the strength of the second voice signal with a preset signal strength to detect whether the sounding device and the audio acquisition device have faults or not.
Another object of the present invention is to provide a device failure detection apparatus applied to a mobile terminal, the apparatus including:
the test module is used for superposing a test audio signal with preset intensity in the voice signal to be output to obtain a first voice signal and playing the first voice signal through the sound generating device, wherein the test audio signal comprises preset identification information;
the acquisition module is used for acquiring the first voice signal played by the sound generating device through the audio acquisition device to obtain a second voice signal;
the analysis module is used for analyzing the second voice signal and judging whether the second voice signal has the identification information;
and the fault detection module is used for comparing the strength of the second voice signal with a preset signal strength when the second voice signal has the identification information so as to detect whether the sound production device and the audio acquisition device have faults or not.
Another objective of the present invention is to provide a mobile terminal, which includes a memory, a processor, a sound generating device and an audio collecting device, wherein the sound generating device and the audio collecting device are electrically connected to the processor respectively;
the memory is stored with a device failure detection device provided by the embodiment of the invention, and the device failure detection device is controlled and executed by the processor.
Another object of the present invention is to provide a computer-readable storage medium, on which a computer program is stored, which when executed implements the device failure detection method provided by the embodiments of the present invention.
Compared with the prior art, the invention has the following beneficial effects:
according to the device fault detection method, device and mobile terminal provided by the invention, the test audio signal with the preset intensity is superposed in the voice signal to be output, so that the first voice signal is obtained and played through the sound generation device. The first voice signal played by the sound generating device is collected through the audio collecting device, so that a second voice signal is obtained. And judging whether the second voice signal has preset identification information or not, and if so, comparing the strength of the second voice signal with the preset signal strength to detect whether a sounding device and an audio acquisition device of the mobile terminal have faults or not. Therefore, fault detection can be carried out on the sounding device and the audio acquisition device in the normal use process of the mobile terminal, so that corresponding prompt can be carried out according to the detection result, and the phenomenon that a user moves back due to the fact that dust is blocked and the like is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a device failure detection method according to an embodiment of the present invention;
fig. 3 is a functional block diagram of a device failure detection apparatus according to an embodiment of the present invention;
fig. 4 is a functional block diagram of another device failure detection apparatus according to an embodiment of the present invention.
Icon: 100-a mobile terminal; 110-a memory; 120-a processor; 130-a sound producing device; 140-an audio acquisition device; 200-device failure detection means; 210-a test module; 220-an acquisition module; 230-an analysis module; 240-fault detection module; 250-a first detection module; 260-second detection module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Fig. 1 is a block diagram of a mobile terminal 100 according to an embodiment of the present invention. The mobile terminal 100 may be any mobile device having audio acquisition and audio playing functions, such as a mobile phone, a notebook computer, a PDA (Personal Digital Assistant), and the like.
The mobile terminal 100 includes a device failure detection apparatus 200, a memory 110, a processor 120, a sounding device 130, and an audio collecting device 140.
The memory 110, the processor 120, the sound generator 130 and the audio collector 140 are electrically connected directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The device failure detection apparatus 200 includes at least one software functional module that may be stored in the memory 110 in the form of software (software) or firmware (firmware) or solidified in an Operating System (OS) of the mobile terminal 100. The processor 120 is used for executing executable modules stored in the memory 110, such as software functional modules and computer programs included in the device failure detection apparatus 200.
The Memory 110 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 120 may be an integrated circuit chip having signal processing capabilities. The processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP)), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The sound generating device 130 may be any device capable of generating sound, such as a speaker, a loudspeaker, etc. The audio acquisition device 140 may be a microphone.
In this embodiment, the sound generating device 130 and the audio capturing device 140 are electrically connected to the processor 120.
The inventor researches and finds that the user often quits the mobile terminal 100 because the call volume or the play volume of the mobile terminal 100 is small, but in practice, most of the mobile terminals 100 have small volume because the hole corresponding to the sound generating device 130 and/or the hole corresponding to the audio collecting device 140 are blocked by dust and the like. Only the blocked dust and other substances need to be cleaned, so that the volume of the mobile terminal 100 can be recovered to be normal. However, when the user actually uses the audio device 130 or the audio capturing device 140, the user experience is poor, and for manufacturers, the failure rate is high, which causes unnecessary loss.
Therefore, the inventor proposes a device failure detection method and apparatus, which can detect whether the sound generation device 130 and the audio acquisition device 140 have failed during the use of the mobile terminal 100, so as to provide a basis for measures that may be taken later (e.g., outputting a prompt message, etc.).
Fig. 2 is a schematic flow chart of a device failure detection method according to an embodiment of the present invention, where the device failure detection method is applied to the mobile terminal 100 shown in fig. 1. The specific process and steps shown in FIG. 1 are described in detail below.
Step S110, superimposing a test audio signal with a preset intensity in the to-be-output voice signal to obtain a first voice signal, and playing the first voice signal through the sound generating device 130, where the test audio signal includes preset identification information.
Wherein the preset identification information may be a preset fixed sequence code. And when a certain audio signal comprises the preset identification information, the audio signal is represented as a test audio signal. The preset strength is a predetermined strength of the test audio signal, and generally, the same type of mobile terminal 100 may perform a test using the test audio signal with the same preset strength.
The first voice signal is a voice signal obtained by superimposing the test audio signal on the voice signal to be output of the mobile terminal 100, that is, the first voice signal is a voice signal including the test audio signal. Since the test audio signal includes the preset identification information, the first voice signal also includes the preset identification information.
Step S120, the audio collecting device 140 collects the first voice signal played by the sound generating device 130, so as to obtain a second voice signal.
The second voice signal refers to the first voice signal acquired by the audio acquisition device 140, and correspondingly, the second voice signal also includes the preset identification information. The strength of the second speech signal will typically be lower than the strength of the first speech signal due to attenuation during signal transmission.
Step S130, analyzing the second voice signal, and determining whether the second voice signal has the identification information.
During normal use, the user may control the sound generating device 130 to play a corresponding voice signal, and thus, the sound generating device 130 may play other voice signals in addition to the voice signal (i.e., the first voice signal) including the test audio signal. Therefore, after the audio acquisition device 140 acquires the first voice signal played by the sound generation device 130 to obtain a second voice signal, the second voice signal needs to be detected to determine whether the second voice signal includes a signal for testing, and if so, further detection is needed.
Step S140, when the second voice signal has the identification information, comparing the strength of the second voice signal with a preset signal strength to detect whether the sound generating device 130 and the audio collecting device 140 are faulty.
Wherein the preset signal strength may be determined from the test audio signal. In detail, the determination may be made according to the strength of the test audio signal, that is, the preset strength.
For example, assuming that a large number of sound generating devices 130 and audio collecting devices 140 of the mobile terminal X are tested, the test result shows that if the sound generating devices 130 of the mobile terminal X play a test audio signal with a signal intensity a, and the lowest intensity of the test audio signal collected by the audio collecting devices 140 of the mobile terminal X is b, b may be taken as the preset signal intensity.
If the sound generating device 130 of the mobile terminal X plays the test audio signal with the signal intensity a, the average intensity of the test audio signal collected by the audio collecting device 140 of the mobile terminal X is c, and c may also be used as the preset signal intensity.
In this embodiment, the mobile terminal 100 may only include one audio capturing device 140, in which case, in step S140, the step of comparing the strength of the second voice signal with a preset signal strength to detect whether the sound generating device 130 and the audio capturing device 140 are faulty may be implemented by the following sub-steps:
and judging whether the intensity of the second voice signal reaches the preset signal intensity, and if not, determining that at least one of the sound production device 130 and the audio acquisition device 140 has a fault.
That is, when the mobile terminal 100 includes one audio capturing device 140, the device failure detection method provided in the embodiment of the present invention can determine whether the sound generating device 130 and the audio capturing device 140 are failed as a whole, so as to provide a basis for measures that may be taken later.
Optionally, in this embodiment, the mobile terminal 100 may include two audio capturing devices 140, namely a first audio capturing device and a second audio capturing device.
In this case, in the step S140, the step of comparing the strength of the second voice signal with a preset signal strength to detect whether the sound generating device 130 and the audio collecting device 140 are faulty may be implemented by the following sub-steps:
judging whether a second voice signal acquired by the first audio acquisition device reaches the preset signal intensity or not;
judging whether a second voice signal acquired by the second audio acquisition device reaches the preset signal intensity or not;
when the second voice signals acquired by the first audio acquisition device and the second audio acquisition device do not reach the preset signal intensity, determining that the sounding device 130 has a fault;
when the second voice signal collected by the first audio collection device does not reach the preset signal intensity and the second voice signal collected by the second audio collection device reaches the preset signal intensity, determining that the first audio collection device fails;
and when the second voice signal collected by the second audio collection device does not reach the preset signal intensity and the second voice signal collected by the first audio collection device reaches the preset signal intensity, determining that the second audio collection device breaks down.
The inventor has found that, in practical applications, when the mobile terminal 100 includes two or more audio capture devices 140, the two or more audio capture devices 140 are usually disposed at different positions of the mobile terminal 100, and the corresponding holes of the audio capture devices 140 face different directions. Taking the example that the mobile terminal 100 includes two audio capturing devices 140, typically, one of the two audio capturing devices 140 is disposed on the top of the mobile terminal 100, and the other is disposed on the back of the mobile terminal 100.
Therefore, the holes corresponding to the two audio acquisition devices 140 are less likely to be blocked by dust or the like. Moreover, when the device fault detection method and apparatus provided in this embodiment are used, the plugging of the hole corresponding to any one of the audio capture devices 140 is detected, and therefore, it is necessary to keep the plugging of the hole corresponding to one of the audio capture devices 140 until the plugging of the hole corresponding to another one of the audio capture devices 140 is performed, and finally, a state in which the holes corresponding to two audio capture devices 140 are plugged is achieved, which is less likely.
Based on the above analysis, the inventor designs that when neither of the second voice signals collected by the first audio collecting device and the second audio collecting device reaches the preset signal strength, it is determined that the sound generating device 130 is out of order. And when the intensity of the second voice signal acquired by only one of the first audio acquisition device and the second audio acquisition device does not reach the preset signal intensity, determining that the device has a fault. Thus, the fault detection of the sound generating device 130 and the audio collecting device 140 can be simultaneously realized.
Alternatively, when the mobile terminal 100 includes a plurality of audio capture devices 140, it may be implemented in a similar manner. In detail, in this case, in the step S140, the step of comparing the strength of the second voice signal with a preset signal strength to detect whether the sound generating device 130 and the audio collecting device 140 are faulty may be implemented by the following sub-steps:
counting the number of the audio acquisition devices 140 with the intensity of the second voice signal acquired in the mobile terminal 100 being smaller than the preset signal intensity, determining that the sound generation device 130 fails if the number of the audio acquisition devices 140 included in the mobile terminal 100 is equal to the number of the audio acquisition devices 140 included in the mobile terminal 100, otherwise determining that the audio acquisition device 140 with the intensity of the second voice signal acquired being smaller than the preset signal intensity fails.
Optionally, in this embodiment, the frequency of the test audio signal may be greater than 20KHZ, so that the test audio signal played by the sound generating device 130 cannot be heard by human ears, and thus the fault detection may be performed without disturbing the user, thereby improving the user experience.
Optionally, the method may further comprise the steps of:
when the fault of any one of the sounding device 130 and the audio collecting device 140 is detected, corresponding prompt information is output.
For example, when a problem is detected in the sound generating device 130, a prompt message such as "please check whether the hole of the sound generating device 130 is blocked" or "please clean up dust in the hole of the sound generating device 130" may be output. For another example, in the case of including the first audio capturing device and the second audio capturing device, if it is detected that the first audio capturing device fails, a prompt message "please clean the hole of the first audio capturing device" may be output; if the second audio acquisition device is detected to be out of order, prompt information of 'please clean the second audio acquisition device hole' can be output; if the sounding device is detected to be out of order, prompt information of 'please clean the sounding device hole' can be output.
Thus, the user can clean the mobile terminal in time to recover the volume of the mobile terminal 100, thereby avoiding the situation that the mobile terminal is taken off due to the small volume caused by the problems of dust blockage and the like.
In addition, in practical applications, the reason that the volume of the mobile terminal 100 is small may be the reason of the device itself, in addition to the reason of dust blockage, and therefore, the detected fault information may be fed back to the corresponding server for the manufacturer to analyze.
Thus, the device failure detection method may further include the steps of:
when any one of the sounding device 130 and the audio acquisition device 140 is detected to be out of order, recording corresponding failure information;
and sending the recorded fault information to the server while the mobile terminal 100 feeds back system fault information to the server.
The server refers to a server of a manufacturer of the mobile terminal 100, and the mobile terminal 100 may communicate with the server.
The inventor finds that a link for a user to feed back system fault information is usually provided in the mobile terminal 100, and the user can feed back the system fault information to the server by clicking the link.
In this embodiment, while the mobile terminal 100 feeds back system fault information to the server, the currently recorded fault information may be sent to the server. Therefore, the fault information collected without the operation of the user can be fed back to the server, so that the manufacturer can perform corresponding analysis according to the fault information.
Alternatively, the device failure detection method provided in the present embodiment may have different execution conditions.
For example, a test key may be provided in the mobile terminal 100, and a tester of a user or a manufacturer (including a manufacturer selling or manufacturing the mobile terminal 100) may trigger the mobile terminal 100 to perform step S110 through the test key. The test key may be a virtual key or a physical key, which is not limited in this embodiment.
For another example, the device failure detection method provided in this embodiment may be performed every preset time interval to detect the sound-producing device 130 and the audio capture device 140. In this case, there may be a case where there is no voice signal to be output in the mobile terminal 100, and at this time, the amplitude of the voice signal to be output may be defaulted to 0.
For another example, the device failure detection method provided by the present embodiment may be triggered and executed when the user answers a phone call or plays music. In this case, as an embodiment, before step S110, the method may further include the steps of:
detecting whether the mobile terminal 100 performs voice communication with an external device;
and when the mobile terminal 100 is detected to perform voice communication with an external device, the step of superimposing a test audio signal with a preset intensity on the voice signal to be output is performed.
The external device may be any device having a voice communication function. The voice communication includes voice communication realized by telephone communication, social software and the like.
As another embodiment, before step S110, the method may further include the steps of:
detecting whether the mobile terminal 100 receives an audio file playing instruction;
and when the mobile terminal 100 receives an audio file playing instruction, executing the step of superimposing the test audio signal with the preset intensity in the voice signal to be output.
The audio file playing instruction may be an instruction to play music or an instruction to play video, which is not limited in this embodiment.
As shown in fig. 3, an embodiment of the present invention further provides a device failure detection apparatus 200, which is applied to the mobile terminal 100, where the mobile terminal 100 includes a sounding device 130 and an audio collecting device 140. The device failure detection apparatus 200 includes a testing module 210, an acquisition module 220, an analysis module 230, and a failure detection module 240.
The test module 210 is configured to superimpose a test audio signal with a preset intensity on a to-be-output voice signal to obtain a first voice signal and play the first voice signal through the sound generating device 130, where the test audio signal includes preset identification information.
In this embodiment, the description of the test module 210 may specifically refer to the detailed description of step S110 shown in fig. 2. That is, the step S110 may be performed by the test module 210.
The collecting module 220 is configured to collect the first voice signal played by the sound generating device 130 through the audio collecting device 140 to obtain a second voice signal.
In this embodiment, the description of the acquisition module 220 may specifically refer to the detailed description of the step S120 shown in fig. 2, that is, the step S120 may be executed by the acquisition module 220.
The analysis module 230 is configured to analyze the second voice signal, and determine whether the second voice signal has the identification information.
In this embodiment, the description of the analysis module 230 may specifically refer to the detailed description of the step S130 shown in fig. 2, that is, the step S130 may be executed by the analysis module 230.
Alternatively, the mobile terminal 100 may include a first audio capturing device and a second audio capturing device. The analysis module 230 may compare the intensity of the second voice signal with a preset signal intensity to detect whether the sound generating device 130 and the audio collecting device 140 are malfunctioning by:
judging whether a second voice signal acquired by the first audio acquisition device reaches the preset signal intensity or not;
judging whether a second voice signal acquired by the second audio acquisition device reaches the preset signal intensity or not;
when the second voice signals acquired by the first audio acquisition device and the second audio acquisition device do not reach the preset signal intensity, determining that the sounding device 130 has a fault;
when the second voice signal collected by the first audio collection device does not reach the preset signal intensity and the second voice signal collected by the second audio collection device reaches the preset signal intensity, determining that the first audio collection device fails;
and when the second voice signal collected by the second audio collection device does not reach the preset signal intensity and the second voice signal collected by the first audio collection device reaches the preset signal intensity, determining that the second audio collection device breaks down.
The failure detection module 240 is configured to compare the strength of the second voice signal with a preset signal strength when the second voice signal has the identification information, so as to detect whether the sound generating device 130 and the audio collecting device 140 have a failure.
In this embodiment, the description of the failure detection module 240 may specifically refer to the detailed description of step S140 shown in fig. 2, that is, the failure detection module 240 may be executed by step S140.
Optionally, as shown in fig. 4, the device failure detection apparatus 200 may further include a first detection module 250.
The first detecting module 250 is configured to detect whether the mobile terminal 100 performs voice communication with an external device, and when detecting that the mobile terminal 100 performs voice communication with the external device, trigger the testing module 210 to superimpose a test audio signal with a preset intensity on a voice signal to be output.
In this embodiment, the detailed description of the relevant steps in the above contents may be referred to for the description of the first detection module 250.
Optionally, the device failure detection apparatus 200 may further include a second detection module 260.
The second detecting module 260 is configured to detect whether the mobile terminal 100 receives an audio file playing instruction, and trigger the testing module 210 to superimpose a test audio signal with a preset intensity on a to-be-output voice signal when the mobile terminal 100 receives the audio file playing instruction.
In this embodiment, the detailed description of the relevant steps in the above contents may be referred to for the description of the second detection module 260.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed, implements the device fault detection method provided by the embodiments of the present invention.
In summary, according to the device fault detection method, device and mobile terminal 100 provided by the present invention, the test audio signal with the preset intensity is superimposed on the voice signal to be output, so as to obtain the first voice signal and play the first voice signal through the sound generation device 130. The first voice signal played by the sound generating device 130 is collected by the audio collecting device 140, so as to obtain a second voice signal. And judging whether the second voice signal has preset identification information, if so, comparing the strength of the second voice signal with a preset signal strength to detect whether the sound generating device 130 and the audio collecting device 140 of the mobile terminal 100 have faults. Therefore, fault detection can be performed on the sounding device 130 and the audio collecting device 140 in the normal use process of the mobile terminal 100, so that corresponding prompt can be performed according to the detection result, and the user is prevented from moving back due to the problems of dust blockage and the like.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A device fault detection method is applied to a mobile terminal, wherein the mobile terminal comprises a sounding device and an audio acquisition device, and the method comprises the following steps:
when the mobile terminal is detected to perform voice communication with external equipment or when the mobile terminal receives an audio file playing instruction, superposing a test audio signal with preset intensity in a voice signal to be output to obtain a first voice signal and playing the first voice signal through the sound generating device, wherein the test audio signal comprises preset identification information; the frequency of the test audio signal is more than 20 KHz;
acquiring a first voice signal played by the sound generating device through the audio acquisition device to obtain a second voice signal;
analyzing the second voice signal and judging whether the second voice signal has the identification information;
and when the second voice signal has the identification information, comparing the strength of the second voice signal with a preset signal strength to detect whether the sounding device and the audio acquisition device have faults or not.
2. The method according to claim 1, wherein the mobile terminal comprises a first audio capture device and a second audio capture device; comparing the intensity of the second voice signal with a preset signal intensity to detect whether the sound generating device and the audio collecting device have faults or not, comprising:
judging whether a second voice signal acquired by the first audio acquisition device reaches the preset signal intensity or not;
judging whether a second voice signal acquired by the second audio acquisition device reaches the preset signal intensity or not;
when the second voice signals acquired by the first audio acquisition device and the second audio acquisition device do not reach the preset signal intensity, determining that the sounding device has a fault;
when the second voice signal collected by the first audio collection device does not reach the preset signal intensity and the second voice signal collected by the second audio collection device reaches the preset signal intensity, determining that the first audio collection device fails;
and when the second voice signal collected by the second audio collection device does not reach the preset signal intensity and the second voice signal collected by the first audio collection device reaches the preset signal intensity, determining that the second audio collection device breaks down.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and outputting corresponding prompt information when detecting that any one of the sounding device and the audio acquisition device has a fault.
4. The method according to claim 1 or 2, wherein the mobile terminal is communicatively connected to a server, the method further comprising:
when any one of the sound generating device and the audio collecting device is detected to be out of order, corresponding failure information is recorded;
and sending the recorded fault information to the server while the mobile terminal feeds back system fault information to the server.
5. The device fault detection device is applied to a mobile terminal, wherein the mobile terminal comprises a sounding device and an audio acquisition device, and the device comprises:
the mobile terminal comprises a test module, a sound generation device and a control module, wherein the test module is used for superposing a test audio signal with preset intensity in a to-be-output voice signal to obtain a first voice signal and playing the first voice signal through the sound generation device when detecting that the mobile terminal is in voice communication with external equipment or when the mobile terminal receives an audio file playing instruction, and the test audio signal comprises preset identification information; the frequency of the test audio signal is more than 20 KHz;
the acquisition module is used for acquiring the first voice signal played by the sound generating device through the audio acquisition device to obtain a second voice signal;
the analysis module is used for analyzing the second voice signal and judging whether the second voice signal has the identification information;
and the fault detection module is used for comparing the strength of the second voice signal with a preset signal strength when the second voice signal has the identification information so as to detect whether the sound production device and the audio acquisition device have faults or not.
6. The apparatus according to claim 5, wherein the mobile terminal comprises a first audio capturing device and a second audio capturing device; the analysis module compares the intensity of the second voice signal with a preset signal intensity in the following mode to detect whether the sounding device and the audio acquisition device have faults or not:
judging whether a second voice signal acquired by the first audio acquisition device reaches the preset signal intensity or not;
judging whether a second voice signal acquired by the second audio acquisition device reaches the preset signal intensity or not;
when the second voice signals acquired by the first audio acquisition device and the second audio acquisition device do not reach the preset signal intensity, determining that the sounding device has a fault;
when the second voice signal collected by the first audio collection device does not reach the preset signal intensity and the second voice signal collected by the second audio collection device reaches the preset signal intensity, determining that the first audio collection device fails;
and when the second voice signal collected by the second audio collection device does not reach the preset signal intensity and the second voice signal collected by the first audio collection device reaches the preset signal intensity, determining that the second audio collection device breaks down.
7. A mobile terminal is characterized by comprising a memory, a processor, a sounding device and an audio acquisition device, wherein the sounding device and the audio acquisition device are respectively and electrically connected with the processor;
the memory has stored thereon the device failure detection apparatus of claim 5 or 6, the device failure detection apparatus being controlled to execute by the processor.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed, implements the method of any of claims 1-4.
CN201711375591.0A 2017-12-19 2017-12-19 Device fault detection method and device and mobile terminal Active CN108124042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711375591.0A CN108124042B (en) 2017-12-19 2017-12-19 Device fault detection method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711375591.0A CN108124042B (en) 2017-12-19 2017-12-19 Device fault detection method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN108124042A CN108124042A (en) 2018-06-05
CN108124042B true CN108124042B (en) 2020-07-24

Family

ID=62230325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711375591.0A Active CN108124042B (en) 2017-12-19 2017-12-19 Device fault detection method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN108124042B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989964B (en) * 2018-07-24 2021-01-12 Oppo(重庆)智能科技有限公司 Microphone blockage reminding method and related device
CN109151700B (en) * 2018-07-26 2020-04-21 Oppo广东移动通信有限公司 Microphone hole blockage detection method and related product
CN109218913B (en) * 2018-08-27 2021-08-31 奇酷互联网络科技(深圳)有限公司 Sound adjusting method, terminal equipment and device with storage function
CN113973149A (en) * 2020-07-22 2022-01-25 华为技术有限公司 Electronic apparatus, device failure detection method and medium thereof
CN112134984B (en) * 2020-09-25 2022-03-25 重庆锐云科技有限公司 Mobile phone fault detection method and equipment based on ultrasonic waves and storage medium
CN112669883A (en) * 2020-12-24 2021-04-16 北京达佳互联信息技术有限公司 Abnormity checking method and device for audio playing equipment and storage medium
CN113746976B (en) * 2021-07-23 2023-03-28 荣耀终端有限公司 Audio module detection method, electronic device and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6968053B1 (en) * 2002-06-12 2005-11-22 Sprint Communications Company L.P. Acoustic signal transfer device
CN104221400A (en) * 2012-04-10 2014-12-17 皇家飞利浦有限公司 Method and system for checking an acoustic transducer
CN105979053A (en) * 2016-04-18 2016-09-28 广东欧珀移动通信有限公司 Method and device for detecting microphone in mobile terminal and mobile terminal
CN106878909A (en) * 2017-03-03 2017-06-20 广东欧珀移动通信有限公司 Speaker voice giving hole plug processing method, device and terminal device
CN107277278A (en) * 2016-04-08 2017-10-20 中兴通讯股份有限公司 A kind of voice quality method of testing and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6968053B1 (en) * 2002-06-12 2005-11-22 Sprint Communications Company L.P. Acoustic signal transfer device
CN104221400A (en) * 2012-04-10 2014-12-17 皇家飞利浦有限公司 Method and system for checking an acoustic transducer
CN107277278A (en) * 2016-04-08 2017-10-20 中兴通讯股份有限公司 A kind of voice quality method of testing and terminal
CN105979053A (en) * 2016-04-18 2016-09-28 广东欧珀移动通信有限公司 Method and device for detecting microphone in mobile terminal and mobile terminal
CN106878909A (en) * 2017-03-03 2017-06-20 广东欧珀移动通信有限公司 Speaker voice giving hole plug processing method, device and terminal device

Also Published As

Publication number Publication date
CN108124042A (en) 2018-06-05

Similar Documents

Publication Publication Date Title
CN108124042B (en) Device fault detection method and device and mobile terminal
CN105472417B (en) Method and device for acquiring video player abnormity
US8879744B2 (en) Audio testing system and audio testing method for device under test
US20120155661A1 (en) Electronic device and method for testing an audio module
CN105471932B (en) Monitoring method, device and system for front-end application
CN106998256B (en) Communication fault positioning method and server
CN105487966A (en) Program testing method, device and system
CN113259832B (en) Microphone array detection method and device, electronic equipment and storage medium
CN112054822B (en) Bluetooth test method and device, electronic equipment and storage medium
CN112019838B (en) Smart television voice fault diagnosis method and device and smart television
CN109561222A (en) A kind of method for detecting abnormality and device of voice data
CN110913214A (en) Method and device for detecting faults of array microphone at television end
CN104796840B (en) A kind of sound pick up equipment and self checking method with self-checking function
CN108260065B (en) Television loudspeaker playing function online detection method and device
CN108362957B (en) Equipment fault diagnosis method and device, storage medium and electronic equipment
CN111314837B (en) Anti-blocking method, device, equipment and storage medium for sound outlet of sound production device
CN110996244B (en) Microphone array performance test method, device and system
CN107105100B (en) Method and system for monitoring mobile terminal game
CN112396801A (en) Monitoring alarm method, monitoring alarm device and storage medium
CN203910265U (en) Real-time detection circuit capable of outputting audio quality based on audio decoding chip
CN109391875B (en) Audio debugging method and device, storage medium and processor
CN113179505A (en) Bluetooth playing device restart reconnection method, Bluetooth playing device and electronic equipment
CN112102837A (en) Household appliance and pickup detection method and device thereof
TWI778428B (en) Method, device and system for detecting memory installation state
WO2018198315A1 (en) Computer system, equipment abnormal sound determination method and program

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
TR01 Transfer of patent right

Effective date of registration: 20230315

Address after: 726000 Floor 2, Xiangsheng Pharmacy, East Side of Chengnan New Street, Shangnan County, Shangluo City, Shaanxi Province

Patentee after: Shaanxi Teana Digital Technology Co.,Ltd.

Address before: 361000 112a, Chuangye building, Pioneer Park, torch high tech Zone, Xiamen, Fujian Province

Patentee before: Xiamen Meitu Mobile Technology Co.,Ltd.

TR01 Transfer of patent right