Electric vehicle charging and discharging simulation test method and device, electronic equipment and medium
By automatically configuring the hardwired connection between the HIL test platform and the charge/discharge controller, the problem of low test efficiency caused by manually adjusting the hardwire in the hardware-in-the-loop test system is solved, realizing automated testing of the charging and discharging function of electric vehicles and improving test efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING ELECTRIC VEHICLE
- Filing Date
- 2023-06-12
- Publication Date
- 2026-05-15
AI Technical Summary
Existing hardware-in-the-loop testing systems require manual adjustment of hardwires, resulting in low efficiency in electric vehicle charge and discharge testing.
By determining the operating mode of electric vehicles under different working conditions, the hard-wired connection between the HIL test platform and the charge/discharge controller is automatically configured to achieve automated testing of the charge/discharge function.
This improves the automation and efficiency of electric vehicle charging and discharging function testing.
Smart Images

Figure CN116718923B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of charge and discharge testing technology, and in particular to a method, apparatus, electronic device, and medium for simulating the charge and discharge of electric vehicles. Background Technology
[0002] The power battery provides energy to the electric vehicle drive system and plays a crucial role in meeting the vehicle's driving needs. As an indispensable function of new energy vehicles, the verification and testing of the charging and discharging function is vital for the normal operation of the electric vehicle. Currently, the charging and discharging function of electric vehicles is typically verified through hardware-in-the-loop testing (HIL). However, because the hardware signal flow associated with the Connection Confirmation Function (CC) and Control Pilot Function (CP) during charging and discharging is reversed, automated testing of the vehicle's charging and discharging function requires manual adjustment of hardwired wiring, thus affecting testing efficiency. Summary of the Invention
[0003] This application provides a method, apparatus, electronic device, and medium for simulating electric vehicle charging and discharging tests, in order to solve the problem that the hardware-in-the-loop test system requires manual adjustment of hardwires, resulting in low efficiency in electric vehicle charging and discharging tests.
[0004] To solve the above-mentioned technical problems, this application is implemented as follows:
[0005] In a first aspect, this application provides a method for simulating the charging and discharging of an electric vehicle, applied to a charging and discharging simulation testing system. The simulation testing system includes a hardware-in-the-loop (HIL) test platform and a charging and discharging controller. The method includes:
[0006] The operating mode of an electric vehicle under a target operating state is determined, wherein the target operating state is a charging state or a discharging state, and the operating mode includes a first operating mode and a second operating mode, wherein the first operating mode is an AC mode and the second operating mode is a DC mode;
[0007] When the electric vehicle is operating in the first working mode during the charging state, the first charging connection confirmation interface of the charge and discharge controller is connected to the first hard-wired output terminal of the HIL test platform, and the control guidance interface of the charge and discharge controller is connected to the second hard-wired output terminal of the HIL test platform. AC charging simulation is performed through the HIL test platform to test the charging function of the electric vehicle.
[0008] When the electric vehicle is operating in the first working mode under the discharge state, the first charging connection confirmation interface is controlled to connect to the first hard-wired output terminal of the HIL test platform, and the control guidance interface is controlled to connect to the hard-wired input terminal of the HIL test platform. AC discharge simulation is performed through the HIL test platform to test the discharge function of the electric vehicle.
[0009] When the electric vehicle operates in the second working mode during the charging state, the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller are respectively connected to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform, and DC charging simulation is performed through the HIL test platform to test the charging function of the electric vehicle.
[0010] When the electric vehicle operates in the second working mode under the discharge state, the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller are respectively connected to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform, and DC discharge simulation is performed through the HIL test platform to test the discharge function of the electric vehicle.
[0011] Secondly, embodiments of this application also provide an electric vehicle charging and discharging simulation testing device, applied to a charging and discharging simulation testing system. The simulation testing system includes a hardware-in-the-loop (HIL) test platform and a charging and discharging controller. The simulation testing device includes:
[0012] The operating mode determination module is used to determine the operating mode of an electric vehicle under a target operating state, wherein the target operating state is a charging state or a discharging state, and the operating mode includes a first operating mode and a second operating mode, wherein the first operating mode is an AC mode and the second operating mode is a DC mode;
[0013] An AC charging simulation test module is used to control the first charging connection confirmation interface of the charge and discharge controller to connect to the first hard-wired output terminal of the HIL test platform when the electric vehicle is operating in the charging state in the first working mode, and to control the control guidance interface of the charge and discharge controller to connect to the second hard-wired output terminal of the HIL test platform, so as to perform AC charging simulation through the HIL test platform to test the charging function of the electric vehicle.
[0014] An AC discharge simulation test module is used to control the first charging connection confirmation interface to connect to the first hard-wired output terminal of the HIL test platform and control the control guidance interface to connect to the hard-wired input terminal of the HIL test platform when the electric vehicle is operating in the first working mode under the discharge state. The module performs AC discharge simulation through the HIL test platform to test the discharge function of the electric vehicle.
[0015] The DC charging simulation test module is used to control the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller to be connected to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform respectively when the electric vehicle is working in the second working mode under the charging state, and to perform DC charging simulation through the HIL test platform to test the charging function of the electric vehicle.
[0016] The DC discharge simulation test module is used to control the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller to connect to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform respectively when the electric vehicle is operating in the second working mode under the discharge state, and to perform DC discharge simulation through the HIL test platform to test the discharge function of the electric vehicle.
[0017] Thirdly, embodiments of this application provide an electronic device, including: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, it implements the steps of the electric vehicle charging and discharging simulation test method as described in the first aspect.
[0018] Fourthly, embodiments of this application also provide a readable storage medium storing a program that, when executed by a processor, implements the steps of an electric vehicle charging and discharging simulation test method as described in the first aspect.
[0019] In this embodiment, it is first necessary to determine the operating mode of the electric vehicle under different working states, so as to facilitate hard-wired configuration for different working states and modes. Then, a hard-wired switching channel is configured between the HIL test platform and the charge / discharge controller. For each working mode under different working states, the switching is automatically identified. Based on the corresponding hard-wired interconnection configuration, charge / discharge function simulation is performed, and corresponding tests are conducted. This allows for automated testing of the electric vehicle's charge / discharge function by identifying different fully charged states and switching the connection channel, and by controlling the HIL test platform to simulate the charge / discharge of the electric vehicle through the charge / discharge controller, thereby improving testing efficiency. Attached Figure Description
[0020] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a flowchart of a charging and discharging simulation test method for electric vehicles provided in an embodiment of this application;
[0022] Figure 2 yes Figure 1 One of the structural schematic diagrams of the charge-discharge simulation test system;
[0023] Figure 3 yes Figure 2 A schematic diagram of the architecture design of the medium charge-discharge simulation test system;
[0024] Figure 4 yes Figure 1 Flowchart of AC charging simulation test;
[0025] Figure 5 yes Figure 1 Flowchart of AC discharge simulation test;
[0026] Figure 6 yes Figure 1 Flowchart of DC charging simulation test;
[0027] Figure 7 yes Figure 1 Flowchart of DC discharge simulation test;
[0028] Figure 8 yes Figure 1 Schematic diagram of the charging and discharging simulation test system (Part 2);
[0029] Figure 9 yes Figure 1 A flowchart of the simulated charge-discharge test using the first working mode;
[0030] Figure 10 yes Figure 1 A flowchart of the simulated charge-discharge test using the second working mode;
[0031] Figure 11 This is a schematic diagram of the structure of a charge-discharge simulation test device provided in an embodiment of this application;
[0032] Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0033] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0034] This application provides a method for simulating the charging and discharging of an electric vehicle, applied to a charging and discharging simulation testing system. The simulation testing system includes a hardware-in-the-loop (HIL) test platform and a charging and discharging controller. Figure 1 As shown, the method includes:
[0035] Step 101: Determine the operating mode of the electric vehicle under the target operating state, wherein the target operating state is a charging state or a discharging state, and the operating mode includes a first operating mode and a second operating mode, wherein the first operating mode is an AC mode and the second operating mode is a DC mode.
[0036] It should be noted that please refer to the following for details. Figure 2 The charge / discharge simulation test system in this application includes a HIL test platform 210 and a charge / discharge controller 220. The system may also include a junction box (BOB). Specifically, the HIL test platform 210 may include a hard-wired input port 211, a simulation communication module 213, a hardware configuration module 214, and a hard-wired output port 215. The charge / discharge controller 220 may include a charging connection confirmation interface 221, a battery management system 224, a communication module 223, and a control guidance interface 222. Communication between the HIL test platform 210 and the charge / discharge controller 220 can occur through signal transmission between the simulation communication module 213 and the communication module 223. The simulation communication module 213 can simulate the communication equipment on an electric vehicle, transmitting signals during the charge / discharge simulation process to the charge / discharge controller 220. The charge / discharge controller 220 can then send control commands and other signals to the HIL test platform 210 through the communication module 223. In addition, the hardware configuration module 214 in the HIL test platform 210 may specifically include OBC, MCU, power battery, and charging pile. When it receives the instruction from the charge and discharge controller 220 to perform simulation, the hardware configuration module 214 can be used to simulate various charging and discharging states of the electric vehicle.
[0037] It is worth mentioning that, please refer to Figure 3This application provides a charge-discharge test simulation method applied to a charge-discharge simulation test system. Before performing charge-discharge simulation, the system can import an automated test program into the HIL test platform 210 via the automated test program import module 201. Specifically, charge-discharge simulation test cases can be written based on the actual conditions of the electric vehicle under the target working state and different working modes. The test cases are automatically imported by calling the lower-level machine interface of the HIL test platform 210 to drive the lower-level machine to complete the test cases and display the test results. Subsequently, the HIL test platform 210 executes the test cases to simulate and test the electric vehicle and generates a corresponding simulation test report. Thus, the automated testing of the charge-discharge function of the new energy electric vehicle is completed. Specifically, the HIL test platform 210 in this application can be used to simulate different charging and discharging methods of electric vehicles. It can simulate the operation of the on-board charger (OBC), microcontroller unit (MCU), power battery, switching power supply (DC-DC), and electric drive system, and communicate with the charge and discharge controller through hardwire, controller area network (CAN), LIN bus, and Ethernet to complete the verification of the charging and discharging function.
[0038] In the above steps, the working mode of the electric vehicle under the target working state is determined, which can encompass the charging and discharging modes of the electric vehicle under four conditions: AC charging, AC discharging, DC charging, and DC discharging. For different charging and discharging modes, different hard-wired connection methods are configured between the HIL test platform and the charging and discharging control system after identification, which can verify the charging and discharging functions of the electric vehicle under different charging and discharging modes and different DC or AC working modes.
[0039] Step 102: When the electric vehicle is operating in the first working mode under the charging state, control the first charging connection confirmation interface of the charge / discharge controller to connect to the first hard-wired output terminal of the HIL test platform, and control the control guidance interface of the charge / discharge controller to connect to the second hard-wired output terminal of the HIL test platform. Perform AC charging simulation through the HIL test platform to test the charging function of the electric vehicle.
[0040] In one specific embodiment of this application, when the electric vehicle is in a charging state and operating in a first working mode, i.e., when the electric vehicle is AC charging, the charge-discharge simulation test system automatically controls the charge-discharge controller to connect with the HIL test platform. Specifically, this can be achieved by controlling the first charging connection confirmation interface CC of the charge-discharge controller to connect with the first hard-wired output terminal of the HIL test platform, and controlling the control guidance interface CP of the charge-discharge controller to connect with the second hard-wired output terminal of the HIL test platform. It should be noted that in the above charging connection configuration process, both the first charging connection confirmation interface CC and the control guidance interface CP can be used as input ports for the charge-discharge controller. Specifically, a 5-pin relay can be used to connect the first charging connection confirmation interface CC and the control guidance interface CP of the charge-discharge controller to the first hard-wired output terminal and the second hard-wired output terminal of the HIL test platform, respectively. Furthermore, the first charging connection confirmation interface CC can simulate a resistor output, and the control guidance interface CP can be used to simulate a signal output. After the above configuration and connection, the HIL test platform and the charge-discharge controller can prepare for charging. After completing the charging preparation, the HIL test platform simulates the AC charging process, thus testing the AC charging function of the electric vehicle.
[0041] Step 103: When the electric vehicle is operating in the first working mode under the discharge state, control the first charging connection confirmation interface to connect to the first hard-wired output terminal of the HIL test platform, and control the control guidance interface to connect to the hard-wired input terminal of the HIL test platform. Perform AC discharge simulation through the HIL test platform to test the discharge function of the electric vehicle.
[0042] In another specific embodiment of this application, when the electric vehicle is operating in the first working mode during discharge, i.e., when the electric vehicle is performing AC discharge, the charge-discharge simulation test system automatically controls the charge-discharge controller to connect with the HIL test platform. Specifically, this can be achieved by controlling the first charging connection confirmation interface CC to connect to the first hard-wired output terminal of the HIL test platform, and controlling the control guidance interface CP to connect to the hard-wired input terminal of the HIL test platform. At this time, the first charging connection confirmation interface CC can serve as the interface for input signals to the charge-discharge controller, and the control guidance interface CP can serve as the interface for output signals to the charge-discharge controller. Specifically, a 5-pin relay can be used to connect the first charging connection confirmation interface CC and the control guidance interface CP to the first hard-wired output terminal and the hard-wired input terminal of the HIL test platform, respectively. It should be noted that after the charge-discharge controller and the HIL test platform are successfully configured and connected, the first charging connection confirmation interface CC can simulate a resistance output, and the aforementioned control guidance interface CP can be used to simulate a signal input. Thus, after completing the above connection configuration, the charge-discharge control platform and the HIL test platform begin discharge preparation, the HIL test platform begins simulating the AC discharge process, and subsequently, the AC discharge function of the electric vehicle can be verified and tested.
[0043] Step 104: When the electric vehicle is operating in the second working mode under the charging state, the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller are connected to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform, respectively, and DC charging simulation is performed through the HIL test platform to test the charging function of the electric vehicle.
[0044] In one specific embodiment of this application, when the electric vehicle is in a charging state and operating in the second working mode, i.e., when the electric vehicle is DC charging, the HIL test platform is configured to connect to the charge / discharge controller. Specifically, this can be achieved by controlling the second charging connection confirmation interface CC1 of the charge / discharge controller to connect to the second hard-wired output terminal of the HIL test platform, and controlling the third charging connection confirmation interface CC2 of the charge / discharge controller to connect to the third hard-wired output terminal of the HIL test platform. The second charging connection confirmation interface CC1 and the third charging connection confirmation interface CC2 can also be connected to the second and third hard-wired output terminals respectively by setting a 5-pin relay. It should be noted that both the second charging connection confirmation interface CC1 and the third charging connection confirmation interface CC2 can serve as input signals for the charge / discharge controller, and can also simulate signal outputs. Furthermore, the second charging connection confirmation interface CC1 can be used to simulate the voltage of a specific detection point, and the third charging connection confirmation interface CC2 can be used to simulate the voltage of another specific detection point. The above configuration establishes a connection between the charge / discharge controller and the HIL test platform under DC charging. The HIL test platform can perform DC charging simulation, and then verify the AC discharge function of the electric vehicle.
[0045] Step 105: When the electric vehicle is operating in the second working mode under the discharge state, the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller are connected to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform, respectively, and DC discharge simulation is performed through the HIL test platform to test the discharge function of the electric vehicle.
[0046] In another specific embodiment of this application, when the electric vehicle is in a discharging state and operating in the second working mode, i.e., when the electric vehicle is performing DC discharge, the connection between the HIL test platform and the charge / discharge controller can be established by controlling the second charging connection confirmation interface CC1 and the third charging connection confirmation interface CC2 of the charge / discharge controller to be connected to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform, respectively. The specific configuration connection method is consistent with the configuration method described above in the DC charging case. Therefore, when the electric vehicle first performs DC charging and then DC discharging, the DC charging and discharging functions of the electric vehicle can be directly verified and tested without changing the configuration connection between the HIL test platform and the charge / discharge controller. However, it should be noted that during DC discharge, both the second charging connection confirmation interface CC1 and the third charging connection confirmation interface CC2 can be used as input signals to the charge / discharge controller. After the configuration connection is established, during the simulated DC discharge process on the HIL test platform, both the second charging connection confirmation interface CC1 and the third charging connection confirmation interface CC2 can be used as interfaces for simulated voltage output. After completing the configuration and connection between the HIL test platform and the charge / discharge controller, the HIL test platform performs DC discharge simulation and then verifies the DC discharge function of the electric vehicle.
[0047] In a specific embodiment of the charge-discharge simulation test method of this application, four scenarios are included: AC charging, AC discharging, DC charging, and DC discharging. The connection between the HIL test platform and the charge-discharge controller is switched and configured for each scenario. The charge-discharge simulation test system can first test the charging function, and then begin the discharge detection function. This can be achieved by automatically switching the connection between the charging connection confirmation interface and control guidance port on the charge-discharge controller and the hard-wired output interface or hard-wired output interface of the HIL test platform. This improves the degree of automation, facilitates subsequent testing of the electric vehicle's charging and discharging functions, and increases test verification efficiency.
[0048] Optionally, when the electric vehicle operates in the first working mode under the discharge state, controlling the first charging connection confirmation interface to connect to the first hardwired output terminal of the HIL test platform, and controlling the control guidance interface to connect to the hardwired input terminal of the HIL test platform, and performing AC charging simulation through the HIL test platform, includes:
[0049] When the electric vehicle is operating in the first working mode during the charging state, the connection method and charging mode for AC charging of the electric vehicle are obtained;
[0050] Based on the connection method and the charging mode, the target simulation type for AC charging simulation of the HIL test platform is determined, wherein the target simulation type is one of simulating the output voltage of the control guidance interface, simulating the output voltage of the control guidance interface, and simulating the output resistance value of the first charging connection confirmation interface;
[0051] The system controls the first charging connection confirmation interface to connect to the first hardwire output terminal of the HIL test platform, and controls the control guidance interface to connect to the hardwire input terminal of the HIL test platform.
[0052] Based on the target simulation type, AC charging simulation is performed using the HIL test platform.
[0053] In practice, before configuring the hardwired HIL test platform and charge / discharge controller, the specific connection methods, charging modes, connection confirmation interfaces, and control guidance interfaces that should be simulated when the electric vehicle is in AC charging mode can be confirmed. This is to make it applicable to electric vehicles with different charging types and to play a role in testing and verifying electric vehicles that use AC charging.
[0054] It should be noted that, referring to GB / T 18487.1 Electric Vehicle Powertrain Charging System, the above connection methods can refer to the methods of connecting electric vehicles to the power grid or power source using cables and connectors. These can include three connection methods: Connection Method A involves connecting the vehicle and the charging cable together for charging; Connection Method B involves charging via a vehicle charger; and Connection Method C involves charging via a separate charging station. The charging mode can represent the method of connecting the electric vehicle to the power grid or power source for power supply. This can include three charging modes: Charging Mode 1 can be single-phase AC charging with a current of 8A or less and a voltage of 250V or less; Charging Mode 2 can be single-phase AC charging with a current of 16A or less; Charging Mode 3 can be single-phase AC charging with a current of 32A or less, or three-phase AC charging with a current greater than 32A; and Charging Mode 4 can be DC charging but can only be connected using Connection Method C. Specifically, the charging connection types for electric vehicles can be categorized according to the charging mode and connection method as shown in Table 1.
[0055] Table 1
[0056]
[0057] It should be noted that electric vehicles mainly use types 1, 2, 3, and 4 in the table above. Therefore, this application embodiment can determine the simulation type for AC charging simulation of the HIL test platform based on the above four types of charging connection types. According to the different charging connection types of the electric vehicle, the target simulation type corresponding to that charging connection type is determined. Specifically, the target simulation type can be one of the following: the output voltage of the simulation control guidance interface, the output voltage of the simulation control guidance interface, and the output resistance value of the first charging connection confirmation interface. For example, the target simulation type corresponding to type 1 is the output voltage of the simulation control guidance interface; the target simulation type corresponding to type 2 is the output voltage of the simulation control guidance interface and the output resistance value of the simulation charging confirmation interface; types 3 and 4 can both be consistent with the target simulation type of type 2. By determining the above target simulation type and simulating the electric vehicle, the connection state of the electric vehicle's power plug and socket can be simulated. Thus, after confirming the target simulation type corresponding to the charging mode and connection method of the electric vehicle, the HIL test platform is configured and connected with the charge / discharge controller to form a path, enabling the HIL test platform to perform AC discharge simulation according to the target simulation type.
[0058] Optionally, the AC charging simulation based on the target simulation type, performed through the HIL test platform, includes:
[0059] Based on the HIL test platform, the target simulation type is simulated to obtain the output voltage of the control and guidance interface;
[0060] The output voltage is transmitted to the charge / discharge controller, and the first charging command issued by the charge / discharge controller after receiving the output voltage is obtained;
[0061] The first charging command is sent to the HIL test platform for AC charging simulation.
[0062] Please refer to Figure 4 , Figure 4 yes Figure 1 The flowchart of AC charging simulation test in this application, in a specific embodiment, may include the following steps:
[0063] Step 301: Determine the operating mode of the electric vehicle under the target operating condition;
[0064] Step 302: When the electric vehicle is operating in the first working mode under the charging state, obtain the connection method and charging mode of the electric vehicle for AC charging;
[0065] Step 303: Based on the connection method and the charging mode, determine the target simulation type for AC charging simulation of the HIL test platform;
[0066] Step 304: Control the first charging connection confirmation interface to connect with the first hardwire output terminal of the HIL test platform, and control the control guidance interface to connect with the hardwire input terminal of the HIL test platform;
[0067] Step 305: Simulate the target simulation type based on the HIL test platform to obtain the output voltage of the control and guidance interface;
[0068] Step 306: Transmit the output voltage to the charge / discharge controller and obtain the first charging command issued by the charge / discharge controller after receiving the output voltage;
[0069] Step 307: Send the first charging command to the HIL test platform to perform AC charging simulation.
[0070] It should be clarified that the simulated AC charging process in this embodiment includes the following stages: physical connection, low-voltage auxiliary power-on, charging handshake, charging parameter configuration, and simulated AC charging. In the above steps, after completing the physical connection configuration between the HIL test platform and the charge / discharge controller, the output voltage from the control guidance interface can be transmitted to the charge / discharge controller. Upon receiving this voltage signal, the charge / discharge controller can determine that the physical connection for charging is complete, the external power supply is normal, the line is reliable, the power supply equipment has been activated, and the voltage on the line connected to the control guidance interface can reach 12V. The charge / discharge controller then begins to complete the relevant work for charging preparation. After the charge / discharge controller completes the charging preparation work, the HIL test platform can simulate a high-voltage signal and send it to the controller under test, thus completing the entire power-on guidance process for the charging process. Subsequently, the charge / discharge controller will issue the first charging command to allow charging, and the HIL test platform can begin simulating the AC charging process after receiving this command.
[0071] It is worth mentioning that after the HIL test platform starts AC charging simulation, the resistance value of the charging confirmation connection interface can be detected to determine the connection status between the HIL test platform and the charge / discharge controller. Please refer to Table 2:
[0072] Table 2
[0073]
[0074] Wherein, RC+R4 represents the resistance value at the detection point when the charging confirmation interface of the charge / discharge controller and the input hardwire of the HIL test platform are in a half-connection state;
[0075] RC represents the resistance value when the charging confirmation interface of the charge / discharge controller is connected to the input hardwire of the HIL test platform.
[0076] Optionally, when the electric vehicle operates in the first operating mode under the discharge state, controlling the first charging connection confirmation interface to connect to the first hardwired output terminal of the HIL test platform, and controlling the control guidance interface to connect to the hardwired input terminal of the HIL test platform, includes:
[0077] When the electric vehicle is AC discharged, the discharge mode and load type of the electric vehicle are obtained;
[0078] Based on the discharge mode and the load type, determine the analog output resistance value corresponding to the first charging connection confirmation interface;
[0079] The system controls the first charging connection confirmation interface to connect to the first hardwire output terminal of the HIL test platform, and controls the control guidance interface to connect to the hardwire input terminal of the HIL test platform.
[0080] Based on the simulated output resistance value, the output resistance value of the first charging connection confirmation interface is simulated using the HIL test platform.
[0081] Please refer to Figure 5 , Figure 5 yes Figure 1 The flowchart for AC discharge simulation testing may specifically include the following steps:
[0082] Step 301: Determine the operating mode of the electric vehicle under the target operating condition;
[0083] Step 311: When the electric vehicle is AC discharging, obtain the discharge mode and load type of the electric vehicle;
[0084] Step 312: Based on the discharge mode and the load type, determine the analog output resistance value corresponding to the first charging connection confirmation interface;
[0085] Step 313: Control the first charging connection confirmation interface to connect to the first hardwire output terminal of the HIL test platform, and control the control guidance interface to connect to the hardwire input terminal of the HIL test platform;
[0086] Step 314: Based on the simulated output resistance value, simulate the output resistance value of the first charging connection confirmation interface using the HIL test platform;
[0087] Step 315: Perform AC discharge simulation using the HIL test platform to test the discharge function of the electric vehicle.
[0088] In the above specific embodiments, after connecting and configuring the HIL test platform and charge / discharge controller in the simulated AC discharge, it is necessary to identify the key simulation objects of the HIL test platform. Specifically, the key simulation objects can be distinguished according to the different discharge modes and load types of the electric vehicle. Based on the discharge mode and load type of the electric vehicle, the AC discharge methods can be divided into the following types, as shown in Table 3:
[0089] Table 3
[0090] Smart Load Non-smart load V2L mode Type 1 Type 2 V2V mode Type 3 not applicable
[0091] V2L mode utilizes the OBC (On-Board Charger) to discharge power from the battery to other loads, converting the battery's direct current (DC) into alternating current (AC). V2V mode is a discharge mode where the receiving device is also a pure electric vehicle. Intelligent loads can be electronic devices on the electric vehicle used for driver assistance, vehicle networking, in-vehicle and out-of-vehicle entertainment, and road and vehicle condition sensing. Non-intelligent loads can be loads that are not applicable in V2V mode, loads that can exist independently of the vehicle system, including external electronic devices.
[0092] In the above steps, after confirming the actual discharge mode and load type of the electric vehicle, the specific types of simulations that the HIL test platform can perform can be determined, including Type 1, Type 2, and Type 3, each representing a different simulated output resistance value. Different output resistance values are selected for the first charging confirmation connection interface based on the confirmed types to simulate and test the electric vehicle's discharge function. Subsequently, the charge / discharge controller prepares for discharge. After preparation, the HIL test platform performs simulation based on the previously confirmed output resistance values to detect the load voltage at the simulation point and simultaneously monitor the output signal of the control guide interface. It should also be noted that before performing AC discharge simulation, the HIL test platform needs to complete a boot-up process with the charge / discharge controller. The HIL test platform completes the boot-up by receiving the AC discharge command from the charge / discharge controller.
[0093] Optionally, the DC charging simulation performed using the HIL test platform, or the DC discharging simulation performed using the HIL test platform, includes:
[0094] Guide the HIL test platform to establish a handshake with the charge / discharge controller;
[0095] When the HIL test platform and the charge / discharge controller complete the handshake, the voltage signal simulated by the HIL test platform is transmitted to the charge / discharge controller, and the second instruction issued by the charge / discharge controller after receiving the voltage signal is obtained.
[0096] The second instruction is sent to the HIL test platform to perform DC charging simulation or DC discharging simulation.
[0097] Please refer to the following for details. Figure 6 , Figure 6 yes Figure 1 The flowchart of DC charging simulation test is shown in this embodiment. The specific process of performing DC charging simulation test in this application includes the following steps:
[0098] Step 301: Determine the operating mode of the electric vehicle under the target operating condition;
[0099] Step 321: When the electric vehicle is operating in the second working mode under the charging state, control the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller to connect to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform, respectively.
[0100] Step 322: Guide the HIL test platform to establish a handshake with the charge / discharge controller;
[0101] Step 323: After the HIL test platform and the charge / discharge controller have completed their handshake, the voltage signal simulated by the HIL test platform is transmitted to the charge / discharge controller, and the second instruction issued by the charge / discharge controller after receiving the voltage signal is obtained.
[0102] Step 324: Send the second instruction to the HIL test platform to perform DC charging simulation.
[0103] See Figure 7 , Figure 7 yes Figure 1 The flowchart of DC discharge simulation test in this application embodiment includes the following steps:
[0104] Step 301: Determine the operating mode of the electric vehicle under the target operating condition;
[0105] Step 331: When the electric vehicle is operating in the second working mode under the discharge state, control the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller to connect to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform, respectively.
[0106] Step 332: Guide the HIL test platform to establish a handshake with the charge / discharge controller;
[0107] Step 333: After the HIL test platform and the charge / discharge controller have completed their handshake, the voltage signal simulated by the HIL test platform is transmitted to the charge / discharge controller, and the second instruction issued by the charge / discharge controller after receiving the voltage signal is obtained.
[0108] Step 334: Send the second instruction to the HIL test platform to perform DC discharge simulation.
[0109] It must be noted that after determining whether the electric vehicle's charging method is DC charging or DC discharging, it is necessary to simulate the DC charging connection method, communication handshake process, power-on guidance of the off-board charger, and charging energy exchange to test the DC discharging function. Specifically, the simulation of the DC charging connection method mainly confirms different simulated connection states based on different DC charging types. The main DC charging types adopted by new energy electric vehicles include V2L, V2V, and Vehicle-to-Grid (V2G) technology. The HIL test platform can determine the focus of simulation based on different types. For example, when the DC charging type adopted by the electric vehicle is V2L, the voltage changes of the first charging connection confirmation interface CC1 and the second charging connection confirmation interface CC2 can be simulated to simulate the connection state between the plug and the socket; when the DC charging type adopted by the electric vehicle is V2V, the voltage changes of the first charging connection confirmation interface CC1 and the second charging connection confirmation interface CC2 can also be simulated to simulate the connection state between the plug and the socket; when the DC charging type adopted by the electric vehicle is V2G, the first charging connection confirmation interface CC1 can be simulated in particular to simulate the connection state between the plug and the socket.
[0110] In the specific steps of performing DC charging and discharging simulations described above, after completing the configuration connection between the HIL test platform and the charge / discharge controller, a communication handshake process between the charge / discharge controller and the HIL test platform is also required. Specifically, the HIL test platform can complete the handshake with the charge / discharge controller via CAN communication. Subsequently, after the HIL test platform and the charge / discharge controller have completed the handshake, the voltage signal simulated by the HIL test platform is transmitted to the charge / discharge controller, thus completing the boot-up process for the entire DC charging and DC discharging simulation. After completing the boot-up, the HIL test platform can perform DC charging or DC discharging simulations to test the DC charging and DC discharging functions of the electric vehicle.
[0111] Optionally, the step of performing AC charging simulation through the HIL test platform to test the charging function of the electric vehicle includes:
[0112] Obtain the first current of the first charging connection confirmation interface and the first voltage of the control guidance interface, and obtain the first charging power of the second hard-wired output terminal;
[0113] Compare the first current, the first voltage, and the first charging power;
[0114] Under the condition that the first current, the first voltage and the first charging power are matched, it is determined that the AC charging function of the electric vehicle is normal when AC charging simulation is performed on the HIL test platform;
[0115] or,
[0116] The step of performing AC discharge simulation using the HIL test platform to test the discharge function of the electric vehicle includes:
[0117] Obtain the second current of the first charging connection confirmation interface and the second voltage of the control guidance interface, and obtain the first discharge power of the second hard-wired output terminal;
[0118] Compare the second current and the second voltage with the first discharge power;
[0119] When the second current, the second voltage, and the first discharge power are matched, it is determined that the AC discharge function of the electric vehicle is normal under AC discharge simulation on the HIL test platform.
[0120] In another specific embodiment of this application, the AC charging capability test of an electric vehicle during AC charging simulation on the HIL test platform can be verified by monitoring whether the charging power during the charging process matches the maximum current and charging voltage during the charging process. Similarly, the AC discharge capability test of an electric vehicle during AC discharge simulation can also be verified by monitoring whether the discharge power during the discharge process matches the maximum current and charging voltage during the discharge process.
[0121] Furthermore, during the aforementioned AC charging simulation, charging can be interrupted by changing the connection state of the charging connection confirmation interface and the pulse width modulation (PWM) voltage of the control pilot port. The function of the charge / discharge controller can be detected through its response during this termination process. Similarly, during the aforementioned AC discharging process, external discharge can be interrupted by changing the connection state of the charging connection confirmation interface during the simulation. This can be detected based on the response of the charge / discharge controller. Finally, after charging reaches the termination condition or is fully charged, or after discharging reaches the termination condition or is fully discharged, the normality of the AC charging or AC discharging function can be determined by monitoring the response of the charge / discharge controller.
[0122] Optionally, the simulation test system includes an intelligent simulation load, and the DC discharge simulation performed through the HIL test platform to test the discharge function of the electric vehicle includes:
[0123] Obtain the first discharge power at the second hard-wired output terminal and the second discharge power at the third hard-wired output terminal;
[0124] Obtain the power demand of the intelligent simulated load received by the charge / discharge controller;
[0125] Compare the first discharge power, the second discharge power, and the required power;
[0126] When the first discharge power, the second discharge power, and the required power are matched, it is determined that the DC discharge function of the electric vehicle is normal when DC discharge simulation is performed on the HIL test platform.
[0127] Please refer to Figure 8 The aforementioned simulation test system includes an intelligent simulation load 240, which operates during simulation testing under discharge conditions. The intelligent simulation load 240 can receive the electrical discharge generated during DC discharge simulation by the HIL test platform. The DC discharge detection function can determine the normality of the DC discharge function by comparing the first discharge power at the second hard-wire output terminal, the second discharge power at the third hard-wire output terminal, and the power demand of the intelligent simulation load, based on whether the comparison and matching results match.
[0128] Furthermore, during DC charging, the power output during charging can be compared with the power required by the charge / discharge controller. If they match, the normal operation of the DC charging function can be verified. Finally, after charging reaches the termination condition or is fully charged, or after discharging reaches the termination condition or is fully discharged, the response of the charge / discharge controller can also be monitored to determine if the DC charging or discharging function is functioning correctly.
[0129] See Figure 9 , Figure 9 yes Figure 1 The flowchart for simulated charge-discharge testing in the first working mode includes the following steps:
[0130] Step 401: Determine that the electric vehicle is operating in the first operating mode;
[0131] Step 402: Determine whether the target state of the electric vehicle is in an AC state;
[0132] Step 403: When the target state of the electric vehicle is in AC state, obtain the connection method and charging mode of the electric vehicle for AC charging.
[0133] Step 404: Determine the target simulation type for AC charging simulation on the HIL test platform;
[0134] Step 405: Connect the first charging connection confirmation interface of the charge / discharge controller to the first hardwire output terminal of the HIL test platform, and connect the control guidance interface of the charge / discharge controller to the second hardwire output terminal of the HIL test platform.
[0135] Step 406: Simulate the target simulation type based on the HIL test platform to obtain the output voltage of the control and guidance interface;
[0136] Step 407: Transmit the output voltage to the charge / discharge controller and obtain the first charging command issued by the charge / discharge controller after receiving the output voltage;
[0137] Step 408: Send the first charging command to the HIL test platform to perform AC charging simulation;
[0138] Step 409: When the target state of the electric vehicle is in DC state, control the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller to connect to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform, respectively.
[0139] Step 410: Guide the HIL test platform to establish a handshake with the charge / discharge controller;
[0140] Step 411: Transmit the voltage signal simulated by the HIL test platform to the charge-discharge controller, and obtain the second instruction issued by the charge-discharge controller after receiving the voltage signal;
[0141] Step 412: Send the second instruction to the HIL test platform to perform DC charging simulation.
[0142] In one embodiment of the electric vehicle charging and discharging simulation test provided in this application, which uses a first working mode, the simulation includes two parts: AC charging simulation and DC charging simulation. The simulation of the electric vehicle's charging function is achieved by using different methods employed by the electric vehicle. The specific process and beneficial effects of this embodiment can be found in the foregoing embodiments, and will not be repeated here.
[0143] See Figure 10 , Figure 10 yes Figure 1 The flowchart for simulated charge-discharge testing in the second working mode includes the following steps:
[0144] Step 501: Determine that the electric vehicle is operating in the second working mode;
[0145] Step 502: Determine whether the target state of the electric vehicle is in an AC state;
[0146] Step 503: When the target state of the electric vehicle is in AC state, obtain the discharge mode and load type of the electric vehicle;
[0147] Step 504: Based on the discharge mode and the load type, determine the analog output resistance value corresponding to the first charging connection confirmation interface;
[0148] Step 505: Based on the simulated output resistance value, simulate the output resistance value of the first charging connection confirmation interface using the HIL test platform;
[0149] Step 507: Transmit the output voltage to the charge / discharge controller and obtain the first charging command issued by the charge / discharge controller after receiving the output voltage;
[0150] Step 508: Perform AC discharge simulation using the HIL test platform to test the discharge function of the electric vehicle;
[0151] Step 509: When the target state of the electric vehicle is in DC state, control the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller to connect to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform, respectively.
[0152] Step 510: Guide the HIL test platform to establish a handshake with the charge / discharge controller;
[0153] Step 511: Transmit the voltage signal simulated by the HIL test platform to the charge-discharge controller, and obtain the second instruction issued by the charge-discharge controller after receiving the voltage signal;
[0154] Step 512: Send the second instruction to the HIL test platform to perform DC discharge simulation.
[0155] In one embodiment of electric vehicle charging and discharging simulation testing provided in this application, the method includes two parts: AC discharge simulation and DC discharge simulation. The simulation of the electric vehicle's discharge function is achieved by observing different methods employed by the vehicle. This embodiment first determines the normality of the charging control function, and then performs a discharge function simulation to determine the normality of the discharge function, thus verifying the charging and discharging function of the electric vehicle. This can be achieved through a hardwired connection between the HIL test platform and the charge / discharge controller, which is automatically configured. In this way, this embodiment enables automated testing of the electric vehicle's charging and discharging function, effectively improving the testing efficiency.
[0156] Please see Figure 11 This application also provides an electric vehicle charging and discharging simulation test device, applied to a charging and discharging simulation test system. The simulation test system includes a hardware-in-the-loop (HIL) test platform and a charging and discharging controller. The simulation test device includes:
[0157] The operating mode determination module is used to determine the operating mode of an electric vehicle under a target operating state, wherein the target operating state is a charging state or a discharging state, and the operating mode includes a first operating mode and a second operating mode, wherein the first operating mode is an AC mode and the second operating mode is a DC mode;
[0158] An AC charging simulation test module is used to control the first charging connection confirmation interface of the charge and discharge controller to connect to the first hard-wired output terminal of the HIL test platform when the electric vehicle is operating in the charging state in the first working mode, and to control the control guidance interface of the charge and discharge controller to connect to the second hard-wired output terminal of the HIL test platform, so as to perform AC charging simulation through the HIL test platform to test the charging function of the electric vehicle.
[0159] An AC discharge simulation test module is used to control the first charging connection confirmation interface to connect to the first hard-wired output terminal of the HIL test platform and control the control guidance interface to connect to the hard-wired input terminal of the HIL test platform when the electric vehicle is operating in the first working mode under the discharge state. The module performs AC discharge simulation through the HIL test platform to test the discharge function of the electric vehicle.
[0160] The DC charging simulation test module is used to control the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller to be connected to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform respectively when the electric vehicle is working in the second working mode under the charging state, and to perform DC charging simulation through the HIL test platform to test the charging function of the electric vehicle.
[0161] The DC discharge simulation test module is used to control the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller to connect to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform respectively when the electric vehicle is operating in the second working mode under the discharge state, and to perform DC discharge simulation through the HIL test platform to test the discharge function of the electric vehicle.
[0162] Optionally, the AC charging simulation test module is used for:
[0163] When the electric vehicle is operating in the first working mode during the charging state, the connection method and charging mode for AC charging of the electric vehicle are obtained;
[0164] Based on the connection method and the charging mode, the target simulation type for AC charging simulation of the HIL test platform is determined, wherein the target simulation type is one of simulating the output voltage of the control guidance interface, simulating the output voltage of the control guidance interface, and simulating the output resistance value of the first charging connection confirmation interface;
[0165] The system controls the first charging connection confirmation interface to connect to the first hardwire output terminal of the HIL test platform, and controls the control guidance interface to connect to the hardwire input terminal of the HIL test platform.
[0166] Based on the target simulation type, AC charging simulation is performed using the HIL test platform.
[0167] Optionally, the AC charging simulation test module is used for:
[0168] Based on the HIL test platform, the target simulation type is simulated to obtain the output voltage of the control and guidance interface;
[0169] The output voltage is transmitted to the charge / discharge controller, and the first charging command issued by the charge / discharge controller after receiving the output voltage is obtained;
[0170] The first charging command is sent to the HIL test platform for AC charging simulation.
[0171] Optionally, the AC discharge simulation test module is also used for:
[0172] When the electric vehicle is AC discharged, the discharge mode and load type of the electric vehicle are obtained;
[0173] Based on the discharge mode and the load type, determine the analog output resistance value corresponding to the first charging connection confirmation interface;
[0174] The system controls the first charging connection confirmation interface to connect to the first hardwire output terminal of the HIL test platform, and controls the control guidance interface to connect to the hardwire input terminal of the HIL test platform.
[0175] Based on the simulated output resistance value, the output resistance value of the first charging connection confirmation interface is simulated using the HIL test platform.
[0176] Optionally, the DC charging simulation test module is used for, or the DC discharging simulation test module is used for:
[0177] Guide the HIL test platform to establish a handshake with the charge / discharge controller;
[0178] When the HIL test platform and the charge / discharge controller complete the handshake, the voltage signal simulated by the HIL test platform is transmitted to the charge / discharge controller, and the second instruction issued by the charge / discharge controller after receiving the voltage signal is obtained.
[0179] The second instruction is sent to the HIL test platform to perform DC charging simulation or DC discharging simulation.
[0180] Optionally, the AC charging test module is used for:
[0181] The AC charging simulation performed using the HIL test platform to test the charging function of the electric vehicle includes:
[0182] Obtain the first current of the first charging connection confirmation interface and the first voltage of the control guidance interface, and obtain the first charging power of the second hard-wired output terminal;
[0183] Compare the first current, the first voltage, and the first charging power;
[0184] Under the condition that the first current, the first voltage and the first charging power are matched, it is determined that the AC charging function of the electric vehicle is normal when AC charging simulation is performed on the HIL test platform;
[0185] Alternatively, the AC discharge test module is used for:
[0186] Obtain the second current of the first charging connection confirmation interface and the second voltage of the control guidance interface, and obtain the first discharge power of the second hard-wired output terminal;
[0187] Compare the second current, the second voltage, and the first discharge power;
[0188] When the second current, the second voltage, and the first discharge power are matched, it is determined that the AC discharge function of the electric vehicle is normal under AC discharge simulation on the HIL test platform.
[0189] Optionally, the simulation test system includes an intelligent simulation load, and the AC discharge simulation test module is used for:
[0190] Obtain the first discharge power at the second hard-wired output terminal and the second discharge power at the third hard-wired output terminal;
[0191] Obtain the power demand of the intelligent simulated load received by the charge / discharge controller;
[0192] Compare the first discharge power, the second discharge power, and the required power;
[0193] When the first discharge power, the second discharge power, and the required power are matched, it is determined that the DC discharge function of the electric vehicle is normal when DC discharge simulation is performed on the HIL test platform.
[0194] The electric vehicle charging and discharging simulation test device in this application embodiment can realize the various processes in the above-mentioned electric vehicle charging and discharging simulation test method embodiment, and can achieve the beneficial effects in the above-mentioned embodiments. To avoid repetition, it will not be described again here.
[0195] Please refer to the following for details. Figure 12 This application also provides an electronic device 400, including a processor 401, a memory 402, and a computer program stored in the memory 402 and executable on the processor 401. When the computer program is executed by the processor 401, it implements the various processes of the above-described embodiment of the electric vehicle charging and discharging simulation test method and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0196] This application also provides a computer-readable storage medium storing a computer program. When executed by a processor, this computer program implements the various processes of the above-described embodiment of the electric vehicle charging and discharging simulation test method, achieving the same technical effects. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0197] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of the invention, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the invention. The sequence numbers of the above-described embodiments of the invention are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0198] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0199] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0200] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0201] The above description is merely an embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for simulating the charging and discharging of an electric vehicle, applied to a charging and discharging simulation testing system, the simulation testing system comprising a hardware-in-the-loop (HIL) test platform and a charging and discharging controller, characterized in that, The method includes: The operating mode of an electric vehicle under a target operating state is determined, wherein the target operating state is a charging state or a discharging state, and the operating mode includes a first operating mode and a second operating mode, wherein the first operating mode is an AC mode and the second operating mode is a DC mode; When the electric vehicle is operating in the first working mode during the charging state, the first charging connection confirmation interface of the charge and discharge controller is connected to the first hard-wired output terminal of the HIL test platform, and the control guidance interface of the charge and discharge controller is connected to the second hard-wired output terminal of the HIL test platform. AC charging simulation is performed through the HIL test platform to test the charging function of the electric vehicle. When the electric vehicle is operating in the first working mode under the discharge state, the first charging connection confirmation interface is controlled to connect to the first hard-wired output terminal of the HIL test platform, and the control guidance interface is controlled to connect to the hard-wired input terminal of the HIL test platform. AC discharge simulation is performed through the HIL test platform to test the discharge function of the electric vehicle. When the electric vehicle operates in the second working mode during the charging state, the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller are respectively connected to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform, and DC charging simulation is performed through the HIL test platform to test the charging function of the electric vehicle. When the electric vehicle operates in the second working mode under the discharge state, the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller are respectively connected to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform, and DC discharge simulation is performed through the HIL test platform to test the discharge function of the electric vehicle.
2. The method according to claim 1, characterized in that, When the electric vehicle operates in the first working mode during the discharge state, the system controls the first charging connection confirmation interface to connect to the first hardwired output terminal of the HIL test platform, and controls the control guidance interface to connect to the hardwired input terminal of the HIL test platform, performing AC charging simulation through the HIL test platform, including: When the electric vehicle is operating in the first working mode during the charging state, the connection method and charging mode for AC charging of the electric vehicle are obtained; Based on the connection method and the charging mode, the target simulation type for AC charging simulation of the HIL test platform is determined, wherein the target simulation type is one of simulating the output voltage of the control guidance interface, simulating the output voltage of the control guidance interface, and simulating the output resistance value of the first charging connection confirmation interface; The system controls the first charging connection confirmation interface to connect to the first hardwire output terminal of the HIL test platform, and controls the control guidance interface to connect to the hardwire input terminal of the HIL test platform. Based on the target simulation type, AC charging simulation is performed using the HIL test platform.
3. The method according to claim 2, characterized in that, The AC charging simulation based on the target simulation type, performed through the HIL test platform, includes: Based on the HIL test platform, the target simulation type is simulated to obtain the output voltage of the control and guidance interface; The output voltage is transmitted to the charge / discharge controller, and the first charging command issued by the charge / discharge controller after receiving the output voltage is obtained; The first charging command is sent to the HIL test platform for AC charging simulation.
4. The method according to claim 1, characterized in that, When the electric vehicle operates in the first operating mode during the discharge state, the method further includes controlling the first charging connection confirmation interface to connect to the first hardwire output terminal of the HIL test platform, and controlling the control guidance interface to connect to the hardwire input terminal of the HIL test platform. When the electric vehicle is AC discharged, the discharge mode and load type of the electric vehicle are obtained; Based on the discharge mode and the load type, determine the analog output resistance value corresponding to the first charging connection confirmation interface; The system controls the first charging connection confirmation interface to connect to the first hardwire output terminal of the HIL test platform, and controls the control guidance interface to connect to the hardwire input terminal of the HIL test platform. Based on the simulated output resistance value, the output resistance value of the first charging connection confirmation interface is simulated using the HIL test platform.
5. The method according to claim 1, characterized in that, The DC charging simulation performed using the HIL test platform, or the DC discharging simulation performed using the HIL test platform, includes: Guide the HIL test platform to establish a handshake with the charge / discharge controller; When the HIL test platform and the charge / discharge controller complete the handshake, the voltage signal simulated by the HIL test platform is transmitted to the charge / discharge controller, and the second instruction issued by the charge / discharge controller after receiving the voltage signal is obtained. The second instruction is sent to the HIL test platform to perform DC charging simulation or DC discharging simulation.
6. The method according to claim 1, characterized in that, The AC charging simulation performed using the HIL test platform to test the charging function of the electric vehicle includes: Obtain the first current of the first charging connection confirmation interface and the first voltage of the control guidance interface, and obtain the first charging power of the second hard-wired output terminal; Compare the first current, the first voltage, and the first charging power; Under the condition that the first current, the first voltage and the first charging power are matched, it is determined that the AC charging function of the electric vehicle is normal when AC charging simulation is performed on the HIL test platform; or, The step of performing AC discharge simulation using the HIL test platform to test the discharge function of the electric vehicle includes: Obtain the second current of the first charging connection confirmation interface and the second voltage of the control guidance interface, and obtain the first discharge power of the second hard-wired output terminal; Compare the second current, the second voltage, and the first discharge power; When the second current, the second voltage, and the first discharge power are matched, it is determined that the AC discharge function of the electric vehicle is normal under AC discharge simulation on the HIL test platform.
7. The method according to claim 1, characterized in that, The simulation test system includes an intelligent simulation load. The DC discharge simulation performed through the HIL test platform tests the discharge function of the electric vehicle, including: Obtain the first discharge power at the second hard-wired output terminal and the second discharge power at the third hard-wired output terminal; Obtain the power demand of the intelligent simulated load received by the charge / discharge controller; Compare the first discharge power, the second discharge power, and the required power; When the first discharge power, the second discharge power, and the required power are matched, it is determined that the DC discharge function of the electric vehicle is normal when DC discharge simulation is performed on the HIL test platform.
8. An electric vehicle charging and discharging simulation test device, applied to a charging and discharging simulation test system, the simulation test system comprising a hardware-in-the-loop (HIL) test platform and a charging and discharging controller, characterized in that, The device includes: The operating mode determination module is used to determine the operating mode of an electric vehicle under a target operating state, wherein the target operating state is a charging state or a discharging state, and the operating mode includes a first operating mode and a second operating mode, wherein the first operating mode is an AC mode and the second operating mode is a DC mode; An AC charging simulation test module is used to control the first charging connection confirmation interface of the charge and discharge controller to connect to the first hard-wired output terminal of the HIL test platform when the electric vehicle is operating in the charging state in the first working mode, and to control the control guidance interface of the charge and discharge controller to connect to the second hard-wired output terminal of the HIL test platform, so as to perform AC charging simulation through the HIL test platform to test the charging function of the electric vehicle. An AC discharge simulation test module is used to control the first charging connection confirmation interface to connect to the first hard-wired output terminal of the HIL test platform and control the control guidance interface to connect to the hard-wired input terminal of the HIL test platform when the electric vehicle is operating in the first working mode under the discharge state. The module performs AC discharge simulation through the HIL test platform to test the discharge function of the electric vehicle. The DC charging simulation test module is used to control the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller to be connected to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform respectively when the electric vehicle is working in the second working mode under the charging state, and to perform DC charging simulation through the HIL test platform to test the charging function of the electric vehicle. The DC discharge simulation test module is used to control the second charging connection confirmation interface and the third charging connection confirmation interface of the charge and discharge controller to connect to the second hard-wired output terminal and the third hard-wired output terminal of the HIL test platform respectively when the electric vehicle is operating in the second working mode under the discharge state, and to perform DC discharge simulation through the HIL test platform to test the discharge function of the electric vehicle.
9. An electronic device, characterized in that, include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the electric vehicle charging and discharging simulation test method as described in any one of claims 1 to 7.
10. A readable storage medium, characterized in that, The readable storage medium stores a program that, when executed by a processor, implements the steps of the electric vehicle charging and discharging simulation test method as described in any one of claims 1 to 7.