Diagnosis device, method and system based on service-oriented architecture and storage medium
By introducing diagnostic devices and methods based on service-oriented architectures into the vehicle diagnostic system, the fault information of SOA services is monitored and recorded in real time, the problem that traditional technology cannot monitor the operating status of SOA services is solved, and the efficiency and accuracy of fault diagnosis are improved.
Patent Information
- Application Number
- CN202411997494.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-27
AI Technical Summary
Traditional vehicle diagnostic technology cannot monitor the operating status of service-oriented services (SOA), resulting in the inability to effectively monitor and diagnose SOA service failures.
A diagnostic device and method based on a service-oriented architecture is designed, including communication middleware, service management module and diagnostic service module. By monitoring the communication of SOA services in real time, service failures are obtained and fault information is stored in the microcontroller unit.
Real-time monitoring and information recording of service failures for service architectures is realized, the efficiency and accuracy of fault diagnosis are improved, and the actual status of the vehicle can be understood when the fault occurs.
Smart Images

Figure CN120045406A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of vehicle diagnosis, and in particular, to a diagnostic device, method, system and storage medium based on a service-oriented architecture. Background Art
[0002] In the context of the increasing development of automotive intelligence, the automotive electrical architecture and software architecture are becoming more and more complex, and the complexity of electronic control units is also increasing day by day. To cope with these challenges, the electrical architecture based on the service-oriented architecture (SOA) has been widely applied in the field of intelligent vehicles. Vehicle diagnosis technology aims to monitor the operating status of vehicle components in real time, ensure driving safety, improve the efficiency of troubleshooting, predict the occurrence of faults and locate the causes of faults. The status monitoring and fault monitoring of services in the service-oriented architecture are also becoming more and more important in the electrical architecture.
[0003] However, traditional vehicle diagnosis technology cannot monitor the operating status of services in the service-oriented architecture (SOA). Therefore, how to monitor the operating status of SOA services has become a technical problem to be solved urgently.
[0004] Content of the Application
[0005] In view of this, the embodiments of the present application provide a diagnostic device, method, system and storage medium based on a service-oriented architecture to achieve the monitoring of the operating status of the service-oriented architecture.
[0006] According to the first aspect of the embodiments of the present application, a diagnostic device based on a service-oriented architecture is provided, which is applied to a microprocessor of an automotive fault diagnosis system. The microprocessor is communicatively connected to a microcontroller unit. The device includes: a communication middleware for real-time monitoring of service communication between multiple service architecture-based applications to obtain service faults generated by the service communication; a service management module for receiving the service faults fed back by the communication middleware and setting the actual service status according to the service faults; a diagnostic service module for obtaining the service faults through the communication service of the service-oriented architecture and sending the service faults to the microcontroller unit through the communication service of the service-oriented architecture, so that the microcontroller unit stores the service faults and snapshot information of the service faults.
[0007] In some embodiments of the present application, the service faults include at least one of service discovery failure, service response timeout, and periodic service timeout.
[0008] In some embodiments of the present application, the communication of the service-oriented architecture is SOME / IP communication or DDS communication.
[0009] In some embodiments of the present application, the service management module is further configured to: receive a service configuration file and set an initial service state according to the service configuration file, where the initial service state includes at least one of: service ID, service instance ID, default service initial state, undefined service ID and service instance ID, service available, and service unavailable.
[0010] In some embodiments of the present application, the service management module is further configured to: provide the service faults generated by the service communication between the applications based on the service architecture to the diagnostic service module according to the actual subscription requirements of the diagnostic service module.
[0011] In some embodiments of the present application, the diagnostic service module is further configured to: receive the actual diagnostic requirements generated by the microcontroller unit based on the diagnostic instrument request, provide the service faults sent by the service management module to the microcontroller unit, and instruct the microcontroller unit to feedback to the diagnostic instrument.
[0012] According to a second aspect of the embodiments of the present application, there is provided a diagnostic device based on a service-oriented architecture, which is applied to a microcontroller unit of an automotive fault diagnosis system. The microcontroller unit is communicatively connected to a microprocessor. The device includes: a fault real-time recording module, configured to receive the service faults sent by the microprocessor through the communication service of the service-oriented architecture, and store the service faults and the snapshot information of the service faults. The service faults are the service faults generated by the service communication obtained by the microprocessor for real-time monitoring of the service communication between multiple applications based on the service architecture.
[0013] According to a third aspect of the embodiments of the present application, there is provided a diagnostic method based on a service-oriented architecture, which is applied to a microprocessor of an automotive fault diagnosis system. The microprocessor is communicatively connected to a microcontroller unit. The method includes: real-time monitoring the service communication between multiple applications based on the service architecture to obtain the service faults generated by the service communication; receiving the service faults fed back by the communication middleware, and setting the actual service state according to the service faults; obtaining the service faults through the communication service of the service-oriented architecture, and sending the service faults to the microcontroller unit through the communication service of the service-oriented architecture, instructing the microcontroller unit to store the service faults and the snapshot information of the service faults.
[0014] According to a fourth aspect of the embodiments of the present application, a diagnostic system based on a service-oriented architecture is provided. The diagnostic system includes: a communication middleware for real-time monitoring of service communication between multiple service-architecture-based applications to obtain service faults generated by the service communication; a service management module for receiving the service faults fed back by the communication middleware and setting actual service states according to the service faults; a diagnostic service module for obtaining the service faults from the service management module through a service-oriented architecture communication service; and a fault real-time recording module for receiving the service faults sent by the diagnostic service module through the service-oriented architecture communication service and storing the service faults and snapshot information of the service faults.
[0015] According to a fifth aspect of the embodiments of the present application, a computer program product is provided, including computer instructions that direct a computing device to perform operations corresponding to the service-oriented architecture-based diagnostic method described in the third aspect of the embodiments.
[0016] With the above technical solutions, the communication middleware in the embodiments of the present application real-time monitors service communication between multiple service-architecture-based applications to obtain service faults generated by the service communication. The service management module receives the service faults fed back by the communication middleware and sets actual service states according to the service faults. The diagnostic service module obtains the service faults through a service-oriented architecture communication service and sends the service faults to a micro control unit through the service-oriented architecture communication service, causing the micro control unit to store the service faults and snapshot information of the service faults. The embodiments of the present application realize information recording when a service fault in a service-oriented architecture occurs, thereby facilitating understanding of the actual state of the vehicle when the fault occurs and improving the efficiency and accuracy of fault diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0018] Figure 1 Schematic diagram of a diagnostic system based on a service-oriented architecture applicable to the embodiments of the present application;
[0019] Figure 2Schematic diagram of another diagnostic system based on service - oriented architecture applicable to embodiments of the present application;
[0020] Figure 3 Flowchart of a diagnostic method based on service - oriented architecture applicable to embodiments of the present application. Detailed implementation manners
[0021] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts fall within the scope of protection of the present application.
[0022] Refer to Figure 1 , an embodiment of the present application provides a diagnostic system applied to an automotive fault diagnosis system, which includes a microprocessor 1 and a micro - control unit 2 communicatively connected to the microprocessor 1.
[0023] The diagnostic device 10 based on service - oriented architecture, which is applied to the microprocessor 1, includes:
[0024] A communication middleware 101, which is used to monitor the service communication between multiple service - based applications in real - time and obtain service faults generated by the service communication.
[0025] A service management module 102, which is used to receive the service faults fed back by the communication middleware and set the actual service status according to the service faults.
[0026] A diagnostic service module 103, which is used to obtain service faults through the communication service of the service - oriented architecture and send the service faults to the micro - control unit through the communication service of the service - oriented architecture, so that the micro - control unit stores the service faults and snapshot information of the service faults.
[0027] Refer to Figure 1 , the diagnostic device 20 based on service - oriented architecture, which is applied to the micro - control unit 2, includes:
[0028] A fault real - time recording module 201, which is used to receive the service faults sent by the microprocessor through the communication service of the service - oriented architecture and store the service faults and snapshot information of the service faults. The service faults are the service faults generated by the service communication obtained by the microprocessor monitoring the service communication between multiple communication applications of the service - oriented architecture in real - time.
[0029] In the embodiment of the present application, the communication middleware 101 monitors the service communication between multiple service - oriented architecture - based applications in real time. Based on the communication middleware 101, the service lists between multiple service - oriented architecture - based applications can be managed, so as to effectively monitor the service communication between multiple service - oriented architecture - based applications.
[0030] In the embodiment of the present application, the service management module 102 can centrally manage the failure states of all services. Through the storage method of multi - core heterogeneous communication in the embodiment of the present application, the storage of service failure information for the service - oriented architecture is realized, meeting the requirement of real - time diagnostic requests.
[0031] In the embodiment of the present application, through the snapshot information of service failures stored by the fault real - time recording module 201, the information recording at the time of service failures of all service - oriented architectures is realized, so as to facilitate the diagnostic engineer to understand the actual state of the vehicle at the time of the failure, improving the efficiency and accuracy of fault diagnosis.
[0032] Specifically, the service failures include at least one of service discovery failure, service response timeout, and periodic service timeout.
[0033] The communication for the service - oriented architecture is SOME / IP communication or DDS communication.
[0034] The diagnostic device of the embodiment of the present application will be further described in detail below for the types of service failures.
[0035] The communication middleware 101 monitors the service communication between multiple service - oriented architecture - based applications. Specifically, when it monitors that a client issues a Find Service instruction and fails to find the service required by the client, the communication middleware 101 sets a service discovery exception to the service management module 102. The service management module 102 sends the fault information of service discovery failure to the diagnostic service module 103 through the SOME / IP service or DDS service. The diagnostic service module 103 sends the service discovery failure to the fault real - time recording module 201, and the fault real - time recording module 201 stores the fault and the fault snapshot information.
[0036] When the communication middleware 101 monitors a request sent by the Client and the Server does not reply within the agreed time t, the communication middleware 101 sets a response timeout and sends it to the service management module 102. The service management module 102 sends the fault information of the response timeout to the diagnostic service module 103 through the SOME / IP service or the DDS service. The diagnostic service module 103 sends the fault of the response timeout to the fault real-time recording module 201, and the fault real-time recording module 201 stores the fault and the fault snapshot information. Those skilled in the art set the agreed time t as needed.
[0037] After the Client subscribes to the server periodic service successfully, when the communication middleware 101 monitors that the Client does not receive the periodic notification from the Server within N cycles, the communication middleware 101 sets a periodic service timeout and sends it to the service management module 102. The service management module 102 sends the fault information of the periodic service timeout to the diagnostic service module 103 through the SOME / IP service or the DDS service. The diagnostic service module 103 sends the fault of the periodic service timeout to the fault real-time recording module 201, and the fault real-time recording module 201 stores the fault and the fault snapshot information. Those skilled in the art set N cycles as needed, and N is a positive integer.
[0038] In some specific implementations of the embodiments of the present application, the service management module 102 is further configured to:
[0039] Receive a service configuration file and set an initial service state according to the service configuration file. The initial service state includes at least one of: service ID, service instance ID, service initial state default, service ID and service instance ID undefined, service available, and service unavailable.
[0040] In the embodiments of the present application, the service management module 102 realizes the configuration of the initial service state by parsing the configuration file, so as to effectively manage the initial service state through a simple method.
[0041] In some specific implementations of the embodiments of the present application, the service management module 102 is further configured to:
[0042] According to the actual diagnostic requirements of the diagnostic service module, provide service faults generated by service communication between applications based on the service architecture to the diagnostic service module.
[0043] In the embodiments of the present application, the service management module 102 can provide service fault information between SOME / IP or DDS applications to the diagnostic service module 103 according to the actual diagnostic requirements of the diagnostic service module 103.
[0044] In some specific implementations of the embodiments of the present application, refer to Figure 2, the diagnostic service module 103 is further configured to:
[0045] Receive the actual diagnostic requirements generated by the microcontroller unit 2 based on the requests of the diagnostic instrument 3, provide the service faults sent by the service management module 102 to the microcontroller unit 2, and cause the microcontroller unit 2 to feedback to the diagnostic instrument 3.
[0046] The diagnostic instrument 3 can send a request instruction to the fault real-time recording module 201 through the UDS diagnostic 31 service (Routine Control) to obtain the status of all services.
[0047] When the fault real-time recording module 201 receives a request based on the diagnostic instrument 3, the fault real-time recording module 201 actively queries the service faults of all services from the service management module 102 through the diagnostic service module 103, and feeds back the service faults to the fault real-time recording module 201, and finally feeds back to the diagnostic instrument 3.
[0048] In the embodiment of the present application, through the diagnostic instrument 3, diagnostic engineers can quickly obtain the service faults of all services, effectively improving the efficiency of diagnostic troubleshooting.
[0049] Method
[0050] See Figure 3 , the embodiment of the present application further provides a diagnostic method based on a service-oriented architecture, which is applied to a microprocessor of an automotive fault diagnosis system. The microprocessor is communicatively connected to a microcontroller unit. The method includes:
[0051] Step S1: Monitor the service communication between multiple service architecture-based applications in real time, and obtain the service faults generated by the service communication.
[0052] Step S2: Receive the service faults fed back by the communication middleware, and set the actual service status according to the service faults.
[0053] Step S3: Obtain the service faults through the service-oriented architecture communication service, and send the service faults to the microcontroller unit through the service-oriented architecture communication service, so that the microcontroller unit stores the service faults and the snapshot information of the service faults.
[0054] In the embodiment of the present application, the communication middleware 101 monitors the service communication between multiple service architecture-based applications in real time. Based on the communication middleware 101, the service list between multiple service architecture-based applications can be managed, so as to effectively monitor the service communication between multiple service architecture-based applications.
[0055] In the embodiments of the present application, the service management module 102 can centrally manage the fault status of all services. Through the storage method of multi-core heterogeneous communication in the embodiments of the present application, the storage of service fault information for the service-oriented architecture is realized, meeting the requirement of real-time diagnostic requests.
[0056] In the embodiments of the present application, the snapshot information of service faults stored by the fault real-time recording module 201 realizes the recording of information when service faults occur in all service-oriented architectures, facilitating diagnostic engineers to understand the actual state of the vehicle when faults occur and improving the efficiency and accuracy of fault diagnosis.
[0057] Computer storage medium
[0058] In this embodiment, a computer-readable storage medium is provided, storing instructions for causing a machine to execute the service-oriented architecture-based diagnostic method as described herein. Specifically, a system or device equipped with a storage medium can be provided, on which software program code for implementing the functions of any one of the above embodiments is stored, and the computer (or CPU or MPU) of the system or device is caused to read and execute the program code stored in the storage medium.
[0059] In this case, the program code read from the storage medium itself can implement the functions of any one of the above embodiments, so the program code and the storage medium storing the program code constitute a part of the present application.
[0060] Embodiments of the storage medium for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Optionally, the program code can be downloaded from a server computer via a communication network.
[0061] Computer program product
[0062] In this embodiment, a computer program product is provided, including computer instructions that direct a computing device to perform any corresponding operation in the above-mentioned multiple method embodiments.
[0063] It should be noted that, according to the needs of implementation, each component / step described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0064] The method according to the embodiments of the present application can be implemented in hardware, firmware, or be implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or be implemented as computer code that is originally stored in a remote recording medium or a non-transitory machine-readable medium and downloaded through a network and will be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component (such as a RAM, a ROM, a flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the method shown herein.
[0065] It should be noted that in the description of the present application, the terms "first" and "second" are only used for conveniently describing different components or names, and cannot be understood as indicating or implying an order relationship, relative importance, or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one such feature.
[0066] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used in the description of this application herein are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0067] It should be noted that although the specific embodiments of the present application have been described in detail in conjunction with the accompanying drawings, it should not be construed as a limitation on the protection scope of the present application. Within the scope described in the claims, various modifications and deformations that can be made by those skilled in the art without creative efforts still fall within the protection scope of the present application.
[0068] The examples of the embodiments of the present application are intended to briefly illustrate the technical features of the embodiments of the present application, so that those skilled in the art can intuitively understand the technical features of the embodiments of the present application, and do not serve as an improper limitation on the embodiments of the present application.
[0069] 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 them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A diagnostic device based on a service-oriented architecture, applied to a microprocessor of an automobile fault diagnosis system, wherein the microprocessor is communicatively connected with a microcontroller unit, and the device comprises: Communication middleware, used to monitor the service communication between multiple applications based on the service architecture in real time, and obtain service failures caused by the service communication; A service management module, configured to receive the service failure reported by the communication middleware and set an actual service status according to the service failure; The diagnostic service module is used to obtain the service fault through the service-oriented architecture communication service, and send the service fault to the micro control unit through the service-oriented architecture communication service, so that the micro control unit stores the service fault and the snapshot information of the service fault.
2. The device according to claim 1, wherein: The service failure includes at least one of: service discovery failure, service response timeout, and periodic service timeout.
3. The device according to claim 1 or 2, wherein: The service-oriented architecture communication is SOME / IP communication or DDS communication.
4. The device according to claim 3, wherein: The service management module is further used for: A service configuration file is received and an initialization service state is set according to the service configuration file, wherein the initialization service state includes: a service ID, a service instance ID, and at least one of a service initial state of default, a service ID and a service instance ID of undefined, a service available, and a service unavailable.
5. The device according to claim 4, wherein: The service management module is further used for: According to the actual subscription requirements of the diagnostic service module, the service faults generated by the service communication between the applications based on the service architecture are provided to the diagnostic service module.
6. The device according to claim 5, wherein: The diagnostic service module is further used for: The microcontrol unit receives the actual diagnosis requirement generated by the microcontroller based on the request of the diagnostic instrument, provides the service fault sent by the service management module to the microcontroller, and enables the microcontroller to feed back to the diagnostic instrument.
7. A diagnostic device based on a service-oriented architecture, applied to a microcontroller unit of an automobile fault diagnosis system, wherein the microcontroller unit is communicatively connected to a microprocessor, and the device comprises: A real-time fault recording module is used to receive service faults sent by the microprocessor through a service-oriented architecture communication service, and store the service faults and snapshot information of the service faults. The service faults are service faults generated by the service communications obtained by the microprocessor monitoring the service communications between multiple service-based architecture applications in real time.
8. A diagnostic method based on a service-oriented architecture, applied to a microprocessor of an automobile fault diagnosis system, wherein the microprocessor is communicatively connected to a microcontroller unit, the method comprising: Monitor the service communication between multiple applications based on the service architecture in real time, and obtain the service failures caused by the service communication; Receive the service failure reported by the communication middleware, and set the actual service status according to the service failure; The service fault is obtained through a service-oriented architecture communication service, and the service fault is sent to the micro control unit through the service-oriented architecture communication service, so that the micro control unit stores the service fault and snapshot information of the service fault.
9. A diagnostic system based on a service-oriented architecture, the diagnostic system comprising: Communication middleware, used to monitor the service communication between multiple applications based on the service architecture in real time, and obtain service failures caused by the service communication; A service management module, configured to receive the service failure reported by the communication middleware and set an actual service status according to the service failure; A diagnostic service module, configured to obtain the service fault from the service management module through a service-oriented architecture communication service; The fault real-time recording module is used to receive the service fault sent by the diagnostic service module through the service-oriented architecture communication service, and store the service fault and snapshot information of the service fault.
10. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the diagnostic method based on a service-oriented architecture as claimed in claim 8 is implemented.