Charging mode detection method, charging device and storage medium
By detecting the hardware pin voltage of the charging communication controller and comparing thresholds, the charging mode is directly identified, solving the problems of low efficiency and physical layer mismatch in the existing technology, and realizing efficient and reliable charging mode identification.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- QIJING INFORMATION TECHNOLOGY (SHANGHAI) CO LTD
- Filing Date
- 2026-04-01
- Publication Date
- 2026-07-07
AI Technical Summary
Existing charging mode detection methods are inefficient and struggle to resolve the physical layer mismatch between charging guns and charging piles, leading to communication failures or equipment damage.
By detecting the hardware pin voltage of the charging communication controller and comparing thresholds, the charging mode is directly identified, avoiding protocol polling and timeout waiting. Multiple sampling and filtering are combined to suppress electromagnetic interference and contact jitter.
It improves the efficiency of charging mode detection, eliminates the risks caused by physical layer mismatch, ensures the stability and reliability of detection results, and avoids mode misjudgment or missed detection.
Smart Images

Figure CN121955489B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of circuit systems for power supply or distribution, and specifically to a charging mode detection method, charging device, and storage medium. Background Technology
[0002] With the rapid development of electric vehicle (EV) technology, high-power charging technology has become a key means to address users' range anxiety. The charging communication controller, also known as the Electric Vehicle Communication Controller (EVCC), is the core control module of the EV charging system. As the translation center of the EV charging system, it is responsible for accurately identifying the type of charging station connected before charging, establishing the correct communication protocol for the charging mode, and executing a safe charging process. Currently, mainstream charging systems include the Combined Charging System (CCS) for small vehicles such as cars, and the Megawatt Charging System (MCS) developed for heavy vehicles such as electric trucks and buses that require ultra-high-power charging. Because these two charging systems differ in physical interfaces, communication protocols, and control guidance circuits, the charging communication controller must quickly and accurately detect the charging mode at the initial stage of charging establishment before adopting an appropriate charging strategy; otherwise, communication failure or charging interruption may occur, or even equipment damage.
[0003] Current methods typically identify charging modes based on protocol-level polling. The charging communication controller sends messages to the charging pile via the CCS protocol and waits for a response. If a message conforming to the CCS protocol is received, the charging mode is confirmed as CCS. If no response is received within a certain time, the MCS protocol is used to send messages to the charging pile and wait for a response. If a message conforming to the MCS protocol is received, the charging mode is confirmed as MCS. If no response is received within a certain time, other protocols are tried. This protocol-based polling and timeout process is time-consuming, resulting in low detection efficiency. Furthermore, polling at the software protocol level alone cannot fundamentally solve the physical layer mismatch between the charging gun and the charging pile, and may even cause malfunctions in the CAN (Controller Area Network) transceiver between the charging gun and the charging pile. Summary of the Invention
[0004] In view of this, this application provides a charging mode detection method, charging device, and storage medium, which can improve the low efficiency of existing charging mode detection methods and the difficulty in solving the problem of physical layer mismatch between charging guns and charging piles.
[0005] This application provides a charging mode detection method for a charging communication controller that performs charging in at least a first charging mode and a second charging mode, the method comprising:
[0006] After the charging communication controller is powered on, it outputs a constant electrical signal to the first pin and the second pin respectively, and detects the voltage of the first pin and the second pin.
[0007] Determine whether the voltage of the first pin is within the first threshold corresponding to the first charging mode;
[0008] If so, the charging communication controller establishes a connection with the charging pile based on the first charging mode;
[0009] If not, determine whether the voltage of the second pin is within the second threshold corresponding to the second charging mode;
[0010] If so, the charging communication controller establishes a connection with the charging pile based on the second charging mode;
[0011] If not, the charging communication controller determines that the current mode is unknown.
[0012] Optionally, detecting the voltage of the first pin includes:
[0013] The charging communication controller samples the first pin multiple times at a first time interval to obtain a first number of sampled voltages, filters the first number of sampled voltages, and uses the filtered sampled voltages as the voltage of the first pin.
[0014] Optionally, detecting the voltage at the second pin includes:
[0015] The charging communication controller samples the second pin multiple times at a second time interval to obtain a second number of sampled voltages, filters the second number of sampled voltages, and uses the filtered sampled voltages as the voltage of the second pin.
[0016] Optionally, both the first quantity and the second quantity are odd numbers, and the filtering process includes:
[0017] Sort the sampled voltages obtained from multiple consecutive samplings from largest to smallest or smallest to largest;
[0018] The middle sampled voltage after sorting is taken as the sampled voltage after filtering.
[0019] Optionally, the method further includes:
[0020] In response to the power-on of the charging communication controller, a query frame is sent to the charging pile via the CAN bus;
[0021] When it is determined that the voltage of the first pin is within the first threshold corresponding to the first charging mode, it is detected whether a response frame is received from the charging pile.
[0022] If not, then the step of establishing a connection between the charging communication controller and the charging pile based on the first charging mode is executed;
[0023] If so, the target charging mode is determined based on the response frame, and it is determined whether the target charging mode is consistent with the first charging mode; and if consistent, the step of the charging communication controller establishing a connection with the charging pile based on the first charging mode is executed; if inconsistent, the charging communication controller establishes a connection with the charging pile based on the target charging mode.
[0024] Optionally, the method further includes:
[0025] In response to the power-on of the charging communication controller, a query frame is sent to the charging pile via the CAN bus;
[0026] When it is determined that the voltage of the second pin is within the second threshold corresponding to the second charging mode, it is detected whether a response frame is received from the charging pile.
[0027] If not, then the step of establishing a connection between the charging communication controller and the charging pile based on the second charging mode is executed;
[0028] If so, the target charging mode is determined according to the response frame, and it is determined whether the target charging mode is consistent with the second charging mode; and if consistent, the step of the charging communication controller establishing a connection with the charging pile based on the second charging mode is executed; if inconsistent, the charging communication controller establishes a connection with the charging pile based on the target charging mode.
[0029] Optionally, after the charging communication controller determines that the current mode is unknown, the method further includes:
[0030] The charging communication controller sends a query frame to the charging pile via the CAN bus.
[0031] Receive the response frame from the charging pile and determine the target charging mode based on the response frame;
[0032] A connection is established with the charging pile based on the target charging mode.
[0033] Optionally, the first threshold corresponding to the first charging mode and the second threshold corresponding to the second charging mode do not overlap.
[0034] Optionally, if the first threshold corresponding to the first charging mode and the second threshold corresponding to the second charging mode overlap, the method further includes:
[0035] The intersection of the first threshold and the second threshold is obtained in advance;
[0036] When it is determined that the voltage of the first pin is within the first threshold, it is determined whether the voltage of the first pin is within the intersection.
[0037] If so, the priorities of the first charging mode and the second charging mode are compared, and a connection is established with the charging pile based on the charging mode with higher priority.
[0038] Optionally, the first charging mode is CCS charging mode, the first pin is CP pin, the second charging mode is MCS charging mode, and the second pin is ID pin.
[0039] This application provides a charging device, including a processor and a memory. The memory stores a charging mode detection program. When the charging mode detection program is executed by the processor, it implements the steps of the charging mode detection method described above.
[0040] This application provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of any of the above-described charging mode detection methods.
[0041] As described above, this application identifies the charging mode by detecting the voltage of the hardware pins (i.e., the first pin and the second pin) and comparing the threshold values respectively. This method directly identifies the charging mode through the physical layer, avoiding the time overhead caused by protocol polling and timeout waiting, thereby improving detection efficiency and eliminating risks such as CAN transceiver malfunction caused by physical layer mismatch.
[0042] In addition, this application can filter the voltage sampled multiple times by the hardware pins, effectively suppressing contact jitter and electromagnetic interference at the moment of connection between the charging gun and the charging pile, ensuring the stability and reliability of the detection results, thereby avoiding mode misjudgment or missed detection caused by voltage fluctuations. Attached Figure Description
[0043] Figure 1 This is a schematic flowchart of the charging mode detection method according to the first embodiment of this application;
[0044] Figure 2 This is a schematic diagram of the structure of a charging device provided in an embodiment of this application. Detailed Implementation
[0045] To address the aforementioned problems in the prior art, this application provides a charging mode detection method, a charging device, and a storage medium. These protected subjects are based on the same concept, and their problem-solving principles are essentially the same or similar. The implementation methods of each protected subject can be referred to mutually, and repeated details will not be elaborated.
[0046] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly described below in conjunction with specific embodiments and corresponding drawings. Obviously, the embodiments described below are only a part of the embodiments of this application, and not all of them. Unless otherwise specified, the following embodiments and their technical features can be combined with each other, and also belong to the technical solutions of this application.
[0047] Figure 1 This is a flowchart illustrating the charging mode detection method according to the first embodiment of this application. The charging mode detection method can also be simply referred to as the "method," and is used to identify the normal charging mode between the charging pile and the charging gun of the electric vehicle. During the charging process, the charging communication controller, as the core control module of the electric vehicle charging system, is responsible for accurately identifying the type of the currently connected charging pile before charging, establishing the correct communication protocol for the charging mode, and executing a safe charging process. Essentially, the charging communication controller is the first or most direct participant in the interaction with the charging pile. Therefore, the executing entity for each step of the method can be the charging communication controller, or other suitable charging mode detection devices, the electric vehicle performing the charging, or a storage medium, processor, controller, etc., with charging functionality.
[0048] The charging communication controller can perform charging in at least the first charging mode and the second charging mode. (Combined) Figure 1 and Figure 2 As shown, the method includes at least the following steps S1 and S2, and subsequent steps S3 to S6 can be adaptively executed based on the judgment result of step S2.
[0049] S1. After the charging communication controller is powered on, it outputs a constant electrical signal to the first pin and the second pin respectively, and detects the voltage of the first pin and the second pin.
[0050] After the charging gun of the electric vehicle is plugged into the charging pile, the charging communication controller is powered on. Its relevant pins are electrically connected to the corresponding pins of the charging pile to establish a closed circuit. The first pin can be regarded as the hardware pin for executing the first charging mode, and the second pin can be regarded as the hardware pin for executing the second charging mode. The charging communication controller outputs a constant electrical signal to the first pin and the second pin respectively. At this time, the charging communication controller is equivalent to a constant current source. According to Ohm's law, the charging pile using different charging modes will present different resistances to ground on the corresponding hardware pins, thereby generating different voltages. The charging communication controller can detect the voltage on the first pin and the voltage on the second pin.
[0051] In one example, the voltage of the first pin is detected as follows: the charging communication controller samples the first pin multiple times consecutively at a first time interval to obtain a first number of sampled voltages, and then filters the first number of sampled voltages, using the filtered sampled voltage as the voltage of the first pin. The filtering process suppresses contact jitter (i.e., the impact of electrical connection on voltage signal jitter) during the connection between the charging gun and the charging pile, as well as electromagnetic noise interference generated by the switching actions of power devices inside the charging pile. This prevents electromagnetic noise from coupling into the control guidance circuit of the relevant charging mode, ensuring that the sampled voltage does not have high-frequency noise components superimposed, thereby guaranteeing the reliability and stability of the sampled voltage.
[0052] Taking an odd number as an example, the filtering process can be median filtering, specifically including: sorting the sampled voltages obtained from multiple consecutive samplings from largest to smallest or smallest to largest, and then taking the middle sampled voltage after sorting as the filtered sampled voltage. For example, setting the sampling number to 5, i.e., the first number is 5, the sampling interval is 10ms, i.e., the first time interval is 10ms, and the voltage of the first pin is sampled 5 times consecutively, resulting in 5 sampled voltages, forming a sampling array of [9120mV, 9150mV, 5230mV, 9130mV, 9140mV]; due to the interference pulse at the moment of connection between the charging gun and the charging pile, the third sampled value of 5230mV is obviously abnormal, so the sampling array is sorted from smallest to largest, resulting in a new array of [5230mV, 9120mV, 9130mV, 9140mV, 9150mV], and then taking the median value of 9130mV as the voltage of the first pin.
[0053] In one example, the voltage of the second pin is detected as follows: the charging communication controller samples the second pin multiple times consecutively at a second time interval to obtain a second number of sampled voltages, and then filters the second number of sampled voltages, using the filtered sampled voltages as the voltage of the second pin. Similarly, the filtering process can also be median filtering.
[0054] Taking an odd number of samples as an example, the sampling count is set to 5, i.e., the second number is 5, and the sampling interval is 10ms, i.e., the second time interval is 10ms. The voltage of the second pin is sampled 5 times consecutively, resulting in 5 sampled voltages, forming a sampling array of [450mV, 452mV, 448mV, 451mV, 449mV]. The sampling array is sorted from smallest to largest, resulting in a new array of [448mV, 449mV, 450mV, 451mV, 452mV]. The median value of 450mV is then taken as the voltage of the second pin.
[0055] In this example, median filtering is performed on multiple consecutive sampled voltages. The operation is simple and does not require complex computation or adaptive algorithms, which helps to reduce the related load.
[0056] S2. Determine whether the voltage of the first pin is within the first threshold corresponding to the first charging mode.
[0057] If the voltage of the first pin is within the first threshold, then step S3 is executed; if the voltage of the first pin is not within the first threshold, then step S4 is executed.
[0058] S3. The charging communication controller establishes a connection with the charging pile based on the first charging mode.
[0059] S4. Determine whether the voltage of the second pin is within the second threshold corresponding to the second charging mode.
[0060] If the voltage of the second pin is within the second threshold, then proceed to step S5; if the voltage of the second pin is not within the second threshold, then proceed to step S6.
[0061] S5. The charging communication controller establishes a connection with the charging pile based on the second charging mode.
[0062] S6. The charging communication controller determines that the current mode is unknown.
[0063] Based on the above steps, this application identifies the charging mode by detecting the voltage of the hardware pins (i.e., the first pin and the second pin) and comparing the threshold values respectively. This method directly identifies the charging mode through the physical layer, avoiding the time overhead caused by protocol polling and timeout waiting, thereby improving detection efficiency and eliminating risks such as CAN transceiver malfunction caused by physical layer mismatch.
[0064] In addition, this application can filter the voltage sampled multiple times by the hardware pins, effectively suppressing contact jitter and electromagnetic interference at the moment of connection between the charging gun and the charging pile, ensuring the stability and reliability of the detection results, thereby avoiding mode misjudgment or missed detection caused by voltage fluctuations.
[0065] For ease of description and understanding, this application will use the detection of two types of charging modes, CCS charging mode and MCS charging mode, as an example for illustration. That is, the CCS charging mode can be referred to as the aforementioned first charging mode, and the MCS charging mode can be referred to as the aforementioned second charging mode.
[0066] First, define the charging modes. CCS charging mode: identified by the voltage on the CP pin (i.e., the first pin), with the first threshold defined as CP_MONITOR_MV_CCS_B_L to CP_MONITOR_MV_CCS_B_H. MCS charging mode: identified by the voltage on the ID pin (i.e., the second pin), with the second threshold defined as ID_MONITOR_MV_MCS_MATEDEVSE_L to ID_MONITOR_MV_MCS_MATEDEVSE_H. Unknown mode: when the detected voltage does not fall within either of the above two threshold ranges, it is determined to be in unknown mode CHARGING_MODE_UNKNOWN.
[0067] Next, set the voltage debouncing sampling method. Step 1: Set sampling parameters: Define the number of voltage samples (VOLTAGE_SAMPLE_COUNT), preferably an odd number such as 5 or 7, and the sampling interval (SAMPLE_DELAY_MS), for example, 10 milliseconds. Step 2: Multiple sampling: Call the voltage acquisition function, such as DbGetCpVoltageMv or DbGetIdVoltageMv, and store the voltage values of the consecutive sampling times in the sampling array samples[VOLTAGE_SAMPLE_COUNT]. A fixed delay is inserted between each sampling using the DbosDelay function to ensure a uniform time distribution of sampling points and avoid the influence of transient interference. Step 3: Median filtering: Sort the voltage values in the samples array. Step 4: Take the median value as the debouncing result: After sorting, take the element at the middle position of the array as the final result of this voltage sampling and return it. Median filtering can effectively remove abnormal glitches and pulse interference during the sampling process, preserving the true voltage signal.
[0068] Next, the charging mode is determined. Step 1: Check the current charging mode status: Read the global variable siChargeMode and determine if it is an unknown mode CHARGING_MODE_UNKNOWN. If it is not an unknown mode, mode recognition has been completed, and the current mode is returned directly; if it is an unknown mode, the detection process begins. Step 2: Obtain the debouncing voltage of the CP pin: Call the voltage debouncing sampling function DbGetVoltageWithDebounce, passing the voltage acquisition function DbGetCpVoltageMv as a parameter, to obtain the debouncing CP voltage value cp_volt. Step 3: Obtain the debouncing voltage of the ID pin: Call the voltage debouncing sampling function DbGetVoltageWithDebounce, passing the voltage acquisition function DbGetIdVoltageMv as a parameter, to obtain the debouncing ID voltage value Id_volt. Step 4, CCS Charging Mode Judgment: Determine if cp_volt is within the voltage threshold range of CCS charging mode. If yes, set the charging mode to CCS charging mode and end the detection process; otherwise, proceed to Step 5, MCS Charging Mode Judgment: Determine if Id_volt is within the voltage threshold range of MCS charging mode. If yes, set the charging mode to MCS charging mode and end the detection process; otherwise, proceed to Step 6, Unknown Mode: At this time, the unknown mode can be maintained, waiting for the next detection or timeout processing. The specific measures for timeout processing can be determined by the preset settings of the charging communication controller.
[0069] For example, after determining that the current mode is unknown, the method further includes the following steps: the charging communication controller sends a query frame to the charging pile via the CAN bus. This query frame contains bytes for inquiring about the charging mode. After receiving a response frame from the charging pile containing bytes indicating the charging mode, the target charging mode is determined based on the bytes contained in the response frame. Then, the charging communication controller can establish a communication connection with the charging pile based on the target charging mode. Based on this, the charging communication controller does not need to continuously maintain an unknown mode, thus avoiding prolonged periods without charging.
[0070] In practical scenarios, the charging communication controller and the charging pile are connected via a CAN bus. Therefore, this application can apply a CAN bus-based polling method to charging mode detection. In one example, simultaneously with step S1, i.e., once the charging communication controller is detected to be powered on, it sends a polling frame to the charging pile via the CAN bus in response to the power-on. In step S2, when the voltage of the first pin is determined to be within the first threshold corresponding to the first charging mode, the charging communication controller checks whether it receives a response frame from the charging pile. If no response frame is received, step S3 is executed, i.e., the charging communication controller establishes a connection with the charging pile based on the first charging mode. If a response frame is received, the target charging mode is determined based on the response frame, and it is determined whether the target charging mode is consistent with the first charging mode. If they are consistent, step S3 is executed, i.e., the charging communication controller establishes a connection with the charging pile based on the first charging mode. If they are inconsistent, the charging communication controller establishes a connection with the charging pile based on the target charging mode. In other words, this example performs a CAN bus-based polling method while detecting the voltage on the hardware pin. This avoids the time overhead caused by protocol polling and timeout waiting, improves detection efficiency, and allows for comparison of the results of the two detection methods, thereby ensuring the accuracy of the detection results.
[0071] Similarly, in another example, simultaneously with step S1, i.e., once the power-on of the charging communication controller is detected, the charging communication controller sends a query frame to the charging pile via the CAN bus in response to the power-on; when it is determined in step S4 that the voltage of the second pin is within the second threshold corresponding to the second charging mode, the charging communication controller checks whether it receives a response frame from the charging pile; if no response frame is received, step S5 is executed, i.e., the charging communication controller establishes a connection with the charging pile based on the second charging mode; if a response frame is received, the target charging mode is determined according to the response frame, and it is determined whether the target charging mode is consistent with the second charging mode; if they are consistent, step S5 is executed, i.e., the charging communication controller establishes a connection with the charging pile based on the second charging mode; if they are inconsistent, the charging communication controller establishes a connection with the charging pile based on the target charging mode.
[0072] In the aforementioned example where the CCS charging mode is the first charging mode and the MCS charging mode is the second charging mode, the first threshold corresponding to the CCS charging mode is generally 448mV to 452mV, and the second threshold corresponding to the MCS charging mode is generally 8800mV to 9500mV. That is, the first threshold corresponding to the first charging mode and the second threshold corresponding to the second charging mode do not overlap.
[0073] However, in other charging mode examples, there may be a situation where the voltage thresholds corresponding to the two types of charging modes overlap, that is, the first threshold corresponding to the first charging mode and the second threshold corresponding to the second charging mode overlap. In this regard, the method of this application may further include the following steps: the charging communication controller pre-obtains the intersection between the first threshold and the second threshold; when it is determined in step S2 that the voltage of the first pin is within the first threshold, step S3 is not executed directly, but rather it is first determined whether the voltage of the first pin is within the intersection; and, if the voltage of the first pin is not within the intersection, step S3 is executed; if the voltage of the first pin is within the intersection, the priorities of the first charging mode and the second charging mode are compared, and a connection is established with the charging pile based on the charging mode with higher priority; taking the example that the priority of the first charging mode is higher than the priority of the second charging mode, step S3 is executed; and if the priority of the first charging mode is lower than the priority of the second charging mode, step S4 can be skipped, and a connection can be established directly with the charging pile based on the second charging mode.
[0074] This application embodiment also provides a storage medium storing a charging mode detection program, which is essentially a computer program, and when executed by a processor, the program implements the steps of the charging mode detection method of any of the foregoing examples.
[0075] The storage medium includes, but is not limited to, any one of read-only memory (ROM), random access memory (RAM), magnetic disk, and optical disk.
[0076] Since the program stored in the storage medium can execute the steps in the charging mode detection method of any embodiment provided in this application, the beneficial effects that the charging mode detection method of any of the foregoing embodiments can achieve can be realized. For details, please refer to the foregoing embodiments, which will not be repeated here.
[0077] This application also provides a charging mode detection device (hereinafter referred to as "device") and a chip, both of which include a memory and a processor. The memory stores a charging mode detection program, which, when executed by the processor, implements the steps of the charging mode detection method of any of the foregoing embodiments; and / or, the charging mode detection device or chip is provided with a storage medium as shown in the above example, and the processor loads the storage medium to execute the steps of the charging mode detection method, thereby achieving the beneficial effects that the charging mode detection method of the corresponding embodiment can achieve.
[0078] Figure 2 This is a schematic diagram of the structure of a charging device provided in an embodiment of this application. Figure 2 As shown, the charging device 20, which can also be simply referred to as device 20, includes, but is not limited to, electric vehicles or their charging communication controllers, and the device 20 includes the following modules:
[0079] The detection module 21 is used to detect the voltage of the first pin and the second pin after the charging communication controller is powered on and outputs a constant electrical signal to the first pin and the second pin respectively.
[0080] The first judgment module 22 is used to determine whether the voltage of the first pin is within the first threshold corresponding to the first charging mode;
[0081] The control communication module 23 is used to control the charging communication controller to establish a connection with the charging pile based on the first charging mode when the voltage of the first pin is within the first threshold.
[0082] The second judgment module 24 is used to determine whether the voltage of the second pin is within the second threshold corresponding to the second charging mode when the voltage of the first pin is not within the first threshold.
[0083] The control communication module 23 is further configured to control the charging communication controller to establish a connection with the charging pile based on the second charging mode when the voltage of the second pin is within the second threshold; and to determine that the current mode is unknown when the voltage of the second pin is not within the second threshold.
[0084] Through the cooperation of the above modules, the charging mode detection is completed.
[0085] It should be understood that the various modules of the charging device 20 described above can be represented as physical devices or virtual modules (i.e., commonly referred to as logical modules) in actual scenarios. A single module can be implemented by a single physical device or by two or more physical devices working together. Similarly, the function performed by a single module can be implemented by a single physical device or by two or more physical devices working together. Furthermore, the functions corresponding to each module can be implemented by the corresponding steps of the charging mode detection method in any of the foregoing embodiments.
[0086] The above are only some embodiments of this application and do not limit the patent scope of this application. For those skilled in the art, any equivalent structural transformations made using the content of this specification and drawings are similarly included within the patent protection scope of this application.
[0087] The use of step designations such as S1 and S2 in this document is intended to more clearly and concisely describe the corresponding content and does not constitute a substantial restriction on the order. In specific implementation, those skilled in the art may execute S2 first and then S1, etc., but these should all be within the protection scope of this application.
[0088] Although this document uses terms such as "first," "second," etc., to describe various types of information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. Furthermore, the singular forms "a," "an," and "the" are intended to also include the plural forms. The terms "or" and "and / or" are interpreted as inclusive, or meaning either one or any combination thereof. Exceptions to this definition only arise when combinations of elements, functions, steps, or operations are inherently mutually exclusive in some way.
Claims
1. A charging mode detection method, characterized in that, A charging communication controller for performing charging in at least a first charging mode and a second charging mode, wherein the first charging mode is a combined charging system (CCS) charging mode and the second charging mode is a megawatt charging system (MCS) charging mode, the method comprising: After the charging gun is plugged into the charging pile, the charging communication controller is powered on. The charging communication controller is electrically connected to the corresponding pins of the charging pile to establish a closed circuit, and outputs a constant electrical signal to the first pin and the second pin respectively, and detects the voltage of the first pin and the second pin. The first pin is the CP pin and the second pin is the ID pin. Determine whether the voltage of the first pin is within the first threshold corresponding to the first charging mode; If so, the charging communication controller establishes a connection with the charging pile based on the first charging mode; If not, then determine whether the voltage of the second pin is within the second threshold corresponding to the second charging mode; and, If so, the charging communication controller establishes a connection with the charging pile based on the second charging mode; If not, the charging communication controller determines that the current mode is unknown.
2. The method according to claim 1, characterized in that, The voltage at the first pin is detected, including: The charging communication controller samples the first pin multiple times consecutively at a first time interval to obtain a first number of sampled voltages, and filters the first number of sampled voltages, using the filtered sampled voltages as the voltage of the first pin. The voltage at the second pin is detected, including: The charging communication controller samples the second pin multiple times at a second time interval to obtain a second number of sampled voltages, filters the second number of sampled voltages, and uses the filtered sampled voltages as the voltage of the second pin.
3. The method according to claim 2, characterized in that, Both the first quantity and the second quantity are odd numbers, and the filtering process includes: Sort the sampled voltages obtained from multiple consecutive samplings from largest to smallest or smallest to largest; The middle sampled voltage after sorting is taken as the sampled voltage after filtering.
4. The method according to claim 1, characterized in that, The method further includes: In response to the power-on of the charging communication controller, a query frame is sent to the charging pile via the CAN bus; When it is determined that the voltage of the first pin is within the first threshold corresponding to the first charging mode, it is detected whether a response frame from the charging pile is received. If not, then the step of establishing a connection between the charging communication controller and the charging pile based on the first charging mode is executed; If so, the target charging mode is determined based on the response frame, and it is determined whether the target charging mode is consistent with the first charging mode; and if consistent, the step of the charging communication controller establishing a connection with the charging pile based on the first charging mode is executed; if inconsistent, the charging communication controller establishes a connection with the charging pile based on the target charging mode.
5. The method according to claim 1, characterized in that, The method further includes: In response to the power-on of the charging communication controller, a query frame is sent to the charging pile via the CAN bus; When it is determined that the voltage of the second pin is within the second threshold corresponding to the second charging mode, it is detected whether a response frame from the charging pile is received. If not, then the step of establishing a connection between the charging communication controller and the charging pile based on the second charging mode is executed; If so, the target charging mode is determined according to the response frame, and it is determined whether the target charging mode is consistent with the second charging mode; and if consistent, the step of the charging communication controller establishing a connection with the charging pile based on the second charging mode is executed; if inconsistent, the charging communication controller establishes a connection with the charging pile based on the target charging mode.
6. The method according to claim 1, characterized in that, After the charging communication controller determines that the current mode is unknown, the method further includes: The charging communication controller sends a query frame to the charging pile via the CAN bus. Receive the response frame from the charging pile and determine the target charging mode based on the response frame; A connection is established with the charging pile based on the target charging mode.
7. The method according to claim 1, characterized in that, The first threshold corresponding to the first charging mode and the second threshold corresponding to the second charging mode do not overlap; Alternatively, if the first threshold corresponding to the first charging mode and the second threshold corresponding to the second charging mode intersect, then the method further includes: The intersection of the first threshold and the second threshold is obtained in advance; When it is determined that the voltage of the first pin is within the first threshold, it is determined whether the voltage of the first pin is within the intersection; and, If so, the priorities of the first charging mode and the second charging mode are compared, and a connection is established with the charging pile based on the charging mode with higher priority.
8. A charging device, characterized in that, The charging device includes a processor and a memory, the memory storing a charging mode detection program, which, when executed by the processor, implements the steps of the charging mode detection method according to any one of claims 1 to 7.
9. A storage medium, characterized in that, The device contains a computer program that, when executed by a processor, implements the steps of the charging mode detection method as described in any one of claims 1 to 7.