Configuration word verification method and device, electronic equipment and storage medium
By building EPS configuration words based on the functional attribute library and realizing automated verification, the problems of long test cycle and low testing efficiency of EPS configuration words verification methods in the existing technology are solved, the verification efficiency and reusability are improved, and the normal operation of the EPS system under various functional combinations is ensured.
Patent Information
- Application Number
- CN202510145749.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-10
- Publication Date
- 2025-06-27
AI Technical Summary
The existing EPS configuration word verification method has a long test cycle. When adding new functional configurations, it is necessary to rebuild configuration words and test cases, resulting in cumbersome processes and inefficient testing.
By constructing configuration words corresponding to multiple EPS configurations corresponding to the models to be tested based on the functional attribute library, and through automated writing and verification processes, the target function set and actual output torque corresponding to the configuration words are determined to achieve rapid verification and multiplexing.
It improves the reusability of configuration word verification code, saves development time, simplifies the testing process, ensures that the EPS system outputs torque that meets the design requirements under various functional combinations, and improves the vehicle's handling and driving experience.
Smart Images

Figure CN120216265A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automobiles, and in particular, to a method, device, electronic device and storage medium for verifying configuration words. Background Art
[0002] With the booming development of the automotive industry towards the intelligent direction, the proportion of L3-level intelligent driving and L4-level autonomous driving in the current automotive technology research and development is getting higher and higher. Among them, intelligent driving functions such as lane keeping assistance, lane departure warning, automatic parking assistance, high-speed emergency steering, and high-speed automatic piloting rely on the lateral control of the Electric Power Steering (EPS) system. In automobile manufacturing, for the same vehicle model, the host factory can develop and set multiple different configurations including no intelligent driving, low, medium, high, and top configurations of intelligent driving. Correspondingly, this requires the EPS to have corresponding configurations to support vehicle models with different intelligent driving configurations. Among them, different EPS configurations correspond to different configuration words, and the relationship between the two is one-to-one.
[0003] Currently, the EPS configuration word verification method is to verify the response of one intelligent driving configuration with a group of configuration words. For multiple intelligent driving configurations, the EPS needs to queue up to verify multiple groups of configuration words in sequence, that is, write a group of configuration word combinations to verify a group of EPS intelligent driving response conditions.
[0004] However, with the increasing number and functions of intelligent driving controllers, the number of configuration word combinations that the EPS needs to support is also increasing. The current configuration word verification method has a long test cycle. At the same time, when adding new function configurations, it is necessary to reconstruct the configuration words, modify the test cases, and execute the test process again. The process is cumbersome, and it is impossible to achieve rapid iteration and reuse for different projects on the same platform. For each project, it is necessary to manually construct test cases and manually execute the test process, resulting in low test efficiency. Therefore, there is an urgent need to provide an automated configuration word verification method that can improve the test efficiency. Summary of the Invention
[0005] In view of the above problems, embodiments of the present application provide a method, device, electronic device and storage medium for verifying configuration words, so as to overcome the above problems or at least partially solve the above problems.
[0006] In a first aspect, an embodiment of the present application provides a method for verifying configuration words, the method including:
[0007] Constructing configuration words corresponding to multiple EPS configurations of the to-be-tested vehicle model based on a function attribute library;
[0008] For each configuration word, writing the configuration word into the EPS controller corresponding to the to-be-tested vehicle model;
[0009] Read the configuration word in the EPS controller, determine the target function set corresponding to the configuration word, and determine the expected output torque corresponding to each function in the target function set; wherein, each function in the target function set is in an enabled state;
[0010] Activate each function in the target function set in sequence to obtain the actual output torque corresponding to each function;
[0011] Determine the verification result corresponding to the configuration word according to the expected output torque and the actual output torque corresponding to each function in the target function set.
[0012] In a second aspect, an embodiment of the present application further provides a configuration word verification device, and the device includes:
[0013] A construction module, configured to construct configuration words corresponding to multiple EPS configurations of a to-be-tested vehicle type based on a function attribute library;
[0014] A writing module, configured to write the configuration word into the EPS controller corresponding to the to-be-tested vehicle type for each configuration word;
[0015] A first determination module, configured to read the configuration word in the EPS controller, determine the target function set corresponding to the configuration word, and determine the expected output torque corresponding to each function in the target function set; wherein, each function in the target function set is in an enabled state;
[0016] A second determination module, configured to activate each function in the target function set in sequence to obtain the actual output torque corresponding to each function;
[0017] A third determination module, configured to determine the verification result corresponding to the configuration word according to the expected output torque and the actual output torque corresponding to each function in the target function set.
[0018] In a third aspect, an embodiment of the present application further provides an electronic device, and the electronic device includes a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the above configuration word verification method is implemented.
[0019] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the above configuration word verification method is implemented.
[0020] The embodiments of the present application at least include the following technical effects:
[0021] The technical solution of the embodiment of the present application can construct configuration words corresponding to multiple EPS configurations of the vehicle to be tested based on the function attribute library, so that the constructed configuration words include all function attributes in the function attribute library. Therefore, when a new function requires reconstructing the configuration words, only the relevant configurations of the new function need to be added to the configuration word construction script. At the same time, when changing the vehicle to be tested, only the project code used to distinguish different vehicle models in the configuration word needs to be changed, and the remaining test scripts can be directly reused without modification, improving the reusability of the configuration word verification code, saving development time, and thus improving the verification efficiency. Then, by verifying each configuration word and strictly verifying the configuration words, it can be ensured that the EPS system can output torques that meet the design requirements under various function combinations, which helps to improve the handling and stability of the vehicle and provide a more comfortable and safe driving experience for the driver. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art.
[0023] Figure 1 is a schematic flowchart of the configuration word verification method provided by the embodiment of the present application;
[0024] Figure 2 is a schematic structural diagram of the configuration word verification system provided by the embodiment of the present application;
[0025] Figure 3 is a schematic structural diagram of the configuration word verification device provided by the embodiment of the present application;
[0026] Figure 4 is a block diagram of the electronic device provided by the embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0027] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments of the present application belong to the scope of protection of the present application.
[0028] As Figure 1 shown, the embodiment of the present application provides a configuration word verification method, which includes:
[0029] Step 101, construct configuration words corresponding to multiple EPS configurations of the vehicle to be tested based on the function attribute library.
[0030] Since the vehicle manufacturer can develop and set multiple different configurations for the same vehicle model, including no intelligent driving and low, medium, high, and top-level intelligent driving configurations, correspondingly, this requires the EPS to have corresponding configurations to meet specific requirements and support vehicle models with different intelligent driving configurations. Among them, different EPS configurations correspond to different configuration words, and the relationship between the two is one-to-one. The configuration word is a coding method used to describe various parameters and function settings of the EPS system. For example, the configuration word can include information such as assist mode selection (such as comfort mode, sport mode, etc.), steering force gain parameter, and return torque parameter.
[0031] For the vehicle model to be tested, it is first necessary to construct the configuration words corresponding to its corresponding multiple EPS configurations based on the function attribute library, that is, to construct the configuration word corresponding to each EPS configuration. Among them, the function attribute library contains all possible functions of the EPS system and their related parameter settings. Specifically, in the automotive electronic system, the vehicle manufacturer usually designates a data identifier (Data Identifier, DID) to represent the configuration word of the EPS. Based on the complexity of the configuration word, this DID can include at least 20 bytes.
[0032] Based on different EPS configurations associated with different intelligent driving functions, different functions have different configuration items, and a single intelligent driving function can be associated with a single or multiple bytes of the configuration word. Obtain the byte sequence numbers, start bits, and end bits respectively associated with each function determined in advance, and combine the configuration item information corresponding to each EPS configuration to construct the configuration words corresponding to each EPS configuration.
[0033] Step 102: For each configuration word, write the configuration word into the EPS controller corresponding to the vehicle model to be tested.
[0034] The EPS controller is the core component of the EPS system. It is responsible for receiving signals from the steering sensor and controlling the motor to provide corresponding assistance according to the preset configuration word. After constructing the configuration words corresponding to the corresponding multiple EPS configurations of the vehicle model to be tested, for each configuration word, the upper computer uses a script to perform an automated writing operation on this group of configuration words and write them into the EPS controller corresponding to the vehicle model to be tested. Specifically, it can be written into the non-volatile memory (Non-Volatile Memory, NVM) of the EPS controller through the same diagnostic service (Unified Diagnostic Services, UDS) according to the writing process of the vehicle manufacturer, so that the EPS system can call these configuration parameters to implement corresponding intelligent driving functions during vehicle operation.
[0035] Step 103: Read the configuration word in the EPS controller, determine the target function set corresponding to the configuration word, and determine the expected output torque corresponding to each function in the target function set;
[0036] Among them, each function in the target function set is in an enabled state.
[0037] After writing the configuration word into the EPS controller corresponding to the vehicle to be tested, the upper computer uses the UDS service to read the currently stored configuration word in the EPS controller. Then, the bit characteristic values corresponding to each function associated with the EPS are parsed from the configuration word, and further determine whether each function is enabled, that is, whether it is in an enabled state. According to the functions in the enabled state, the target function set is obtained.
[0038] For each function in the target function set, determine its corresponding expected output torque. The expected output torque refers to the ideal torque value that the EPS system should output to achieve the corresponding function under specific working conditions. For example, in the active return-to-center function, the expected output torque is calculated based on factors such as the current steering angle and vehicle speed of the vehicle to ensure that the vehicle can smoothly return to the straight-ahead driving state.
[0039] Exemplarily, it is read that the target function set corresponding to the current configuration word includes the active return-to-center function and the power steering function, that is, the active return-to-center function and the power steering function are in an enabled state. According to the steering system parameters of the vehicle, tire characteristics, and the current vehicle speed of 60 km / h, through a pre-established mathematical model calculation, when the steering angle is 30 degrees, the expected return-to-center output torque is 5 N·m. For the power steering function, when the vehicle speed is 30 km / h and the steering angle is 15 degrees, the expected assist output torque is 3 N·m. These expected output torque values will be used as a reference standard for subsequent verification of whether the actual output torque is correct.
[0040] Step 104: Activate each function in the target function set in sequence to obtain the actual output torque corresponding to each function.
[0041] After determining the target function set and the expected output torque corresponding to each function it includes, it is necessary to activate each function in the target function set in sequence through the upper computer to test the performance of each function separately. The function can be activated by sending a specific trigger signal to the EPS controller or simulating the corresponding driving operation. For example, to test the active return-to-center function, when the vehicle is stationary and the steering wheel is at a certain angle, a trigger signal is sent to make the EPS controller start the active return-to-center function. During the execution of the function, the torque value actually output by the EPS system is measured through sensors (such as motor current sensors, torque sensors, etc.). These actual output torque values reflect the true performance of the EPS system under the current configuration.
[0042] Exemplarily, when the upper computer activates the power steering function and simulates the vehicle driving straight at a speed of 40 km / h, slowly turn the steering wheel so that the steering angle reaches 20 degrees. At this time, the assist torque actually output by the EPS system is measured by the torque sensor to be 3.2 N·m.
[0043] Step 105: Determine the verification result corresponding to the configuration word according to the expected output torque and the actual output torque respectively corresponding to each function in the target function set.
[0044] Comparing the actual output torque of each function with the corresponding expected output torque is the key step to judge whether the configuration word correctly configures the EPS system. The comparison method can adopt error analysis, calculate the difference between the actual output torque and the expected output torque, and judge whether it passes the verification according to a preset error threshold. For example, if the difference between the actual output torque and the expected output torque is within the allowable error range (such as ±0.5 N·m), it is considered that the configuration of this function passes the verification; otherwise, it is considered that there is a problem with the configuration. For all functions in the target function set, they are judged in this way, and finally, the verification results corresponding to the entire configuration word are determined by comprehensively considering the verification results of all functions.
[0045] In the embodiment of the present application, by constructing configuration words corresponding to multiple EPS configurations of the vehicle to be tested based on the function attribute library, the constructed configuration words can include all function attributes in the function attribute library. Therefore, when a new function requires reconstructing the configuration word, only the relevant configuration of the new function needs to be added to the configuration word construction script. At the same time, when changing the vehicle to be tested, only the item code used to distinguish different vehicle models in the configuration word needs to be changed, and the remaining test scripts can be directly reused without modification, improving the reusability of the configuration word verification code, saving development time, and thus improving the verification efficiency. Then, by verifying each configuration word, strict verification of the configuration word can ensure that the EPS system can output torques meeting the design requirements under various function combinations, which helps to improve the handling and stability of the vehicle and provide a more comfortable and safe driving experience for the driver.
[0046] In an optional embodiment of the present application, constructing configuration words corresponding to multiple EPS configurations of the vehicle to be tested based on the function attribute library includes:
[0047] For each EPS configuration, obtain the target configuration item information corresponding to the EPS configuration;
[0048] Based on the correspondence between the bit characteristic values respectively corresponding to the functions associated with the EPS and the configuration item information, determine the target bit characteristic values respectively corresponding to the functions corresponding to the target configuration item information;
[0049] Based on the placeholder information corresponding to each function in the EPS configuration word, and according to the target bit characteristic values corresponding to each function, determine the configuration word corresponding to the EPS configuration.
[0050] Specifically, the function attribute library includes the correspondence between the bit characteristic values and the configuration item information corresponding to each function associated with the EPS system, as well as the placeholder information corresponding to each function in the EPS configuration word. The placeholder information includes the byte sequence number, the starting bit, and the ending bit.
[0051] In the EPS system, different configurations correspond to different target configuration item information. Obtaining the target configuration item information may involve extracting relevant data from the vehicle's design documents, specification manuals, or the technical documents of the EPS system. The information sources include, but are not limited to, the automotive design team, the electrical engineer team, and the test team, to ensure that the information obtained is accurate and complete.
[0052] In the EPS system, each function has a corresponding bit characteristic value, and different bit characteristic values can indicate different attributes of the function. In the function attribute library, the mapping relationship between the bit characteristic values corresponding to each function associated with the EPS system and the configuration item information is stored. Based on this mapping relationship and the obtained target configuration item information, the target bit characteristic values corresponding to each function corresponding to the target configuration item information can be determined.
[0053] Exemplarily, in the target configuration item information, function 1, function 2, and function 3 are included, as well as the function attribute A of function 1, the function attribute B of function 2, and the function attribute C of function 3. Then, based on the mapping relationship between the bit characteristic values corresponding to each function associated with the EPS system stored in the function attribute library, the bit characteristic value corresponding one-to-one to the function attribute A of function 1, the bit characteristic value corresponding one-to-one to the function attribute B of function 2, and the bit characteristic value corresponding one-to-one to the function attribute C of function 3 can be determined, so as to obtain the target bit characteristic values corresponding to each function corresponding to the target configuration item information.
[0054] Each function has specific placeholder information in the EPS configuration word, that is, the positions of the functions in the configuration word are fixed. After determining the target bit characteristic values corresponding to each function, based on the placeholder information corresponding to each function in the EPS configuration word, and according to the target bit characteristic values corresponding to each function, determine the configuration word corresponding to the EPS configuration, that is, combine the target bit characteristic values corresponding to each function according to their placeholder information in the configuration word, so as to construct a complete configuration word.
[0055] In the above embodiments of the present application, by obtaining the target configuration item information corresponding to each EPS configuration one by one, and based on the correspondence between the bit feature values corresponding to the respective functions associated with the EPS and the configuration item information, first determining the target bit feature values, and then based on the placeholder information corresponding to the respective functions in the EPS configuration word, finally determining the configuration word corresponding to the EPS configuration, it can be ensured that the constructed configuration word accurately reflects the required EPS configuration. Additionally, when adding a new function, only a new bit feature value needs to be added to the mapping relationship and the placeholder information adjusted, which will not affect other parts of the entire system and is easier to maintain and expand. At the same time, considering the differences in placeholder information among different platforms and the configurable placeholder information template, this solution can adapt to different EPS controllers and automotive platforms. Therefore, on vehicles of different models, the structure of the configuration word can be flexibly adjusted, improving the compatibility and reusability of the system. Further, this configuration word construction method based on clear rules and mapping relationships facilitates automated testing and verification. Thus, test cases can be generated according to different configuration words to verify the performance of the EPS system under different configurations, improving the test efficiency.
[0056] The following introduces the process of determining the configuration word based on the placeholder information and target bits corresponding to each function. In an optional embodiment of the present application, the placeholder information includes byte number, start bit, and end bit;
[0057] Based on the placeholder information corresponding to the respective functions in the EPS configuration word, and according to the target bit feature values corresponding to the respective functions, determining the configuration word corresponding to the EPS configuration includes:
[0058] Converting the target bit feature values corresponding to the respective functions into binary arrangement data;
[0059] According to the target byte number, target start bit, and target end bit in the placeholder information corresponding to each function, determining the respective target positions of the functions in the blank configuration word; wherein, the byte number where the target position is located is the target byte number, the start bit corresponding to the target position is the target start bit, and the end bit corresponding to the target position is the target end bit;
[0060] Sequentially adding the binary arrangement data corresponding to the respective functions to the respective target positions of the functions in the blank configuration word;
[0061] Randomly filling the positions in the blank configuration word where the binary arrangement data has not been added to obtain the configuration word corresponding to the EPS configuration.
[0062] In the specific implementation process, since the configuration word is usually stored in the EPS controller in binary form, in order to add the target feature value to the configuration word, it is first necessary to convert it into binary arrangement data. Exemplarily, the target bit feature value of function 1 of EPS is 13, and its binary arrangement data after conversion is "1101". The target bit feature value of function 2 is 7, which will be converted to "0111". These binary data will be used as part of the subsequent configuration word to accurately represent the settings of this function in the EPS system.
[0063] Specifically, the byte number, start bit, and end bit in the placeholder information are key information for determining the position of each function in the configuration word. Among them, the byte number indicates which byte of the configuration word the information of this function is located in, and the start bit and end bit further refine the specific position range within this byte. Then, according to the placeholder information corresponding to each function, the target positions corresponding to each function in the blank configuration word can be determined. Among them, the byte number where the target position is located is the target byte number, the start bit corresponding to the target position is the target start bit, and the end bit corresponding to the target position is the target end bit. Exemplarily, the placeholder information of function 1 is byte number 2, start bit 3, and end bit 7. Then the information of this function will be placed in the second byte of the configuration word, starting from the 3rd bit to the 7th bit. Such precise positioning ensures that the storage positions of different functions in the configuration word do not conflict, and each function has its specific storage area.
[0064] Optionally, the functions corresponding to EPS can be associated with a single byte in the configuration word or multiple bytes of the configuration word. Therefore, the placeholder information includes at least one set of byte number, start bit, and end bit. Each set of byte number, start bit, and end bit corresponds to a target position.
[0065] After determining the target positions of each function in the blank configuration word, the binary arrangement data of the conversion number is added to the corresponding positions. Optionally, the blank configuration word can be all zeros.
[0066] After adding the binary arrangement data of all functions to the corresponding positions, there may still be unused positions in the configuration word. To form a complete configuration word, these positions are randomly filled. Generally, a random number generator can be used to generate binary data for filling. By random filling, it can be ensured that the length and format of the configuration word meet the requirements of the EPS controller. At the same time, it can also be used as a simple encryption or obfuscation means to protect the content of the configuration word to a certain extent. It should be noted that the content of the random filling cannot affect the added function information, and when reading and parsing the configuration word subsequently, the random filling part and the function information part can be correctly distinguished. In addition, the random filling part can have other uses, such as for version control, check information, or reserved expansion bits. When the system is upgraded or functions are extended subsequently, these parts can be redefined and used.
[0067] The above implementation embodiments of the present application can accurately store the information of different functions in the configuration word. In addition, when the EPS system needs to add new functions, only new placeholder information needs to be allocated for the new functions, and the corresponding binary arrangement data is added to the corresponding positions in the configuration word, without the need to make large-scale modifications to the entire structure of the configuration word, which has good scalability and flexibility. At the same time, the existence of the random filling part can further improve the flexibility. For different vehicle models, different configurations can be achieved by modifying the placeholder information or the random filling part. At the same time, the random filling part can also be used as a simple security protection to prevent the configuration word information from being easily cracked or tampered with.
[0068] The following introduces how to obtain the actual output torque corresponding to each function. In an optional embodiment of the present application, each function in the target function set is activated in sequence to obtain the actual output torque corresponding to each function, including:
[0069] For each function, simulate the environmental message information required when the function is activated;
[0070] Input the environmental message information and the activation instruction corresponding to the function into the EPS controller;
[0071] Obtain the actual output torque output by the EPS controller in response to the activation instruction.
[0072] In the EPS system, the activation and normal operation of each function rely on certain environmental conditions, which can be represented by environmental message information. The environmental message information includes data related to the current state of the vehicle, such as vehicle speed, steering angle, road surface condition, driving mode, etc. For different functions, the required environmental message information may vary. For example, for the power steering function, the environmental message information may need to include the current vehicle speed and the steering angle of the steering wheel; for the active return-to-center function, it may also need to include information such as the yaw rate and lateral acceleration of the vehicle.
[0073] Since it is difficult to fully reproduce the actual vehicle driving environment, it is necessary to simulate the environmental message information required when the function is activated. The simulation can use software to simulate various operating states of the vehicle and generate environmental message information that conforms to the actual situation. This involves establishing a vehicle dynamics model and using this model to calculate and generate the corresponding environmental message information according to different function requirements and test scenarios.
[0074] Each EPS function has a corresponding activation instruction, which is used to instruct the EPS controller to start the corresponding function.
[0075] The host computer can input the simulated environmental message information and the activation instruction corresponding to the function into the EPS controller. Specifically, these information can be encapsulated and sent according to a predetermined communication protocol through the CAN bus interface to ensure that the EPS controller can receive and correctly parse them. For example, the environmental message information and the activation instruction are combined into a CAN message and sent to the EPS controller through a CAN transceiver. After receiving the environmental message information and the activation instruction, the EPS controller will execute the corresponding function and output the actual torque. Among them, the actual output torque can be collected by a torque sensor connected to the EPS controller.
[0076] The host computer can read the actual output torque collected by the torque sensor based on the communication connection with the torque sensor.
[0077] In the above implementation of this application, by simulating the environmental message information required for different functions and inputting it into the EPS controller together with the activation instruction, the performance of various functions of the EPS system in different environments can be comprehensively tested, and the actual output torque can be obtained, which is convenient for subsequent obtaining the verification result based on the actual output torque and the expected output torque.
[0078] In an optional embodiment of this application, parsing the configuration word to determine the target function set corresponding to the configuration word includes:
[0079] Based on the placeholder information corresponding to each function in the EPS configuration word, obtaining the bit characteristic value corresponding to each function in the configuration word;
[0080] For each function, determine whether the function is in an enabled state according to the state judgment function corresponding to the function and the bit characteristic value.
[0081] Determine the target function set according to the functions in the enabled state.
[0082] In the EPS system, different functions occupy specific positions in the configuration word, and these positions are described by occupancy information. The occupancy information usually includes the byte number, the starting bit, and the ending bit, which specify the storage range of each function in the configuration word. For example, a configuration word may be 32 bits, where the assist mode function may occupy bits 2 to 4 of byte 1, and the return torque function occupies bits 5 to 7 of byte 0.
[0083] To extract the bit characteristic value corresponding to each function, the corresponding bit sequence can be intercepted from the configuration word according to the occupancy information, so as to obtain the bit characteristic value of the function. Specifically, first use a bit mask to extract the bits related to the function in the configuration word, and then shift it to the least significant bit to obtain its original binary representation, and then obtain the bit characteristic value of each function.
[0084] Specifically, each function has its corresponding state judgment function, which determines whether it is in an enabled state according to the bit characteristic value of the function. For example, for a function, if its bit characteristic value is 1 indicating enabled and 0 indicating disabled, then the state judgment function is a simple comparison operation. For more complex functions, the state judgment function may judge the enabled state of the function according to the combination of multiple bits or specific coding rules. The target function set is a set composed of all functions in the enabled state. By performing state judgment on each function and adding the enabled functions to this set, a complete target function set is formed for subsequent testing and performance evaluation.
[0085] In the above implementation of the present application, by extracting the bit characteristic value of each function and determining the enabled state of each function according to the state judgment function, the target function set is obtained, which is convenient for subsequent targeted verification of each function in the target function set.
[0086] In an optional embodiment of the present application, after writing the configuration word into the EPS controller corresponding to the vehicle model to be tested, the method further includes:
[0087] For each function in the target function set, simulate the fault message corresponding to the function;
[0088] Input the fault message into the EPS controller;
[0089] Obtain the fault code recorded by the EPS controller;
[0090] Based on the fault code and fault message, obtain the diagnostic test result corresponding to the function.
[0091] Specifically, in the EPS system, various faults may occur for each function, and these faults can be represented by fault messages. The fault message is used to send the abnormal situation occurring in the system to the EPS controller. It contains detailed information about the fault, such as the fault type, the location where the fault occurs, the severity of the fault, etc.
[0092] In order to test the response ability of the EPS controller to different fault situations, it is necessary to simulate the fault messages that may occur for each function. And input the simulated fault messages into the EPS controller. First, encode and encapsulate the fault messages according to the corresponding communication protocol, and then send them to the EPS controller through the bus. After the EPS controller receives the fault message and detects the corresponding fault, it will record the fault code. The fault code is a standardized encoding used to quickly locate and identify faults. It is usually stored in the internal storage of the EPS controller, and different fault codes will be generated according to different fault situations.
[0093] After the host computer obtains the fault code recorded by the EPS controller, based on the obtained fault code and the sent fault message, it can determine the diagnostic test result corresponding to the function. The diagnostic test result includes aspects such as whether the fault is correctly detected, the timeliness and effectiveness of fault handling, etc. By comparing the sent fault message and the finally recorded fault code, the ability of the EPS controller to identify and handle faults can be evaluated.
[0094] In the above implementation of this application, by simulating the fault messages corresponding to the functions and obtaining the fault codes recorded by the EPS controller, the detection and handling capabilities of the EPS controller for various faults can be tested. Based on the diagnostic test results, the EPS system can be optimized and improved.
[0095] In an alternative embodiment of this application, after writing the configuration word into the EPS controller corresponding to the vehicle model to be tested, the method further includes:
[0096] Read the actual configuration word of the EPS controller;
[0097] Compare the actual configuration word with the configuration word written into the EPS controller;
[0098] When the actual configuration word is inconsistent with the configuration word, rewrite the configuration word into the EPS controller again.
[0099] In the specific implementation process, after writing the configuration word into the EPS controller, to ensure the accuracy of the writing process, the written configuration word can be read back through UDS, that is, the configuration word written into the NVM of the EPS controller is read out again, which is the actual configuration word, and the actual configuration word is compared with the previously constructed configuration word ready to be written to check whether the two are consistent. If they are consistent, it indicates that the configuration word is correctly written and the entire configuration process is reliable; if they are inconsistent, it is necessary to further check whether there is a problem in the writing process or an abnormality in the reading process, so as to ensure the accuracy of the configuration word and the normal operation of the intelligent driving function based on these configurations. After troubleshooting, the configuration word is written into the EPS controller again.
[0100] In the above implementation of the present application, by reading back the written configuration word, the accuracy of the writing process can be ensured, thereby improving the reliability of the subsequent configuration word verification process.
[0101] In an optional embodiment of the present application, before writing the configuration word into the EPS controller corresponding to the vehicle model to be tested, the method further includes:
[0102] Writing a preset configuration word for initialization processing into the EPS controller.
[0103] In the specific implementation process, before writing the configuration word into the EPS controller each time, using the preset configuration word for initialization processing can ensure that the EPS controller is in a known and stable initial state, preparing for subsequent testing and actual operation.
[0104] Optionally, the preset configuration word can be that all bytes included in the configuration word are assigned 0x00.
[0105] In the above implementation of the present application, by using the preset configuration word for initialization processing, it is ensured that the EPS controller is in a stable state before starting subsequent operations, providing a reliable basis for subsequent testing and normal operation.
[0106] In an optional embodiment of the present application, the verification result includes the function verification results respectively corresponding to each function in the target function set;
[0107] Determining the verification result corresponding to the configuration word according to the expected output torque and the actual output torque respectively corresponding to each function in the target function set includes:
[0108] For each function, when the expected output torque corresponding to the function is consistent with the actual output torque, determining the function verification result as the first result for indicating that the verification passes;
[0109] When the expected output torque corresponding to the function is inconsistent with the actual output torque, determine that the function verification result is a second result for indicating that the verification fails.
[0110] Specifically, for each function in the EPS system, the expected output torque is a theoretical value pre-calculated based on system design and performance requirements, which reflects the ideal torque that the function should generate under specific working conditions. The actual output torque is the torque output of the function obtained through sensor measurement or other means during actual operation. By comparing the expected output torque and the actual output torque, it can be determined whether the function is working properly.
[0111] When making the comparison, a certain error range needs to be considered. This error range is usually determined according to the system's performance requirements and actual experience. For example, it may be set to ±5% of the expected output torque or ±0.5 N·m.
[0112] For each function, by comparing the corresponding expected output torque and actual output torque one by one, the function verification result of each function can be obtained.
[0113] When the expected output torque corresponding to the function is consistent with the actual output torque (within the allowable error range), the function verification result is a first result for indicating that the verification passes, indicating that the function can work properly according to the design requirements under the current configuration word and its performance meets the expectations. When the expected output torque corresponding to the function is inconsistent with the actual output torque (beyond the allowable error range), the function verification result is a second result for indicating that the verification fails. The occurrence of the second result may be caused by improper configuration word settings, controller algorithm problems, hardware failures, or other factors.
[0114] In the above implementation scheme of the present application, by comparing the expected output torque and the actual output torque of each function, it can be ensured that each function of the EPS system can meet the design requirements, and the steering performance and safety of the vehicle can be guaranteed.
[0115] The overall implementation process of the embodiments of the present application will be introduced below. As Figure 2 shown, it is a schematic structural diagram of the configuration word verification system. The configuration word verification system includes a host computer, a to-be-tested EPS, and a detection sensor. The overall implementation process includes the following steps:
[0116] Step 1: Configuration word construction and writing
[0117] The vehicle manufacturer will specify a data identifier (DID) to represent the EPS configuration word. The configuration word contains up to 20 or more bytes. Since the EPS is associated with different intelligent driving functions and different functions have different configuration items, a single intelligent driving function may be associated with a single or multiple bytes of the configuration word.
[0118] Therefore, the construction of the configuration word is divided into the following two categories: ① a single byte of the configuration word associated with a certain intelligent driving function; ② multiple bytes of the configuration word associated with a certain driving function. Specifically as follows:
[0119] ① Suppose the intelligent driving function Func1 is associated with n bits (n≥1) of the x-th byte of the EPS configuration word. Then, there are 2 n options for the corresponding eigenvalue of Func1, and the eigenvalue range is 0 to 2 n - 1, representing 2 n configuration items of Func1.
[0120] The bit eigenvalue of Func1 is represented by Func1_C, and z represents the serial number of the configuration item of Func1. Func1_C is calculated by taking the remainder of z divided by 2 n and then subtracting 1, that is, Func1_C = z % 2 n - 1. See Table 1 for details.
[0121] Table 1
[0122] Serial number z Bit eigenvalue Func1_C Func1 configuration item 1 0 Func1 configuration 1 2 1 Func1 configuration 2 … … … <![CDATA[2 n > <![CDATA[2 n -1]]> <![CDATA[Func1 Configuration 2 n >
[0123] Shift Func1_C to the left, and the corresponding binary arrangement VC_Byte[x] can be obtained, that is: VC_Byte[x] = Func1_C << low. Wherein, low represents the starting bit number of the n bits occupied in the x-th byte.
[0124] For example, Func1 occupies the 2 - 5 bit positions of the first byte of the EPS configuration word. Func1_C has 2 4 = 16 options, and the range of Func1_C is 0 to 15. Shift Func1_C to the left by 2 bits, and the binary arrangement VC_Byte[1] can be constructed.
[0125] ② Suppose the intelligent driving function Func2 is associated with multiple bits of multiple bytes of the configuration word. Then, each bit associated with the relevant byte will correspond to a certain number of bit eigenvalues.
[0126] Since the influence of different bytes on Func2 is independent, the total number of Func2 configuration combinations is the product of the number of eigenvalues corresponding to the relevant bits of different bytes.
[0127] In this solution, when constructing the eigenvalues of different bytes, a decoupling operation needs to be performed on multiple bytes associated with the function. Suppose the two bytes associated with Func2 are x1 and x2 respectively, x1 has n1 eigenvalues, and x2 has n2 eigenvalues. Then, Func2 has a total of n1 * n2 configurations. See Table 2 for details.
[0128] Table 2
[0129] Serial number z Func2_C1 Func2_C2 Func2 configuration item 1 0 0 Func2 configuration 1 2 1 0 Func2 configuration 2 … … 0 … n1 n1-1 0 Func2 configuration n1 n1+1 0 1 Func2 configuration n1 + 1 … 1 1 Func2 configuration n1 + 2 … … … … n1 * n2 n1-1 n2-1 Func2 configuration n1 * n2
[0130] When calculating Func2_C1 of x1, it is obtained by taking the remainder of the sequence number z of the configuration item with respect to n1; when calculating Func2_C2 of x2, it is obtained by taking the divisor of the sequence number z of the configuration item with respect to n1 and then taking the remainder with respect to n2. The calculation formula is as follows:
[0131] Func2_C1 = z % n1;
[0132] Func2_C2 = (z / n1) % n2.
[0133] Similar to ①, by shifting the bit feature value to the left, the binary arrangements VC_Byte[x1] and VC_Byte[x2] of the bit feature value can be constructed. The calculation formula is as follows:
[0134] VC_Byte[x1] = Func2_C1 << low1;
[0135] VC_Byte[x2] = Func2_C2 << low2.
[0136] The above process of constructing the EPS configuration word assigns values to the bits associated with the intelligent driving function. For the unassociated bytes and the unused bits in the associated bytes, 0 or 1 is randomly assigned during the construction process, thus completing the construction of the bytes that make up the EPS configuration word DID.
[0137] Automatically write the constructed configuration word and perform data consistency verification through a script. That is: write the constructed configuration word into the non-volatile memory (NVM) of the EPS controller through the Unified Diagnostic Services (UDS) according to the writing process of the vehicle manufacturer; after writing the configuration word, read back the written configuration word through the UDS service to ensure that the configuration word is correctly written.
[0138] Step 2: Determine the associated function status
[0139] In this solution, a total of z groups of configuration word combinations are constructed through the configuration word construction in Step 1, that is, the boundary range of EPS automated testing is determined to be z groups of configuration word combinations. Next, it is necessary to verify whether each group of configuration words takes effect after being written into the EPS controller. This section makes a determination on the on / off state of the intelligent driving function for a single configuration word combination to support function checking and diagnosis.
[0140] First, read the configuration word of the EPS, and then extract the corresponding byte of the EPS-associated intelligent function in the configuration word.
[0141] For example, Func1 is associated with bits 2 to 5 of the first byte of the configuration word, Func2 is associated with bits 1 to 4 of the fourth byte and bits 0 to 7 of the fifth byte of the configuration word, and Func3 is associated with bits 0 to 1 of the sixth byte.
[0142] First, extract the occupied bits of Func1, Func2, and Func3 from each byte, which respectively correspond to: VC_Byte[1], VC_Byte[4], VC_Byte[6].
[0143] Then, take the integer part of VC_Byte[1] divided by 4 and then take the remainder when divided by 16 to obtain the bit characteristic value Func1_C of Func1, that is, Func1_C = (VC_Byte[1] / 4) % 16; where 4 is obtained from 2 low obtained, and 16 is obtained from 2 (high-low+1) obtained. Similarly, take the integer part of VC_Byte[4] divided by 2 and then take the remainder when divided by 8 to obtain the bit characteristic value Func2_C1 of Func2, that is, Func2_C1 = (VC_Byte[4] / 2) % 8. Since Func2_C2 is related to the entire byte of VC_Byte[5], no bit offset operation is performed, that is, Func2_C2 = VC_Byte[5]; similarly, take the remainder of VC_Byte[6] when divided by 4 to obtain the bit characteristic value Func3_C of Func3, that is, Func3_C = VC_Byte[6] % 4.
[0144] The bit characteristic values corresponding to Func1, Func2, and Func3 are obtained through the above steps. Next, judge the on / off status of each function based on the bit characteristic values.
[0145] Each function has a dedicated judgment function. The judgment logic is that when the function characteristic value is within the specified range, the corresponding function status is on, and when it is not within the range, the corresponding function status is off. For example, when the bit characteristic value attribute library of Func1 is defined as 1 to 8, the function is on, and for other values, the function is off. Combine the actual Func1_C read from the EPS controller to judge whether it is within the range of 1 to 8. If it is within the range, output the status of Func1 as on, otherwise output the off status. Similarly, for Func2 and Func3 functions, after processing through their respective judgment functions based on the read Func2_C1, Func2_C2, and Func3_C attribute characteristic values, the on or off status will also be output.
[0146] Exemplarily, the corresponding relationship between the bit characteristic values and the function status is shown in Table 3.
[0147] Table 3
[0148]
[0149] This step realizes the automatic extraction of feature values from EPS configuration words, and outputs the on and off states of each associated function through a judgment function, providing an important expected goal for the inspection and diagnosis of associated functions in the next stage. At the same time, the results of each associated function are output by an independent function. If the feature values of the configuration word scheme change, only the judgment function needs to be modified for the changed points. Even if new associated functions are added, only the judgment function for the feature values of the new associated functions needs to be added. The form is flexible and the scalability is strong.
[0150] Step 3: Associated Function Inspection
[0151] Based on the output of each configuration word combination in the previous part for the expected states of each associated function, this section describes the automatic inspection and testing process of the configuration word associated functions, and each associated function related to the configuration word should be tested in sequence. As Figure 2 shown, it includes a total of 3 components: the host computer, the EPS to be tested, and the detection sensor.
[0152] The associated function inspection mainly includes the following steps:
[0153] Step 31: The host computer simulates the working peripheral CAN bus communication environment of the EPS and transmits the simulated message information to the EPS to be tested. For example, when testing the Func1 function, the host computer sends a Func1 activation instruction;
[0154] Step 32: The host computer collects the externally transmitted activation status message information of the EPS to be tested through CAN communication. When the EPS responds to Func1, the signals related to Func1 will jump to the Active state, otherwise they will remain in the non-Active state for a long time;
[0155] Step 33: At the same time, the EPS to be tested is rigidly connected to the detection sensor, and the detection sensor measures the output torque of the EPS to be tested. When the EPS responds to Func1, the host computer detects from the detection sensor that the EPS has power assist output, otherwise the torque information detected by the detection sensor will remain unchanged;
[0156] Step 34: When the state of the configuration word combination Func1 is turned on, when both steps 32 and 33 meet the requirements of the externally transmitted signal state jump and power assist output, the current test passes. If any of the inspection states in steps 32 or 33 does not meet the requirements, the test is determined to fail.
[0157] After completing the inspection and judgment of Func1 according to the above 4 steps, the inspection and judgment of Func2 and Func3 are also carried out in sequence according to the order of 1-2-3-4. Each function inspection has a corresponding independent inspection function to automatically send an activation instruction, check the EPS response and power assist output, and automatically verify and compare with the expected results. Each configuration word combination is determined to pass the associated function inspection only when the actual inspection results of Func1, Func2, and Func3 are consistent with the expected results in step 2.
[0158] Step 4, Associated Function Diagnosis
[0159] In this EPS configuration word automated test solution, the executed associated function diagnosis is a supplement to the associated function check. According to the different configuration word combinations in the second part, different intelligent driving function on and off configurations are represented. For example, the first group of configuration word combinations supports the activation of a single intelligent driving function Func1, the second group of configuration word combinations supports the activation of multiple intelligent driving functions Func1, Func2, and Func3, and the zero group of configuration word combinations supports the deactivation of Func1, Func2, and Func3. This requires that in addition to providing assistance when the associated function is activated, the EPS also supports the diagnosis of diagnostic trouble code (DTC) - like diagnostics for the corresponding functions. The automated execution sequence of the associated function diagnosis also refers to Figure 2 , and mainly includes the following steps:
[0160] Step 41, The host computer simulates the CAN bus communication environment of the EPS working periphery, transfers the simulated message information to the EPS under test, and presets the expected values of the DTCs for the corresponding functions when Func1, Func2, and Func3 are all activated in the host computer program;
[0161] Step 42, For example, to verify the diagnostic function of Func1, the host computer causes the loss of Func1 messages and collects whether the EPS under test records the DTC for the loss of Func1 messages through the UDS service. When Func1 is activated, the EPS will record the DTC for the loss of Func1 messages; otherwise, it will not remember any DTCs;
[0162] Step 43, The host computer causes E2E faults and functional faults of Func1 messages and checks whether the EPS records the DTCs for the E2E faults and functional faults of Func1 messages;
[0163] Step 44, When the Func1 status in the configuration word combination is activated, if both Step 42 and Step 43 record the DTCs for different fault types of the corresponding Func1 and are consistent with the expected DTC values preset in Step 1, then the current diagnostic test passes; if the DTC diagnostic results of either Step 42 or Step 43 are inconsistent, the test is determined to have failed;
[0164] After completing the diagnostic judgment of Func1 according to the above 4 steps, the diagnostic judgments of Func2 and Func3 are also carried out in the order of 1-2-3-4 in turn. For the DTC diagnosis of each function, there is also an independent automated script for fault generation and DTC consistency check. Check the DTC recorded by EPS and compare it with the expected value through automated verification. Each configuration word combination is determined to pass the associated function diagnostic test only when the actual inspection results of Func1, Func2, and Func3 are consistent with the expected results in step 2, and the recorded DTC is also consistent with the expected results.
[0165] Step 5, Configuration Word Reset
[0166] In this solution, the configuration word reset is the last process for the test end condition after completing the above steps. To ensure that the initial conditions for the verification test of each configuration word combination are the same, after completing a set of automated configuration word tests, all more than 20 hexadecimal bytes that make up the configuration word are assigned 0x00 and written into the NVM of the EPS controller through the UDS diagnostic service and restarted to take effect. The diagnostic writing process is also implemented through a script. In this way, it is ensured that each time a configuration word combination is verified, the initial configuration word of the EPS is consistent, and the test results are more accurate.
[0167] The above technical solution can cover all automated test solutions for configuration words related to functions, propose a new method for constructing the constituent bytes of the configuration word, cover all characteristic values of the related functions, and use random numbers to fill the unused bits to increase the complexity of the construction and improve the test coverage. When executing this test solution across platforms and projects, only the configuration word construction solution needs to be modified to achieve rapid iteration and reuse, with good scalability. When writing each set of constructed configuration words into the EPS for testing, the developer's thinking mode is used to extract the bits occupied by the related functions through an automated script. Each function uses an independent function to match the characteristic values, outputs the on and off states of each related function, and uses this as the expected result to conduct the test. The automated script proofreads the consistency between the on state of the related function and the related diagnostic DTC, shortens the test cycle, and improves the test efficiency. Reset the test conditions at the end of each test to make the starting conditions of each test consistent and increase the reliability of the test results.
[0168] The above introduced the configuration word verification method provided by the embodiments of the present application. Next, the configuration word verification device provided by the embodiments of the present application will be introduced in conjunction with the accompanying drawings.
[0169] As Figure 3 shown, an embodiment of the present invention also provides a configuration word verification device, and the device includes:
[0170] A construction module 301, configured to construct configuration words corresponding to multiple EPS configurations of the vehicle model to be tested based on a function attribute library;
[0171] A writing module 302, configured to write each of the configuration words into the EPS controller corresponding to the vehicle model to be tested;
[0172] A first determination module 303, configured to read the configuration words in the EPS controller, determine a target function set corresponding to the configuration words, and determine expected output torques respectively corresponding to each function in the target function set; wherein, each function in the target function set is in an enabled state;
[0173] A second determination module 304, configured to sequentially activate each function in the target function set to obtain actual output torques respectively corresponding to each function;
[0174] A third determination module 305, configured to determine a verification result corresponding to the configuration word according to the expected output torques and the actual output torques respectively corresponding to each function in the target function set.
[0175] Optionally, the construction module includes:
[0176] A first acquisition sub-module, configured to acquire target configuration item information corresponding to each EPS configuration;
[0177] A first determination sub-module, configured to determine target bit characteristic values respectively corresponding to each function according to the correspondence between the bit characteristic values respectively corresponding to the functions associated with the EPS and the configuration item information;
[0178] A second determination sub-module, configured to determine the configuration word corresponding to the EPS configuration according to the target bit characteristic values respectively corresponding to each function based on the placeholder information respectively corresponding to each function in the EPS configuration word.
[0179] Optionally, the placeholder information includes a byte sequence number, a start bit, and an end bit;
[0180] The second determination sub-module includes:
[0181] A conversion unit, configured to convert the target bit characteristic values respectively corresponding to each function into binary arrangement data;
[0182] A first determination unit, configured to determine target positions respectively corresponding to each function in a blank configuration word according to the target byte sequence number, the target start bit, and the target end bit in the placeholder information corresponding to each function; wherein, the byte sequence number where the target position is located is the target byte sequence number, the start bit corresponding to the target position is the target start bit, and the end bit corresponding to the target position is the target end bit;
[0183] An addition module, configured to sequentially add the binary arrangement data respectively corresponding to each function to the target positions respectively corresponding to each function in the blank configuration word;
[0184] A filling module, configured to randomly fill positions in the blank configuration word where binary arrangement data has not been added, so as to obtain a configuration word corresponding to the EPS configuration.
[0185] Optionally, the second determination module includes:
[0186] A simulation sub-module, configured to simulate environmental message information required when each function is activated;
[0187] An input sub-module, configured to input the environmental message information and an activation instruction corresponding to the function into the EPS controller;
[0188] A second acquisition sub-module, configured to acquire an actual output torque output by the EPS controller when responding to the activation instruction.
[0189] Optionally, the first determination module includes:
[0190] A third acquisition sub-module, configured to acquire a bit feature value corresponding to each function in the configuration word based on placeholder information respectively corresponding to each function in the EPS configuration word;
[0191] A third determination sub-module, configured to determine whether each function is in an enabled state according to a state judgment function corresponding to the function and the bit feature value;
[0192] A fourth determination sub-module, configured to determine the target function set according to functions in an enabled state.
[0193] Optionally, after writing the configuration word into the EPS controller corresponding to the vehicle to be tested, the device further includes:
[0194] A simulation module, configured to simulate a fault message corresponding to each function in the target function set;
[0195] An input module, configured to input the fault message into the EPS controller;
[0196] An acquisition module, configured to acquire a fault code recorded by the EPS controller;
[0197] A fourth determination module, configured to obtain a diagnostic test result corresponding to the function according to the fault code and the fault message.
[0198] Optionally, after writing the configuration word into the EPS controller corresponding to the vehicle to be tested, the device further includes:
[0199] A reading module, configured to read an actual configuration word of the EPS controller;
[0200] A comparison module for comparing the actual configuration word with the configuration word written to the EPS controller;
[0201] A rewrite module for rewriting the configuration word to the EPS controller again when the actual configuration word is inconsistent with the configuration word.
[0202] Optionally, before writing the configuration word to the EPS controller corresponding to the vehicle model to be tested, the device further includes:
[0203] An initialization module for writing a preset configuration word for initialization processing to the EPS controller.
[0204] Optionally, the verification result includes function verification results corresponding to each function in the target function set;
[0205] The third determination module includes:
[0206] A fifth determination sub-module for, for each function, when the expected output torque corresponding to the function is consistent with the actual output torque, determining that the function verification result is a first result for indicating that the verification passes;
[0207] A sixth determination sub-module for, when the expected output torque corresponding to the function is inconsistent with the actual output torque, determining that the function verification result is a second result for indicating that the verification fails.
[0208] The configuration word verification device provided in this application can, by constructing configuration words corresponding to multiple EPS configurations of the vehicle model to be tested based on the function attribute library, make the constructed configuration words include all function attributes in the function attribute library. Thus, when a new function requires reconstructing the configuration word, only the relevant configuration of the new function needs to be added to the configuration word construction script. At the same time, when changing the vehicle model to be tested, only the project code for distinguishing different vehicle models in the configuration word needs to be changed, and the remaining test scripts can be directly reused without modification, improving the reusability of the configuration word verification code, saving development time, and thus improving the verification efficiency. Then, by verifying each configuration word, strict verification of the configuration word can ensure that the EPS system can output torques that meet the design requirements under various function combinations, which helps improve the handling and stability of the vehicle and provides a more comfortable and safe driving experience for the driver.
[0209] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant parts, refer to the partial description of the method embodiment.
[0210] The embodiment of the present application further provides an electronic device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, it implements each process of the above-mentioned configuration word verification method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0211] For example, Figure 4 shows a schematic diagram of the physical structure of an electronic device. As Figure 4 shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440. Among them, the processor 410, the communication interface 420, and the memory 430 complete mutual communication through the communication bus 440. The processor 410 can call the logical instructions in the memory 430. The processor 410 is used to perform the following steps: constructing configuration words corresponding to multiple EPS configurations of the vehicle to be tested based on the function attribute library; for each configuration word, writing the configuration word into the EPS controller corresponding to the vehicle to be tested; reading the configuration word in the EPS controller, determining the target function set corresponding to the configuration word, and determining the expected output torque corresponding to each function in the target function set; where each function in the target function set is in an enabled state; sequentially activating each function in the target function set to obtain the actual output torque corresponding to each function; according to the expected output torque and the actual output torque corresponding to each function in the target function set, determining the verification result corresponding to the configuration word. The processor 410 can also execute other solutions in the embodiments of the present application, which will not be further elaborated here.
[0212] In addition, when the logical instructions in the above-mentioned memory 430 are implemented in the form of software function units and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or a part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0213] The embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements each process of the above-described embodiment of the configuration word verification method and can achieve the same technical effects. To avoid repetition, it will not be elaborated here. Among them, the computer-readable storage medium includes, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc.
[0214] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article, or device. Without further limitations, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article, or device including that element.
[0215] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) and includes several instructions for causing a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
[0216] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.
[0217] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0218] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0219] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be in electrical, mechanical or other forms.
[0220] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place, or can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0221] In addition, in each embodiment of the present application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0222] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs that can store program codes.
[0223] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, and all should be covered by the protection scope of the present application.
Claims
1. A configuration word verification method, characterized in that: The method comprises: Based on the function attribute library, the configuration words corresponding to various EPS configurations of the vehicle to be tested are constructed; For each configuration word, writing the configuration word into the EPS controller corresponding to the vehicle model to be tested; Reading a configuration word in the EPS controller, determining a target function set corresponding to the configuration word, and determining an expected output torque corresponding to each function in the target function set; wherein each function in the target function set is in an on state; Activate each function in the target function set in sequence to obtain the actual output torque corresponding to each function; The verification result corresponding to the configuration word is determined according to the expected output torque and the actual output torque respectively corresponding to each function in the target function set.
2. The configuration word verification method according to claim 1, characterized in that: Based on the functional attribute library, the configuration words corresponding to various EPS configurations of the vehicle to be tested are constructed, including: For each EPS configuration, obtain target configuration item information corresponding to the EPS configuration; Determine the target bit feature values corresponding to the functions corresponding to the target configuration item information based on the correspondence between the bit feature values corresponding to the functions associated with the EPS and the configuration item information; Based on the placeholder information corresponding to each function in the EPS configuration word, and according to the target bit characteristic value corresponding to each function, the configuration word corresponding to the EPS configuration is determined.
3. The configuration word verification method according to claim 2, characterized in that: The placeholder information includes a byte sequence number, a start bit, and an end bit; Based on the placeholder information corresponding to each function in the EPS configuration word, and according to the target bit characteristic value corresponding to each function, the configuration word corresponding to the EPS configuration is determined, including: Convert the target bit feature values corresponding to each function into binary arrangement data; Determine the target positions corresponding to the functions in the blank configuration word according to the target byte sequence number, target start bit and target end bit in the placeholder information corresponding to the functions; wherein the byte sequence number of the target position is the target byte sequence number, the start bit corresponding to the target position is the target start bit, and the end bit corresponding to the target position is the target end bit; Add the binary arrangement data corresponding to each function to the target position corresponding to each function in the blank configuration word in sequence; Randomly fill the positions in the blank configuration word to which the binary arrangement data is not added to obtain the configuration word corresponding to the EPS configuration.
4. The configuration word verification method according to claim 1, characterized in that: Activate each function in the target function set in turn to obtain the actual output torque corresponding to each function, including: For each function, simulating the environment message information required when the function is activated; inputting the environmental message information and the activation instruction corresponding to the function into the EPS controller; The actual output torque output by the EPS controller in response to the activation command is obtained.
5. The configuration word verification method according to claim 1, characterized in that: Determining a target function set corresponding to the configuration word includes: Based on the placeholder information corresponding to each function in the EPS configuration word, obtain the bit characteristic value corresponding to each function in the configuration word; For each function, determine whether the function is in an on state according to the state judgment function corresponding to the function and the bit characteristic value; The target function set is determined according to each function that is in an enabled state.
6. The configuration word verification method according to claim 1, characterized in that: After writing the configuration word into the EPS controller corresponding to the vehicle model to be tested, the method further includes: For each function in the target function set, simulating a fault message corresponding to the function; inputting the fault message into the EPS controller; Obtaining a fault code recorded by the EPS controller; According to the fault code and the fault message, a diagnostic test result corresponding to the function is obtained.
7. The configuration word verification method according to claim 1, characterized in that: After writing the configuration word into the EPS controller corresponding to the vehicle model to be tested, the method further includes: Read the actual configuration word of the EPS controller; comparing the actual configuration word with the configuration word written to the EPS controller; When the actual configuration word is inconsistent with the configuration word, the configuration word is rewritten into the EPS controller.
8. The configuration word verification method according to claim 1, characterized in that: Before writing the configuration word into the EPS controller corresponding to the vehicle model to be tested, the method further includes: A preset configuration word for initialization processing is written into the EPS controller.
9. The configuration word verification method according to claim 1, characterized in that: The verification result includes the function verification result corresponding to each function in the target function set; Determining the verification result corresponding to the configuration word according to the expected output torque and the actual output torque respectively corresponding to each function in the target function set includes: For each function, when the expected output torque corresponding to the function is consistent with the actual output torque, determining the function verification result as a first result indicating that the verification is passed; When the expected output torque corresponding to the function is inconsistent with the actual output torque, the function verification result is determined to be a second result indicating that the verification has failed.
10. A configuration word verification device, characterized in that: include: A construction module, used for constructing configuration words corresponding to various EPS configurations corresponding to the vehicle model to be tested based on the function attribute library; A writing module, used for writing each configuration word into the EPS controller corresponding to the vehicle model to be tested; A first determination module is used to read a configuration word in the EPS controller, determine a target function set corresponding to the configuration word, and determine an expected output torque corresponding to each function in the target function set; wherein each function in the target function set is in an on state; A second determination module is used to activate each function in the target function set in sequence to obtain an actual output torque corresponding to each function; The third determination module is used to determine the verification result corresponding to the configuration word according to the expected output torque and the actual output torque corresponding to each function in the target function set.
11. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the computer program implements the configuration word verification method according to any one of claims 1 to 9 when executed by the processor.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the configuration word verification method according to any one of claims 1 to 9 is implemented.