Voltage filtering methods for detection points in circuits, switch state detection methods, and related devices.
Patent Information
- Application Number
- VN1202401293
- Authority / Receiving Office
- VN · VN
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-07-23
- Filing Date
- 2022-07-21
- Publication Date
- 2026-09-15
- Estimated Expiration
- 2042-07-21
AI Technical Summary
The existing detection point voltage filtering method cannot verify the effectiveness of the voltage filtering, resulting in the inability to ensure the accuracy of subsequent control or detection, especially in the charging base control and guidance unit of new energy vehicles, the accuracy and stability of switch status detection are affected. .
By continuously collecting multiple voltage data from detection points in the target circuit, applying multiple filtering methods to obtain the voltage filter value, comparing the filter values to determine the voltage target value, ensuring the reliability of the voltage filter, and judging the closure of the switch during switch status detection. state.
It effectively verifies the effectiveness of the detection point voltage filtering, improves the accuracy and reliability of the control and detection of the filtered voltage, and enhances the working stability and reliability of the control and guidance unit of the new energy vehicle charging base.
Smart Images

Figure VN1202401293_0
Abstract
Description
Circuit detection point voltage filtering method, switch state detection method and related devices
[0001] Related applications
[0002] This application claims priority to the Chinese invention patent application with application number 202110839634.6 filed on July 23, 2021, and cites the contents disclosed in the above patent application as part of this application. Technical Field
[0003] The present application relates to the field of new energy technology, and in particular to a circuit detection point voltage filtering method, a switch state detection method, and related devices. Background Art
[0004] Detecting point (DP) voltage filtering involves converting analog voltage signals collected at detection points within a circuit into digital signals and then filtering them to prevent voltage fluctuations that could cause circuit control errors. This is particularly true for control and guidance units in charging stations for new energy vehicles, where the reliability of voltage filtering directly determines the accuracy of switch state detection within the control and guidance units.
[0005] Currently, existing detection point voltage filtering methods usually use a single filter circuit to filter out ripples in the voltage. However, this method cannot verify the effectiveness of voltage filtering and therefore cannot guarantee the accuracy of subsequent control or detection based on the filtered voltage.
[0006] Summary of the Invention
[0007] In response to the problems in the prior art, the present application provides a circuit detection point voltage filtering method, a switch state detection method and related devices, which can effectively verify the effectiveness of the detection point voltage filtering in the circuit, thereby ensuring the reliability of the detection point voltage filtering, and thus effectively improve the accuracy and reliability of subsequent control or detection based on the filtered voltage.
[0008] To solve the above technical problems, this application provides the following technical solutions:
[0009] In a first aspect, the present application provides a circuit detection point voltage filtering method, comprising:
[0010] Continuously collect multiple voltage data of a detection point in the target circuit;
[0011] Applying a filtering method according to the plurality of voltage data to obtain a plurality of voltage filtering values corresponding to the detection point respectively;
[0012] The plurality of voltage filter values are compared, and if the corresponding comparison results meet a preset condition, the voltage target value of the detection point is determined based on the plurality of voltage filter values.
[0013] In a second aspect, the present application provides a switch state detection method, comprising:
[0014] Based on the detection point voltage filtering method, a voltage target value of the first detection point is obtained after controlling a first switch to be closed, wherein one end of the first switch is connected to a first resistor in a control and guidance unit of a charging station, and the other end of the first switch is provided with the first detection point;
[0015] It is determined whether the voltage target value of the first detection point meets a first closing condition, and if so, it is determined that the first switch is currently in a closed state.
[0016] In a third aspect, the present application provides a circuit detection point voltage filtering device, comprising:
[0017] A voltage acquisition module is used to continuously acquire multiple voltage data of a detection point in the target circuit;
[0018] A voltage filtering module, configured to apply a filtering method according to the plurality of voltage data to obtain a plurality of voltage filtering values corresponding to the detection point;
[0019] The microcontroller is configured to compare the plurality of voltage filter values, and if a corresponding comparison result satisfies a preset condition, determine a voltage target value of the detection point based on the plurality of voltage filter values.
[0020] In a fourth aspect, the present application provides a switch status detection system, comprising:
[0021] a detection point voltage filtering device, configured to obtain a voltage target value at a first detection point after controlling a first switch to be closed based on the detection point voltage filtering method, wherein one end of the first switch is connected to a first resistor in a control and guidance unit of a charging station, and the other end of the first switch is provided with the first detection point;
[0022] The switch state judgment module is used to judge whether the voltage target value of the first detection point meets the first closing condition, and if so, determine that the first switch is currently in the closed state.
[0023] In a fifth aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein the processor implements the detection point voltage filtering method when executing the computer program, or implements the switch state detection method when executing the computer program.
[0024] In a sixth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the detection point voltage filtering method when executed by a processor, or implements the switch state detection method when the computer program is executed by a processor.
[0025] As can be seen from the above technical solution, the present application provides a circuit detection point voltage filtering method, a switch state detection method and related devices, wherein the circuit detection point voltage filtering method includes: continuously collecting multiple voltage data of a detection point in the target circuit; applying a filtering method according to the multiple voltage data to obtain multiple voltage filter values corresponding to the detection point respectively; comparing the multiple voltage filter values, and if the corresponding comparison result meets the preset conditions, determining the voltage target value of the detection point based on the multiple voltage filter values. This can effectively verify the effectiveness of the voltage filtering at the detection point in the circuit, effectively ensure the reliability of the voltage filtering at the detection point, effectively and reliably prevent voltage jitter from causing control misjudgment of the circuit, and thus effectively improve the accuracy and reliability of subsequent control or detection based on the filtered voltage, especially for the control guidance unit of the charging seat of new energy vehicles, etc., it can effectively improve the accuracy of the switch state in the control guidance unit detected according to the filtered voltage, and thus effectively improve the working stability and reliability of the control guidance unit of the charging seat of new energy vehicles. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0027] FIG1 is a schematic diagram of a first flow chart of a circuit detection point voltage filtering method in an embodiment of the present application.
[0028] FIG2 is a second flow chart of a method for filtering voltage at a circuit detection point in an embodiment of the present application.
[0029] FIG3 is a third flow chart of the circuit detection point voltage filtering method in the embodiment of the present application.
[0030] FIG4 is a fourth flow chart of the circuit detection point voltage filtering method in the embodiment of the present application.
[0031] FIG5 is a schematic diagram of a first flow chart of a switch state detection method in an embodiment of the present application.
[0032] FIG6 is a schematic diagram showing an example of a control and guidance unit in an embodiment of the present application.
[0033] FIG7 is a second flow chart of the switch state detection method in the embodiment of the present application.
[0034] FIG8 is a schematic diagram of a third flow chart of the switch state detection method in an embodiment of the present application.
[0035] FIG9 is a fourth flow chart of the switch state detection method in the embodiment of the present application.
[0036] FIG10 is a schematic structural diagram of a circuit detection point voltage filtering device in an embodiment of the present application.
[0037] FIG11 is a schematic diagram of a first structure of a switch state detection system in an embodiment of the present application.
[0038] FIG12 is a second structural diagram of the switch state detection system in an embodiment of the present application.
[0039] FIG13 is a flow chart of a switch state detection method implemented based on the switch state detection system in an application example of the present application.
[0040] FIG14 is a schematic structural diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0041] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0042] It should be noted that the circuit detection point voltage filtering method and switch state detection method and device disclosed in this application can be used in the field of new energy technology, and can also be used in any field other than the field of new energy technology. The application field of the circuit detection point voltage filtering method and switch state detection method and related devices and systems disclosed in this application is not limited.
[0043] Considering that the existing detection point voltage filtering method refers to applying a single filtering circuit to filter out ripples in the voltage, but this method cannot verify the effectiveness of voltage filtering, and therefore cannot guarantee the accuracy of subsequent control or detection based on the filtered voltage, etc., the embodiments of the present application provide a circuit detection point voltage filtering method and circuit detection point voltage filtering device. The method continuously collects multiple voltage data of a detection point in a target circuit; applies a filtering method based on the multiple voltage data to obtain multiple voltage filter values corresponding to the detection point; compares the multiple voltage filter values, and if the corresponding comparison results meet preset conditions, determines the voltage target value of the detection point based on the multiple voltage filter values. This method can effectively verify the effectiveness of the detection point voltage filtering in the circuit, effectively ensure the reliability of the detection point voltage filtering, effectively and reliably prevent voltage jitter from causing control misjudgment of the circuit, and thus effectively improve the accuracy and reliability of subsequent control or detection based on the filtered voltage. In particular, for the control and guidance unit of the charging station of a new energy vehicle, the method can effectively improve the accuracy of detecting the switch state in the control and guidance unit based on the filtered voltage, and thus effectively improve the working stability and reliability of the control and guidance unit of the charging station of the new energy vehicle.
[0044] The details are described in detail through the following multiple embodiments.
[0045] In order to solve the problems existing in existing detection point voltage filtering methods, such as the inability to verify the effectiveness of voltage filtering and thus the inability to ensure the accuracy of subsequent control or detection based on the filtered voltage, the present invention provides a circuit detection point voltage filtering method. Referring to FIG1 , the circuit detection point voltage filtering method specifically includes the following contents:
[0046] Step 110: Continuously collect multiple voltage data at a detection point in the target circuit.
[0047] In step 110, the continuous acquisition refers to performing data acquisition for a preset number of times within a preset period of time, for example, acquiring data 10 times within 0.3 seconds, thereby obtaining 10 voltage data Vdp1 to Vdp 10 .
[0048] It can be understood that the voltage data refers to a digital signal, and the acquisition process of the digital signal is: acquiring the voltage analog signal of the acquisition point in the target circuit, and then converting the voltage analog signal into a digital signal to obtain a digital signal for performing filtering processing in the subsequent step 200.
[0049] In one or more embodiments of the present application, the target circuit refers to any circuit that requires setting detection points and performing voltage filtering on the detection points, such as a switch circuit. In a specific example of the present application, the target circuit may specifically refer to a control and guidance unit of a charging station for a new energy vehicle, and the control and guidance unit may refer to a circuit for controlling the switching of the charging station for the new energy vehicle.
[0050] Step 120: Apply a filtering method according to the plurality of voltage data to obtain a plurality of voltage filtering values corresponding to the detection point.
[0051] In step 120, two or more filtering methods may be selected to process the plurality of voltage data, respectively, to obtain voltage filter values corresponding to a number of detection points equal to the number of selected filtering methods. For example, if four filtering methods A, B, C, and D are selected, the filtering results corresponding to these four filtering methods, namely, voltage filter values A1, B1, C1, and D1, are obtained. In a specific example, the filtering methods may be selected from at least two of mean filtering, median filtering, post-interpolation filtering, post-dimensionality reduction filtering, and neighborhood average filtering.
[0052] Step 130: Compare the plurality of voltage filter values to obtain corresponding comparison results.
[0053] Step 140: If the comparison result satisfies a preset condition, determining a voltage target value of the detection point based on the plurality of voltage filter values.
[0054] In step 130 and step 140, the specific method of comparing the multiple voltage filter values is to obtain the difference between the maximum value and the minimum value of the multiple voltage filter values, and use the difference as a comparison result to determine whether it is less than a threshold such as a preset error threshold. If it is less than, the voltage target value of the detection point is determined based on the multiple voltage filter values.
[0055] It can be understood that the specific method of determining the voltage target value of the detection point based on multiple voltage filter values can be to calculate the mean of multiple voltage filter values and use the mean to determine the voltage target value of the detection point; or the median between multiple voltage filter values can be selected and the voltage target value of the detection point can be determined by the median; or any one of the multiple voltage filter values can be selected as the voltage target value of the detection point.
[0056] From the above description, it can be seen that the detection point voltage filtering method provided in the embodiment of the present application can effectively verify the effectiveness of the detection point voltage filtering in the circuit, can effectively ensure the reliability of the detection point voltage filtering, can effectively and reliably prevent voltage jitter from causing control misjudgment of the circuit, and thus can effectively improve the accuracy and reliability of subsequent control or detection based on the filtered voltage, especially for the control guidance unit of the charging seat of new energy vehicles, etc., can effectively improve the accuracy of the switch state in the control guidance unit according to the filtered voltage detection, and thus can effectively improve the working stability and reliability of the control guidance unit of the charging seat of new energy vehicles.
[0057] In order to provide a reliable processing method when the detection point voltage filtering result in the verification circuit is invalid or unreliable, in one embodiment of the detection point voltage filtering method provided in the present application, referring to FIG2 , the detection point voltage filtering method may further include the following content after step 130:
[0058] Step 150: If the comparison result does not meet the preset condition, determine that the voltage filtering result of the detection point is invalid.
[0059] Then return to execute step 110, and re-execute steps 110 to 130: re-continuously collect multiple voltage data of the detection point and obtain multiple voltage filter values corresponding to the detection point, until the re-obtained comparison result meets the preset condition and execute step 140 to determine the voltage target value of the detection point.
[0060] From the above description, it can be seen that the detection point voltage filtering method provided in the embodiment of the present application can provide a reliable processing method when the detection point voltage filtering result in the verification circuit is invalid or unreliable, so as to further ensure the reliability of the detection point voltage filtering, and can effectively and reliably prevent voltage jitter from causing control misjudgment of the circuit, and can effectively improve the applicability of the detection point voltage filtering process.
[0061] In order to reduce circuit complexity and energy waste, in one embodiment of the detection point voltage filtering method provided in the present application, referring to FIG3 , step 120 of the detection point voltage filtering method may specifically include the following contents:
[0062] Step 121: Apply a mean filtering algorithm to perform mean calculation on the plurality of voltage data of the detection point to obtain a voltage mean value as a voltage filtering value of the detection point.
[0063] For example, assuming the voltage at the detection point is Vdp, take n data points at the detection point, where n is a positive integer; the sum of the n data is Vdp_sum, then:
[0064] Vdp_sum=Vdp1+Vdp2+Vdp3+......+Vdp n-1 +Vdp n ;
[0065] Assume that the mean value of n data is Vdp_ave; then:
[0066] Vdp_ave=Vdp_sum / n.
[0067] Step 122: Apply a median filter algorithm to perform median calculation on the plurality of voltage data of the detection point to obtain a voltage median value as another voltage filter value of the detection point.
[0068] For example, assuming the detection point voltage Vdp, take n data of the detection point, and then operate as follows:
[0069] 1. First, arrange the n voltage values of the detection points in order from small to large or from large to small to obtain a data combination of the rearranged n voltage values;
[0070] 2. Take the middle value of n data, that is, the median Vdp_mid;
[0071] If n is an even number, then:
[0072] Vdp_mid=(Vdp n / 2 +Vdp (n / 2)+1 ) / 2;
[0073] If n is an odd number, then:
[0074] Vdp_mid=(Vdp (n / 2)+1 ).
[0075] From the above description, it can be seen that the detection point voltage filtering method provided in the embodiment of the present application, by selecting only two filtering methods to filter the multiple voltage data of the detection points, can minimize the calculation amount and time cost while ensuring the effectiveness of the verification voltage filtering results, thereby effectively reducing the complexity of the circuit and reducing energy waste.
[0076] In order to further reduce circuit complexity and energy waste, in one embodiment of the detection point voltage filtering method provided in the present application, referring to FIG4 , step 130 of the detection point voltage filtering method may specifically include the following contents:
[0077] Step 131: Obtain the difference between the voltage mean and the voltage median, and determine whether the difference is less than an error threshold. If so, execute step 140. Specific implementation method: step 141;
[0078] Step 141: Determine the voltage target value of the detection point based on the voltage mean value and the voltage median value.
[0079] For example, after the two filtering algorithms provided by steps 121 and 122, two values Vdp_ave and Vdp_mid are obtained, and the two values are subtracted to obtain a difference. If the difference is less than the error threshold, the voltage target value of the detection point is determined based on the voltage mean and the voltage median; if the difference is greater than or equal to the set error threshold, the process returns to step 110.
[0080] It can be understood that the specific method of determining the voltage target value of the detection point based on the voltage mean and the voltage median can be: calculating the average of the voltage mean and the voltage median, and using the average to determine the voltage target value of the detection point; or selecting either the voltage mean or the voltage median as the voltage target value of the detection point.
[0081] From the above description, it can be seen that the detection point voltage filtering method provided in the embodiment of the present application, by determining the voltage target value of the detection point based on the voltage mean and the voltage median, can further reduce the calculation amount and time cost on the basis of ensuring the effectiveness of verifying the voltage filtering results, thereby effectively reducing the complexity of the circuit and reducing energy waste.
[0082] In order to solve the increasingly prominent energy crisis and environmental pollution problems, new energy vehicles have become the main development direction of various countries. For the control and guidance unit of the charging seat of new energy vehicles, the effectiveness of detecting the switch state in the control and guidance unit also determines the application reliability of the charging seat of new energy vehicles. Therefore, considering that the existing detection point voltage filtering method uses a single filtering circuit to filter out the ripple in the voltage, but this method cannot verify the effectiveness of the voltage filtering, and therefore cannot guarantee the accuracy of the switch state detection of the control and guidance unit based on the filtered voltage, the embodiment of the present application provides a switch state detection method and a switch state detection device, which obtains the voltage target value of the first detection point after controlling the first switch to be closed based on the detection point voltage filtering method mentioned in one or more of the aforementioned embodiments, wherein the first One end of the switch is connected to the first resistor in the control and guidance unit of a charging seat, and the other end of the first switch is provided with the first detection point; it is judged whether the voltage target value of the first detection point meets the first closing condition. If so, it is determined that the first switch is currently in a closed state, which can effectively verify the effectiveness of the voltage filtering of the detection point in the circuit, effectively ensure the reliability of the voltage filtering of the detection point, and effectively and reliably prevent voltage jitter from causing control misjudgment of the circuit, thereby effectively improving the accuracy and reliability of switch state detection in the control and guidance unit of the charging seat of the new energy vehicle based on the filtered voltage, thereby effectively improving the working stability and reliability of the charging seat of the new energy vehicle.
[0083] The details are described in detail through the following multiple embodiments.
[0084] In order to solve the problem that the existing detection point voltage filtering method uses a single filtering circuit to filter out ripples in the voltage, but this method cannot verify the effectiveness of the voltage filtering, and therefore cannot guarantee the accuracy of the switch state detection of the control steering unit based on the filtered voltage, in one embodiment of the switch state detection method provided in the present application, referring to FIG5, the switch state detection method specifically includes the following content:
[0085] Step 210: Based on the detection point voltage filtering method, the voltage target value of the first detection point is obtained after controlling the first switch to be closed, wherein one end of the first switch is connected to the first resistor in a control guidance unit of a charging base, and the other end of the first switch is provided with the first detection point.
[0086] It is understandable that the control and guidance unit of the charging station is a specific implementation of the target circuit. Therefore, step 210 uses the first detection point as the current detection point in the detection point voltage filtering method to perform filtering calculation. For example, the following contents are implemented by applying steps 110 to 140:
[0087] Continuously collect multiple voltage data of the first detection point in the control and guidance unit of the charging base, apply a filtering method based on the multiple voltage data to obtain multiple voltage filter values corresponding to the first detection point, compare the multiple voltage filter values to obtain corresponding comparison results, and if the comparison result meets the preset conditions, determine the voltage target value Vdp3_last of the first detection point based on the multiple voltage filter values.
[0088] In one or more embodiments of the present application, the first detection point is represented as DP3, and the first switch is represented as Sv.
[0089] Step 220: Determine whether the voltage target value of the first detection point meets a first closing condition. If so, determine that the first switch is currently in a closed state.
[0090] It can be understood that if it is determined in step 220 that the voltage target value of the first detection point does not meet the first closing condition, it is determined that the first switch has failed to close, and a notification message indicating that the first switch has failed to close is output. For example, the notification message can be displayed on a display screen that is communicatively connected to the switch status detection system, or the notification message can be sent through a communication unit set in the switch status detection system via a third-party server or to a client device held by a technician.
[0091] The client devices held by the technicians may include smartphones, tablet electronic devices, network set-top boxes, portable computers, desktop computers, personal digital assistants (PDAs), in-vehicle devices, smart wearable devices, etc. These smart wearable devices may include smart glasses, smart watches, smart bracelets, etc. This effectively improves the efficiency of notification of switch closure failure messages and the maintenance efficiency of the technicians on the control and guidance unit of the charging station.
[0092] The client device may include a communication module (i.e., a communication unit) that can establish a communication connection with a remote server to implement data transmission with the server. The server may include a server on the task scheduling center side, and in other implementation scenarios, may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, a server cluster consisting of multiple servers, or a server structure of a distributed device.
[0093] The server and the client device may communicate using any suitable network protocol, including network protocols that have not yet been developed as of the filing date of this application. Examples of such network protocols include TCP / IP, UDP / IP, HTTP, and HTTPS. Furthermore, examples of such network protocols include RPC (Remote Procedure Call Protocol) and REST (Representational State Transfer) protocols, which are used on top of the aforementioned protocols.
[0094] From the above description, it can be seen that the switch state detection method provided in the embodiment of the present application can effectively verify the effectiveness of the voltage filtering at the detection point in the circuit, can effectively ensure the reliability of the voltage filtering at the detection point, can effectively and reliably prevent voltage jitter from causing control misjudgment of the circuit, and thus can effectively improve the accuracy and reliability of the switch state detection in the control guidance unit of the charging seat of the new energy vehicle based on the filtered voltage, and thus can effectively improve the working stability and reliability of the charging seat of the new energy vehicle.
[0095] In order to further improve the application pertinence of the switch state detection method, in one embodiment of the switch state detection method of the present application, the charging seat is a compatible new energy vehicle charging seat for being compatible with multiple charging protocols.
[0096] That is to say, the control and guidance unit mentioned in one or more embodiments of the present application can be a control and guidance unit of a compatible new energy vehicle charging seat specifically used to be compatible with multiple charging protocols.
[0097] It can be understood that in a specific example of the control and guidance unit, see Figure 6, the control and guidance unit may include: a first switch Sv, a first resistor Rv, a power supply U2, a second switch S2', a second resistor R4', and a selection switch S2; one end of the first switch Sv is connected to the first resistor Rv in the control and guidance unit of the compatible new energy vehicle charging station, and the other end of the first switch Sv is provided with the first detection point DP3 (Detecting Point 3 in Figure 6), and the first resistor Rv is connected in series with the power supply U2 to form a branch; one end of the second switch S2' is connected in series with the second resistor R4' in the control and guidance unit to form a first branch, and the first branch is connected in parallel with the branch where the first resistor Rv is located, and the first branch is also connected in parallel with the branch where the third resistor R3' is located; the control points 1 to 3 corresponding to each of the charging protocols corresponding to one end of the selection switch S2 are respectively connected to a resistor (i.e., resistor R4c', resistor R4c and resistor R4), and the other end of the selection switch S2 is connected to the second detection point DP2 (Detecting Point 3 in Figure 6). 2) The branch where the second detection point DP2 is located is also connected to the other end of the second switch S2'; the selection switch S2 is set on the second branch, and the second branch is connected in parallel with the first branch and the branch where the first resistor Rv is located.
[0098] It can be understood that the first switch Sv is a connection status detection switch for detecting a connection status, the second switch S2 ′ is a charge control switch for performing charge control, and the selection switch S2 is a protocol compatibility switch for performing protocol compatibility.
[0099] In order to further improve the accuracy of the first switch state detection, in one embodiment of the switch state detection method of the present application, the first closing condition in the switch state detection method specifically includes the following content:
[0100] The voltage target value of the first detection point obtained after controlling the first switch to be closed is not equal to the voltage target value of the first detection point obtained in advance before controlling the first switch to be closed, and the voltage target value of the first detection point obtained after controlling the first switch to be closed is within the voltage range corresponding to any of the charging protocols.
[0101] In order to provide a method for identifying a charging protocol, in one embodiment of the switch state detection method of the present application, referring to FIG7 , the switch state detection method further specifically includes the following content after step 220:
[0102] Step 230: Determine a target charging protocol corresponding to the voltage target value based on the preset voltage ranges corresponding to the respective charging protocols.
[0103] From the above description, it can be seen that the switch status detection method provided in the embodiment of the present application can improve the reliability of the selection switch closure, meet the compatibility requirements of the compatible new energy vehicle charging seat, and further improve the application reliability and stability of the compatible new energy vehicle charging seat.
[0104] In order to improve the comprehensiveness and effectiveness of switch state detection, in one embodiment of the switch state detection method of the present application, referring to FIG8 , step 230 in the switch state detection method further specifically includes the following contents:
[0105] Step 241: Receive a closing instruction for a second switch and control the second switch to close, wherein one end of the second switch is connected in series with a second resistor in the control and guidance unit to form a first branch, and the first branch is connected in parallel with the branch where the first resistor is located.
[0106] Step 242: Obtain a voltage target value of a second detection point based on the detection point voltage filtering method, wherein the branch where the second detection point is located is connected to the first branch.
[0107] Step 243: Determine whether the voltage target value of the second detection point meets the second closing condition; if so, determine that the second switch is currently in the closed state.
[0108] In order to further improve the accuracy of the second switch state detection, in one embodiment of the switch state detection method of the present application, the second closing condition in the switch state detection method specifically includes the following content:
[0109] The voltage target value of the second detection point obtained after controlling the second switch to be closed is not equal to the voltage target value of the second detection point obtained in advance before controlling the second switch to be closed.
[0110] In order to improve the comprehensiveness and effectiveness of the switch state detection, in one embodiment of the switch state detection method of the present application, referring to FIG9 , the switch state detection method further specifically includes the following contents after step 243:
[0111] Step 251: receiving a closing instruction for a selection switch; wherein the selection switch is provided on a second branch, and the second branch is connected in parallel with the first branch and the branch where the first resistor is located;
[0112] Step 252: Controlling the selection switch to close to a control point corresponding to the target charging protocol according to the target charging protocol; wherein one end of the selection switch corresponding to each control point corresponding to the charging protocol is connected to a resistor, and the other end of the selection switch is connected to the branch where the second detection point is located;
[0113] Step 253: obtaining the voltage target value of the second detection point again based on the detection point voltage filtering method;
[0114] Step 254: Determine whether the voltage target value of the second detection point obtained after controlling the selection switch to be closed meets the third closing condition; if so, determine that the selection switch is currently in the closed state.
[0115] From the above description, it can be seen that the switch status detection method provided in the embodiment of the present application can improve the reliability of the selection switch closure, meet the compatibility requirements of the compatible new energy vehicle charging seat, and further improve the application reliability and stability of the compatible new energy vehicle charging seat.
[0116] In order to further improve the accuracy of the switch state detection, in one embodiment of the switch state detection method of the present application, the third closing condition in the switch state detection method specifically includes the following content:
[0117] The voltage target value of the second detection point obtained after controlling the selection switch to be closed is not equal to the voltage target value of the second detection point obtained in advance before controlling the selection switch to be closed.
[0118] On this basis, in order to solve a series of defects and problems in existing charging systems and provide the world with a unified, safe, reliable, and low-cost charging system solution, the various charging protocols mentioned in one or more embodiments of this application can at least include the ChaoJi charging standard, the GB 2015 charging standard, and the CHAdeMO (Charge de move: a Japanese electric vehicle fast charging standard) charging standard. In other words, the compatible new energy vehicle charging station for compatibility with multiple charging protocols can be compatible with the ChaoJi charging standard, the GB 2015 charging standard, and the CHAdeMO charging standard.
[0119] Based on this, in the switch state detection method, the voltage range corresponding to the ChaoJi charging standard is (5.64V, 6.36V);
[0120] The voltage range corresponding to the GB 2015 charging standard is (7.54V, 8.45V);
[0121] The voltage range corresponding to the CHAdeMO charging standard is (1.86V, 2.14V).
[0122] Then, a specific example of the first closing condition mentioned in which the voltage target value of the first detection point obtained after controlling the first switch to close is within the voltage range corresponding to any of the charging protocols is:
[0123] The voltage target value Vdp3 of the first detection point DP3 is within any range of 5.64V < Vdp3 < 6.36V (ChaoJi), 7.54V < Vdp3 < 8.45V (GB2015), or 1.86V < Vdp3 < 2.14V (CHAdeMO).
[0124] Correspondingly, in FIG. 6, the control point 1 corresponding to one end of the selection switch S2 is the control point corresponding to the CHAdeMO charging standard; the control point 3 is the control point corresponding to the GB 2015 charging standard; the control point 2 is the control point corresponding to the CHAdeMO charging standard.
[0125] To solve the problems that the existing voltage filtering method for detection points cannot verify the effectiveness of voltage filtering, and thus cannot ensure the accuracy of subsequent control or detection based on the filtered voltage, the embodiment of the present application provides a circuit detection point voltage filtering device for implementing any or all of the content in the circuit detection point voltage filtering method. Referring to FIG. 10, the circuit detection point voltage filtering device specifically includes the following:
[0126] A voltage acquisition module 11 for continuously acquiring multiple voltage data of a detection point in a target circuit.
[0127] In the voltage acquisition module 11, the continuous acquisition means performing data acquisition a preset number of times within a preset time period. For example, acquiring 10 times within 0.3S, and thus obtaining 10 voltage data Vdp1 to Vdp of a detection point. 10 .
[0128] It can be understood that the voltage data refers to digital signals, and the acquisition process of the digital signals is as follows: acquiring the voltage analog signal of the acquisition point in the target circuit, and then converting the voltage analog signal into a digital signal for subsequent filtering processing.
[0129] A voltage filtering module 12 for respectively obtaining multiple voltage filtering values corresponding to the detection point by applying filtering methods according to the multiple voltage data.
[0130] In the voltage filtering module 12, two or more filtering methods can be selected to process the multiple voltage data respectively to obtain voltage filtering values corresponding to the detection point with the same number as the selected filtering methods. For example, if four filtering methods A, B, C, and D are selected, then the filtering results corresponding to these four filtering methods, namely voltage filtering values A1, B1, C1, and D1, are obtained. In a specific example, the filtering methods can select at least two of the mean filtering, median filtering, post-interpolation filtering, post-dimensionality reduction filtering, and neighborhood average filtering methods.
[0131] The microcontroller 13 is configured to compare the plurality of voltage filter values, and if a corresponding comparison result satisfies a preset condition, determine a voltage target value of the detection point based on the plurality of voltage filter values.
[0132] In the microcontroller 13, a specific method of comparing the multiple voltage filter values is to obtain the difference between the maximum value and the minimum value among the multiple voltage filter values, and use the difference as a comparison result to determine whether it is less than a threshold such as a preset error threshold. If it is less than, the voltage target value of the detection point is determined based on the multiple voltage filter values.
[0133] It can be understood that the specific method of determining the voltage target value of the detection point based on multiple voltage filter values can be to calculate the mean of multiple voltage filter values and use the mean to determine the voltage target value of the detection point; or the median between multiple voltage filter values can be selected and the voltage target value of the detection point can be determined by the median; or any one of the multiple voltage filter values can be selected as the voltage target value of the detection point.
[0134] The embodiment of the detection point voltage filtering device provided in this application can be specifically used to execute the processing flow of the embodiment of the detection point voltage filtering method in the above embodiment. Its functions will not be repeated here, and reference can be made to the detailed description of the above detection point voltage filtering method embodiment.
[0135] From the above description, it can be seen that the detection point voltage filtering device provided in the embodiment of the present application can effectively verify the effectiveness of the detection point voltage filtering in the circuit, can effectively ensure the reliability of the detection point voltage filtering, can effectively and reliably prevent voltage jitter from causing control misjudgment of the circuit, and thus can effectively improve the accuracy and reliability of subsequent control or detection based on the filtered voltage, especially for the control guidance unit of the charging seat of new energy vehicles, etc., can effectively improve the accuracy of the switch state in the control guidance unit according to the filtered voltage detection, and thus can effectively improve the working stability and reliability of the control guidance unit of the charging seat of new energy vehicles.
[0136] In order to provide a reliable processing method when the detection point voltage filtering result in the verification circuit is invalid or unreliable, in one embodiment of the detection point voltage filtering device provided in the present application, the microcontroller 13 in the detection point voltage filtering device is further configured to execute the following:
[0137] If the comparison result does not meet the preset condition, the voltage acquisition module is controlled to re-continuously collect multiple voltage data of the detection point and the voltage filtering module is controlled to re-obtain multiple voltage filter values corresponding to the detection point until the comparison result re-obtained by the microcontroller meets the preset condition and determines the voltage target value of the detection point.
[0138] From the above description, it can be seen that the detection point voltage filtering device provided in the embodiment of the present application can provide a reliable processing method when the detection point voltage filtering result in the verification circuit is invalid or unreliable, so as to further ensure the reliability of the detection point voltage filtering, and can effectively and reliably prevent voltage jitter from causing control misjudgment of the circuit, and can effectively improve the applicability of the detection point voltage filtering process.
[0139] In order to reduce circuit complexity and energy waste, in one embodiment of the detection point voltage filtering device provided in the present application, the voltage filtering module 12 in the detection point voltage filtering device may specifically include the following contents:
[0140] a mean filtering unit, configured to apply a mean filtering algorithm to perform mean calculation on the plurality of voltage data at the detection point, to obtain a voltage mean as a voltage filtering value of the detection point;
[0141] The median filter unit is used to apply a median filter algorithm to perform median calculation on the plurality of voltage data of the detection point to obtain a voltage median value as another voltage filter value of the detection point.
[0142] From the above description, it can be seen that the detection point voltage filtering device provided in the embodiment of the present application, by selecting only two filtering methods to filter the multiple voltage data of the detection points, can minimize the amount of calculation and time cost while ensuring the effectiveness of the verification voltage filtering results, thereby effectively reducing the complexity of the circuit and reducing energy waste.
[0143] In order to further reduce circuit complexity and energy waste, in one embodiment of the detection point voltage filtering device provided in the present application, the microcontroller 13 of the detection point voltage filtering device may specifically include the following contents:
[0144] An error judgment unit is used to obtain the difference between the voltage mean and the voltage median, and judge whether the difference is less than an error threshold. If so, the voltage target value of the detection point is determined based on the voltage mean and the voltage median.
[0145] From the above description, it can be seen that the detection point voltage filtering device provided in the embodiment of the present application, by determining the voltage target value of the detection point based on the voltage mean and the voltage median, can further reduce the calculation amount and time cost on the basis of ensuring the effectiveness of verifying the voltage filtering results, thereby effectively reducing the complexity of the circuit and reducing energy waste.
[0146] In order to solve the problem that the existing detection point voltage filtering method uses a single filtering circuit to filter out ripples in the voltage, but this method cannot verify the effectiveness of the voltage filtering, and therefore cannot guarantee the accuracy of the switch state detection of the control steering unit based on the filtered voltage, the present application provides an embodiment of a switch state detection system for implementing all or part of the contents of the switch state detection method. Referring to FIG11, the switch state detection system specifically includes the following contents:
[0147] The detection point voltage filtering device 21 is used to obtain the voltage target value of the first detection point after controlling the first switch to be closed based on the detection point voltage filtering method, wherein one end of the first switch is connected to the first resistor in the control guidance unit of a charging base, and the other end of the first switch is provided with the first detection point.
[0148] The switch state judgment module 22 is configured to judge whether the voltage target value of the first detection point satisfies a first closing condition, and if so, to determine that the first switch is currently in a closed state.
[0149] It can be understood that if the switch status judgment module 22 determines that the voltage target value of the first detection point does not meet the first closing condition, it is determined that the first switch has failed to close, and a notification message indicating that the first switch has failed to close is output. For example, the notification message can be displayed on a display screen that is communicatively connected to the switch status detection system, or the notification message can be sent through a communication unit set in the switch status detection system via a third-party server or to a client device held by a technician.
[0150] The embodiment of the switch state detection system provided in this application can be specifically used to execute the processing flow of the embodiment of the switch state detection method in the above embodiment. Its functions are not described here in detail, and reference can be made to the detailed description of the above switch state detection method embodiment.
[0151] From the above description, it can be seen that the switch state detection system provided in the embodiment of the present application can effectively verify the effectiveness of the voltage filtering at the detection point in the circuit, can effectively ensure the reliability of the voltage filtering at the detection point, can effectively and reliably prevent voltage jitter from causing control misjudgment of the circuit, and thus can effectively improve the accuracy and reliability of the switch state detection in the control guidance unit of the charging seat of the new energy vehicle based on the filtered voltage, and thus can effectively improve the working stability and reliability of the charging seat of the new energy vehicle.
[0152] In order to further improve the application pertinence of the switch state detection method, in one embodiment of the switch state detection system of the present application, the charging seat is a compatible new energy vehicle charging seat for being compatible with multiple charging protocols.
[0153] In order to further improve the accuracy of the first switch state detection, in one embodiment of the switch state detection system of the present application, the first closing condition in the switch state detection system specifically includes the following content:
[0154] The voltage target value of the first detection point obtained after controlling the first switch to be closed is not equal to the voltage target value of the first detection point obtained in advance before controlling the first switch to be closed, and the voltage target value of the first detection point obtained after controlling the first switch to be closed is within the voltage range corresponding to any of the charging protocols.
[0155] In order to provide a method for identifying the charging protocol, in one embodiment of the switch state detection system of the present application, referring to FIG12 , the switch state detection system further specifically includes the following contents:
[0156] The protocol identification module 23 is configured to determine a target charging protocol corresponding to the voltage target value based on the preset voltage ranges corresponding to the respective charging protocols.
[0157] From the above description, it can be seen that the switch status detection system provided in the embodiment of the present application can improve the reliability of the selection switch closure, meet the compatibility requirements of the compatible new energy vehicle charging seat, and further improve the application reliability and stability of the compatible new energy vehicle charging seat.
[0158] In order to improve the comprehensiveness and effectiveness of switch state detection, in one embodiment of the switch state detection system of the present application, the circuit detection point voltage filtering device in the switch state detection system includes: a voltage acquisition module 11, a voltage filtering module 12 and a microcontroller 13 connected in sequence;
[0159] The microcontroller 13 is further configured to receive a closing instruction for a second switch and control the second switch to close, wherein one end of the second switch is connected in series with a second resistor in the control and guidance unit to form a first branch, and the first branch is connected in parallel with the branch where the first resistor is located;
[0160] The voltage acquisition module 11, the voltage filtering module 12 and the microcontroller 13 connected in sequence are further configured to obtain a voltage target value at a second detection point based on the detection point voltage filtering method, wherein the branch where the second detection point is located is connected to the first branch;
[0161] The switch state determination module 22 is further configured to determine whether the voltage target value of the second detection point satisfies a second closing condition, and if so, to determine that the second switch is currently in a closed state.
[0162] In order to further improve the accuracy of the second switch state detection, in one embodiment of the switch state detection system of the present application, the second closing condition in the switch state detection method specifically includes the following content:
[0163] The voltage target value of the second detection point obtained after controlling the second switch to be closed is not equal to the voltage target value of the second detection point obtained in advance before controlling the second switch to be closed.
[0164] In order to improve the comprehensiveness and effectiveness of the selection switch state detection, in one embodiment of the switch state detection system of the present application, the microcontroller 13 in the switch state detection system is further configured to receive a closing instruction for the selection switch; wherein the selection switch is provided on a second branch, and the second branch is connected in parallel with the first branch and the branch where the first resistor is located;
[0165] Controlling the selection switch to close to a control point corresponding to the target charging protocol according to the target charging protocol; wherein one end of the selection switch corresponding to each control point corresponding to the charging protocol is connected to a resistor, and the other end of the selection switch is connected to the branch where the second detection point is located;
[0166] The voltage acquisition module 11, the voltage filtering module 12 and the microcontroller 13 connected in sequence are further used to obtain the voltage target value of the second detection point again based on the detection point voltage filtering method;
[0167] The switch state judgment module 14 is further configured to judge whether the voltage target value of the second detection point obtained after controlling the selection switch to be closed meets a third closing condition, and if so, determine that the selection switch is currently in a closed state.
[0168] From the above description, it can be seen that the switch status detection system provided in the embodiment of the present application can improve the reliability of the selection switch closure, meet the compatibility requirements of the compatible new energy vehicle charging seat, and further improve the application reliability and stability of the compatible new energy vehicle charging seat.
[0169] In order to further improve the accuracy of the switch state detection, in one embodiment of the switch state detection system of the present application, the third closing condition in the switch state detection system specifically includes the following content:
[0170] The voltage target value of the second detection point obtained after controlling the selection switch to be closed is not equal to the voltage target value of the second detection point obtained in advance before controlling the selection switch to be closed.
[0171] On this basis, the various charging protocols may include at least the ChaoJi charging standard, the GB 2015 charging standard, and the CHAdeMO (Charge de move: a Japanese electric vehicle fast charging standard) charging standard. In other words, the compatible new energy vehicle charging station for being compatible with multiple charging protocols is compatible with the ChaoJi charging standard, the GB 2015 charging standard, and the CHAdeMO charging standard.
[0172] Based on this, in the switch state detection system, the voltage range corresponding to the ChaoJi charging standard is (5.64V, 6.36V);
[0173] The voltage range corresponding to the GB 2015 charging standard is (7.54V, 8.45V);
[0174] The voltage range corresponding to the CHAdeMO charging standard is (1.86V, 2.14V).
[0175] To further illustrate this solution, this application also provides a specific application example of implementing a switch state detection method using a switch state detection system. For a charging station compatible with ChaoJi (ChaoJi Super Charging Standard), GB 2015, and CHAdeMO (Charge de move: Japan's electric vehicle rapid charging standard), to reduce circuit complexity and energy waste, this application example provides a logic algorithm for determining the switch state based on the voltage at the detection point DP (Detecting Point includes (DP2\DP3)). Specific functions are as follows:
[0176] 12 , the switch state detection system includes a voltage acquisition module 11 , a voltage filtering module 12 , a switch state determination module 22 , a protocol identification module 23 and a microcontroller 13 . Specific descriptions are as follows:
[0177] (1) Voltage acquisition module 11: This module is used to acquire the voltage at the DP point and convert the analog voltage signal at the DP point into a digital signal.
[0178] (2) Voltage filtering module 12: This module filters the obtained DP voltage digitally to prevent voltage jitter from causing system misjudgment.
[0179] (3) Switch state judgment module 22: determines the switch state (open or closed) according to the change of the voltage at point DP2.
[0180] (4) Protocol recognition module 23: This module determines the voltage at point DP3 through the microcontroller. When the voltage at DP3 is greater than 5.64 and less than 6.36, it recognizes the current as the ChaoJi standard; when the voltage at DP3 is greater than 7.54 and less than 8.45, it recognizes the current as the (GB2015) standard; when the voltage at DP3 is greater than 1.86 and less than 2.14, it recognizes the current as the CHAdeMO standard.
[0181] (5) Microcontroller 13: Obtains the voltage value input through the DP point voltage filtering algorithm module, gets the true value of the voltage at the DP point, and performs logical operations to determine the state of the switch.
[0182] Based on Figure 12, the switch state detection system may further include a switch control unit: The opening and closing of the switch are controlled by the microcontroller 13.
[0183] Based on the above switch state detection system, the application example of the present application also provides a switch state detection method implemented based on this switch state detection system. Referring to Figure 13, it specifically includes the following content:
[0184] S1. After the device is powered on, wait for the CCU (on-vehicle charging controller) to send a command to close Sv. When the CCU sends a closing command, the microcontroller unit controls Sv to close, and the switch control unit executes the closing of Sv.
[0185] S2. Measure the voltage value at point DP3, filter the DP3 voltage to obtain a stable voltage value. The microcontroller controls to read the current Vdp3_last voltage recorded before Sv is closed. When Sv is controlled to be closed, the microcontroller reads the voltage as Vdp3. If Vdp3_last is equal to Vdp3 or not within the range of 5.64V < Vdp3 < 6.36V (Chaoji), 7.54V < Vdp3 < 8.45V (GB2015), 1.86V < Vdp3 < 2.14V (CHAdeMO), it is regarded as the failure of closing Sv, and the state of Sv is open.
[0186] S3. If the DP3 voltage value is within the above range, it is regarded as the successful closing of Sv, and the current standard to be executed is determined according to the voltage value as described above.
[0187] S4. After the standard is determined, wait for the CCU to send a command to close S2'. When the CCU sends a command to close S2', measure the DP2 voltage, filter it, and record the current DP2 voltage value.
[0188] The microcontroller controls the closing of S2'. After the switch controller executes the closing of S2', measure the DP2 voltage and filter it. If the DP2 voltage after controlling the closing of S2' is not equal to that before controlling the closing of S2', it is determined that S2' is closed, otherwise it is considered that the closing of S2' fails.
[0189] S5. After S2' is closed, the CCU waits for the S2-close command. The CCU sends the S2-close command, measures the DP2 voltage, and performs filtering. The microcontroller controls the S2-close position according to different protocols. The microcontroller controls S2 closure, and the switch controller executes S2 closure. The DP2 voltage is measured and filtered. If the DP2 voltage after S2 closure is not equal to the voltage before S2' closure, S2 is considered closed. Otherwise, S2 closure is considered a failure.
[0190] Among them, the filtering algorithm involved in S2 is as follows:
[0191] In order to ensure the accuracy of the data, two different filtering algorithms are used, and then their output values are compared. If the difference between the values output by the two methods is less than the set error threshold, the data is considered correct.
[0192] (1) Mean algorithm
[0193] Assume that the voltage of DP point (DP2, DP3) is Vdp, take n data of DP point, the sum of n data is Vdp_sum, and the average value of n data is Vdp_ave
[0194] Vdp_sum=Vdp1+Vdp2+Vdp3+......+Vdp n-1 +Vdp n
[0195] Vdp_ave=Vdp_sum / n;
[0196] (2) Median filtering algorithm
[0197] Assume that the voltage of DP point (DP2, DP3) is Vdp, and take n data of DP point;
[0198] 1. First, arrange the n voltage values of the DP point in ascending order or descending order to obtain a new n data combination;
[0199] 2. Take the value in the middle of N data;
[0200] 3. The median value is Vdp_mid:
[0201] If N is an even number: Vdp_mid=(Vdp n / 2 +Vdp (n / 2)+1 ) / 2
[0202] If N is a cardinality: Vdp_mid=(Vdp (n / 2)+1 )
[0203] 3.6.4 After the two filtering algorithms are applied, two values, Vdp_ave and Vdp_mid, are obtained. If the difference is greater than the set threshold, the data is considered erroneous and discarded. The microcontroller then retrieves n new data from the filtering module and applies the above algorithm. Re-acquisition means collecting a set of n data points at the DP point and performing filtering calculations. If the data is erroneous, a new set of n data is collected.
[0204] From a hardware perspective, in order to solve the problem that the existing detection point voltage filtering method cannot verify the effectiveness of voltage filtering, and therefore cannot guarantee the accuracy of subsequent control or detection based on the filtered voltage, the present application provides an embodiment of an electronic device for implementing all or part of the content of the circuit detection point voltage filtering method or the switch state detection method, and the electronic device specifically includes the following content:
[0205] Figure 14 is a schematic block diagram of the system architecture of an electronic device 9600 according to an embodiment of the present application. As shown in Figure 14 , the electronic device 9600 may include a central processing unit 9100 and a memory 9140; the memory 9140 is coupled to the central processing unit 9100. It should be noted that Figure 14 is exemplary; other types of structures may be used to supplement or replace this structure to implement telecommunications or other functions.
[0206] In one embodiment, the circuit detection point voltage filtering function can be integrated into the central processing unit. The central processing unit can be configured to perform the following control:
[0207] Step 110: Continuously collect multiple voltage data at a detection point in the target circuit.
[0208] Step 120: Apply a filtering method according to the plurality of voltage data to obtain a plurality of voltage filtering values corresponding to the detection point.
[0209] Step 130: Compare the plurality of voltage filter values to obtain corresponding comparison results.
[0210] Step 140: If the comparison result satisfies a preset condition, determining a voltage target value of the detection point based on the plurality of voltage filter values.
[0211] From the above description, it can be seen that the electronic device for implementing the circuit detection point voltage filtering method provided by the embodiment of the present application can effectively verify the effectiveness of the detection point voltage filtering in the circuit, can effectively ensure the reliability of the detection point voltage filtering, can effectively and reliably prevent voltage jitter from causing control misjudgment of the circuit, and thus can effectively improve the accuracy and reliability of subsequent control or detection based on the filtered voltage, especially for the control guidance unit of the charging seat of new energy vehicles, etc., can effectively improve the accuracy of the switch state in the control guidance unit according to the filtered voltage detection, and thus can effectively improve the working stability and reliability of the control guidance unit of the charging seat of new energy vehicles.
[0212] Alternatively, in another embodiment, the switch status detection function may be integrated into the central processing unit, wherein the central processing unit may be configured to perform the following control:
[0213] Step 210: Based on the detection point voltage filtering method, the voltage target value of the first detection point is obtained after controlling the first switch to be closed, wherein one end of the first switch is connected to the first resistor in a control guidance unit of a charging base, and the other end of the first switch is provided with the first detection point.
[0214] Step 220: Determine whether the voltage target value of the first detection point meets a first closing condition. If so, determine that the first switch is currently in a closed state.
[0215] From the above description, it can be seen that the electronic device for implementing the switch state detection method provided in the embodiment of the present application can effectively verify the effectiveness of the voltage filtering at the detection point in the circuit, can effectively ensure the reliability of the voltage filtering at the detection point, can effectively and reliably prevent voltage jitter from causing control misjudgment of the circuit, and thus can effectively improve the accuracy and reliability of the switch state detection in the control guidance unit of the charging seat of the new energy vehicle based on the filtered voltage, and thus can effectively improve the working stability and reliability of the charging seat of the new energy vehicle.
[0216] In another embodiment, the circuit detection point voltage filtering or switch state detection device can be configured separately from the central processing unit 9100. For example, the circuit detection point voltage filtering or switch state detection device can be configured as a chip connected to the central processing unit 9100, and the circuit detection point voltage filtering or switch state detection function can be realized through the control of the central processing unit.
[0217] As shown in FIG14 , the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily include all of the components shown in FIG14 ; in addition, the electronic device 9600 may also include components not shown in FIG14 , for which reference may be made to the prior art.
[0218] As shown in FIG. 14 , the central processing unit 9100 is sometimes also referred to as a controller or an operation control unit, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600 .
[0219] Memory 9140 can be, for example, a cache, flash memory, a hard drive, removable media, volatile memory, non-volatile memory, or other suitable devices, or more. It can store the aforementioned failure-related information and a program that executes the relevant information. The CPU 9100 can execute the program stored in memory 9140 to implement information storage or processing.
[0220] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 may be, for example, a keypad or touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display objects such as images and text. The display may be, for example, an LCD display, but is not limited thereto.
[0221] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), or a SIM card. Alternatively, it may be a memory that retains information even when power is off, can be selectively erased, and is provided with more data. Examples of such memory are sometimes referred to as EPROMs. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142 for storing application programs and function programs or processes for executing the operation of the electronic device 9600 by the central processing unit 9100.
[0222] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various driver programs for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0223] The communication module 9110 is a transmitter / receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in a conventional mobile communication terminal.
[0224] Based on different communication technologies, multiple communication modules 9110 can be provided in the same electronic device, such as a cellular network module, a Bluetooth module, and / or a wireless local area network module. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing common telecommunication functions. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. Furthermore, the audio processor 9130 is also coupled to the central processing unit 9100, enabling local recording via the microphone 9132 and playback of stored audio via the speaker 9131.
[0225] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all steps of the circuit detection point voltage filtering or switch state detection method in the above embodiments. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the computer program implements all steps of the circuit detection point voltage filtering or switch state detection method in the above embodiments. For example, when the processor executes the computer program, the following steps are implemented:
[0226] Step 110: Continuously collect multiple voltage data at a detection point in the target circuit.
[0227] Step 120: Apply a filtering method according to the plurality of voltage data to obtain a plurality of voltage filtering values corresponding to the detection point.
[0228] Step 130: Compare the plurality of voltage filter values to obtain corresponding comparison results.
[0229] Step 140: If the comparison result satisfies a preset condition, determining a voltage target value of the detection point based on the plurality of voltage filter values.
[0230] From the above description, it can be seen that the computer-readable storage medium for implementing the circuit detection point voltage filtering method provided by the embodiment of the present application can effectively verify the effectiveness of the detection point voltage filtering in the circuit, can effectively ensure the reliability of the detection point voltage filtering, can effectively and reliably prevent voltage jitter from causing control misjudgment of the circuit, and thus can effectively improve the accuracy and reliability of subsequent control or detection based on the filtered voltage, especially for the control guidance unit of the charging seat of new energy vehicles, etc., can effectively improve the accuracy of the switch state in the control guidance unit according to the filtered voltage detection, and thus can effectively improve the working stability and reliability of the control guidance unit of the charging seat of new energy vehicles.
[0231] Alternatively, the processor implements the following steps when executing the computer program:
[0232] Step 210: Based on the detection point voltage filtering method, the voltage target value of the first detection point is obtained after controlling the first switch to be closed, wherein one end of the first switch is connected to the first resistor in a control guidance unit of a charging base, and the other end of the first switch is provided with the first detection point.
[0233] Step 220: Determine whether the voltage target value of the first detection point meets a first closing condition. If so, determine that the first switch is currently in a closed state.
[0234] From the above description, it can be seen that the computer-readable storage medium for implementing the switch state detection method provided in the embodiment of the present application can effectively verify the effectiveness of the voltage filtering at the detection point in the circuit, can effectively ensure the reliability of the voltage filtering at the detection point, can effectively and reliably prevent voltage jitter from causing control misjudgment of the circuit, and thus can effectively improve the accuracy and reliability of the switch state detection in the control guidance unit of the charging seat of the new energy vehicle based on the filtered voltage, and thus can effectively improve the working stability and reliability of the charging seat of the new energy vehicle.
[0235] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as the combination of processes and / or blocks in the flowcharts and / or block diagrams, may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, such that instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more blocks in the block diagram. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0236] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0237] Specific embodiments are used in the present invention to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present invention.
Claims
1. A circuit detection point voltage filtering method, wherein: include: Continuously collect multiple voltage data of a detection point in the target circuit; Applying a filtering method according to the plurality of voltage data to obtain a plurality of voltage filtering values corresponding to the detection point respectively; The plurality of voltage filter values are compared, and if the corresponding comparison results meet a preset condition, the voltage target value of the detection point is determined based on the plurality of voltage filter values.
2. The detection point voltage filtering method according to claim 1, wherein: Also includes: If the comparison result does not meet the preset condition, multiple voltage data of the detection point are continuously collected again and multiple voltage filter values corresponding to the detection point are obtained until the comparison result obtained again meets the preset condition and the voltage target value of the detection point is determined.
3. The detection point voltage filtering method according to claim 1 or 2, wherein: The step of applying a filtering method to obtain a plurality of voltage filter values corresponding to the detection point according to the plurality of voltage data comprises: Applying a mean filtering algorithm to perform mean calculation on the plurality of voltage data of the detection point to obtain a voltage mean value as a voltage filtering value of the detection point; Furthermore, a median filter algorithm is applied to perform median calculation on the plurality of voltage data of the detection point to obtain a voltage median value as another voltage filter value of the detection point.
4. The detection point voltage filtering method according to claim 3, wherein: The comparing the plurality of voltage filter values and determining the voltage target value of the detection point based on the plurality of voltage filter values if the corresponding comparison results meet a preset condition includes: Obtain a difference between the voltage mean and the voltage median, and determine whether the difference is less than an error threshold; if so, determine a voltage target value for the detection point based on the voltage mean and the voltage median.
5. A switch state detection method, wherein: include: A detection point voltage filtering method according to any one of claims 1 to 4, wherein a voltage target value at the first detection point is obtained after controlling a first switch to be closed, wherein one end of the first switch is connected to a first resistor in a control and guidance unit of a charging station, and the other end of the first switch is provided with the first detection point; It is determined whether the voltage target value of the first detection point meets a first closing condition, and if so, it is determined that the first switch is currently in a closed state.
6. The switch state detection method according to claim 5, wherein: The charging seat is a compatible new energy vehicle charging seat for being compatible with multiple charging protocols.
7. The switch state detection method according to claim 6, wherein: The first closing condition includes: The voltage target value of the first detection point obtained after controlling the first switch to be closed is not equal to the voltage target value of the first detection point obtained in advance before controlling the first switch to be closed, and the voltage target value of the first detection point obtained after controlling the first switch to be closed is within the voltage range corresponding to any of the charging protocols.
8. The switch state detection method according to claim 6, wherein: After determining that the first switch is currently in the closed state, the method further includes: Based on the preset voltage ranges corresponding to the respective charging protocols, a target charging protocol corresponding to the voltage target value is determined.
9. The switch state detection method according to claim 8, wherein: After determining the target charging protocol corresponding to the voltage target value, the method further includes: receiving a closing instruction for a second switch and controlling the second switch to close, wherein one end of the second switch is connected in series with a second resistor in the control and guidance unit to form a first branch, and the first branch is connected in parallel with the branch where the first resistor is located; Obtaining a voltage target value at a second detection point based on the detection point voltage filtering method, wherein the branch where the second detection point is located is connected to the first branch; It is determined whether the voltage target value of the second detection point meets a second closing condition, and if so, it is determined that the second switch is currently in a closed state.
10. The switch state detection method according to claim 9, wherein: The second closing condition includes: The voltage target value of the second detection point obtained after controlling the second switch to be closed is not equal to the voltage target value of the second detection point obtained in advance before controlling the second switch to be closed.
11. The switch state detection method according to claim 9, wherein: After determining that the second switch is currently in the closed state, the method further includes: receiving a closing instruction for a selection switch; wherein the selection switch is provided on a second branch, and the second branch is connected in parallel with the first branch and the branch where the first resistor is located; Controlling the selection switch to close to a control point corresponding to the target charging protocol according to the target charging protocol; wherein one end of the selection switch corresponding to each control point corresponding to the charging protocol is connected to a resistor, and the other end of the selection switch is connected to the branch where the second detection point is located; obtaining the voltage target value of the second detection point again based on the detection point voltage filtering method; It is determined whether the voltage target value of the second detection point obtained after controlling the selection switch to be closed meets a third closing condition; if so, it is determined that the selection switch is currently in a closed state.
12. The switch state detection method according to claim 11, wherein: The third closing condition includes: The voltage target value of the second detection point obtained after controlling the selection switch to be closed is not equal to the voltage target value of the second detection point obtained in advance before controlling the selection switch to be closed.
13. The switch state detection method according to claim 7, wherein: The various charging protocols include the ChaoJi charging standard, the GB 2015 charging standard, and the CHAdeMO charging standard.
14. A circuit detection point voltage filtering device, wherein: include: A voltage acquisition module is used to continuously acquire multiple voltage data of a detection point in the target circuit; A voltage filtering module, configured to apply a filtering method according to the plurality of voltage data to obtain a plurality of voltage filtering values corresponding to the detection point; The microcontroller is configured to compare the plurality of voltage filter values, and if a corresponding comparison result satisfies a preset condition, determine a voltage target value of the detection point based on the plurality of voltage filter values.
15. The detection point voltage filtering device according to claim 14, wherein: The microcontroller is also used to execute the following: If the comparison result does not meet the preset condition, the voltage acquisition module is controlled to re-continuously collect multiple voltage data of the detection point and the voltage filtering module is controlled to re-obtain multiple voltage filter values corresponding to the detection point until the comparison result re-obtained by the microcontroller meets the preset condition and determines the voltage target value of the detection point.
16. The detection point voltage filtering device according to claim 14 or 15, wherein: The voltage filtering module includes: a mean filtering unit, configured to apply a mean filtering algorithm to perform mean calculation on the plurality of voltage data at the detection point, to obtain a voltage mean as a voltage filtering value of the detection point; The median filter unit is used to apply a median filter algorithm to perform median calculation on the plurality of voltage data of the detection point to obtain a voltage median value as another voltage filter value of the detection point.
17. The detection point voltage filtering device according to claim 16, wherein: The microcontroller comprises: An error judgment unit is used to obtain a difference between the voltage mean and the voltage median, and judge whether the difference is less than an error threshold; if so, determine a voltage target value of the detection point based on the voltage mean and the voltage median.
18. A switch status detection system, wherein: include: A detection point voltage filtering device, configured to obtain a voltage target value at a first detection point after controlling a first switch to be closed, based on the detection point voltage filtering method according to any one of claims 1 to 4, wherein one end of the first switch is connected to a first resistor in a control and guidance unit of a charging station, and the other end of the first switch is provided with the first detection point; The switch state judgment module is used to judge whether the voltage target value of the first detection point meets the first closing condition, and if so, determine that the first switch is currently in the closed state.
19. The switch state detection system according to claim 18, wherein: The charging seat is a compatible new energy vehicle charging seat for being compatible with multiple charging protocols.
20. The switch state detection system according to claim 19, wherein: The first closing condition includes: The voltage target value of the first detection point obtained after controlling the first switch to be closed is not equal to the voltage target value of the first detection point obtained in advance before controlling the first switch to be closed, and the voltage target value of the first detection point obtained after controlling the first switch to be closed is within the voltage range corresponding to any of the charging protocols.
21. The switch state detection system according to claim 19, wherein: Also includes: The protocol identification module is used to determine the target charging protocol corresponding to the voltage target value based on the preset voltage range corresponding to each of the charging protocols.
22. The switch state detection system according to claim 21, wherein: The circuit detection point voltage filtering device comprises: a voltage acquisition module, a voltage filtering module and a microcontroller connected in sequence; The microcontroller is further configured to receive a closing instruction for a second switch and control the second switch to close, wherein one end of the second switch is connected in series with a second resistor in the control and guidance unit to form a first branch, and the first branch is connected in parallel with the branch where the first resistor is located; The voltage acquisition module, voltage filtering module and microcontroller connected in sequence are further used to obtain a voltage target value of a second detection point based on the detection point voltage filtering method, wherein the branch where the second detection point is located is connected to the first branch; The switch state judgment module is further configured to judge whether the voltage target value of the second detection point satisfies a second closing condition, and if so, to determine that the second switch is currently in a closed state.
23. The switch state detection system according to claim 22, wherein: The second closing condition includes: The voltage target value of the second detection point obtained after controlling the second switch to be closed is not equal to the voltage target value of the second detection point obtained in advance before controlling the second switch to be closed.
24. The switch state detection system according to claim 22, wherein: The microcontroller is further configured to receive a closing instruction for a selection switch; wherein the selection switch is provided on a second branch, and the second branch is connected in parallel with the first branch and the branch where the first resistor is located; Controlling the selection switch to close to a control point corresponding to the target charging protocol according to the target charging protocol; wherein one end of the selection switch corresponding to each control point corresponding to the charging protocol is connected to a resistor, and the other end of the selection switch is connected to the branch where the second detection point is located; The voltage acquisition module, voltage filtering module and microcontroller connected in sequence are further used to obtain the voltage target value of the second detection point again based on the detection point voltage filtering method; The switch state judgment module is further used to judge whether the voltage target value of the second detection point obtained after controlling the selection switch to be closed meets the third closing condition, and if so, determine that the selection switch is currently in the closed state.
25. The switch state detection system according to claim 24, wherein: The third closing condition includes: The voltage target value of the second detection point obtained after controlling the selection switch to be closed is not equal to the voltage target value of the second detection point obtained in advance before controlling the selection switch to be closed.
26. The switch state detection system according to claim 20, wherein: The various charging protocols include the ChaoJi charging standard, the GB 2015 charging standard, and the CHAdeMO charging standard.
27. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the detection point voltage filtering method according to any one of claims 1 to 4 is implemented, or when the processor executes the computer program, the switch state detection method according to any one of claims 5 to 13 is implemented.
28. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the detection point voltage filtering method according to any one of claims 1 to 4 is implemented, or when the computer program is executed by a processor, the switch state detection method according to any one of claims 5 to 13 is implemented.