Charging pile relay state detection method, device and equipment based on audio detection

Based on audio -based methods, the sound characteristics of the charging pile relay are extracted and matched the verification, which solved the problem of inaccurate detection of the existing technical relay status, and achieved higher detection accuracy and reliability.

CN119375698AInactive Publication Date: 2025-01-28CHINA CONSTR SCI & IND CORP LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411943858.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-01-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, there is a problem of inaccurate detection results when performing state detection of charging pile relays, especially under the influence of factors such as electromagnetic interference.

Method used

Adopt audio -based detection methods, connect with micro -controller and sound collection modules, storage modules, alarm modules, communication modules and relay control modules, read audio analysis parameters, send power switching instructions, and extract the sound characteristics of relay sent by relay to perform the sound characteristics of the relay. Match the verification to determine the state of the relay and upload it to the upper machine.

Benefits of technology

The accuracy and reliability of the state detection of relay status is improved, and the impact of complex circuits and electromagnetic interference on the test results are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119375698A_ABST
    Figure CN119375698A_ABST
Patent Text Reader

Abstract

The invention discloses a charging pile relay state detection method, device and equipment based on audio detection, and the method comprises the steps: reading an audio analysis parameter in a storage module, transmitting a power switching instruction to a relay control module, and carrying out the feature extraction of the received switching sound information, and obtaining a switching audio feature; verifying whether the switching audio features are matched with the audio analysis parameters or not according to a detection verification strategy; if yes, a normal closing label is added to the state information of the relay and uploaded to the upper computer, and if not, abnormal closing label value state information is added and uploaded to the upper computer, and an alarm instruction is sent to the alarm module. According to the state detection method, the sound information sent by the relay during power switching can be acquired, and the switching audio characteristics are correspondingly extracted and matched with the audio analysis parameters for analysis, so that the influence of electromagnetic interference on the detection result is avoided, and the accuracy and reliability of state detection of the relay are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of audio detection, and in particular to a charging pile relay state detection method, device and equipment based on audio detection. Background Art

[0002] With the development and popularization of electric vehicles, the demand for charging electric vehicles with charging piles is also increasing; in the application of charging piles for charging, the relays in the charging power pile are used to achieve switching of different power levels to meet the charging needs of different vehicles. However, some relays lack intuitive contact status display, and the detection method for relay closure status in traditional technology often relies on current, voltage sensors and complex circuits for identification and analysis, which not only increases the cost, but also may be affected by electromagnetic interference and other factors in some specific application scenarios, thereby affecting the accuracy and reliability of relay closure status detection. Therefore, there is a problem of inaccurate detection results when the status of the relay in the charging pile is detected in the prior art method. Summary of the invention

[0003] The embodiments of the present invention provide a charging pile relay status detection method, device and equipment based on audio detection, aiming to solve the problem of inaccurate detection results when performing status detection on the relay in the charging pile in the prior art methods.

[0004] In a first aspect, an embodiment of the present invention provides a charging pile relay state detection method based on audio detection, the method is applied to a microcontroller, the microcontroller is respectively connected to a sound collection module, a storage module, an alarm module, a communication module and a relay control module for communication, the sound collection module is arranged close to the surface of the relay, the relay control module is electrically connected to the control port of the relay, the method includes: Reading the audio analysis parameters preset in the storage module; Sending a power switching instruction to the relay control module to drive the relay through the relay control module to perform power switching; Extracting corresponding switching audio features from the switching sound information according to a preset audio feature extraction rule, wherein the switching sound information is the sound information emitted by the relay during power switching obtained by the sound acquisition module; Verify whether the switched audio feature matches the audio analysis parameter according to a preset detection verification strategy to obtain a corresponding audio detection verification result; If the audio detection verification result is a match, a closed normal tag is added to the status information of the relay and the status information is uploaded to the host computer through the communication module; If the audio detection verification result is mismatch, adding a closure abnormality tag to the status information of the relay and uploading the status information to the host computer through the communication module; According to the status information, a corresponding alarm instruction is sent to the alarm module to control the alarm module to issue an alarm prompt information.

[0005] In a second aspect, an embodiment of the present invention further provides a charging pile relay state detection device based on audio detection, wherein the device is in a microcontroller, and the microcontroller is respectively connected to a sound collection module, a storage module, an alarm module, a communication module, and a relay control module for communication, and the sound collection module is arranged close to the surface of the relay, and the relay control module is electrically connected to the control port of the relay, and the device is used to perform the charging pile relay state detection method based on audio detection as described in the first aspect above, and the device includes: A parameter reading unit, used for reading the audio analysis parameters preset in the storage module; A power switching instruction sending unit, used for sending a power switching instruction to the relay control module, so as to drive the relay to perform power switching through the relay control module; A switching audio feature extraction unit, used for extracting corresponding switching audio features from switching sound information according to a preset audio feature extraction rule, wherein the switching sound information is sound information emitted by the relay during power switching obtained by the sound acquisition module; A feature matching verification unit, used to verify whether the switched audio feature matches the audio analysis parameter according to a preset detection verification strategy, and obtain a corresponding audio detection verification result; A first status information uploading unit, configured to add a closed normal tag to the status information of the relay and upload the status information to a host computer through the communication module if the audio detection verification result is a match; A second status information uploading unit, configured to add a closure abnormality tag to the status information of the relay and upload the status information to a host computer through the communication module if the audio detection verification result is mismatched; The alarm instruction sending unit is used to send a corresponding alarm instruction to the alarm module according to the status information to control the alarm module to send out alarm prompt information.

[0006] In a third aspect, an embodiment of the present invention further provides a charging pile relay state detection device based on audio detection, wherein the device includes a microcontroller, a sound collection module, a storage module, an alarm module, a communication module and a relay control module; The microcontroller is respectively connected to the sound collection module, the storage module, the alarm module, the communication module and the relay control module for communication, the sound collection module is arranged close to the surface of the relay, and the relay control module is electrically connected to the control port of the relay; The microcontroller includes a processor, a network interface, a memory and a communication bus, wherein the processor, the network interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; The processor is used to implement the steps of the charging pile relay state detection method based on audio detection described in the first aspect when executing the program stored in the memory.

[0007] The embodiment of the present invention provides a charging pile relay state detection method, device and equipment based on audio detection, the method includes: reading the audio analysis parameters in the storage module, sending the power switching instruction to the relay control module and extracting the features of the received switching sound information to obtain the switching audio features; verifying whether the switching audio features match the audio analysis parameters according to the detection verification strategy; if they match, adding a closed normal tag to the state information of the relay and uploading it to the host computer, if they do not match, adding the closed abnormal tag value state information and uploading it to the host computer and sending an alarm instruction to the alarm module. The above-mentioned state detection method can collect the sound information emitted by the relay when performing power switching, and extract the switching audio features and audio analysis parameters for matching analysis, without the need for complex circuits for identification and analysis, avoiding the influence of electromagnetic interference on the detection results, thereby greatly improving the accuracy and reliability of the relay state detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0009] Figure 1 A method flow chart of a charging pile relay state detection method based on audio detection provided by an embodiment of the present invention; Figure 2 A schematic diagram of an application scenario of a charging pile relay state detection method based on audio detection provided by an embodiment of the present invention; Figure 3 A schematic block diagram of a charging pile relay state detection device based on audio detection provided by an embodiment of the present invention; Figure 4A schematic block diagram of a computer device provided for an embodiment of the present invention; Figure 5 A circuit structure diagram of a sound collection module provided in an embodiment of the present invention; Figure numerals: 10, microcontroller; 20, sound collection module; 30, storage module; 40, alarm module; 50, communication module; 60, relay control module; 21, microphone. DETAILED DESCRIPTION

[0010] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0011] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0012] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural forms unless the context clearly indicates otherwise.

[0013] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0014] See also Figure 1 As shown in the figure, the embodiment of the present invention provides a charging pile relay state detection method based on audio detection, which is applied to the microcontroller 10 and executed by the application software installed in the microcontroller 10. Specific application scenarios are as follows Figure 2As shown, the microcontroller 10 is respectively connected to the sound collection module 20, the storage module 30, the alarm module 40, the communication module 50 and the relay control module 60 for communication. The sound collection module 20 is arranged close to the surface of the relay, and the relay control module 60 is electrically connected to the control port of the relay; wherein the storage module 30 is used for storing data information, and the storage module 30 can be a non-volatile storage medium arranged outside the microcontroller 10, such as a data storage card, etc.; the alarm module 40 is used for issuing alarm prompt information, and the alarm module 40 can be a speaker and / or an indicator light, or a display screen, etc.; the sound collection module 20 is used for detecting and collecting sounds, and the sound collection module 20 is arranged close to the surface of the relay, so that the sound collection module 20 can accurately detect the sound emitted by the relay when power switching is performed; the communication module 50 is used to communicate with the host computer or the remote monitoring server, and the communication module 50 can be a communication port or a radio frequency signal transceiver; the relay control module 60 is used to receive the control instruction output by the microcontroller 10 and drive the relay to perform power switching, and the relay control module 60 can be a relay control circuit. The microcontroller 10 is a microcontroller used to analyze the sound information collected by the sound collection module 20 and issue control instructions to each functional module. For example, the microcontroller 10 can be an MCU chip or a control circuit with data processing and information receiving and sending functions. Figure 1 As shown, the method includes steps S110 to S170.

[0015] S110: Reading audio analysis parameters preset in the storage module.

[0016] When the microcontroller is powered on for the first time, the microcontroller first reads the audio analysis parameters stored in the storage unit, where the audio analysis parameters are parameter information pre-configured by the user. If no valid audio analysis parameters are stored in the storage unit, the microcontroller directly enters the parameter setting mode; at this time, the communication module can be connected through the host computer, and the parameter setting information can be input through the host computer to set the audio analysis parameters.

[0017] S120, sending a power switching instruction to the relay control module to drive the relay through the relay control module to perform power switching.

[0018] Furthermore, the user can directly input a power switching instruction on one side of the charging pile. The user can also send a power switching request to the host computer through a terminal device (such as a mobile phone), and the host computer outputs the corresponding power switching instruction to the microcontroller; the microcontroller receives the power switching instruction and can send the power switching instruction to the relay control module. The relay control module drives the relay to perform power switching according to the received power switching instruction. During the power switching process of the relay, the switch component in the relay will generate a specific sound during the closing process. The sound information generated by the relay during the power switching process can be detected and collected by the sound collection module.

[0019] S130. Extract corresponding switching audio features from the switching sound information according to preset audio feature extraction rules, wherein the switching sound information is sound information emitted by the relay during power switching obtained by the sound collection module.

[0020] After the sound acquisition module detects the sound generated by the relay to obtain the switching sound information, the sound acquisition module outputs the switching sound information to the microcontroller. The microcontroller can then extract features from the switching sound information using audio feature extraction rules, thereby obtaining a switching audio feature corresponding to the switching sound information. The switching audio feature can then be used to characterize the features of the switching sound information.

[0021] In a specific embodiment, step S130 includes sub-steps: according to the audio starting intensity in the audio feature extraction rule, obtaining a time point in the switching sound information that is greater than the audio starting intensity as the corresponding interception time point; according to the interception time point and the interception duration in the audio feature extraction rule, intercepting the corresponding audio signal from the switching sound information as a valid audio segment; according to the audio intensity threshold in the audio feature extraction rule, intercepting an audio signal greater than the audio intensity threshold from the valid audio segment as a target audio segment; obtaining the audio frequency feature information, audio intensity information and audio duration of the target audio segment as the corresponding switching audio feature.

[0022] Specifically, the interception time point corresponding to the switching sound information can be obtained according to the audio starting intensity in the audio feature extraction rule, and it can be judged whether the audio intensity at each time point in the switching sound information is greater than the audio starting intensity, and the time point when the audio intensity in the switching sound information is first greater than the audio starting intensity is obtained as the interception time point.

[0023] Furthermore, according to the interception time point and the interception duration in the audio feature extraction rule, the end time point corresponding to the interception time point can be determined, and the audio signal between the interception time point and the end time point can be intercepted from the switching sound information as a valid audio segment. The valid audio segment may contain sound information not generated by the relay, and according to the audio intensity threshold in the audio feature extraction rule, an audio signal greater than the audio intensity threshold can be intercepted from the valid audio segment as the corresponding target audio segment. Then the duration of the current audio segment is less than the duration of the valid audio segment.

[0024] Further, audio frequency feature information is obtained from the target audio segment, and the audio frequency feature information includes intensity information corresponding to each audio frequency division frequency, and the audio frequency division frequency is also the frequency value of the audio vibration. For example, the audio frequency division frequency can be 1.0kHz, 1.2kHz, 1.5kHz, 1.8kHz... The target audio segment is composed of multiple audio frames, and each audio frame includes the intensity values ​​of multiple audio frequency division frequencies. For example, 1 second can be composed of 400 audio frames, and each audio frame corresponds to a 2.5ms audio segment; the intensity values ​​corresponding to each audio frequency division frequency in each audio frame in the target audio segment can be obtained, and the average value of the intensity values ​​corresponding to the audio frequency division frequency in multiple audio frames is calculated as the intensity information corresponding to the audio frequency division frequency, and the intensity information of each audio frequency division frequency can be obtained to be combined into the audio frequency feature information.

[0025] The maximum audio intensity and the minimum audio intensity of the target audio segment are obtained to obtain the audio intensity information of the target audio segment; the duration of the target audio segment is obtained to obtain the audio duration; for example, the audio duration of a target audio segment is 15ms.

[0026] S140: Verify whether the switched audio feature matches the audio analysis parameter according to a preset detection verification strategy to obtain a corresponding audio detection verification result.

[0027] Whether the obtained switching audio features match the audio analysis parameters can be verified according to the detection and verification strategy, thereby obtaining a matching or non-matching audio detection and verification result.

[0028] In a specific embodiment, step S140 includes sub-steps: verifying whether the audio intensity information and audio duration in the switching audio feature match the corresponding numerical range in the audio analysis parameter to obtain a first verification result; if the first verification result is a match, obtaining the characteristic audio ratio corresponding to the audio frequency feature information in the switching audio feature and the audio range according to the frequency range in the audio analysis parameter; verifying whether the characteristic audio ratio is not less than the ratio threshold in the detection verification strategy to obtain a second verification result; if the second verification result is yes, determining that the audio detection verification result is a match; if the first verification result is a mismatch or the second verification result is no, determining that the audio detection verification result is a mismatch.

[0029] Specifically, it is possible to verify whether the audio intensity information in the switching audio feature matches the audio intensity numerical range in the audio analysis parameter. For example, if the audio intensity numerical range in the audio analysis parameter is [30dB, 50dB], it is possible to determine whether the maximum audio intensity and the minimum audio intensity in the audio intensity information are both within the audio intensity numerical range, thereby verifying whether the audio intensity information matches the audio intensity numerical range. Further, it is possible to determine whether the audio duration in the switching audio feature matches the duration numerical range in the audio analysis parameter. For example, the duration numerical range may be [5ms, 20ms], then it is possible to determine whether the audio duration is within the duration numerical range, thereby verifying whether the audio duration matches the duration numerical range. If both the audio intensity information and the audio duration match the corresponding numerical ranges, a first verification result of matching is obtained; if any parameter information does not match the corresponding numerical range, a first verification result of mismatch is obtained.

[0030] Furthermore, the audio frequency feature information in the switching audio feature and the characteristic audio ratio corresponding to the frequency range can be obtained according to the frequency range in the audio analysis parameter. For example, the frequency range can be [1.5kHz, 3.0kHz]. Then the calculation formula for the characteristic audio ratio is: ; Wherein, C is the characteristic audio ratio, M is the number of audio frequency division frequencies within the frequency range in the audio frequency characteristic information, and if N is the total number of audio frequency division frequencies contained in the audio frequency characteristic information, then M is less than or equal to N; h i is the intensity information of the ith audio frequency in the frequency range (in dB), r i is the average audio proportion of the i-th audio crossover frequency within the frequency range.

[0031] Furthermore, it can be determined whether the characteristic audio ratio is not less than the ratio threshold in the detection verification strategy. The ratio threshold can be used to characterize the overlap between the switching audio feature and the audio range. The higher the overlap between the two, the larger the ratio threshold, and the lower the overlap between the two, the smaller the ratio threshold. If the characteristic audio ratio is not less than the ratio threshold, the second verification result obtained is yes; if the characteristic audio ratio is less than the ratio threshold, the second verification result obtained is no.

[0032] If the second verification result is yes, the audio detection verification result can be determined to be a match; if the first verification result is no match or the second verification result is no, the audio detection verification result is determined to be no match.

[0033] S150: If the audio detection verification result is a match, a closed normal tag is added to the status information of the relay and the status information is uploaded to the host computer through the communication module.

[0034] If the audio detection verification result is a match, it means that the relay is closed normally. At this time, a closed normal tag can be added to the status information of the relay, that is, the status information of the relay is marked as "closed normally". The microcontroller can upload the updated status information to the host computer (or remote monitoring center) through the communication module.

[0035] In a specific embodiment, after step S150, the steps are also included: inputting the switching audio features as historical audio features into the storage module for storage; if a preset parameter update time point is reached, performing feature analysis on the historical audio features stored in the storage module according to preset feature analysis rules to obtain corresponding feature analysis information; and updating the audio analysis parameters in the storage module according to the feature analysis information.

[0036] Furthermore, if the audio detection verification result is a match, the switching audio features corresponding to the audio detection verification result can be used as a set of historical audio features, and the historical audio features can be input into the storage module for storage. Since the sound features of the charging pile may change slightly due to the aging of the device during long-term operation and use, in order to adjust and update the audio analysis parameters in time according to the operation of the relay, the historical audio features can be obtained and stored first. When the parameter update time point is reached, the historical audio features can be feature analyzed according to the feature analysis rules to obtain the feature analysis information; and the audio analysis parameters currently stored in the storage module are updated based on the feature analysis information to ensure that the state of the relay can be continuously and accurately detected. For example, the parameter update cycle can be configured to 1 month, and when the time point of 1 month interval from the last update is reached, it can be determined that the parameter update time point has been reached.

[0037] In a specific embodiment, the historical audio features stored in the storage module are subjected to feature analysis according to preset feature analysis rules to obtain corresponding feature analysis information, including: obtaining historical audio features within the analysis period as audio features to be analyzed according to the analysis period in the feature analysis rules; obtaining the average intensity value and the average duration of the audio features to be analyzed; obtaining the average audio proportion of each audio crossover frequency in the audio features to be analyzed; and combining the average audio proportion, the average intensity value and the average duration into corresponding feature analysis information.

[0038] Specifically, the corresponding historical audio features can be obtained as the audio features to be analyzed according to the analysis period in the feature analysis rule. The analysis period can be a time period with a certain time interval from the current time. Each historical audio feature corresponds to a storage time, which is the time information of inputting the historical audio features into the storage module for storage. For example, the analysis period can be set to 3 months, and the historical audio features within 3 months from the current time can be obtained according to the analysis period as the audio features to be analyzed.

[0039] Furthermore, the sound intensity of all features to be analyzed can be averaged to obtain an average intensity value, and the audio duration of the features to be analyzed can be averaged to obtain an average duration. The average audio proportion of each audio crossover frequency in the audio features to be analyzed can be further obtained; specifically, the average intensity value of each audio crossover frequency in the audio features to be analyzed can be calculated, and the average intensity values ​​of each audio crossover frequency can be accumulated to obtain a total intensity value, and the ratio between the average intensity value of each audio crossover frequency and the total intensity value can be calculated to obtain the average audio proportion of each audio crossover frequency.

[0040] The obtained average audio proportion, average intensity value and average duration are combined to obtain characteristic analysis information. The currently stored audio analysis parameters can be updated according to the characteristic analysis information. Specifically, a new audio intensity value range can be calculated based on the intensity ratio range and the average intensity value, and the original parameter values ​​in the audio analysis parameters are updated by the new audio intensity value range; for example, the intensity ratio range is [0.6, 1.5], then the corresponding audio intensity value range is [0.6h0, 1.5h0], and h0 is the average intensity value. Furthermore, a new duration value range can be calculated based on the time ratio range and the average duration, and the original parameter values ​​in the audio analysis parameters are updated by the new duration value range; for example, the time ratio range is [0.5T0, 2T0], and T0 is the average duration. The obtained average audio proportion can be directly used to update the frequency range (that is, to update the r within the frequency range). i coefficients to be updated).

[0041] S160: If the audio detection verification result is mismatched, a closure abnormality tag is added to the status information of the relay and the status information is uploaded to the host computer through the communication module.

[0042] If the audio detection verification result is mismatched, it indicates that the relay is abnormally closed. At this time, a closing abnormality tag can be added to the status information of the relay, and the obtained status information can be uploaded to the host computer (or remote monitoring center) through the communication module so that the operation and maintenance personnel can perform fault analysis and processing.

[0043] S170: Send a corresponding alarm instruction to the alarm module according to the status information to control the alarm module to issue an alarm prompt information.

[0044] Furthermore, a corresponding alarm instruction may be sent to the alarm module according to the above-mentioned status information, and the alarm module may issue a corresponding alarm prompt information (such as issuing an audible and visual alarm signal) according to the alarm instruction.

[0045] In the charging pile relay state detection method based on audio detection disclosed in the above embodiment, the method includes: reading the audio analysis parameters in the storage module, sending the power switching instruction to the relay control module and extracting the features of the received switching sound information to obtain the switching audio features; verifying whether the switching audio features match the audio analysis parameters according to the detection verification strategy; if they match, adding a closed normal tag to the state information of the relay and uploading it to the host computer; if they do not match, adding the closed abnormal tag value state information and uploading it to the host computer and sending an alarm instruction to the alarm module. The above state detection method can collect the sound information emitted by the relay when performing power switching, and extract the switching audio features and audio analysis parameters for matching analysis. No complex circuit is required for identification and analysis, which avoids the influence of electromagnetic interference on the detection results, thereby greatly improving the accuracy and reliability of the relay state detection.

[0046] The embodiment of the present invention also provides a charging pile relay state detection device based on audio detection, which can be configured in a microcontroller, and is used to execute any embodiment of the above-mentioned charging pile relay state detection method based on audio detection. Figure 3 , Figure 3 A schematic block diagram of a charging pile relay state detection device based on audio detection provided in an embodiment of the present invention.

[0047] like Figure 3As shown, the charging pile relay state detection device 100 based on audio detection includes a parameter reading unit 110, a power switching instruction sending unit 120, a switching audio feature extraction unit 130, a feature matching verification unit 140, a first state information uploading unit 150, a second state information uploading unit 160 and an alarm instruction sending unit 170.

[0048] The parameter reading unit 110 is used to read the audio analysis parameters preset in the storage module.

[0049] The power switching instruction sending unit 120 is used to send a power switching instruction to the relay control module so as to drive the relay to perform power switching through the relay control module.

[0050] The switching audio feature extraction unit 130 is used to extract corresponding switching audio features from the switching sound information according to a preset audio feature extraction rule, wherein the switching sound information is the sound information emitted by the relay during power switching obtained by the sound collection module.

[0051] In a specific embodiment, the switching audio feature extraction unit 130 includes subunits: a cut-off time point determination unit, which is used to obtain a time point in the switching sound information that is greater than the audio start intensity according to the audio start intensity in the audio feature extraction rule as a corresponding cut-off time point; a first audio signal cut-off unit, which is used to cut off the corresponding audio signal from the switching sound information as a valid audio segment according to the cut-off time point and the cut-off duration in the audio feature extraction rule; a second audio signal cut-off unit, which is used to cut off an audio signal greater than the audio intensity threshold from the valid audio segment according to the audio intensity threshold in the audio feature extraction rule as a target audio segment; a feature acquisition unit, which is used to obtain audio frequency feature information, audio intensity information and audio duration of the target audio segment as the corresponding switching audio feature.

[0052] The feature matching verification unit 140 is used to verify whether the switching audio feature matches the audio analysis parameter according to a preset detection verification strategy to obtain a corresponding audio detection verification result.

[0053] In a specific embodiment, the feature matching verification unit 140 includes subunits: a first verification result acquisition unit, which is used to verify whether the audio intensity information and audio duration in the switching audio feature match the corresponding numerical range in the audio analysis parameter to obtain a first verification result; a feature audio ratio acquisition unit, which is used to obtain the feature audio ratio corresponding to the audio frequency feature information in the switching audio feature and the audio range according to the frequency range in the audio analysis parameter if the first verification result is a match; a second verification result unit, which is used to verify whether the feature audio ratio is not less than the ratio threshold in the detection verification strategy to obtain a second verification result; a first result determination unit, which is used to determine that the audio detection verification result is a match if the second verification result is yes; and a second result determination unit, which is used to determine that the audio detection verification result is a match if the first verification result is a mismatch or the second verification result is no.

[0054] The first status information uploading unit 150 is used to add a closed normal tag to the status information of the relay and upload the status information to the host computer through the communication module if the audio detection verification result is a match.

[0055] The second status information uploading unit 160 is used to add a closing abnormality tag to the status information of the relay and upload the status information to the host computer through the communication module if the audio detection verification result is mismatched.

[0056] The alarm instruction sending unit 170 is used to send a corresponding alarm instruction to the alarm module according to the status information to control the alarm module to send out alarm prompt information.

[0057] The charging pile relay state detection device based on audio detection provided in the embodiment of the present invention applies the above-mentioned charging pile relay state detection method based on audio detection, reads the audio analysis parameters in the storage module, sends the power switching instruction to the relay control module and extracts the features of the received switching sound information to obtain the switching audio features; verifies whether the switching audio features match the audio analysis parameters according to the detection verification strategy; if they match, add a closed normal tag to the state information of the relay and upload it to the host computer; if they do not match, add the closed abnormal tag value state information and upload it to the host computer and send an alarm instruction to the alarm module. The above-mentioned state detection method can collect the sound information emitted by the relay when performing power switching, and extract the switching audio features and audio analysis parameters for matching analysis, without the need for complex circuits for identification and analysis, avoiding the influence of electromagnetic interference on the detection results, thereby greatly improving the accuracy and reliability of the state detection of the relay.

[0058] The embodiment of the present invention also provides a charging pile relay state detection device based on audio detection, wherein, Figure 2 As shown, the device includes a microcontroller 10, a sound collection module 20, a storage module 30, an alarm module 40, a communication module 50 and a relay control module 60; the microcontroller 10 is respectively communicatively connected with the sound collection module 20, the storage module 30, the alarm module 40, the communication module 50 and the relay control module 60, the sound collection module 20 is arranged close to the surface of the relay, and the relay control module 60 is electrically connected to the control port of the relay.

[0059] Specifically, Figure 5 As shown, the sound collection module 20 includes a microphone 21 and a sound collection circuit, and the audio output port of the sound collection circuit is connected to the microcontroller 10. Specifically, when the charging power stack of the charging pile performs a power switching operation, the relay operates to generate a sound signal; the microphone 21 in the sound collection module 20 collects the sound signal in real time and transmits it to the signal conditioning unit in the sound collection circuit. The preamplifier in the signal conditioning unit amplifies the weak sound signal, and then filters out the noise through a bandpass filter. Finally, the post-amplifier amplifies the signal to a suitable amplitude and transmits it to the microcontroller 10. The microcontroller 10 samples the input sound signal at a set sampling frequency, and stores the sampled switching sound information in its internal buffer.

[0060] The computer program configured in the above microcontroller can be Figure 4 If the microcontroller is operated on the computer device shown, the microcontroller can be implemented as a computer device.

[0061] See also Figure 4 , Figure 4 is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device may be a microcontroller for executing a charging pile relay state detection method based on audio detection to analyze sound information to detect the relay state.

[0062] See also Figure 4 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a communication bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .

[0063] The storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute a charging pile relay state detection method based on audio detection, wherein the storage medium 503 can be a volatile storage medium or a non-volatile storage medium.

[0064] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0065] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the charging pile relay state detection method based on audio detection.

[0066] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0067] The processor 502 is used to run a computer program 5032 stored in a memory to implement the corresponding functions in the above-mentioned charging pile relay state detection method based on audio detection.

[0068] Those skilled in the art will understand that Figure 4 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Figure 4 The embodiments shown are consistent and will not be described again here.

[0069] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0070] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps included in the above-mentioned charging pile relay state detection method based on audio detection are implemented.

[0071] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0072] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.

[0073] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.

[0074] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0075] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk or an optical disk.

[0076] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A charging pile relay state detection method based on audio detection, characterized in that: The method is applied to a microcontroller, wherein the microcontroller is respectively connected to a sound collection module, a storage module, an alarm module, a communication module and a relay control module for communication, the sound collection module is arranged close to the surface of the relay, and the relay control module is electrically connected to the control port of the relay; the method comprises: Reading the audio analysis parameters preset in the storage module; Sending a power switching instruction to the relay control module to drive the relay through the relay control module to perform power switching; Extracting corresponding switching audio features from the switching sound information according to a preset audio feature extraction rule, wherein the switching sound information is the sound information emitted by the relay during power switching obtained by the sound acquisition module; Verify whether the switched audio feature matches the audio analysis parameter according to a preset detection verification strategy to obtain a corresponding audio detection verification result; If the audio detection verification result is a match, a closed normal tag is added to the status information of the relay and the status information is uploaded to the host computer through the communication module; If the audio detection verification result is mismatch, adding a closure abnormality tag to the status information of the relay and uploading the status information to the host computer through the communication module; According to the status information, a corresponding alarm instruction is sent to the alarm module to control the alarm module to issue an alarm prompt information.

2. The method for detecting the state of a charging pile relay based on audio detection according to claim 1, characterized in that: The extracting corresponding switching audio features from the switching sound information according to the preset audio feature extraction rules includes: According to the audio start intensity in the audio feature extraction rule, obtaining a time point in the switching sound information that is greater than the audio start intensity as a corresponding interception time point; According to the interception time point and the interception duration in the audio feature extraction rule, intercepting a corresponding audio signal from the switching sound information as a valid audio segment; According to the audio intensity threshold in the audio feature extraction rule, an audio signal greater than the audio intensity threshold is intercepted from the valid audio segment as a target audio segment; The audio frequency feature information, audio intensity information and audio duration of the target audio segment are obtained as corresponding switching audio features.

3. The method for detecting the state of a charging pile relay based on audio detection according to claim 1, characterized in that: The step of verifying whether the switching audio feature matches the audio analysis parameter according to a preset detection verification strategy to obtain a corresponding audio detection verification result includes: Verifying whether the audio intensity information and the audio duration in the switching audio feature match the corresponding numerical ranges in the audio analysis parameters to obtain a first verification result; If the first verification result is a match, obtaining the audio frequency feature information in the switching audio feature and the characteristic audio ratio corresponding to the audio range according to the frequency range in the audio analysis parameter; Verify whether the characteristic audio ratio is not less than the ratio threshold in the detection verification strategy to obtain a second verification result; If the second verification result is yes, determining that the audio detection verification result is a match; If the first verification result is mismatch or the second verification result is no, the audio detection verification result is determined to be mismatch.

4. The method for detecting the state of a charging pile relay based on audio detection according to any one of claims 1 to 3, characterized in that: After adding the closed normal tag to the state information of the relay and uploading the state information to the host computer through the communication module, it also includes: Inputting the switching audio feature as a historical audio feature into the storage module for storage; If the preset parameter update time point is reached, feature analysis is performed on the historical audio features stored in the storage module according to preset feature analysis rules to obtain corresponding feature analysis information; The audio analysis parameters in the storage module are updated according to the feature analysis information.

5. The method for detecting the state of a charging pile relay based on audio detection according to claim 4, characterized in that: The performing feature analysis on the historical audio features stored in the storage module according to the preset feature analysis rules to obtain corresponding feature analysis information includes: According to the analysis period in the feature analysis rule, historical audio features within the analysis period are obtained as audio features to be analyzed; Obtaining the average intensity value and average duration of the audio feature to be analyzed; Obtaining an average audio ratio of each audio frequency division frequency in the audio feature to be analyzed; The average audio proportion, the average intensity value and the average duration are combined into corresponding feature analysis information.

6. A charging pile relay state detection device based on audio detection, characterized in that: The device is configured in a microcontroller, and the microcontroller is respectively connected to a sound collection module, a storage module, an alarm module, a communication module and a relay control module for communication. The sound collection module is arranged close to the surface of the relay, and the relay control module is electrically connected to the control port of the relay. The device is used to execute the charging pile relay state detection method based on audio detection according to any one of claims 1 to 5, and the device includes: A parameter reading unit, used for reading the audio analysis parameters preset in the storage module; A power switching instruction sending unit, used for sending a power switching instruction to the relay control module, so as to drive the relay to perform power switching through the relay control module; A switching audio feature extraction unit, used for extracting corresponding switching audio features from switching sound information according to a preset audio feature extraction rule, wherein the switching sound information is sound information emitted by the relay when power switching is performed obtained by the sound acquisition module; A feature matching verification unit, used to verify whether the switched audio feature matches the audio analysis parameter according to a preset detection verification strategy, and obtain a corresponding audio detection verification result; A first status information uploading unit, configured to add a closed normal tag to the status information of the relay and upload the status information to a host computer through the communication module if the audio detection verification result is a match; A second status information uploading unit, configured to add a closure abnormality tag to the status information of the relay and upload the status information to a host computer through the communication module if the audio detection verification result is mismatched; The alarm instruction sending unit is used to send a corresponding alarm instruction to the alarm module according to the status information to control the alarm module to send out alarm prompt information.

7. The charging pile relay state detection device based on audio detection according to claim 6 is characterized in that: The switching audio feature extraction unit comprises: A cut-off time point determination unit, configured to obtain, according to the audio start intensity in the audio feature extraction rule, a time point in the switching sound information that is greater than the audio start intensity as a corresponding cut-off time point; A first audio signal interception unit, configured to intercept a corresponding audio signal from the switching sound information as a valid audio segment according to the interception time point and the interception duration in the audio feature extraction rule; A second audio signal interception unit, configured to intercept an audio signal having an intensity greater than the audio intensity threshold from the valid audio segment according to the audio intensity threshold in the audio feature extraction rule as a target audio segment; The feature acquisition unit is used to acquire audio frequency feature information, audio intensity information and audio duration of the target audio segment as corresponding switching audio features.

8. The charging pile relay state detection device based on audio detection according to claim 6, characterized in that: The feature matching verification unit includes: A first verification result obtaining unit, configured to verify whether the audio intensity information and the audio duration in the switching audio feature match the corresponding numerical ranges in the audio analysis parameters, to obtain a first verification result; a characteristic audio ratio acquisition unit, configured to acquire, if the first verification result is a match, a characteristic audio ratio corresponding to the audio frequency characteristic information in the switching audio feature and the audio range according to the frequency range in the audio analysis parameter; A second verification result unit is used to verify whether the characteristic audio ratio is not less than the ratio threshold in the detection verification strategy to obtain a second verification result; a first result determination unit, configured to determine that the audio detection verification result is a match if the second verification result is yes; The second result determination unit is configured to determine that the audio detection verification result is not matched if the first verification result is not matched or the second verification result is not matched.

9. A charging pile relay status detection device based on audio detection, characterized in that: The device includes a microcontroller, a sound collection module, a storage module, an alarm module, a communication module and a relay control module; The microcontroller is respectively connected to the sound collection module, the storage module, the alarm module, the communication module and the relay control module for communication, the sound collection module is arranged close to the surface of the relay, and the relay control module is electrically connected to the control port of the relay; The microcontroller includes a processor, a network interface, a memory and a communication bus, wherein the processor, the network interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; The processor is used to implement the steps of the charging pile relay state detection method based on audio detection described in any one of claims 1-5 when executing the program stored in the memory.

10. The charging pile relay state detection device based on audio detection according to claim 9, characterized in that: The sound collection module includes a microphone and a sound collection circuit, and the audio output port of the sound collection circuit is connected to the microcontroller.

Citation Information

Patent Citations

  • Detection method for relay adhesion fault of new energy battery electric vehicle

    CN113655378A

  • Power system oscillation risk assessment method and system, computer equipment and medium

    CN116050849A

  • Experimental device for voice operated switch circuit

    CN220120951U

  • Speech detection system for noisy conditions

    EP0945854A2