CN115202914B - Diagnostic service configuration method, device, system, equipment and storage medium - Google Patents

Diagnostic service configuration method, device, system, equipment and storage medium Download PDF

Info

Publication number
CN115202914B
CN115202914B CN202210671502.1A CN202210671502A CN115202914B CN 115202914 B CN115202914 B CN 115202914B CN 202210671502 A CN202210671502 A CN 202210671502A CN 115202914 B CN115202914 B CN 115202914B
Authority
CN
China
Prior art keywords
configuration file
diagnosis
diagnostic
service
current configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210671502.1A
Other languages
Chinese (zh)
Other versions
CN115202914A (en
Inventor
秦民
印晋越
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Automotive Innovation Co Ltd
Original Assignee
China Automotive Innovation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Automotive Innovation Co Ltd filed Critical China Automotive Innovation Co Ltd
Priority to CN202210671502.1A priority Critical patent/CN115202914B/en
Publication of CN115202914A publication Critical patent/CN115202914A/en
Application granted granted Critical
Publication of CN115202914B publication Critical patent/CN115202914B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application discloses a diagnostic service configuration method, a device, a system, equipment and a storage medium, wherein the method comprises the following steps: determining a current configuration file; if the current configuration file is the configuration file acquired according to the preset time interval, reading a historical configuration file; the history configuration file is a configuration file for loading diagnostic services at a history time; the history configuration file is stored in a first local memory; if the current configuration file is inconsistent with the historical configuration file, performing configuration check on the current configuration file; if the current configuration file passes the check, determining a demand diagnosis service based on the current configuration file; loading a diagnosis service dynamic library for the diagnosis management module based on a dynamic library file corresponding to the demand diagnosis service; the diagnostic service dynamic library is used for providing the demand diagnostic service by the diagnostic management module. Therefore, the dynamic configuration of the diagnosis service can be realized, the diagnosis service can be assembled according to the requirement, the number of the diagnosis services assembled by the diagnosis management module is reduced, and the diagnosis management module is light and flexible.

Description

Diagnostic service configuration method, device, system, equipment and storage medium
Technical Field
The present application relates to the field of diagnostic management, and in particular, to a diagnostic service configuration method, apparatus, system, device, and storage medium.
Background
The diagnosis management module is based on the function cluster on the AUTOSAR adaptive platform standard function layer. The diagnosis management module mainly comprises a diagnosis event management module and a diagnosis control module, and is integrally compiled into a service external providing interface. The diagnosis event management module is responsible for processing and storing diagnosis events and related data, providing fault information for the diagnosis control module, and comprises 9 services; the diagnostic control module is responsible for processing the diagnostic data stream and managing the diagnostic status, which includes 26 services. The whole diagnosis management comprises 35 services, and more resources are occupied in practical application.
In the prior art, the diagnosis management module is generally directly and fully loaded into the vehicle-mounted control system, and when a certain service is needed to be used, the service is called. However, for the vehicle-mounted control system, the whole diagnosis management module is directly loaded, so that the system is too heavy, the requirement of the vehicle-mounted control system on light weight cannot be met, and the call of the diagnosis service is not flexible. Meanwhile, the whole diagnosis management module is directly loaded, and unnecessary services are also loaded, and the unnecessary services occupy the system memory and resources, so that the memory and resources are wasted.
Disclosure of Invention
The embodiment of the application provides a diagnostic service configuration method, a device, a system, equipment and a storage medium, which can realize the dynamic configuration of diagnostic services and enable a diagnostic management module to be light and flexible.
In one aspect, an embodiment of the present application provides a diagnostic service configuration method, including:
determining a current configuration file;
if the current configuration file is the configuration file acquired according to the preset time interval, reading a historical configuration file; the history configuration file is a configuration file for loading diagnostic services at a history time; the history configuration file is stored in a first local memory;
if the current configuration file is inconsistent with the historical configuration file, performing configuration check on the current configuration file;
if the current configuration file passes the check, determining a demand diagnosis service based on the current configuration file;
loading a diagnosis service dynamic library for the diagnosis management module based on a dynamic library file corresponding to the demand diagnosis service; the diagnostic service dynamic library is used for providing the demand diagnostic service by the diagnostic management module.
Further, reading the history profile includes:
If the history configuration file does not exist, reading an initial configuration file; the initial configuration file is a configuration file stored in the second local memory;
the initial profile is determined to be a historical profile.
Further, performing configuration checking on the current configuration file includes:
Checking the service relevance of the diagnostic service corresponding to the current configuration file;
checking the integrity of the current configuration file;
The reliability of the current configuration file is checked.
Further, before the configuration check is performed on the current configuration file, the method further comprises:
and replacing the historical configuration file with the current configuration file, and storing the current configuration file in the first local memory.
Further, after the configuration check is performed on the current configuration file, the method further comprises:
if the current configuration file is not checked, replacing the current configuration file with the history configuration file, and storing the history configuration file in a first local memory;
determining a demand diagnostic service based on the historical profile;
Loading a diagnosis service dynamic library for the diagnosis management module based on a dynamic library file corresponding to the demand diagnosis service;
and generating configuration error information, and recording an error log according to the current configuration file and the configuration error information.
Further, after determining the current configuration file, before performing configuration check on the current configuration file, the method further includes:
If the current configuration file is the configuration file issued by the client, the current configuration file is used for replacing the historical configuration file and is stored in the first local memory.
In another aspect, an embodiment of the present application provides a diagnostic service configuration apparatus, including:
The current configuration file determining module is used for determining a current configuration file;
The updating confirmation module is used for reading the historical configuration file and comparing the current configuration file with the historical configuration file if the current configuration file is the configuration file acquired according to the preset time interval; the history configuration file is a configuration file for loading diagnostic services at a history time; the history configuration file is stored in a first local memory;
the configuration update checking module is used for performing configuration checking on the current configuration file if the current configuration file is inconsistent with the historical configuration file;
The demand diagnosis service determining module is used for determining demand diagnosis service based on the current configuration file if the current configuration file passes the check;
The diagnosis service loading module is used for loading a diagnosis service dynamic library for the diagnosis management module based on the dynamic library file corresponding to the demand diagnosis service; the diagnostic service dynamic library is used for providing the demand diagnostic service by the diagnostic management module.
Further, the update confirmation module is used for reading the initial configuration file if the history configuration file does not exist; the initial configuration file is a configuration file stored in the second local memory;
the initial profile is determined to be a historical profile.
Further, a configuration update checking module is used for checking the service relevance of the diagnostic service corresponding to the current configuration file;
checking the integrity of the current configuration file;
The reliability of the current configuration file is checked.
Further, the device further comprises:
And the configuration file storage module is used for replacing the history configuration file with the current configuration file and storing the current configuration file in the first local memory.
Further, the configuration file storage module is further configured to replace the current configuration file with the history configuration file if the current configuration file is not checked, and store the history configuration file in the first local memory;
the demand diagnosis service determining module is further used for determining a demand diagnosis service based on the history configuration file;
The diagnosis service loading module is also used for loading a diagnosis service dynamic library for the diagnosis management module based on the dynamic library file corresponding to the required diagnosis service;
the apparatus further comprises: and the error log recording module is used for generating configuration error information and recording an error log according to the current configuration file and the configuration error information.
Further, the configuration file storage module is further configured to store the current configuration file in the first local memory in place of the history configuration file if the current configuration file is a configuration file issued by the client.
In another aspect, an embodiment of the present application provides a diagnostic service configuration system, including the diagnostic service configuration apparatus and the diagnostic management module described above; the diagnosis service configuration device is connected with the diagnosis management module;
The diagnostic service configuration device is used for determining a current configuration file; if the current configuration file is the configuration file acquired according to the preset time interval, reading the historical configuration file, and comparing the current configuration file with the historical configuration file; if the current configuration file is inconsistent with the historical configuration file, performing configuration check on the current configuration file; if the current configuration file passes the check, determining a demand diagnosis service based on the current configuration file; loading a diagnosis service dynamic library for the diagnosis management module based on a dynamic library file corresponding to the demand diagnosis service; the history configuration file is a configuration file for loading diagnostic services at a history time; the history configuration file is stored in a first local memory;
the diagnosis management module is used for providing the demand diagnosis service based on a diagnosis service dynamic library;
The diagnosis management module comprises a plurality of diagnosis management sub-modules; a plurality of diagnostic management sub-modules for providing different diagnostic services; the plurality of diagnostic management submodules include different dynamic library files.
In another aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where at least one instruction or at least one program is stored, where the at least one instruction or the at least one program is loaded by the processor and executed by the processor to perform a diagnostic service configuration method as described above.
In another aspect, embodiments of the present application provide a computer storage medium having at least one instruction or at least one program stored therein, the at least one instruction or the at least one program loaded and executed by a processor to implement the diagnostic service configuration method as described above.
The diagnostic service configuration method, the diagnostic service configuration device, the diagnostic service configuration system, the diagnostic service configuration equipment and the diagnostic service storage medium provided by the embodiment of the application have the following technical effects:
The method comprises the following steps: determining a current configuration file; if the current configuration file is the configuration file acquired according to the preset time interval, reading a historical configuration file; the history configuration file is a configuration file for loading diagnostic services at a history time; the history configuration file is stored in a first local memory; if the current configuration file is inconsistent with the historical configuration file, performing configuration check on the current configuration file; if the current configuration file passes the check, determining a demand diagnosis service based on the current configuration file; loading a diagnosis service dynamic library for the diagnosis management module based on a dynamic library file corresponding to the demand diagnosis service; the diagnostic service dynamic library is used for providing the demand diagnostic service by the diagnostic management module. Therefore, the dynamic configuration of the diagnosis service can be realized, the diagnosis management module can assemble the diagnosis service according to the requirement, the number of the diagnosis services assembled by the diagnosis management module is reduced, and the diagnosis management module is light and flexible.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions and advantages of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a diagnostic service configuration system according to an embodiment of the present application;
FIG. 2 is a flow chart of a diagnostic service configuration method according to an embodiment of the present application;
FIG. 3 is a flowchart of a diagnostic service configuration method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a diagnostic service configuration device according to an embodiment of the present application;
Fig. 5 is a hardware block diagram of a server of a diagnostic service configuration method according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a diagnostic service configuration system according to an embodiment of the present application, where the system includes: a diagnostic service configuration device 1 and a diagnostic management module 2. The diagnostic service configuration apparatus 1 is connected to the diagnostic management module 2. The diagnostic service configuration device 1 determines a current configuration file; if the current configuration file is the configuration file acquired according to the preset time interval, reading the historical configuration file, and comparing the current configuration file with the historical configuration file; if the current configuration file is inconsistent with the historical configuration file, performing configuration check on the current configuration file; if the current configuration file passes the check, determining a demand diagnosis service based on the current configuration file; and loading a diagnosis service dynamic library for the diagnosis management module 2 based on the dynamic library file corresponding to the required diagnosis service. The history configuration file is a configuration file for loading diagnostic services at a history time, and the history configuration file is stored in the first local memory. The diagnosis management module 2 provides the corresponding demand diagnosis service to the test end based on the diagnosis service dynamic library loaded by the diagnosis service configuration apparatus 1.
As an alternative embodiment, the diagnostic management module 2 is based on a functional cluster on an AUTOSAR adaptive platform standard functional layer. The diagnostic management module 2 mainly comprises a diagnostic event management module 21 and a diagnostic control module 22, and the diagnostic event management module 21 is connected with the diagnostic control module 22. The diagnostic event management module 21 is responsible for processing and storing diagnostic events and related data, providing fault information to the diagnostic control module 22; the diagnostic control module 22 processes the diagnostic data stream and manages diagnostic conditions based on the fault information.
As an alternative embodiment, the diagnostic control module 22 interacts with the test terminal via the DOIP protocol. On the one hand, the test end calls the diagnosis service loaded in the diagnosis management module 2 through DOIP protocol, so that the diagnosis event management module 21 confirms the fault information according to the related data called by the corresponding diagnosis service, and the diagnosis control module 22 processes the diagnosis data stream according to the corresponding diagnosis service and manages the diagnosis state to obtain the diagnosis result. On the other hand, the diagnosis control module 22 transmits the diagnosis result to the test terminal through DOIP protocol.
As an alternative embodiment, the diagnostic management module 2 may be divided into a plurality of diagnostic management sub-modules, which each correspond to a different diagnostic service. While the diagnostic event management module 21 can provide 9 kinds of diagnostic services and the diagnostic control module 22 can provide 16 kinds of diagnostic services, the diagnostic event management module 21 can be regarded as a module consisting of 9 diagnostic management sub-modules and the diagnostic control module 22 can be regarded as a module consisting of 16 diagnostic management sub-modules.
As an alternative implementation, each diagnostic service, i.e. each diagnostic management sub-module, has its corresponding unique dynamic library file, and loading of its corresponding dynamic library file enables the loading of that diagnostic service or of that diagnostic management sub-module.
As an alternative embodiment, the diagnostic service configuration device 1 is connected to the diagnostic event management module 21 and the diagnostic control module 22, and calls and loads the dynamic library files of the diagnostic services required in the diagnostic event management module 21 and the diagnostic control module 22, respectively, to form a diagnostic service dynamic library required by the test end.
As an alternative implementation manner, the diagnostic service configuration device 1 may further eliminate, according to the current configuration file, a dynamic library file of an unnecessary diagnostic service in the diagnostic service dynamic library, so as to ensure that the diagnostic service in the diagnostic service dynamic library is consistent with the current configuration file.
As an alternative embodiment, the user may directly issue the current configuration file to the diagnostic service configuration apparatus 1 from the client, or may issue the required diagnostic service to the diagnostic service configuration apparatus 1, and the diagnostic service configuration apparatus 1 generates the corresponding current configuration file.
As an alternative implementation manner, the client for issuing the current configuration file or the requirement diagnosis service and the test end for finally calling the requirement diagnosis service can be integrated in the same terminal, namely, when the user needs the diagnosis test, the user can directly issue the requirement from the terminal to the diagnosis service configuration system without additional equipment, devices or systems, and the requirement diagnosis service can be called to complete the diagnosis test, so that the dynamic configuration of the diagnosis service is more convenient and easy to operate.
The diagnostic service configuration system provided by the embodiment of the application can realize the dynamic configuration of diagnostic services, can configure the diagnostic services as required, meets the requirements of different diagnostic tests, reduces the number of diagnostic services assembled by the diagnostic management module 2, and realizes the light weight and the flexible activation of diagnostic configuration.
The embodiment of the application also provides a diagnostic service configuration method, and fig. 2 is a schematic flow chart of the diagnostic service configuration method provided by the embodiment of the application, and the description provides the method operation steps of the embodiment or the flowchart, but more or fewer operation steps can be included based on routine or non-creative labor. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When implemented in a real system or server product, the methods illustrated in the embodiments or figures may be performed sequentially or in parallel (e.g., in a parallel processor or multithreaded environment). As shown in fig. 2, the method may include:
S201: a current configuration file is determined.
In the embodiment of the application, two approaches are available for acquiring the current configuration file, the first approach is that the diagnostic service configuration module 1 actively acquires the current configuration file from the client or the server according to a preset time interval, and the second approach is that the current configuration file is directly issued by the client or the server.
As an alternative embodiment, when the client or the server does not issue the current configuration file, i.e. does not receive the current configuration file of the second path, the diagnostic service configuration module 1 obtains the current configuration file from the client or the server according to the first path by default and at preset time intervals.
As an alternative embodiment, the preset time interval may be set or changed according to actual requirements. In the embodiment of the present application, the preset time interval may be 10 seconds.
As an alternative embodiment, a configuration tool may be built in the client or the server, and after the user determines that the diagnostic service is required, the configuration tool in the client or the server generates a current configuration file based on the diagnostic service required, and then obtains the current configuration file from the diagnostic service configuration device 1.
As an alternative embodiment, the client or the server keeps the current configuration file until a new current configuration file is generated, and replaces the current configuration file, so that the diagnostic service configuration device 1 can determine whether the current configuration file is updated after obtaining the current configuration file from the client or the server.
As an alternative embodiment, a configuration tool may be built into the diagnostic service configuration module 1, where the client or server does not directly generate the current configuration file, but only determines that diagnostic services are required. The diagnostic services configuration module 1 determines the required diagnostic services from the client or server and then generates the current configuration file from its built-in configuration tool.
S203: and if the current configuration file is the configuration file acquired according to the preset time interval, reading the historical configuration file.
In the embodiment of the present application, if the current configuration file is a configuration file obtained according to a preset time interval, the diagnostic service configuration module 1 cannot directly determine whether the current configuration file is updated, and includes a new required diagnostic service, so that it is necessary to read a history configuration file, and compare the history configuration file with the history configuration file, thereby determining whether the current configuration file is updated.
In the embodiment of the application, the history configuration file is a configuration file for loading diagnostic service at the history moment, namely, a valid configuration file output last time. The history configuration file is stored in the first local memory.
As an alternative embodiment, if no history profile exists, the initial profile is read. After the diagnostic service configuration module 1 is started or initialized, no valid configuration file is output at the historical moment in the diagnostic service configuration module, namely no historical configuration file is generated, and the initial configuration file is used as the historical configuration file at the moment and is used for comparing with the current configuration file to determine whether the current configuration file is updated or not. The initial configuration file is stored in the second local memory.
As an alternative embodiment, the initial profile is a default profile that contains default diagnostic services that contain some basic functionality of the diagnostic management module 2.
As an alternative implementation mode, the default diagnosis service can be adaptively adjusted by a user according to the applied testing terminal, and the diagnosis service which is more universal for the testing terminal is selected.
S205: if the current configuration file is inconsistent with the historical configuration file, performing configuration check on the current configuration file.
In the embodiment of the application, if the current configuration file is inconsistent with the history configuration file, the current configuration file is updated, and the current configuration file can be stored in the first local memory to be used as the history configuration file after the new current configuration file is obtained later, and the history configuration file is compared with the new current configuration file to determine whether the new current configuration file is updated. After replacing the history configuration file with the current configuration file, the current configuration file is subjected to configuration check to ensure that the current configuration file is complete and reliable.
As an alternative embodiment, it is contemplated that the user will typically not directly issue a new configuration file via the client or server when the diagnostic service configuration needs to be changed, i.e., the current configuration file issued by the client or server may default to be updated. If the current configuration file is a configuration file issued by the client or the server, the current configuration file and the history configuration file may not be compared to determine whether the current configuration file is updated, but the current configuration file is directly replaced by the history configuration file and stored in the first local memory, so that the step of updating the diagnosis service configuration is reduced, and the response speed is improved.
As an optional implementation manner, if the current configuration file is a configuration file issued by the client or the server, the current configuration file may still be compared with the historical configuration file to determine whether the current configuration is updated, so as to prevent the client or the server from repeatedly loading the loaded diagnostic service when the client or the server issues the current configuration file which is not updated.
As an alternative embodiment, the configuration check of the current configuration file may include the following three aspects:
(1) And checking the service relevance of the diagnostic service corresponding to the current configuration file. Because some diagnostic services need to be supported simultaneously, the integrity of the services can be ensured, and the diagnostic services are normally loaded and invoked, the service relevance of the diagnostic services contained in the current configuration file needs to be checked, and the diagnostic services with the service relevance of the diagnostic services in the current configuration file are ensured to be in the current configuration file.
(2) The integrity of the current configuration file is checked. The checking of the integrity of the current configuration file is mainly used for preventing the current configuration file from being damaged in the information transmission process and preventing incomplete diagnosis service of final loading caused by incomplete configuration information in the current configuration file.
(3) The reliability of the current configuration file is checked. The checking of the integrity of the current configuration file is mainly used for preventing the current configuration file from being tampered in the information transmission process and preventing the loading of the wrong diagnosis service according to the wrong current configuration file.
As an alternative implementation mode, the integrity and the reliability of the current configuration file can be confirmed through an encryption and decoding algorithm, and meanwhile, the transmission of the current configuration file is guaranteed to be free of errors in the information transmission process. In the application, the adopted decoding algorithm is not limited, and any decoding algorithm capable of confirming the integrity and reliability of the current configuration file can be adopted.
As an alternative embodiment, when the configuration tool generates the current configuration file, the configuration tool may also perform a preliminary check on the generated current configuration file. The preliminary check is mainly used for ensuring that the generated current configuration file is consistent with the required diagnostic service and avoiding the error of the finally loaded diagnostic service caused by the generation error of the current configuration file.
S207: if the current profile is checked to pass, a demand diagnostic service is determined based on the current profile.
S209: and loading a diagnosis service dynamic library for the diagnosis management module based on the dynamic library file corresponding to the demand diagnosis service.
In the embodiment of the application, each diagnosis service has the corresponding dynamic library file, and the diagnosis service can be loaded by loading the corresponding dynamic library file.
In the embodiment of the application, the diagnosis service dynamic library is a collection of loaded diagnosis service dynamic library files, and is used for providing the diagnosis service according to the requirements by the diagnosis management module.
As an optional implementation manner, fig. 3 shows steps of a flow chart of a diagnostic service configuration method provided by an embodiment of the present application, S205: if the current configuration file is inconsistent with the history configuration file, after the configuration check is performed on the current configuration file, the relevant steps executed by the diagnostic service configuration module 1 are further included in the case that the current configuration file check fails, as shown in fig. 3 specifically:
s301: if the current configuration file is not checked, replacing the current configuration file with the history configuration file, and storing the history configuration file in the first local memory.
In the embodiment of the application, if the current configuration file is checked to be failed, the current configuration file is not an effective configuration file, and the current configuration file needs to be rolled back to be the last effective configuration, namely, a history configuration file needs to be rolled back, and the history configuration file is used for replacing the current configuration file and is stored in the first local memory again.
As an alternative embodiment, in case there is no last valid configuration, i.e. no history profile, the initial profile is used as history profile, when the demand diagnostic service is loaded in a default configuration.
S303: a demand diagnostic service is determined based on the historical profile.
S305: and loading a diagnosis service dynamic library for the diagnosis management module based on the dynamic library file corresponding to the demand diagnosis service.
S307: and generating configuration error information, and recording an error log according to the current configuration file and the configuration error information.
In the embodiment of the present application, since the current configuration file is invalid, the diagnostic service configuration device 1 needs to generate corresponding configuration error information to inform the user of generating an error in configuration, and records an error log according to the current configuration file and the configuration error information, so that a subsequent user can find and determine the cause of the error in configuration according to the error log.
The embodiment of the application also provides a diagnostic service configuration device, and fig. 4 is a schematic structural diagram of the diagnostic service configuration device provided by the embodiment of the application, as shown in fig. 4, the device includes:
A current configuration file determining module 401, configured to determine a current configuration file;
The update confirmation module 402 is configured to, if the current configuration file is a configuration file obtained according to a preset time interval, read a history configuration file, and compare the current configuration file with the history configuration file; the history configuration file is a configuration file for loading diagnostic services at a history time; the history configuration file is stored in a first local memory;
A configuration update checking module 403, configured to perform configuration checking on the current configuration file if the current configuration file is inconsistent with the history configuration file;
A demand diagnosis service determining module 404, configured to determine a demand diagnosis service based on the current configuration file if the current configuration file passes the inspection;
The diagnostic service loading module 405 is configured to load a diagnostic service dynamic library for the diagnostic management module based on a dynamic library file corresponding to the required diagnostic service; the diagnostic service dynamic library is used for providing the demand diagnostic service by the diagnostic management module.
Further, the update confirmation module 402 is configured to read the initial configuration file if the history configuration file does not exist; the initial configuration file is a configuration file stored in the second local memory;
the initial profile is determined to be a historical profile.
Further, a configuration update checking module 403, configured to check service relevance of the diagnostic service corresponding to the current configuration file;
checking the integrity of the current configuration file;
The reliability of the current configuration file is checked.
Further, the device further comprises:
And the configuration file storage module is used for replacing the history configuration file with the current configuration file and storing the current configuration file in the first local memory.
Further, the configuration file storage module is further configured to replace the current configuration file with the history configuration file if the current configuration file is not checked, and store the history configuration file in the first local memory;
The demand diagnosis service determining module 404 is further configured to determine a demand diagnosis service based on the history profile;
the diagnostic service loading module 405 is further configured to load a diagnostic service dynamic library for the diagnostic management module based on a dynamic library file corresponding to the required diagnostic service;
the apparatus further comprises: and the error log recording module is used for generating configuration error information and recording an error log according to the current configuration file and the configuration error information.
Further, the configuration file storage module is further configured to store the current configuration file in the first local memory in place of the history configuration file if the current configuration file is a configuration file issued by the client.
The apparatus and method embodiments in this apparatus embodiment are based on the same application concept.
The method embodiments provided by the embodiments of the present application may be performed in a mobile terminal, a computer terminal, a server, or similar computing device. Taking the operation on the server as an example, fig. 5 is a hardware structure block diagram of the server of a diagnostic service configuration method according to an embodiment of the present application. As shown in fig. 5, the server 500 may vary considerably in configuration or performance and may include one or more central processing units (Central Processing Units, CPU) 510 (the processor 510 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA), a memory 530 for storing data, one or more storage mediums 520 (e.g., one or more mass storage devices) storing applications 523 or data 522. Wherein the memory 530 and storage medium 520 may be transitory or persistent storage. The program stored on the storage medium 520 may include one or more modules, each of which may include a series of instruction operations on a server. Still further, the central processor 510 may be arranged to communicate with a storage medium 520, and to execute a series of instruction operations in the storage medium 520 on the server 500. The server 500 may also include one or more power supplies 560, one or more wired or wireless network interfaces 550, one or more input/output interfaces 540, and/or one or more operating systems 521, such as Windows ServerTM, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
Input-output interface 540 may be used to receive or transmit data via a network. The specific example of the network described above may include a wireless network provided by a communication provider of the server 500. In one example, input/output interface 540 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices via a base station to communicate with the internet. In one example, the input/output interface 540 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 5 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, server 500 may also include more or fewer components than shown in fig. 5, or have a different configuration than shown in fig. 5.
The embodiment of the application also provides diagnostic service configuration equipment, which comprises a processor and a memory, wherein at least one instruction, at least one section of program, code set or instruction set is stored in the memory, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to realize the diagnostic service configuration method.
Embodiments of the present application also provide a storage medium that may be disposed in a server to store at least one instruction, at least one program, a code set, or an instruction set related to implementing a diagnostic service configuration method in a method embodiment, where the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the diagnostic service configuration method provided in the method embodiment.
Alternatively, in this embodiment, the storage medium may be located in at least one network server among a plurality of network servers of the computer network. Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The embodiments of the diagnostic service configuration method, apparatus, system, device and storage medium provided by the present application described above can be seen, the method comprising: determining a current configuration file; if the current configuration file is the configuration file acquired according to the preset time interval, reading a historical configuration file; the history configuration file is a configuration file for loading diagnostic services at a history time; the history configuration file is stored in a first local memory; if the current configuration file is inconsistent with the historical configuration file, performing configuration check on the current configuration file; if the current configuration file passes the check, determining a demand diagnosis service based on the current configuration file; loading a diagnosis service dynamic library for the diagnosis management module based on a dynamic library file corresponding to the demand diagnosis service; the diagnostic service dynamic library is used for providing the demand diagnostic service by the diagnostic management module. Therefore, the dynamic configuration of the diagnosis service can be realized, the diagnosis management module can assemble the diagnosis service according to the requirement, the number of the diagnosis services assembled by the diagnosis management module is reduced, and the diagnosis management module is light and flexible.
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And the foregoing description has been directed to specific embodiments of this specification. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing is only illustrative of the present application and is not to be construed as limiting thereof, but rather as various modifications, equivalent arrangements, improvements, etc., within the spirit and principles of the present application.

Claims (10)

1. The diagnostic service configuration method is characterized by comprising a diagnostic management module applied to an AUTOSAR adaptive platform standard function layer, wherein the diagnostic management module comprises a diagnostic event management module and a diagnostic control module, the diagnostic event management module and the diagnostic control module respectively comprise a plurality of different diagnostic services, the diagnostic services contained in the diagnostic event management module and the diagnostic control module have corresponding relativity, the diagnostic event management module and the diagnostic control module are divided into a plurality of diagnostic management sub-modules corresponding to the different diagnostic services, each diagnostic management sub-module comprises a unique dynamic library file corresponding to the diagnostic management sub-module, and the loading of the diagnostic service or the diagnostic management sub-module is realized by loading the corresponding dynamic library file; the method comprises the following steps:
determining a current configuration file;
If the current configuration file is the configuration file acquired according to the preset time interval, reading a historical configuration file; the history configuration file is a configuration file for loading diagnostic services at a history moment; the history configuration file is stored in a first local memory;
If the current configuration file is inconsistent with the historical configuration file, performing configuration check on the current configuration file;
if the current configuration file passes the check, determining a demand diagnosis service based on the current configuration file;
Loading a diagnosis service dynamic library for the diagnosis management module based on the dynamic library file corresponding to the required diagnosis service; the diagnosis service dynamic library is used for providing the demand diagnosis service by the diagnosis management module; the diagnosis event management module confirms fault information according to the corresponding diagnosis service call related data, and the diagnosis control module processes diagnosis data flow and manages diagnosis states according to the corresponding diagnosis service to obtain diagnosis results;
and the configuration checking of the current configuration file comprises checking of service relevance of diagnostic services corresponding to the current configuration file.
2. The diagnostic service configuration method of claim 1, wherein the reading of the history profile comprises:
If the history configuration file does not exist, reading an initial configuration file; the initial configuration file is a configuration file stored in a second local memory;
and determining the initial configuration file as the history configuration file.
3. The diagnostic service configuration method of claim 1, wherein the performing configuration check on the current configuration file further comprises:
checking the integrity of the current configuration file;
and checking the reliability of the current configuration file.
4. The diagnostic service configuration method of claim 1, wherein prior to the performing the configuration check on the current configuration file, further comprising:
And replacing the history configuration file with the current configuration file and storing the current configuration file in the first local memory.
5. The diagnostic service configuration method according to any one of claims 3 to 4, wherein after the configuration check of the current configuration file, further comprising:
If the current configuration file is not checked, replacing the current configuration file with the history configuration file, and storing the history configuration file in the first local memory;
Determining the demand diagnostic service based on the historical profile;
Loading the diagnosis service dynamic library for the diagnosis management module based on the dynamic library file corresponding to the required diagnosis service;
and generating configuration error information, and recording an error log according to the current configuration file and the configuration error information.
6. The diagnostic service configuration method of claim 1, wherein after the determining the current configuration file, before the performing the configuration check on the current configuration file, further comprises:
If the current configuration file is the configuration file issued by the client, replacing the history configuration file with the current configuration file, and storing the current configuration file in the first local memory.
7. The diagnostic service configuration device is characterized by comprising a diagnostic management module applied to an AUTOSAR adaptive platform standard function layer, wherein the diagnostic management module comprises a diagnostic event management module and a diagnostic control module, the diagnostic event management module and the diagnostic control module respectively comprise a plurality of different diagnostic services, the diagnostic services contained in the diagnostic event management module and the diagnostic control module have corresponding relativity, the diagnostic event management module and the diagnostic control module are divided into a plurality of diagnostic management sub-modules corresponding to the different diagnostic services, each diagnostic management sub-module comprises a unique dynamic library file corresponding to the diagnostic management sub-module, and the loading of the diagnostic service or the diagnostic management sub-module is realized by loading the corresponding dynamic library file; comprising the following steps:
The current configuration file determining module is used for determining a current configuration file;
the updating confirmation module is used for reading the historical configuration file and comparing the current configuration file with the historical configuration file if the current configuration file is the configuration file acquired according to the preset time interval; the history configuration file is a configuration file for loading diagnostic services at a history moment; the history configuration file is stored in a first local memory;
The configuration updating checking module is used for performing configuration checking on the current configuration file if the current configuration file is inconsistent with the historical configuration file; the configuration checking of the current configuration file comprises checking of service relevance of diagnostic services corresponding to the current configuration file;
a demand diagnosis service determining module, configured to determine a demand diagnosis service based on the current configuration file if the current configuration file passes the inspection;
the diagnosis service loading module is used for loading a diagnosis service dynamic library for the diagnosis management module based on the dynamic library file corresponding to the required diagnosis service; the diagnosis service dynamic library is used for providing the demand diagnosis service by the diagnosis management module; and enabling the diagnosis event management module to confirm fault information according to the data related to the corresponding diagnosis service call, and enabling the diagnosis control module to process diagnosis data flow and manage diagnosis states according to the corresponding diagnosis service to obtain diagnosis results.
8. A diagnostic service configuration system comprising the diagnostic service configuration device of claim 7 and a diagnostic management module of an AUTOSAR adaptive platform standard function layer; the diagnosis service configuration device is connected with the diagnosis management module;
The diagnosis service configuration device is used for determining a current configuration file; if the current configuration file is a configuration file acquired according to a preset time interval, reading a historical configuration file, and comparing the current configuration file with the historical configuration file; if the current configuration file is inconsistent with the historical configuration file, performing configuration check on the current configuration file; if the current configuration file passes the check, determining a demand diagnosis service based on the current configuration file; loading a diagnosis service dynamic library for the diagnosis management module based on the dynamic library file corresponding to the required diagnosis service; the history configuration file is a configuration file for loading diagnostic services at a history moment; the history configuration file is stored in a first local memory; the configuration checking of the current configuration file comprises checking of service relevance of diagnostic services corresponding to the current configuration file;
The diagnosis management module comprises a diagnosis event management module and a diagnosis control module, wherein the diagnosis event management module and the diagnosis control module respectively comprise a plurality of different diagnosis services, the diagnosis services contained in the diagnosis event management module and the diagnosis control module have corresponding relevance, and the diagnosis event management module and the diagnosis control module are divided into a plurality of diagnosis management sub-modules corresponding to the different diagnosis services; the plurality of diagnostic management submodules are used for providing different diagnostic services; each diagnosis management sub-module comprises a unique dynamic library file corresponding to the diagnosis management sub-module, and the corresponding dynamic library file is loaded to realize the loading of the diagnosis service or the diagnosis management sub-module;
the diagnosis management module is used for providing the demand diagnosis service based on the diagnosis service dynamic library; and enabling the diagnosis event management module to confirm fault information according to the data related to the corresponding diagnosis service call, and enabling the diagnosis control module to process diagnosis data flow and manage diagnosis states according to the corresponding diagnosis service to obtain diagnosis results.
9. An electronic device comprising a processor and a memory, wherein the memory has stored therein at least one instruction or at least one program, the at least one instruction or the at least one program being loaded by the processor and executing the diagnostic service configuration method according to any one of claims 1-6.
10. A computer storage medium having stored therein at least one instruction or at least one program loaded and executed by a processor to implement the diagnostic service configuration method of any one of claims 1-6.
CN202210671502.1A 2022-06-14 2022-06-14 Diagnostic service configuration method, device, system, equipment and storage medium Active CN115202914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210671502.1A CN115202914B (en) 2022-06-14 2022-06-14 Diagnostic service configuration method, device, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210671502.1A CN115202914B (en) 2022-06-14 2022-06-14 Diagnostic service configuration method, device, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115202914A CN115202914A (en) 2022-10-18
CN115202914B true CN115202914B (en) 2024-05-24

Family

ID=83576708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210671502.1A Active CN115202914B (en) 2022-06-14 2022-06-14 Diagnostic service configuration method, device, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115202914B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006094628A1 (en) * 2005-03-04 2006-09-14 Daimlerchrysler Ag Control appliance comprising configurable hardware modules
CN108099818A (en) * 2016-11-25 2018-06-01 比亚迪股份有限公司 The self-learning method and self learning system and vehicle of vehicle configuration information
EP3346426A1 (en) * 2017-01-04 2018-07-11 STMicroelectronics Srl Reconfigurable interconnect, corresponding system and method
CN109002314A (en) * 2018-09-29 2018-12-14 深圳市元征科技股份有限公司 Oftware updating method, device, electronic equipment and storage medium
CN109086102A (en) * 2018-08-02 2018-12-25 深圳市元征科技股份有限公司 Dynamic loading method, device and the storage medium of diagnostic software
CN111142903A (en) * 2019-12-23 2020-05-12 杭州安恒信息技术股份有限公司 Configuration file interactive updating method and device based on file comparison
CN111338869A (en) * 2020-02-24 2020-06-26 中移(杭州)信息技术有限公司 Configuration parameter management method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080033609A1 (en) * 2006-08-04 2008-02-07 Ramin Razavi Automotive diagnostic and tuning system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006094628A1 (en) * 2005-03-04 2006-09-14 Daimlerchrysler Ag Control appliance comprising configurable hardware modules
CN108099818A (en) * 2016-11-25 2018-06-01 比亚迪股份有限公司 The self-learning method and self learning system and vehicle of vehicle configuration information
EP3346426A1 (en) * 2017-01-04 2018-07-11 STMicroelectronics Srl Reconfigurable interconnect, corresponding system and method
CN109086102A (en) * 2018-08-02 2018-12-25 深圳市元征科技股份有限公司 Dynamic loading method, device and the storage medium of diagnostic software
CN109002314A (en) * 2018-09-29 2018-12-14 深圳市元征科技股份有限公司 Oftware updating method, device, electronic equipment and storage medium
CN111142903A (en) * 2019-12-23 2020-05-12 杭州安恒信息技术股份有限公司 Configuration file interactive updating method and device based on file comparison
CN111338869A (en) * 2020-02-24 2020-06-26 中移(杭州)信息技术有限公司 Configuration parameter management method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115202914A (en) 2022-10-18

Similar Documents

Publication Publication Date Title
CN108399132B (en) Scheduling test method, device and storage medium
US7296190B2 (en) Parallel text execution on low-end emulators and devices
US11003561B2 (en) Systems and methods for predicting information handling resource failures using deep recurrent neural networks
CN111324441A (en) Operating environment switching method and device, computer equipment and storage medium
US11288170B1 (en) Log analysis debugging without running on real production environment
CN111897697A (en) Server hardware fault repairing method and device
CN115328752A (en) Cluster simulation method and system for Kubernetes control plane test
CN102014163B (en) Cloud storage test method and system based on transaction driving
CN109828830B (en) Method and apparatus for managing containers
JP2022100301A (en) Method for determining potential impact on computing device by software upgrade, computer program, and update recommendation computer server (recommendation of stability of software upgrade)
CN113885971A (en) State management method and device based on self-adaptive platform system
CN112598529B (en) Data processing method and device, computer readable storage medium and electronic equipment
CN115202914B (en) Diagnostic service configuration method, device, system, equipment and storage medium
CN110971478A (en) Pressure measurement method and device for cloud platform service performance and computing equipment
CN110874238B (en) Online service updating method and device
CN111209197B (en) Application continuous integration test method, system, equipment and storage medium
CN114443065A (en) Platform deployment method, platform deployment device, electronic equipment and storage medium
CN114037496A (en) State machine-based order state management method, device, equipment and medium
CN113518974A (en) System and method for finding and identifying computing nodes in a network
CN114980183B (en) Network element configuration state monitoring method, device, system, medium and electronic equipment
CN115022317B (en) Cloud platform-based application management method and device, electronic equipment and storage medium
CN113704016B (en) Cloud function component diagnosis method, device, equipment and storage medium
CN108459940A (en) Application performance manages configuration information amending method, device and the electronic equipment of system
CN108496164A (en) Backup optimization based on dynamic resource feedback
KR102636698B1 (en) Vulnerability check method of serverless function and check server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant