A method, system, electronic device and medium for generating device diagnostic report

By adjusting the generation time of the equipment diagnostic report and the upload time of the data, the problem of the equipment diagnostic report being unable to be obtained normally is solved, the normal generation and upload of reports is achieved, and the system efficiency is improved.

CN113722329BActive Publication Date: 2025-03-18CHONGQING CHUANYI AUTOMATION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111038613.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-06
Publication Date
2025-03-18
Estimated Expiration
2041-09-06

AI Technical Summary

Technical Problem

Due to the inconsistent generation time of the equipment diagnostic report and the inconsistent upload time of the data, the expert database is in an abnormal working state, which in turn causes the diagnostic report to be unable to be obtained normally.

Method used

By obtaining the device identification and diagnostic report generation time, if the preset conditions are not met, the generation time is adjusted according to the device evaluation weight, and the collected parameters and the first data of the device are uploaded to the expert database to generate the device diagnostic report.

Benefits of technology

It solves the problem that reports cannot be obtained normally due to inconsistent data upload time and inconsistent device diagnostic report generation time, reduces system overhead, and caches device data through hash tables, improving program operation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113722329B_ABST
    Figure CN113722329B_ABST
Patent Text Reader

Abstract

The present invention is applicable to the field of data processing technology, and provides a method, system, electronic device and medium for generating a device diagnostic report, wherein the method comprises: obtaining a device identification, and obtaining a device diagnostic report generation time according to the device identification; if the device diagnostic report generation time does not meet a preset condition, obtaining a device evaluation weight, and adjusting the device diagnostic report generation time according to the device evaluation weight; obtaining sensor data, and if the acquisition time is greater than the device diagnostic report generation time, obtaining device first data, the sensor data including the acquisition time and acquisition parameters; uploading the acquisition parameters and the device first data to an expert database, and generating a device diagnostic report according to the acquisition parameters and the device first data; and solving the problem in the prior art that the report cannot be normally acquired due to inconsistent data upload time and inconsistent device diagnostic report generation time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, system, electronic device and medium for generating a device diagnostic report. Background Art

[0002] In the current harmonic online monitoring system, the entire monitoring system consists of harmonic sensors, harmonic data acquisition boxes, online monitoring systems and expert libraries. Each acquisition box will have a unique data identifier. After the acquisition box collects the data from the sensor, it will actively upload the data periodically. However, there is inconsistency in the upload cycle of each acquisition box. After the online monitoring system receives the data uploaded by the acquisition box, it transmits the data to the expert library for analysis according to the report cycle setting of the collection box, and generates a diagnostic report based on the analysis results. Due to the inconsistency in the time when different acquisition boxes upload data to the online monitoring system and the inconsistency in the report cycle, the expert library may need to receive a large amount of data at the same time. However, the expert library currently receives data in serial mode, which will cause the expert library to be in an abnormal working state, and thus the diagnostic report cannot be obtained normally. Summary of the invention

[0003] The present invention provides a device diagnostic report generation method, system, electronic device and medium to solve the problem that the report cannot be normally obtained due to inconsistent data upload time and inconsistent device diagnostic report generation time.

[0004] The device diagnostic report generation method provided by the present invention comprises:

[0005] Obtaining a device identification, and obtaining a device diagnostic report generation time according to the device identification;

[0006] If the device diagnostic report generation time does not meet the preset conditions, obtaining the device evaluation weight, and adjusting the device diagnostic report generation time according to the device evaluation weight;

[0007] Acquire sensor data, and if the acquisition time is greater than the device diagnostic report generation time, acquire first device data, wherein the sensor data includes the acquisition time and acquisition parameters;

[0008] The acquisition parameters and the first data of the device are uploaded to an expert database, and a device diagnosis report is generated according to the acquisition parameters and the first data of the device.

[0009] Optionally, the device diagnostic report generating method further includes:

[0010] Configuring device second data, the device second data including device identification and device configuration data, the device configuration data including device first data;

[0011] The second data of the device is stored in the memory in the form of a hash table, wherein the key in the hash table is the device identifier and the value is the device configuration data;

[0012] If the second data of the device changes, the changed content of the second data of the device is obtained, and the hash table is updated according to the changed content.

[0013] Optionally, the step of obtaining the first data of the device specifically includes:

[0014] Obtaining the device identification of the hash table;

[0015] The first data of the device is acquired according to the device identification.

[0016] Optionally, before the step of obtaining the device identification of the hash table, the step further includes:

[0017] Determine whether the device identifier is stored in the hash table in memory;

[0018] If not, the second data of the device is configured according to the device identifier, and the second data of the device is stored in the memory in the form of a hash table.

[0019] Optionally, the step of obtaining the evaluation weight of the device specifically includes:

[0020] Obtaining a device diagnostic report, and obtaining device damage data according to the device diagnostic report;

[0021] Obtaining a device identification, and obtaining device type data according to the device identification;

[0022] An equipment evaluation weight is obtained according to the equipment damage data and the equipment type data.

[0023] Optionally, the step of acquiring the equipment evaluation weight according to the equipment damage data and the equipment type data specifically includes:

[0024] Acquire a first evaluation parameter according to the equipment damage data and a preset damage weight;

[0025] Acquire a second evaluation parameter according to the device type data and a preset type weight;

[0026] The device evaluation weight is obtained according to the first evaluation parameter and the second evaluation parameter.

[0027] Optionally, the device diagnostic report generating method further includes:

[0028] Obtain the acquisition parameter and the data volume of the first data of the device uploaded to the expert database;

[0029] If the amount of data uploaded to the expert database is greater than the data amount threshold, the acquisition parameters and the first data of the device are uploaded to the expert database in a multi-threaded manner.

[0030] The present invention also provides a device diagnostic report generating system, comprising:

[0031] A time acquisition module, used to acquire a device identification and acquire a device diagnostic report generation time according to the device identification;

[0032] A time adjustment module, configured to obtain a device evaluation weight if the device diagnosis report generation time does not meet a preset condition, and adjust the device diagnosis report generation time according to the device evaluation weight;

[0033] A data acquisition module, used to acquire sensor data, and if the acquisition time is greater than the device diagnostic report generation time, acquire first device data, wherein the sensor data includes the acquisition time and acquisition parameters;

[0034] A report generation module is used to upload the acquisition parameters and the first data of the device to an expert database, and generate a device diagnosis report based on the acquisition parameters and the first data of the device; the time acquisition module, the time adjustment module, and the data acquisition module are connected to the report generation module.

[0035] The present invention also provides an electronic device, comprising: a processor and a memory;

[0036] The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the device diagnostic report generating method.

[0037] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for generating a device diagnostic report as described above is implemented.

[0038] Beneficial effects of the present invention: The device diagnostic report generation method of the present invention obtains the device diagnostic report generation time according to the device identification; if the device diagnostic report generation time does not meet the preset conditions, the device diagnostic report generation time is adjusted according to the device evaluation weight; the acquisition parameters and the first data of the device are uploaded to the expert database, and the device diagnostic report is generated according to the acquisition parameters and the first data of the device; by reasonably adjusting the acquisition parameters, the time when the first data of the device is uploaded to the expert database and the device diagnostic report generation time, the problem that the report cannot be normally obtained due to the inconsistency of the data upload time and the inconsistency of the device diagnostic report generation time is solved, and there is no need to use a timer for periodic scanning, thereby reducing the system overhead. The present invention also reduces the number of interactions between the system and the database and improves the program operation efficiency by using a hash table to cache device-related data. The present invention also determines the device evaluation weight according to the device damage data and the device type data, and adjusts the device diagnostic report generation time according to the device evaluation weight, thereby realizing reasonable adjustment of the device diagnostic report generation, and will not affect data reception due to the long time spent on data processing, thereby improving the speed of data reception. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 is a flow chart of a method for generating a device diagnostic report in an embodiment of the present invention;

[0041] Figure 2 is a flowchart of a method for obtaining device evaluation weights in an embodiment of the present invention;

[0042] Figure 3 It is a structural diagram of a device diagnostic report generating system in an embodiment of the present invention. DETAILED DESCRIPTION

[0043] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0044] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0045] In order to illustrate the technical solution of the present invention, a specific embodiment is provided below for illustration.

[0046] First embodiment

[0047] Figure 1 It is a flowchart of a method for generating a device diagnostic report provided in one embodiment of the present invention.

[0048] like Figure 1 As shown, the above device diagnostic report generation method includes steps S110-S140:

[0049] S110, obtaining a device identification, and obtaining a device diagnostic report generation time according to the device identification;

[0050] S120, if the device diagnostic report generation time does not meet the preset conditions, obtain the device evaluation weight, and adjust the device diagnostic report generation time according to the device evaluation weight;

[0051] S130, acquiring sensor data, and if the acquisition time is greater than the device diagnostic report generation time, acquiring first device data;

[0052] S140, uploading the collected parameters and the first data of the device to an expert database, and generating a device diagnosis report according to the collected parameters and the first data of the device.

[0053] In step S110 of the present embodiment, the device diagnostic report generation method can be applied to the current harmonic online monitoring system, and the current harmonic system can be composed of a harmonic sensor, a harmonic data acquisition box, an online monitoring subsystem and an expert library; the current harmonic online monitoring system can also be composed of a harmonic sensor, an online monitoring subsystem and an expert library. The harmonic sensor collects equipment parameters, and the equipment parameters include but are not limited to current and voltage; if the current harmonic online monitoring system includes a collection box, the collection box obtains the equipment parameters collected by the sensor and uploads the equipment parameters to the online monitoring subsystem, and the online monitoring subsystem transmits the equipment parameters to the expert library, and the expert library analyzes and processes the received data and generates an equipment diagnostic report. If the current harmonic online monitoring system does not include a collection box, the online monitoring subsystem receives the equipment parameters uploaded by the sensor.

[0054] In one embodiment, each device has only one unique device identifier, which may be a device ID. The system pre-configures the diagnostic report generation time for each device, and then the diagnostic report generation time for the corresponding device may be obtained based on the device identifier. The device diagnostic report may be a device degradation evaluation report, which is obtained after analyzing and processing the device operating parameters and device configuration parameters collected by the sensor.

[0055] In step S120 of the present embodiment, by judging whether the device diagnostic report generation time meets the preset conditions, if it does not meet the preset conditions, the device evaluation weight is obtained, and the device diagnostic report generation time is adjusted according to the device weight, thereby avoiding the problem that the diagnostic report cannot be normally obtained due to the expert database needing to receive a large amount of data at the same time. Whether the device diagnostic report generation time meets the preset conditions can be determined by whether the diagnostic report generation time interval of different devices is less than the time threshold. If so, the device diagnostic report generation time does not meet the preset conditions; the time threshold can be determined based on the amount of data that the expert database can receive in a fixed short time and the amount of data uploaded to generate a device diagnostic report. By adjusting the device diagnostic report generation time through the device evaluation weight, reasonable adjustment of the device diagnostic report generation is achieved, and data reception will not be affected by the long time spent on data processing, thereby improving the speed of data reception. The problem that the report cannot be normally obtained due to inconsistent data upload time and inconsistent device diagnostic report generation time is solved, and there is no need to use a timer to periodically scan, thereby reducing system overhead.

[0056] In step S120 of this embodiment, the specific implementation method of obtaining the device evaluation weight is shown in Figure 2 , Figure 2 It is a flowchart of a method for obtaining device evaluation weights in one embodiment of the present invention.

[0057] like Figure 2 As shown, the method for obtaining the device evaluation weight may include the following steps S210-S230:

[0058] S210, obtaining a device diagnosis report, and obtaining device damage data according to the device diagnosis report;

[0059] S220, obtaining a device identification, and obtaining device type data according to the device identification;

[0060] S230, obtaining equipment evaluation weight according to equipment damage data and equipment type data.

[0061] In one embodiment, the equipment diagnostic report is an equipment degradation evaluation report, so the equipment damage data is the equipment degradation data. The more serious the equipment degradation, the more it needs to be monitored. The diagnostic report generation cycle of the equipment should be shorter, so as to achieve timely monitoring of the equipment and avoid equipment failure problems caused by untimely equipment monitoring. Equipment type data includes equipment degradation cycle data and equipment importance data. The shorter the equipment degradation cycle, the greater the probability of problems with the equipment, so the equipment needs to be monitored, that is, the diagnostic report generation cycle of the equipment is set shorter. In addition, the equipment importance data can be obtained through the value of the equipment itself and the value of the data generated by the equipment. If the value of the equipment itself is higher and the value of the data generated by the equipment is higher, it means that the importance data of the equipment is larger, that is, the equipment should be monitored more, that is, the diagnostic report generation cycle of the equipment is set shorter.

[0062] In one embodiment, obtaining the equipment evaluation weight according to the equipment damage data and the equipment type data includes: obtaining a first evaluation parameter according to the equipment damage data and the preset damage weight; obtaining a second evaluation parameter according to the equipment type data and the preset type weight; obtaining the equipment evaluation weight according to the first evaluation parameter and the second evaluation parameter. The preset damage weight and the preset type weight can be set according to the actual operation of the equipment. Specifically, adjusting the equipment diagnosis report generation time according to the equipment evaluation weight includes: comparing the equipment evaluation weights of different equipment, setting the equipment diagnosis time of high equipment evaluation weight to be less than the equipment diagnosis report generation time of low equipment evaluation weight; and the time difference between the equipment diagnosis report generation time of low equipment evaluation weight and the equipment diagnosis time of high equipment evaluation weight is greater than the time threshold.

[0063] In step S130 of the present embodiment, the sensor data includes the collection time and the collection parameters, and the collection parameters are the equipment operation parameters collected by the sensor. If the collection time is greater than the equipment diagnostic report generation time, the collection time is the time when the sensor last collected the equipment operation data; the equipment diagnostic report generation time is the time closest to the last time the equipment diagnostic report was generated, and is greater than the last time the equipment diagnostic report was generated. By uploading the equipment data and collection parameters corresponding to the sensor time greater than the equipment diagnostic report generation time to the expert database, instead of directly uploading the equipment data and collection parameters to the expert database every time the sensor collects the equipment operation data, the amount of data received by the expert database is reduced, unnecessary data transmission is avoided, and the operating efficiency of the entire system is improved.

[0064] In one embodiment, before obtaining the first data of the device, it is also necessary to configure the second data of the device, wherein the second data of the device includes the device identification and the device configuration data, and the device configuration data includes the first data of the device. The device configuration data includes, but is not limited to, the device name, device model, device manufacturer, device usage time, device rated power, and device operating voltage type (AC or DC). The first data of the device is the device configuration data required to generate a device diagnostic report, such as the device operating voltage type.

[0065] In one embodiment, after configuring the second data of the device, the second data of the device is stored in the memory in the form of a hash table, in which the key is the device identifier and the value is the device configuration data. If the second data of the device changes (added, modified, deleted, etc.), the changed content of the second data of the device is obtained, and the hash table is updated according to the changed content, thereby ensuring that the second data of the device in the hash table is correct.

[0066] In step S130 of this embodiment, obtaining the first data of the device includes: obtaining the device identification of the hash table; obtaining the first data of the device according to the device identification. The second data of the device is data that does not need to be updated frequently, that is, the first data of the device is also data that does not need to be updated frequently, so the hash table is used to cache the second data of the device, and the first data of the device is directly transmitted from the hash to the expert library, thereby reducing the number of interactions between the system and the database and improving the program operation efficiency.

[0067] In one embodiment, obtaining the device identification of the hash table also requires determining whether the device identification is stored in the hash table of the memory; if not, configuring the second device data according to the device identification, and storing the second device data in the memory in the form of a hash table. If the device identification is not found in the hash table, a warning message is generated to prompt the system administrator to configure the second device data and the device diagnostic report generation cycle for this device.

[0068] In step S140 of this embodiment, a device diagnostic report is generated according to the acquisition parameters and the first device data. Specifically, the acquisition parameters and the first device data are analyzed and processed to generate the device diagnostic report. After the device diagnostic report is generated, it is also necessary to set the next generation time of the device diagnostic report in the system; the device diagnostic report generation cycle can also be set in the system according to the device evaluation weight, and the system automatically generates the device diagnostic report generation time according to the device diagnostic report generation cycle.

[0069] In one embodiment, the device diagnostic report generation method further includes: obtaining the data volume of the acquisition parameters and the first device data uploaded to the expert library; if the data volume uploaded to the expert library is greater than the data volume threshold, uploading the acquisition parameters and the first device data to the expert library in multiple threads; if the data volume uploaded to the expert library is less than the data volume threshold, automatically closing the idle thread accordingly. The data volume threshold can be set according to the amount of data that the expert library can receive per unit time. The amount of data uploaded to the expert library is compared with the data volume threshold and the comparison result is obtained, and then the acquisition parameters and the first device data are transmitted to the expert library in multiple threads according to the comparison result, thereby realizing a reasonable setting of the amount of data uploaded to the expert library, and solving the problem that the expert library needs to receive a large amount of data at the same time due to inconsistent data upload time and inconsistent device diagnostic report generation time.

[0070] Second embodiment

[0071] Based on the same inventive concept as the method in the first embodiment, this embodiment also provides a device diagnostic report generating system.

[0072] Figure 3 A schematic diagram of the flow of the device diagnostic report generating system provided by the present invention.

[0073] like Figure 3 As shown, the above-mentioned equipment diagnosis report generation system includes: 31 time acquisition module, 32 time adjustment module, 33 data acquisition module and 34 report generation module.

[0074] Wherein, the time acquisition module is used to obtain the device identification and obtain the device diagnostic report generation time according to the device identification;

[0075] A time adjustment module, configured to obtain a device evaluation weight if the device diagnosis report generation time does not meet a preset condition, and adjust the device diagnosis report generation time according to the device evaluation weight;

[0076] A data acquisition module, used to acquire sensor data, and if the acquisition time is greater than the device diagnostic report generation time, acquire first device data, wherein the sensor data includes the acquisition time and acquisition parameters;

[0077] A report generation module is used to upload the acquisition parameters and the first data of the device to an expert database, and generate a device diagnosis report based on the acquisition parameters and the first data of the device; the time acquisition module, the time adjustment module, and the data acquisition module are connected to the report generation module.

[0078] In some exemplary embodiments, the device diagnostic report generating system further includes:

[0079] A data configuration module, used to configure second data of the device, wherein the second data of the device includes a device identification and device configuration data, and the device configuration data includes the first data of the device;

[0080] A data storage module, used to store the second data of the device in a memory in the form of a hash table, wherein the key in the hash table is the device identifier and the value is the device configuration data;

[0081] The data updating module is used to obtain the changed content of the second data of the device if the second data of the device changes, and update the hash table according to the changed content.

[0082] In some exemplary embodiments, the data acquisition module includes:

[0083] A device identification obtaining unit, used to obtain the device identification of the hash table;

[0084] The first data acquisition unit is used to acquire the first data of the device according to the device identification.

[0085] In some exemplary embodiments, the device diagnostic report generating system further includes:

[0086] A judgment module, used to judge whether the device identification is stored in the hash table of the memory;

[0087] The execution module is used for, if not, configuring the second data of the device according to the device identifier, and storing the second data of the device in the form of a hash table in the memory.

[0088] In some exemplary embodiments, the time adjustment module includes:

[0089] A damage data acquisition unit, used to acquire a device diagnosis report and acquire device damage data according to the device diagnosis report;

[0090] A type data acquisition unit, used to acquire a device identification and acquire device type data according to the device identification;

[0091] A weight acquisition unit is used to acquire a device evaluation weight according to the device damage data and the device type data.

[0092] In some exemplary embodiments, the weight acquisition unit includes:

[0093] A first parameter acquisition subunit, used to acquire a first evaluation parameter according to the equipment damage data and a preset damage weight;

[0094] A second parameter acquisition subunit, used to acquire a second evaluation parameter according to the device type data and a preset type weight;

[0095] A weight acquisition unit is used to acquire the device evaluation weight according to the first evaluation parameter and the second evaluation parameter.

[0096] In some exemplary embodiments, the device diagnostic report generating system further includes:

[0097] A data volume acquisition module, used to acquire the acquisition parameters and the data volume of the first data of the device uploaded to the expert database;

[0098] The data uploading module is used to upload the acquisition parameters and the first data of the device to the expert database in a multi-threaded manner if the amount of data uploaded to the expert database is greater than a data amount threshold.

[0099] This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any one of the methods in this embodiment is implemented.

[0100] This embodiment also provides an electronic device, including: a processor and a memory;

[0101] The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes any one of the methods in this embodiment.

[0102] The computer-readable storage medium in this embodiment can be understood by ordinary technicians in this field: all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

[0103] The electronic device provided in this embodiment includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run the computer program so that the electronic device executes each step of the above method.

[0104] In this embodiment, the memory may include a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0105] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0106] In the above embodiments, the description refers to "this embodiment", "an embodiment", "another embodiment", "in some exemplary embodiments" or "other embodiments" to indicate that the specific features, structures or characteristics described in conjunction with the embodiments are included in at least some embodiments, but not necessarily all embodiments. Multiple occurrences of "this embodiment", "an embodiment", "another embodiment" do not necessarily all refer to the same embodiment.

[0107] In the above-described embodiments, although the invention has been described in conjunction with specific embodiments of the invention, many substitutions, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art based on the foregoing description. For example, other storage structures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed. Embodiments of the invention are intended to encompass all such substitutions, modifications, and variations that fall within the broad scope of the appended claims.

[0108] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0109] The present invention can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like.

[0110] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0111] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A method for generating a device diagnostic report, characterized in that: The device diagnostic report generating method comprises: Obtaining a device identification, and obtaining a device diagnostic report generation time according to the device identification; If the device diagnostic report generation time does not meet the preset conditions, obtaining the device evaluation weight, and adjusting the device diagnostic report generation time according to the device evaluation weight; Acquire sensor data, and if the acquisition time is greater than the device diagnostic report generation time, acquire first device data, wherein the sensor data includes the acquisition time and acquisition parameters; Uploading the acquisition parameters and the first data of the device to an expert database, and generating a device diagnosis report according to the acquisition parameters and the first data of the device; Among them, whether the device diagnostic report generation time meets the preset condition can be determined by whether the diagnostic report generation time interval of different devices is less than the time threshold. If so, the device diagnostic report generation time does not meet the preset condition. The step of obtaining the device evaluation weight specifically includes: Obtaining a device diagnostic report, and obtaining device damage data according to the device diagnostic report; Obtaining a device identification, and obtaining device type data according to the device identification; Obtaining an equipment evaluation weight according to the equipment damage data and the equipment type data; The step of obtaining the equipment evaluation weight according to the equipment damage data and the equipment type data specifically includes: Acquire a first evaluation parameter according to the equipment damage data and a preset damage weight; Acquire a second evaluation parameter according to the device type data and a preset type weight; Acquire the device evaluation weight according to the first evaluation parameter and the second evaluation parameter; Adjusting the device diagnosis report generation time according to the device evaluation weight includes: comparing the device evaluation weights of different devices, setting the device diagnosis time of a high device evaluation weight to be shorter than the device diagnosis report generation time of a low device evaluation weight; and the time difference between the device diagnosis report generation time of the low device evaluation weight and the device diagnosis time of the high device evaluation weight is greater than a time threshold; Obtain the acquisition parameter and the data volume of the first data of the device uploaded to the expert database; If the amount of data uploaded to the expert database is greater than the data amount threshold, the acquisition parameters and the first data of the device are uploaded to the expert database in a multi-threaded manner.

2. The method for generating a device diagnostic report according to claim 1, characterized in that: The device diagnostic report generating method further includes: Configuring device second data, the device second data including device identification and device configuration data, the device configuration data including device first data; The second data of the device is stored in the memory in the form of a hash table, wherein the key in the hash table is the device identifier and the value is the device configuration data; If the second data of the device changes, the changed content of the second data of the device is obtained, and the hash table is updated according to the changed content.

3. The method for generating a device diagnostic report according to claim 2, characterized in that: The step of obtaining the first data of the device specifically includes: Obtaining the device identification of the hash table; The first data of the device is acquired according to the device identification.

4. The method for generating a device diagnostic report according to claim 3, characterized in that: Before the step of obtaining the device identification of the hash table, the method further includes: Determine whether the device identifier is stored in the hash table in memory; If not, the second data of the device is configured according to the device identifier, and the second data of the device is stored in the memory in the form of a hash table.

5. A device diagnostic report generation system, characterized in that: The equipment diagnostic report generating system comprises: A time acquisition module, used to acquire a device identification and acquire a device diagnostic report generation time according to the device identification; A time adjustment module, configured to obtain a device evaluation weight if the device diagnosis report generation time does not meet a preset condition, and adjust the device diagnosis report generation time according to the device evaluation weight; A data acquisition module, used to acquire sensor data, and if the acquisition time is greater than the device diagnostic report generation time, acquire first device data, wherein the sensor data includes the acquisition time and acquisition parameters; A report generation module, used for uploading the acquisition parameters and the first data of the device to an expert database, and generating a device diagnosis report according to the acquisition parameters and the first data of the device; the time acquisition module, the time adjustment module, and the data acquisition module are connected to the report generation module; Among them, whether the device diagnostic report generation time meets the preset condition can be determined by whether the diagnostic report generation time interval of different devices is less than the time threshold. If so, the device diagnostic report generation time does not meet the preset condition. The acquisition of device evaluation weight specifically includes: Obtaining a device diagnostic report, and obtaining device damage data according to the device diagnostic report; Obtaining a device identification, and obtaining device type data according to the device identification; Obtaining an equipment evaluation weight according to the equipment damage data and the equipment type data; The obtaining of the equipment evaluation weight according to the equipment damage data and the equipment type data specifically includes: Acquire a first evaluation parameter according to the equipment damage data and a preset damage weight; Acquire a second evaluation parameter according to the device type data and a preset type weight; Acquire the device evaluation weight according to the first evaluation parameter and the second evaluation parameter; Adjusting the device diagnosis report generation time according to the device evaluation weight includes: comparing the device evaluation weights of different devices, setting the device diagnosis time of a high device evaluation weight to be shorter than the device diagnosis report generation time of a low device evaluation weight; and the time difference between the device diagnosis report generation time of the low device evaluation weight and the device diagnosis time of the high device evaluation weight is greater than a time threshold; Obtain the acquisition parameter and the data volume of the first data of the device uploaded to the expert database; If the amount of data uploaded to the expert database is greater than the data amount threshold, the acquisition parameters and the first data of the device are uploaded to the expert database in a multi-threaded manner.

6. An electronic device, characterized in that: including a processor, a memory and a communication bus; The communication bus is used to connect the processor and the memory; The processor is configured to execute the computer program stored in the memory to implement the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is used to make a computer execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Real-time diagnosis system and real-time diagnose method based on health statistics

    CN102024089A

  • Data processing method and data processing apparatus

    CN107707401A