Fault diagnosis method, device and system based on SOA service and electronic equipment
By using a fault diagnosis method based on SOA services, the main control unit receives and processes diagnostic requests and sends fault diagnostic codes, solving the problem of developing UDS diagnostic functions separately for the ECU and achieving cost and time savings.
Patent Information
- Application Number
- CN202411262433.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2025-01-07
AI Technical Summary
In the existing technology, each electronic control unit (ECU) requires the separate development of UDS diagnostic function software that interacts directly with diagnostic equipment, resulting in high development difficulty, high cost and long R&D cycle, which increases the communication cost between OEMs and ECU suppliers.
By adopting a fault diagnosis method based on SOA services, the main control unit receives request instructions from the diagnostic equipment and sends response instructions containing fault diagnosis codes of the main control unit and each slave control unit. This enables the fault diagnosis function of the main control unit to be applied as an SOA service on different platforms, reducing the need for separate development for each ECU.
It reduces development costs for OEMs, simplifies the interaction process between ECUs and diagnostic equipment, and lowers development complexity and time costs.
Smart Images

Figure CN119270810A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle fault diagnosis, and in particular to a fault diagnosis method, device, system and electronic equipment based on SOA services. Background Art
[0002] In the prior art, during the diagnosis process of each electronic control unit (ECU) of a vehicle, it is necessary to perform a corresponding unified diagnostic service (UDS) for each ECU to complete the corresponding diagnostic function. As a result, each ECU needs to develop a separate UDS diagnostic function software that directly interacts with the diagnostic instrument.
[0003] However, the difficulty and workload of developing UDS diagnostic function software for each ECU are huge, and the development process also requires a lot of testing and verification, which is a big challenge for ECU suppliers with poor development capabilities. At the same time, it will greatly increase the communication costs and R&D cycle between OEMs and ECU suppliers, which is not conducive to the further development of the industry. Summary of the invention
[0004] The present application provides a fault diagnosis method, device, system and electronic device based on SOA service to solve the above technical problems.
[0005] According to a first aspect of the present application, a fault diagnosis method based on SOA service is provided, which is applied to a main control unit, and the method includes:
[0006] Receiving a diagnostic request instruction issued by a diagnostic device;
[0007] A response instruction including fault diagnostic codes of the master control unit and each slave control unit is sent based on the diagnosis request instruction.
[0008] In some implementations, before sending a response instruction including the fault diagnostic codes of the master control unit and each slave control unit based on the diagnosis request instruction, the method further includes:
[0009] receiving respective fault diagnostic codes sent by respective slave control units;
[0010] The faults of the slave control units are initially classified based on the fault diagnostic codes.
[0011] In some implementations, the response instruction includes: a fault diagnostic code, an initial fault classification, and a control unit identification.
[0012] In some implementations, receiving respective fault diagnostic codes sent by respective slave control units comprises:
[0013] Receive the respective fault diagnostic codes sent by each slave control unit through CAN application messages.
[0014] In some embodiments, the method further comprises:
[0015] receiving a control function execution instruction sent by the diagnostic device;
[0016] Parsing the control function execution instruction and identifying the slave control unit to be controlled;
[0017] The control function execution instruction is sent to the identified slave control unit.
[0018] In some embodiments, the method further comprises:
[0019] receiving a control function execution status fed back from the control unit;
[0020] The control function execution status is sent to a diagnostic device.
[0021] According to a second aspect of the present application, a fault diagnosis device based on SOA service is provided, which is arranged in a main control unit, and the device includes:
[0022] A diagnosis request instruction receiving module is configured to receive a diagnosis request instruction issued by a diagnosis device;
[0023] The diagnosis response module is configured to send a response instruction containing fault diagnosis codes of the master control unit and each slave control unit based on the diagnosis request instruction.
[0024] According to a third aspect of the present application, a fault diagnosis system based on SOA services is provided, the system comprising:
[0025] Diagnostic equipment for fault diagnosis and control of the master control unit and slave control units;
[0026] a main control unit, electrically connected to the diagnostic device and the slave control unit, configured to receive the fault diagnostic code from the slave control unit and execute the fault diagnosis method based on the SOA service as described above; and
[0027] At least one slave control unit is used to send a fault diagnosis code to the master control unit, and implement fault diagnosis and control of the diagnostic device itself based on the master control unit.
[0028] According to a fourth aspect of the present application, an electronic device is provided, comprising: a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the above-mentioned SOA service-based fault diagnosis method.
[0029] According to a fifth aspect of the present application, a readable storage medium is provided, characterized in that the readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the above-mentioned SOA service-based fault diagnosis method are implemented.
[0030] In summary, the SOA service-based fault diagnosis method, device, system, and electronic device provided by the present application have at least the following beneficial effects:
[0031] This application solves the technical problem in the prior art that each ECU needs to develop UDS diagnostic function software that directly interacts with the diagnostic device separately by using a main control unit to receive a diagnostic request instruction issued by a diagnostic device, and based on the diagnostic request instruction, the main control unit sends a response instruction containing the fault diagnostic code of the main control unit and each slave control unit. This application enables the diagnostic device to obtain the fault diagnostic information of the main control unit and each slave control unit through the main control unit, and only needs to develop a fault diagnostic function in the main control unit. The fault diagnostic function in the main control unit can be applied as an SOA service in different platforms, without the need to spend time and effort to develop UDS diagnostic function software that directly interacts with the diagnostic device separately for each ECU, greatly reducing the development cost of the host manufacturer. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0033] Figure 1 A flowchart of a first embodiment of a fault diagnosis method based on SOA services provided in an embodiment of the present application;
[0034] Figure 2 A system architecture diagram for the SOA service-based fault diagnosis method provided in the embodiment of the present application;
[0035] Figure 3 A schematic diagram of the principle of a fault diagnosis method based on SOA services provided in an embodiment of the present application;
[0036] Figure 4 A flowchart of a second embodiment of a fault diagnosis method based on SOA services provided in an embodiment of the present application;
[0037] Figure 5 A schematic diagram of an application example of a fault diagnosis method based on SOA service provided in an embodiment of the present application;
[0038] Figure 6 A structural diagram of a fault diagnosis device based on SOA service provided in an embodiment of the present application;
[0039] Figure 7 A structural diagram of a fault diagnosis system based on SOA services provided in an embodiment of the present application;
[0040] Figure 8 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to make the above and other features and advantages of the present application more clear, the present application is further described below in conjunction with the accompanying drawings. It should be understood that the specific embodiments given herein are for the purpose of explaining to those skilled in the art and are only exemplary and not restrictive.
[0042] In the following description, many specific details are set forth to provide a thorough understanding of the present application. However, it is apparent to those skilled in the art that specific details need not be adopted to practice the present application. In other cases, well-known steps or operations are not described in detail to avoid blurring the present application.
[0043] The SOA service-based fault diagnosis method provided in the embodiment of the present application can be executed by the SOA service-based fault diagnosis device provided in the embodiment of the present application, and the device can be configured in the main control unit of the SOA service-based fault diagnosis system.
[0044] Reference Figure 1 As shown, the present application provides a fault diagnosis method based on SOA service, which is applied to a main control unit and includes steps 110-120.
[0045] Step 110: receiving a diagnosis request instruction issued by a diagnosis device.
[0046] The SOA service of this application refers to a service-oriented architecture. The UDS diagnostic method of this application based on the SOA service can apply the relevant software developed by the main control unit as a SOA service in other control units.
[0047] In some embodiments, referring to Figure 2 As shown, the diagnostic device G of the present application may be a diagnostic instrument.
[0048] Based on the above embodiment, the diagnosis request instruction issued by the diagnosis device G of the present application may be a UDS instruction. The UDS instruction may be used to request diagnosis of all control units, or may be used to request the master control unit or one or more control units in each slave control unit.
[0049] In some embodiments, referring to Figure 3 As shown, the main control unit can be a main electronic control unit (main ECU, where ECU is also called a driving computer), and the slave control units can include: slave control unit C (also known as ECU1), slave control unit D (also known as ECU2), slave control unit E (also known as ECU3) and slave control unit F (also known as ECU4). For example, the main ECU and ECU1, ECU2, ECU3 and ECU4 can transmit command signals at a rate of 500kbps (kbps is a bit rate unit) through a power CAN signal (a digital signal). In specific applications, each slave control unit can be a controller of various functional devices or applications such as a motor controller, a battery controller, an air conditioning controller, a gear controller, etc.
[0050] Step 120: Send a response instruction including the fault diagnostic codes of the master control unit and each slave control unit based on the diagnosis request instruction.
[0051] In some embodiments, the fault diagnostic codes of the master control unit and each slave control unit may be built-in, and based on specific diagnostic request instructions, the corresponding fault diagnostic codes of the master control unit and / or each slave control unit are matched, and response instructions for the fault diagnostic codes of the corresponding master control unit and / or each slave control unit are generated.
[0052] This application solves the technical problem in the prior art that each ECU needs to develop UDS diagnostic function software that directly interacts with the diagnostic device separately by using a main control unit to receive a diagnostic request instruction issued by a diagnostic device, and based on the diagnostic request instruction, the main control unit sends a response instruction containing the fault diagnostic code of the main control unit and each slave control unit. This application enables the diagnostic device to obtain the fault diagnostic information of the main control unit and each slave control unit through the main control unit, and only needs to develop a fault diagnostic function in the main control unit. The fault diagnostic function in the main control unit can be applied as an SOA service in different platforms, without the need to spend time and effort to develop UDS diagnostic function software that directly interacts with the diagnostic device separately for each ECU, greatly reducing the development cost of the host manufacturer.
[0053] Refer to the attached Figure 4 As shown, a flow chart of a second embodiment of the fault diagnosis method based on SOA service of the present application is provided, and the method includes steps 410-490.
[0054] Step 410: receiving the respective fault diagnostic codes sent by the respective slave control units.
[0055] In one embodiment, each slave control unit may actively send its own fault diagnostic code to the master control unit, or the master control unit may actively obtain the fault diagnostic code of each slave control unit. For example, after the master control unit receives the diagnostic request instruction from the diagnostic device, it actively obtains the fault diagnostic code from each slave control unit.
[0056] In some implementations, the master control unit may receive the respective fault diagnostic codes sent by the slave control units via CAN application messages.
[0057] like Figure 2 As shown in , the master control unit can implement CAN data interaction with each slave control unit through the service layer software.
[0058] Step 420 , initially classifying the faults of each slave control unit based on the fault diagnostic code.
[0059] In some implementations, the faults of the master control unit and each slave control unit may be initially classified based on the fault diagnosis code, that is, the faults of the master control unit and each slave control unit may be initially classified, and the faults of each slave control unit received may be initially classified.
[0060] In some embodiments, for example, the initial classification of faults of each slave control unit based on the fault diagnostic code is mainly based on the system and fault type to which the fault diagnostic code belongs, and the system and fault type to which the fault diagnostic code belongs can be determined based on the ISO15031-6 standard.
[0061] Based on this, the master control unit of the present application can obtain the initial classification of the fault diagnostic codes corresponding to each slave control unit.
[0062] After receiving the fault diagnosis codes sent by each slave control unit, the master control unit saves the corresponding relationship between each slave control unit and its own fault diagnosis code.
[0063] In one embodiment, if the main control unit has a fault diagnosis function, that is, the main control unit can perform initial classification of faults according to the fault diagnostic code, the main control unit further saves the correspondence between each control unit and the fault diagnostic code and the initial classification of the fault.
[0064] Step 430: Receive a diagnosis request instruction issued by a diagnosis device.
[0065] like Figure 2 As shown in , the main control unit can interact with the diagnostic device through the application layer software, receive the diagnostic request instruction sent by the diagnostic device, and communicate with the internal service layer software through the internal SOA related protocol.
[0066] Step 440: Send a response instruction including the fault diagnostic codes of the master control unit and each slave control unit based on the diagnosis request instruction.
[0067] In one implementation manner, after receiving the diagnosis request instruction from the diagnosis device, the main control unit may send the fault diagnosis codes of all control units stored locally to the diagnosis device.
[0068] In another embodiment, the main control unit can parse the fault request instruction, identify the control unit identifier carried in the fault request instruction, and send the fault diagnosis code of the corresponding control unit based on the control unit identifier. That is, the embodiment of the present application supports the diagnostic device to request only the fault diagnosis codes of some control units, and after the main control unit identifies the identifier of the control unit requested by the diagnostic device, it only sends the fault diagnosis code of the control unit.
[0069] In some implementations, the response instruction may include: a fault diagnostic code and a control unit identifier.
[0070] In other implementations, the response instruction may include not only the fault diagnostic code and the control unit identifier, but also the initial fault classification.
[0071] Step 450: receiving a control function execution instruction sent by the diagnostic device.
[0072] In some implementations, based on a response instruction to a specific fault diagnostic code, the diagnostic device will send a corresponding control function execution instruction to perform corresponding control on a related control unit corresponding to the response instruction.
[0073] Based on this, the main control unit of the present application can receive execution instructions required for further control.
[0074] Step 460: parse the control function execution instruction and identify the slave control unit to be controlled.
[0075] In some embodiments, the control function execution instruction includes an identifier of a control unit to be controlled. After receiving the control function execution instruction, the main control unit can identify the control unit to be controlled by parsing the control function execution instruction. The control unit to be controlled can be the main control unit itself or each slave control unit.
[0076] Step 470: Send the control function execution instruction to the identified slave control unit.
[0077] Based on this, the main control unit of the present application can send the control function execution instruction to the corresponding slave control unit.
[0078] It can be understood that if the main control unit itself needs to be controlled, the control function execution instruction is sent to the corresponding execution unit.
[0079] Step 480: Receive the control function execution status fed back from the control unit.
[0080] In some implementations, the slave control unit may feed back the control function execution status to the master control unit, wherein the slave control unit may send the control function execution status to the master control unit via a CAN message.
[0081] Step 490: Send the control function execution status to the diagnostic device.
[0082] The master control unit of the present application can send the control function execution status of the slave control unit to the diagnostic device, thereby realizing indirect control of each slave control unit by the diagnostic device.
[0083] In the fault diagnosis method based on SOA service described in the embodiment of the present application, each slave control unit can send its own fault diagnosis code to the master control unit. It only needs to develop a fault diagnosis function in the master control unit, and the diagnostic device can only interact with the master control unit to realize the diagnosis and control functions of the master control unit and all slave control units. The fault diagnosis function in the master control unit can be applied as an SOA service in different platforms, without the need to spend time and effort to develop UDS diagnostic function software for each ECU that directly interacts with the diagnostic device, greatly reducing the development cost of the host manufacturer.
[0084] like Figure 5 The figure shows an application example of the fault diagnosis method based on SOA service of the present application. In this example, the main control unit is the vehicle controller, and the slave control unit includes: motor controller, battery controller, air conditioning controller and gear controller. The vehicle controller includes service layer software and application layer software. The service layer software is used to execute services for interacting with each ECU for UDS information acquisition / forced execution and other instructions; the application layer software has UDS diagnostic functions. The motor controller, battery controller, air conditioning controller and gear controller send the faults detected by themselves to the vehicle controller through CAN application messages. The diagnostic instrument obtains the DTC fault information of the vehicle controller and each ECU by sending UDS instructions to the vehicle controller, and realizes the control of each ECU by the diagnostic instrument through the vehicle controller. At the same time, the diagnostic instrument can also send UDS instructions such as forced actions to the vehicle controller. The vehicle controller interacts with each ECU through CAN application messages to realize the UDS functions such as forced actions of each controller indirectly controlled by the diagnostic instrument.
[0085] The present application embodiment provides a fault diagnosis device based on SOA service, which is arranged in a main control unit, as shown in the attached Figure 6As shown, the apparatus includes a diagnosis request instruction receiving module 610 and a diagnosis response module 620 .
[0086] The diagnosis request instruction receiving module 610 is configured to receive a diagnosis request instruction issued by a diagnosis device; the diagnosis response module 620 is configured to send a response instruction containing fault diagnostic codes of the master control unit and each slave control unit based on the diagnosis request instruction.
[0087] The present application embodiment provides a fault diagnosis system based on SOA services, as shown in the attached Figure 7 As shown, the system includes: a diagnostic device 710, which is used to perform fault diagnosis and control on a main control unit and a slave control unit; a main control unit 720, which is electrically connected to the diagnostic device and each slave control unit, and is used to receive a fault diagnostic code from each slave control unit and execute the above-mentioned SOA service-based fault diagnosis method; and a plurality of slave control units 730, which are used to send a fault diagnostic code to the main control unit, and implement the fault diagnosis and control of the diagnostic device itself based on the main control unit.
[0088] It should be understood that the specific features, operations and details described hereinabove with respect to the method of the present application may also be similarly applied to the device and system of the present application, or vice versa. In addition, each step of the method of the present application described above may be performed by a corresponding component or unit of the device or system of the present application.
[0089] It should be understood that each module / unit of the system of the present application can be implemented in whole or in part by software, hardware, firmware or a combination thereof. Each module / unit can be embedded in the processor of the electronic device or independent of the processor in the form of hardware or firmware, or can be stored in the memory of the electronic device in the form of software for the processor to call to perform the operation of each module / unit. Each module / unit can be implemented as an independent component or module, or two or more modules / units can be implemented as a single component or module.
[0090] like Figure 8 As shown, the present application provides an electronic device 800, which includes a processor 810 and a memory 820 storing computer program instructions. When the processor 810 executes the computer program instructions, each step of the above-mentioned SOA service-based fault diagnosis method is implemented. The electronic device 800 can be a server, a terminal, or any other electronic device with necessary computing and / or processing capabilities in a broad sense.
[0091] In one embodiment, the electronic device 800 may include a processor, a memory, a network interface, a communication interface, etc. connected via a system bus. The processor of the electronic device 800 may be used to provide necessary computing, processing and / or control capabilities. The memory of the electronic device 800 may include a non-volatile storage medium and an internal memory. The non-volatile storage medium may store an operating system, a computer program, etc. The internal memory may provide an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface and the communication interface of the electronic device 800 may be used to connect and communicate with external devices via a network. When the computer program is executed by the processor, the steps of the method of the present application are executed.
[0092] The present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the above-mentioned SOA service-based fault diagnosis method is implemented.
[0093] Those skilled in the art will appreciate that the method steps of the present application can be completed by instructing related hardware such as the electronic device 800 or a processor through a computer program, and the computer program can be stored in a non-temporary computer-readable storage medium, and the computer program causes the steps of the present application to be executed when it is executed. Depending on the circumstances, any reference to memory, storage, or other media herein may include non-volatile or volatile memory. Examples of non-volatile memory include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk, etc. Examples of volatile memory include random access memory (RAM), external cache memory, etc.
[0094] The various technical features described above can be combined arbitrarily. Although all possible combinations of these technical features are not described, any combination of these technical features should be considered to be covered by this specification as long as there is no contradiction in such combination.
[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A fault diagnosis method based on SOA service, applied to a main control unit, characterized in that: The method comprises: Receiving a diagnostic request instruction issued by a diagnostic device; A response instruction including fault diagnostic codes of the master control unit and each slave control unit is sent based on the diagnosis request instruction.
2. The method according to claim 1, characterized in that Before sending a response instruction including the fault diagnostic codes of the master control unit and each slave control unit based on the diagnosis request instruction, the method further includes: receiving respective fault diagnostic codes sent by respective slave control units; The faults of the slave control units are initially classified based on the fault diagnostic codes.
3. The method according to claim 2, characterized in that The response instruction includes: a fault diagnosis code, an initial fault classification and a control unit identification.
4. The method according to claim 2, characterized in that: The receiving of respective fault diagnostic codes sent by respective slave control units comprises: Receive the respective fault diagnostic codes sent by each slave control unit through CAN application messages.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: receiving a control function execution instruction sent by the diagnostic device; Parsing the control function execution instruction and identifying the slave control unit to be controlled; The control function execution instruction is sent to the identified slave control unit.
6. The method according to claim 5, characterized in that The method further comprises: receiving a control function execution status fed back from the control unit; The control function execution status is sent to a diagnostic device.
7. A fault diagnosis device based on SOA service, arranged in a main control unit, characterized in that: The device comprises: A diagnosis request instruction receiving module is configured to receive a diagnosis request instruction issued by a diagnosis device; The diagnosis response module is configured to send a response instruction containing fault diagnosis codes of the master control unit and each slave control unit based on the diagnosis request instruction.
8. A fault diagnosis system based on SOA service, characterized in that: The system comprises: Diagnostic equipment for fault diagnosis and control of the master control unit and slave control units; a main control unit, electrically connected to the diagnostic device and the slave control unit, configured to receive a fault diagnostic code from the slave control unit and execute the SOA service-based fault diagnosis method according to any one of claims 1 to 6; and At least one slave control unit is used to send a fault diagnosis code to the master control unit, and implement fault diagnosis and control of the diagnostic device itself based on the master control unit.
9. An electronic device, characterized in that: include: A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the SOA service-based fault diagnosis method as described in any one of claims 1 to 6.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the SOA service-based fault diagnosis method according to any one of claims 1 to 6 are implemented.