CN115202914A - 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
CN115202914A
CN115202914A CN202210671502.1A CN202210671502A CN115202914A CN 115202914 A CN115202914 A CN 115202914A CN 202210671502 A CN202210671502 A CN 202210671502A CN 115202914 A CN115202914 A CN 115202914A
Authority
CN
China
Prior art keywords
configuration file
diagnosis
service
historical
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.)
Granted
Application number
CN202210671502.1A
Other languages
Chinese (zh)
Other versions
CN115202914B (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 Corp
Original Assignee
China Automotive Innovation Corp
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 Corp filed Critical China Automotive Innovation Corp
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

Images

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 historical configuration file is a configuration file used for loading the diagnostic service at the historical moment; the historical 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 the required 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 diagnosis service dynamic library is used for providing the demand diagnosis service for the diagnosis management module. Therefore, dynamic configuration of the diagnosis services can be realized, the diagnosis services can be assembled according to needs, 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 a function cluster on an 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 diagnostic event management module is responsible for processing and storing diagnostic events and related data and providing fault information to the diagnostic control module, and the diagnostic control module comprises 9 services; the diagnostic control module is responsible for handling diagnostic data flow and managing diagnostic status, which includes 26 services. The diagnosis management comprises 35 services in total, and more resources are occupied in practical application.
In the prior art, a diagnosis management module is usually directly and completely loaded into a vehicle-mounted control system, and when a certain service is required 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 diagnosis service is not flexible. Meanwhile, the whole diagnosis management module is directly loaded, some unnecessary services are also loaded, and the unnecessary services occupy system memory and resources, so that the memory and the resources are wasted.
Disclosure of Invention
The embodiment of the application provides a diagnostic service configuration method, a diagnostic service configuration device, a diagnostic service configuration system, a diagnostic service configuration device and a storage medium, which can realize 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, where the method includes:
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 historical configuration file is a configuration file used for loading the diagnostic service at the historical moment; the historical 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 the required 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 diagnosis service dynamic library is used for providing the demand diagnosis service for the diagnosis management module.
Further, reading the historical configuration file comprises:
if no historical configuration file exists, reading an initial configuration file; the initial configuration file is stored in a second local memory;
the initial profile is determined to be a historical profile.
Further, performing configuration check on the current configuration file includes:
checking the service relevance of the diagnosis 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 performing configuration check on the current configuration file, the method further includes:
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 includes:
if the current configuration file is not checked, replacing the current configuration file with the historical configuration file, and storing the historical 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 and before performing configuration check on the current configuration file, the method further includes:
and if the current configuration file is the configuration file issued by the client, replacing the historical configuration file with the current configuration file, and storing the current configuration file in the first local memory.
In another aspect, an embodiment of the present application provides a diagnostic service configuration apparatus, where the apparatus includes:
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 if the current configuration file is the configuration file acquired according to the preset time interval, and comparing the current configuration file with the historical configuration file; the historical configuration file is a configuration file for loading the diagnostic service at the historical moment; the historical configuration file is stored in a first local memory;
the configuration updating and checking module is used for checking the configuration of 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 inspection;
the diagnosis service loading module is used for loading a diagnosis service dynamic library for the diagnosis management module based on a dynamic library file corresponding to the demand diagnosis service; the diagnosis service dynamic library is used for providing the demand diagnosis service for the diagnosis management module.
Further, the update confirmation module is used for reading the initial configuration file if the historical configuration file does not exist; the initial configuration file is a configuration file stored in a second local memory;
the initial profile is determined to be a historical profile.
Further, the configuration update checking module is used for checking the service relevance of the diagnosis service corresponding to the current configuration file;
checking the integrity of the current configuration file;
the reliability of the current profile is checked.
Further, the apparatus further comprises:
and the configuration file storage module is used for replacing the historical 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 historical configuration file and store the current configuration file in the first local memory if the current configuration file fails to be checked;
the demand diagnosis service determining module is also used for determining demand diagnosis service based on the historical 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 demand diagnosis service;
the device also includes: 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, if the current configuration file is a configuration file issued by the client, replace the historical configuration file with the current configuration file, and store the historical configuration file in the first local memory.
On the other hand, an embodiment of the present application provides a diagnostic service configuration system, which includes 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 to require the 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 historical configuration file is a configuration file used for loading the diagnostic service at the historical moment; the historical configuration file is stored in a first local memory;
the diagnosis management module is used for providing the demand diagnosis service based on the diagnosis service dynamic library;
the diagnosis management module comprises a plurality of diagnosis management submodules; the plurality of diagnosis management sub-modules are used for providing different diagnosis 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, where the electronic device includes a processor and a memory, where at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded by the processor and executes the diagnostic service configuration method described above.
In another aspect, an embodiment of the present application provides a computer storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the diagnostic service configuration method described above.
The diagnostic service configuration method, the device, the system, the equipment and the 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 historical configuration file is a configuration file used for loading the diagnostic service at the historical moment; the historical 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 the required 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 diagnosis service dynamic library is used for providing the demand diagnosis service for the diagnosis management module. Therefore, 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 service 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 technical solutions and advantages of the embodiments of the present application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
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 schematic flow chart illustrating a diagnostic service configuration method according to an embodiment of the present disclosure;
fig. 3 is a schematic 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 apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a hardware structure of a server in a diagnostic service configuration method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or 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, 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 a diagnostic management module 2. The diagnostic service configuration apparatus 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 to require the 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 demand diagnosis service. The historical configuration file is used for loading the diagnostic service at the historical moment and is stored in the first local memory. The diagnosis management module 2 provides the corresponding required diagnosis service for the test end based on the diagnosis service dynamic library loaded by the diagnosis service configuration device 1.
As an alternative embodiment, the diagnostic management module 2 is a functional cluster on the functional layer based on the AUTOSAR adaptive platform standard. The diagnosis management module 2 mainly comprises a diagnosis event management module 21 and a diagnosis control module 22, and the diagnosis event management module 21 is connected with the diagnosis control module 22. The diagnostic event management module 21 is responsible for processing and storing diagnostic events and related data, and providing fault information to the diagnostic control module 22; the diagnostic control module 22 then processes the diagnostic data stream and manages the diagnostic status based on the fault information.
As an alternative embodiment, the diagnostic control module 22 interacts with the test site via the DOIP protocol. On one hand, the test end calls the diagnostic service loaded in the diagnostic management module 2 through the DOIP protocol, so that the diagnostic event management module 21 calls related data according to the corresponding diagnostic service to confirm the fault information, and the diagnostic control module 22 processes the diagnostic data stream and manages the diagnostic state according to the corresponding diagnostic service to obtain a diagnostic result. On the other hand, the diagnosis control module 22 transmits the diagnosis result to the test side through the DOIP protocol.
As an alternative embodiment, the diagnosis management module 2 may be divided into a plurality of diagnosis management sub-modules, and the diagnosis management sub-modules correspond to different diagnosis services respectively. While the diagnostic event management module 21 can provide 9 diagnostic services and the diagnostic control module 22 can provide 16 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 optional embodiment, each diagnostic service, that is, each diagnostic management sub-module, has a unique dynamic library file corresponding to the diagnostic service, and the loading of the diagnostic service or the diagnostic management sub-module can be implemented by loading the corresponding dynamic library file.
As an alternative embodiment, the diagnostic service configuration apparatus 1 is connected to the diagnostic event management module 21 and the diagnostic control module 22, respectively, and calls and loads dynamic library files of diagnostic services required in the diagnostic event management module 21 and the diagnostic control module 22, respectively, to form a dynamic library of diagnostic services required by the test end.
As an alternative embodiment, the diagnostic service configuration apparatus 1 may also eliminate the dynamic library file of the unnecessary diagnostic services in the dynamic library of diagnostic services according to the current configuration file, and ensure that the diagnostic services in the dynamic library of diagnostic services are 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 optional implementation manner, the client for issuing the current configuration file or the demand diagnostic service may be integrated in the same terminal as the test terminal for finally invoking the demand diagnostic service, that is, when a user needs a diagnostic test, the user can invoke the demand diagnostic service to complete the diagnostic test by directly issuing a demand from the terminal to the diagnostic service configuration system without using additional equipment, devices or systems, so that the dynamic configuration of the diagnostic service is more convenient and easy to operate.
The diagnosis service configuration system provided by the embodiment of the application can realize dynamic configuration of diagnosis services, can configure the diagnosis services as required, meets the requirements of different diagnosis tests, reduces the number of the diagnosis services assembled by the diagnosis management module 2, and realizes light weight and flexibility of diagnosis configuration.
The present disclosure provides a method for configuring a diagnostic service, and fig. 2 is a schematic flowchart of a method for configuring a diagnostic service provided in an embodiment of the present disclosure, and the present disclosure provides the method operation steps as in the embodiment or the flowchart, but may include more or less operation steps based on conventional or non-creative labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system or server product may be implemented in a sequential or parallel manner (e.g., parallel processor or multi-threaded environment) according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 2, the method may include:
s201: a current configuration file is determined.
In the embodiment of the application, there are two ways to obtain the current configuration file, the first way is that the diagnostic service configuration module 1 actively obtains the current configuration file from the client or the server according to the preset time interval, and the second way is that the current configuration file is directly issued by the client or the server.
As an optional implementation manner, when the client or the server does not issue the current configuration file, that is, does not receive the current configuration file of the second path, the diagnostic service configuration module 1 defaults to obtain the current configuration file from the client or the server according to the first path and according to the preset time interval.
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 the demand diagnosis service, the configuration tool in the client or the server generates a current configuration file based on the demand diagnosis service, and then the current configuration file is obtained by the diagnosis service configuration apparatus 1.
As an alternative embodiment, the client or the server may keep the current configuration file until a new current configuration file is generated, and replace the current configuration file, so that the diagnostic service configuration apparatus 1 determines whether the current configuration file is updated after acquiring the current configuration file from the client or the server.
As an alternative embodiment, the diagnostic service configuration module 1 may also have a configuration tool built therein, where the client or the server does not directly generate the current configuration file, but only determines that the diagnostic service is required. The diagnostic service configuration module 1 determines the required diagnostic service from the client or the server and then generates a current configuration file by a configuration tool built therein.
S203: and if the current configuration file is the configuration file acquired according to the preset time interval, reading the historical configuration file.
In this embodiment of the application, if the current configuration file is a configuration file acquired 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 diagnostic service that is required, and therefore, it is necessary to read a historical configuration file and compare the historical configuration file with the historical configuration file, thereby determining whether the current configuration file is updated.
In the embodiment of the present application, the historical configuration file is a configuration file used for loading the diagnostic service at the historical time, that is, an effective configuration file output last time. The historical configuration file is stored in a first local memory.
As an alternative embodiment, if there is no historical configuration file, the initial configuration file is read. Immediately after the diagnostic service configuration module 1 is started or initialized, there is no valid configuration file output at a historical time in the diagnostic service configuration module, that is, there is no historical configuration file, and at this time, the initial configuration file is used as a historical configuration file for comparing with the current configuration file to determine whether the current configuration file is updated. The initial configuration file is stored in a second local memory.
As an alternative embodiment, the initial configuration file is a default configuration file containing default diagnostic services that contain some of the basic functions of the diagnostic management module 2.
As an alternative implementation, the default diagnostic service may be adaptively adjusted by the user according to the applied test end, and the diagnostic service that is more common to the test end is selected.
S205: and if the current configuration file is inconsistent with the historical configuration file, carrying out configuration check on the current configuration file.
In the embodiment of the application, if the current configuration file is inconsistent with the historical configuration file, it indicates that the current configuration file is updated, and at this time, the current configuration file may be replaced with the historical configuration file, stored in the first local memory, and used as the historical configuration file after a new current configuration file is subsequently obtained, and compared with the new current configuration file to determine whether the new current configuration file is updated. After the historical configuration file is replaced by the current configuration file, configuration check is carried out on the current configuration file so as to ensure that the current configuration file is complete and reliable.
As an optional implementation manner, it is considered that generally, when the configuration of the diagnostic service needs to be changed, the user may directly issue a new configuration file through the client or the server, that is, it may be default that the current configuration file issued by the client or the server is updated. If the current configuration file is a configuration file issued by the client or the server, the current configuration file and the historical configuration file are not compared to determine whether the current configuration file is updated, but the current configuration file is directly substituted for the historical configuration file and is stored in the first local memory, so that the steps of updating the diagnostic service configuration are 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 current configuration file that is not updated is issued.
As an optional implementation, performing configuration check on the current configuration file may include the following three aspects:
(1) And checking the service relevance of the diagnosis service corresponding to the current configuration file. Because some diagnostic services need to be supported at the same time to ensure the integrity of the services and enable the diagnostic services to be loaded and called normally, the service relevance of the diagnostic services contained in the current configuration file needs to be checked, and the diagnostic services having the service relevance with the diagnostic services in the current configuration file are all ensured to be in the current configuration file.
(2) The integrity of the current configuration file is checked. The integrity check 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 profile is checked. The integrity check of the current configuration file is mainly used to prevent the current configuration file from being tampered during the information transmission process, and to prevent the wrong diagnostic service from being loaded according to the wrong current configuration file.
As an alternative implementation, the integrity and reliability of the current configuration file can be confirmed by an addition and decoding algorithm, and meanwhile, the transmission of the current configuration file is ensured to be error-free in the information transmission process. In the present application, the addition and decoding algorithm used is not limited, and any addition and decoding algorithm capable of confirming the integrity and reliability of the current configuration file may be used.
As an optional 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 error generated by the current configuration file.
S207: if the current configuration file passes the check, determining to require the diagnostic service based on the current configuration file.
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 diagnostic service has a corresponding dynamic library file, and loading of the diagnostic service can be realized by loading the corresponding dynamic library file.
In the embodiment of the application, the diagnostic service dynamic library is a collection of loaded dynamic library files of the diagnostic service, and is used for the diagnostic management module to provide the required diagnostic service according to the collection.
As an alternative implementation manner, fig. 3 illustrates a flowchart of a diagnostic service configuration method provided in an embodiment of the present application, and S205: if the current configuration file is not consistent with the historical configuration file, after the configuration check is performed on the current configuration file, the diagnostic service configuration module 1 further includes related steps executed when the current configuration file check fails, which are specifically shown in fig. 3:
s301: and if the current configuration file is not checked, replacing the current configuration file with the historical configuration file, and storing the historical configuration file in the first local memory.
In this embodiment of the application, if the current configuration file fails to be checked, it is determined that the current configuration file is not a valid configuration file, and at this time, the current configuration file needs to be rolled back to a last valid configuration, that is, to be rolled back to a historical configuration file, and the historical configuration file replaces the current configuration file and is stored in the first local memory again.
As an alternative embodiment, in the case where there is no last valid configuration, i.e. there is no historical configuration file, the initial configuration file is used as the historical configuration file, and the demand diagnosis service is loaded in the 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 apparatus 1 needs to generate corresponding configuration error information to notify a user that a configuration generates an error, and simultaneously record an error log according to the current configuration file and the configuration error information, so that a subsequent user can search and determine a reason for the configuration generating the error according to the error log.
An embodiment of the present application further provides a diagnostic service configuration apparatus, and fig. 4 is a schematic structural diagram of the diagnostic service configuration apparatus provided in the embodiment of the present application, and as shown in fig. 4, the apparatus includes:
a current configuration file determining module 401, configured to determine a current configuration file;
an update confirmation module 402, configured to, if the current configuration file is a configuration file acquired according to a preset time interval, read a historical configuration file, and compare the current configuration file with the historical configuration file; the historical configuration file is a configuration file used for loading the diagnostic service at the historical moment; the historical configuration file is stored in a first local memory;
a configuration update checking module 403, configured to check configuration of the current configuration file if the current configuration file is inconsistent with the historical configuration file;
a demand diagnosis service determination module 404, configured to determine a demand diagnosis service based on the current configuration file if the current configuration file passes the check;
a diagnosis service loading module 405, configured to load a diagnosis service dynamic library for the diagnosis management module based on a dynamic library file corresponding to the demand diagnosis service; the diagnosis service dynamic library is used for providing the demand diagnosis service for the diagnosis management module.
Further, the update confirming module 402 is configured to, if there is no historical configuration file, read the initial configuration file; the initial configuration file is a configuration file stored in a second local memory;
the initial profile is determined to be a historical profile.
Further, the configuration update checking module 403 is 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 profile is checked.
Further, the apparatus further comprises:
and the configuration file storage module is used for replacing the historical 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, if the current configuration file fails to be checked, replace the current configuration file with the historical configuration file and store the current configuration file in the first local memory;
a demand diagnosis service determination module 404, further configured to determine a demand diagnosis service based on the historical configuration file;
the diagnosis service loading module 405 is further configured to load a diagnosis service dynamic library for the diagnosis management module based on a dynamic library file corresponding to the demand diagnosis service;
the device also includes: 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, if the current configuration file is a configuration file issued by the client, replace the historical configuration file with the current configuration file, and store the current configuration file in the first local memory.
The device and method embodiments in the device embodiment are based on the same application concept.
The method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal, a server or a similar operation device. Taking an example of the method running on a server, fig. 5 is a hardware structure block diagram of the server of the diagnostic service configuration method provided in the embodiment of the present application. As shown in fig. 5, the server 500 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 510 (the processor 510 may include but is not limited to a Processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 530 for storing data, one or more storage media 520 (e.g., one or more mass storage devices) for storing application programs 523 or data 522. Memory 530 and storage medium 520 may be, among other things, transient storage or persistent storage. The program stored in the storage medium 520 may include one or more modules, each of which may include a series of instruction operations in a server. Still further, the central processor 510 may be configured to communicate with the storage medium 520 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 Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, and so forth.
The input/output interface 540 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the server 500. In one example, the i/o Interface 540 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the input/output interface 540 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
It will be understood by those skilled in the art that the structure shown in fig. 5 is only an illustration and is not intended to limit the structure of the electronic device. 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.
Embodiments of the present application further provide a diagnostic service configuration apparatus, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the diagnostic service configuration method.
Embodiments of the present application further provide a storage medium, which may be disposed in a server to store at least one instruction, at least one program, a code set, or a set of instructions related to implementing a diagnostic service configuration method in the method embodiments, where the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the diagnostic service configuration method provided by the above method embodiments.
Alternatively, in this embodiment, the storage medium may be located in at least one network server of a plurality of network servers of a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
As can be seen from the above embodiments of the diagnostic service configuration method, apparatus, system, device, and storage medium provided by the present application, the method includes: 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 historical configuration file is a configuration file used for loading the diagnostic service at the historical moment; the historical 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 the required 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 diagnosis service dynamic library is used for providing the demand diagnosis service for the diagnosis management module. Therefore, 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 service 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 that specific embodiments have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may 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 may also be possible or may be advantageous.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, where the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk.
The present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.

Claims (10)

1. A diagnostic service configuration method, 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 historical configuration file is a configuration file used for loading diagnosis service at historical time; the historical configuration file is stored in a first local memory;
if the current configuration file is inconsistent with the historical configuration file, carrying out configuration check on the current configuration file;
if the current configuration file passes the check, determining a required diagnosis service based on the current configuration file;
loading a diagnosis service dynamic library for a diagnosis management module based on the dynamic library file corresponding to the demand diagnosis service; the diagnosis service dynamic library is used for providing the demand diagnosis service for the diagnosis management module.
2. The diagnostic service configuration method of claim 1, wherein reading the historical configuration file comprises:
if the historical configuration file does not exist, reading an initial configuration file; the initial configuration file is a configuration file stored in a second local memory;
determining the initial profile as the historical profile.
3. The diagnostic service configuration method of claim 1, wherein said performing a configuration check on said current configuration file comprises:
checking the service relevance of the diagnosis service corresponding to the current configuration file;
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 before performing the configuration check on the current configuration file, further comprising:
and replacing the historical configuration file with the current configuration file, and storing the current configuration file in the first local memory.
5. The diagnostic service configuration method of any of claims 3-4, wherein after performing the configuration check on the current configuration file, further comprising:
if the current configuration file is not checked, replacing the current configuration file with the historical configuration file, and storing the historical 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 demand 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 determining the current configuration file and before performing the configuration check on the current configuration file, further comprising:
and if the current configuration file is a configuration file issued by a client, replacing the historical configuration file with the current configuration file, and storing the current configuration file in the first local memory.
7. A diagnostic service configuration apparatus, comprising:
the current configuration file determining module is used for determining a current configuration file;
the updating confirmation module is used for reading a historical configuration file if the current configuration file is the configuration file acquired according to a preset time interval, and comparing the current configuration file with the historical configuration file; the historical configuration file is a configuration file for loading diagnosis service at historical time; the historical configuration file is stored in a first local memory;
a configuration update checking module, configured to perform 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 diagnosis service dynamic library is used for the diagnosis management module to provide the demand diagnosis service.
8. A diagnostic service configuration system comprising the diagnostic service configuration apparatus of claim 7 and a diagnostic management module; 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 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, carrying out configuration check on the current configuration file; if the current configuration file passes the check, determining to require a diagnostic 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 demand diagnosis service; the historical configuration file is a configuration file for loading diagnosis service at historical time; the historical configuration file is stored in a first local memory;
the diagnosis management module is used for providing the demand diagnosis service based on the diagnosis service dynamic library;
the diagnosis management module comprises a plurality of diagnosis management sub-modules; the plurality of diagnosis management sub-modules are used for providing different diagnosis services; the plurality of diagnostic management sub-modules include different ones of the dynamic library files.
9. An electronic device, comprising a processor and a memory, wherein at least one instruction or at least one program is stored in the memory, and wherein the at least one instruction or the at least one program is loaded by the processor and executes the diagnostic service configuration method according to any one of claims 1-6.
10. 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 being loaded and executed by a processor to implement the diagnostic service configuration method of any 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 true CN115202914A (en) 2022-10-18
CN115202914B 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 (8)

* 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
US20080033609A1 (en) * 2006-08-04 2008-02-07 Ramin Razavi Automotive diagnostic and tuning system
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

Patent Citations (8)

* 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
US20080033609A1 (en) * 2006-08-04 2008-02-07 Ramin Razavi Automotive diagnostic and tuning system
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
CN115202914B (en) 2024-05-24

Similar Documents

Publication Publication Date Title
US7287190B2 (en) Simultaneous execution of test suites on different platforms
CN110597531B (en) Distributed module upgrading method and device and storage medium
US7334162B1 (en) Dynamic distribution of test execution
US7296190B2 (en) Parallel text execution on low-end emulators and devices
US20110179398A1 (en) Systems and methods for per-action compiling in contact handling systems
US9585033B2 (en) System and method for enhanced diagnostics on mobile communication devices
US20080244589A1 (en) Task manager
CN105553738A (en) Heat loading method and device of configuration information and distributed cluster system
CN111538659A (en) Interface testing method and system for service scene, electronic device and storage medium
CN113050984A (en) Resource calling method and device, electronic equipment and storage medium
CN111147600B (en) Service execution method and terminal under cluster environment
CN111158987B (en) Health check method and device for micro-service architecture
CN112069511A (en) Data protection method and device, electronic control unit, equipment and storage medium
CN112598529B (en) Data processing method and device, computer readable storage medium and electronic equipment
CN113885971A (en) State management method and device based on self-adaptive platform system
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
CN115202914A (en) Diagnostic service configuration method, device, system, equipment and storage medium
CN111416888A (en) Addressing method and device based on service gateway
CN111209197B (en) Application continuous integration test method, system, equipment and storage medium
CN110874238B (en) Online service updating method and device
CN114443065A (en) Platform deployment method, platform deployment device, electronic equipment and storage medium
JP2006146434A (en) Distributed application test method and distributed application test equipment
CN113961221A (en) Service management method based on registration center
CN110427224B (en) EJB module loading method and device, server and readable storage medium
CN115022317B (en) Cloud platform-based application management method and device, electronic equipment and storage medium

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