Fault recording method, device, electronic device and storage medium

By receiving and verifying the mapping table identification in the fault recorder to determine the electrical parameters in the data frame, the problem of users needing to write parsing programs for each custom frame format is solved, and development efficiency and product standardization is improved.

CN114035998BActive Publication Date: 2025-06-10NR ELECTRIC CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111203631.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-15
Publication Date
2025-06-10
Estimated Expiration
2041-10-15

AI Technical Summary

Technical Problem

In power systems, users need to write parsing programs for the fault recorder for each custom frame format, resulting in low development efficiency.

Method used

By receiving the data frame sent by the second electronic device in the first electronic device and verifying the stored mapping table based on the carried mapping table identification, the component is called to determine the electrical parameters in the data frame. This method can determine the electrical parameters regardless of whether the received data frame is a custom frame format or a standard frame format, avoiding the need to write a parser for each custom frame format.

Benefits of technology

Improves the development efficiency of fault recorders, simplifies user operations, reduces maintenance costs, and improves the standardization of products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114035998B_ABST
    Figure CN114035998B_ABST
Patent Text Reader

Abstract

The present application discloses a fault recording method, apparatus, fault recorder and storage medium. Among them, the fault recording method includes: receiving a first data frame sent by a second electronic device; the first data frame is generated according to electrical parameters and a first mapping table and carries a first identifier of the first mapping table; based on the first identifier, verifying a second identifier of the mapping table stored in the first electronic device to obtain a verification result; when the verification result indicates that there is a second identifier matching the first identifier in the first electronic device, determining the electrical parameters in the first data frame based on the first mapping table by invoking a set component; wherein, the first mapping table is used to describe at least one bit corresponding to the electrical parameter in the data frame.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power systems, and particularly to a fault recording method, device, electronic device, and storage medium. Background Art

[0002] In a power system, a fault recorder is a device that collects, records, and analyzes electrical parameters (such as current, voltage, and switch quantity) of the power system. It can record the change process of electrical parameters before and after a large disturbance in the power system, as well as record the action behavior of relay protection and safety automatic devices, thereby providing assistance for disturbance analysis and fault handling. As the "black box" for recording power grid faults or abnormal conditions, the fault recorder is an important basis for power grid fault analysis.

[0003] Currently, the sampled values of analog quantities and switch quantities in a substation can be converted into digital quantities, and the IEC 60044-8 protocol is used as the data sending protocol to transmit to the fault recorder on the receiving side. The fault recorder extracts and records the current analog quantity, voltage analog quantity, and switch quantity from the message.

[0004] In some application scenarios, for example, in order to improve the fault recording effect, the user will adjust the number of bytes occupied by the sampled value of the electrical parameter in the data frame, that is, send the data frame based on a custom frame format based on the IEC 60044-8 protocol. In this way, for each custom frame format, the user needs to write a corresponding parsing program for the fault recorder, which is cumbersome for the user and has the problem of low development efficiency. Summary of the Invention

[0005] In view of this, embodiments of the present application provide a fault recording method, device, electronic device, and storage medium to at least solve the problem of low development efficiency in related technologies.

[0006] The technical solution of the embodiments of the present application is implemented as follows:

[0007] The embodiments of the present application provide a fault recording method applied to a first electronic device. The method includes:

[0008] Receiving a first data frame sent by a second electronic device; the first data frame is generated according to electrical parameters and a first mapping table and carries a first identifier of the first mapping table;

[0009] Based on the first identifier, verifying a second identifier of a mapping table stored in the first electronic device to obtain a verification result;

[0010] When the verification result indicates that there is a second identifier matching the first identifier in the first electronic device, the electrical parameters in the first data frame are determined based on the first mapping table by invoking a set component.

[0011] Wherein, the first mapping table is used to describe at least one bit corresponding to the electrical parameter in the data frame.

[0012] Wherein, in the above solution, before receiving the first data frame sent by the second electronic device, the method further includes:

[0013] Updating the first mapping table in the first electronic device.

[0014] In the above solution, the identifier of the mapping table includes at least one of the following:

[0015] Table check code;

[0016] Version number.

[0017] In the above solution, the mapping table is used to describe at least one bit corresponding to at least one of the following electrical parameters in the data frame:

[0018] Optical fiber parameters;

[0019] Analog quantity; and / or,

[0020] Virtual switch quantity.

[0021] In the above solution, the method further includes:

[0022] When the verification result indicates that there is no second identifier matching the first identifier in the first electronic device, output a prompt message.

[0023] An embodiment of the present application further provides a fault recording method, which is applied to a second electronic device, and the method includes:

[0024] Generating a first data frame according to the electrical parameters and the first mapping table;

[0025] Sending the first data frame to the first electronic device; wherein,

[0026] The first mapping table is used to describe at least one bit corresponding to the electrical parameter in the data frame.

[0027] An embodiment of the present application further provides a fault recording device, including:

[0028] A first receiving unit, configured to receive a first data frame sent by a second electronic device; the first data frame is generated according to electrical parameters and a first mapping table, and carries a first identifier of the first mapping table;

[0029] A first processing unit, configured to verify a second identifier in a mapping table stored in a first electronic device based on the first identifier, and obtain a verification result;

[0030] A second processing unit, configured to, when the verification result indicates that there is a second identifier matching the first identifier in the first electronic device, determine an electrical parameter in the first data frame based on the first mapping table by invoking a set component;

[0031] Wherein, the first mapping table is used to describe at least one bit corresponding to an electrical parameter in a data frame.

[0032] An embodiment of the present application further provides a fault recording device, including:

[0033] A third processing unit, configured to generate a first data frame according to an electrical parameter and a first mapping table;

[0034] A first sending unit, configured to send the first data frame to a first electronic device; wherein,

[0035] The first mapping table is used to describe at least one bit corresponding to an electrical parameter in a data frame.

[0036] An embodiment of the present application further provides an electronic device, including: a processor and a memory for storing a computer program that can run on the processor,

[0037] Wherein, when the processor is used to run the computer program, it executes the steps of the above-mentioned fault recording method.

[0038] An embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned fault recording method are implemented.

[0039] In an embodiment of the present application, a second electronic device generates a first data frame according to electrical parameters and a first mapping table, and sends the first data frame to a first electronic device, where the first mapping table is used to describe at least one bit corresponding to the electrical parameters in the data frame. The first electronic device receives the first data frame sent by the second electronic device, and checks a second identifier of a mapping table stored in the first electronic device based on a first identifier, obtaining a check result. When the check result indicates that there is a second identifier matching the first identifier in the first electronic device, the first electronic device determines the electrical parameters in the first data frame based on the first mapping table by invoking a set component. In the above solution, based on the mapping table in the first electronic device that matches the mapping table identifier corresponding to the data frame, the bit corresponding to the electrical parameters in the data frame is determined by invoking a set component, so that the first electronic device can determine the electrical parameters in the data frame. In this way, regardless of whether the received data frame is a custom frame format or a standard frame format, the first electronic device can determine the electrical parameters in the data frame. In other words, the user does not need to write a corresponding parsing program for the first electronic device for each custom frame format, thereby improving the development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic flow chart of a fault recording method provided by an embodiment of the present application;

[0041] Figure 2 It is a schematic diagram of an optical fiber parameter table provided by an application embodiment of the present application;

[0042] Figure 3 It is a schematic diagram of an analog meter provided by an application embodiment of the present application;

[0043] Figure 4 It is a schematic diagram of a virtual switch meter provided by an application embodiment of the present application;

[0044] Figure 5 It is a schematic flow chart of a fault recording method provided by another embodiment of the present application;

[0045] Figure 6 It is a schematic flow chart of custom frame format processing provided by an application embodiment of the present application;

[0046] Figure 7 It is a schematic structural diagram of a fault recording device provided by an embodiment of the present application;

[0047] Figure 8 It is a schematic structural diagram of a fault recording device provided by another embodiment of the present application;

[0048] Figure 9 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0049] In a power system, a fault recorder is a secondary device for substation relay protection. A fault recorder is a device that collects, records, and analyzes electrical parameters (such as current, voltage, and switch signals) of the power system. It can record the change process of electrical parameters before and after a large disturbance in the power system, as well as record the action behaviors of relay protection and safety automatic devices, thus providing assistance for disturbance analysis and fault handling. As the "black box" for recording power grid faults or abnormal conditions, fault recording equipment is an important basis for power grid fault analysis.

[0050] With the popularization of the intelligent substation solution characterized by the digitization of analog quantity sampling and the networking of data transmission, the sampled values of analog quantities and switch quantities in the substation are converted into digital quantities and transmitted to the fault recorder. The device extracts the current, voltage analog quantities, and switch quantities from the messages for recording. During the digital development process of the substation, two digital access methods have emerged. One is the access method based on the sampled value SV data of ICE 61850-9-2 and the Generic Object Oriented Substation Events GOOSE data of Ethernet, and the other is the access method based on the IEC 60044-8 protocol of serial communication and a custom frame format.

[0051] In some application scenarios, for example, in order to improve the fault recording effect, users will adjust the number of bytes occupied by the sampled value of the electrical parameter in the data frame, transform the standard FT3 frame format adopted by the IEC 60044-8 protocol into a custom frame format, and send the data frame based on the custom frame format of the IEC 60044-8 protocol. In this way, for each custom frame format, users need to write corresponding parsing programs for the fault recorder, which is cumbersome for users and has low development efficiency. Moreover, in order to cope with different application scenarios, different parsing programs need to be loaded for the produced fault recorders, which is not conducive to the standardization of products.

[0052] Based on this, in various embodiments of the present application, the second electronic device generates a first data frame according to electrical parameters and a first mapping table, and sends the first data frame to the first electronic device, where the first mapping table is used to describe at least one bit corresponding to the electrical parameters in the data frame. The first electronic device receives the first data frame sent by the second electronic device, and checks the second identifier of the mapping table stored in the first electronic device based on the first identifier to obtain a check result. When the check result indicates that there is a second identifier matching the first identifier in the first electronic device, the first electronic device determines the electrical parameters in the first data frame based on the first mapping table by calling a set component. In the related art, for each data frame sent in a custom frame format, the user needs to write a corresponding parsing program for the fault recorder, resulting in low development efficiency. In the above solution, based on the mapping table in the first electronic device that matches the mapping table identifier corresponding to the data frame, the bit corresponding to the electrical parameters in the data frame is determined by calling a set component, so that the first electronic device can determine the electrical parameters in the data frame. In this way, regardless of whether the received data frame is in a custom frame format or a standard frame format, the first electronic device can determine the electrical parameters in the data frame. In other words, the user does not need to write a corresponding parsing program for the first electronic device for each custom frame format, thereby improving the development efficiency.

[0053] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] Figure 1 The following is a schematic flowchart of the implementation of the fault recording method provided by the embodiments of the present application. The embodiments of the present application provide a fault recording method applied to a first electronic device, where the first electronic device has the function of fault recording, including but not limited to a fault recorder. As Figure 1 shown, the fault recording method includes:

[0055] Step 101: Receive a first data frame sent by a second electronic device.

[0056] The first data frame is generated according to electrical parameters and a first mapping table, and carries a first identifier of the first mapping table.

[0057] Step 102: Check the second identifier of the mapping table stored in the first electronic device based on the first identifier to obtain a check result.

[0058] Step 103: When the verification result indicates that there is a second identifier in the first electronic device that matches the first identifier, call a set component to determine the electrical parameters in the first data frame based on the first mapping table.

[0059] The first mapping table is used to describe at least one bit position corresponding to the electrical parameter in the data frame.

[0060] The first electronic device receives the first data frame sent by the second electronic device, verifies the second identifier in the mapping table stored in the first electronic device based on the first identifier carried in the first data frame. When the verification result indicates that there is a second identifier in the first electronic device that matches the first identifier, the first mapping table is stored in the first electronic device. The first electronic device calls a set component to run a set program, and imports the first mapping table stored in the first electronic device into the set program. The set program determines the corresponding electrical parameters based on the corresponding relationship between the electrical parameters described in the first mapping table and at least one bit position in the data frame, based on the information of at least one bit position in the first data frame. Here, the first electronic device can record the determined electrical parameters to record the change process of the electrical parameters before and after the occurrence of a large disturbance in the power system, thereby providing assistance for disturbance analysis and fault handling.

[0061] Among them, combined with the specific needs of the fault recording scenario, for example, in order to obtain better results, parameters such as the sampling rate are usually adjusted, and correspondingly, the number of bytes occupied by the sampled value of the electrical parameter in the data frame is adjusted. For this reason, the custom frame format is described in text form through a frame format document. The electronic device cannot directly parse the frame format document, and the frame format document is converted into a mapping table that can be parsed by the electronic device. The component represents the interface of the program. By calling a set component, a set program is run to at least implement the parsing of the data frame. Here, calling a set component causes the electronic device to run a set program. Through a determined program, the program determines the electrical parameters of the data frame according to the imported mapping table. That is to say, the electronic device can determine the electrical parameters in the data frames of various frame formats through a determined program, without writing corresponding parsing programs for the electronic device for each custom frame format.

[0062] Here, the first electronic device represents the receiving-side electronic device of the data frame, and the second electronic device represents the sending-side electronic device of the data frame. The mapping table is stored in the electronic device in the form of a file, and there can be one or more mapping tables stored in the electronic device. Each mapping table corresponds to an identifier. It can be seen that there can be multiple second identifiers in the first electronic device.

[0063] The electrical parameter is the actual parameter value of the electrical parameter. In the fault recording of the power system, the electrical parameter represents the actual parameter value of the electrical parameter of the power system.

[0064] When describing the correspondence between electrical parameters and data frame information, the first mapping table can describe the relationship between the data frame and the electrical parameters by bytes. In other words, the first mapping table can combine bytes and bit positions to describe the position of the electrical parameters corresponding in the data frame. For example, the byte sequence number of the virtual input channel 001 is 4, and the bit position is 0.

[0065] When determining the electrical parameters in the data frame based on the mapping table, the electrical parameters can be directly extracted from the data frame, or the corresponding bit data can be processed (such as decoded) to obtain the electrical parameters.

[0066] In the above solution, based on the mapping table in the first electronic device that matches the mapping table identifier corresponding to the data frame, the bit positions corresponding to the electrical parameters in the data frame are determined by calling the set components, enabling the first electronic device to determine the electrical parameters in the data frame. In this way, regardless of whether the received data frame is a custom frame format or a standard frame format, the first electronic device can determine the electrical parameters in the data frame. In other words, based on the mapping table in the first electronic device that matches the mapping table identifier corresponding to the data frame, the user does not need to write a corresponding parsing program for the first electronic device for each custom frame format, thereby improving the development and maintenance efficiency of the electronic device.

[0067] Moreover, through the set interface, the corresponding set program is run in the electronic device to enable the electronic device to support the compatible access of the IEC 60044-8 protocol based on serial communication and the custom data frame format, thereby being generally applicable to various fault recording scenarios and improving the standardization degree of the production of electronic devices.

[0068] As mentioned above, in some application scenarios, the user will adjust the number of bytes occupied by the sampled value of the electrical parameter in the data frame, and transform the standard FT3 frame format adopted by the IEC 60044-8 protocol into a custom frame format. In one embodiment, before receiving the first data frame sent by the second electronic device, the method further includes:

[0069] Updating the first mapping table in the first electronic device.

[0070] Here, the way to update the first mapping table can be to replace the existing mapping table or to store the mapping table additionally.

[0071] Inputting the corresponding first mapping table to the first electronic device to update the mapping table stored in the first electronic device. In this way, when the first electronic device receives the first data frame sent by the second electronic device, it can determine the correct electrical parameters based on the updated first mapping table.

[0072] In one embodiment, the identifier of the mapping table includes at least one of the following:

[0073] Table check code;

[0074] Version number.

[0075] Among them, the table check code can be set and can be generated based on algorithms such as the check code algorithm and the SnowFlake algorithm. In this embodiment, the method for generating the table check code is not limited.

[0076] The version number represents the version of the mapping table, and the custom frame format corresponding to the mapping table can be determined according to the version number.

[0077] When verifying the identifier of the mapping table, it can be based on the table check code, based on the version number, or based on both the table check code and the version number.

[0078] In practical applications, the identifier of the mapping table can be determined according to at least one of the following methods: the file name of the mapping table, the table name of the mapping table, and / or at least one record in the table of the mapping table. Taking the determination of the identifier of the mapping table according to the file name of the mapping table as an example, the file name of the mapping table is in the following format: Portxx_xxxxxxxxx_Vx.x_xxxx.xlsx. Among them: the Portxx field represents the access fiber optic port number; the xxxxxxxxx field is a mnemonic description; the Vx.x field is the version number; the xxxx field is the table check code.

[0079] In one embodiment, the mapping table is used to describe at least one bit position in the data frame corresponding to at least one of the following electrical parameters:

[0080] Optical fiber parameters;

[0081] Analog quantity; and / or,

[0082] Virtual switch quantity.

[0083] Here, the mapping table may include at least one worksheet, and each worksheet corresponds to one or more electrical parameters.

[0084] In practical applications, it can be set that the mapping table includes three worksheets, namely the optical fiber parameter table, the analog quantity table, and the virtual switch quantity table, corresponding to the optical fiber parameters, the analog quantity, and the virtual switch quantity respectively.

[0085] Such as Figure 2 As shown in the schematic diagram of the optical fiber parameter table, the optical fiber parameter table includes four columns of attributes: short address, parameter name, value, and unit. Here, the short address represents the internal parameter variable name of the electronic device.

[0086] Such as Figure 3Schematic diagram of the analog scale shown. The analog value table includes multiple columns of attributes: serial number, analog channel number, channel name, starting byte number, number of bytes occupied, virtual switch quantity, channel input, analog type, analog flag, phase flag, unit.

[0087] As Figure 4 Schematic diagram of the virtual switch quantity table shown. The virtual switch quantity table includes multiple columns of attributes: serial number, switch quantity channel number, channel name, byte number, bit position, channel input, signal type, channel flag, contact type, trigger permission.

[0088] In one embodiment, the method further includes:

[0089] In the case where the verification result indicates that there is no second identifier matching the first identifier in the first electronic device, output a prompt message.

[0090] When the verification result indicates that there is no second identifier matching the first identifier in the first electronic device, the electronic device outputs a prompt message. In this way, the user can input the mapping table in a timely manner based on the prompt message, and the electronic device can receive the input mapping table in a timely manner, thus ensuring the fault recording effect of the electronic device. At the same time, the workload of manually verifying the mapping table is reduced, thereby improving the development efficiency.

[0091] Figure 5 Schematic diagram of the implementation process of the fault recording method provided by the embodiment of the present application. The embodiment of the present application provides a fault recording method, which is applied to a second electronic device, where the second electronic device includes but is not limited to electrical secondary devices. It includes:

[0092] Step 501: Generate a first data frame according to the electrical parameters and the first mapping table.

[0093] Step 502: Send the first data frame to the first electronic device.

[0094] Wherein, the first mapping table is used to describe at least one bit corresponding to the electrical parameter in the data frame.

[0095] The second electronic device generates a first data frame based on the electrical parameters according to the corresponding relationship between the electrical parameters described by the first mapping table and at least one bit in the data frame, and sends the first data frame to the first electronic device. Among them, the first data frame carries a first identifier, and the first identifier is used for the device that receives the first data frame to verify the mapping table and determine the matching mapping table.

[0096] Here, the first electronic device represents the receiving-side device of the data frame, and the second electronic device represents the sending-side electronic device of the data frame. The mapping table may include at least one worksheet, and each worksheet corresponds to one or more electrical parameters. The mapping table is stored in the electronic device in the form of a file, and there may be one or more mapping tables stored in the electronic device. Each mapping table corresponds to an identifier. Obviously, there may be multiple identifiers in the second electronic device.

[0097] Based on the mapping table in the electronic device, the second electronic device generates and sends a first data frame by calling a set component. Here, the component represents the interface of the program. By calling the set component, the set program runs to at least implement the parsing of the data frame. Here, calling the set component causes the electronic device to run the set program. That is to say, here it is a definite program that can implement the parsing of the custom frame format according to the mapping table. The set component in the second electronic device and the set component in the first electronic device may be the same or different.

[0098] The electrical parameter is the actual parameter value of the electrical parameter. In the fault recording of the power system, the electrical parameter represents the actual parameter value of the electrical parameter of the power system.

[0099] When describing the correspondence between the electrical parameter and the data frame information, the first mapping table can describe the relationship between the data frame and the electrical parameter by bytes. In other words, when the first mapping table is used to describe at least one bit position corresponding to the electrical parameter in the data frame, the relationship between the data frame and the electrical parameter can be described in combination with bytes and bit positions.

[0100] In the above solution, based on the electrical parameter and the first mapping table describing at least one bit position corresponding to the electrical parameter in the data frame, the second electronic device generates the first data frame and sends it to the first electronic device. In this way, regardless of whether the sent data frame is a custom frame format or a standard frame format, based on the mapping table corresponding to the frame format, the second electronic device can generate the data frame corresponding to the electrical parameter. In other words, the user does not need to write a corresponding parsing program for the electronic device for each custom frame format, thereby improving the development and maintenance efficiency of the electronic device.

[0101] In an embodiment, the first data frame carries a first identifier of the first mapping table; the first identifier is used to verify the mapping table.

[0102] In this way, after receiving the first data frame, the first electronic device can verify the stored mapping table based on the first identifier carried in the first data frame.

[0103] In an embodiment, before generating the first data frame according to the electrical parameter and the first mapping table, the method further includes:

[0104] Update the first mapping table in the second electronic device.

[0105] Here, the way to update the first mapping table can be to replace the existing mapping table or to store the mapping table additionally.

[0106] Input the corresponding first mapping table to the first electronic device to update the mapping table stored in the first electronic device. In this way, when the first electronic device receives the first data frame sent by the second electronic device, it can determine the correct electrical parameters based on the updated first mapping table.

[0107] Next, in combination with application embodiments, the present application will be further described in detail.

[0108] In the early stage of each engineering design, the user will record the frame format in text form to form a frame format document, and write parsing programs corresponding to the frame format for the transmitting-side electronic device and the receiving-side electronic device respectively according to the frame format document. However, in actual applications, since the transmitting-side electronic device and the receiving-side electronic device of the data frame are usually not from the same manufacturer, when writing programs based on non-standard frame format documents, the programs written by both sides may not correspond, resulting in the receiving-side electronic device being unable to obtain electrical parameters from the data frame.

[0109] Moreover, for each custom frame format, a corresponding parsing program needs to be written, and the newly written parsing program needs to undergo a large number of tests, which is cumbersome for the user to operate.

[0110] In addition, since the number of bytes occupied by the sampled value of the electrical parameter in the data frame also needs to be adjusted according to requirements during use, that is to say, the parsing program needs to be updated in real time, and the maintenance cost is relatively high.

[0111] In the practical process, due to the mismatch between the parsing programs on the transmitting side and the receiving side, the parsed data cannot be used, resulting in low efficiency in the engineering design, equipment manufacturing, and engineering construction of intelligent substations.

[0112] Based on this, Figure 6 FIG. shows a schematic flowchart of custom frame format processing provided by an application embodiment of the present application.

[0113] First, a custom frame format description method based on frame bit mapping.

[0114] The determined custom frame format document table of IEC 60044-8, as shown in Table 1 and Table 2 below, describes the frame format in text form, and the electronic device cannot directly parse it. The content that needs to be recorded in the frame format document is mapped into a format that can be parsed by the electronic device according to the bit position through the frame bit mapping table and stored in the form of an Excel table.

[0115] Table 1 Custom Frame Format Table of IEC 60044-8

[0116]

[0117] Table 2 Supplementary Explanation Table of the Status Word in Table 1

[0118]

[0119] The frame bit mapping table includes three worksheets, as Figures 2 to 4 shown.

[0120] When the transmitting optical fiber of the ICE 60044-8 data with a communication rate of 20 Mb / s, a data block length of 4 bytes, a sampling rate of 100000 Hz, and a custom multi-byte sampling value accesses the fault recording receiving port 01, the parameter settings of the mapping table are as Figure 2 shown.

[0121] The analog quantity to be acquired is a 24-bit analog quantity sampling value defined by the 2nd, 3rd, and 4th bytes in Table 1. The 24-bit analog quantity sampling value is interpreted as starting byte sequence number 1, occupying 3 bytes, and the parameters are as shown in Table Figure 3 shown. The analog quantity sampling value can also be 8 bits, 16 bits, or 32 bits;

[0122] The switch quantity to be acquired is the 5th and 6th bytes in Table 1. The 16-bit status information is called a virtual switch quantity (the 16-bit status information is made up of 2 bytes and is called a virtual switch quantity). Each bit represents a different meaning. The byte sequence numbers of the mapping table are 4 and 5 respectively, and the bit positions are 0 to 7. At the same time, the virtual switch quantity value at the position occupied by this byte in the analog quantity setting value table is set to 1, indicating that this position is occupied by the virtual switch quantity and cannot be processed as analog quantity data.

[0123] The R & D personnel on the sending side process the custom frame structure and parameter mapping described in words into a formatted table according to the above method, that is, the mapping table. When storing the mapping table, the file name can be set in the following format: Portxx_xxxxxxxxx_Vx.x_xxxx.xlsx. Among them: the Portxx field represents the access optical fiber port number; the xxxxxxxxx field is the mnemonic description; the Vx.x field is the version number; the xxxx field is the table check code. The electronic device can parse the formatted content described by Excel.

[0124] Then, the implementation process of the custom frame format is described.

[0125] For a custom frame format based on IEC 60044-8, establish the corresponding standard format and process. At the initial stage of engineering design, after the frame format is agreed upon by both parties, the R & D personnel of the sending-side electronic device convert the frame format document into a fixed-format frame bit mapping table using the bit mapping method, and the sending party is responsible for unified maintenance.

[0126] The table is designed in a fixed format, and the frame content is filled in according to the data types of bits, bytes, words, or 4 bytes. With a fixed format, a set program can be used for parsing and processing, eliminating the need to separately compile a receiving program for each project.

[0127] During project implementation, the sending-side device imports this table, and the program automatically sends data according to the table content. Similarly, the receiving-side device also imports the same formatted table, and the standard program parses this table and extracts the frame content according to the table format. Each time the frame format is adjusted, the sending party is responsible for revising the table content, generating a check code, and forming a version number. The engineering personnel on-site for commissioning of both the sending side and the receiving side respectively check the version numbers of the imported mapping tables.

[0128] After importing the mapping table, through processing, the electronic device makes the sent frame content include the table check code and version number. If the table imported by the receiving-side device is inconsistent with the check code or version of the table imported by the sending party, the receiving-side device will automatically identify and give a prompt or warning.

[0129] In the application embodiment of this application, according to a unified description method of a custom frame format based on bit mapping, a corresponding implementation process of a custom frame format based on bit mapping is adopted. Based on the bit mapping table, the fault recording is processed with the data frame of the custom frame format, which is used to implement fault recording and realize the compatible access of the IEC 60044-8 protocol based on serial communication and the custom data frame format. The present invention improves the product standardization manufacturing level and on-site construction efficiency.

[0130] Through unified hardware configuration, a unique frame format table, a standard parsing program, automatic version verification, and a simple construction process, the standardization level of the production and manufacturing of the recording device is improved, the standardization level of the project implementation process is increased, the interference of human factors is reduced, the probability of errors is lowered, and the work efficiency is improved.

[0131] To implement the method of the application embodiment, the application embodiment also provides a fault recording device, as Figure 7 shown, the device includes:

[0132] A first receiving unit 701, configured to receive a first data frame sent by a second electronic device; the first data frame is generated according to electrical parameters and a first mapping table, and carries a first identifier of the first mapping table;

[0133] The first processing unit 702 is configured to verify the second identifier in the mapping table stored in the first electronic device based on the first identifier, and obtain a verification result;

[0134] The second processing unit 703 is configured to, when the verification result indicates that there is a second identifier matching the first identifier in the first electronic device, determine the electrical parameters in the first data frame based on the first mapping table by invoking a set component;

[0135] Wherein, the first mapping table is used to describe at least one bit corresponding to the electrical parameter in the data frame.

[0136] Wherein, in one embodiment, the fault recording device further includes an update unit, configured to:

[0137] Update the first mapping table in the first electronic device.

[0138] In one embodiment, the identifier of the mapping table includes at least one of the following:

[0139] Table check code;

[0140] Version number.

[0141] In one embodiment, the mapping table is used to describe at least one bit corresponding to at least one of the following electrical parameters in the data frame:

[0142] Optical fiber parameters;

[0143] Analog quantity; and / or,

[0144] Virtual switch quantity.

[0145] In one embodiment, the fault recording device further includes a fourth processing unit, configured to:

[0146] Output a prompt message when the verification result indicates that there is no second identifier matching the first identifier in the first electronic device.

[0147] In actual application, the first receiving unit 701 can be implemented based on the communication interface in the fault recording device, and the first processing unit 702, the second processing unit 703, the update unit, and the fourth processing unit can be implemented based on the processor in the fault recording device.

[0148] It should be noted that when the fault recording device provided in the above embodiment performs fault recording, only the division of the above program modules is used for illustration. In actual application, the above processing can be allocated to different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the above-described processing. In addition, the fault recording device provided in the above embodiment and the embodiment of the fault recording method belong to the same concept, and the specific implementation process can be found in the method embodiment and will not be elaborated here.

[0149] To implement the method of the embodiments of the present application, the embodiments of the present application further provide a fault recording device, as Figure 8 shown, the device includes:

[0150] A third processing unit 801, configured to generate a first data frame according to electrical parameters and a first mapping table;

[0151] A first sending unit 802, configured to send the first data frame to a first electronic device; wherein,

[0152] The first mapping table is used to describe at least one bit corresponding to the electrical parameter in the data frame.

[0153] In actual application, the first sending unit 802 can be implemented by a communication interface in the fault recording device, and the third processing unit 801 can be implemented by a processor in the fault recording device.

[0154] It should be noted that when the fault recording device provided in the above embodiment performs fault recording, only the division of the above program modules is used for illustration. In actual application, the above processing can be allocated to different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the above-described processing. In addition, the fault recording device provided in the above embodiment and the embodiment of the fault recording method belong to the same concept, and the specific implementation process can be found in the method embodiment and will not be elaborated here.

[0155] Based on the hardware implementation of the above program modules, and in order to implement the fault recording method of the embodiments of the present application, the embodiments of the present application further provide an electronic device. Figure 9 The hardware composition structure diagram of the electronic device for the embodiments of the present application is as Figure 9 shown, the electronic device includes:

[0156] A communication interface 1, capable of interacting with other devices such as network devices for information;

[0157] The processor 2 is connected to the communication interface 1 to enable information interaction with other devices and, when running a computer program, executes the method provided by one or more of the above technical solutions. The computer program is stored on the memory 3.

[0158] Of course, in actual application, each component in the electronic device is coupled together through the bus system 4. It can be understood that the bus system 4 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 4 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, in Figure 9 all kinds of buses are labeled as the bus system 4.

[0159] The memory 3 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device. Examples of these data include: any computer program for operating on the electronic device.

[0160] It can be understood that the memory 3 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory), an electrically erasable programmable read-only memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), a ferromagnetic random access memory (FRAM, ferromagnetic random access memory), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM, Compact Disc Read-Only Memory); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM, Random Access Memory), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as a static random access memory (SRAM, Static Random Access Memory), a synchronous static random access memory (SSRAM, Synchronous Static Random Access Memory), a dynamic random access memory (DRAM, Dynamic Random Access Memory), a synchronous dynamic random access memory (SDRAM, Synchronous Dynamic Random Access Memory), a double data rate synchronous dynamic random access memory (DDR SDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), an enhanced synchronous dynamic random access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), a sync link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), a direct rambus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 3 described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memories.

[0161] The method disclosed in the embodiments of the present invention above can be applied to the processor 2 or implemented by the processor 2. The processor 2 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 2 or by instructions in the form of software. The above-mentioned processor 2 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 2 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor, etc. Combining the steps of the method disclosed in the embodiments of the present invention, it can be directly embodied as being executed and completed by the hardware decoding processor, or by a combination of the hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the memory 3. The processor 2 reads the program in the memory 3 and combines its hardware to complete the steps of the foregoing method.

[0162] When the processor 2 executes the program, it implements the corresponding processes in the various methods of the embodiments of the present invention. For the sake of brevity, they will not be elaborated here.

[0163] In an exemplary embodiment, the embodiments of the present invention further provide a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, such as a memory 3 including a stored computer program. The above computer program can be executed by the processor 2 to complete the steps of the foregoing method. The computer-readable storage medium may be a FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM, etc.

[0164] In several embodiments provided in the present application, it should be understood that the disclosed devices, electronic devices, and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed with each other can be through some interfaces. The indirect coupling or communication connection of the devices or units can be electrical, mechanical, or other forms.

[0165] The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0166] In addition, each functional unit in the embodiments of the present application may be all integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit. The above integrated units may be implemented in the form of hardware or in the form of a combination of hardware and software functional units.

[0167] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments. The foregoing storage medium includes: various media such as removable storage devices, ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0168] Alternatively, if the above integrated units of the present application are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present application. The foregoing storage medium includes: various media such as removable storage devices, ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0169] It should be noted that the technical solutions described in the embodiments of the present application can be arbitrarily combined without conflict. Unless otherwise stated and limited, the term "connection" should be understood in a broad sense. For example, it can be an electrical connection, or the connection inside two components, it can be directly connected, or indirectly connected through an intermediate medium. For those of ordinary skill in the art, the specific meaning of the above terms can be understood according to specific situations.

[0170] In addition, in the examples of the present application, "first", "second", etc. are used to distinguish similar objects and do not have to be used to describe a specific order or sequence. It should be understood that the objects distinguished by "first / second / third" can be interchanged under appropriate circumstances so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here.

[0171] As used herein, the term "and / or" is merely a description of the relationship between associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. Additionally, the term "at least one" as used herein means any one of a plurality or any combination of at least two of a plurality. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0172] As described above, this is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art in the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

[0173] For the various specific technical features in the respective embodiments described in the specific implementation manner, various combinations can be made without contradiction. For example, different embodiments can be formed through combinations of different specific technical features. To avoid unnecessary repetition, various possible combination methods of the various specific technical features in the present application will not be described separately.

Claims

1. A fault recording method, characterized in that, applied to a first electronic device, the method comprising: receiving a first data frame sent by a second electronic device; the first data frame is generated according to electrical parameters and a first mapping table, and carries a first identifier of the first mapping table; based on the first identifier, verifying a second identifier of a mapping table stored in the first electronic device to obtain a verification result; when the verification result indicates that there is a second identifier in the first electronic device that matches the first identifier, determining the electrical parameters in the first data frame based on the first mapping table by invoking a set component; wherein, the first mapping table is used to describe at least one bit corresponding to electrical parameters in a data frame.

2. The method according to claim 1, characterized in that, before receiving the first data frame sent by the second electronic device, the method further comprises: updating the first mapping table in the first electronic device.

3. The method according to claim 1, characterized in that, the identifier of the mapping table includes at least one of the following: table check code; version number.

4. The method according to claim 1, characterized in that, the mapping table is used to describe at least one bit corresponding to at least one of the following electrical parameters in a data frame: optical fiber parameters; analog quantity; and / or, virtual switching quantity.

5. The method according to any one of claims 1 to 4, characterized in that, the method further comprises: when the verification result indicates that there is no second identifier in the first electronic device that matches the first identifier, outputting a prompt message.

6. A fault recording method, characterized in that, applied to a second electronic device, the method comprising: generating a first data frame according to electrical parameters and a first mapping table; wherein, the first data frame carries a first identifier of the first mapping table; sending the first data frame to a first electronic device; wherein, the first mapping table is used to describe at least one bit corresponding to electrical parameters in a data frame; the first data frame is used for the first electronic device to verify a second identifier of a mapping table stored in the first electronic device based on the first identifier to obtain a verification result; the first data frame is further used for the first electronic device to determine the electrical parameters in the first data frame based on the first mapping table by invoking a set component when the verification result indicates that there is a second identifier in the first electronic device that matches the first identifier.

7. A fault recording device, characterized in that, comprising: a first receiving unit, configured to receive a first data frame sent by a second electronic device; the first data frame is generated according to electrical parameters and a first mapping table, and carries a first identifier of the first mapping table; a first processing unit, configured to verify a second identifier of a mapping table stored in a first electronic device based on the first identifier to obtain a verification result; A second processing unit, configured to, when the verification result indicates that there is a second identifier matching the first identifier in the first electronic device, determine the electrical parameters in the first data frame based on the first mapping table by invoking a set component; wherein the first mapping table is used to describe at least one bit corresponding to the electrical parameter in the data frame.

8. A fault recording device characterized in that it includes: A third processing unit, configured to generate a first data frame according to the electrical parameters and the first mapping table; wherein the first data frame carries a first identifier of the first mapping table; A first sending unit, configured to send the first data frame to a first electronic device; wherein the first mapping table is used to describe at least one bit corresponding to the electrical parameter in the data frame; the first data frame is used for the first electronic device to verify a second identifier of a mapping table stored in the first electronic device based on the first identifier to obtain a verification result; the first data frame is further used for the first electronic device to determine the electrical parameters in the first data frame based on the first mapping table by invoking a set component when the verification result indicates that there is a second identifier matching the first identifier in the first electronic device.

9. An electronic device characterized in that it includes: a processor and a memory for storing a computer program that can run on the processor, wherein the processor is configured to execute the steps of the method according to any one of claims 1 to 6 when running the computer program.

10. A storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Electric energy quality and electrical power system malfunction detection wave recording device and method

    CN101097653A

  • Digitalized fault wave recording device

    CN101854080A