A detection method, device, equipment and computer-readable storage medium

By obtaining the running program identification information of the motor system and the sample value of the characteristic quantity, and determining the current status of the motor system matches the reference status, the problem of incorrect software matching in electric vehicles in multi-motor system is solved, ensuring the safety of the electric vehicle and the accuracy of the detection results.

CN114625647BActive Publication Date: 2025-08-29DONGFENG MOTOR GRP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210248924.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-14
Publication Date
2025-08-29
Estimated Expiration
2042-03-14

AI Technical Summary

Technical Problem

In multi-motor system electric vehicles, the prior art cannot effectively identify and ensure the matching accuracy of each motor system software, resulting in possible software mismatch problems, affecting detection items and posing safety hazards.

Method used

By obtaining the running program identification information of the component to be detected, the sampling value of the feature quantity sequence is collected, the current status information is determined based on the reference effective range of the feature quantity, and matched with the reference status information, it is determined whether the hardware and software of the motor system match, and the detection results are output to prevent mismatch problems.

Benefits of technology

It realizes timely discovering the matching problems between the motor system and the software, avoiding safety hazards, and ensuring the normal operation of electric vehicles and the accuracy of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114625647B_ABST
    Figure CN114625647B_ABST
Patent Text Reader

Abstract

The present application discloses a detection method, apparatus, device and computer-readable storage medium, the method comprising: obtaining identification information of a running program on a component to be detected, wherein the running program is used to control the operation of the component to be detected; when the component to be detected is running based on the running program, collecting sampling values ​​of each feature quantity in a feature quantity sequence corresponding to the component to be detected, wherein each feature quantity corresponds to a function to be detected; determining current state information of the component to be detected based on the sampling values ​​of each feature quantity and a reference valid range corresponding to each feature quantity; obtaining reference state information of the component to be detected based on the identification information, and determining a detection result based on the current state information and the reference state information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automation and detection technology, and relates to but is not limited to a detection method, device, equipment and computer-readable storage medium. Background Art

[0002] With the accelerating adoption of electric vehicles, the number of drive motor systems they incorporate is increasing. This has evolved from single-motor systems to the current mainstream dual-motor systems, as well as triple-motor and quad-motor systems. Due to cost and power considerations, multi-motor vehicle models are now equipped with multiple identical motor systems from the same manufacturer.

[0003] In the above scenario, the vehicle's multiple motor systems share identical hardware, but differences in their functional definitions lead to differences in their external signal interfaces, including different pin counts. Therefore, it's impossible to identify the vehicle's mounting location based on the appearance of the motor system.

[0004] In related technologies, vehicle model information is collected through the vehicle's Controller Area Network (CAN) bus to determine the compatibility and consistency of the motor system software components. This method is only suitable for determining the vehicle model and whether the motor system software part number matches the vehicle model and whether the version is compatible. It is ineffective for identifying multiple motor systems installed on the same vehicle model, resulting in an inability to determine whether the motor system hardware and motor control software are compatible.

[0005] For vehicles equipped with multiple identical motor systems with varying functions, ensuring the correct software matching of each motor system is a significant barrier to adoption. Failure to promptly identify mismatches between the motor system and the software can lead to software mismatches, impacting other test items and potentially even causing safety hazards or even drivability. Summary of the Invention

[0006] In view of this, embodiments of the present application provide a detection method, apparatus, device, and computer-readable storage medium.

[0007] The technical solution of the embodiment of the present application is implemented as follows:

[0008] The present invention provides a detection method, including:

[0009] Obtaining identification information of a running program on the component to be detected, wherein the running program is used to control the operation of the component to be detected;

[0010] When the component to be detected is running based on the running program, sampling values ​​of each feature quantity in the feature quantity sequence corresponding to the component to be detected are collected, wherein each feature quantity corresponds to a function to be detected;

[0011] Determining current state information of the component to be detected based on the sampling value of each feature quantity and the reference effective range corresponding to each feature quantity;

[0012] Reference state information of the component to be inspected is acquired based on the identification information, and an inspection result is determined based on the current state information and the reference state information.

[0013] The present invention provides a detection device, including:

[0014] A first acquisition module is configured to acquire identification information of a running program on the component to be detected, wherein the running program is used to control the operation of the component to be detected;

[0015] an acquisition module, configured to acquire, when the component to be detected is running based on the running program, sample values ​​of each feature quantity in a feature quantity sequence corresponding to the component to be detected, wherein each feature quantity corresponds to a function to be detected;

[0016] A first determining module, configured to determine current state information of the component to be detected based on the sampling value of each feature quantity and the reference valid range corresponding to each feature quantity;

[0017] The second determining module is configured to obtain reference state information of the component to be detected based on the identification information, and determine a detection result based on the current state information and the reference state information.

[0018] The present invention provides a detection device, which includes:

[0019] processor; and

[0020] a memory for storing a computer program executable on the processor;

[0021] Wherein, the computer program implements the above detection method when executed by the processor.

[0022] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-executable instructions are stored in the computer-executable storage medium, and the computer-executable instructions are configured to execute the above-mentioned detection method.

[0023] An embodiment of the present application provides a detection method, apparatus, device and computer-readable storage medium, the detection method comprising: first obtaining identification information of a running program on a component to be detected, wherein the running program is used to control the operation of the component to be detected; then, when the component to be detected is running based on the running program, collecting sampling values ​​of each feature quantity in a feature sequence corresponding to the component to be detected, wherein each feature quantity corresponds to a function to be detected; then, based on the sampling values ​​of each feature quantity and the reference effective range corresponding to each feature quantity, determining the current state information of the component to be detected, that is, the current state information of the function to be detected; finally, obtaining reference state information corresponding to the component to be detected based on the identification information, and then determining the detection result based on the current state information and the reference state information, to obtain a detection result of whether the component to be detected is normal, and whether the component to be detected is normal, that is, whether the running program matches the component to be detected, so that the problem of mismatch between the component to be detected and the running program can be discovered in time, thereby preventing the problem from leaking out and avoiding safety hazards caused by mismatch. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components throughout the different views.The drawings illustrate generally, by way of example and not limitation, various embodiments discussed herein.

[0025] Figure 1 A schematic diagram of an implementation flow of the detection method provided in an embodiment of the present application;

[0026] Figure 2 A schematic diagram of an implementation flow for determining current status information provided in an embodiment of the present application;

[0027] Figure 3 A schematic diagram of an implementation process for determining a test result provided in an embodiment of the present application;

[0028] Figure 4 A schematic diagram of another implementation flow of the detection method provided in an embodiment of the present application;

[0029] Figure 5 A schematic diagram of another implementation flow for determining a test result provided in an embodiment of the present application;

[0030] Figure 6 A schematic diagram of a block diagram corresponding to a feature sequence provided in an embodiment of the present application;

[0031] Figure 7 A schematic diagram of another implementation flow of the detection method provided in the embodiment of the present application;

[0032] Figure 8 A schematic diagram of the structure of a detection device provided in an embodiment of the present application;

[0033] Figure 9 A schematic diagram of the composition structure of the detection equipment provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solutions and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0035] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0036] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0037] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.

[0038] To address the problems in the related art, the present invention provides a detection method. The method provided in this embodiment can be implemented by a computer program. When the computer program is executed, each step of the detection method provided in this embodiment is completed. In some embodiments, the computer program can be executed by a processor of a detection device. Figure 1 A schematic diagram of an implementation flow of the detection method provided in the embodiment of the present application is shown as follows: Figure 1 As shown, the detection method includes:

[0039] Step S101: obtaining identification information of a program running on a component to be detected.

[0040] Here, the component to be tested may be a motor, controller, or the like on a vehicle or household appliance. The component to be tested may be one or more. For example, the component to be tested may be four motors on a car. Generally, these four motors have different control functions, and therefore, the operating programs for the different motors are also different.

[0041] In an embodiment of the present application, identification information of a program running on the component to be detected can be obtained through an identification reading instruction, wherein the running program is used to control the operation of the component to be detected.

[0042] In some embodiments, in the first case, the process may be triggered to enter step S101 when the component to be detected is powered on. Taking a car motor as an example, the identification information of the program running on the motor is obtained each time the car is powered on. In the second case, the process may be triggered to enter step S101 when the component to be detected is powered on for the first time. Continuing with the above embodiment, the identification information of the program running on the motor is obtained when the new motor is started for the first time. The first startup may be an offline electrical inspection before leaving the factory, or a replacement of the motor at a repair shop. In the third case, the process may be triggered to enter step S101 when the running program is replaced. Continuing with the above example, the process may be an offline electrical inspection before leaving the factory, or an update of the running program on the motor at a repair shop.

[0043] Step S102 : when the component to be detected is running based on the running program, sampling values ​​of each feature quantity in the feature quantity sequence corresponding to the component to be detected are collected.

[0044] Here, after the component to be inspected is loaded with a running program, it can execute the corresponding function based on the running program, that is, the component to be inspected is put into operation. During the operation process, the signal values ​​of the interface of the component to be inspected can be collected and used as the sampling values ​​of various feature quantities. Each feature quantity corresponds to a function to be inspected.

[0045] In the embodiment of the present application, the signal value of the interface can be the voltage value, current value, etc. of the interface. The feature sequence can include multiple feature quantities. For example, if an electric vehicle is equipped with four motors and these four motors are the components to be detected, the feature sequence can include six feature quantities, and each feature quantity corresponds to a function to be detected. The functions to be detected corresponding to the above six feature quantities can be controlling the shift and parking motor, controlling the differential lock, the differential speed sensor signal, the water temperature sensor signal, the oil temperature sensor signal, and the controller housing temperature signal. The sampled value of each feature quantity can represent the actual state of each function to be detected.

[0046] Step S103 : determining the current state information of the component to be inspected based on the sampling value of each feature quantity and the reference effective range corresponding to each feature quantity.

[0047] Here, each characteristic quantity corresponds to a reference valid range. Taking the shift parking motor signal as an example, the corresponding reference valid range is a voltage range of 4.5 volts (Volt, V) to 5.5V, the low level is less than or equal to 2V, the high level is greater than or equal to 4V, and the duty cycle is between 0 and 100%.

[0048] In actual implementation, the sampling values ​​of each characteristic quantity and the corresponding reference valid range are compared and processed. If there is a first target characteristic quantity within the corresponding reference valid range among the sampling values ​​of each characteristic quantity, the detection function corresponding to the first target characteristic quantity is determined to be the first function to be detected, and the state of the first function to be detected is determined to be an enabled state, and finally the current state of the enabled first function to be detected is set to the first preset value; and if there is a second target characteristic quantity outside the corresponding reference valid range among the sampling values ​​of each characteristic quantity, the detection function corresponding to the second target characteristic quantity is determined to be the second function to be detected, and the state of the second function to be detected is determined to be a disabled state, and finally the current state of the disabled second function to be detected is set to the second preset value, wherein the second preset value is different from the first preset value.

[0049] In this way, the current status of each function to be detected can be determined, and ultimately the status of each function to be detected constitutes the current status information of the component to be detected.

[0050] Step S104 : obtaining reference state information of the component to be inspected based on the identification information, and determining an inspection result based on the current state information and the reference state information.

[0051] Here, a first mapping relationship table can be obtained first, in which a first correspondence between identification information and reference state information is stored; then, based on the first mapping relationship table, the reference state information corresponding to the identification information is determined, and the reference state information is also the reference state information of the component to be detected; then, if the current state information and the reference state information meet the first matching condition, the detection result is determined to be normal; and if the current state information and the reference state information do not meet the first matching condition, the detection result is determined to be a fault.

[0052] An embodiment of the present application provides a detection method, which first obtains identification information of a running program on the component to be detected through the above-mentioned steps S101 to S104, wherein the running program is used to control the operation of the component to be detected; then, when the component to be detected is running based on the running program, the sampling values ​​of each feature quantity in the feature sequence corresponding to the component to be detected are collected, wherein each feature quantity corresponds to a function to be detected; then, based on the sampling values ​​of each feature quantity and the reference effective range corresponding to each feature quantity, the current state information of the component to be detected, that is, the current state information of the function to be detected, is determined; finally, based on the identification information, the reference state information corresponding to the component to be detected is obtained, and then the detection result is determined based on the current state information and the reference state information, to obtain a detection result of whether the component to be detected is normal, and whether the component to be detected is normal, that is, whether the running program matches the component to be detected, so that the problem of mismatch between the component to be detected and the running program can be discovered in time, thereby preventing the problem from leaking out and avoiding safety hazards caused by mismatch.

[0053] In some embodiments, reference Figure 2 The above step S103 "determining the current state information of the component to be detected based on the sampling value of each feature quantity and the reference effective range corresponding to each feature quantity" can be implemented by the following steps S1031 to S1033:

[0054] Step S1031 : judging whether there is a first target feature quantity in the feature quantities that is within the corresponding reference valid range based on the sampling values ​​of the feature quantities.

[0055] Here, the sampling value of each feature quantity is compared with the corresponding reference valid range one by one. If the sampling value of the feature quantity is within the reference valid range, the feature quantity is determined to be the first target feature quantity, and step S1032 is entered; otherwise, the sampling value representing the feature quantity is outside the reference valid range, and step S1033 is entered.

[0056] Step S1032 : determining that the first function to be detected corresponding to the first target feature is in an enabled state, and setting the current state of the first function to be detected to a first preset value.

[0057] If it is judged based on the sampling values ​​of each characteristic quantity that there is a first target characteristic quantity in the corresponding reference valid range, then the function to be detected corresponding to the first target characteristic quantity is determined to be the first function to be detected, and the current state of the first function to be detected is determined to be the enabled state.

[0058] In the embodiment of the present application, the first preset value may be a default value or a custom value. Generally, the first preset value is 1. That is, the current state of the first function to be detected is set to 1.

[0059] Step S1033 : determining that the second function to be detected corresponding to the second target feature is in a disabled state, and setting the current state of the second function to be detected to a second preset value.

[0060] If it is judged based on the sampling values ​​of each characteristic quantity that there is a second target characteristic quantity in each characteristic quantity that is outside the corresponding reference valid range, then the function to be detected corresponding to the second target characteristic quantity is determined to be the second function to be detected, and the current state of the second function to be detected is determined to be a disabled state.

[0061] In the embodiment of the present application, the second preset value is different from the first preset value. The second preset value can be a default value or a custom value. Generally, the second preset value is 0. That is, the current state of the second function to be detected is set to 1.

[0062] Through the above steps S1031 to S1033, if it is determined that the first target characteristic quantity exists in the characteristic quantity, the function to be detected corresponding to the first target characteristic quantity is determined as the first function to be detected, and the state of the first function to be detected is determined to be an enabled state. At this time, the current state of the first function to be detected is set to the first preset value; at this time, the characteristic quantity other than the first target characteristic quantity is the second target characteristic quantity, and the function to be detected corresponding to the second target characteristic quantity is determined to be the second function to be detected, and the state of the second function to be detected is determined to be a disabled state. At this time, the current state of the second function to be detected is set to the second preset value. In this way, the current state of the function to be detected corresponding to each characteristic quantity can be determined, and the current state of each function to be detected constitutes the current state information of the component to be detected, so that the actual state of each function to be detected can be clearly and clearly reflected through the current state information.

[0063] In some embodiments, as Figure 3 As shown, the above step S104 "obtaining reference state information of the component to be inspected based on the identification information, and determining the inspection result based on the current state information and the reference state information" can be implemented by the following steps S1041 to S1049:

[0064] Step S1041: Obtain a preset first mapping relationship table.

[0065] Here, the first mapping relationship table can be obtained by reading the instruction, wherein the first mapping relationship table is stored in advance in the device to be detected. In an embodiment of the present application, the first mapping relationship table stores a first correspondence between the identification information and the reference state information.

[0066] Step S1042: Determine reference state information corresponding to the identification information based on the first mapping relationship table.

[0067] Here, the identification information is first searched in the first mapping relationship table, and then the reference state information corresponding to the identification information is determined based on the identification information.

[0068] Taking the identification information representing the left front motor of the electric vehicle as an example, the reference state information corresponding to the identification information may be 111110.

[0069] Step S1043: Determine whether the current state information and the reference state information meet a first matching condition.

[0070] Here, the current state information is compared with the reference state information to obtain a comparison result. If the comparison result indicates that the current state information is consistent with the reference state information, it is determined that the current state information and the reference state information meet the first matching condition, and the process proceeds to step S1044. If the comparison result indicates that the current state information and the reference state information are inconsistent, it is determined that the current state information and the reference state information do not meet the first matching condition, and the process proceeds to step S1046.

[0071] Step S1044: Determine that the detection result is normal.

[0072] If the current state information and the reference state information meet a first matching condition, the detection result is determined to be normal.

[0073] Step S1045: Continue to control the operation of the component to be inspected based on the operating program.

[0074] If the test result is normal, the operation of the component to be tested will continue to be controlled based on the operating program.

[0075] Step S1046: Determine that the detection result is a fault.

[0076] If the current state information and the reference state information do not satisfy the first matching condition, the detection result is determined to be a fault.

[0077] Step S1047, controlling the component to be inspected to stop running.

[0078] If the detection result is a fault, the component to be detected will be controlled to stop running in order to avoid safety hazards or damage to the component to be detected.

[0079] Step S1048: determine the fault code corresponding to the detection result, and generate an alarm message based on the identification information and the current state information.

[0080] Here, the fault code can be a default code or a custom code. For example, the fault code can be 000A. In addition, the generated alarm message can include identification information and current status information to facilitate subsequent repair of the fault. The alarm message can be in the form of characters, voice, video, etc.

[0081] Step S1049: output the fault code and warning message.

[0082] Here, the fault code and warning message are output via the corresponding output device.

[0083] In the embodiment of the present application, through the above steps S1041 to S1049, the reference state information corresponding to the identification information is determined based on the first mapping relationship table, and if the current state information and the reference state information meet the first matching condition, the detection result is determined to be normal. If the detection result is normal, the operation of the component to be detected continues to be controlled based on the running program; if the current state information and the reference state information do not meet the first matching condition, the detection result is determined to be abnormal. If the detection result is abnormal, a fault code and an alarm message are determined and output. This promptly indicates the existence of a fault and avoids potential safety hazards.

[0084] In some embodiments, reference Figure 4 After the above step S103, the following steps S104' to S107' may be performed:

[0085] Step S104': obtaining a second mapping relationship table.

[0086] Here, the second mapping relationship table can be obtained by reading the instruction, wherein the second mapping relationship table is stored in advance in the device to be detected. In an embodiment of the present application, the second mapping relationship table stores a first correspondence between the identification information and the reference state information, and the second mapping relationship table also stores a second correspondence between the identification information and the reference version information.

[0087] Step S105 ′: obtaining the current version information of the program running on the component to be detected.

[0088] Here, the current version information of the program running on the component to be detected can be obtained through a version reading instruction. The current version information is the actual version information of the running program. For example, the current version information is version 1.0.0.8.

[0089] Step S106 ′: determining the reference status message and reference version information corresponding to the identification information based on the second mapping relationship table.

[0090] Here, the identification information is first found in the second mapping relationship table, and then the reference state information corresponding to the identification information is determined based on the identification information, and the reference version information corresponding to the identification information is also determined based on the identification information.

[0091] Step S107 ′: determining a detection result based on the current state information, the current version information, the reference state information and the reference version information.

[0092] In actual implementation, refer to Figure 5 , step S107' can be implemented by following the steps S1071' to S1074':

[0093] Step S1071 ′: determine whether the current state information and the reference state information meet a first matching condition.

[0094] Here, the implementation process of step S1071 ′ is similar to the implementation process of the above step S1043 , and therefore, the implementation process of step S1071 ′ may refer to the implementation process of the above step S1043 .

[0095] In an embodiment of the present application, if the current state information and the reference state information meet the first matching condition, indicating that the current state information matches the reference state information, then step S1072' is entered; and if the current state information and the reference state information do not meet the first matching condition, indicating that the current state information does not match the reference state information, then step S1074' is entered.

[0096] Step S1072': determine whether the current version information and the reference version information meet a second matching condition.

[0097] If the current status information and the reference status information meet the first matching condition, the version information will continue to be judged. The implementation process of judging the version information in step S1072' is similar to the implementation process of judging the status information in the above step S1043. Therefore, the implementation process of step S1072' can refer to the implementation process of the above step S1043.

[0098] In an embodiment of the present application, if the current version information and the reference version information meet the second matching condition, it indicates that the current status information and the current version information both match the corresponding reference information, and the process proceeds to step S1073'; and if the current version information and the reference version information do not meet the second matching condition, it indicates that the current version information and the reference version information do not match, and the process proceeds to step S1074'.

[0099] Step S1073', determining that the detection result is normal.

[0100] If both the current state information and the current version information match the corresponding reference information, it indicates that the component to be tested can operate normally, and the test result is determined to be normal.

[0101] Step S1074', determining that the detection result is a fault.

[0102] If at least one of the current state information and the current version information does not match the corresponding reference information, it indicates that the component to be tested cannot operate normally, and the test result is determined to be a fault.

[0103] In the embodiment of the present application, after step S107', if the test result is normal, the operation of the component to be tested continues to be controlled based on the running program; if the test result is abnormal, a fault code and an alarm message are determined and output, thereby promptly notifying the user of the fault and avoiding potential safety hazards.

[0104] In an embodiment of the present application, through the above steps S104' to S107', the current version information of the running program and the second mapping relationship table can also be obtained, and then the reference status information and reference version information corresponding to the identification information are determined based on the second mapping relationship. If the current status information and the current version information match the corresponding reference information, the detection result is determined to be normal; otherwise, the detection result is determined to be a fault, thereby realizing simultaneous detection of status information and version information, improving the detection effect, and timely discovering problems with running programs or running program versions that do not match, avoiding the problem from leaking out, and preventing security risks caused by mismatches.

[0105] Based on the above embodiments, the present application provides a detection method for detecting the motor system in an electric vehicle, wherein the electric vehicle includes four motor systems. The detection method locates the motor system hardware by comparing the differences in the functional configuration of each motor system, and then determines whether the software installed in multiple packages matches by comparing the built-in part numbers of the software. The detection method includes the following eight parts:

[0106] In the first part, in the software global variable module, set two parameters for the function state array. The functional differences of each motor system are aggregated to form a specific function combination, which forms the function state array. Enabling / disabling the functional differences of each motor system generates corresponding different function state array values. The default value is 1, indicating that all additional functions of the motor system are supported. The function state array corresponds to the feature vector sequence in the above embodiment.

[0107] In the second part, a series of feature variables are set in the software's global variable module, and the valid value range of each feature variable is defined. Each feature variable is derived from the external input signal of a functional difference item. Changes in the feature variable sample value are used to represent the usage of the functional item.

[0108] Part three: In the software global variable module, set the software part number and software version number. These information, such as the software part number and software version number, are fixed before the software is released and cannot be overwritten during subsequent calibration or diagnostic operations. The software number corresponds to the identification information in the above embodiment.

[0109] Part 4: Add a sampling program for all signals in the entire feature sequence to the software signal acquisition module, and then determine the activation status of each function. Among them, each function corresponds to the various functions to be detected in the above embodiment.

[0110] Part five, adds a signal value validity detection program for each characteristic parameter in the software self-test module.

[0111] Part six, adding a software parts matching status recognition algorithm program in the software self-check module.

[0112] Part 7: Adding fault codes and the highest fault handling response measures for each abnormal characteristic signal in the software fault management module. The fault codes correspond to the fault codes in the above embodiment.

[0113] Part eight, adding fault code and status array values ​​in the software CAN communication module.

[0114] Based on the above eight parts, during the vehicle power-on self-test phase, the software self-test module reads global variables to obtain the part number and version number of the software corresponding to the current motor system.

[0115] The sampling module obtains the signal value of each feature value in the feature value sequence and feeds it back to the self-checking module. Figure 6 As shown, it is assumed that m additional functions constitute a specific function combination, where each additional function can be represented by a dedicated external interface signal, and finally the m signals constitute a feature quantity sequence; then, combined with the effective range of each feature quantity signal, the functional state array of the motor is obtained.

[0116] The self-check module activates the signal validity detection program and corresponding algorithm to determine the rationality of the sampling value of each characteristic quantity based on whether the sampling value of each characteristic quantity is within the valid range. It then determines the enable / disable status of the corresponding function and generates a function status array value.

[0117] The self-check module activates the state recognition algorithm program, compares the function state array value with the read software built-in part number version number, and determines whether the motor system software and hardware match. If they match, it indicates that the software is installed correctly.

[0118] If there is a mismatch, a software installation error is reported via a fault code, and a fault system response is initiated, such as vehicle breakdown.

[0119] In case of mismatch, the function status array value and parts are also reported to guide maintenance personnel to update the appropriate software parts.

[0120] In some embodiments, a method for detecting the software component matching status of each drive motor system of an electric four-wheel drive vehicle is taken as an example. The vehicle is equipped with four motor systems. The similarities between the motor systems are: the hardware and appearance structure are completely consistent, and the performance indicators are completely consistent. The main functions are to control the drive motor, control the cooling and lubrication motor, and control the motor battery water pump. The differences are: the vehicle body mounting position area is different; the additional integrated functions are different, the torque distribution requirements of each drive motor are inconsistent, resulting in different configurations of the low-voltage electrical interface pins; the bus signal and identity identification number (IdentityDocument, ID) are different. Since the torque distribution requirements of each drive motor are inconsistent, it is necessary to ensure that each software component is matched correctly.

[0121] The four motor systems are located in the vehicle's front left, rear left, front right, and rear right areas, and are named MCUFL, MCURL, MCUFR, and MCURR. Their corresponding part numbers are A300085360, A300084060, A300085460, and A300082660, respectively. The corresponding additional integrated functions are as follows:

[0122] MCUFL: controls the shift parking motor, controls the differential lock, collects differential speed sensor signals, collects water temperature sensor signals, and collects oil temperature sensor signals.

[0123] MCURL: controls the differential lock, collects differential speed sensor signals, collects water temperature sensor signals, and collects oil temperature sensor signals.

[0124] MCUFR: Collects controller case temperature signal.

[0125] MCURR: None.

[0126] In view of the functional differences among the above motor systems, this embodiment sets the following specific function combinations: controlling the shift and parking motor, controlling the differential lock, collecting speed signals, collecting water temperature signals, collecting oil temperature signals, and collecting controller housing temperature signals, for a total of six. It is agreed that when a function is enabled or turned on, it is recorded as 1, and when it is disabled, it is recorded as 0. According to the above function combination sequence and rules, the corresponding function state array values ​​of each motor system are set as shown in Table 1:

[0127] Table 1 Array value table of functional status corresponding to each motor system

[0128] Serial number Motor system Corresponding function status array value 1 MCUFL 111110 2 MCURL 011110 3 MCUFR 000001 4 MCURR 000000

[0129] The corresponding characteristic quantity sequences are denoted as PWM for the shift and parking motor signal, VCC for the differential lock signal, Vxs_ISS1 for the differential speed sensor signal, TEMP for the water temperature sensor signal, TTS for the oil temperature sensor signal, and Tcase for the case temperature sensor signal. When the signal sampling value of a characteristic quantity is within the valid range, the corresponding function is valid and the status is 1; otherwise, it is 0.

[0130] At the vehicle offline electrical inspection station, when the vehicle is started, each motor system will perform a power-on self-test and begin to identify the software parts matching status. This is to determine whether the software part number matches or not and to issue an abnormal alarm. Figure 7 As shown, the self-check identification process includes the following steps:

[0131] Step S701: The vehicle is powered on or the microcontroller unit (MCU) is awakened.

[0132] In actual implementation, the key may be inserted and the vehicle started, at which point each motor system program enters a self-test phase, starting the software test process.

[0133] Step S702: The self-check module reads the part number of the current software.

[0134] In step S703 , the self-checking module obtains the parameter values ​​of the feature sequence through the sampling module.

[0135] In step S704, the self-check module determines the validity of the signal parameter value of each feature quantity through a signal validity detection program.

[0136] Here, if valid, the corresponding function state is recorded as 1; if invalid, it is recorded as 0. All parameters of the entire feature sequence are judged in sequence to obtain the function state array value.

[0137] In actual implementation, the effective range of each feature signal is as follows, wherein the effective range of each feature signal corresponds to the reference effective range corresponding to each feature in the above embodiment:

[0138] The effective voltage range of the PWM signal is 4.5V to 5.5V, the low level is less than or equal to 2V, the high level is greater than or equal to 4V, and the duty cycle is between 0 and 100%; the effective voltage of VCC is 12V, and the current is less than or equal to 4 amperes (Ampere, A); the effective voltage of Vxs_ISS1 is 4.5V to 20V; the current is 7 milliamperes (mA) to 14mA; the frequency is 1 kilohertz (KHz) to 12KHz; the effective voltage of TEMP is 5V, the current is less than or equal to 0.1A; the temperature is between -40 degrees Celsius and 65 degrees Celsius; the effective voltage of TTS is 5V, the current is less than or equal to 1mA; the temperature is between -40 degrees Celsius and 90 degrees Celsius; the effective voltage of Tcase is 5V, the current is less than or equal to 0.1A; the temperature is between -40 degrees Celsius and 85 degrees Celsius;

[0139] Step S705 : The self-check module starts a status recognition algorithm program to obtain a function status array value.

[0140] Step S706: determine whether the part number matches the function status array value.

[0141] Here, the part number and the state array value can be compared to determine whether the software component of the motor system is correctly matched. For example, if the calculated state array value is 111110, the motor system is determined to be the left front motor system MCUFL. The part number read by the content software is A300085360, indicating that the current software is correctly matched, and the process proceeds to step S707. If the result is not a match, the process proceeds to step S708.

[0142] Step S707 : The software and hardware of the motor system are matched normally, and other self-check items are executed.

[0143] If it is determined to be matched, it indicates that the motor system hardware and software match is normal, then other test items such as tire pressure monitoring and oil level detection will continue to be executed, or the motor can be started directly.

[0144] Step S708: Report a matching error fault, start a system response, and report the corresponding function status array value.

[0145] If a mismatch is detected, a mismatch fault code is reported and relevant fault handling measures are initiated, alerting the vehicle to prevent further escalation of the problem. The function status array value, the current motor system part number, and the installed software part number are also reported. This helps further locate the fault and guide subsequent software part corrections. For example, if the calculated status array value is 111110, and the software reads part number A300082660, the motor system is the left front motor system MCUFL, but the installed software is the software corresponding to MCURR. This will prompt the vehicle to install the software with part number A300085360.

[0146] The detection method provided in the embodiment of the present application locates the motor system hardware by the difference in functional configuration, and then determines whether the software matches by comparing the built-in part numbers of the software. It can solve the problem of determining the correctness of the software installed in each motor system on the vehicle. By identifying the status of software parts during the power-on self-test, the software matching degree of each motor system can be identified at the vehicle offline electrical inspection station without increasing hardware costs, thereby preventing problems from leaking out. In addition, this detection method does not require the addition of new production line stations. The software matching status can be determined by checking whether there is a fault at the electric vehicle offline electrical inspection station.

[0147] Based on the foregoing embodiments, an embodiment of the present application provides a detection device, and the modules included in the detection device, as well as the units included in each module, can be implemented by a processor in a computer device; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a CPU, a microprocessor (Microprocessor Unit, MPU), a digital signal processor (Digital Signal Processing, DSP) or a field programmable gate array (Field Programmable Gate Array, FPGA), etc.

[0148] The present application further provides a detection device, Figure 8 A schematic diagram of the structure of the detection device provided in the embodiment of the present application is shown in FIG. Figure 8 As shown, the detection device 800 includes:

[0149] A first acquisition module 801 is configured to acquire identification information of a running program on a component to be detected, wherein the running program is used to control the operation of the component to be detected;

[0150] An acquisition module 802 is configured to acquire sampled values ​​of each feature quantity in a feature quantity sequence corresponding to the component to be detected when the component to be detected is running based on the running program, wherein each feature quantity corresponds to a function to be detected;

[0151] A first determining module 803 is configured to determine current state information of the component to be detected based on the sampling value of each feature quantity and the reference valid range corresponding to each feature quantity;

[0152] The second determining module 804 is configured to obtain reference state information of the component to be inspected based on the identification information, and determine an inspection result based on the current state information and the reference state information.

[0153] In some embodiments, the second determining module 804 includes:

[0154] A first acquisition submodule is configured to acquire a preset first mapping relationship table, wherein the first mapping relationship table stores a first correspondence between identification information and reference state information;

[0155] A first determining submodule, configured to determine reference state information corresponding to the identification information based on the first mapping relationship table;

[0156] a second determining submodule, configured to determine that the detection result is normal if the current state information and the reference state information satisfy a first matching condition;

[0157] The third determining submodule is configured to determine that the detection result is a fault if the current state information and the reference state message do not satisfy the first matching condition.

[0158] In some embodiments, the detection device 800 further includes:

[0159] A second acquisition module is configured to acquire a second mapping relationship table, wherein the second mapping relationship table stores a first correspondence relationship between identification information and reference state information, and further stores a second correspondence relationship between identification information and reference version information;

[0160] A third acquisition module is used to obtain the current version information of the program running on the component to be detected;

[0161] a third determining module, configured to determine, based on the second mapping relationship table, a reference status message and reference version information corresponding to the identification information;

[0162] A fourth determination module is configured to determine a detection result based on the current state information, the current version information, the reference state information, and the reference version information.

[0163] In some embodiments, the fourth determining module includes:

[0164] a fourth determining submodule, configured to determine that the detection result is normal if the current state information and the reference state information satisfy a first matching condition, and the current version information and the reference version information satisfy a second matching condition;

[0165] A fifth determining submodule is configured to determine that the detection result is a fault if the current state information and the reference state information do not satisfy the first matching condition, and / or the current version information and the reference version information do not satisfy the second matching condition.

[0166] In some embodiments, the detection device 800 further includes:

[0167] A fifth determining module, configured to determine that the detection result is a fault and control the component to be detected to stop operating;

[0168] a generating module, configured to determine a fault code corresponding to the detection result, and generate an alarm message based on the identification information and the current state information;

[0169] An output module is used to output the fault code and the warning message.

[0170] In some embodiments, the detection device 800 further includes:

[0171] The sixth determination module is configured to determine that the detection result is normal and continue to control the operation of the component to be detected based on the operation program.

[0172] In some embodiments, the first determining module 803 includes:

[0173] a first setting submodule, configured to, if it is determined based on the sampling values ​​of the respective feature quantities that a first target feature quantity exists among the respective feature quantities and is within a corresponding reference valid range, determine that a first to-be-detected function corresponding to the first target feature quantity is in an enabled state, and set a current state of the first to-be-detected function to a first preset value;

[0174] The second setting submodule is used to determine that the second target feature quantity among the feature quantities is outside the corresponding reference valid range if it is determined based on the sampling values ​​of the respective feature quantities, determine that the second function to be detected corresponding to the second target feature quantity is in a disabled state, and set the current state of the second function to be detected to a second preset value, which is different from the first preset value.

[0175] It should be noted that the description of the detection device in the embodiment of the present application is similar to the description of the above-mentioned method embodiment and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiment of the present device, please refer to the description of the method embodiment of the present application for understanding.

[0176] It should be noted that, in the embodiment of the present application, if the above-mentioned system upgrade method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0177] Accordingly, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the detection method provided in the above embodiment when the computer program is executed by a processor.

[0178] The present application provides a detection device. Figure 9 A schematic diagram of the structure of the detection device provided in the embodiment of the present application is shown in FIG. Figure 9 As shown, the detection device 900 includes: a processor 901, at least one communication bus 902, a user interface 903, at least one external communication interface 904, and a memory 905. The communication bus 902 is configured to enable connection and communication between these components. The user interface 903 includes a display screen, and the external communication interface 904 can include a standard wired interface and a wireless interface. The processor 901 is configured to execute the detection method program stored in the memory to implement the detection method provided in the above embodiment.

[0179] The description of the above detection device and storage medium embodiments is similar to the description of the above method embodiments and has similar beneficial effects as the method embodiments. For technical details not disclosed in the detection device and storage medium embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0180] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.

[0181] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0182] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0183] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed across multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0184] In addition, all functional units in the embodiments of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the above-mentioned integrated units can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0185] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiments; and the aforementioned storage medium includes: mobile storage devices, ROM, disks or optical disks, and other media that can store program codes.

[0186] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the prior art, 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 enabling an AC to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.

[0187] The above is merely an embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A detection method, characterized in that: The method comprises: Obtaining identification information of a running program on the component to be detected, wherein the running program is used to control the operation of the component to be detected; When the component to be detected is running based on the running program, sampling values ​​of each feature quantity in the feature quantity sequence corresponding to the component to be detected are collected, wherein each feature quantity corresponds to a function to be detected; Determining the state of the corresponding function to be detected based on the sampling value of each feature quantity and the reference effective range corresponding to each feature quantity; and determining the current state information of the component to be detected based on the state of each function to be detected; wherein the state of the function to be detected is an enabled state or a disabled state; Obtain a preset first mapping relationship table, wherein the first mapping relationship table stores a first correspondence between identification information and reference state information; determine the reference state information corresponding to the identification information based on the first mapping relationship table; if the current state information and the reference state information meet a first matching condition, determine that the detection result is normal; if the current state information and the reference state information do not meet the first matching condition, determine that the detection result is a fault, and the detection result is used to characterize whether the running program matches the component to be detected.

2. The detection method according to claim 1, characterized in that The method further comprises: Acquire a second mapping relationship table, wherein the second mapping relationship table stores a first correspondence relationship between identification information and reference state information, and further stores a second correspondence relationship between identification information and reference version information; Obtaining the current version information of the program running on the component to be detected; Determine, based on the second mapping relationship table, the reference state information and the reference version information corresponding to the identification information; A detection result is determined based on the current state information, the current version information, the reference state information, and the reference version information.

3. The method according to claim 2, characterized in that The determining a detection result based on the current state information, the current version information, the reference state information, and the reference version information includes: If the current state information and the reference state information meet a first matching condition, and the current version information and the reference version information meet a second matching condition, determining that the detection result is normal; If the current state information and the reference state information do not satisfy the first matching condition, and / or the current version information and the reference version information do not satisfy the second matching condition, the detection result is determined to be a fault.

4. The method according to claim 1 or 3, characterized in that The method further comprises: Determining that the detection result is a fault, and controlling the component to be detected to stop operating; Determining a fault code corresponding to the detection result, and generating an alarm message based on the identification information and the current state information; Output the fault code and the warning message.

5. The method according to claim 1 or 3, characterized in that The method further comprises: Determine that the detection result is normal, and continue to control the operation of the component to be detected based on the operating program.

6. The method according to any one of claims 1 to 3, characterized in that The determining of the current state information of the component to be detected based on the sampling value of each feature quantity and the reference effective range corresponding to each feature quantity includes: If it is determined based on the sampled values ​​of the respective feature quantities that a first target feature quantity exists among the respective feature quantities and is within the corresponding reference valid range, determining that a first to-be-detected function corresponding to the first target feature quantity is in an enabled state, and setting the current state of the first to-be-detected function to a first preset value; If it is determined based on the sampling values ​​of the various characteristic quantities that there is a second target characteristic quantity among the various characteristic quantities that is outside the corresponding reference valid range, it is determined that the second function to be detected corresponding to the second target characteristic quantity is in a disabled state, and the current state of the second function to be detected is set to a second preset value, which is different from the first preset value.

7. A detection device, characterized in that: The detection device comprises: A first acquisition module is configured to acquire identification information of a running program on the component to be detected, wherein the running program is used to control the operation of the component to be detected; an acquisition module, configured to acquire, when the component to be detected is running based on the running program, sample values ​​of each feature quantity in a feature quantity sequence corresponding to the component to be detected, wherein each feature quantity corresponds to a function to be detected; A first determining module is configured to determine the state of the corresponding function to be detected based on the sampling value of each feature quantity and the reference valid range corresponding to each feature quantity; and determine the current state information of the component to be detected based on the state of each function to be detected; wherein the state of the function to be detected is an enabled state or a disabled state; The second determination module is used to obtain a preset first mapping relationship table, wherein the first mapping relationship table stores a first correspondence between identification information and reference state information; determine the reference state information corresponding to the identification information based on the first mapping relationship table; if the current state information and the reference state information meet a first matching condition, determine that the detection result is normal; if the current state information and the reference state information do not meet the first matching condition, determine that the detection result is a fault, and the detection result is used to characterize whether the running program matches the component to be detected.

8. A detection device, characterized in that: The detection equipment includes: processor; and a memory for storing a computer program executable on the processor; Wherein, when the computer program is executed by a processor, it implements the detection method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are configured to execute the detection method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • State detection method and device

    CN109445412A

  • Hardware self-checking method and device, communication equipment and storage medium

    CN110647434A

  • Micro-service state detection method and device, electronic equipment and storage medium

    CN112486629A