A test method for vehicle electrical load management system

Through CANoe's CAPL programming and Panel module, the problems of complex testing of the vehicle electrical load management system and unintuitive data display are solved, efficient testing process and data visualization are realized, and equipment needs are reduced.

CN114995357BActive Publication Date: 2024-11-26CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210754024.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2024-11-26
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

The testing of the vehicle electrical load management system is complex and the display of key data is not intuitive enough. The existing technology requires the use of diagnostic instruments and CAN data acquisition equipment, and the testing efficiency is inefficient.

Method used

Through CANoe's secondary development language CAPL development script files, the project files are created and the CAPL test module is inserted. The CANoe's Panel module is used to create a dedicated visual interface to realize the stress test of vehicle mode switching and power mode switching, replacing the functions of the diagnostic instrument.

Benefits of technology

It realizes that electrical appliance load management testing can be completed without a diagnostic instrument, improves testing efficiency, simplifies operation steps, visualizes and intuitives of key data, and reduces test equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114995357B_ABST
    Figure CN114995357B_ABST
Patent Text Reader

Abstract

The present invention discloses a test method for a vehicle electrical load management system, including: obtaining a DID agreed upon by a supplier and a main engine manufacturer; developing a script file through CAPL, a secondary development language of CANoe; after the script development is completed, establishing a corresponding project file in CANoe, selecting a single-channel CAN communication mode, and adding a DBC file corresponding to the vehicle model to be tested to the established project file; inserting a CAPL programming module of "Insert CAPL Test Module" into the established project file; and using the Panel module of CANoe to establish an exclusive visual interface. Through CAPL programming, the function of the diagnostic instrument is replaced by the CANoe device, which avoids repeated switching of the device, has simple operation steps, and is more convenient and efficient in testing, while also reducing a set of testing equipment. During the test process, the diagnostic instrument can be omitted, and the load management test of the electrical appliance can be completed using only CANoe, and it can be extended to the stress test of power mode switching or the test cases in which the diagnostic instrument and CANoe need to be used simultaneously during certain tests.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a testing method for a vehicle electrical appliance load management system, and belongs to the technical field of software testing. Background Art

[0002] When the vehicle engine is not started and the vehicle power gear is in ON or ACC gear, if electrical loads such as audio-visual entertainment equipment are used for a long time, the power of the vehicle's 12V battery will be continuously consumed. Therefore, in order to ensure that the 12V battery has enough power to start the engine, the vehicle is designed with a related electrical load management function. During the power consumption process, some electrical equipment with comfort functions can be properly shut down or their power usage time can be limited according to the remaining power of the 12V battery. The strategy of this electrical load management function is slightly different in different vehicle modes.

[0003] In the whole vehicle test activities, the test of the whole vehicle electrical load management system requires, on the one hand, the use of a diagnostic instrument to implement the vehicle mode switching operation; on the other hand, the use of a CAN data acquisition device to collect bus data and analyze this data in combination with the vehicle mode to confirm whether the actual vehicle performance meets the requirements of the whole vehicle electrical load management system. However, currently such tests require the use of a diagnostic instrument and a CAN data acquisition device, and the test process is complex and inefficient, and the display of key data during the test is not intuitive enough.

[0004] CN202110342049.5 discloses a "vehicle load management system for reducing the risk of battery failure", which can manage the load power supply of the vehicle from testing, transportation to after-sales use, and reduce the risk of battery failure. However, it only provides a system strategy for power management, and does not involve the test methods for different load management systems. Test engineers often use diagnostic instruments and CAN devices for testing, which cannot solve the problem of testing different load management systems. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, an object of the present invention is to provide a method for testing the power load management function of a whole vehicle, so as to solve the problems that the testing of the power load management function of the whole vehicle is complicated and the display of key data during the testing process is not intuitive enough.

[0006] To achieve the above purpose, the present invention adopts the following technical solutions:

[0007] A test method for a vehicle electrical load management system comprises the following steps:

[0008] S1. Obtain the DID agreed upon by the supplier and the OEM;

[0009] S2. Develop through CAPL, the secondary development language of CANoe, and obtain the script file;

[0010] S3. After the script is developed, create the corresponding project file in CANoe, select the single-channel CAN communication mode, and add the DBC file corresponding to the vehicle model to be tested to the created project file;

[0011] S4. Insert the CAPL test module into the established project file;

[0012] S5. Use CANoe's Panel module to establish a dedicated visualization interface; use CANoe's Panel visualization interface for testing and display.

[0013] Further, S1 obtains the DID agreed upon by the supplier and the OEM, and obtains the following information by querying the DID table:

[0014] 1) Get the DID number of the "Vehicle Mode Enable Configuration" and the corresponding value of Vehicle Mode Enable or Vehicle Mode Disable;

[0015] 2) Obtain the DID number for switching to factory mode configuration and the corresponding enable or disable value;

[0016] 3) Obtain the DID number of "Vehicle Mode Diagnosis Enable" and the corresponding value of Vehicle Mode Diagnosis Enable or Vehicle Mode Diagnosis Disable;

[0017] 4) Get the DID number of "vehicle mode" and the corresponding value of user mode, factory mode or transportation mode.

[0018] Furthermore, the script file includes vehicle mode definition, PIN code acquisition, diagnostic enable on and off, vehicle mode setting, vehicle mode switching and stress testing parts.

[0019] Furthermore, the engineering file includes a DBC corresponding to the vehicle model, a visual panel interface, and a CAPL script integration module (Insert CAPL Test Module).

[0020] The inserting of the CAPL test module in S4 is “Insert CAPL Test Module”, and the test script programmed in the CAPL language is integrated into the project file.

[0021] The exclusive visualization interface in the S5 is designed according to the signals that need to be focused on. For the electrical load of the whole vehicle, the visualization interface mainly adds the vehicle mode (BCM_CarMode), battery low power reminder (BCM_LowPowerWarning), battery SOC (EMS_SOC), etc.

[0022] Compared with the prior art, the present invention has the following beneficial effects:

[0023] 1. The vehicle electrical load management function test method of the present invention is adopted. During the test process, no diagnostic instrument is required. Only CANoe can be used to complete the electrical load management test. The test can also be extended to perform stress tests on power mode switching or test cases in which a diagnostic instrument and CANoe need to be used simultaneously during certain tests. This method is also applicable to Ethernet and other communication models.

[0024] 2. The present invention can achieve the purpose of streamlining the test equipment. Through the secondary development of CANoe, the work that needs to be completed by the diagnostic instrument during the test process is implemented by CANoe; the problem of switching back and forth between the diagnostic instrument and CANoe during the test process is solved, the test process is streamlined, and work efficiency is improved; the problem of data visualization and intuition in the test is realized.

[0025] 3. The present invention replaces the diagnostic instrument function in the CANoe device through CAPL programming, avoiding repeated switching of devices, making the operation steps simple, the test more convenient and efficient, and also reducing a set of test equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a flow chart of the vehicle electrical load management function testing method of the present invention;

[0027] Figure 2 This is a diagram of the test panel interface of an embodiment of the present invention;

[0028] Figure 3 This is a test engineering diagram of an embodiment of the test method of the present invention. DETAILED DESCRIPTION

[0029] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0030] Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0031] It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. In the description of the present invention, it should be noted that the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, or the orientation or position relationship in which the invention product is usually placed when used, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance. In addition, the terms "horizontal", "vertical", etc. do not mean that the components are absolutely horizontal or suspended, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted. In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0032] Glossary:

[0033]

[0034] See also Figure 1 The present invention provides a method for testing a vehicle electrical load management system, comprising the following steps:

[0035] S1. Obtain the DID agreed upon by the supplier and the OEM, and obtain the following information by querying the DID table:

[0036] 1) Get the DID number of the "Vehicle Mode Enable Configuration" and the corresponding value of Vehicle Mode Enable or Vehicle Mode Disable;

[0037] 2) Obtain the DID number of the "First Startup Switching to Factory Mode Enable Engineering Vehicle Mode Enable Configuration" and the corresponding enable or disable value;

[0038] 3) Obtain the DID number of "Vehicle Mode Diagnosis Enable" and the corresponding value of Vehicle Mode Diagnosis Enable or Vehicle Mode Diagnosis Disable;

[0039] 4) Get the DID number of "vehicle mode" and the corresponding value of user mode, factory mode or transportation mode.

[0040] S2. Develop through CAPL, the secondary development language of CANoe, and obtain the script file;

[0041] S3. After the script is developed, create the corresponding project file in CANoe, select the single-channel CAN communication mode, and add the DBC file corresponding to the vehicle model to be tested to the created project file;

[0042] S4. In the established project file, the test script programmed in CAPL language is integrated into the project file through CANOE's built-in CAPL test module "Insert CAPL TestModule";

[0043] S5. Use CANoe's Panel module to establish a dedicated visualization interface; use CANoe's Panel visualization interface for testing and display.

[0044] Among them, the S5 uses the Panel module of CANoe to establish a dedicated visual interface for the signals that need to be focused on according to its own needs. The interface can achieve the following functions in conjunction with CAPL programming:

[0045] (1) Intuitive Chinese display of user mode, factory mode, and transport mode in vehicle mode;

[0046] (2) Vehicle mode message analysis and specific message display;

[0047] (3) Low battery warning display of BCM;

[0048] (4) Low battery message analysis and message display;

[0049] (5) Battery status display;

[0050] (6) Power status message analysis and message display;

[0051] (7) Vehicle gear display;

[0052] (8) Battery SOC value display;

[0053] (9) Battery SOC status display;

[0054] (10) Battery voltage display;

[0055] (11) Total mileage display;

[0056] (12) Switching function between user mode, factory mode and transport mode is realized;

[0057] Example 1: See Figure 2 In CANoe, the Panel module is used to design a signal interface based on the main signals that need to be paid attention to during the test. This interface can clearly display the different modes of the vehicle and the low-battery warning information in different modes, which can remind the tester in real time to prevent the engine from being unable to start due to low battery.

[0058] See also Figure 3 , CANoe's secondary development language CAPL programming realizes the function switching and stress testing of user mode, factory mode and transportation mode.

[0059] Vehicle mode definition:

[0060] vOption[0] = @sysvar::CarMode::mode; / / Vehicle mode: Get the PIN code from the Panel interface:

[0061] vOption[0] = @sysvar::CarMode::mode; / / Vehicle mode: set from the Panel interface

[0062] vKey[0] = pindec & 0xFF; / / Get pin code

[0063] vKey[1] = pindec & 0xFF00;

[0064] vKey[2] = 0xFF;

[0065] vKey[3] = 0xFF;

[0066] Diagnostic enable on and off:

[0067] vOption[0]=1;

[0068] IL_DiagN_Init();

[0069] vResult = DiagA_Ser_WriteDataByDID(0xFE10, vOption, 1); / / write enable diagnostic enable on off testwaitfortimeout(500);

[0070] Vehicle mode settings:

[0071] vResult = DiagA_Ser_WriteDataByDID(0xFE21, vOption, 1); / / Write vehicle mode / / Factory mode testwaitfortimeout(1000);

[0072] Vehicle mode switching and stress testing, here we take 100 times as an example:

[0073]

[0074] It can be seen that the present invention uses CANoe to realize the work that needs to be completed by the diagnostic instrument during the test process through the secondary development of CANoe; solves the problem of switching between the diagnostic instrument and CANoe during the test process, simplifies the test process, and improves work efficiency; realizes the problem of data visualization and intuition in the test. In addition, by replacing the diagnostic instrument function in the CANoe device through CAPL programming, the operation steps are simple, the test is more convenient and efficient, and the work efficiency is improved; at the same time, a set of test equipment is also reduced.

[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.

Claims

1. A test method for a vehicle electrical load management system. It is characterized in that The steps include: S1. Obtain the DID agreed upon by the supplier and the OEM; S2. Develop through CAPL, the secondary development language of CANoe, and obtain the script file; S3. After the script is developed, create the corresponding project file in CANoe, select the single-channel CAN communication mode, and add the DBC file corresponding to the vehicle model to be tested to the created project file; S4. Insert the CAPL test module into the established project file; S5. Use the Panel module of CANoe to establish a dedicated visual interface; Use the visual interface established by the Panel module of CANoe for testing and display; Among them, S1 obtains the DID agreed upon by the supplier and the OEM, and obtains the following information by querying the DID table: 1) Get the DID number of "Vehicle Mode Enable Configuration" and the corresponding value of Vehicle Mode Enable or Vehicle Mode Disable; 2) Get the DID number for switching to factory mode configuration and the corresponding enable or disable value; 3) Get the DID number of "Vehicle Mode Diagnosis Enable" and the corresponding value of Vehicle Mode Diagnosis Enable or Vehicle Mode Diagnosis Disable; 4) Get the DID number of "vehicle mode" and the corresponding value of user mode, factory mode or transportation mode; Among them, the script file includes vehicle mode definition, PIN code acquisition, diagnostic enable on and off, vehicle mode setting, vehicle mode switching and stress testing parts.

2. According to the test method of the vehicle electrical load management system according to claim 1, It is characterized in that The engineering file includes the DBC, visual panel interface and CAPL script integration module of the corresponding vehicle model.

3. According to the test method of the vehicle electrical load management system according to claim 1, It is characterized in that Inserting the CAPL test module in S4 is "Insert CAPL Test Module", and the test script programmed in CAPL language is integrated into the project file.

4. According to the test method of the vehicle electrical load management system according to claim 1, It is characterized in that The exclusive visualization interface in the S5 is designed according to the signals that need to be focused on. For the electrical load of the entire vehicle, the visualization interface adds vehicle mode, low battery reminder and battery SOC.

5. According to the test method of the vehicle electrical load management system according to claim 1, It is characterized in that The visual interface established by S5 can realize the following functions in conjunction with CAPL programming: (1) Intuitive Chinese display of user mode, factory mode, and transportation mode of vehicle mode; (2) Vehicle mode message analysis and specific message display; (3) BCM low battery warning display; (4) Low battery message analysis and message display; (5) Battery status display; (6) Power status message analysis and message display; (7) Vehicle gear display; (8) Battery SOC value display; (9) Battery SOC status display; (10) Battery voltage display; (11) Total mileage display on the instrument; (12) The switching function between user mode, factory mode and transport mode is implemented.