CN115658787A - Data processing method and device, electric energy meter and storage medium - Google Patents

Data processing method and device, electric energy meter and storage medium Download PDF

Info

Publication number
CN115658787A
CN115658787A CN202211339764.4A CN202211339764A CN115658787A CN 115658787 A CN115658787 A CN 115658787A CN 202211339764 A CN202211339764 A CN 202211339764A CN 115658787 A CN115658787 A CN 115658787A
Authority
CN
China
Prior art keywords
acquisition
component
preset
electric energy
energy meter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211339764.4A
Other languages
Chinese (zh)
Inventor
周善勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Sanxing Medical and Electric Co Ltd
Original Assignee
Ningbo Sanxing Medical and Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Sanxing Medical and Electric Co Ltd filed Critical Ningbo Sanxing Medical and Electric Co Ltd
Priority to CN202211339764.4A priority Critical patent/CN115658787A/en
Publication of CN115658787A publication Critical patent/CN115658787A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a data processing method and device, an electric energy meter and a storage medium relating to the electric energy meter technology, wherein the data processing method is applied to the electric energy meter and comprises the following steps: acquiring and counting acquisition results of electric quantity acquired by the electric energy meter at each preset interval time in a preset period, wherein the acquisition results comprise successful acquisition and unsuccessful acquisition. And splitting all the acquisition results in the preset period into a plurality of components according to a preset rule. Calculating corresponding parameters of the acquisition results in each component, wherein the corresponding parameters are calculated based on numerical values respectively corresponding to the successful acquisition and the unsuccessful acquisition. And calculating to obtain storage parameters according to the corresponding parameters, and storing the storage parameters according to a preset format. Therefore, the data storage space of the electric energy meter can be effectively saved.

Description

Data processing method and device, electric energy meter and storage medium
Technical Field
The invention relates to the technical field of electric energy meters, in particular to a data processing method and device, an electric energy meter and a storage medium.
Background
When the electric energy meter collects the electric quantity, the collection condition is often required to be recorded, so that the working condition of the electric energy meter can be conveniently checked by a worker.
The recording mode of the electric energy collection condition of the electric energy meter generally adopts bits in binary system to represent the collection condition of each time point, and then stores the binary digit. And converting the acquired result number into a character string and storing the character string into a database under the condition that the acquired result number is too large.
However, storage in the form of a string takes much more space than the digital type.
Disclosure of Invention
The present invention provides a data processing method, a data processing device, an electric energy meter and a storage medium, which can at least partially solve the technical problems.
Embodiments of the invention may be implemented as follows:
in a first aspect, an embodiment of the present invention provides a data processing method, which is applied to an electric energy meter, where the method includes:
acquiring and counting acquisition results of electric quantity acquired by the electric energy meter at each preset interval time in a preset period, wherein the acquisition results comprise successful acquisition and unsuccessful acquisition;
splitting all the acquisition results in the preset period into a plurality of components according to a preset rule;
calculating corresponding parameters of the acquisition results in each component, wherein the corresponding parameters are calculated based on numerical values respectively corresponding to the successful acquisition and the unsuccessful acquisition;
and calculating to obtain storage parameters according to the corresponding parameters, and storing the storage parameters according to a preset format.
Optionally, the splitting, according to a preset rule, all the acquisition results in the preset period into a plurality of components includes:
sequencing all the acquisition results in the preset period according to the time sequence of acquiring the acquisition results;
and splitting the sorted acquisition result into a plurality of components based on the preset component quantity.
Optionally, the value corresponding to successful acquisition is 1, the value corresponding to unsuccessful acquisition is 0, and the calculating corresponding parameters of the acquisition result in each component includes:
combining values corresponding to the successful acquisition and the unsuccessful acquisition in each component into a binary number according to a mode that an acquisition result obtained later is in a high position and an acquisition result obtained first is in a low position;
and calculating the decimal number corresponding to the binary number in each component to obtain the corresponding parameter of the acquisition result in each component.
Optionally, the obtaining of the storage parameter by calculating according to the corresponding parameter includes:
judging whether all the acquisition results in each component are successfully acquired;
if not, setting the corresponding parameters of the component to zero; if yes, setting the corresponding parameter of the component to be one;
combining each corresponding parameter into a binary number according to the mode that the component of the acquired acquisition result is in a high position and the component of the acquired acquisition result is in a low position;
and calculating decimal numbers corresponding to the binary numbers combined by the corresponding parameters to obtain the storage parameters.
Optionally, the storing the storage parameter according to a preset format includes:
acquiring a component number with one corresponding parameter;
according to the preset format, the component numbers, the corresponding parameters corresponding to the component numbers and the storage parameters are merged and stored;
the preset format is as follows:
{“A”:a,“B”:b,…,flag:x}
wherein, A and B are the component numbers, a is the corresponding parameter of the component with the component number A, B is the corresponding parameter of the component with the component number B, and x is the storage parameter.
Optionally, the method further comprises:
acquiring and counting the acquisition result of the electric energy meter for acquiring the electric quantity at each preset interval time in the next preset period;
and updating the storage parameters according to the acquisition result of the electric energy acquired by the electric energy meter at each preset interval time in the next preset period.
Optionally, the method further comprises:
acquiring the acquisition result as the times of unsuccessful acquisition according to the corresponding parameter corresponding to the component number with one in the corresponding parameters in the storage parameters;
acquiring the times of collecting electric quantity of the electric energy meter in one preset period according to the preset period and the preset interval time;
and calculating the acquisition success rate of the electric energy meter in a preset period according to the times of unsuccessful acquisition and the times of electric quantity acquisition of the electric energy meter in the preset period.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, which is applied to an electric energy meter, where the data processing apparatus includes:
the acquisition result counting unit is used for acquiring and counting acquisition results of electric quantity acquired by the electric energy meter at each preset interval time in a preset period, wherein the acquisition results comprise successful acquisition and unsuccessful acquisition;
the acquisition result splitting unit is used for splitting all the acquisition results in the preset period into a plurality of components according to a preset rule;
a corresponding parameter calculation unit for calculating a corresponding parameter of the acquisition result in each component, the corresponding parameter being a parameter calculated from values corresponding to the successful acquisition and the unsuccessful acquisition, respectively;
and the storage parameter calculation unit is used for calculating to obtain a storage parameter according to the corresponding parameter and storing the storage parameter according to a preset format.
In a third aspect, an embodiment of the present invention provides an electric energy meter, where the electric energy meter is capable of implementing any one of the steps of the method.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and the computer program controls, when executed, a server where the computer-readable storage medium is located to implement any one of the steps of the method described above.
The beneficial effects of the embodiment of the invention include, for example:
the electric quantity acquisition results of each acquisition time point of the electric energy meter in a preset period are counted, and the acquisition results are split into a plurality of components. And finally calculating the corresponding parameters of each component, and combining the parameters into storage parameters for storage. The data are prevented from being stored in a character string mode, and the storage space of the electric energy meter is saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram of a conventional power data acquisition situation according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a data processing method according to an embodiment of the present invention;
FIG. 3 is a statistical chart of the acquisition results according to the embodiment of the present invention;
fig. 4 is a schematic diagram of an acquisition result obtained after splitting into components according to an embodiment of the present invention;
fig. 5 is a schematic diagram of corresponding parameters of each component in an acquisition result according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a storage parameter according to an embodiment of the present invention;
fig. 7 is an architecture diagram of a data processing apparatus according to an embodiment of the present invention.
An icon: 300-a data processing apparatus; 301-a statistical unit of acquisition results; 302-acquisition result splitting unit; 303-corresponding parameter calculation unit; 304-storage parameter calculation unit.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are only used to distinguish one description from another and are not to be construed as indicating or implying relative importance.
It should be noted that features in the embodiments of the invention may be combined with each other without conflicting results.
The current way for recording the success rate of electric energy collection of an electric energy meter is to use bits in a binary system to represent the collection condition of each time point. For example, if the minimum interval of the collected data is 15 minutes, 96 data collection points exist in one day, and a binary system of 96-bit data needs to be used for storage. However, because a 96-bit number is too large, the database in the existing electric energy meter does not have a corresponding data type to store, and therefore, the data is generally converted into a character string to be stored in the database. As shown in fig. 1, a table derived for the case of collecting power data of the existing electric energy meter.
It can be seen that the current storage in the form of character strings has the following problems: the occupied space is larger than the space of the digital type, and the average occupied space is about 2.5 times of the digital type. In addition, when updating is needed, because the character string does not support bit operation, direct updating cannot be performed, data needs to be taken out, converted into numbers, converted into the character string and stored in a database, and the steps are complicated.
Based on the above situation, embodiments of the present specification provide a data processing method, which can effectively alleviate the above technical problems.
As shown in fig. 2, an embodiment of the present invention provides a data processing method applied to an electric energy meter, where the method includes the following steps:
step S110: acquiring and counting acquisition results of electric quantity acquired by the electric energy meter at each preset interval time in a preset period, wherein the acquisition results comprise successful acquisition and unsuccessful acquisition.
Step S120: and splitting all the acquisition results in the preset period into a plurality of components according to a preset rule.
Step S130: calculating corresponding parameters of the acquisition results in each component, wherein the corresponding parameters are calculated based on numerical values respectively corresponding to the successful acquisition and the unsuccessful acquisition.
Step S140: and calculating to obtain storage parameters according to the corresponding parameters, and storing the storage parameters according to a preset format.
In step S110, acquiring and counting acquisition results of electric quantity acquired by the electric energy meter at each preset interval time in a preset period, where the acquisition results include successful acquisition and unsuccessful acquisition.
When the electric energy meter collects the electric quantity data, a preset period can be set for the electric energy meter, and the collection condition of collecting the electric quantity data in the previous preset period is updated once after each preset period, so that the collection condition meets certain timeliness requirements. The preset period may be a time period set by a worker according to an actual demand.
The preset interval time may be an interval time for the electric energy meter to acquire the electric quantity data, for example, the electric quantity data is acquired every half hour, whether the acquisition is successful or not is recorded, if the acquisition is successful, the acquisition result is successful, and if the acquisition is failed, the acquisition result is unsuccessful.
After the electric energy meter acquires the electric quantity data in a preset period, acquiring the acquisition result of the electric energy meter acquiring the electric quantity data every preset interval time in the preset period, and counting the acquisition result.
For example, if the preset period is 1 day and the preset interval time is 15 minutes, the electric energy meter collects the electric quantity data every 15 minutes, and records the collection result. And starting the next round of electric quantity data acquisition every 1 day. And acquiring and counting the acquisition result of the day before or during the acquisition of the next round of electric quantity data to obtain 96 acquisition results acquired by the electric energy meter.
For convenience of explanation, the following examples of the present specification illustrate the present solution with a preset period of 1 day and a preset time interval of 15 minutes. It should be understood that, in an actual situation, a developer may set the preset period and the preset interval time according to a specific requirement, which is not specifically limited in this specification.
And executing step S120, splitting all the acquisition results in the preset period into a plurality of components according to a preset rule.
The preset rule may be various, for example, the collection result in the preset period is split into two or more components from earliest to latest according to the sequence of the collection time. And for example, according to the sequence of the acquisition time, dividing the acquisition result in the preset period into two or more components from the latest to the earliest. And then for example, the acquisition result is directly divided into two or more components. The splitting mode can be that all the collected results are equally divided into two or more components, or all the collected results are unequally divided into two or more components, and the like.
Optionally, the splitting, according to a preset rule, all the acquisition results in the preset period into a plurality of components includes:
and sequencing all the acquisition results in the preset period according to the time sequence of acquiring the acquisition results.
And splitting the sorted acquisition result into a plurality of components based on the preset component quantity.
The preset number of packets may be a required number of packets that is preset by a developer. If the preset period is 1 day and the preset interval time is 15 minutes, the number of the acquisition results obtained by the electric energy meter in one preset period is 96. The 96 acquisitions are sorted according to the chronological order of the acquisition time, and the result of the first acquisition (i.e. 00) is located at the 0 th position, and the arrangement form thereof should be as shown in fig. 3. And then, splitting the sorted acquisition result into a plurality of components according to the preset component quantity. For example, if the preset number of components is 8, the sorted acquisition results are split into 8 components.
As shown in fig. 4, the case of the component split is a case where the predetermined component amount is 12.
Step S130 is executed to calculate corresponding parameters of the acquisition results in each component, where the corresponding parameters are calculated based on respective values corresponding to the successful acquisition and the unsuccessful acquisition.
After all the acquisition results in the preset period are split, each component comprises at least one acquisition result, and the acquisition result is either successful acquisition or unsuccessful acquisition. Therefore, successful acquisition and unsuccessful acquisition in the acquisition result can be respectively assigned with values, namely, the acquisition result can be digitalized. In addition, the acquisition results in each component can be sorted according to the sequence of acquisition time and the like, and finally, the sorted acquisition results in each component are calculated to obtain the corresponding parameters of each component.
Optionally, the value corresponding to successful acquisition is 1, the value corresponding to unsuccessful acquisition is 0, and the calculating the corresponding parameter of the acquisition result in each component includes:
and combining the numerical values corresponding to the successful acquisition and the unsuccessful acquisition in each component into a binary number according to the mode that the acquired acquisition result is in a high position and the acquired acquisition result is in a low position.
And calculating the decimal number corresponding to the binary number in each component to obtain the corresponding parameter of the acquisition result in each component.
Still taking fig. 3 as an example, the value corresponding to successful acquisition is 1, and the value corresponding to unsuccessful acquisition is 0. For example, electric energy meters are available in the following ranges of 01:00, the electric quantity data cannot be collected successfully, and the collection result at the 4 th bit is 0, which indicates that the electric quantity data cannot be collected successfully.
The sorting mode of the acquisition results can be that the acquisition results acquired later are in a high order, and the acquisition results acquired first are in a low order. Thus, the acquisition result can be listed as a binary number with only 1 and 0, wherein the highest bit is the acquisition condition of the electric energy meter at 23 for acquiring the electric quantity data, and the lowest bit is the electric energy meter at 00:00 collecting the electric quantity data.
As shown in fig. 5, the preset number of components is 12, so that values corresponding to successful acquisition and unsuccessful acquisition in each component can be combined into an 8-bit binary number, and then each binary number is subjected to binary conversion, so that a decimal number (i.e., a corresponding parameter) corresponding to an acquisition result in each component can be obtained. For example, in the fifth component in fig. 5, the binary number corresponding to the acquisition results of successful acquisition and unsuccessful acquisition is 11110111, and the binary number is 247 when converted into decimal number, that is, the corresponding parameter of the fifth component is 247.
And step S140 is executed, the storage parameters are obtained through calculation according to the corresponding parameters, and the storage parameters are stored according to a preset format.
After the corresponding parameters of each component are calculated, the corresponding parameters of all the components can be merged and integrated into one storage parameter, and then the storage parameter is stored in a database according to a certain format (namely a preset format).
For example, if 96 acquisition results are acquired in a preset period (1 day), and are divided into 6 components a, B, C, D, E, and F, the corresponding parameters are arranged from low to high according to the morning and evening of the acquisition time, and are combined and integrated into a number abcdef, which is the storage parameter. And storing the storage parameters in a database according to a preset format set by a developer.
Optionally, the calculating the storage parameter according to the corresponding parameter includes:
and judging whether the acquisition results of each component are all the successful acquisition.
If not, setting the corresponding parameter of the component to zero; if yes, the corresponding parameter of the component is set to be one.
And combining each corresponding parameter into a binary number according to the mode that the component of the acquired acquisition result is in a high position and the component of the acquired acquisition result is in a low position.
And calculating decimal numbers corresponding to the binary numbers combined by the corresponding parameters to obtain the storage parameters.
As an optional implementation manner, as shown in fig. 6, after the acquisition results of the components are obtained, it may be determined whether all the acquisition results in each component are successfully acquired, the corresponding parameters of the components whose acquisition results are successfully acquired are set to zero, and the corresponding parameters of the components whose acquisition results are not successfully acquired are set to one. Then according to the acquisition time sequence, combining the corresponding parameters in each component into a binary number in a mode that the component of the acquired acquisition result is in a high position and the component of the acquired acquisition result is in a low position. And then, converting the binary number into a decimal system through binary conversion to obtain the storage parameter.
Taking the content of fig. 6 as an example, in fig. 6, the left side is the acquisition result of each component, and the right side is a result schematic of converting the corresponding parameter of each component into the storage parameter. It can be seen that in the 12 fractions, the acquisition results of the remaining fractions were all successfully acquired, except for the case where the acquisition results in the first and fifth fractions were unsuccessfully acquired. The corresponding parameters of the first and fifth components are set to zero and the corresponding parameters of the remaining components are set to one. The binary number 111111101110 is obtained after combination, and is converted into a decimal number 4078, and the storage parameter is 4078.
As an optional implementation manner, the storing the storage parameter according to a preset format includes:
and acquiring the component number with one set in the corresponding parameter.
And merging and storing the component numbers, the corresponding parameters corresponding to the component numbers and the storage parameters according to the preset format.
The preset format is as follows:
{“A”:a,“B”:b,…,flag:x}
wherein, A and B are the component numbers, a is the corresponding parameter of the component with the component number A, B is the corresponding parameter of the component with the component number B, and x is the storage parameter.
Still taking fig. 6 as an example, it can be seen that the corresponding parameters of the first component and the fifth component are set to be one, the component number corresponding to the first component is 0, and the corresponding parameter is 4; the fifth component corresponds to the component number 4, the corresponding parameter is 247, and the storage parameter is 4078. Therefore, the storage form of the storage parameter in fig. 6 should be { "0":4,"4": 247, flag:4078}.
Optionally, the method further comprises:
and acquiring and counting the acquisition result of the electric energy meter for acquiring the electric quantity at each preset interval time in the next preset period.
And updating the storage parameters according to the acquisition result of the electric energy acquired by the electric energy meter at each preset interval time in the next preset period.
After the electric energy meter carries out statistics of a preset period, the storage parameters of the period are stored in a database according to a preset format, and electric quantity data acquisition of the next preset period is started. During the acquisition process of the next preset period or after the acquisition is finished, the acquisition condition of the previous preset period can be updated according to the new acquisition result, and the storage parameters are modified.
For example, the storage parameter of the previous preset period is 4078, and the storage form stored in the database according to the preset format is { "0":4,"4": 247, flag:4078, in the next preset period, if the electric quantity data of 00 is successfully acquired, the acquisition result corresponding to 00. Then the form of storage in the database is modified to be { "0":6,"4": 247, flag:4078}.
Optionally, the method further comprises:
and acquiring the acquisition result as the times of unsuccessful acquisition according to the corresponding parameter corresponding to the component number with one set in the corresponding parameter in the storage parameters.
And acquiring the times of collecting the electric quantity of the electric energy meter in one preset period according to the preset period and the preset interval time.
And calculating the acquisition success rate of the electric energy meter in the preset period according to the times of unsuccessful acquisition and the times of electric quantity acquisition of the electric energy meter in the preset period.
For example, if the component numbers of the stored parameters with one set in the corresponding parameter are 0, 2, and 3, and the corresponding parameters are 1, 4, and 5, respectively, then after 1, 4, and 5 are converted, the obtained binary numbers are respectively component 0:00000001, component 2:00000110, component 3:00000111, the number of unsuccessful acquisitions is 7+6+5=18 according to the binary number. The preset period is 1 day, the preset interval time is 15 minutes, and the number of times of collecting electric quantity by the electric energy meter in one preset period is 96 times. Then, the acquisition success rate of the electric energy meter in a preset period should be:
(96-18)/96*100%=81.25%
based on the same inventive concept, as shown in fig. 7, the present specification provides a data processing apparatus 300, which is applied to an electric energy meter, and the data processing apparatus 300 includes:
the acquisition result counting unit 301 is configured to acquire and count acquisition results of electric quantity acquired by the electric energy meter at each preset interval time in a preset period, where the acquisition results include successful acquisition and unsuccessful acquisition;
an acquisition result splitting unit 302, configured to split all acquisition results in the preset period into multiple components according to a preset rule;
a corresponding parameter calculating unit 303, configured to calculate a corresponding parameter of the acquisition result in each component, where the corresponding parameter is a parameter calculated from a numerical value corresponding to each of the successful acquisition and the unsuccessful acquisition;
and a storage parameter calculating unit 304, configured to calculate a storage parameter according to the corresponding parameter, and store the storage parameter according to a preset format.
With respect to the data processing apparatus 300, the specific functions of the units have been described in detail in the embodiments of the data processing method provided in the present specification, and will not be described in detail here.
Based on the same inventive concept, the embodiment of the present specification provides an electric energy meter, and the electric energy meter can implement the steps of any one of the data processing methods.
Based on the same inventive concept, the present specification provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the steps of any one of the foregoing data processing methods.
The invention at least comprises the following beneficial effects:
1. the electric quantity acquisition results of each acquisition time point of the electric energy meter in a preset period are counted, and the acquisition results are split into a plurality of components. And finally calculating the corresponding parameters of each component, and combining the parameters into storage parameters for storage. The data are prevented from being stored in a character string mode, and the storage space of the electric energy meter is saved.
2. According to the storage parameters stored in the database according to the preset format, the updating of the electric quantity data acquisition result can be facilitated
3. The calculation of the success rate of the electric quantity acquisition is more convenient according to the storage parameters stored in the database according to the preset format.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A data processing method is applied to an electric energy meter, and the method comprises the following steps:
acquiring and counting acquisition results of electric quantity acquired by the electric energy meter at each preset interval time in a preset period, wherein the acquisition results comprise successful acquisition and unsuccessful acquisition;
splitting all the acquisition results in the preset period into a plurality of components according to a preset rule;
calculating corresponding parameters of the acquisition results in each component, wherein the corresponding parameters are calculated based on numerical values respectively corresponding to the successful acquisition and the unsuccessful acquisition;
and calculating to obtain storage parameters according to the corresponding parameters, and storing the storage parameters according to a preset format.
2. The data processing method according to claim 1, wherein the splitting all the acquisition results in the preset period into a plurality of components according to a preset rule comprises:
sequencing all the acquisition results in the preset period according to the time sequence of acquiring the acquisition results;
and splitting the sorted acquisition result into a plurality of components based on the preset component quantity.
3. The data processing method of claim 2, wherein the value corresponding to successful acquisition is 1 and the value corresponding to unsuccessful acquisition is 0, and the calculating the corresponding parameter of the acquisition result in each component comprises:
combining values corresponding to the successful acquisition and the unsuccessful acquisition in each component into a binary number according to a mode that an acquisition result obtained later is in a high position and an acquisition result obtained first is in a low position;
and calculating the decimal number corresponding to the binary number in each component to obtain the corresponding parameter of the acquisition result in each component.
4. The data processing method of claim 3, wherein said calculating a storage parameter from said corresponding parameter comprises:
judging whether all the acquisition results in each component are successfully acquired;
if not, setting the corresponding parameters of the component to zero; if yes, setting the corresponding parameter of the component to be one;
combining each corresponding parameter into a binary number according to the mode that the component of the acquired acquisition result is in a high position and the component of the acquired acquisition result is in a low position;
and calculating decimal numbers corresponding to the binary numbers combined by the corresponding parameters to obtain the storage parameters.
5. The data processing method of claim 4, wherein said storing said storage parameters in a predetermined format comprises:
acquiring a component number with one corresponding parameter;
according to the preset format, the component numbers, the corresponding parameters corresponding to the component numbers and the storage parameters are merged and stored;
the preset format is as follows:
{“A”:a,“B”:b,…,flag:x}
wherein, A and B are the component numbers, a is the corresponding parameter of the component with the component number A, B is the corresponding parameter of the component with the component number B, and x is the storage parameter.
6. The data processing method of claim 5, wherein the method further comprises:
acquiring and counting the acquisition result of the electric energy meter for acquiring the electric quantity at each preset interval time in the next preset period;
and updating the storage parameters according to the acquisition result of the electric energy meter acquiring the electric quantity at each preset interval in the next preset period.
7. The data processing method of claim 5, wherein the method further comprises:
acquiring the acquisition result as the number of times of unsuccessful acquisition according to the corresponding parameter corresponding to the component number with one set in the corresponding parameter in the storage parameters;
acquiring the times of collecting electric quantity of the electric energy meter in one preset period according to the preset period and the preset interval time;
and calculating the acquisition success rate of the electric energy meter in a preset period according to the times of unsuccessful acquisition and the times of electric quantity acquisition of the electric energy meter in the preset period.
8. A data processing device is applied to an electric energy meter, and the data processing device comprises:
the acquisition result counting unit is used for acquiring and counting acquisition results of electric quantity acquired by the electric energy meter at each preset interval time in a preset period, wherein the acquisition results comprise successful acquisition and unsuccessful acquisition;
the acquisition result splitting unit is used for splitting all the acquisition results in the preset period into a plurality of components according to a preset rule;
a corresponding parameter calculation unit for calculating a corresponding parameter of the acquisition result in each component, the corresponding parameter being a parameter calculated from values corresponding to the successful acquisition and the unsuccessful acquisition, respectively;
and the storage parameter calculation unit is used for calculating to obtain a storage parameter according to the corresponding parameter and storing the storage parameter according to a preset format.
9. An electric energy meter, characterized in that it is able to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, comprising a computer program which, when executed, controls a server on which the computer-readable storage medium is located to implement the steps of the method of any one of claims 1 to 7.
CN202211339764.4A 2022-10-27 2022-10-27 Data processing method and device, electric energy meter and storage medium Pending CN115658787A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211339764.4A CN115658787A (en) 2022-10-27 2022-10-27 Data processing method and device, electric energy meter and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211339764.4A CN115658787A (en) 2022-10-27 2022-10-27 Data processing method and device, electric energy meter and storage medium

Publications (1)

Publication Number Publication Date
CN115658787A true CN115658787A (en) 2023-01-31

Family

ID=84994181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211339764.4A Pending CN115658787A (en) 2022-10-27 2022-10-27 Data processing method and device, electric energy meter and storage medium

Country Status (1)

Country Link
CN (1) CN115658787A (en)

Similar Documents

Publication Publication Date Title
CN113176978B (en) Monitoring method, system, equipment and readable storage medium based on log file
CN112256715B (en) Index updating method and device, electronic equipment and storage medium
EP3591894B1 (en) Tariff data determination method and device
CN111222306A (en) Data processing method and device, electronic equipment and storage medium
CN113361954A (en) Attribution analysis method, attribution analysis device, attribution analysis equipment and storage medium
CN115422464A (en) Method and device for determining number of persons participating in sequence event and storage medium
CN108415990B (en) Data quality monitoring method and device, computer equipment and storage medium
CN115658787A (en) Data processing method and device, electric energy meter and storage medium
CN111025068B (en) Ammeter load curve data reading method and device and electronic equipment
CN108717438B (en) Chained data state acquisition system and method
CN116723206A (en) Vehicle fault information processing method and device, electronic equipment and storage medium
CN111061790A (en) Information acquisition system and method for customer data management
CN112632132B (en) Processing method, device and equipment for abnormal imported data
CN114722045A (en) Time series data storage method and device
CN110990640B (en) Data determination method, device, equipment and computer readable storage medium
EP3800603A1 (en) Payment collection control method and device, server, and readable storage medium
CN108984101B (en) Method and device for determining relationship between events in distributed storage system
CN112115158A (en) SQL statement execution time recording method, device, equipment and readable storage medium
CN110895745A (en) Method and device for polling and getting task, computer equipment and storage medium
CN116307811B (en) Method and device for automatically grading enterprise index data in staged mode
CN112613892B (en) Data processing method and device based on service system and electronic equipment
CN117194020B (en) Cloud computing original big data processing method, system and storage medium
CN116719971B (en) Pull chain table data loading method and device and electronic equipment
CN114647555B (en) Data early warning method, device, equipment and medium based on multi-service system
CN109872181B (en) Commercial information processing method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination