Diagnostic service type switching method and device, equipment and computer medium

By determining whether there is a service being executed before receiving the switching request of the diagnostic instrument in the DM of the vehicle-mounted server, service interruption is avoided, and the problems of waste of diagnostic application resources and low efficiency in the existing technology are solved, and a more efficient diagnostic service is achieved. deal with.

CN118672233APending Publication Date: 2024-09-20NEUSOFT REACH AUTOMOBILE TECH (SHENYANG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410693736.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In the existing technology, when a diagnostic application processes an external diagnostic service, the diagnostic service type switching request causes service interruption and resource waste, which is inefficient.

Method used

In the DM of the vehicle-mounted server, before receiving the switch request from the diagnostic instrument, it is judged whether there is a service of the current diagnostic service type being executed. If not, it switches to the indicated new service type to avoid directly interrupting the service being processed.

Benefits of technology

It saves data processing resources for diagnostic applications, improves the processing efficiency of external diagnostic services, and meets the needs of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118672233A
    Figure CN118672233A
Patent Text Reader

Abstract

The invention discloses a diagnostic service type switching method and device, equipment and a computer medium. The method comprises the steps that a switching request which is sent by a diagnostic instrument and used for indicating switching of diagnostic service types is received; and determining whether a first diagnosis application executing a service corresponding to the current diagnosis service type exists in the at least one diagnosis application, and if not, switching the current diagnosis service type to the first diagnosis service type indicated by the switching request. According to the method, when the diagnosis application is processing the external diagnosis service depending on the diagnosis service type in the DM and the DM receives the switching request for switching the diagnosis service type from the diagnosis instrument, the diagnosis service type is directly switched, and the external diagnosis service which is being processed by the diagnosis application is interrupted, so that data processing resources of the diagnosis application are saved, and the diagnosis efficiency is improved. And the efficiency of processing the external diagnosis service by the diagnosis application is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of information processing, and in particular, relates to a diagnostic service type switching method, device, equipment and computer medium. Background Art

[0002] In the prior art, with the rapid development of automobile intelligence, when performing vehicle diagnosis, the vehicle is often diagnosed through the DCM (Diagnostic Communication Manager) module, wherein the DCM module mainly implements UDS (Unified Diagnostic Service), which is divided into internal diagnostic services and external diagnostic services. Specifically, when the DM receives a diagnostic instruction sent by a diagnostic instrument, if it is detected that the diagnostic service corresponding to the diagnostic instruction is an internal diagnostic service, the DM (diagnostic manager) processes the internal diagnostic service; if it is detected that the diagnostic service corresponding to the diagnostic instruction is an external diagnostic service, the DM forwards the diagnostic instruction to the diagnostic application, so that the diagnostic application processes the external diagnostic service.

[0003] When the diagnostic application processes an external diagnostic service, it depends on the diagnostic service type within the DM. At this time, when the DM receives a switching request sent by the diagnostic instrument to indicate switching the diagnostic service type, it will directly switch the current diagnostic service type to the first diagnostic service type corresponding to the switching request according to the switching request. At this time, the external diagnostic service being executed in the diagnostic application will terminate execution due to changes in the diagnostic service type it depends on, that is, the external diagnostic service will be interrupted, and some of the services that have been executed in the external diagnostic service will become invalid, which wastes the data processing resources of the diagnostic application and also causes the diagnostic application to process external diagnostic services inefficiently. Summary of the invention

[0004] The embodiment of the present application provides an implementation scheme different from the prior art to solve the technical problems in the prior art that the data processing resources of the diagnostic application are wasted and the efficiency of the diagnostic application in processing external diagnostic services is low.

[0005] In a first aspect, the present application provides a diagnostic service type switching method, which is applicable to a DM in a vehicle-mounted server, wherein at least one diagnostic application and the DM are installed on the vehicle-mounted server, and the DM is connected to the at least one diagnostic application, including: receiving a switching request sent by a diagnostic instrument to indicate switching of the diagnostic service type; determining whether there is a first diagnostic application in the at least one diagnostic application that is executing a service corresponding to the current diagnostic service type, and if not, switching the current diagnostic service type to the first diagnostic service type indicated by the switching request.

[0006] In the second aspect, the present application provides a diagnostic service type switching device, which is applicable to the DM in a vehicle-mounted server, at least one diagnostic application and the DM are installed on the vehicle-mounted server, and the DM is connected to the at least one diagnostic application, including: a receiving unit, used to receive a switching request sent by a diagnostic instrument to indicate switching of the diagnostic service type; a determination unit, used to determine whether there is a first diagnostic application in the at least one diagnostic application that is executing a service corresponding to the current diagnostic service type, and if not, switching the current diagnostic service type to the first diagnostic service type indicated by the switching request.

[0007] In a third aspect, the present application provides an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any method in the first aspect or any possible implementation manner of the first aspect by executing the executable instructions.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements any method in the first aspect or any possible implementation manner of the first aspect.

[0009] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in the first aspect or any possible implementation manner of the first aspect.

[0010] The solution provided by the present application is to receive a switching request sent by a diagnostic instrument to indicate switching of the diagnostic service type; determine whether there is a first diagnostic application in the at least one diagnostic application that is executing the service corresponding to the current diagnostic service type, and if not, switch the current diagnostic service type to the first diagnostic service type indicated by the switching request. This avoids the situation where, when the diagnostic application is processing an external diagnostic service that depends on the diagnostic service type within the DM, the DM directly switches the diagnostic service type when it receives a switching request from the diagnostic instrument to switch the diagnostic service type, thereby interrupting the external diagnostic service being processed by the diagnostic application, saving the data processing resources of the diagnostic application, and improving the efficiency of the diagnostic application in processing external diagnostic services. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0012] Figure 1 A schematic diagram of the structure of a diagnostic service type switching system provided in one embodiment of the present application;

[0013] Figure 2 A schematic diagram of a flow chart of a diagnostic service type switching method is provided for an embodiment of the present application;

[0014] Figure 3 A schematic diagram of the structure of the interaction between a diagnostic instrument, a DM and a diagnostic application provided in an embodiment of the present application;

[0015] Figure 4 A schematic diagram of the structure of a diagnostic service type switching device provided in an embodiment of the present application;

[0016] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, but cannot be understood as limiting the present application.

[0018] The terms "first" and "second" etc. in the specification, claims and drawings of the embodiments of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0019] First, some terms in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.

[0020] ECU (Electronic Control Unit) is the brain of the car, which is also the on-board server.

[0021] DM (diagnostic manager) is used to perform internal diagnostic services.

[0022] In the prior art, with the rapid development of automobile intelligence, when performing vehicle diagnosis, the vehicle is often diagnosed through the DCM (Diagnostic Communication Manager) module, wherein the DCM module mainly implements UDS (Unified Diagnostic Service), which is divided into internal diagnostic services and external diagnostic services. Specifically, when the DM receives a diagnostic instruction sent by a diagnostic instrument, if it is detected that the diagnostic service corresponding to the diagnostic instruction is an internal diagnostic service, the DM (diagnostic manager) processes the internal diagnostic service; if it is detected that the diagnostic service corresponding to the diagnostic instruction is an external diagnostic service, the DM forwards the diagnostic instruction to the diagnostic application, so that the diagnostic application processes the external diagnostic service.

[0023] When the diagnostic application processes an external diagnostic service, it depends on the diagnostic service type within the DM. At this time, when the DM receives a switching request sent by the diagnostic instrument to indicate switching the diagnostic service type, it will directly switch the current diagnostic service type to the first diagnostic service type corresponding to the switching request according to the switching request. At this time, the external diagnostic service being executed in the diagnostic application will terminate execution due to changes in the diagnostic service type it depends on, that is, the external diagnostic service will be interrupted, and some of the services that have been executed in the external diagnostic service will become invalid, which wastes the data processing resources of the diagnostic application and also causes the diagnostic application to process external diagnostic services inefficiently.

[0024] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0025] Figure 1 A schematic diagram of a diagnostic service type switching system provided by an exemplary embodiment of the present application, the system includes a diagnostic instrument and a vehicle-mounted server:

[0026] Specifically, Figure 1As shown, the vehicle-mounted server includes DM and at least one diagnostic application, and the DM is connected to the at least one diagnostic application, and the DM is also connected to the diagnostic instrument. Among them, the vehicle-mounted server can receive a switching request sent by the diagnostic instrument to indicate the switching of the diagnostic service type, and execute the corresponding task according to the switching request. Specifically, the DM in the vehicle-mounted server receives a switching request sent by the diagnostic instrument to indicate the switching of the diagnostic service type; determines whether there is a first diagnostic application in the at least one diagnostic application that is executing the service corresponding to the current diagnostic service type, and if not, switches the current diagnostic service type to the first diagnostic service type indicated by the switching request; if so, does not respond to the switching request; obtains the application identifier of the first diagnostic application; determines whether the first diagnostic application has completed the service corresponding to the current diagnostic service type based on the application identifier of the first diagnostic application, and if so, switches the current diagnostic service type to the first diagnostic service type indicated by the switching request.

[0027] The diagnostic application is used to process the external diagnostic service, that is, to execute the task corresponding to the external diagnostic service.

[0028] The diagnostic instrument is used to send a diagnostic request, and through the diagnostic request, requests the DM or the diagnostic application to execute a task corresponding to the diagnostic request, for example, the aforementioned switching request sent by the diagnostic instrument.

[0029] Optionally, the diagnostic instrument refers to a device that can communicate with DM over a network, and may be a terminal device such as a computer or a tablet.

[0030] Figure 2 A flowchart of a diagnostic service type switching method provided by an exemplary embodiment of the present application is provided. The execution subject of the method may be a DM in a vehicle-mounted server, and the DM is connected to the at least one diagnostic application. The method includes at least the following steps S201-S202:

[0031] S201, receiving a switching request sent by a diagnostic instrument for indicating switching of a diagnostic service type;

[0032] Optionally, the diagnostic service type refers to a process type of DM, and specifically, the diagnostic service type includes a diagnostic session type, a communication session type, a configuration session type, a data logging session type, a software update session type, and a programming session type.

[0033] Optionally, the diagnostic session type is used to read and clear fault codes, and obtain status information of vehicle systems.

[0034] Optionally, the communication session type is used for data exchange between ECUs, such as a vehicle's entertainment system, navigation system, safety system, etc.

[0035] Optionally, the configuration session type is used to initialize or configure parameters of the ECU to adapt to different driving conditions or user requirements.

[0036] Optionally, the data logging session type is used to record vehicle operation data for subsequent analysis or diagnosis.

[0037] Optionally, the software update session type is used to remotely update or upgrade the software of the ECU to fix known problems or add new functions.

[0038] Optionally, the programming session type is used for programming and running diagnostic applications.

[0039] Optionally, the DM is used to execute a switching request for switching a diagnostic service type.

[0040] S202: Determine whether there is a first diagnostic application among the at least one diagnostic application that is executing a service corresponding to a current diagnostic service type; if not, switch the current diagnostic service type to the first diagnostic service type indicated by the switch request.

[0041] Optionally, the method further includes: when there is a first diagnostic application among the at least one diagnostic application that is executing a service corresponding to the current diagnostic service type, not responding to the switching request.

[0042] Optionally, the method also includes: detecting whether the service interface corresponding to the current diagnostic service type is registered by at least some of the at least one diagnostic application, and if so, triggering the step of determining whether there is a first diagnostic application in the at least one diagnostic application that is executing the service corresponding to the current diagnostic service type.

[0043] Optionally, the current diagnostic service type refers to the current process type of DM.

[0044] Optionally, regarding how to determine whether the service interface corresponding to the current diagnostic service type is registered by at least some of the at least one diagnostic application, the method further includes the following steps S25-S26:

[0045] S25. Acquire the locally stored interface configuration information and the service interface identifier of the service interface;

[0046] Optionally, the interface configuration information includes a service interface identifier corresponding to a service interface corresponding to a diagnostic service type registered by the diagnostic application;

[0047] Optionally, the service interface identifier is used to identify the service interface.

[0048] S26: When the interface configuration information includes the service interface identifier, determine that the service interface corresponding to the current diagnostic service type is registered by at least some of the at least one diagnostic application.

[0049] Optionally, the service corresponding to the diagnostic service type refers to an external diagnostic service executed by the diagnostic application based on the diagnostic service type.

[0050] When the diagnostic service type is a diagnostic session type, the service corresponding to the diagnostic service type refers to an external diagnostic service performed by a diagnostic application based on the diagnostic session type. At this time, the external diagnostic service includes: services such as the diagnostic application reading and clearing fault codes, and obtaining status information of the vehicle system.

[0051] When the diagnostic service type is a communication session type, the service corresponding to the diagnostic service type refers to an external diagnostic service executed by a diagnostic application based on the communication session type. In this case, the external diagnostic service includes: performing a data exchange service.

[0052] When the diagnostic service type is a configuration session type, the service corresponding to the diagnostic service type refers to an external diagnostic service performed by a diagnostic application based on the configuration session type. At this time, the external diagnostic service includes: initializing or configuring ECU parameters to adapt to different driving conditions or user needs.

[0053] When the diagnostic service type is a data recording session type, the service corresponding to the diagnostic service type refers to an external diagnostic service executed by a diagnostic application based on the data recording session type. In this case, the external diagnostic service includes: a service for recording vehicle operation data.

[0054] When the diagnostic service type is a software update session type, the service corresponding to the diagnostic service type refers to an external diagnostic service executed by a diagnostic application based on the software update session type. At this time, the external diagnostic service includes: a service for remotely updating or upgrading the software of the ECU.

[0055] When the diagnostic service type is the programming session type, the service corresponding to the diagnostic service type refers to an external diagnostic service executed by a diagnostic application based on the programming session type. At this time, the external diagnostic service includes: a service for programming and running a diagnostic application.

[0056] Optionally, the first diagnostic application among the at least one diagnostic application that is executing a service corresponding to the current diagnostic service type is included in the aforementioned at least part of the diagnostic applications.

[0057] Optionally, after not responding to the switching request, the method further includes the following steps S2103-S2104:

[0058] S2103, obtaining an application identifier of the first diagnostic application;

[0059] S2104: Determine whether the first diagnostic application has completed executing the service corresponding to the current diagnostic service type based on the application identifier of the first diagnostic application; if so, switch the current diagnostic service type to the first diagnostic service type indicated by the switching request.

[0060] Optionally, the method further includes: if a service interface corresponding to the current diagnostic service type is not registered by a diagnostic application in the at least one diagnostic application, switching the current diagnostic service type to a first diagnostic service type indicated by the switching request.

[0061] It should be understood that if the diagnostic instrument is not connected to the DM after the ECU is restarted, the DM will not be able to receive the switching request sent by the diagnostic instrument, and thus will not be able to switch the DM process type to the process type required by the user, that is, the process type corresponding to the switching request. In this case, the user's needs will not be met. In order to solve this problem, the diagnostic service type can be classified into: programmed diagnostic type and default diagnostic type; optionally, the default diagnostic type is the diagnostic session type mentioned above.

[0062] Optionally, the programming diagnosis type refers to any one of a communication session type, a configuration session type, a data logging session type, a software update session type, and a programming session type.

[0063] The method further comprises the following steps S2112-S2116:

[0064] S2112, restart;

[0065] S2113: when there is a second diagnostic application in the at least one diagnostic application that is executing a service corresponding to the current diagnostic service type, obtaining an application identifier of the second diagnostic application;

[0066] Optionally, the process type of the restarted DM defaults to the default diagnostic type.

[0067] S2114: sending a diagnostic service type acquisition request to any diagnostic application in the second diagnostic applications based on the application identifier of the second diagnostic application, so as to obtain a second diagnostic service type from the any diagnostic application, where the second diagnostic service type is a diagnostic service type of an external diagnostic service being executed by any diagnostic application, or a diagnostic service type set for a relevant person;

[0068] S2115. Obtain the second diagnostic service type fed back by any one of the diagnostic applications;

[0069] S2116: Switch the current diagnostic service type to the second diagnostic service type.

[0070] In order to better understand the interaction process between the diagnostic instrument, DM and diagnostic application in this application, this application provides Figure 3 , Figure 3 A schematic diagram of the structure of the interaction between a diagnostic instrument, DM and a diagnostic application provided in an embodiment of the present application.

[0071] See also Figure 3 It can be seen that when the diagnostic application needs to use the service interface corresponding to the diagnostic service type, the service interface can be registered in advance. When the diagnostic instrument sends a switching request to the DM, the DM receives the switching request and inquires whether there is a diagnostic application that has registered the service interface corresponding to the current diagnostic service type of the DM. If so, the service interface is called to trigger the corresponding diagnostic application, and the diagnostic application feeds back to the DM based on its own service execution results. Based on the feedback result, the DM determines whether the diagnostic application is executing the service corresponding to the current diagnostic service type. If so, it does not respond to the switching request and sends a waiting response message to the diagnostic instrument. If not, it responds to the switching request and sends a successful response message to the diagnostic instrument, where the waiting response message is information about not switching the diagnostic service type.

[0072] In summary, the solution provided by the present application is to receive a switching request sent by a diagnostic instrument to indicate switching of the diagnostic service type; determine whether there is a first diagnostic application in the at least one diagnostic application that is executing a service corresponding to the current diagnostic service type, and if not, switch the current diagnostic service type to the first diagnostic service type indicated by the switching request. This avoids the situation where, when the diagnostic application is processing an external diagnostic service that depends on the diagnostic service type within the DM, the DM directly switches the diagnostic service type when it receives a switching request from the diagnostic instrument to switch the diagnostic service type, thereby interrupting the external diagnostic service being processed by the diagnostic application, saving data processing resources of the diagnostic application, and improving the efficiency of the diagnostic application in processing external diagnostic services.

[0073] At the same time, when restarting, DM actively sends a diagnostic service type acquisition request to the second diagnostic application to obtain the external diagnostic service being executed by any diagnostic application or the second diagnostic service type set by relevant personnel, so as to set the process of the restarted DM to the process required by the relevant personnel, thereby meeting the needs of the user.

[0074] Figure 4 A schematic diagram of a diagnostic service type switching device provided by an exemplary embodiment of the present application, wherein the device is applicable to a DM in a vehicle-mounted server, wherein at least one diagnostic application and the DM are installed in the vehicle-mounted server, and the DM is connected to the at least one diagnostic application, wherein the device comprises:

[0075] The receiving unit 41 is used to receive a switching request sent by the diagnostic instrument to indicate switching of the diagnostic service type;

[0076] The determining unit 42 is configured to determine whether there is a first diagnostic application among the at least one diagnostic application that is executing a service corresponding to a current diagnostic service type, and if not, switch the current diagnostic service type to the first diagnostic service type indicated by the switch request.

[0077] Optionally, the apparatus is further configured to: when there is a first diagnostic application among the at least one diagnostic application that is executing a service corresponding to a current diagnostic service type, not respond to the switching request.

[0078] Optionally, after the device is used for not responding to the switching request, the device is specifically used to: obtain an application identifier of the first diagnostic application; determine whether the first diagnostic application has completed executing the service corresponding to the current diagnostic service type based on the application identifier of the first diagnostic application, and if so, switch the current diagnostic service type to the first diagnostic service type indicated by the switching request.

[0079] Optionally, the device method is also used to: detect whether the service interface corresponding to the current diagnostic service type is registered by at least some of the at least one diagnostic application, and if so, trigger the step of determining whether there is a first diagnostic application in the at least one diagnostic application that is executing the service corresponding to the current diagnostic service type.

[0080] Optionally, the device is also used to: obtain locally stored interface configuration information and a service interface identifier of the service interface; when the interface configuration information includes the service interface identifier, determine that the service interface corresponding to the current diagnostic service type is registered by at least some of the at least one diagnostic application.

[0081] Optionally, the apparatus is further configured to: if a service interface corresponding to the current diagnostic service type is not registered by a diagnostic application in the at least one diagnostic application, switch the current diagnostic service type to a first diagnostic service type indicated by the switching request.

[0082] Optionally, the diagnostic service type in the device includes: a programmed diagnostic type and a default diagnostic type; the device is also used to: restart; when there is a second diagnostic application in the at least one diagnostic application that is executing a service corresponding to the current diagnostic service type, obtain the application identifier of the second diagnostic application; based on the application identifier of the second diagnostic application, send a diagnostic service type acquisition request to any diagnostic application in the second diagnostic applications to obtain the second diagnostic service type from any of the diagnostic applications, the second diagnostic service type being the diagnostic service type of an external diagnostic service being executed by any of the diagnostic applications, or the diagnostic service type set for relevant personnel; obtain the second diagnostic service type fed back by any of the diagnostic applications; and switch the current diagnostic service type to the second diagnostic service type.

[0083] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, no further description is given here. Specifically, the device may perform the above method embodiment, and the above and other operations and / or functions of each module in the device are the corresponding processes in each method in the above method embodiment, respectively, and no further description is given here for the sake of brevity.

[0084] The above describes the device of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.

[0085] Figure 5 is a schematic block diagram of an electronic device provided in an embodiment of the present application, and the electronic device may include:

[0086] The memory 501 and the processor 502, the memory 501 is used to store the computer program and transmit the program code to the processor 502. In other words, the processor 502 can call and run the computer program from the memory 501 to implement the method in the embodiment of the present application.

[0087] For example, the processor 502 may be configured to execute the above method embodiments according to instructions in the computer program.

[0088] In some embodiments of the present application, the processor 502 may include but is not limited to:

[0089] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.

[0090] In some embodiments of the present application, the memory 501 includes but is not limited to:

[0091] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).

[0092] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 501 and executed by the processor 502 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.

[0093] like Figure 5 As shown, the electronic device may also include:

[0094] The transceiver 503 may be connected to the processor 502 or the memory 501 .

[0095] The processor 502 may control the transceiver 503 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 503 may include a transmitter and a receiver. The transceiver 503 may further include an antenna, and the number of antennas may be one or more.

[0096] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.

[0097] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.

[0098] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.

[0099] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0100] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0101] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0102] The above are only specific implementations 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.

Claims

1. A diagnostic service type switching method, characterized in that: A DM applicable to a vehicle-mounted server, wherein at least one diagnostic application and the DM are installed in the vehicle-mounted server, and the DM is connected to the at least one diagnostic application, comprising: receiving a switching request sent by the diagnostic instrument for indicating switching of the diagnostic service type; It is determined whether there is a first diagnostic application among the at least one diagnostic application that is executing a service corresponding to a current diagnostic service type, and if not, the current diagnostic service type is switched to the first diagnostic service type indicated by the switching request.

2. The method according to claim 1, characterized in that The method further comprises: When there is a first diagnostic application among the at least one diagnostic application that is executing a service corresponding to the current diagnostic service type, the switching request is not responded to.

3. The method according to claim 2, characterized in that After not responding to the switching request, the method further includes: Obtaining an application identifier of the first diagnostic application; Based on the application identifier of the first diagnostic application, it is determined whether the first diagnostic application has completed executing the service corresponding to the current diagnostic service type; if so, the current diagnostic service type is switched to the first diagnostic service type indicated by the switching request.

4. The method according to claim 1, characterized in that: The method further comprises: Detect whether the service interface corresponding to the current diagnostic service type is registered by at least some of the at least one diagnostic application. If so, trigger the step of determining whether there is a first diagnostic application in the at least one diagnostic application that is executing the service corresponding to the current diagnostic service type.

5. The method according to claim 4, characterized in that The method further comprises: Acquire the locally stored interface configuration information and the service interface identifier of the service interface; When the interface configuration information includes the service interface identifier, it is determined that the service interface corresponding to the current diagnostic service type is registered by at least part of the at least one diagnostic application.

6. The method according to claim 4, characterized in that The method further comprises: If the service interface corresponding to the current diagnostic service type is not registered by the diagnostic application in the at least one diagnostic application, the current diagnostic service type is switched to the first diagnostic service type indicated by the switching request.

7. The method according to claim 1, characterized in that The diagnostic service type is classified into: a programmed diagnostic type and a default diagnostic type; the method further includes: Restart. When there is a second diagnostic application that is executing a service corresponding to the current diagnostic service type among the at least one diagnostic application, obtaining an application identifier of the second diagnostic application; Sending a diagnostic service type acquisition request to any diagnostic application in the second diagnostic applications based on the application identifier of the second diagnostic application, so as to obtain a second diagnostic service type from the any diagnostic application, where the second diagnostic service type is a diagnostic service type of an external diagnostic service being executed by the any diagnostic application, or a diagnostic service type set for relevant personnel; Obtaining the second diagnostic service type fed back by any one of the diagnostic applications; The current diagnostic service type is switched to the second diagnostic service type.

8. A diagnostic service type switching device, characterized in that: A DM applicable to a vehicle-mounted server, wherein at least one diagnostic application and the DM are installed in the vehicle-mounted server, and the DM is connected to the at least one diagnostic application, comprising: A receiving unit, used for receiving a switching request sent by the diagnostic instrument for indicating switching of the diagnostic service type; The determining unit is configured to determine whether there is a first diagnostic application among the at least one diagnostic application that is executing a service corresponding to a current diagnostic service type, and if not, switch the current diagnostic service type to the first diagnostic service type indicated by the switching request.

9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 7 by executing the executable instructions.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.