Electric energy meter data display method and device and storage medium
By obtaining and converting the number of display items in the power meter to read the display object, the problem that the prior art cannot display the display object that does not exist in the display table is solved, and the effect of flexibly displaying all data contents and avoiding the lag of the use of the power meter is achieved.
Patent Information
- Application Number
- CN202510148912.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-11
- Publication Date
- 2025-03-14
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing power meter design requires a complete display table to display data. It is impossible to display display objects that do not exist in the display table, which has technical limitations.
By obtaining the number of display items to be displayed on the power meter, converting them into an offset address, reading the display object to be displayed, and reading the display data and status information based on the display identifier, the data content of all display objects can be displayed.
The data content of all displayed objects is displayed without pre-tabulating, avoiding the problem of lag in the use of the power meter caused by excessive memory usage.
Smart Images

Figure CN119619576A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart electric meter, and in particular to an electric energy meter data display method, device and storage medium. Background Art
[0002] The electric energy meter is an instrument used to measure the consumption of electric energy. The electric energy meter can display the data content of display objects such as electricity, voltage, current and power through the LCD screen. Due to the huge market volume of smart electric energy meters and the rapid development of technical standards, the display content of smart electric energy meters is required to be changeable and the objects can be flexibly configured. In the existing electric energy meter design technology, the display object and the display information of the display object are tabulated. This table can be called a position display table. When displaying, the display data information is obtained by looking up the table through the display object for display of the electric energy meter.
[0003] However, the above method requires a complete display table, has obvious technical limitations, and cannot display display objects that do not exist in the display table. Summary of the invention
[0004] In order to solve the above problems, the purpose of the present invention is to provide an electric energy meter data display method, device and storage medium, which do not require the display object and the display information of the display object to be tabulated, and can support the display of the data content of all display objects.
[0005] The present invention provides an electric energy meter data display method, the method comprising: Acquire the number of display items to be displayed of the electric energy meter according to different display modes of the electric energy meter data, convert the number of display items into an offset address, and read the display object to be displayed according to the offset address; Converting the display object to obtain a corresponding display identifier; Reading corresponding display data based on the display identifier and matching the state information corresponding to the display object; The status information and display data are displayed on the electric energy meter.
[0006] Optionally, the display mode of the display object includes key cycle display and automatic cycle display; The two modes of key cycle display and automatic cycle display correspond to two different display counters respectively, and the value in the display counter corresponds to the element number in the display list.
[0007] Optionally, before obtaining the number of display items to be displayed of the electric energy meter according to different display modes of the electric energy meter data, the method further includes: Receiving in advance an external operation instruction that meets the communication rules, parsing the external operation instruction to obtain a display list, and storing the display list in a flash memory; the external operation instruction includes an operation instruction for configuring display items and a display order; The display list includes a key cycle display list corresponding to key cycle display and an automatic cycle display list corresponding to automatic cycle display; the key cycle display list and the automatic cycle display list are independent of each other and each has an independent storage space; the display list has display objects that can be arbitrarily configured.
[0008] Optionally, converting the display item number into an offset address includes: The corresponding display counter is determined and accumulated according to different display modes of the electric energy meter data. The value of the display counter corresponds to the element index number in the display object list, so as to calculate the offset address of the display object in the display object storage list using the element index number.
[0009] Optionally, reading corresponding display data based on the display identifier includes: Based on the display identifier, multiple categories of display data are read from the flash memory; the categories include one or more of the electricity category, demand category, instantaneous category, and recorded data category.
[0010] The present invention also provides an electric energy meter data display device, which executes any of the above-mentioned electric energy meter data display methods; The device comprises an acquisition module, which is used to acquire the number of display items to be displayed of the electric energy meter according to different display modes of the electric energy meter data, convert the number of display items into an offset address, and read the display object to be displayed according to the offset address; A conversion module, used for converting the display object to obtain a corresponding display identifier; A reading module, used to read corresponding display data based on the display identifier and match the status information corresponding to the display object; The display module displays the status information and display data on the electric energy meter.
[0011] Optionally, the device further comprises: a setting module, configured to pre-receive an external operation instruction satisfying a communication rule, parse the external operation instruction to obtain a display list, and store the display list in a flash memory.
[0012] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program codes, and the program codes are used to execute any of the above-mentioned methods for displaying electric energy meter data.
[0013] The present invention provides an electric energy meter data display method, device and storage medium, which can display the data content of all display objects according to user requirements and effectively avoid the problem of electric energy meter usage jamming caused by excessive memory usage during user use.
[0014] Based on the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will become more aware of the above and other objects, advantages and features of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings: Figure 1 is a schematic flow chart of a method for displaying electric energy meter data according to an embodiment of the present invention; Figure 2 It is a schematic diagram of a method for storing display data of an electric energy meter according to an embodiment of the present invention. DETAILED DESCRIPTION
[0016] The embodiments of the present invention are described below in conjunction with the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the present invention and are not limiting.
[0017] The embodiment of the present invention provides a method for displaying electric energy meter data, such as Figure 1 As shown, the electric energy meter data display method according to the embodiment of the present invention may include the following steps S1 to S4.
[0018] S1, obtaining the number of display items to be displayed of the electric energy meter according to different display modes of the electric energy meter data, converting the number of display items into an offset address, so as to read the display object to be displayed according to the offset address; the display modes of the display object include key cycle display and automatic cycle display.
[0019] S2, converting the display object to obtain a corresponding display identifier.
[0020] S3, reading corresponding display data based on the display identifier, and matching the status information corresponding to the display object.
[0021] S4, displaying the status information and display data on the electric energy meter.
[0022] The present invention provides an electric energy meter data display method, which can display the data content of all display objects according to user needs, and can effectively avoid the problem of excessive memory usage causing the electric energy meter to freeze during user use. The following is a detailed description of each step.
[0023] In the embodiment, the display of the electric energy meter is divided into two forms, one is key cycle display, and the other is automatic cycle display.
[0024] Automatic cycle display means that the energy meter can be set to automatic cycle display mode under normal operation, in which the display content and time interval can be set by the user. The automatic cycle display time interval can be set within 5 to 20 seconds, and the energy meter will automatically start to display different information in sequence at a fixed time. Key-button cyclic display means that the user can trigger the switching of display mode by pressing a specific key on the energy meter, thereby cyclically switching between different display items. In the key-button display state, the energy meter will start the LCD backlight, and automatically turn off the backlight after 60 seconds of the key action disappearing. For example, the user can turn the screen by pressing the key, press the "1#" key to display the next item, and press the "2#" key to display the previous item. The key-button cyclic display solution can turn the screen by pressing the key, and the display code of each screen is displayed by the number on the second to last line of the LCD.
[0025] The display objects of the above two display modes of the electric energy meter can be flexibly configured. In practical applications, the display objects corresponding to the above two display modes can be stored in the flash memory in the form of a linked list according to the external operation setting instruction received by the electric energy meter, such as Figure 2 shown.
[0026] The two modes of key cycle display and automatic cycle display correspond to two different display counters respectively, and the value in the display counter corresponds to the element number in the display list.
[0027] The value of the display counter corresponds to the number of elements in the display list. Assuming that 48 display object elements in the display list are displayed in a loop, the display counter value is 1 when the first screen is displayed, which corresponds to the first display object element in the display list. When the 48th screen is displayed, the next screen should display the first screen in a loop. The display object consists of two parts of information. The first part of the information can correspond to specific display items (i.e. data items) such as power, power, and recorded data. The second part of the information is the screen number, indicating whether split-screen display is required and how many screens are required. 00 means no split-screen display is required, 01 means the display needs to be divided into two screens, and so on.
[0028] When the electric energy meter is initialized, it is necessary to set the button cycle display list and the automatic cycle display list, which can be set specifically according to user instructions.
[0029] In an optional embodiment of the present invention, before the above step S1 acquires the number of display items to be displayed by the electric energy meter according to different display modes of the electric energy meter data, the method further includes: Receiving in advance an external operation instruction that meets the communication rules, parsing the external operation instruction to obtain a display list, and storing the display list in a flash memory; the external operation instruction includes an operation instruction for configuring display items and a display order; The display list includes a key cycle display list corresponding to the key cycle display and an automatic cycle display list corresponding to the automatic cycle display; the key cycle display list and the automatic cycle display list are independent of each other and each has an independent storage space; the display list has display objects that can be arbitrarily configured. The display order and quantity are also arbitrarily configured. For example: the second screen is set separately, but in some usage scenarios, the second screen originally has display objects.
[0030] The electric energy meter data display method of the embodiment of the present invention includes step S1, obtaining the number of display items to be displayed of the electric energy meter according to different display modes of the electric energy meter data, converting the number of display items into an offset address, and reading the display object to be displayed according to the offset address. In this embodiment, each display object is a display item, and the number of display items is the number corresponding to the display item. For example, when the number of display items is 1, the content of the first display object is displayed, and when the number of display items is 2, the content of the second display object is displayed.
[0031] Optionally, converting the number of display items into an offset address includes: determining a corresponding display counter according to different display modes of the electric energy meter data and accumulating the counter, the value of the display counter corresponds to the element index number in the display object list, and using the element index number to calculate the offset address of the display object in the display object storage list. For example, when the number of display items is 1, the first display object content, that is, index 0 in the display object list, is displayed; when the number of display items is 2, the second display object content, that is, index 1 in the display object list, is displayed. Each element index number in the display object list is a fixed number of bytes, and the offset address can be calculated based on the index. In practical applications, the index is usually the location identifier of the data in the storage area, and the offset is the actual byte distance from the base address to the target data. If the size of each data item is fixed, the offset can be calculated by multiplying the index by the size of each data item. The offset address is equal to the base address plus the offset. For example, if the base address is 0x1000, the size of each data item is 4 bytes, and the fifth data item is to be accessed, the offset is 5. 4=20 bytes, the offset address is 0x1000+0x14=0x1014.
[0032] S2, convert the display object to obtain a corresponding display identifier. The display identifier is the OAD (Object Attribute Descriptor) corresponding to the display object that meets the 698 protocol reading rules of the electric energy meter; the display object includes the display item to be displayed and the screen sequence number, and the display identifier meets the display command rules defined in the communication protocol used by the electric energy meter. Each display object can correspond to a unique display identifier.
[0033] S3, reading the corresponding display data based on the display identifier, and matching the status information corresponding to the display object. The display data may be, for example, the display data when displaying forward active power, i.e., the power, and the status information may be the corresponding Chinese characters, units, and other information.
[0034] The display identifier can be used to perform a read operation to obtain the data content to be displayed by the electric energy meter (such as the power consumption, demand and other data shown in the branch diagram below). The display is not limited to the display objects in the display table, which can effectively avoid the problem of excessive memory usage causing the electric energy meter to be stuck. When reading the display data, the data of the electric energy meter can be classified and read, such as power consumption, demand, instantaneous quantity, recorded data, etc. By using the display identifier to perform a read operation, the data content of all display objects can be displayed, breaking the limitations of the existing technology.
[0035] In the embodiment of the present invention, the data of the electric energy meter is stored in the flash memory (FLASH), and the data of the electric energy meter can be classified in a tree-like manner according to data characteristics, for example, the electric quantity is divided into current, historical, fundamental wave, etc.; the current electric quantity is divided into combined active power, forward active power, reverse active power, etc.; the current combined active power is divided into combined phase, A phase, B phase, C phase; the current combined active combined phase power is divided into total, rate 1, rate 2, etc. As recorded above, the user can flexibly configure the number and order of display items in the cyclic display table using the communication protocol used by the electric energy meter, and the electric energy meter stores the data in the flash memory according to the acquired data display object list, and searches and obtains the data according to the index of the list when it is displayed.
[0036] S4, displaying the status information and display data on the electric energy meter.
[0037] The acquired status information and display data can be displayed on the electric energy meter, and the text content and status information displayed on the single screen are matched according to the display object information. For example, when displaying positive active power, the display data is the power, and the status information is the corresponding Chinese characters, units and other information.
[0038] It should be noted that the acquired display data can be parsed before display. For example, when reading voltage data, the returned data may be hexadecimal data "12 08 98", where the first byte "12" is the data type, the second byte "08" and the third byte "98" represent numerical information, and the parsed value obtained according to the communication protocol rules is 220.0V.
[0039] The embodiment of the present invention further provides an electric energy meter data display device, which executes the electric energy meter data display method of the above embodiment; the device comprises: An acquisition module, used for acquiring the number of display items to be displayed of the electric energy meter according to different display modes of the electric energy meter data, converting the number of display items into an offset address, so as to read the display object to be displayed according to the offset address; A conversion module, used for converting the display object to obtain a corresponding display identifier; A reading module, used to read corresponding display data based on the display identifier and match the status information corresponding to the display object; The display module displays the status information and display data on the electric energy meter.
[0040] The device further comprises: a setting module, which is used to pre-receive external operation instructions that meet the communication rules, parse the external operation instructions to obtain a display list, and store the display list in a flash memory.
[0041] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program codes, and the program codes are used to execute the electric energy meter data display method of the above embodiment.
[0042] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A method for displaying electric energy meter data, characterized in that: The method comprises: Acquire the number of display items to be displayed of the electric energy meter according to different display modes of the electric energy meter data, convert the number of display items into an offset address, and read the display object to be displayed according to the offset address; Converting the display object to obtain a corresponding display identifier; Reading corresponding display data based on the display identifier and matching the state information corresponding to the display object; The status information and display data are displayed on the electric energy meter.
2. The method according to claim 1, characterized in that The display mode of the display object includes key cycle display and automatic cycle display; The two modes of key cycle display and automatic cycle display correspond to two different display counters respectively, and the value in the display counter corresponds to the element number in the display list.
3. The method according to claim 2, characterized in that Before obtaining the number of display items to be displayed by the electric energy meter according to different display modes of the electric energy meter data, the method further includes: Receiving in advance an external operation instruction that meets the communication rules, parsing the external operation instruction to obtain a display list, and storing the display list in a flash memory; the external operation instruction includes an operation instruction for configuring display items and a display order; The display list includes a key cycle display list corresponding to key cycle display and an automatic cycle display list corresponding to automatic cycle display; the key cycle display list and the automatic cycle display list are independent of each other and each has an independent storage space; the display list has display objects that can be arbitrarily configured.
4. The method according to claim 2, characterized in that: Converting the display item number to an offset address includes: The corresponding display counter is determined and accumulated according to different display modes of the electric energy meter data. The value of the display counter corresponds to the element index number in the display object list, so as to calculate the offset address of the display object in the display object storage list using the element index number.
5. The method according to claim 3, characterized in that: Reading corresponding display data based on the display identifier includes: Based on the display identifier, multiple categories of display data are read from the flash memory; the categories include one or more of the electricity category, demand category, instantaneous category, and recorded data category.
6. An electric energy meter data display device, executing the electric energy meter data display method according to any one of claims 1 to 5; The device comprises an acquisition module, which is used to acquire the number of display items to be displayed of the electric energy meter according to different display modes of the electric energy meter data, convert the number of display items into an offset address, and read the display object to be displayed according to the offset address; A conversion module, used for converting the display object to obtain a corresponding display identifier; A reading module, used to read corresponding display data based on the display identifier and match the status information corresponding to the display object; The display module displays the status information and display data on the electric energy meter.
7. The device according to claim 6, characterized in that The device also includes: The setting module is used to pre-receive external operation instructions that meet the communication rules, parse the external operation instructions to obtain a display list, and store the display list in a flash memory.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes, and the program codes are used to execute the electric energy meter data display method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and system for producing plasma display panel control waveform
CN101950529A
Realization of tile cache strategy in graphics processing unit (GPU) based on tile based rendering
CN102096897A
Object-oriented intelligent electric energy meter display method
CN110873820A
Low-power-consumption display method and device, electric energy meter and computer readable storage medium
CN114217123A
Electric energy meter display method and device, electric energy meter and storage medium
CN117111867A