A telephone detection method and system based on handset audio self-test
By using the handset audio self-test method in telephones, telephone faults are automatically detected, which solves the problem of time-consuming and labor-intensive manual inspections and enables efficient fault detection and management in poor signal environments.
Patent Information
- Application Number
- CN202210086122.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-01-25
AI Technical Summary
In an environment with poor signal or severe interference, telephone inspection requires manual entry into special areas such as tunnels, which is time-consuming and labor-intensive, and it is difficult to detect faults in a timely manner.
Using a method based on the handset audio self-test, by judging whether the phone is in self-test time, preset audio is generated and received and analyzed by the microphone to determine whether the phone is faulty, and the results are uploaded to the server to avoid manual inspection.
It realizes automatic detection of telephone faults without manually entering the tunnel, saving manpower and improving detection efficiency and safety.
Smart Images

Figure CN114449085B
Abstract
Description
Technical Field
[0001] The present application relates to the field of industrial telephones, and in particular to a telephone detection method and system based on handset audio self-test. Background Art
[0002] A telephone is a remote communication device for transmitting and receiving sound. Telephones include wired telephones and wireless telephones. With the development of telephones, wireless telephones are gradually replacing wired telephones in daily production and life.
[0003] However, in some places where the signal is poor or the signal will interfere with the equipment, wired telephones are usually installed to achieve internal and external communications. For example, in tunnels, subways and other areas, two telephones are connected by telephone lines. When talking, one of the telephones converts the sound wave signal of a person's speech into an electrical signal and transmits it to the next telephone, transmitting the situation in the tunnel to the outside world through the telephone. Therefore, in this special environment, the connectivity of the telephone needs to be checked frequently to ensure the connection between special environments such as tunnels and the outside environment.
[0004] With respect to the above-mentioned related technologies, the inventor believes that since the telephone is installed in the tunnel, when checking whether the telephone is intact, the staff needs to enter the tunnel to manually check the line, which is time-consuming and laborious. Summary of the invention
[0005] In order to facilitate inspection and save manpower, the present application provides a telephone detection method based on handset audio self-test.
[0006] The present application provides a telephone detection method and system based on handset audio self-test, which adopts the following technical solutions:
[0007] A telephone detection method based on handset audio self-checking includes: determining whether the telephone is in self-checking time;
[0008] If not, keep in standby mode;
[0009] If yes, causing the handset of the telephone to generate a preset audio based on a preset rule, and receiving the preset audio through the microphone of the telephone;
[0010] The preset audio is analyzed to determine whether a fault occurs, generate a determination result, and upload the determination result to a server.
[0011] By adopting the above technical solution, it is first determined whether the telephone is in the self-test time. When the telephone is in the self-test time, according to the preset rules, the handset generates a preset audio, and the microphone receives the audio generated by the handset. If the telephone is not in the self-test time, the telephone remains in standby mode. After the telephone starts self-test, the preset audio received by the microphone is analyzed. According to the judgment result obtained by analyzing the audio, it is determined whether the telephone has a fault, and then the judgment result is uploaded to the server. The server takes corresponding actions according to the judgment result. It is possible to avoid the staff from entering the tunnel to manually check the telephone. To determine whether the telephone has a fault, it is only necessary to analyze the received audio based on the preset audio emitted by the handset and the preset audio received by the microphone, so as to determine whether the telephone has a fault. It is possible to avoid manual entry into tunnels, highways and other places for inspection.
[0012] Optionally, the determining whether the telephone is in self-check time includes:
[0013] Get the current standard time;
[0014] Determining whether the current standard time is within the self-check time;
[0015] If so, the telephone performs a self-check;
[0016] If not, the phone is not in the self-check time and enters the standby state.
[0017] By adopting the above technical solution, after the current standard time of the telephone is obtained, a judgment is made to determine whether the current standard time is within the preset self-test time. When it is within the self-test time, the telephone performs a self-test, the handset emits a preset audio, the microphone receives the preset audio and analyzes it to determine whether the telephone is faulty. When the telephone is not within the self-test time, the telephone enters a standby state. The time for the telephone to perform self-test is controlled by time to avoid emitting the preset audio for a long time and making the surrounding environment noisy.
[0018] Optionally, before causing the handset of the telephone to produce a preset audio based on a preset rule, the method includes:
[0019] Get the background sound information of the current surrounding environment;
[0020] Based on the background sound information, the handset of the telephone is controlled to generate different types of audio.
[0021] By adopting the above technical solution, after the earpiece generates audio, when the microphone receives the audio generated by the earpiece, the clarity of the audio received by the microphone is greatly affected by the surrounding environment. In order to make the audio received by the microphone clearer, it is necessary to obtain the background sound information of the surrounding environment. According to the different background sound information of the surrounding environment, the audio received by the microphone is made clearer.
[0022] Optionally, based on the volume of the background sound, generating the audio adapted to the volume of the background sound includes:
[0023] Determine whether the volume of the background sound is greater than a sound threshold;
[0024] If so, the preset audio is not generated and the self-test stops;
[0025] If not, the volume of the preset audio emitted by the handset of the telephone is adjusted based on the volume of the background sound.
[0026] By adopting the above technical solution, the volume of the background sound of the surrounding environment has a serious impact on the self-test of the telephone. The volume of the surrounding background sound is received and detected. When the volume of the background sound is greater than the sound threshold, it means that the background sound in the environment is relatively large. If a self-test is performed at this time, the preset audio received by the microphone is greatly affected by the background sound, which has a great impact on the accuracy of the audio emitted by the microphone. At this time, the self-test is stopped. If the volume of the background sound is less than or equal to the sound threshold, audio of the volume that can be received by the telephone is generated.
[0027] Optionally, the controlling the handset of the telephone to generate audio with different volumes based on the background sound information includes:
[0028] Determine whether the duration of the background sound is greater than a preset time;
[0029] If the duration of the background sound is greater than the preset time, the preset audio is immediately generated after the preset time ends and self-check is performed again in the next time period;
[0030] If the duration of the background sound is not greater than the preset time, audio is generated after the background sound ends.
[0031] By adopting the above technical scheme, the presence of background sound affects the accuracy of the telephone self-test result. During the self-test time, the duration of the background sound is compared with the preset time. If the background sound still exists after the preset time, the preset audio is first generated for self-test to make a preliminary judgment, and then the self-test is performed again in the next time period to improve the accuracy. If the background sound disappears before the preset time, the preset audio is played immediately after the background sound disappears, and a self-test is performed to check whether the telephone is faulty. By setting the preset time, the influence of some background sounds on the telephone self-test is avoided, and at the same time, the background sound is prevented from existing for a long time without self-test, and a preliminary judgment is made on the telephone self-test.
[0032] Optionally, the analyzing the preset audio includes:
[0033] Decoding the preset audio to generate a decoding result;
[0034] Comparing the decoding result with a preset result to generate a decoding success rate;
[0035] Based on the decoding success rate, it is determined whether a fault occurs and a determination result is generated.
[0036] By adopting the above technical solution, after the preset audio emitted by the handset is received by the microphone, the audio received by the microphone is decoded to obtain a decoding result, and the decoding result is compared with the preset result, that is, compared with the correct decoding result, to obtain a decoding success rate and an information conversion success rate of the received audio and the preset audio. According to the decoding success rate, it is determined whether the telephone has a fault, and the fault judgment of the telephone is digitized. The fault of the telephone is judged based on the success rate of the received audio, and no manual judgment is required, thus saving time.
[0037] Optionally, judging whether a fault occurs and generating a judgment result based on the decoding success rate includes:
[0038] comparing the decoding success rate with a threshold;
[0039] If the decoding success rate is greater than the threshold, it is determined that no fault has occurred;
[0040] If the decoding success rate is not greater than the threshold, the result of the determination is that a failure has occurred.
[0041] By adopting the above technical solution, the decoding success rate is compared with a threshold value. When the decoding success rate is greater than the threshold value, it indicates that the integrity of the preset audio microphone reception information emitted by the handset is good, and it is determined that the telephone has not failed and can be used normally. When the decoding success rate is less than the threshold value, it indicates that the integrity of the preset audio microphone reception information emitted by the handset is poor, and it is not possible to clearly know what the audio information emitted by the handset is. It is determined that the telephone has failed and cannot be used normally, and the staff is notified to replace it.
[0042] Optionally, the analyzing the preset audio, determining whether a fault occurs to generate a determination result, and uploading the determination result to a server includes:
[0043] Determine whether the telephone is faulty;
[0044] If so, locate the faulty telephone and send out an alarm message;
[0045] If not, no action is taken.
[0046] By adopting the above technical solution, when it is determined that the telephone has a fault, an alarm signal is sent to inform the staff that the telephone has a fault, and the faulty telephone is located at the same time, so that the staff can quickly find the faulty telephone. If there is no fault, no action is taken. After detecting that the telephone has a fault, the staff can be quickly informed of the location of the faulty telephone.
[0047] Optionally, a judgment module is used to judge whether the telephone is in self-check time; if not, keep the telephone in standby mode; if so, make the handset of the telephone produce preset audio based on preset rules, and receive the preset audio through the microphone of the telephone;
[0048] The analysis module is used to analyze the preset audio, determine whether a fault occurs, generate a judgment result, and upload the fault judgment result to the server.
[0049] By adopting the above technical solution, the judgment module determines whether the phone is currently in the self-test time. When it is not in the self-test time, the phone remains in standby mode. When it is in the self-test time, the handset generates a preset audio and the microphone receives audio. The analysis module analyzes the received preset audio and generates a judgment result. Based on the judgment result, it is determined whether the phone has a fault, and then the judgment result is uploaded to the server.
[0050] In summary, the present application includes at least one of the following beneficial technical effects:
[0051] Determine whether the phone is in the self-check time. When the phone is in the self-check time, according to the preset rules, the handset generates a preset audio, and the microphone receives the audio generated by the handset. If the phone is not in the self-check time, the phone remains in standby mode. After the phone starts self-checking, the preset audio received by the microphone is analyzed. According to the judgment result obtained by analyzing the audio, it is determined whether the phone has a fault, and then the judgment result is uploaded to the server. The server takes corresponding actions based on the judgment result. There is no need for staff to enter the tunnel to manually check the phone. To determine whether the phone is good, it is only necessary to analyze the received audio based on the preset audio emitted by the handset and the preset audio received by the microphone, so as to determine whether the phone is good, avoiding manual entry into tunnels, highways and other places for inspection. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is a flowchart of a telephone detection method based on handset audio self-test according to an embodiment of the present application;
[0053] Figure 2 It is a flowchart for judging whether the telephone is in the self-checking time;
[0054] Figure 3 A schematic diagram of a process before the handset of the telephone generates a preset audio based on a preset rule;
[0055] Figure 4 A schematic diagram of a flow chart of controlling the handset of the telephone to generate different types of audio based on the background sound information;
[0056] Figure 5 A schematic diagram of a flow chart before generating audio adapted to the volume of the background sound based on the volume of the background sound;
[0057] Figure 6 is another flow chart of controlling the handset of the telephone to generate different types of audio based on the background sound information;
[0058] Figure 7 is a flow chart of analyzing the preset audio to determine whether a fault occurs and generating a determination result;
[0059] Figure 8 is a flow chart of determining whether a fault occurs and generating a determination result based on the decoding success rate;
[0060] Fig. 9 It is a flow chart of the process after the telephone is judged to have failed and then transmitted to the server;
[0061] Fig.10 A system block diagram of a telephone detection system based on handset audio self-test.
[0062] Explanation of the accompanying drawings: 1. Judgment module; 2. Analysis module. DETAILED DESCRIPTION
[0063] The present application is further described in detail below in conjunction with all the accompanying drawings.
[0064] The present application embodiment discloses a telephone detection method based on handset audio self-test, referring to Figure 1 ,include:
[0065] S100: Determine whether the phone is in self-check time.
[0066] Among them, the self-check time is the time when the phone checks itself to see if a fault occurs. In this embodiment, the self-check time is set to 9:00-10:00 p.m. During this time, the phone is rarely used and after the self-check is completed, the staff can see the self-check results when they go to work the next day.
[0067] S110: If not, keep in standby mode.
[0068] Among them, the standby state is a power saving mode when the phone is not in use.
[0069] S120: If yes, the handset of the telephone generates a preset audio based on a preset rule, and the preset audio is received through the microphone of the telephone.
[0070] Among them, the preset rule is a certain audio file stored in advance, using dual-tone multi-frequency signal, each number is composed of high and low frequencies of different frequencies, for example, 1 is equivalent to the combination of 697 (Hz) and 1209 (Hz), and these frequencies can be decoded using a switch to obtain the corresponding numbers.
[0071] S130: Analyze the preset audio to determine whether a fault occurs, generate a determination result, and upload the determination result to a server.
[0072] Among them, the preset audio is analyzed by using the switch to decode the preset audio played by the handset to obtain corresponding numbers, and the decoded numbers are compared with the preset numbers. For example, 10 numbers are preset, and whether these 10 numbers can be obtained after decoding is determined. Based on this comparison, a judgment result is obtained to determine whether the telephone has a fault, and the judgment result is transmitted to the server.
[0073] The implementation principle of a telephone detection method based on handset audio self-test in an embodiment of the present application is: first, determine whether the telephone is currently within the self-test time. If it is not within the self-test time, the phone remains in standby mode. If the phone is within the self-test time, start self-test, the handset of the phone plays a preset audio, the microphone of the phone receives the preset audio, and analyzes the received preset audio to generate a judgment result. According to the judgment result, determine whether the telephone has a fault, and report the judgment result to the server so that the staff can discover it in time.
[0074] Reference Figure 2 , judging whether the phone is in the self-check time includes:
[0075] S200: Obtain current standard time.
[0076] Among them, the current standard time is the network time displayed on the phone, which is based on the background time.
[0077] S210: Determine whether the current standard time is in the self-check time.
[0078] Among them, the self-check time is the time when the phone is checked. In this embodiment, the self-check time is set to 11:00 p.m.-12:00 p.m. according to the time on the phone. If the time on the phone is 8:00 p.m., it is not within the self-check time and no self-check is performed. If the time on the phone is 11:30 p.m., self-check starts within the self-check time.
[0079] S220: If yes, the phone performs a self-check.
[0080] S230: If not, the phone is not in the self-check time and the phone enters the standby state.
[0081] The implementation method of the embodiment of the present application for determining whether a telephone is in the self-test time is as follows: determining whether it is in the self-test time based on the network time displayed on the telephone. The self-test time can be set according to different needs. When it is in the self-test time, the telephone performs a self-test. When it is not in the self-test time, the telephone remains in standby mode.
[0082] Reference Figure 3 , before causing the handset of the telephone to generate a preset audio based on a preset rule, the method includes:
[0083] S300: Obtain background sound information of the current surrounding environment.
[0084] The background sound information of the surrounding environment is the noise at the location where the telephone is installed. The audio received by the handset contains a lot of noise in the environment. The presence of noise affects the accuracy of the telephone self-test result.
[0085] S310. Based on the background sound information, control the handset of the telephone to generate different types of audio.
[0086] Among them, different types of audio include the size of the noise, duration, etc.
[0087] The implementation principle of an embodiment of the present application before making the handset of a telephone produce preset audio based on preset rules is: obtaining information about the background sound of the surrounding environment, and according to different background sound information, controlling the handset to play different types of audio to eliminate the impact of the background sound on self-test.
[0088] Reference Figure 4 Based on the background sound information, the handset of the telephone is controlled to produce different types of audio including:
[0089] S400: Obtain the volume of background sound.
[0090] The volume of background sound refers to the sound level of the environment around the phone. The phone transmits the content of human speech. The volume of normal human speech is about 20 decibels. When the noise level in the environment exceeds the volume of human speech, the detection result of the phone may be inaccurate.
[0091] S410: Based on the volume of the background sound, generate audio adapted to the volume of the background sound.
[0092] In order to enable the microphone of the telephone to clearly receive the preset audio, when the volume of the background sound increases, the preset audio played by the handset also increases accordingly. For example, when the volume in the environment is 50 decibels, the audio played by the handset is greater than or equal to 50 decibels.
[0093] The implementation principle of an embodiment of the present application for controlling the handset of a telephone to produce different types of audio based on background sound information is as follows: the volume of the background sound in the surrounding environment is obtained, and the volume of the preset audio played by the handset is adjusted according to the volume of the background sound in the surrounding environment.
[0094] Reference Figure 5 , based on the volume of the background sound, determine whether the volume of the background sound is greater than the sound threshold.
[0095] The sound threshold is the maximum volume value of the background sound in the environment allowed when detecting the telephone. In this embodiment, the maximum volume value of the background sound in the environment is set to 100 decibels.
[0096] S510: If yes, no preset audio is generated and the self-check is stopped.
[0097] Among them, when the maximum volume value in the environment exceeds 100 decibels, the noise in the environment has seriously affected the self-test of the phone. When performing self-test in this environment, the sound received by the microphone is basically all the noise in the environment, and the test result has no reference value, so self-test is not performed.
[0098] S520: If not, adjust the volume of the preset audio emitted by the handset of the telephone based on the volume of the background sound.
[0099] Among them, when the volume of background sound is less than 100 decibels, in order to enable the phone to clearly receive the preset audio, the volume of the preset audio played by the microphone of the phone is adjusted accordingly according to the volume of the noise in the environment, so that the handset of the phone can receive the preset audio more clearly.
[0100] The implementation principle of the embodiment of the present application before generating audio adapted to the volume of the background sound based on the volume of the background sound is as follows: the volume of the background sound in the environment is obtained, and compared with a preset sound threshold to determine whether the phone is self-checking. When the volume of the background sound is greater than the sound threshold, no self-check is performed; when the volume of the background sound is less than the sound threshold, a self-check is performed.
[0101] Reference Figure 6 Based on the background sound information, controlling the handset of the telephone to produce audio with different volumes includes:
[0102] S600: Determine whether the duration of the background sound is greater than a preset time.
[0103] The preset time is the longest waiting time for the phone to wait for self-test within the self-test time. In this embodiment, the preset time is set to 30 minutes.
[0104] S610: If the duration of the background sound is greater than the preset time, the preset audio is immediately generated after the preset time ends and self-checks again in the next time period.
[0105] Among them, in this embodiment, the self-check time is set to 11 o'clock in the evening to 12 o'clock, the duration is set to 30 minutes, and the next time period is the time after the self-check time. For example, if the interval is one hour, then at 11 o'clock in the evening, detect whether there is background sound in the surrounding environment. If so, wait for the background sound to disappear. If the background sound has not disappeared after 30 minutes, start the self-check immediately after the preset time and perform the initial self-check. Since the presence of background sound interferes with the self-check, perform the self-check again at 1:30 in the morning.
[0106] S620: If the duration of the background sound is not greater than the preset time, audio is generated after the background sound ends.
[0107] Among them, in this embodiment, the self-check time is set to 11 pm to 12 pm, and the duration is set to 30 minutes. If the background sound disappears at any time between 11 pm and 11:30 pm, the self-check will start immediately.
[0108] The implementation principle of the embodiment of the present application for controlling the handset of a telephone to produce audio of different volumes based on background sound information is as follows: detecting the duration of the background sound, determining whether the duration of the background sound is greater than a preset time, and if so, starting the self-check after the preset time and performing the self-check again in the next time period; if the duration of the background sound is less than the preset time, performing the self-check immediately after the background sound ends.
[0109] Reference Figure 7 , analyze the preset audio, determine whether a fault occurs and generate the judgment results including:
[0110] S700: Decode the preset audio and generate a decoding result.
[0111] Among them, in this embodiment, the preset audio is a digital sound file composed of different high and low frequencies stored in the telephone, for example, 1 is equivalent to a combination of 697 (Hz) and 1209 (Hz), and the switch can be used to decode these sounds and restore them to digital.
[0112] S710: Compare the decoding result with the preset result to generate a decoding success rate.
[0113] Among them, the preset result is a collection of numbers that need to be decoded. For example, if the preset audio is an audio file of 13556987, the preset result is the 8 numbers 13556987. The decoding result is the accuracy of restoring the preset audio to numbers. If the decoding result is the 7 numbers 1355697, the decoding success rate is 7 / 8=87.5%.
[0114] S720: Based on the decoding success rate, determine whether a fault occurs and generate a determination result.
[0115] The judgment result is to judge whether the telephone has a fault, and the decoding success rate represents the accuracy rate of the preset audio sent by the handset to the microphone receiving the audio. Whether the telephone has a fault is judged based on the decoding accuracy rate.
[0116] The embodiment of the present application analyzes the preset audio to determine whether a fault has occurred and generates a judgment result. The implementation principle is as follows: the microphone of the telephone receives the preset audio generated by the telephone receiver, decodes the preset audio, compares the decoded audio with the preset result, obtains the decoding success rate, and determines whether the telephone has a fault based on the decoding success rate.
[0117] Reference Figure 8 Based on the decoding success rate, it is determined whether a fault has occurred and the judgment results are generated, including:
[0118] S800: Compare the decoding success rate with a threshold.
[0119] The threshold is the lowest value allowed by the decoding success rate. If the value is less than the threshold, the received information is too much and cannot fully express what the speaker wants to express.
[0120] S810: If the decoding success rate is greater than the threshold, it is determined that no fault has occurred.
[0121] Among them, if the decoding success rate is greater than the threshold, it means that the received information can be understood by humans, and it is determined that the telephone has no fault.
[0122] S820: If the decoding success rate is not greater than the threshold, it is determined that a failure has occurred.
[0123] When the decoding success rate is not greater than the threshold, it means that the received information cannot be clearly understood by a person, and it is determined that a malfunction occurs in the telephone.
[0124] The implementation principle of the embodiment of the present application for generating a judgment result based on the decoding success rate to determine whether a fault has occurred is as follows: the decoding success rate is compared with a threshold to determine whether a fault has occurred in the phone. When the decoding success rate is greater than the threshold, it indicates that the phone can clearly receive the sent information and the phone has not failed. When the decoding success rate is not greater than the threshold, it indicates that the phone cannot clearly receive the sent information and the phone has failed.
[0125] Reference Fig. 9 , analyze the preset audio, determine whether a fault occurs, generate a judgment result, and upload the judgment result to the server, including:
[0126] S900: Determine whether the telephone has a malfunction.
[0127] S910: If yes, locate the faulty telephone and send out an alarm message.
[0128] Among them, the phone box server is connected by wire, and each phone is set with an independent number. When the server receives information from the phone, it locates the installation position of the phone according to the phone number and sends an alarm message to remind the staff that the phone is damaged.
[0129] S920: If not, do nothing.
[0130] The embodiment of the present application analyzes the preset audio, determines whether a fault occurs, generates a judgment result, and uploads the judgment result to the server. The implementation principle is as follows: when a telephone fails, the telephone transmits the fault information to the server, the server sends an alarm message, and the server locates the installation position of each telephone according to the number of the telephone to facilitate the staff to repair the phone. If the telephone does not fail, the server does not take any action.
[0131] A telephone detection method based on handset audio self-detection is described in detail above. A telephone detection system based on handset audio self-detection based on a telephone detection method based on handset audio self-detection is described in detail below.
[0132] A telephone detection system based on handset audio self-detection, comprising:
[0133] The judging module 1 is used to judge whether the telephone is in the self-checking time; if not, it keeps in the standby state; if so, it makes the handset of the telephone produce the preset audio based on the preset rule, and receives the preset audio through the microphone of the telephone;
[0134] The analysis module 2 is used to analyze the preset audio, determine whether a fault occurs, generate a judgment result, and upload the judgment result to the server.
[0135] The implementation principle of a telephone detection system based on earpiece audio self-test in an embodiment of the present application is as follows: a judgment module 1 determines whether the telephone is currently in self-test time. When it is not in the self-test time, the telephone remains in standby mode and does not operate. When it is in the self-test time, the earpiece generates a preset audio and the microphone receives audio. An analysis module 2 analyzes the received preset audio and generates a judgment result. Based on the judgment result, it is determined whether the telephone has a fault, and then the judgment result is uploaded to the server.
[0136] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A telephone detection method based on handset audio self-test, characterized in that: Used for self-checking of a telephone in a tunnel, the telephone detection method comprises: S100, determining whether the telephone is in self-check time; S110, if not, keep in standby mode; S120, if yes, based on a preset rule, the handset of the telephone generates a preset audio, and the preset audio is received through the microphone of the telephone; the preset rule is a pre-stored audio file, using a dual-tone multi-frequency signal, each digit is composed of high and low frequencies of different frequencies; S130, analyzing the preset audio, determining whether a fault occurs, generating a determination result, and uploading the determination result to a server; The telephone detection method comprises, before the step S120 of causing the handset of the telephone to generate a preset audio based on a preset rule: S300, obtaining background sound information of the current surrounding environment; S310, based on the background sound information, controlling the handset of the telephone to generate different types of audio to eliminate the influence of the background sound on the self-check; The step S310 of controlling the handset of the telephone to generate different types of audio based on the background sound information comprises: S400, obtaining the volume of the background sound; S410, based on the volume of the background sound, generating audio with a volume adapted to the background sound; S600, within the self-check time, comparing the duration of the background sound with the preset time to determine whether the duration of the background sound is greater than the preset time; S610: If the duration of the background sound is greater than the preset time, immediately generate the preset audio after the preset time ends and perform self-check again in the next time period; S620: If the duration of the background sound is not greater than the preset time, then generate audio after the background sound ends; The telephone detection method comprises, before the step S410 of generating an audio whose volume is adapted to the background sound based on the volume of the background sound: Determine whether the volume of the background sound is greater than a sound threshold; the sound threshold is the maximum volume value of the background sound in the environment allowed when the telephone is detected, and the maximum volume value of the background sound in the environment is set to 100 decibels; S510: If yes, no preset audio is generated and the self-check is stopped; S520: If not, adjust the volume of the preset audio emitted by the handset of the telephone based on the volume of the background sound.
2. The telephone detection method based on handset audio self-test according to claim 1, characterized in that: The step S100 of determining whether the phone is in the self-check time includes: S200, obtaining the current standard time; S210, determining whether the current standard time is within the self-check time; S220: If yes, the telephone performs a self-check; S230: If not, the phone is not in the self-check time, and the phone enters the standby state.
3. The telephone detection method based on handset audio self-test according to claim 1, characterized in that: The step S130 of analyzing the preset audio to determine whether a fault occurs and generating a determination result includes: S700, decoding the preset audio to generate a decoding result; S710, comparing the decoding result with a preset result to generate a decoding success rate; S720: Based on the decoding success rate, determine whether a fault occurs and generate a determination result.
4. The telephone detection method based on handset audio self-test according to claim 3, characterized in that: The step S720 of determining whether a fault occurs and generating a determination result based on the decoding success rate includes: S800, comparing the decoding success rate with a threshold; S810: If the decoding success rate is greater than the threshold, it is determined that no fault has occurred. S820: If the decoding success rate is not greater than the threshold, it is determined that a failure has occurred.
5. The telephone detection method based on handset audio self-test according to claim 1, characterized in that: After the step S130 of analyzing the preset audio, determining whether a fault occurs, generating a determination result, and uploading the determination result to the server, the following steps are included: S900, determining whether the telephone has a fault; S910, if yes, locate the faulty telephone and send out an alarm message; S920: If not, do nothing.
6. A telephone detection system based on handset audio self-detection, characterized in that: For implementing a telephone detection method based on handset audio self-test as claimed in claim 1, the telephone detection system comprises: A judgment module (1) is used to judge whether the telephone is in self-check time; if not, keep the telephone in standby mode; if so, make the handset of the telephone produce preset audio based on preset rules, and receive the preset audio through the microphone of the telephone; The analysis module (2) is used to analyze the preset audio, determine whether a fault occurs, generate a determination result, and upload the determination result to a server.
