Diagnosis authority management method and device, equipment and storage medium
By setting menu configuration codes in the electronic control unit of the car, generating target menus, and realizing permission management of diagnostic functions, the problems of inconvenient and high cost of diagnostic functions in the prior art are solved, and diagnostic efficiency and safety are improved.
Patent Information
- Application Number
- CN202410994753.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-07-23
AI Technical Summary
The existing automotive diagnostic function permission control methods cannot effectively distinguish diagnostic scenarios and vehicle model configurations, resulting in inconvenient management of diagnostic functions, high workload and high cost.
By setting menu configuration codes in the vehicle's electronic control unit, a target menu is generated based on the configuration code, the authority management of diagnostic functions is realized, and the diagnostic function requirements under different scenarios and vehicle model configurations are ensured.
It improves the working efficiency of diagnostic operations, reduces costs, ensures the safety and accuracy of diagnostic functions, and adapts to changes in demand in different scenarios and models.
Smart Images

Figure CN118938859A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle diagnosis technology, and in particular to a diagnostic authority management method, device, equipment and storage medium. Background Art
[0002] With the continuous development of the automobile industry, the role of automobile diagnosis has become increasingly prominent. Whether in the field of research and development, production or after-sales, automobile diagnosis is an indispensable function. Some diagnostic functions are not supported in the same way in different scenarios or different models. For example: 1. The function of writing some configuration words only needs to be supported on the production line. This function is not needed in the after-sales scenario. If it is open to after-sales, it may cause hidden dangers to the vehicle; 2. The electronic control units ECU of some vehicles support different diagnostic functions under different vehicle configurations, and some functions are not open to low-end models. Therefore, for the diagnostic function, there should be corresponding permission control for different models or scenarios for better management and greater security.
[0003] There are currently two common types of diagnostic function permission control: 1. The diagnostic software maximizes the development of the diagnostic function of the ECU, that is, no matter what the scenario or vehicle configuration, the diagnostic software displays all diagnostic menus for this type of ECU, and the user chooses to execute according to the diagnostic needs; 2. For this type of ECU, the diagnostic menu is changed in the code for different vehicle configurations, that is, for vehicle types A and B with the same type of ECU, the diagnostic menus of the two are made inconsistent by modifying their codes.
[0004] However, both methods have their defects: 1. Without permission control, the diagnostic menu of the ECU cannot distinguish between diagnostic scenarios and vehicle configurations, and cannot achieve diagnostic function control. 2. Modifications in the code require different diagnostic menus for different vehicle configurations, which is a lot of work. Especially when the diagnostic functions of the ECU are added or deleted, the diagnostic software needs to be modified a lot, and different configurations need to be modified, which is too costly.
[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The main purpose of this application is to provide a diagnostic authority management method, device, equipment and storage medium, aiming to solve the technical problem of the need for diagnostic authority management in different scenarios or different vehicle models due to different requirements for vehicle diagnostic functions.
[0007] To achieve the above objectives, the present application proposes a diagnostic authority management method, which is applied to a diagnostic terminal and includes the following steps:
[0008] Read the menu configuration code in the electronic control unit of the target vehicle;
[0009] generating a target menu based on the menu configuration code;
[0010] Based on the target menu, a target diagnostic operation is performed on the target vehicle to obtain a vehicle diagnostic result.
[0011] In one embodiment, the step of generating a target menu based on the menu configuration code includes:
[0012] Read the menu configuration code;
[0013] Initialization is performed according to the menu configuration code to generate a target menu.
[0014] In one embodiment, the step of initializing according to the menu configuration code to obtain the target menu includes:
[0015] If the state in the menu configuration code is no, the diagnostic function is shielded;
[0016] If the status in the menu configuration code is yes, the diagnostic function is added to the target menu.
[0017] In one embodiment, the step of completing a target diagnosis operation on the target vehicle based on the target menu to obtain a vehicle diagnosis result includes:
[0018] Receive vehicle diagnostic instructions;
[0019] According to the vehicle diagnostic instruction and based on the target menu, a diagnostic request message is sent to the vehicle end, and the vehicle end sends the diagnostic request message to the corresponding electronic control unit for diagnostic execution, and generates a diagnostic response message;
[0020] A diagnosis response message sent by the vehicle end is received, and a vehicle diagnosis result is obtained according to the diagnosis response message.
[0021] In one embodiment, the diagnostic authority management method is applied to a vehicle side, and the method includes:
[0022] Setting menu configuration codes in an electronic control unit of a target vehicle;
[0023] In response to a read instruction from the diagnostic terminal, the menu configuration code is provided to the diagnostic terminal, the diagnostic terminal generates a target menu based on the menu configuration code, and based on the target menu, a target diagnostic operation is performed on a target vehicle to obtain a vehicle diagnostic result.
[0024] In one embodiment, in response to a read instruction from the diagnostic terminal, the menu configuration code is provided to the diagnostic terminal, the diagnostic terminal generates a target menu based on the menu configuration code, and based on the target menu, a target diagnostic operation is performed on a target vehicle to obtain a vehicle diagnostic result, the steps include:
[0025] In response to a read request instruction from the diagnostic terminal, the read request instruction is sent to a corresponding electronic control unit for execution, and the menu configuration code is provided to the diagnostic terminal;
[0026] Receiving a diagnosis request message sent by the diagnosis terminal;
[0027] Sending the diagnostic request message to the corresponding electronic control unit for diagnostic execution and generating a diagnostic response message;
[0028] The diagnostic response message is sent to the diagnostic terminal, and the diagnostic terminal obtains the vehicle diagnostic result according to the diagnostic response message.
[0029] In one embodiment, the method further comprises:
[0030] Receive modification operation instructions;
[0031] The menu setting code is modified according to the modification operation instruction, so that the diagnosis end obtains a modified target menu according to the menu configuration code after the modification operation.
[0032] In addition, to achieve the above purpose, the present application also proposes a diagnostic authority management device, the diagnostic authority management device comprising:
[0033] A reading module, used for reading a menu configuration code in an electronic control unit of a target vehicle;
[0034] A generating module, used for generating a target menu based on the menu configuration code;
[0035] The diagnosis module is used to complete the target diagnosis operation on the target vehicle based on the target menu to obtain the vehicle diagnosis result.
[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a device, characterized in that the device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the diagnostic authority management method described above.
[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the diagnostic authority management method described above are implemented.
[0038] One or more technical solutions proposed in this application have at least the following technical effects:
[0039] The embodiments of the present application propose a diagnostic authority management method, apparatus, device and storage medium, which read a menu configuration code in an electronic control unit of a target vehicle; generate a target menu based on the menu configuration code; based on the target menu, complete a target diagnostic operation on the target vehicle to obtain a vehicle diagnostic result, and manage the diagnostic function authority of the target vehicle by setting a menu configuration code, thereby effectively solving the technical problem of needing to manage diagnostic authority due to different diagnostic function requirements for vehicles in different scenarios or different vehicle model configurations, and improving the work efficiency of diagnostic operations on vehicles. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1 This is a flowchart of a first exemplary embodiment of the diagnostic authority management method of this application;
[0043] Figure 2 This is a flowchart of a third exemplary embodiment of the diagnostic authority management method of this application;
[0044] Figure 3 A schematic diagram of a menu configuration code of a third exemplary embodiment of the diagnostic authority management method of the present application;
[0045] Figure 4 This is a flowchart of a fifth exemplary embodiment of the diagnostic authority management method of the present application;
[0046] Figure 5 A schematic diagram of setting a first-level menu in a menu configuration code provided in an embodiment of the present application;
[0047] Figure 6 A schematic diagram of setting a secondary menu in a menu configuration code provided in an embodiment of the present application;
[0048] Figure 7 A schematic diagram of a target menu involved in the diagnostic authority management method of this application;
[0049] Figure 8 This is a schematic diagram of the module structure of the diagnostic authority management device of this application;
[0050] Fig. 9 Schematic diagram of the device structure of the hardware operating environment involved in the diagnostic authority management method in the embodiment of the present application.
[0051] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0053] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0054] The main solution of the embodiment of the present application is: setting a menu configuration code in the electronic control unit of the target vehicle; in response to a read instruction from the diagnostic terminal, providing the menu configuration code to the diagnostic terminal, generating a target menu based on the menu configuration code by the diagnostic terminal, completing a target diagnostic operation on the target vehicle based on the target menu, and obtaining a vehicle diagnostic result; reading the menu configuration code in the electronic control unit of the target vehicle at the diagnostic terminal; generating a target menu based on the menu configuration code; completing a target diagnostic operation on the target vehicle based on the target menu, and obtaining a vehicle diagnostic result. The present invention sets a write menu configuration code in the electronic control unit of the vehicle terminal; the diagnostic terminal reads the menu configuration code, generates a target menu, and completes a target diagnostic operation on the target vehicle based on the target menu, and obtains a vehicle diagnostic result, which effectively solves the technical problem of different diagnostic function requirements for the vehicle in different scenarios or different vehicle models and the need for diagnostic authority management, and improves the work efficiency of diagnostic operations on the vehicle.
[0055] At present, automobile diagnosis is an indispensable function in the research and development, production or after-sales of automobiles. However, the required diagnostic functions of automobiles are not the same in different scenarios or under different vehicle models. Existing technologies either have no authority control and cannot distinguish between diagnostic scenarios and vehicle model configurations, and cannot control diagnostic functions, or they modify the code for different vehicle model configurations. This method is very labor-intensive and costly.
[0056] This application writes a preset menu configuration code into the electronic control unit on the vehicle side according to the specific diagnostic scenario and vehicle model configuration, and manages the authority of the vehicle's diagnostic operations. It effectively distinguishes diagnostic operations according to the diagnostic scenario and vehicle model configuration, and avoids a large amount of work in modifying the code, thereby greatly improving the diagnostic efficiency of vehicle production, research and development, and after-sales, saving costs, and reducing diagnostic risks.
[0057] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device or a diagnostic authority management device capable of realizing the above functions. The following takes the diagnostic authority management device as an example to illustrate this embodiment and the following embodiments.
[0058] Based on this, the present application embodiment provides a diagnostic authority management method, referring to Figure 1 , Figure 1 The flowchart of the first exemplary embodiment of the diagnostic authority management method of the present invention is shown in FIG. 1 , wherein the diagnostic authority management method is applied to the diagnostic terminal and includes the following steps:
[0059] Step S10, reading a menu configuration code in an electronic control unit of a target vehicle.
[0060] The execution subject of the method of this embodiment can be a diagnostic authority management device, or a diagnostic authority management device or server. This embodiment takes a diagnostic authority management device as an example, and the diagnostic authority management device can be integrated on a vehicle-mounted device with data processing function.
[0061] It should be noted that the menu configuration code is a byte code written into the electronic control unit of the vehicle to preset the configuration of the diagnostic function. It consists of several bytes, and the byte length is determined by the actual situation. The diagnostic menu is configured through binary numbers. The target menu is the function menu finally displayed in the diagnostic terminal, which contains the diagnostic functions required under the target diagnostic scenario and target vehicle configuration, which is determined by the menu configuration code.
[0062] In addition, it should be noted that the vehicle's electronic control unit (ECU, Electronic Control Unit, electronic controller unit) is an important component of the vehicle, also known as the driving computer, on-board computer, etc., responsible for managing and controlling various electronic systems of the vehicle. Like ordinary computers, ECU is composed of a microprocessor, memory, input and output interface, analog-to-digital converter, and large-scale integrated circuits such as shaping and driving. In the ECU, the CPU is the core part, which has the functions of calculation and control. When the engine is running, it collects signals from various sensors, performs calculations, and converts the results of the calculations into control signals to control the operation of the controlled object. It also controls the memory (ROM / FLASH / EEPROM, RAM and other memories), input / output interface (I / O) and other external circuits; the program stored in the memory ROM is written based on data obtained through precise calculations and a large number of experiments. This inherent program continuously compares and calculates with the signals collected from various sensors when the engine is working. The results of the comparison and calculation are used to control multiple parameters such as engine ignition, air-fuel ratio, idle speed, exhaust gas recirculation, etc. Each vehicle's ECU contains specific software and configurations for monitoring and adjusting the engine, transmission, brake system, safety system, etc. Typically, the ECU's configuration and menu settings are pre-defined and installed by the vehicle manufacturer, and different ECUs may have different configuration codes and functions.
[0063] Step S20: generating a target menu based on the menu configuration code.
[0064] Step S30, based on the target menu, completing the target diagnosis operation on the target vehicle to obtain a vehicle diagnosis result.
[0065] Specifically, after receiving the vehicle diagnostic instruction, the diagnostic end sends a diagnostic request message to the vehicle end according to the vehicle diagnostic instruction and based on the target menu, and the vehicle end sends the diagnostic request message to the corresponding electronic control unit to execute the diagnostic request and generate a diagnostic response message; the diagnostic end receives the diagnostic response message sent from the vehicle end, and obtains the vehicle diagnostic result according to the diagnostic response message.
[0066] This embodiment uses the above scheme, specifically by reading the menu configuration code in the vehicle end at the diagnostic end to generate a target menu; based on the target menu, the target diagnostic operation is completed on the target vehicle to obtain the vehicle diagnostic result. The present invention sets a write menu configuration code in the electronic control unit at the vehicle end; the diagnostic end reads the menu configuration code to generate a target menu, and based on the target menu, the target diagnostic operation is completed on the target vehicle to obtain the vehicle diagnostic result, which effectively solves the technical problem of different diagnostic function requirements for vehicles in different scenarios or different models and the need for diagnostic authority management, and improves the work efficiency of diagnostic operations on vehicles.
[0067] Based on the first embodiment, a second embodiment of the present application is proposed. The difference between the second embodiment of the present application and the first embodiment is that:
[0068] In this embodiment, the step of generating a target menu based on the menu configuration code includes:
[0069] Step S101, reading the menu configuration code.
[0070] Step S102, initialization is performed according to the menu configuration code to generate a target menu.
[0071] It should be noted that the target menu refers to a set of diagnostic functions initialized by the diagnostic terminal according to the menu configuration code.
[0072] Specifically, the diagnostic terminal first connects with the vehicle terminal, and the connection can be either wireless or wired. The diagnostic terminal reads the menu configuration code in the electronic control unit of the vehicle, and then initializes the full-function menu according to the settings in the menu configuration code in the diagnostic terminal to generate a target menu. The full-function menu refers to a collection of all available diagnostic functions in the diagnostic terminal.
[0073] Further, as an implementation mode, the step of initializing according to the menu configuration code to obtain the target menu includes:
[0074] Step S1021: If the status in the menu configuration code is no, the diagnostic function is shielded.
[0075] Step S1022: If the status in the menu configuration code is yes, then the diagnostic function is added to the target menu.
[0076] Specifically, the diagnostic terminal is initialized according to the menu state set by the menu configuration code. The menu state is determined by the binary numbers "0" and "1" in the menu configuration code. If the menu state in the menu configuration code is no, that is, the binary number is "0 / 1", the diagnostic function is shielded. The shielding operation is to cancel the authority of the diagnostic function, and it is not displayed on the diagnostic terminal or displayed but in an unselectable state; if the menu state in the menu configuration code is yes, that is, the binary number is "1 / 0", the diagnostic function is added to the target menu, and the diagnostic operation can be selected. For the convenience of description, "1" is used to represent "yes", that is, the diagnostic function is added to the target menu, and the diagnostic operation can be selected; "0" is used to represent "no", and the diagnostic function is shielded.
[0077] Reference Figure 2 , Figure 2 It is a flowchart of a third exemplary embodiment of the diagnosis authority management method of the present invention.
[0078] Based on the second embodiment, a third embodiment of the present application is proposed. The difference between the third embodiment of the present application and the second embodiment is that:
[0079] In this embodiment, the step of completing the target diagnosis operation on the target vehicle based on the target menu and obtaining the vehicle diagnosis result includes:
[0080] Step S21, receiving a vehicle diagnosis instruction.
[0081] Step S22, according to the vehicle diagnostic instruction and based on the target menu, a diagnostic request message is sent to the vehicle end, and the vehicle end sends the diagnostic request message to the corresponding electronic control unit for executing the diagnostic request and generating a diagnostic response message.
[0082] Step S23, receiving the diagnosis response message sent by the vehicle end, and obtaining the vehicle diagnosis result according to the diagnosis response message.
[0083] It should be noted that the vehicle diagnostic instructions may include the diagnostic tasks to be executed (such as reading fault codes), the target objects for executing the tasks (such as vehicle parts that need to be diagnosed), etc., depending on the specific diagnostic scenarios and vehicle configuration requirements, and may be initiated regularly / actively by the user or system.
[0084] In addition, it should be noted that the diagnostic request message refers to a data packet used to send request information to the electronic control unit (ECU) of the vehicle during the vehicle diagnosis process. These messages are usually generated and sent by diagnostic tools or diagnostic software provided by the vehicle manufacturer. They contain specific instructions and parameters for requesting to read data, perform tests, clear fault codes or adjust specific vehicle parameters. The diagnostic request message includes but is not limited to the request type, the target electronic control unit address, the request parameters and the communication protocol, etc. The request type specifies the specific operation to be performed, such as reading data, performing tests or clearing fault codes; the target electronic control unit address specifies the address of the specific electronic control unit to which the request is to be sent, and each electronic control unit has a unique address in the vehicle network; the request parameters include the specific parameters and data required to perform the operation, such as the type of data to be read, the test items to be performed, etc.; the communication protocol specifies the protocol type used to communicate with the ECU, such as CAN (controller area network), LIN (local area network interconnection), etc.
[0085] In addition, it should be noted that the diagnostic response message refers to the response data packet returned by the vehicle's electronic control unit (ECU) to the diagnostic tool or diagnostic software during the vehicle diagnosis process. These responses include the result of the requested operation, the requested data, the test execution result or other relevant information; the diagnostic response message includes but is not limited to the response type, the target electronic control unit address, the response data, the execution status and the error code, etc. The response type indicates the specific type of the response, such as data response, execution result confirmation, error report, etc.; the target electronic control unit address indicates which specific electronic control unit the response comes from; the response data contains the result of the requested operation or the specific data requested, such as sensor data, vehicle status information, etc.; the execution status indicates the execution status of the requested operation, such as success, failure or other specific status codes; the error code may contain an error code or a fault code when there is a problem with the operation to help diagnose the cause of the problem.
[0086] In addition, it should be noted that the vehicle diagnostic results refer to the conclusions and reports drawn after diagnosing the vehicle, which usually include fault codes, sensor data, system status, performance parameters, etc. Each fault code corresponds to a specific problem or system failure, such as problems with the engine, braking system, transmission system, etc.; real-time data from various vehicle sensors include engine speed, vehicle speed, oil pressure, coolant temperature, etc.; system status reports the working status of each vehicle system, such as the health status and operating parameters of the engine, gearbox, braking system, air-conditioning system, etc.; vehicle performance parameters include acceleration time, fuel economy, emission levels, etc.
[0087] Specifically, first, the diagnostic end receives the vehicle diagnostic instruction, and sends a diagnostic request message to the vehicle end according to the vehicle diagnostic instruction and the target menu. The vehicle end sends the diagnostic request message to the corresponding electronic control unit for diagnosis execution and generates a diagnostic response message. The diagnostic end receives the diagnostic response message sent by the vehicle end, and obtains the vehicle diagnostic result according to the diagnostic response message, and displays the vehicle diagnostic result on the diagnostic end.
[0088] Based on the third embodiment, a fourth embodiment of the present application is proposed. The difference between the fourth embodiment of the present application and the third embodiment is that:
[0089] In this embodiment, the diagnostic authority management method is applied to the vehicle side, including the following steps:
[0090] Step S40, setting a menu configuration code in the electronic control unit of the target vehicle.
[0091] Step S50, in response to the read instruction of the diagnostic terminal, the menu configuration code is provided to the diagnostic terminal, the diagnostic terminal generates a target menu based on the menu configuration code, and based on the target menu, completes the target diagnostic operation on the target vehicle to obtain the vehicle diagnostic result.
[0092] Specifically, a menu configuration code is set in an electronic control unit of the target vehicle, and the setting of the menu configuration code includes setting at least one of a menu type, a number of menus, a menu identifier, a menu byte number, and a menu state.
[0093] The menu configuration code is used to set the management authority of the diagnostic function. The menu type indicates the type of menu to be set subsequently, such as a first-level menu, a second-level menu, or a third-level menu. For example, when the menu type is represented as "0×01", it indicates that the subsequent setting is a first-level menu; the number of menus indicates how many corresponding menus there are under this menu type. For example, when the number of menus is represented as "0×09", it indicates that there are 9 menus of this type; the menu identifier is the second-level and lower menus, indicating that the menu is located under the nth previous menu. For example, if the menu identifier of a second-level menu is "0×02", it indicates that the second-level menu is located under the second first-level menu; the number of menu bytes indicates how many bytes of space are required for the menu status of the menu. For example, if the menu status has 9 bits, 2 bytes of space are required for the menu status. In this case, the number of menu bytes is "0×02"; the menu status indicates the status of all the next-level options under the menu. There are two states: blocked and diagnosable. For example, the menu status of a second-level menu is "0×C0", which is converted to a binary number of "1100 0000", "1" means that the diagnostic function under the secondary menu is enabled, and "0" means that the diagnostic function under the secondary menu is disabled. For ease of understanding, please refer to Figure 3 , Figure 3This is a schematic diagram of the menu configuration code with a primary menu and a secondary menu, where 100 sets the menu type to a primary menu, 200 sets the number of menus in the primary menu, 300 sets the menu status of the primary menu, 400 sets the menu type to a secondary menu, 500 sets the number of menus in the secondary menu, 600 sets the menu identifier of the secondary menu, 700 sets the number of menu bytes in the secondary menu, and 800 sets the menu status of the secondary menu.
[0094] Through the above scheme, this embodiment specifically sets a menu configuration code in the electronic control unit of the target vehicle and manages the authority of the diagnostic function of the diagnostic terminal through the menu configuration code, thereby effectively solving the technical problem of the need for diagnostic authority management due to different requirements for the diagnostic functions of the vehicle in different scenarios or different models, and improving the work efficiency of diagnostic operations on the vehicle.
[0095] Reference Figure 4 , Figure 4 It is a flowchart of a fifth exemplary embodiment of the diagnosis authority management method of the present invention.
[0096] Based on the fourth embodiment, a fifth embodiment of the present application is proposed. The difference between the fifth embodiment of the present application and the fourth embodiment is that:
[0097] In this embodiment, in response to the reading instruction of the diagnostic terminal, the menu configuration code is provided to the diagnostic terminal, the diagnostic terminal generates a target menu based on the menu configuration code, and based on the target menu, a target diagnostic operation is performed on the target vehicle to obtain the vehicle diagnostic result, and the steps include:
[0098] Step S51, in response to the read request instruction of the diagnosis end, the read request instruction is sent to the corresponding electronic control unit for execution, and the menu configuration code is provided to the diagnosis end.
[0099] Step S52, receiving a diagnosis request message sent by the diagnosis terminal.
[0100] Step S53: sending the diagnosis request message to the corresponding electronic control unit for diagnosis execution and generating a diagnosis response message.
[0101] Step S54, sending the diagnostic response message to the diagnostic terminal, and the diagnostic terminal obtains the vehicle diagnostic result according to the diagnostic response message.
[0102] Specifically, first, the vehicle end responds to the read request instruction issued by the diagnostic end, sends the read request instruction to the corresponding electronic control unit for execution, and provides the menu configuration code to the diagnostic end, wherein the read request instruction is an instruction issued by the diagnostic end to request to read the menu configuration code.
[0103] Then the vehicle end receives the diagnosis request message sent by the diagnosis end, wherein the diagnosis request message is generated after the diagnosis end receives the vehicle diagnosis instruction.
[0104] Then the vehicle sends the diagnostic request message to the corresponding electronic control unit, which performs the diagnostic execution after receiving the diagnostic request message and generates a diagnostic response message. The diagnostic request message may include the diagnostic task to be performed and the target object of the task (such as the electronic control unit that needs to be diagnosed) according to the specific diagnostic scenario and vehicle configuration requirements, and the request message is sent to the target electronic control unit that performs the diagnostic task to perform the specific diagnostic task.
[0105] Finally, the vehicle end sends the diagnostic response message to the diagnostic end, and the diagnostic end obtains the vehicle diagnostic result based on the diagnostic response message. After receiving the diagnostic response message, the diagnostic end can perform further analysis and processing to obtain information such as the diagnostic request execution result, vehicle diagnostic data, etc., and can choose to display it on the interface of the diagnostic end.
[0106] A menu configuration code is set in the electronic control unit of the target vehicle at the vehicle end, and the menu configuration code is used to set the management authority of the diagnostic function; the menu configuration code in the vehicle end is read at the diagnostic end to generate a target menu; based on the target menu, a target diagnostic operation is completed on the target vehicle to obtain a vehicle diagnostic result. The present invention sets a write menu configuration code in the electronic control unit at the vehicle end; the diagnostic end reads the menu configuration code to generate a target menu, and based on the target menu, a target diagnostic operation is completed on the target vehicle to obtain a vehicle diagnostic result, which effectively solves the technical problem that diagnostic authority management is required due to different diagnostic function requirements for vehicles in different scenarios or different vehicle models, and improves the work efficiency of diagnostic operations on vehicles.
[0107] Based on the fifth embodiment, a sixth embodiment of the present application is proposed. The difference between the sixth embodiment of the present application and the fifth embodiment is that:
[0108] In this embodiment, the method further includes:
[0109] Step S60, receiving a modification operation instruction;
[0110] Step S70, performing a modification operation on the menu setting code according to the modification operation instruction, so that the diagnosis end obtains a modified target menu according to the menu configuration code after the modification operation.
[0111] It should be noted that the modification operation instructions are instructions that indicate how to modify the menu configuration code; the modified target menu is a new function menu obtained by modifying the menu configuration code based on the original target menu due to changes in specific actual conditions, and then initializing the diagnostic end according to the modified menu configuration code; the modification operations include but are not limited to adding, deleting, modifying menu status and other modification operations, which are used to modify the menu configuration code according to specific actual changes, and then generate a target menu corresponding to the needs.
[0112] Through the above scheme, this embodiment specifically modifies the menu setting code according to specific actual conditions, and then the diagnostic end obtains the target menu according to the menu configuration code after the modification operation, which effectively solves the problem of changes in diagnostic function authority management when the diagnostic requirements of the target vehicle change due to specific actual needs. It can effectively adapt to changes in diagnostic scenarios, improve the precise control of diagnostic function authorities, and improve the efficiency of diagnostic operations on the target vehicle.
[0113] For example, in order to help understand the implementation process of the diagnostic authority management method of this embodiment, this embodiment provides a specific scenario-based description of this solution:
[0114] 1. The diagnostic authority management method is applied to the vehicle side:
[0115] (1) Set the menu configuration code in the electronic control unit of the target vehicle.
[0116] The user determines the required target diagnostic function based on the diagnostic scenario and vehicle model configuration. In the electronic control unit on the vehicle side, based on the target diagnostic function, the menu configuration code is set in the vehicle's electronic control unit EUC, that is, the bytecode of the menu configuration code is written in the control unit. The menu configuration code is used to set the management authority of the diagnostic function.
[0117] The target menu is set in the menu configuration code, and the target menu setting includes at least one of the following: menu type, number of menus, menu identifier, number of menu bytes, and menu status. For ease of understanding, this solution uses a specific scenario-based description. The target menus include a primary menu and a secondary menu. There are more types of menus that are set according to the rules, which will not be described in detail here. For ease of understanding, please refer to Figure 5 , Figure 5 The schematic diagram of setting the first-level menu in the menu configuration code provided in the embodiment of the present application shows that Figure 5 The menu type in the orange area is represented by "0×01", which means that the following is the setting of the first-level menu in the target menu; Figure 5The number of menus is "0×09" in the blue area, indicating that there are 9 first-level menus in the target menu; because the number of first-level menus is 9, the menu status of the first-level menu occupies the next two bytes. Figure 5 The menu status of the first-level menu is "0×FB, 0×80" in the yellow area, and the corresponding binary number is "1111 1011, 1000 0000", which indicates the status of all first menus. "1" indicates that the electronic control unit of the target vehicle has the diagnostic function of the first-level menu, and "0" indicates that the electronic control unit of the target vehicle has shielded the diagnostic function of the first-level menu.
[0118] Then for easier understanding, please refer to Figure 6 , Figure 6 The schematic diagram of setting the secondary menu in the menu configuration code provided in the embodiment of the present application shows that in the setting of the secondary menu in the menu configuration code, Figure 6 The menu type in the orange area is "0×02", which means that the following is the setting of the secondary menu; Figure 6 The number of menus is "0×03" in the blue area, indicating that there are three secondary menus; the menu identifier indicates the position of the target primary menu to which the target secondary menu belongs, which is determined by the position of the target primary menu, such as Figure 6 The middle menu is marked with "0×02", "0×07", and "0×08" in the green area, indicating that the secondary menu is located under the second first-level menu, the seventh first-level menu, and the eighth first-level menu; the number of menu bytes indicates how many bytes of space the menu status occupies, so as to determine the binary value of several bytes to be read later as the representation of the menu status, such as Figure 6 The menu byte numbers in the gray area are "0×01", "0×01", and "0×01", indicating that the menu states of these three secondary menus each occupy 1 byte of space; Figure 6 The middle menu status is “0×C0”, “0×80”, and “0×C1” in the yellow area, and the corresponding binary numbers are “1100 0000”, “1000 0000”, and “1100 0001”. “1” means that the target menu has the diagnostic function under the secondary menu, and “0” means that the target menu blocks the diagnostic function under the secondary menu.
[0119] Therefore, the menu configuration code in the specific scenario implementation example of this solution is: 0×01 / 0×09 / 0×FB / 0×80 / 0×02 / 0×03 / 0×02 / 0×01 / 0×C0 / 0×07 / 0×01 / 0×80 / 0×01 / 0×C1
[0120] (2) In response to a read instruction from the diagnostic terminal, the menu configuration code is provided to the diagnostic terminal, the diagnostic terminal generates a target menu based on the menu configuration code, and based on the target menu, a target diagnostic operation is performed on the target vehicle to obtain a vehicle diagnostic result.
[0121] Firstly, in response to a read request instruction from the diagnosis end, the read request instruction is sent to a corresponding electronic control unit for execution, and the menu configuration code is provided to the diagnosis end.
[0122] Then the vehicle end receives the diagnosis request message sent by the diagnosis end, wherein the diagnosis request message is generated after the diagnosis end receives the vehicle diagnosis instruction.
[0123] Then the vehicle sends the diagnostic request message to the corresponding electronic control unit, which performs the diagnostic execution after receiving the diagnostic request message and generates a diagnostic response message. The diagnostic request message may include the diagnostic task to be performed and the target object of the task (such as the electronic control unit that needs to be diagnosed) according to the specific diagnostic scenario and vehicle configuration requirements, and the request message is sent to the target electronic control unit that performs the diagnostic task to perform the specific diagnostic task.
[0124] Finally, the vehicle end sends the diagnostic response message to the diagnostic end, and the diagnostic end obtains the vehicle diagnostic result based on the diagnostic response message. After receiving the diagnostic response message, the diagnostic end can perform further analysis and processing to obtain information such as the diagnostic request execution result, vehicle diagnostic data, etc., and can choose to display it on the interface of the diagnostic end.
[0125] (3) receiving a modification operation instruction; performing a modification operation on the menu setting code according to the modification operation instruction, so that the diagnosis end obtains a modified target menu according to the menu configuration code after the modification operation.
[0126] When specific actual needs change, for example, when some diagnostic functions need to be blocked and some diagnostic functions need to obtain operating permissions, a modification operation instruction is issued according to the specific actual needs, and the menu configuration code is modified according to the modification operation instruction. Then, the diagnostic end generates a modified target menu according to the menu configuration code after the modification operation.
[0127] 2. The diagnostic authority management method is applied to the diagnostic terminal:
[0128] (1) Reading a menu configuration code in an electronic control unit of a target vehicle; and generating a target menu based on the menu configuration code.
[0129] First, the menu configuration code set in the electronic control unit of the target vehicle is read. The diagnostic end is connected to the vehicle end, and the connection can be a wireless connection or a wired connection. The diagnostic end reads the menu configuration code in the electronic control unit of the vehicle.
[0130] Then, the diagnostic terminal initializes the full-function menu according to the settings in the menu configuration code to generate a target menu. If the menu status in the menu configuration code is no, the diagnostic function is shielded; if the menu status in the menu configuration code is yes, the diagnostic function is added to the target menu. The full-function menu refers to the collection of all available diagnostic functions in the diagnostic terminal.
[0131] For easier understanding, please refer to Figure 7 , Figure 7 A schematic diagram of a target menu provided in an embodiment of the present application, Figure 7 The diagnostic function in black font and the diagnostic function in red font are the full-function menus of the diagnostic end. The red font part is the target menu generated after initialization according to the menu configuration code. The black font is the blocked diagnostic function in the full-function menu, which is in a prohibited state. It cannot be displayed or cannot be selected in the blocked state on the diagnostic end. The binary number after the diagnostic function in the full-function menu is the menu state in the menu configuration code. The green font part is the menu state of the first-level menu from top to bottom. The first-level menu occupies nine bits, so two bytes, that is, sixteen bits of space, are allocated. The vacant part is represented by "0", and the corresponding expression is "0×FB, 0×80", and the corresponding binary number is "11111011, 1000 0000". The black font binary number after each secondary menu is the menu state of the secondary menu from top to bottom. Each secondary menu is allocated 8 bits of space. The subsequent vacant part that is less than 8 bits is filled with "0". The menu states corresponding to the three secondary menus are "0×C0", "0×80", and "0×C1", respectively, and the corresponding binary number is "1100 0000", "1000 0000", "11000001".
[0132] (2) Based on the target menu, a target diagnostic operation is performed on the target vehicle to obtain a vehicle diagnostic result.
[0133] First, a vehicle diagnostic instruction is received. Then, according to the vehicle diagnostic instruction and based on the target menu, a diagnostic request message is sent to the vehicle end, and the vehicle end sends the diagnostic request message to the corresponding electronic control unit for diagnostic execution and generates a diagnostic response message. Finally, a diagnostic response message sent by the vehicle end is received, and according to the diagnostic response message, a vehicle diagnostic result is obtained, and the vehicle diagnostic result is displayed on the diagnostic end.
[0134] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the diagnostic authority management method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0135] This application also provides a diagnostic authority management device, please refer to Figure 8 , the diagnostic authority management device comprises:
[0136] The reading module 801 is used to read the menu configuration code in the electronic control unit of the target vehicle;
[0137] A generating module 802, used for generating a target menu based on the menu configuration code;
[0138] The diagnosis module 803 is used to complete the target diagnosis operation on the target vehicle based on the target menu and obtain the vehicle diagnosis result.
[0139] The diagnostic authority management device provided by the present application adopts the diagnostic authority management method in the above-mentioned embodiment, which can solve the technical problems of diagnostic authority management. Compared with the prior art, the beneficial effects of the diagnostic authority management device provided by the present application are the same as the beneficial effects of the diagnostic authority management method provided by the above-mentioned embodiment, and the other technical features in the diagnostic authority management device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0140] The present application provides a diagnostic authority management device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the diagnostic authority management method in the above-mentioned embodiment one.
[0141] Reference below Fig. 9 , which shows a schematic diagram of the structure of a diagnostic authority management device suitable for implementing an embodiment of the present application. The diagnostic authority management device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The diagnostic authority management device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0142] like Fig. 9 As shown, the diagnostic authority management device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read On ly Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the diagnostic authority management device are also stored in RAM1004. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the diagnostic rights management device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a diagnostic rights management device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0143] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0144] The diagnostic authority management device provided by the present application adopts the diagnostic authority management method in the above embodiment, which can solve the technical problem that diagnostic authority management is required in different scenarios or different vehicle models due to different requirements for vehicle diagnostic functions. Compared with the prior art, the beneficial effects of the diagnostic authority management device provided by the present application are the same as the beneficial effects of the diagnostic authority management method provided by the above embodiment, and the other technical features in the diagnostic authority management device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0145] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0146] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0147] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the diagnostic authority management method in the above-mentioned embodiment.
[0148] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read On ly Memory), an erasable programmable read-only memory (EPROM: Erasable Programmab le Read On ly Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read On ly Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0149] The computer-readable storage medium may be included in the diagnosis authority management device; or may exist independently without being assembled into the diagnosis authority management device.
[0150] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the diagnosis authority management device, the diagnosis authority management device performs diagnosis authority management.
[0151] The computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0152] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0153] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0154] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned diagnostic authority management method, and can solve the technical problems of diagnostic authority management. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the diagnostic authority management method provided by the above-mentioned embodiment, and will not be repeated here.
[0155] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned diagnostic authority management method when executed by a processor.
[0156] The computer program product provided by the present application can solve the technical problem that different scenarios or different vehicle models require different diagnostic function requirements and need diagnostic authority management. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the diagnostic authority management method provided by the above embodiment, which will not be repeated here.
[0157] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A diagnostic authority management method, characterized in that: The diagnostic authority management method is applied to the diagnostic terminal, and the method includes: Read the menu configuration code in the electronic control unit of the target vehicle; generating a target menu based on the menu configuration code; Based on the target menu, a target diagnostic operation is performed on the target vehicle to obtain a vehicle diagnostic result.
2. The method according to claim 1, characterized in that The step of generating a target menu based on the menu configuration code comprises: Read the menu configuration code; Initialization is performed according to the menu configuration code to generate a target menu.
3. The method according to claim 2, characterized in that The step of initializing according to the menu configuration code to obtain the target menu comprises: If the menu status in the menu configuration code is No, the diagnostic function is shielded; If the menu status in the menu configuration code is yes, the diagnostic function is added to the target menu.
4. The method according to claim 1, characterized in that The step of completing a target diagnosis operation on the target vehicle based on the target menu to obtain a vehicle diagnosis result comprises: Receive vehicle diagnostic instructions; According to the vehicle diagnostic instruction and based on the target menu, a diagnostic request message is sent to the vehicle end, and the vehicle end sends the diagnostic request message to the corresponding electronic control unit for diagnostic execution, and generates a diagnostic response message; A diagnosis response message sent by the vehicle end is received, and a vehicle diagnosis result is obtained according to the diagnosis response message.
5. A diagnostic authority management method, characterized in that: The diagnostic authority management method is applied to a vehicle side, and the method includes: Setting menu configuration codes in an electronic control unit of a target vehicle; In response to a read instruction from the diagnostic terminal, the menu configuration code is provided to the diagnostic terminal, the diagnostic terminal generates a target menu based on the menu configuration code, and based on the target menu, a target diagnostic operation is performed on a target vehicle to obtain a vehicle diagnostic result.
6. The method according to claim 5, characterized in that The step of providing the menu configuration code to the diagnostic terminal in response to a read instruction of the diagnostic terminal, generating a target menu based on the menu configuration code by the diagnostic terminal, and completing a target diagnostic operation on a target vehicle based on the target menu to obtain a vehicle diagnostic result includes: In response to a read request instruction from the diagnostic terminal, the read request instruction is sent to a corresponding electronic control unit for execution, and the menu configuration code is provided to the diagnostic terminal; Receiving a diagnosis request message sent by the diagnosis terminal; Sending the diagnostic request message to the corresponding electronic control unit for diagnostic execution and generating a diagnostic response message; The diagnostic response message is sent to the diagnostic terminal, and the diagnostic terminal obtains the vehicle diagnostic result according to the diagnostic response message.
7. The method according to claim 5, characterized in that The method further comprises: Receive modification operation instructions; The menu setting code is modified according to the modification operation instruction, so that the diagnosis end obtains a modified target menu according to the menu configuration code after the modification operation.
8. A diagnostic authority management device, characterized in that: The device comprises: A reading module, used for reading a menu configuration code in an electronic control unit of a target vehicle; A generating module, used for generating a target menu based on the menu configuration code; The diagnosis module is used to complete the target diagnosis operation on the target vehicle based on the target menu to obtain the vehicle diagnosis result.
9. A diagnostic authority management device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the diagnostic authority management method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the diagnosis authority management method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Configuration method and device of automobile diagnosis function, and automobile diagnosis equipment
CN108303268A
Vehicle diagnosis menu generation method and device, equipment and medium
CN111694345A
Method, device and equipment for automatically generating EOL configuration code of control unit and storage medium
CN114862345A
Vehicle diagnosis method, device, equipment and medium
CN117032190A
Vehicle ECU configuration method and device and non-temporary computer readable storage medium
CN117130306A
