Electric energy metering data diagnosis method and system based on weak signal restoration
Through standardized request format and quantization processing, combined with analysis thread optimization, the problems of unstable transmission of weak signal electrical energy metering data and low diagnostic accuracy are solved, efficient acquisition and accurate analysis of electrical energy metering data are achieved, and the reliability of the system is improved. Diagnostic accuracy provides support for power system management.
Patent Information
- Application Number
- CN202410701695.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-11-22
AI Technical Summary
The prior art has problems such as unstable data transmission, low analysis efficiency and low diagnostic accuracy when processing weak signal electrical energy metering data.
Using standardized request format, quantized processing and parsing thread optimization technology, by acquiring and analyzing service requests, establishing encrypted transmission channels, selecting suitable data transmission types, optimizing customer priority and communication ports, performing secondary processing and verification to improve power Diagnostic accuracy and reliability of metrological data.
Improve the accuracy and stability of power metering data, reduce data transmission errors, enhance the reliability and stability of the system, improve the efficiency and diagnostic accuracy of business request analysis, and provide support for the safe operation and management of the power system. .
Smart Images

Figure CN119006209A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and in particular to an electric energy metering data diagnosis method and system based on restoring weak signals. Background Art
[0002] The current society is in an era of informatization and intelligent development. Electricity metering data plays an important role in energy management and smart grid construction. With the gradual maturity and popularization of power edge computing technology, higher requirements are put forward for how to efficiently and reliably acquire, analyze and diagnose electricity metering data.
[0003] At present, there are many challenges in the existing technology when processing weak signal electric energy metering data, including unstable data transmission, inefficient business request analysis and low data diagnosis accuracy. The present invention adopts standardized request format, quantization processing and optimization of parsing threads and other technical means to achieve efficient acquisition, accurate analysis and reliable diagnosis of electric energy metering data, thereby solving many problems of the existing technology when processing weak signal electric energy metering data. Summary of the invention
[0004] In view of the problems existing in the existing electric energy metering data diagnosis method and system based on restoring weak signals, the present invention is proposed.
[0005] Therefore, the purpose of the present invention is to provide a method and system for diagnosing electric energy metering data based on restoring weak signals. In view of the defects of the prior art in processing electric energy metering data with weak signals, such as unstable data transmission, low analysis efficiency and low diagnostic accuracy, the present invention adopts standardized request format, quantization processing and parsing thread optimization and other technical means to solve them.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In the first aspect, an embodiment of the present invention provides an electric energy metering data diagnosis method based on restoring weak signals, which includes obtaining a business request forwarded by a power edge computing chip through an external receiver; parsing the business request; obtaining verification information; and establishing an encrypted transmission channel for feedback.
[0008] As a preferred solution of the electric energy metering data diagnosis method based on restoring weak signals described in the present invention, wherein: obtaining an electric energy metering data set of weak signals, calculating the electric energy metering data set according to the electric power edge computing chip, and restoring the calculated electric energy metering data set through a service request forwarded by a system external receiver;
[0009] Perform business request analysis on the restored and calculated electric energy metering data set, and convert the electric energy metering data set into a standardized request format by creating metadata;
[0010] The standardized request format is quantified, the quantified information is obtained for secondary processing, and based on the combination of the secondary processing result and the business request, the data transmission type is selected to diagnose the electric energy metering data.
[0011] As a preferred solution of the electric energy metering data diagnosis method based on restoring weak signals of the present invention, wherein: the acquisition of the electric energy metering data set of weak signals includes acquiring the service request using a standardized request format, and describing the attributes of the service request itself by creating metadata, and the calculation formula of the standardized request format is:
[0012]
[0013] Where C represents the standardized request format, i represents the index of the attribute, j represents the index of the sub-attribute, and D ij represents the jth sub-attribute in the i-th attribute, N ij represents the associated coefficient;
[0014] The service request is calculated according to the standardized request format to obtain the service request attribute. The specific calculation formula is:
[0015]
[0016] Among them, D i Indicates the attributes of the processed business request, A ij The characteristics of the request attributes, B ij Parameters representing request attributes, ∈(C ij ) represents the gamma function, E i Indicates business request factor.
[0017] As a preferred solution of the electric energy metering data diagnosis method based on restoring weak signals of the present invention, the service request includes a known parsed data size data i And the unit data volume parsing time t i , the quantitative formula for the amount of parsed data and the degree of parsing real-time performance is expressed as follows:
[0018] The quantitative calculation formula for the amount of analytical data is:
[0019]
[0020] Among them, D1 represents the degree of quantification of the amount of analytical data, f(data i ) and g(ti) represent functions, data i Indicates the size of the i-th data block;
[0021]
[0022] Wherein, D2 represents the quantification of the degree of real-time analysis, and N represents the total number of data blocks.
[0023] As a preferred solution of the power metering data diagnosis method based on restoring weak signals of the present invention, wherein: the business request analysis of the power metering data set after restoration and calculation includes determining the customer priority by using a single parsing thread and a batch parsing thread;
[0024] When the total amount of parsed data is in [0,100), a single parsing thread is called to process the client's priority;
[0025] When the total amount of parsed data is in [100, +∞), the batch parsing thread is called to process the priority of the client. The processing formula for the priority level is:
[0026]
[0027] Among them, P represents the weight factor of the amount of parsed data, w2 represents the weight factor of the real-time nature of the analysis, d represents the degree of the amount of parsed data, and t 2 Indicates the real-time degree of analysis;
[0028] When the total amount of parsed data is less than 100, the system determines the priority of the customer based on the amount of parsed data and the degree of real-time performance, prompts the user to enter relevant parameters, and the user enters the parameters based on their own needs and submits the request through the interactive button on the interface;
[0029] When the total amount of parsed data is greater than or equal to 100, the system automatically calls the batch parsing thread to process the customer's request, and determines the customer's priority based on the amount of parsed data and the degree of real-time performance. At this time, the system sends an automatic notification to the user to inform the user that the system has achieved automatic adjustment.
[0030] As a preferred solution of the electric energy metering data diagnosis method based on restoring weak signals of the present invention, the business request analysis of the electric energy metering data set after restoration and calculation also includes determining the communication port, business request data and transmission data type of the client, and determining the data transmission protocol according to the transmission data type. The calculation formula of the specific data transmission protocol is:
[0031]
[0032] Among them, P port Indicates the client communication port, N indicates the size of the port range, Hash(D attributes ) represents a hash function;
[0033] The performing of business request analysis on the restored calculated electric energy metering data set includes calculating the range of the client communication port, and the calculating the range of the client communication port includes the following steps:
[0034] Calculate the client communication port coefficient. The specific calculation formula is:
[0035]
[0036] Among them, P max Indicates the maximum value of the port range, P min represents the minimum value of the port range, and α represents the client communication port coefficient;
[0037] Optimize the client communication port coefficient. The specific optimization formula is:
[0038] P port_norm =α×P port
[0039] Among them, P port_norm represents the optimized client communication port, and α represents the client communication port coefficient.
[0040] As a preferred solution of the electric energy metering data diagnosis method based on restoring weak signals of the present invention, the secondary processing includes verifying the client communication port coefficient, and the verification includes parity check information, cumulative sum information and CRC check information. The formulas of each verification information method are expressed as follows:
[0041] Parity information value calculation:
[0042] P=(D[0]+D[1]+D[2]+...+D[6]+D[7])%2
[0043] Where D[i] represents the i-th bit of D, %2 represents modulo 2, and D represents a byte;
[0044] Cumulative and information value calculation:
[0045] S=(D'[0]+D'[1]+D'[2]+...+D'[n-1])%256
[0046] Where D'[i] represents the i-th received data byte, the bytes are counted from 0, %256 represents modulo 256, D' represents the data byte, and S represents the accumulated sum value;
[0047] CRC checksum information value calculation:
[0048] C=remainder(D*2^k / P)
[0049] Among them, remainder represents a remainder operation, D represents a data byte, k represents the number of bits of the data byte, and P represents a CRC polynomial.
[0050] As a preferred solution of the electric energy metering data diagnosis method based on restoring weak signals of the present invention, the combination includes combining the results after secondary processing by using an analysis thread, the analysis thread includes a single analysis thread and a batch analysis thread, and the specific calculation formula of the combination is:
[0051]
[0052] Where T represents the number of parsing threads, D data Indicates the amount of parsed data, P priority Represents the priority parameter, R real_time represents the real-time evaluation result, P load Indicates system load parameters;
[0053] The diagnosis includes selecting a suitable data transmission type according to the combined result of the current system load and the number of parsing threads, and diagnosing the electric energy metering data.
[0054] In a second aspect, an embodiment of the present invention provides a reliable data transmission system applicable to an electric power edge computing chip, comprising: an acquisition module, which calculates an electric power metering data set according to the electric power edge computing chip by acquiring an electric power metering data set of a weak signal;
[0055] The conversion module performs business request analysis on the restored and calculated electric energy metering data set and converts the electric energy metering data set into a standardized request format by creating metadata;
[0056] The diagnosis module quantifies the standardized request format, obtains the quantified information for secondary processing, combines the secondary processing result with the business request, and selects the data transmission type to diagnose the electric energy metering data.
[0057] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the processor executes the computer program, it implements any step of the above-mentioned method for reliable data transmission of the power edge computing chip.
[0058] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the method for reliable data transmission of the above-mentioned power edge computing chip is implemented.
[0059] The beneficial effects of the present invention are as follows: the present invention adopts technical means such as standardized request format and quantization processing, and reduces data transmission errors and enhances the reliability and stability of the system by improving the accuracy and stability of electric energy metering data. In addition, the optimized parsing thread mechanism effectively improves the efficiency and accuracy of business request analysis, thereby improving the diagnostic accuracy and availability of electric energy metering data, and providing strong support for the safe operation and management of the power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0061] Figure 1 A flowchart of an electric energy metering data diagnosis method and system based on weak signal restoration is provided in accordance with an embodiment of the present invention.
[0062] Figure 2 A diagnostic schematic diagram of an electric energy metering data diagnostic method and system based on restoring weak signals provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0063] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0064] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0065] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0066] Example 1
[0067] Reference Figure 1 and Figure 2 , which is the first embodiment of the present invention, provides an electric energy metering data diagnosis method based on restoring weak signals, comprising:
[0068] S1: Obtain the electric energy metering data set of weak signals, calculate the electric energy metering data set according to the power edge computing chip, and restore the calculated electric energy metering data set through the service request forwarded by the system external receiver.
[0069] Among them, obtaining the weak signal electric energy metering data set includes obtaining the service request using a standardized request format, and describing the attributes of the service request itself by creating metadata. The calculation formula of the standardized request format is:
[0070]
[0071] Where C represents the standardized request format, i represents the index of the attribute, j represents the index of the sub-attribute, and D ij represents the jth sub-attribute in the i-th attribute, N ij represents the associated coefficient;
[0072] Calculate the business request according to the standardized request format to obtain the business request attributes. The specific calculation formula is:
[0073]
[0074] Among them, D i Indicates the attributes of the processed business request, A ij The characteristics of the request attributes, B ij Parameters representing request attributes, ∈(C ij ) represents the gamma function, E i Indicates business request factor.
[0075] Furthermore, the business request may be a communication request, a query request, or a data calculation request. The business request data includes at least one request information including business identification information, business type information, and business detailed information. The business response data will be queried and fed back based on the request information, and query conditions will be created based on the target transmission data type. The query conditions will perform data query in the mapping information table.
[0076] Furthermore, when creating metadata, a set of metadata fields can be defined to describe the properties of the request itself, the unique identifier of the request, and the timestamp of the request creation. The unique identifier is used to ensure that each request has a unique identifier to facilitate tracking and identification of the request. The timestamp is usually in ISO8601 format, which provides time information about the request, and is used to record the order of requests, calculate the processing time of requests, and perform time range queries on requests. The accuracy of the timestamp depends on the combination of date and time. The date is expressed as YYYY-MM-DD, the time is expressed as HH:MM:SS, the date and time are expressed using the letter "T" that must be separated between the date expression and the time expression, and the time zone is expressed as "Z" with a zero offset from the coordinated world. The ISO8601 format provides flexibility and consistency, allowing different systems and applications to uniformly parse and process date and time information. It also supports time representation accurate to milliseconds, microseconds, or higher precision to meet specific needs.
[0077] S1.1: The business request includes the known amount of parsed data i And the unit data volume parsing time t i , the quantitative formula for the amount of parsed data and the degree of parsing real-time performance is expressed as follows:
[0078] The quantitative calculation formula for the amount of analytical data is:
[0079]
[0080] Among them, D1 represents the degree of quantification of the amount of analytical data, f(data i ) and g(ti) represent functions, data i Indicates the size of the i-th data block;
[0081]
[0082] Wherein, D2 represents the quantification of the degree of real-time analysis, and N represents the total number of data blocks.
[0083] S2: Perform business request analysis on the restored and calculated electric energy metering dataset, and convert the electric energy metering dataset into a standardized request format by creating metadata.
[0084] The business request analysis of the restored and calculated electric energy metering data set includes determining customer priority using a single parsing thread and a batch parsing thread;
[0085] When the total amount of parsed data is in [0,100), a single parsing thread is called to process the client's priority;
[0086] When the total amount of parsed data is in [100, +∞), the batch parsing thread is called to process the priority of the client. The processing formula for the priority level is:
[0087]
[0088] Among them, P represents the weight factor of the amount of data to be analyzed, w2 represents the weight factor of the real-time analysis, d represents the degree of the amount of data to be analyzed, and t 2 Indicates the real-time degree of analysis;
[0089] When the total amount of parsed data is less than 100, the system determines the priority of the customer based on the amount of parsed data and the degree of real-time performance, prompts the user to enter relevant parameters, and the user enters the parameters based on their own needs and submits the request through the interactive button on the interface;
[0090] When the total amount of parsed data is greater than or equal to 100, the system automatically calls the batch parsing thread to process the customer's request, and determines the customer's priority based on the amount of parsed data and the degree of real-time performance. At this time, the system sends an automatic notification to the user to inform the user that the system has achieved automatic adjustment.
[0091] S2.1: The service request analysis of the restored energy metering data set also includes determining the client's communication port, service request data, and transmission data type, and determining the data transmission protocol according to the transmission data type. The specific data transmission protocol is calculated as follows:
[0092]
[0093] Among them, P port Indicates the client communication port, N indicates the size of the port range, Hash(D attributes ) represents a hash function;
[0094] The business request analysis of the restored energy metering data set includes calculating the range of the client communication port. The calculation of the range of the client communication port includes the following steps:
[0095] Calculate the client communication port coefficient. The specific calculation formula is:
[0096]
[0097] Among them, P max Indicates the maximum value of the port range, P min represents the minimum value of the port range, and α represents the client communication port coefficient;
[0098] Optimize the client communication port coefficient. The specific optimization formula is:
[0099] P port_norm =α×Pport
[0100] Among them, P port_norm represents the optimized client communication port, and α represents the client communication port coefficient.
[0101] Furthermore, the business request includes a known parsing data volume datai and a unit data volume parsing time ti, which quantifies the parsing data volume and the degree of parsing real-time. The parsing time and the degree of parsing real-time are used to determine the processing priority among the clients. It can be considered that the shorter the parsing time of the corresponding business request and the greatest degree of parsing real-time, the higher the corresponding parsing priority order, that is, the business request will be parsed first.
[0102] S3: Quantify the standardized request format, obtain the quantified information for secondary processing, combine the secondary processing result with the business request, and select the data transmission type to diagnose the electric energy metering data.
[0103] Among them, the secondary processing includes verifying the client communication port coefficient, and the verification includes parity check information, cumulative sum information and CRC check information. The formulas of each verification information method are expressed as follows:
[0104] Parity information value calculation:
[0105] P=(D[0]+D[1]+D[2]+...+D[6]+D[7])%2
[0106] Where D[i] represents the i-th bit of D, %2 represents modulo 2, and D represents a byte;
[0107] Cumulative and information value calculation:
[0108] S=(D'[0]+D'[1]+D'[2]+...+D'[n-1])%256
[0109] Where D'[i] represents the i-th received data byte, the bytes are counted from 0, %256 represents modulo 256, D' represents the data byte, and S represents the accumulated sum value;
[0110] CRC checksum information value calculation:
[0111] C=remainder(D*2^k / P)
[0112] Among them, remainder represents a remainder operation, D represents a data byte, k represents the number of bits of the data byte, and P represents a CRC polynomial.
[0113] S3.1: Combining includes combining the results of the secondary processing using parsing threads, the parsing threads include single parsing threads and batch parsing threads, and the specific calculation formula for combining is:
[0114]
[0115] Where T represents the number of parsing threads, D data Indicates the amount of parsed data, P priority Represents the priority parameter, R real_time represents the real-time evaluation result, P load Indicates system load parameters;
[0116] The diagnosis includes selecting a suitable data transmission type and diagnosing the electric energy metering data according to the combined results of the current system load and the number of parsing threads.
[0117] Furthermore, utilizing a single parsing thread and a batch parsing thread to determine client priority includes, based on the external receiver simultaneously receiving business requests issued by multiple clients, obtaining the total amount of data to be parsed, and when it is determined that the total amount of data to be parsed is less than a preset value, calling a single parsing thread to parse the business requests issued by the corresponding clients in turn according to the processing priority level, and when it is determined that the total amount of data to be parsed is greater than or equal to the preset value and the processing priorities of the clients are at the same level or similar levels, calling the batch parsing thread to simultaneously parse the business requests issued by the clients.
[0118] Preferably, a weight assignment method is used to obtain a first weight assigned to the amount of parsed data and a second weight assigned to the real-time performance of the analysis; for each acquired business request, an interval assignment method is used to quantify the size of the determined amount of parsed data and the degree of real-time performance of the analysis to obtain corresponding quantified values; weighted summation is performed on the quantified values obtained based on the first weight and the second weight to obtain a corresponding comprehensive evaluation value; the comprehensive evaluation values corresponding to each client are obtained, and after sorting the comprehensive evaluation values through a preset sorting algorithm, for example, a bubbling method, a binary method, etc., which are not currently limited, the processing priority between the clients is determined based on the obtained sorting results.
[0119] Parsing the service request also includes determining the client's communication port, service request data, and transmission data type based on the parsing result, and determining the data transmission protocol according to the transmission data type.
[0120] Determining the data transmission protocol according to the transmission data type includes the following steps:
[0121] Create a mapping information table and save the known transmission data types and the corresponding supported data transmission protocol mappings in the mapping information table.
[0122] When the target transmission data type is determined by parsing, a query condition is created based on the target transmission data type.
[0123] Query data in the mapping information table based on the query conditions.
[0124] The saved mapping information is shown in Table 1 below:
[0125] Table 1 Mapping information table
[0126] Transmission data type Data transmission protocol document File Transfer Protocol Multimedia data stream Based on UDP transmission protocol mail Based on SMTP transmission protocol
[0127] Furthermore, parity check information refers to parity record information corresponding to the number of 1s in the binary number of transmitted data, cumulative sum information refers to cumulative numerical information obtained by accumulating the binary numbers of transmitted data one by one, CRC check information refers to cyclic redundancy check information, and for the obtained parity check information, after obtaining the service request data, in order to ensure data integrity and avoid data loss, a parity check will be performed based on the service request data, and the obtained check result will be compared with the parity check information to verify data integrity. For the obtained cumulative information, after obtaining the service request data, in order to ensure data integrity and avoid data loss, the binary conversion number of the service request data will be determined, and after the binary conversion numbers are accumulated one by one, the obtained cumulative result will be compared with the cumulative sum information to verify data integrity.
[0128] Preferably, in order to ensure the accuracy of data integrity verification, verification can be performed based on multiple combinations of parity information, cumulative sum information, and CRC check information. For example, based on the two combinations of parity information and cumulative sum information, the data integrity verification is considered to have passed only when it is determined that both the parity check and the cumulative sum check have passed.
[0129] In a preferred embodiment, a reliable data transmission system applicable to an electric power edge computing chip comprises an acquisition module, which calculates an electric power metering data set according to the electric power edge computing chip by acquiring an electric power metering data set of a weak signal;
[0130] The conversion module performs business request analysis on the restored and calculated electric energy metering data set and converts the electric energy metering data set into a standardized request format by creating metadata;
[0131] The diagnosis module quantifies the standardized request format, obtains the quantified information for secondary processing, combines the secondary processing result with the business request, and selects the data transmission type to diagnose the electric energy metering data.
[0132] The above-mentioned unit modules may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to the above-mentioned modules.
[0133] In one embodiment, a computer device is provided, which may be a terminal, and includes a processor, a memory, a communication interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0134] In summary, the present invention improves the accuracy and stability of electric energy metering data by adopting technical means such as standardized request format and quantization processing, reduces data transmission errors, and enhances the reliability and stability of the system. In addition, the optimized parsing thread mechanism effectively improves the efficiency and accuracy of business request analysis, thereby improving the diagnostic accuracy and availability of electric energy metering data, providing strong support for the safe operation and management of the power system.
[0135] Example 2
[0136] Reference Figure 1 and Figure 2 , which is the second embodiment of the present invention, and this embodiment provides an electric energy metering data diagnosis method based on restoring weak signals. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through comparative experiments.
[0137] Parity check is a simple verification method used to detect errors in data transmission. It can only detect and report single-bit errors and is not suitable for detecting and correcting multiple-bit errors. The algorithm is simple and the calculation efficiency is high. Only one extra bit is needed to store the check bit. Cumulative sum check is a simple verification method used to detect errors in data transmission. It can detect and report multiple-bit errors, but cannot correct errors. It can only detect errors. The algorithm is simple and the calculation efficiency is high. Additional storage space is required to store the cumulative sum information. CRC check is a more powerful verification method that can detect and correct more errors and can detect and correct multiple-bit errors. The algorithm is more complex.
[0138] The advantages and disadvantages of parity check, cumulative sum check and CRC check are shown in Table 2 below:
[0139] Table 2 Comparison of parity check, cumulative sum check and CRC check
[0140]
[0141] Data integrity verification is performed through parity information and cumulative sum verification combination as shown in Table 3 below:
[0142] Table 3 Parity check information and cumulative sum check combination verification table
[0143]
[0144] Data integrity verification is performed through parity information and cumulative sum verification combination. The received data is grouped for parity check and cumulative sum verification. Each group contains a fixed number of bits. The bits are arranged in order to form a new bit sequence. Assuming that the result of parity check verification is P and the result of cumulative sum verification is S, the bits of P are arranged in order from high to low to obtain the bit sequence P1; the bits of S are arranged in order from high to low to obtain the bit sequence S1; the bit sequences P1 and S1 are spliced to obtain a new bit sequence P1S1. When the number of bits of P and S is not equal, corresponding padding or truncation operations are required to make the two bit sequences have the same length. Assuming P=10101, S=1100, after padding, P1=00010101, S1=00001100 are obtained. Then P1 and S1 are spliced together to obtain P1S1=0001010100001100.
[0145] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A method for diagnosing electric energy metering data based on restoring weak signals, characterized in that: include, Obtain the weak signal power metering data set, calculate the power metering data set according to the power edge computing chip, and restore the calculated power metering data set through the service request forwarded by the system external receiver; Perform business request analysis on the restored and calculated electric energy metering data set, and convert the electric energy metering data set into a standardized request format by creating metadata; The standardized request format is quantified, the quantified information is obtained for secondary processing, and based on the combination of the secondary processing result and the business request, the data transmission type is selected to diagnose the electric energy metering data.
2. The method for diagnosing electric energy metering data based on restoring weak signals according to claim 1, characterized in that: The method of obtaining the weak signal electric energy metering data set includes obtaining a service request using a standardized request format, and describing the attributes of the service request itself by creating metadata. The calculation formula of the standardized request format is: Where C represents the standardized request format, i represents the index of the attribute, j represents the index of the sub-attribute, and D ij represents the jth sub-attribute in the i-th attribute, N ij represents the associated coefficient; The service request is calculated according to the standardized request format to obtain the service request attribute. The specific calculation formula is: Among them, D i Indicates the attributes of the processed business request, A ij The characteristics of the request attributes, B ij Parameters representing request attributes, ∈(C ij ) represents the gamma function, E i Indicates business request factor.
3. The method for diagnosing electric energy metering data based on restoring weak signals according to claim 2, characterized in that: The business request includes the known parsed data size data i And the unit data volume parsing time t i , the quantitative formula for the amount of parsed data and the degree of parsing real-time performance is expressed as follows: The quantitative calculation formula for the amount of analytical data is: Among them, D1 represents the degree of quantification of the amount of analytical data, f(data i ) and g(ti) represent functions, data i Indicates the size of the i-th data block; Wherein, D2 represents the quantification of the degree of real-time analysis, and N represents the total number of data blocks.
4. The method for diagnosing electric energy metering data based on restoring weak signals according to claim 3, characterized in that: The business request analysis of the restored and calculated electric energy metering data set includes determining customer priority using a single parsing thread and a batch parsing thread; When the total amount of parsed data is in [0,100), a single parsing thread is called to process the client's priority; When the total amount of parsed data is in [100, +∞), the batch parsing thread is called to process the priority of the client. The processing formula for the priority level is: Among them, P represents the weight factor of the amount of parsed data, w2 represents the weight factor of the real-time nature of the analysis, d represents the degree of the amount of parsed data, and t 2 Indicates the real-time degree of analysis; When the total amount of parsed data is less than 100, the system determines the priority of the customer based on the amount of parsed data and the degree of real-time performance, prompts the user to enter relevant parameters, and the user enters the parameters based on their own needs and submits the request through the interactive button on the interface; When the total amount of parsed data is greater than or equal to 100, the system automatically calls the batch parsing thread to process the customer's request, and determines the customer's priority based on the amount of parsed data and the degree of real-time performance. At this time, the system sends an automatic notification to the user to inform the user that the system has achieved automatic adjustment.
5. The method for diagnosing electric energy metering data based on restoring weak signals according to claim 4, characterized in that: The business request analysis of the restored and calculated electric energy metering data set also includes determining the client's communication port, business request data, and transmission data type, and determining the data transmission protocol according to the transmission data type. The specific calculation formula of the data transmission protocol is: Among them, P port Indicates the client communication port, N indicates the size of the port range, Hash(D attributes ) represents a hash function; The performing of business request analysis on the restored calculated electric energy metering data set includes calculating the range of the client communication port, and the calculating the range of the client communication port includes the following steps: Calculate the client communication port coefficient. The specific calculation formula is: Among them, P max Indicates the maximum value of the port range, P min represents the minimum value of the port range, and α represents the client communication port coefficient; Optimize the client communication port coefficient. The specific optimization formula is: P port_norm =α×P port Among them, P port_norm represents the optimized client communication port, and α represents the client communication port coefficient.
6. The method for diagnosing electric energy metering data based on restoring weak signals according to claim 5, characterized in that: The secondary processing includes verifying the client communication port coefficient, and the verification includes parity check information, cumulative sum information and CRC check information. The formulas of each verification information method are expressed as follows: Parity information value calculation: P=(D[0]+D[1]+D[2]+...+D[6]+D[7])%2 Where D[i] represents the i-th bit of D, %2 represents modulo 2, and D represents a byte; Cumulative and information value calculation: S=(D'[0]+D'[1]+D'[2]+...+D'[n-1])%256 Where D'[i] represents the i-th received data byte, the bytes are counted from 0, %256 represents modulo 256, D' represents the data byte, and S represents the accumulated sum value; CRC checksum information value calculation: C=remainder(D*2^k / P) Among them, remainder represents a remainder operation, D represents a data byte, k represents the number of bits of the data byte, and P represents a CRC polynomial.
7. The method for diagnosing electric energy metering data based on restoring weak signals according to claim 6, characterized in that: The combination includes combining the results after the secondary processing by using a parsing thread, wherein the parsing thread includes a single parsing thread and a batch parsing thread. The specific calculation formula of the combination is: Where T represents the number of parsing threads, D data Indicates the amount of parsed data, P priority Represents the priority parameter, R real_time represents the real-time evaluation result, P load Indicates system load parameters; The diagnosis includes selecting a suitable data transmission type according to the combined result of the current system load and the number of parsing threads, and diagnosing the electric energy metering data.
8. A reliable data transmission system suitable for power edge computing chips, based on the power metering data diagnosis method based on restoring weak signals according to any one of claims 1 to 7, characterized in that: include, The acquisition module obtains the electric energy metering data set of the weak signal and calculates the electric energy metering data set according to the electric power edge computing chip; The conversion module performs business request analysis on the restored and calculated electric energy metering data set and converts the electric energy metering data set into a standardized request format by creating metadata; The diagnosis module quantifies the standardized request format, obtains the quantified information for secondary processing, combines the secondary processing result with the business request, and selects the data transmission type to diagnose the electric energy metering data.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the electric energy metering data diagnosis method based on restoring weak signals according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the electric energy metering data diagnosis method based on restoring weak signals according to any one of claims 1 to 7 are implemented.
