Diagnostic data storage method, device and computer readable storage medium
By obtaining the running data of the forward time and back-track time of the uninterruptible power supply equipment and storing it according to relevant parameters, the problem of difficulty in fault location in the prior art is solved, and more efficient fault recording and positioning is achieved.
Patent Information
- Application Number
- CN202111628533.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2041-12-28
AI Technical Summary
When the existing uninterruptible power supply fails, the data record content is small, the traceability time is short, and the storage resources are occupied, so it is impossible to quickly and effectively locate the fault.
When an alarm event occurs in an electronic device, the running data of the forward time and back-track time are obtained and stored according to the relevant operating parameters are stored to improve the effect of event recording.
With the same storage speed, the effect of event recording is effectively improved and subsequent fault location is facilitated.
Smart Images

Figure CN114327982B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of uninterruptible power supply, and more particularly to a diagnostic data storage method, device and computer-readable storage medium. Background Art
[0002] Uninterruptible Power Supply (UPS) is widely used in important power consumption occasions, such as banks, governments, hospitals and rail transportation.
[0003] At present, after an uninterruptible power supply fails, a common method is to analyze based on event records. For example, when an inverter IGBT failure triggers the shutdown of the uninterruptible power supply, the fault can be judged based on the events before and after the inverter IGBT fault alarm time in the historical records, or based on the analog data such as voltage and current in the near time of the recorded fault occurrence. For example, if there is a bus overvoltage event before the inverter IGBT fault alarm time, it can be inferred that the inverter IGBT is overcurrent caused by the bus control part.
[0004] Since the control of uninterruptible power supply has extremely high real-time requirements, it is impossible to store a large amount of data in a short time. Especially when recording analog quantities, due to the limited storage speed, interval recording of analog quantities is often used for recording, for example: recording analog quantities and various state quantities at intervals of 10ms. At present, when an uninterruptible power supply failure occurs, the data of 100ms before and after, that is, 10 time points before and after, are recorded based on the time when the failure occurs, for fault diagnosis. However, the above method has the defects of less recorded content, short traceability time, and more storage resources, and cannot quickly and effectively locate the fault. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a diagnostic data storage method to address the problem that the data used for fault diagnosis occupies a lot of storage resources and has a fixed traceability time.
[0006] The technical solution of the present invention to solve the above technical problem is to provide a diagnostic data storage method, the method comprising:
[0007] When an alarm event occurs in an electronic device, obtain the previous and next time of the current alarm event;
[0008] Taking the occurrence time of the current alarm event as the center, obtaining the operation data of the electronic device between the forward time and the backward time;
[0009] The operating parameters related to the current alarm event are acquired, and the operating data corresponding to the operating parameters related to the current alarm event are selected from the operating data of the electronic device between the forward tracing time and the backward tracing time for storage.
[0010] As a further improvement of the present invention, obtaining the forward tracing time and the backward tracing time of the current alarm event includes:
[0011] The forward time of the current alarm event is obtained from the first array, and the backward time of the current alarm event is obtained from the second array, wherein the first array and the second array are one-dimensional arrays respectively, and the first array stores the forward time of all alarm events, and the second array stores the backward time of all alarm events.
[0012] As a further improvement of the present invention, the obtaining of operating parameters related to the current alarm event includes:
[0013] From the third array, operating parameters related to the current alarm event are obtained, wherein the third array stores operating parameters related to each alarm event, the third array is a two-dimensional array, and each column or each row in the third array corresponds to all operating parameters of the same alarm event.
[0014] As a further improvement of the present invention, the third array is created according to a fourth array, the fourth array is a one-dimensional array, and the fourth array includes all operating parameters of the electronic device; each row or each column of the third array corresponds to one fourth array;
[0015] When the operating parameter is related to the alarm event, the corresponding element in the third array is a first preset value; when the operating parameter is not related to the alarm event, the corresponding element in the third array is a second preset value.
[0016] As a further improvement of the present invention, the method further comprises:
[0017] During the operation of the electronic device, all operation data of the electronic device are sampled at a preset period, and the sampled operation data are stored in a fifth array according to the fourth array. The fifth array is a two-dimensional array, and each row or column of the fifth array is composed of all operation data at the same sampling moment.
[0018] As a further improvement of the present invention, the acquisition of the operation data of the electronic device between the forward time and the backward time with the occurrence time of the current alarm event as the center includes:
[0019] According to the forward tracing time, backward tracing time and the preset number of storage times, obtain the forward tracing point number, backward tracing point number and the point interval between the two points of the current alarm event;
[0020] The operation data of the electronic device between the forward tracing time and the backward tracing time is acquired from the fifth array according to the forward tracing point number, the backward tracing point number and the point interval between the two points of the current alarm event.
[0021] As a further improvement of the present invention, sampling all operation data of the electronic device during operation at a preset period, and storing the sampled operation data into a fifth array according to the fourth array, comprises:
[0022] At each sampling moment, all operating data during the operation of the electronic device are sampled, and the sampled operating data are stored as a column or a row of the fifth array in the order of the operating parameters in the fourth array, and when the fifth array reaches a preset data amount, the operating data obtained at the latest sampling moment overwrites the earliest column or row stored in the fifth array.
[0023] As a further improvement of the present invention, the operating parameter of the electronic device is an analog quantity during the operation of the electronic device or a state quantity during the operation of the electronic device.
[0024] The present invention also provides a UPS device, comprising a processor and a memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can execute the diagnostic data storage method as described above.
[0025] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the diagnostic data storage method as described above.
[0026] The present invention has the following beneficial effects: by pre-setting the forward tracing time, the backward tracing time and the related operating parameters, different operating data are stored for different alarm events of the electronic device, thereby effectively improving the effect of event recording at the same storage speed and facilitating subsequent fault location. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flowchart of a diagnostic data storage method provided by an embodiment of the present invention;
[0028] Figure 2 It is a schematic diagram of a flow chart of obtaining operation data of an electronic device between a forward tracing time and a backward tracing time in a diagnostic data storage method provided by an embodiment of the present invention;
[0029] Figure 3 Schematic diagram of a UPS device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0031] like Figure 1 , is a flow chart of a diagnostic data storage method provided by an embodiment of the present invention, which can be applied to an electronic device (such as an uninterruptible power supply) and provide data for fault location of the electronic device. The method of this embodiment can be integrated into an electronic device (such as an uninterruptible power supply) or integrated into a device connected to the electronic device. The following description is made using a control unit integrated into an electronic device as an example, that is, the method of this embodiment includes the following steps performed by the control unit of the electronic device:
[0032] Step S11: When an alarm event occurs in the electronic device, the forward time and backward time of the current alarm event are obtained. During the operation of the electronic device, when certain operating data are inconsistent with the preset operating data, a corresponding alarm event occurs (the electronic device may continue to operate at this time). For a certain electronic device, multiple alarm events can be defined. When a certain alarm event occurs, a set of corresponding operating data exceeds the normal value range. For example, when the electronic device is an uninterruptible power supply, the above alarm events include bus overvoltage, input short circuit, output short circuit, SCR short circuit, inverter IGBT fault alarm, communication status alarm, etc.
[0033] For different alarm events, the forward tracing time and backward tracing time may be different. For example, for the bus overvoltage alarm event, the forward tracing time is 10s and the backward tracing time is 12s; for the input short circuit alarm event, the forward tracing time is 15s and the backward tracing time is 17s. In one embodiment of the present invention, the forward tracing time of all alarm events can be stored by the first array, and the backward tracing time of all alarm events can be stored by the second array. The above-mentioned first array and second array can be one-dimensional arrays respectively. For example, the first array can be represented by Tf[k], and the second array can be represented by Tb[k]. k is the number of all alarm events to trigger event records, and k is an integer greater than or equal to 2. For example, Tf[1] is the forward tracing time of the first alarm event, and Tb[1] is the backward tracing time of the first alarm event. Accordingly, in this step, the forward tracing time of the current alarm event can be obtained from the first array, and the backward tracing time of the current alarm event can be obtained from the second array. Of course, in practical applications, the forward and backward time of the alarm event may also be stored in other ways, such as in a two-dimensional array including two rows or two columns.
[0034] Step S12: With the occurrence time of the current alarm event as the center, obtain the operation data of the electronic device between the forward time and the backward time. Specifically, the above operation data can be the analog data of the electronic device when it is running (for example, when the electronic device is an uninterruptible power supply, the analog data can be the voltage and current on the DC bus, the output current and output voltage of the inverter component, etc.), or the state data of the electronic device when it is running (for example, the state of each switch in the electronic device).
[0035] In one embodiment of the present invention, the operation data of the electronic device can be obtained by real-time sampling during the operation of the electronic device, that is, during the operation of the electronic device, all the operation data of the electronic device are sampled at a preset period, and the sampled operation data are stored in the fifth array according to the fourth array. The above-mentioned preset period can be set according to the type of electronic device, precision control requirements, etc. For example, for a common uninterruptible power supply, the above-mentioned preset period can be set to 10ms. The fifth array is a two-dimensional array, and each row or each column of the fifth array is composed of all the operation data at the same sampling time.
[0036] When the operation data is analog, the fourth array A[i] records all analog parameters, where i is the number of analog parameters to be recorded, and i is an integer greater than or equal to 2. For example, the fourth array can be A[7]{bus voltage, output voltage, output frequency, output current, input voltage, input frequency, input current}; at each sampling moment, the values corresponding to all analog parameters in the operation process of the electronic device (i.e., analog data) are sampled, and the sampled values are stored in the order of the analog parameters in the fourth array as a column or a row of the fifth array TA[n][i], where n is the number of times. For example, TA[0][i] corresponds to all i analog data at the starting time 0, TA[1][i] corresponds to all i analog data at the time t1; TA[n][i] corresponds to all i analog data at the time n*t1. When the operation data is a state quantity, the fourth array A[i] records all state quantity parameters, where i is the number of state quantity parameters that need to be recorded; at each sampling moment, the values corresponding to all state quantity parameters in the operation process of the electronic device are sampled (i.e., state quantity data), and the sampled values are stored as a column or a row of the fifth array TA[n][i] in the order of the state quantity parameters in the fourth array, where n is the number of times. For example, TA[0][i] corresponds to all i state quantity data at the starting time 0, TA[1][i] corresponds to all i state quantity data at the time t1; TA[n][i] corresponds to all i state quantity data at the time n*t1. In particular, the fifth array TA[n][i] can follow the first-in-first-out principle. When the maximum recording time length is defined as N*t1, the analog quantity data of up to N moments can be recorded, that is, the fifth array member is at most TA[N][i]. When the time reaches the N*t1th moment, that is, when the fifth array TA[n][i] reaches the preset data amount, the operating data obtained at the latest sampling moment will overwrite the column or row earliest stored in the fifth array, that is, recording will start again from the starting time 0, and the cycle will continue.
[0037] In this step, the operation data of the electronic device before and after the current alarm event occurs can be directly obtained from the fifth array TA[n][i] according to the occurrence time, the forward time and the backward time of the current alarm event.
[0038] Step S13: Acquire the operating parameters related to the current alarm event, and select the operating data corresponding to the operating parameters related to the current alarm event from the operating data of the electronic device between the forward tracing time and the backward tracing time for storage. For example, when the current alarm event is a bus overvoltage event, the relevant operating parameters acquired are bus voltage, output frequency, input frequency and input current, then in this step S13 only stores the bus voltage data, output frequency data, input frequency data and input current data between the forward tracing time and the backward tracing time.
[0039] In one embodiment of the present invention, the operating parameters related to each alarm event may be stored in a third array EA[k][i]. Accordingly, this step may obtain the operating parameters related to the current alarm event from the third array. Specifically, the third array may be a two-dimensional array, and each column or each row in the third array corresponds to all operating parameters of the same alarm event.
[0040] In particular, the third array EA[k][i] can be created based on the fourth array A[i], which is a one-dimensional array, and the fourth array A[i] includes all operating parameters of the electronic device. Each row or each column of the third array EA[k][i] corresponds to a fourth array A[i]. For example, when a certain operating parameter is related to a certain alarm event, the elements of the corresponding row and corresponding column in the third array EA[k][i] are the first preset value (for example, 1), and when the operating parameter is not related to the alarm event, the elements of the corresponding row and corresponding column in the third array EA[k][i] are the second preset value (for example, 0). In this step, the position whose value is the first preset value can be obtained from the corresponding row or column, and the corresponding data can be selected from the operating data obtained in step S12 for storage.
[0041] The above-mentioned diagnostic data storage method stores different operation data for different alarm events of the electronic device through pre-set forward tracing time, backward tracing time and related operation parameters, thereby effectively improving the effect of event recording at the same storage speed, and facilitating subsequent fault location. Specifically, the fault diagnosis program of the electronic device can directly locate the fault according to the operation data recorded in the above-mentioned step S13. If the electronic device does not have a fault diagnosis program, the above-mentioned operation data can also be sent to a host computer or a fault diagnosis device that is communicatively connected to the electronic device for fault location. Fault location based on data belongs to the conventional technology in the field and will not be repeated here.
[0042] In one embodiment of the present invention, Figure 2 As shown above Figure 1 Step S12 in the above process, i.e., taking the occurrence time of the current alarm event as the center, obtaining the operation data of the electronic device between the previous time and the next time, may specifically include:
[0043] Step S121: According to the forward tracing time, the backward tracing time and the preset storage times, the forward tracing points, the backward tracing points and the interval between the two points of the current alarm event are obtained.
[0044] For example, if the forward tracing time of the current alarm event is Tf[k1] and the backward tracing time is Tb[k1], then the forward tracing points of the current alarm event (that is, the number of preset periods before the current alarm event) and the backward tracing points of the current alarm event (that is, the number of preset periods after the current alarm event) can be obtained based on the forward tracing time Tf[k1], the backward tracing time Tb[k1] and the maximum number of times Times_Max that the fault analysis program can store (this parameter can be obtained from the fault analysis program).
[0045] Specifically, the time interval t_gap between the start time (i.e., the occurrence time of the current alarm event minus the forward time) and the end time (i.e., the occurrence time of the current alarm event plus the backward time) of the required operation data can be obtained by the following calculation formula (1):
[0046] (Tf[k1]+Tb[k1]) / Times_Max=t_gap (1)
[0047] Then, the forward tracing point number Tf_point and the backward tracing point number Tb_point are calculated by using equations (2) and (3):
[0048] Tf[k1] / t_gap=Tf_point (2)
[0049] Tb[k1] / t_gap=Tb_point (3)
[0050] And the point interval n_gap between two points of the required operating data is obtained by calculating formula (4):
[0051] t_gap / t1=n_gap (4)
[0052] That is, when it is detected that the k1th alarm event triggering the event record is valid, the time T_lock is locked, and the element Tf[k1] is obtained from the first array Tf[k], and the element Tb[k1] is obtained from the second array Tb[k].
[0053] Step S122: acquiring the operation data of the electronic device between the forward tracing time and the backward tracing time from the fifth array according to the forward tracing point number, the backward tracing point number and the point interval between the two points of the current alarm event.
[0054] For example, if the locking moment T_lock is the time when the current alarm event occurs, for the fifth array TA[n][i], trace back Tf_point points, that is, the n-n_gap]th column, the n-2*n_gap column, ..., the [n-Tf_point*n_gap]th column in the fifth array TA[n][i]; trace back Tb_point points, corresponding to the n+n_gap column, the n+2*n_gap column, ..., the n+Tb_point*n_gap column of the fifth array TA[n][i]; a total of Tf_point+Tb_point groups of data are obtained, that is, Tf_point+Tb_point arrays A[i].
[0055] The present invention also provides a UPS device, combined with Figure 3 As shown, the UPS device 3 includes a processor 31 and a memory 32 which is in communication with the processor 31; wherein the memory 32 stores instructions which can be executed by the processor 31, and the instructions are executed by the processor 31 so that the processor 31 can execute the diagnostic data storage method as described above.
[0056] The UPS device 3 in this embodiment is the same as the above Figure 1-2 The diagnostic data storage method in the corresponding embodiment belongs to the same concept, and its specific implementation process is detailed in the corresponding method embodiment, and the technical features in the method embodiment are applicable to the device embodiment, which will not be repeated here.
[0057] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the diagnostic data storage method as described above.
[0058] The computer-readable storage medium in this embodiment is the same as the above Figure 1-2 The diagnostic data storage method in the corresponding embodiment belongs to the same concept, and its specific implementation process is detailed in the corresponding method embodiment, and the technical features in the method embodiment are applicable to the storage medium embodiment, which will not be repeated here.
[0059] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0060] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed. The functional units and modules in the embodiments can be integrated into a processor, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0061] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0062] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0063] In addition, each functional unit in each embodiment of the present application may be integrated into one processor, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0064] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or interface switching device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0065] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Various changes can be made within the knowledge of ordinary technicians in the relevant technical field without departing from the purpose of the present invention. In addition, the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
Claims
1. A diagnostic data storage method, characterized in that: The method comprises: When an alarm event occurs in an electronic device, obtain the previous and next time of the current alarm event; Taking the occurrence time of the current alarm event as the center, obtaining the operation data of the electronic device between the forward time and the backward time; Acquire the operating parameters related to the current alarm event, and select the operating data corresponding to the operating parameters related to the current alarm event from the operating data of the electronic device between the forward tracing time and the backward tracing time for storage; The obtaining of operating parameters related to the current alarm event includes: Acquire an operating parameter related to the current alarm event from a third array, wherein the third array stores operating parameters related to each alarm event, the third array is a two-dimensional array, and each column or each row in the third array corresponds to all operating parameters of the same alarm event; The third array is created according to the fourth array, the fourth array is a one-dimensional array, and the fourth array includes all operating parameters of the electronic device; each row or each column of the third array corresponds to one of the fourth arrays; when the operating parameter is related to the alarm event, the corresponding element in the third array is a first preset value, and when the operating parameter is not related to the alarm event, the corresponding element in the third array is a second preset value; the method further includes: during the operation of the electronic device, sampling all operating data during the operation of the electronic device at a preset period, and storing the sampled operating data in a fifth array according to the fourth array, the fifth array is a two-dimensional array, and each row or each column of the fifth array is composed of all operating data at the same sampling time; The acquiring of the operation data of the electronic device between the forward time and the backward time with the occurrence time of the current alarm event as the center includes: According to the forward tracing time, backward tracing time and the preset number of storage times, obtain the forward tracing points, backward tracing points and the point interval between the two points of the current alarm event; The operation data of the electronic device between the forward tracing time and the backward tracing time is acquired from the fifth array according to the forward tracing point number, the backward tracing point number and the point interval between the two points of the current alarm event.
2. The diagnostic data storage method according to claim 1, characterized in that: The method of obtaining the forward and backward time of the current alarm event includes: The forward time of the current alarm event is obtained from the first array, and the backward time of the current alarm event is obtained from the second array, wherein the first array and the second array are one-dimensional arrays respectively, and the first array stores the forward time of all alarm events, and the second array stores the backward time of all alarm events.
3. The diagnostic data storage method according to claim 1, characterized in that: The step of sampling all the operation data of the electronic device during operation at a preset period, and storing the sampled operation data into a fifth array according to the fourth array, comprises: At each sampling moment, all operating data during the operation of the electronic device are sampled, and the sampled operating data are stored as a column or a row of the fifth array in the order of the operating parameters in the fourth array, and when the fifth array reaches a preset data amount, the operating data obtained at the latest sampling moment overwrites the earliest column or row stored in the fifth array.
4. The diagnostic data storage method according to any one of claims 1 to 3, characterized in that: The operating parameter of the electronic device is an analog quantity during the operation of the electronic device or a state quantity during the operation of the electronic device.
5. A UPS device, characterized in that: It comprises a processor and a memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can execute the diagnostic data storage method as described in any one of claims 1 to 4.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the diagnostic data storage method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Charging pile health state monitoring-diagnosis method and device and terminal equipment
CN111452658A