Vehicle static power consumption test method and device, vehicle, equipment and storage medium
By switching the power mode in sleep mode and monitoring the vehicle battery current data, the problems of low efficiency and poor accuracy of the static power consumption test of the entire vehicle are solved, and efficient detection of the static power consumption of the vehicle is achieved, ensuring that the vehicle is parked for a long time Can start normally.
Patent Information
- Application Number
- CN202411260895.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-27
AI Technical Summary
In the context of complex electronic and electrical systems of the whole vehicle, how to effectively test and control the static power consumption of a vehicle, especially when the vehicle can still start normally after a long period of time, the existing technology has static power consumption exceeding the standard and testing efficiency. Low problem.
A vehicle static power consumption testing method and device are provided. By switching power mode in sleep mode, the current data of the vehicle battery is monitored in real time, reflecting the abnormal static power consumption of the whole vehicle, and improving testing efficiency and accuracy.
It realizes automated testing of the static power consumption of the entire electric vehicle, accurately detects the static power consumption of electronic equipment under different power modes, improves the testing efficiency and accuracy, and ensures that the vehicle can start normally after a long period of parking.
Smart Images

Figure CN119199315A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and more specifically, to a vehicle static power consumption testing method, device, vehicle, equipment and storage medium. Background Art
[0002] HIL (Hardware in the Loop) is an important verification method for system integration testing in the development of vehicle control strategy processes. The HIL system uses a real-time processor to run a simulation model to simulate the operating state of the controlled object - the electronic control unit. The HIL system is connected to the electronic control unit (ECU) under test through an I / O interface to perform comprehensive and systematic testing on the ECU under test.
[0003] As the vehicle's electronic and electrical systems become increasingly complex, how to control the vehicle's static power consumption to meet the requirement of being able to start normally after being parked for a long time has become a major problem for automotive electrical developers. At the same time, during the vehicle's electronic and electrical development process, the problem of excessive static power consumption will be encountered. For some low-probability occasional problems, test engineers usually need a lot of time to test; and during the test process, the static power consumption of some electronic equipment in the vehicle is often ignored, resulting in a deviation between the static power consumption of the test and the static power consumption in actual application. Summary of the invention
[0004] The present application provides a vehicle static power consumption test method, apparatus, vehicle, equipment and storage medium. During the execution of the test case, the current power mode is switched to the corresponding target power mode according to the test action. In the sleep mode, the static power consumption of the vehicle battery can be tested more accurately. The current data of the vehicle battery is obtained in the sleep mode, which can reflect the abnormal static power consumption of the whole vehicle.
[0005] In a first aspect, a vehicle static power consumption test method is provided, including:
[0006] In response to receiving an instruction to perform a test;
[0007] Detecting a current power level of a vehicle battery, and in response to the current power level being greater than a first threshold, acquiring a test case, the test case including a plurality of test actions;
[0008] Execute the test action according to the step sequence of the test case, obtain the target power mode corresponding to the execution of the current test action, and update the current power mode according to the target power mode;
[0009] The current power mode is monitored in real time to determine whether the current power mode is a sleep mode, and when the current power mode is a sleep mode, the static power consumption of the vehicle battery is obtained.
[0010] In the second aspect, a vehicle static power consumption test device is provided, including a control box and a current acquisition device for receiving the execution test instruction, the current acquisition device is respectively connected to the control box and the vehicle battery; the vehicle is provided with an on-board automatic diagnostic system interface, a whole vehicle network wiring harness adapter interface and a central controller hard-wire interface; the on-board automatic diagnostic system interface, the whole vehicle network wiring harness adapter interface, and the central controller hard-wire interface are respectively connected to the control box, the central controller of the vehicle integrates a vehicle mode management system and an electronic control unit, and the central controller is communicatively connected to the vehicle's on-board automatic diagnostic system.
[0011] In a third aspect, a vehicle is provided, comprising: the vehicle static power consumption testing device provided in the second aspect.
[0012] In a fourth aspect, an electronic device is provided, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores computer instructions executable by the at least one processor, and the computer instructions are executed by the at least one processor so that the at least one processor can execute the method in the first aspect or any possible implementation of the first aspect.
[0013] According to a fifth aspect, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed, it is used to execute the method in the first aspect or any possible implementation of the first aspect.
[0014] The vehicle static power consumption test method provided above realizes the automation of the static power consumption test of the whole vehicle of the electric vehicle. During the execution of the test case, the current power mode is switched to the corresponding target power mode according to the specific test action. The power mode changes accordingly with the change of the test action, which is more in line with simulating the real operating environment of the vehicle during the execution of the test case. The switching of the power mode is accompanied by the startup of other electronic devices. There are differences in the static power consumption of different electronic devices under different power modes. Therefore, in the vehicle sleep mode, the current data of the vehicle battery is tested, and the static power consumption of the electronic equipment started in the corresponding power mode during the execution of the test case can be detected together, which can reflect the abnormality of the static power consumption of the whole vehicle and improve the test efficiency and accuracy of the static power consumption of the whole vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A schematic flow chart of a vehicle static power consumption test method provided in an embodiment of the present application;
[0016] Figure 2 A schematic block diagram of an example of test software and test hardware provided in an embodiment of the present application;
[0017] Figure 3 A schematic block diagram of a vehicle static power consumption test device provided in an embodiment of the present application;
[0018] Figure 4 A schematic diagram of a door switch state and a remote control key controlling a relay provided in an embodiment of the present application;
[0019] Figure 5 A schematic diagram of a switching circuit of a central controller hard-wired interface provided in an embodiment of the present application;
[0020] Figure 6 A schematic block diagram of an example of automated testing software provided in an embodiment of the present application;
[0021] Figure 7 A flowchart of the execution steps of a test case provided in an embodiment of the present application;
[0022] Figure 8 A schematic flow chart of a power mode switching logic of a vehicle provided in an embodiment of the present application;
[0023] Fig. 9 This is a diagram of the internal structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0025] In one embodiment, Figure 1-3 As shown, a vehicle static power consumption test method is provided, which is applied to a vehicle as an example for explanation, including:
[0026] Step 20, in response to receiving an instruction to perform a test;
[0027] The automated testing software sends a test instruction, and the control box receives and executes the test instruction.
[0028] In some embodiments, before step 20, the method further includes step 10 of setting up a test environment.
[0029] Before setting up the test environment, collect vehicle configuration information, database files, and software version information according to the requirements of the current test project; the above backup information is stored in the test configuration to prepare for the input information of the subsequent automated test software.
[0030] Building a test environment includes obtaining backup information and entering it into automated test software, which automatically generates test scripts; and physically connecting a vehicle static power consumption test device to the vehicle.
[0031] In some embodiments, the above backup information is entered into the automated testing software, and the test script is automatically generated by the automated testing software. Specifically, Figure 2 A schematic block diagram of an example of test software and test hardware provided in an embodiment of the present application; Figure 6 A schematic block diagram of an example of automated testing software provided in an embodiment of the present application, such as Figure 2 , Figure 6 As shown in the figure, the way in which the automated testing software generates test scripts: the test script can be a C-based automotive automated script programming language (CAPL) language; use the script automation writing software (VtestStudio) to design test cases, design basic functions (such as the system initialization function systeminit) and write diagnostic scripts, which mainly include the transport layer protocol part (Doip-TP) and the unified diagnostic service (UDS) layer in the IP-based diagnostic transmission protocol; Doip-TP is mainly a Doip protocol encapsulation on a socket based on Ethernet data (ETH), and the UDS layer is mainly an encapsulation of UDS.
[0032] Test scripts are tools for writing test cases. Test scripts are the basis for automated execution of test cases. Test scripts need to be written based on the inputs, operations, and expected outputs defined in the test cases. Through the vehicle network data acquisition simulation software (CANoe) project, the necessary vehicle bus signals are acquired in real time, and the necessary vehicle bus signals or LIN signals are simulated to implement the test cases in the test scripts. The bus data during the test process is automatically saved, including CAN / CANFD / LIN / FlexRay / ETH data.
[0033] For example, the CANoe project also needs to diagnose the electronic control unit (ECU), requiring the CANoe project to support the Doip protocol and diagnose different ECUs of CAN / CANFD / LIN / Ethernet / FlexRay data through the gateway. The automated test software transmits the simulation data corresponding to the test case to the network interface device of the control box through node simulation, and the simulation data is transmitted to the ECU through channel switching. The ECU receives the simulation data, parses the simulation data and executes it, outputs the execution result, and feeds the execution result back to the automated test software through the control box. The diagnostic service of the automated test software diagnoses the execution result of the ECU to determine whether the response and control logic of the ECU are correct.
[0034] In some embodiments, the vehicle static power consumption test device is physically connected to the vehicle, specifically, Figure 3 As shown, the vehicle static power consumption test device includes a control box and a current acquisition device. The control box can be a vehicle external device or a vehicle terminal device. The vehicle is provided with an on-board automatic diagnostic system interface, a vehicle network harness adapter interface and a central controller hard-wire interface. The on-board automatic diagnostic system (OBD) interface, the vehicle network harness adapter (ETC) interface, and the central controller hard-wire interface are respectively connected to the control box, and the vehicle's central controller integrates a vehicle mode management system (VMM) and an ECU.
[0035] The vehicle static power consumption test device also includes a remote control key and a power supply module; the current acquisition device, the remote control key, and the power supply module are connected to the control box through adapter cables. The current acquisition device is used to collect the current data of the vehicle battery and transmit the current data to the control box; the remote control key is used to connect or disconnect the power supply of the vehicle battery, simulating that the key is inside the vehicle or away from the vehicle; the power supply module is used to provide power for each module inside the control box. The on-board automatic diagnostic system is connected to the central controller for communication, thereby realizing the communication between the on-board automatic diagnostic system and the ECU. The ETC interface is used to transmit simulation data from the control box to the ECU, and to feed back the execution results of the ECU to the control box. Specifically, the simulation data includes simulation FR (Flaxray) network data, CAN network data, and LIN network data. The control box has the function of controlling the door status switch through relay resources, which is used to simulate the door opening and closing status of the vehicle. The control box is connected to the hard-wire interface of the central controller, thereby realizing the transmission of hard-wire signals between the control box and the central controller.
[0036] Step 30, detecting the current power level of the vehicle battery, and in response to the current power level being greater than a first threshold, obtaining a test case, the test case including a plurality of test actions;
[0037] Among them, the current power of the vehicle battery is detected. In response to the current power being greater than the first threshold, the vehicle power detection module monitors the vehicle battery in real time and obtains the power data of the vehicle battery. The first threshold is 85%, which is set according to the vehicle model configuration information. If the current power is not greater than the first threshold, the protection mechanism of the vehicle battery will allow it to automatically recharge, and the static power consumption test of the whole vehicle cannot be completed.
[0038] Step 40, executing the test action according to the step sequence of the test case, obtaining the target power mode corresponding to the currently executed test action, and updating the current power mode according to the target power mode;
[0039] Among them, the test action can be understood as the action of opening and closing the car door, and the action of turning the key on and off the power supply. It can be a test action under a simulated state, simulating the state of the vehicle in a real operating environment. The test action is not limited to the above-mentioned opening and closing of the car door or turning the key on and off the power supply.
[0040] Specifically, Figure 4 This is a schematic diagram of the principle of a door switch state and a remote control key controlling a relay provided in an embodiment of the present application. The specific test action is as follows: Figure 4 To provide a schematic illustration, the control relay uses a busbar, and the busbars of the door control board in the control box are KL30 and KL31; the OBD can be activated after ActiveLine contacts KL30, and the vehicle mode or power mode and other related diagnostic operations can be switched as needed after OBD is activated. The switches of the door switch status (Door LF Switch, Door RF Switch, Door LR Switch, Door RR Switch) can selectively contact KL31, and the high and low levels of the board output to control the relay opening and closing can be used to simulate the door opening or closing state; the remote control key simulates the unlocking and locking button control relay, and the remote control key is controlled to be placed inside the vehicle during the test, and the key is connected to or disconnected from the vehicle battery to simulate being in the vehicle or away from the vehicle.
[0041] Exemplarily, when the driver's door of the vehicle is opened, the current power mode is correspondingly switched to the comfort mode, and other corresponding electronic devices in the comfort mode, such as the on-board functional modules, start to run. When the whole vehicle enters the sleep mode, the on-board functional modules have static power consumption; according to the test action, the current power mode is switched to the corresponding target power mode, which will affect the static power consumption of the whole vehicle; in another embodiment, when the tailgate of the vehicle is opened, the current power mode is correspondingly switched to the standby mode, and other corresponding on-board functional modules in the standby mode are restricted, such as the air conditioner is not started, and the on-board display screen is black. It is understood that the opening and closing of the tailgate indicates that the user is not in the car, and the on-board functional modules do not need to be started. When the sleep mode is entered normally, the average current of the whole vehicle is tested. Compared with the average current obtained by completing the above test of opening the driver's door of the vehicle, there is a difference in data. Accordingly, the opening and closing of the tailgate is not reflected in the door switch and the principle diagram of the remote control key controlling the relay. Figure 4 middle.
[0042] Specifically, the power mode (UsageMod) is a mode in the vehicle mode management system. The power modes include the sleep mode (Abandoned), standby mode (Inactive), comfort mode (Convenience), activation mode (Active), and driving mode (Driving). In the static power consumption test project of the whole vehicle, the static current of the vehicle battery is detected. The above activation mode and driving mode are not conventional choices.
[0043] Figure 8 This is a schematic flow chart of the power mode switching logic of a vehicle provided in an embodiment of the present application. This embodiment is described by taking the power modes of sleep mode, standby mode, and comfort mode as examples. Figure 8 It only represents some of the preset conditions for power mode switching, and does not represent all the preset conditions for power mode switching. The preset conditions are understood as test actions, such as Figure 8 As shown, the current power mode is updated according to the target power mode, including:
[0044] In some embodiments, when the current power mode of the vehicle is in the comfort mode, in response to the received first preset condition, the comfort mode is switched to the target power mode, and the target power mode is the standby mode;
[0045] Among them, the first preset condition includes at least one of the following: Condition 1: all doors are closed, the driver and the second row seat occupants are not in position, and the comfort mode is turned off; Condition 2: 30 minutes delay, the driver is not in position, and the comfort mode is turned off; Condition 3: The comfort mode is turned on, and the electric vehicle (BEV) high-voltage remaining power (SOC) is less than 20%; Condition 4: The power of the motor central control screen is turned off soft switch; Condition 5: The BEV high-voltage energy SOC is less than 5%; Condition 6: The vehicle is stationary, the vehicle is in P gear, the comfort mode is turned off, and an external vehicle lock request is made.
[0046] In some embodiments, when the current power mode of the vehicle is in the standby mode, in response to receiving a second preset condition, the standby mode is switched to the target power mode, and the target power mode is the comfort mode.
[0047] Among them, the second preset condition includes at least one of the following: Condition 1: the driver's door is open; Condition 2: any door is opened and the second row seat sensor is configured, and the second row seat sensor receives the induction; Condition 3: the brake pedal is pressed; Condition 4: click the vehicle screen within 30 seconds after the vehicle power is turned off.
[0048] In some embodiments, when the current power mode of the vehicle is in the standby mode, in response to receiving a third preset condition, the standby mode is switched to the target power mode, and the target power mode is the sleep mode.
[0049] The third preset condition includes no function demand operation and a first preset time has passed, which means that in the standby mode, if there is no function demand operation, the device automatically enters the sleep mode after a period of time.
[0050] In some embodiments, when the current power mode of the vehicle is in the sleep mode, in response to receiving a fourth preset condition, the sleep mode is switched to the target power mode, the target power mode being the standby mode;
[0051] The fourth preset condition includes a specified function request, thereby waking up from the sleep mode.
[0052] Step 50, monitor the current power mode in real time, determine whether the current power mode is a sleep mode, and when the current power mode is a sleep mode, obtain the static power consumption of the vehicle battery.
[0053] Among them, when the current power mode is the sleep mode, the static current of the vehicle battery is tested.
[0054] The above vehicle static power consumption test method realizes the automation of the static power consumption test of the whole vehicle of the electric vehicle. During the execution of the test case, the current power mode is switched to the corresponding target power mode according to the specific test action. The power mode changes accordingly with the change of the test action, which is more in line with simulating the real operating environment of the vehicle during the execution of the test case. The switching of the power mode is accompanied by the startup of other electronic devices. There are differences in the static power consumption of different electronic devices under different power modes. Therefore, in the vehicle sleep mode, the current data of the vehicle battery is tested, and the static power consumption of the electronic equipment started under the corresponding power mode during the execution of the test case can be detected together, which can reflect the abnormal static power consumption of the whole vehicle and improve the test efficiency and accuracy of the static power consumption of the whole vehicle.
[0055] In some embodiments, step 20, in response to receiving an instruction to perform a test, includes:
[0056] Step 21, obtaining the target vehicle mode by analyzing the test indication, and updating the current vehicle mode according to the target vehicle mode.
[0057] Among them, the control box parses the test indication, the test indication includes the target vehicle mode information and activation information, the vehicle's on-board automatic diagnostic system obtains the test indication, the on-board automatic diagnostic system responds to the received activation information and updates to the activated state, the ECU obtains the target vehicle mode according to the test indication, the on-board automatic diagnostic system issues a diagnostic command, the ECU receives the diagnostic command, and controls the vehicle mode management system to switch to the target vehicle mode according to the diagnostic command. The specific ECU obtains the current vehicle mode from the vehicle mode management system, compares the target vehicle mode with the current vehicle mode, and if the current vehicle mode is consistent with the target vehicle mode, the current vehicle mode is maintained; if the current vehicle mode is inconsistent with the target vehicle mode, the vehicle mode management system switches to the target vehicle mode.
[0058] For example, Figure 4 This is a schematic diagram of the door switch status and the principle of the remote control key controlling the relay provided in an embodiment of the present application. Figure 5 A schematic diagram of a transfer line of a central controller hard-wire interface provided in an embodiment of the present application is shown in FIG. Figure 4 , Figure 5 As shown, the body domain controller (CEM / CDM) is an electronic control unit. When the on-board automatic diagnostic system is activated, the vehicle mode management system can switch the vehicle mode.
[0059] Exemplarily, CEM / CDM receives the first diagnostic command (DID 1003) to enter the extended session mode, and according to the hierarchical indication in the communication protocol, it is used to force control the unlocking of the corresponding area. CEM / CDM receives the second diagnostic command (2FD1340300) to implement the vehicle mode switching of the vehicle mode management system. For example, if the target vehicle mode is the normal mode, if the current vehicle mode is not the normal mode, the current vehicle mode is switched to the normal mode. Among them, the vehicle mode (CarMode) includes the factory mode (Factory), the transport mode (Transport), the normal mode (Normal), the collision mode (Crash), and the dyno mode (Dyno). In the vehicle static power consumption test method, the above normal mode is the preferred mode.
[0060] In some embodiments, before step 30, obtaining the test case, the following steps may be performed:
[0061] Step 31, determining a corresponding use case library according to the target vehicle mode, and selecting a use case from the use case library as a test case.
[0062] It should be understood that the automated testing software is designed with multiple use case libraries, which include multiple test cases. Under the condition that the target vehicle mode is determined, the corresponding use case library is selected according to the target vehicle mode. The target vehicle mode can select any test case in the corresponding use case library, and when executing the test case, it is executed one by one.
[0063] In some embodiments, step 30, obtaining a test case includes:
[0064] Step 301, obtain simulation data corresponding to the test case, and transmit the simulation data to the electronic control unit of the vehicle; in response to the electronic control unit receiving the simulation data, parse the simulation data and execute it, and output the execution result; in response to receiving the execution result, determine whether the execution result of the electronic control unit is correct.
[0065] It should be understood that the automated test software designs test cases and transmits the corresponding simulation data to the control box, which transmits the simulation data to the ECU. The ECU makes execution results based on the simulation data, and the execution results are fed back to the automated test software through the control box. The automated test software uses this to check whether the ECU's response and control logic are correct. If there is an error, it can be directly located to the specific ECU with the problem.
[0066] In some embodiments, step 50, real-time monitoring of the current power mode, and determining whether the current power mode is the sleep mode further includes:
[0067] Step 51, the test case also includes at least one static power consumption detection node of a vehicle battery, the static power consumption detection node of the vehicle battery in the test case is obtained, and the currently executed test action is detected to determine whether the static power consumption detection node of the vehicle battery is located after the currently executed test action step sequence;
[0068] If so, the current test action is completed, and the current power mode is updated according to the target power mode corresponding to the test action. After a first preset time, the current power mode is switched to the sleep mode.
[0069] If not, continue to detect the currently executed test action until the static power consumption detection node of the vehicle battery is located after the currently executed test action step sequence.
[0070] Among them, the test case is designed with multiple test actions and static power consumption detection nodes of the vehicle battery. In the process of executing the test case, multiple static power consumption detections can be performed according to the static power consumption detection node of the vehicle battery; specifically, after determining that the static power consumption detection node of the vehicle battery is located in the current test action step sequence, the current test action is executed and switched to the corresponding target power mode. After a first preset time, which can be set to 20 minutes, the current power mode is switched to sleep mode; after a second preset time, the step sequence of the test case is the static power consumption detection node, and the timing initial point of the second preset time can be at the start time point of the sleep mode, or after the sleep mode continues for a period of time, the static power consumption of the vehicle battery within the second preset time is detected.
[0071] In some embodiments, step 50, obtaining the static power consumption of the vehicle battery, includes:
[0072] Step 501, obtaining an average current output by the vehicle battery within a second preset time, comparing the average static current with a second threshold value, and if the average static current is less than the second threshold value, determining that the static power consumption of the vehicle battery meets the requirement; and / or
[0073] Step 502, obtaining the maximum current output by the vehicle battery within the second preset time, comparing the maximum current with a third threshold, and if the maximum current is less than the third threshold, determining that the static power consumption of the vehicle battery meets the requirement.
[0074] Among them, the second threshold is 20mA, the third threshold is 200mA, and the second preset time can be set to 5min, 20min or 30min; the second threshold, the third threshold and the second preset time are determined according to the capacity of the vehicle battery. The vehicle battery can meet the setting of not running out of power within 21 days, and the static power consumption of the whole vehicle needs to meet the requirement that the vehicle can still be started normally after being parked for a long time.
[0075] It should be understood that during the execution of the test case, the power mode can enter the sleep mode or wake up from the sleep mode multiple times. After the sleep mode, the maximum current output by the vehicle battery within the second preset time can be tested, and the average current output by the vehicle battery within the second preset time can also be tested.
[0076] For example, Figure 7 A flowchart of the execution steps of a test case provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the steps of executing a test case are specifically described by taking the simulation of the door switch action and the remote control key opening and closing action as an example;
[0077] Setting prerequisites: The vehicle mode is normal mode, the battery power of the vehicle is greater than 85%, the four doors, front hood and rear tailgate of the vehicle are all closed, the vehicle is stationary, and the gear is in P gear.
[0078] Test purpose: To record the current data of the vehicle battery in sleep mode.
[0079] Test steps: S1) Open the main driver's door, the other passenger door, the main driver's rear door, and the passenger's rear door are closed, and the current power mode is switched to the comfort mode; S2) Close the main driver's door, lock the car with the remote control key, keep the remote control key stationary, and switch from the comfort mode to the standby mode; S3) Wait for 20 minutes and switch from the standby mode to the sleep mode; S4) After waiting for 20 minutes, reach the static power consumption detection node, test that the maximum current output of the vehicle battery within 20 minutes is less than 200mA, and open the tailgate with the remote control key, and the tailgate does not Shutdown state, switch from sleep mode to standby mode; S5) wait 20 minutes, switch from standby mode to sleep mode; S6) wait 20 minutes, reach the static power consumption detection node, test the maximum current output of the vehicle battery within 20 minutes is less than 200mA, close the tailgate with the remote control key, switch from sleep mode to standby mode; S7) wait 20 minutes, switch from standby mode to sleep mode; S8) wait 10 minutes after sleep mode, and then record the average current output of the test vehicle battery within 30 minutes is less than 20mA; or
[0080] After entering sleep mode, wait for 10 minutes, and then record the maximum current output by the test vehicle battery within 5 minutes, which is less than 200mA.
[0081] In some embodiments, the vehicle static power consumption test method further includes:
[0082] Obtain the execution results of the electronic control unit based on the simulation data and the current data of the vehicle battery, generate a test report through the automated testing software and display the specific test data.
[0083] For example, after the test is completed, the automated test software will generate an Excel report (.xlsx), as well as a diagnostic log (.txt) and the original bus network log (.blf or .asc). The execution results made by the ECU based on the simulation data are fed back to the diagnostic service of the automated test software, and then the diagnostic log and bus network log are generated; the current data of the vehicle battery is fed back to the automated test software to generate a report, and the problems in the test process are analyzed based on the report, diagnostic log, and bus network log; for example, if it is found that the vehicle cannot sleep normally, the problem of the specific ECU can be located through the bus log analysis collected by the test. If the static power consumption is abnormal, the current data curve in the report can also be viewed to analyze the problem.
[0084] The present application provides a vehicle static power consumption testing method, which can obtain the static current data of the entire vehicle through a large number of test times, increase the probability of discovering occasional problems, and greatly improve the efficiency of testing the static power consumption of the vehicle.
[0085] It should be understood that although Figure 1-2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0086] In one embodiment, Figure 3 As shown, a vehicle static power consumption test device is provided, including a control box for receiving a test execution instruction and a current acquisition device, wherein the current acquisition device is used to collect and feed back the current data of the vehicle battery to the control box.
[0087] The vehicle is provided with an on-board automatic diagnostic system interface, a whole vehicle network wiring harness adapter interface and a central controller hard-wired interface; the on-board automatic diagnostic system interface, the whole vehicle network wiring harness adapter interface and the central controller hard-wired interface are respectively connected to the control box, the vehicle's central controller integrates the vehicle mode management system and the electronic control unit, and the central controller is communicatively connected with the vehicle's on-board automatic diagnostic system.
[0088] The test device also includes a remote control key and a power supply module; the remote control key and the power supply module are connected to the control box via adapter cables respectively.
[0089] The current acquisition device is used to collect the current data of the vehicle battery and transmit the current data to the control box; the remote control key is connected to the control box through an adapter cable, and the remote control key is used to connect or disconnect the power supply of the vehicle battery to simulate the key being inside the vehicle or away from the vehicle; the power supply module is used to provide 12V voltage to the control box.
[0090] Exemplarily, several channel selection boards are provided inside the control box for selecting CAN channels and LIN channels to be connected to VN devices. The specific number is 8, of which 3 are used to support 24-way CAN channel switching, 3 are used to support 24-way LIN channel switching, 1 is used to support IO control of the hard-wired interface adapter cable, and 1 is used to support remote control key control.
[0091] Optionally, in some embodiments, the control box is provided with VN5650, an Ethernet data acquisition device, and 2 CAN channels; the control box is provided with VN1630*2, CAN data acquisition devices, each device including 3 CAN data acquisition channels and 1 LIN channel; the control box is provided with VN7640, including 1 Flaxray data acquisition channel, 2 CAN data acquisition channels, and 1 LIN data acquisition channel; the control box is provided with USB-HUB to expand USB input to different VN devices.
[0092] Optionally, in some embodiments, the panel of the control box is provided with several interfaces, and the specific interfaces include the following: +12V IN: provides 12V power to the control box, and the maximum current of the selected power adapter is 15A; +12VOUT: an interface for providing 12V power to the current acquisition (Klaric) device; the first USB: a USB 3.0 Type B interface, used to connect the control box with a laptop computer; the second USB: a USB 3.0 Type A interface, used to expand USB devices or plug in keyman; I / O: dedicated to VMM testing, used to connect the door switch, the remote control key switch, and the battery adapter cable; ETC: dedicated to data acquisition, converted into an OBD interface format, and connected to the vehicle's OBD interface and ETC interface; VN5650 interface: the Ethernet interface of the device VN5650 is exposed outside the control box.
[0093] The OBD interface, ETC interface, and central controller hard-wire interface are connected to the control box through adapter cables respectively; the ETC interface is used to transmit simulated FR (Flaxray) network data, CAN network data, and LIN network data to the ECU; the control box is used to control the door status switch and simulate the opening and closing of the vehicle doors, including the front left door, front right door, rear left door, and rear right door.
[0094] Optionally, in some embodiments, the vehicle mode management system is a method for classifying and defining vehicle usage scenarios, reflecting the division within the vehicle life cycle and the division of power modes; the vehicle mode management system can control the vehicle mode and the power mode separately.
[0095] Exemplarily, the vehicle mode divides the vehicle life cycle into different stages, with the purpose of unifying the mode language, establishing unified requirements for the functional effectiveness of the entire vehicle, and maintaining a good battery condition; it includes factory mode, transport mode, normal mode, crash mode, and hub mode; among them, in this embodiment, the vehicle mode is the normal mode for the vehicle static power consumption test. The definition of normal mode is specifically the normal mode that customers can use. Unless the crash mode is activated, the functional effectiveness is mainly based on the power mode.
[0096] Exemplarily, the purpose of the power mode is to establish unified requirements for the effectiveness of the functions of the whole vehicle, convert the user's intention into a function that can be recognized by the whole vehicle, guide the execution of the function when the function is available, and often have trigger events; determine the function access level according to the user's intention; it includes sleep mode, standby mode, comfort mode, activation mode, and driving mode. Among them, the definition of sleep mode is specifically to enter after a period of standby mode, turn off standby and wait for activation, and periodically detect the function of input data, so as to be able to monitor the user's request and the person entering the vehicle. The definition of standby mode is specifically that the vehicle is at rest, the function is limited, only some low-energy consumption functions are in a waiting state, and the user needs to activate the function to be effective. This mode does not require a legal key (also a remote control key) to enter, limit the consumption of low-voltage batteries, and protect the battery; the definition of comfort mode is specifically that the comfort functions of the vehicle are available, typical functions such as electric windows, wipers, backup power, etc., the engine is not started, and electric vehicles (BEV) do not need a valid key.
[0097] For the specific definition of the vehicle static power consumption test device, please refer to the definition of the vehicle static power consumption test method above, which will not be repeated here. Each module in the above-mentioned vehicle static power consumption test device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0098] In one embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as follows: Fig. 9 As shown. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a vehicle static power consumption test method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.
[0099] Those skilled in the art will understand that Fig. 9The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0100] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the operations in the above method are implemented.
[0101] In one embodiment, a vehicle is provided, which includes the vehicle static power consumption testing device provided in the above-mentioned embodiment of the present application.
[0102] Among them, the vehicle static power consumption test device, vehicle, electronic device, and computer-readable storage medium provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0103] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0104] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0105] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. Vehicle static power consumption test method, characterized in that: include: In response to receiving an instruction to perform a test; Detecting a current power level of a vehicle battery, and in response to the current power level being greater than a first threshold, acquiring a test case, the test case including a plurality of test actions; Execute the test action according to the step sequence of the test case, obtain the target power mode corresponding to the currently executed test action, and update the current power mode according to the target power mode; The current power mode is monitored in real time to determine whether the current power mode is a sleep mode, and when the current power mode is a sleep mode, the static power consumption of the vehicle battery is obtained.
2. The method according to claim 1, characterized in that The step of responding to receiving the instruction to execute the test comprises: Acquiring a target vehicle mode by parsing the test indication; The current vehicle mode is updated according to the target vehicle mode.
3. The method according to claim 2, characterized in that Before obtaining the test case, the method further includes: determining a corresponding use case library according to the target vehicle mode, and selecting a use case from the use case library as a test case.
4. The method according to claim 1, characterized in that The obtaining of test cases comprises: Acquire simulation data corresponding to the test case, and transmit the simulation data to an electronic control unit of the vehicle; In response to the electronic control unit receiving the simulation data, parsing and executing the simulation data, and outputting an execution result; In response to receiving the execution result, it is determined whether the execution result of the electronic control unit is correct.
5. The method according to claim 1, characterized in that The real-time monitoring of the current power mode and determining whether the current power mode is a sleep mode further includes: The test case further includes at least one static power consumption detection node of a vehicle battery, the static power consumption detection node of the vehicle battery in the test case is obtained, and the currently executed test action is detected to determine whether the static power consumption detection node of the vehicle battery is located after the currently executed test action step sequence; If so, the current test action is executed and completed, and the current power mode is updated according to the target power mode corresponding to the test action. After a first preset time, the current power mode is switched to the sleep mode.
6. The method according to claim 1, characterized in that: The obtaining of the static power consumption of the vehicle battery includes: Obtaining an average current output by the vehicle battery within a second preset time, comparing the average static current with a second threshold, and if the average current is less than the second threshold, determining that the static power consumption of the vehicle battery meets the requirement; and / or The maximum current output by the vehicle battery within the second preset time is obtained, and the maximum current is compared with a third threshold value. If the maximum current is less than the third threshold value, it is determined that the static power consumption of the vehicle battery meets the requirement.
7. A vehicle static power consumption test device, used to implement the vehicle static power consumption test method according to any one of claims 1 to 6, characterized in that: It includes a control box and a current collection device, and the current collection device is connected to the control box and the vehicle battery respectively; The vehicle is provided with an on-board automatic diagnostic system interface, a whole vehicle network wiring harness adapter line interface and a central controller hard-wired interface; the on-board automatic diagnostic system interface, the whole vehicle network wiring harness adapter line interface, and the central controller hard-wired interface are respectively connected to the control box, the central controller of the vehicle integrates a vehicle mode management system and an electronic control unit, and the central controller is communicatively connected to the vehicle's on-board automatic diagnostic system.
8. A vehicle, characterized in that include: The vehicle static power consumption testing device as described in claim 7.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Vehicle low-voltage power consumption test method and device, electronic equipment and storage medium
CN121164787A
