Low power consumption display method, device, electric energy meter and computer readable storage medium
By switching to low-power mode in the power meter and processing data using the display data map, the problem of power exhaustion in the power meter is solved, the reliability of low-power operation and data query is achieved, and the battery replacement is saved cost.
Patent Information
- Application Number
- CN202111292108.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-03
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2041-11-03
AI Technical Summary
The power meter consumes a lot of power when reading power consumption information, especially in the event of a power outage. Frequent inquiry of power consumption information will cause the battery to be quickly exhausted, and technicians need to disassemble and replace the battery again, wasting resources and affecting use.
By obtaining the current operating state, if it is powered down, it will switch to low-power mode, only the main working process is retained, and the display data map table in the random access memory is used to obtain and display data, reducing the power consumption loss of the power meter, and Retrieve data from external memory if necessary.
In the event of power outage, it operates at extremely low power consumption, extends the battery capacity, reduces the cost of users to replace the battery, and ensures that the power meter can continue to work normally when querying power consumption information.
Smart Images

Figure CN114217123B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electrical engineering, and in particular to a low-power display method, device, electric energy meter and computer-readable storage medium. Background Art
[0002] The electric energy meter has a display function, which is used to show the user various electricity consumption information stored in the electric energy meter. Various information of the electric energy meter is stored in the RAM (Random Access Memory) of the electric energy meter MCU (Microcontroller Unit) and the external memory. Since most of the data of the electric energy meter is stored in the external memory of the electric energy meter, when the user or inspector checks the electricity consumption information, the electric energy meter system needs to frequently read the electricity consumption information from the external memory. Due to the property characteristics of the external memory itself, the electric energy meter consumes a lot of electricity in the process of reading the electricity consumption information. Especially in the case of power outage, the electric energy meter can only rely on its own battery for power supply to maintain basic functions. If the user frequently queries the electricity consumption information, the battery will be exhausted quickly. In order to continue to use it, the technician needs to disassemble the electric energy meter and replace the battery, which not only wastes manpower, material and financial resources, but also affects the normal use of the electric energy meter, causing unnecessary trouble to the user. Summary of the invention
[0003] The present invention provides a low-power display method, device, electric energy meter and computer-readable storage medium, aiming to solve the technical problem that the electric energy meter battery is easily exhausted.
[0004] To achieve the above object, the present invention provides a low power consumption display method, comprising the following steps:
[0005] Obtaining the current operating state and determining whether the operating state is a power-off state;
[0006] If the operating state is a power-off state, the electric energy meter switches from a standard mode to a low power consumption mode;
[0007] If an input switching instruction is received, a first data code corresponding to the switching instruction is obtained, and a preset display data mapping table is searched to see whether there is a first data object corresponding to the first data code;
[0008] If there is a first data object corresponding to the first data code, the first data content corresponding to the first data object is displayed.
[0009] Optionally, before the step of searching a preset display data mapping table to determine whether there is a first data object corresponding to the first data code, the step includes:
[0010] The remaining stack space of the low-power main task in the random access memory is determined, and an initial display data mapping table consisting of standard data objects and target data content is created at the top position of the remaining stack space, and the initial display data mapping table is used as a preset display data mapping table.
[0011] Optionally, after the step of searching a preset display data mapping table to determine whether there is a first data object corresponding to the first data code, the step further includes:
[0012] If there is no first data object corresponding to the first data code, determining a global variable in the random access memory;
[0013] Detecting whether there is second data content corresponding to the first data code in the global variable;
[0014] If there is a second data content corresponding to the first data code, the second data content is displayed, and the first data code is associated with the second data content and stored in the display data mapping table.
[0015] Optionally, after the step of detecting whether the global variable contains second data content corresponding to the first data code, the method further includes:
[0016] If the second data content corresponding to the first data code does not exist, obtaining the third data content corresponding to the first data code in the external memory, and displaying the third data content;
[0017] The first data code is associated with the third data content and stored in the display data mapping table.
[0018] Optionally, after the step of entering the preset low power consumption mode, the method further includes:
[0019] If no input switching instruction is received within a preset time period, a preset initial data code is obtained;
[0020] According to the initial data code, initial data content corresponding to the initial data code is acquired.
[0021] Optionally, after the step of acquiring the initial data content corresponding to the initial data code, the step further includes:
[0022] Determine a cyclic data code in a preset display object list, and obtain cyclic data content corresponding to the cyclic data code;
[0023] If there are multiple cyclic data codes, the cyclic data content corresponding to each cyclic data code is displayed in sequence according to a preset time interval, and each displayed cyclic data code and each cyclic data content are associated and stored in the display data mapping table.
[0024] Optionally, after the step of switching the electric energy meter from the standard mode to the low power consumption mode, the method further comprises:
[0025] If an input external read command is received, all display data in the random access memory and all display data in the external memory are output.
[0026] In addition, to achieve the above-mentioned purpose, the present invention further provides a low-power display device, the low-power display device comprising:
[0027] A state analysis module, used to obtain the current operating state and determine whether the operating state is a power-off state; if the operating state is a power-off state, the electric energy meter switches from a standard mode to a low power consumption mode;
[0028] A retrieval display module is used to obtain a first data code corresponding to the switching instruction if an input switching instruction is received, and to search whether there is a first data object corresponding to the first data code in a preset display data mapping table; if there is a first data object corresponding to the first data code, then display the first data content corresponding to the first data object.
[0029] In addition, to achieve the above-mentioned purpose, the present invention also provides an electric energy meter, which includes a memory, a processor, and a low-power display program stored in the memory and run on the processor, wherein: when the low-power display program is executed by the processor, the steps of the low-power display method as described above are implemented.
[0030] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium, on which a low-power display program is stored, and when the low-power display program is executed by a processor, the steps of the low-power display method described above are implemented.
[0031] The low-power display method in the present invention is applied to an electric energy meter. By obtaining the current operating state, determining whether the operating state is a power-off state, and if the operating state is a power-off state, the electric energy meter switches from a standard mode to a low-power mode, the electric energy meter can be operated at low power consumption when the user is experiencing a power outage, retaining only the main working process, thereby reducing the power consumption of the electric energy meter system. Furthermore, by obtaining a first data code corresponding to the switching instruction if an input switching instruction is received, and retrieving whether there is a first data object corresponding to the first data code in a preset display data mapping table, and if there is a first data object corresponding to the first data code, displaying the first data content corresponding to the first data object, it is ensured that when the user queries the power consumption information, the user first obtains the relevant data information from the display data mapping table in the RAM, thereby ensuring that even if the user frequently queries during a power outage, the electric energy meter can read data and run relevant tasks with extremely low power consumption, thereby ensuring that the battery in the electric energy meter is fully charged and saving the user's replacement cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of the structure of an electric energy meter of a hardware operating environment of an electric energy meter involved in an embodiment of the present invention;
[0033] Figure 2 It is a schematic diagram of the flow chart of the first embodiment of the low power consumption display method of the present invention;
[0034] Figure 3 It is a schematic diagram of a low power consumption display device involved in the low power consumption display method of the present invention. DETAILED DESCRIPTION
[0035] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0036] like Figure 1 As shown, Figure 1 It is a schematic diagram of the structure of an electric energy meter of the hardware operating environment of the electric energy meter involved in the embodiment of the present invention.
[0037] like Figure 1As shown, the electric energy meter may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display (Display), an input unit such as a control panel, and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as an infrared interface and a WIFI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001. The memory 1005 as a computer storage medium may include a low-power display program.
[0038] Optionally, the electric energy meter may further include a microphone, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a wireless module, etc. Among them, sensors such as magnetic sensors, digital sensors and other sensors are not described in detail here.
[0039] Those skilled in the art will understand that Figure 1 The electric energy meter structure shown in the figure does not constitute a limitation on the electric energy meter, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0040] like Figure 2 As shown, Figure 2 : is a flow chart of a first embodiment of a low power consumption display method of the present invention. In this embodiment, the method includes:
[0041] Step S10, obtaining the current operating state, and determining whether the operating state is a power-off state;
[0042] When the user uses electricity normally, the electric energy meter can display the user's electricity consumption information in real time through the display in the electric energy meter. The electricity consumption information that can be intuitively displayed to the user through the display is the display data. In addition, the electricity consumption information and the screen can be displayed at a certain frequency, or only one screen of fixed electricity consumption information can be displayed all the time. The information to be displayed can be configured according to the actual needs of the user, such as the electricity consumption of the month, or the current voltage, the remaining electricity consumption, etc. In the case of a power outage, the electric energy meter will turn off the screen and enter a low power consumption mode in order to save energy. Whether in the screen-off state, only one screen of electricity consumption information is displayed, or in a low power consumption state, if the user wants to view some electricity consumption information, a certain wake-up command needs to be output. The output wake-up command can be a key command, a voice control command, or a voice command. Physical buttons can be configured on the electric energy meter to facilitate the user to output corresponding key commands to wake up the electric energy meter or search for current electricity consumption information and historical electricity consumption information.
[0043] The current operating state is divided into power-on state and power-off state. The power-on state is the state of normal power consumption by the user. At this time, the power meter is connected to the power supply and the battery in the power meter is not needed. The power-off state is the state when the user has a power outage. At this time, the power meter needs to use the battery in the power meter to power the power meter itself to ensure the normal operation of the main functions and tasks of the power meter.
[0044] If the operating state is the power-off state, step S20 is executed, and the electric energy meter is switched from the standard mode to the low power consumption mode.
[0045] If the operating state of the energy meter is power-off, the energy meter system will automatically enter the low power mode from the standard mode in the power-on state. In this low power mode, only the main task in the system can be retained, that is, only the function of waking up and displaying power usage information is supported to ensure that the battery power is not quickly exhausted.
[0046] Step S30, if the input switching instruction is received, obtaining a first data code corresponding to the switching instruction, and searching a preset display data mapping table to see whether there is a first data object corresponding to the first data code;
[0047] The switching instruction can be a key instruction output by the user by pressing a physical key. Each time the user outputs a switching instruction, the electric energy meter will automatically switch to the previous or next first data code and the data content corresponding to each first data code. The data content stored in the electric energy meter when it is powered on can include all the user's electricity usage information and the operation status log of the electric energy meter, and there will be various data codes corresponding thereto. However, in this embodiment, the first data code only corresponds to the display data when the electric energy meter is powered off, that is, only the electricity usage information that the user can view can be obtained through the first data code. And the first data code can be stored in the global variable partition in the RAM in the electric energy meter. In addition, since the currently displayed data code will be switched to the previous or next first data code each time the user outputs a switching instruction, it is necessary to sort the various first data codes. According to the actual needs of the user, the display order of each first data code can be configured by configuring the display object list, that is, the data codes to be displayed on the electric energy meter display are sequentially input into the display object list.
[0048] It should be noted that all data codes mentioned above and below adopt national standards, specifically, the 645 protocol or the 698 protocol in the national standard can be adopted. For example, the data code 00010000 represents the total positive active power (electric energy).
[0049] After the first data code is acquired and determined, the first data code can be used as a search keyword to search for the first data object consistent with the first data code in the display data mapping table pre-stored in the RAM of the electric energy meter by a binary search method, for example, data code 04000101 corresponds to data object 04000101, wherein the display data mapping table is pre-stored in the stack space of the RAM, and the display data mapping table stores two parameters in association: a standard data code and a target data content. Any first data code and any data content corresponding to the first data code can be added to the display data mapping table during the display process and stored in association with the corresponding position in the display data mapping table, that is, the first data code corresponds to the standard data code, and the data content (display data) corresponding to the first data code corresponds to the target data content.
[0050] If there is a first data object corresponding to the first data code, step S40 is executed to display the first data content corresponding to the first data object.
[0051] If a first data object consistent with the first data code is retrieved in the preset display data mapping table, the retrieval is successful, and the data content associated with the first data object in the display data mapping table is extracted and displayed, so that the display content on one screen includes the first data code and the first data content. Alternatively, only the first data content may be displayed.
[0052] The low-power display method in the present invention is applied to an electric energy meter. By obtaining the current operating state, determining whether the operating state is a power-off state, and if the operating state is a power-off state, the electric energy meter switches from a standard mode to a low-power mode, the electric energy meter can be operated at low power consumption when the user is experiencing a power outage, retaining only the main working process, thereby reducing the power consumption of the electric energy meter system. Furthermore, by obtaining a first data code corresponding to the switching instruction if an input switching instruction is received, and retrieving whether there is a first data object corresponding to the first data code in a preset display data mapping table, and if there is a first data object corresponding to the first data code, displaying the first data content corresponding to the first data object, it is ensured that when the user queries the power consumption information, the user first obtains the relevant data information from the display data mapping table in the RAM, thereby ensuring that even if the user frequently queries during a power outage, the electric energy meter can read data and run relevant tasks with extremely low power consumption, thereby ensuring that the battery in the electric energy meter is fully charged and saving the user's replacement cost.
[0053] In another embodiment, after the step of switching the electric energy meter from the standard mode to the low power consumption mode, the method further comprises:
[0054] If an input external read command is received, all display data in the random access memory and all display data in the external memory are output.
[0055] After a power outage, the energy meter enters a low power consumption mode. When receiving a reading instruction sent by an external device, all display data can be sent to the external device, or the power consumption information corresponding to the reading instruction can be sent according to the specific reading instruction. The external device can be an infrared meter reader, a mobile terminal or other reading devices.
[0056] Furthermore, based on the first embodiment of the low power consumption display method of the present invention, a second embodiment of the low power consumption display method of the present invention is proposed. In this embodiment, before step S10, the method includes:
[0057] Step a, determining the remaining stack space of the low power main task in the random access memory, and creating an initial display data mapping table consisting of standard data objects and target data content at the top position of the remaining stack space, and using the initial display data mapping table as the preset display data mapping table.
[0058] This embodiment is based on the understanding and exploration of the maintenance of the electric energy meter data. The reason why the display data to be displayed in the electric energy meter is stored in the external storage body or cannot be read from the external storage body to the RAM at the beginning is that the RAM resources of the electric energy meter are insufficient. The RAM resources of the electric energy meter MCU are only 16KB or 24KB, and it is definitely impossible to cache any data in the RAM. In addition, the method of caching all the display data in the internal RAM at the beginning is not advisable. It takes several seconds to obtain dozens to hundreds of screens at a time, which greatly reduces the response speed of key wake-up under low power consumption. In addition, in terms of RAM resource allocation, it is first divided into two partitions: one partition is a global variable used to cache data, and the other partition is a stack space used as a stack of the main task. Considering the running characteristics of the low-power program of the electric energy meter, and through experiments, it is found that when the electric energy meter is powered on, the utilization rate of the stack space can be as high as 100%, but when the electric energy meter is powered off, the electric energy meter is in a low-power sleep mode, and the utilization rate of the stack space is only about 30% at most, and 70% of the remaining stack space is idle.
[0059] Based on the above characteristics of the power-off state of the electric energy meter, the remaining stack space of this part of the low-power main task can be fully utilized, and another partition is created at the top position of the stack space of the low-power main task, that is, the remaining stack space partition, and a display data mapping table is created in the remaining stack space. The display data mapping table can be empty at the beginning, and two items are created in the display data mapping table: standard data object and target data content. The standard data object is the data encoding using the national standard, and the target data object is the display data corresponding to the standard data object. In addition, part of the data cached by the global variable, that is, the data encoding of the global variable cache and the corresponding display data can be input into the display data mapping table, and the data encoding and corresponding display data stored in the external memory can also be input into the display data mapping table, wherein the external memory includes at least one of the external memory EEPROM (Electrically ErasableProgrammable read only memory) and the external memory flash memory. It should also be noted that when various data codes are input into the display data mapping table, these data codes can be arranged according to a certain order rule to facilitate the search of display data. Preferably, they are sorted in ascending order according to the code size. When searching, a binary search can be performed according to the data object (data code), so as to quickly obtain the content of the display data from the display data mapping table;
[0060] By implementing the technical solution in this embodiment, the remaining stack space in the RAM can be fully utilized, and the display data can be stored by means of a display data mapping table. Based on the high efficiency and energy saving characteristics of the RAM itself, even if the user frequently queries the power consumption information during a power outage, the loss of battery power in the electric energy meter can be ensured to be minimal, and the response speed of the electric energy meter when the user queries the power consumption information is also ensured. Experiments have proved that by applying the technical solution in this embodiment, the power consumption of the battery of the electric energy meter in the power-off state is reduced from the original 8mA to the current 50uA, which greatly reduces the system power consumption, thereby saving the battery capacity of the battery.
[0061] Further, based on the first embodiment of the low power display method of the present invention, a third embodiment of the low power display method of the present invention is proposed. In this embodiment, after the step of searching whether there is a first data object corresponding to the first data encoding in the preset display data mapping table, the method further includes:
[0062] Step b: if there is no first data object corresponding to the first data code, determining a global variable in the random access memory;
[0063] Step c, detecting whether there is second data content corresponding to the first data code in the global variable;
[0064] Step d: If there is a second data content corresponding to the first data code, the second data content is displayed, and the first data code and the second data content are associated and stored in the display data mapping table.
[0065] If the first data object corresponding to the first data code does not exist in the display data mapping table, it means that there is no display data content corresponding to the first data code in the current display data mapping table. At this time, the global variable partition in the RAM must be determined first, the display data corresponding to the first data code must be searched in the global variables, and it is determined whether the search is successful. If the search is successful, the corresponding display data in the global variables will be displayed, and the first data code and the corresponding display data will be input into the display data mapping table for associated storage. Specifically, the first data code is input into the standard data object item, and the display data corresponding to the first data code is input into the target data content item.
[0066] By implementing this embodiment, because the power consumption information is also obtained from the RAM, the power consumption of the electric energy meter is also very low, thereby ensuring that the capacity of the battery is not easily exhausted.
[0067] In one embodiment, after the step of detecting whether the global variable contains second data content corresponding to the first data code, the method further includes:
[0068] Step e: if the second data content corresponding to the first data code does not exist, obtaining the third data content corresponding to the first data code in the external memory, and displaying the third data content;
[0069] Step f: associate the first data code with the third data content and store them in the display data mapping table.
[0070] If the display data corresponding to the first data code is not obtained from the global variable, then it is necessary to obtain the display data corresponding to the first data code from the external memory. Under normal circumstances, the relevant display data can be obtained in the external memory at this time. When the relevant display data is obtained, the relevant display data is displayed, and the first data code and the display data corresponding to the first data code in the external memory are input into the display data mapping table.
[0071] By obtaining relevant data from the external memory, it can be ensured that the power consumption information the user wants is obtained. At the same time, the data queried by the user or displayed by the electricity meter in the external memory is copied to the display data mapping table, so that the next time the relevant power consumption information is repeatedly queried, it only needs to be obtained and displayed from the display data mapping table in the RAM, saving battery power.
[0072] Further, based on the first embodiment of the low power consumption display method of the present invention, a fourth embodiment of the low power consumption display method of the present invention is proposed. In this embodiment, after the step of entering the preset low power consumption mode, the fourth embodiment further includes:
[0073] Step g, if no switching instruction is received within a preset time period, obtaining a preset initial data code;
[0074] Step h: acquiring the initial data content corresponding to the initial data code according to the initial data code.
[0075] If no switching instruction is received from the user within the preset time period, the first data code in the display object list, that is, the initial data code, is automatically obtained according to the display object list, so as to obtain the display data corresponding to the data code according to the initial data code and display the display data. The initial data code may be displayed or not, and the preset time period may be set according to actual needs, for example 1.5s.
[0076] In one embodiment, after the step of obtaining the data content corresponding to the initial data code, the following steps are included:
[0077] Step i, determining a cyclic data code in a preset display object list, and obtaining cyclic data content corresponding to the cyclic data code;
[0078] Step j: if there are multiple cyclic data codes, display the cyclic data content corresponding to each cyclic data code in sequence according to a preset time interval, and associate and store each displayed cyclic data code and each cyclic data content in the display data mapping table.
[0079] The display object list can be pre-stored in a global variable in RAM, and when the display object list needs to be read, it can be read and called with high efficiency and low power consumption.
[0080] In this embodiment, when determining the initial data code, the cyclic data codes in the display object list are sequentially obtained according to the arrangement order of the cyclic data codes in the display object list. According to the sequentially obtained cyclic data codes, the cyclic data contents corresponding to the cyclic data codes are sequentially obtained from the RAM or the external memory. Preferably, the relevant data is first obtained from the RAM. If the relevant information cannot be obtained in the RAM, the relevant information is then obtained from the external memory. When the cyclic data contents are obtained, the sequentially obtained cyclic data contents are sequentially displayed according to the preset time interval, wherein the preset time interval can be set according to actual needs, for example, 1s. In the process of cyclic display of each cyclic data content, all the displayed cyclic data contents are associated with the corresponding data codes and stored in the display data mapping table. When the power consumption information is subsequently cyclically displayed, it only needs to be read from the display data mapping table, which reduces the power loss of the system and saves battery power.
[0081] In addition, refer to Figure 3 The present invention further provides a low power consumption display device, the low power consumption display device comprising:
[0082] The state analysis module A10 is used to obtain the current operating state and determine whether the operating state is a power-off state; if the operating state is a power-off state, the electric energy meter switches from a standard mode to a low power consumption mode;
[0083] The retrieval display module A20 is used to obtain the first data code corresponding to the switching instruction if an input switching instruction is received, and to search whether there is a first data object corresponding to the first data code in the preset display data mapping table; if there is a first data object corresponding to the first data code, the first data content corresponding to the first data object is displayed.
[0084] Optionally, the retrieval display module A20 is further used for:
[0085] The remaining stack space of the low-power main task in the random access memory is determined, and an initial display data mapping table consisting of standard data objects and target data content is created at the top position of the remaining stack space, and the initial display data mapping table is used as a preset display data mapping table.
[0086] Optionally, the retrieval display module A20 is further used for:
[0087] If there is no first data object corresponding to the first data code, determining a global variable in the random access memory;
[0088] Detecting whether there is second data content corresponding to the first data code in the global variable;
[0089] If there is a second data content corresponding to the first data code, the second data content is displayed, and the first data code is associated with the second data content and stored in the display data mapping table.
[0090] Optionally, the retrieval display module A20 is further used for:
[0091] If the second data content corresponding to the first data code does not exist, obtaining the third data content corresponding to the first data code in the external memory, and displaying the third data content;
[0092] The first data code is associated with the third data content and stored in the display data mapping table.
[0093] Optionally, the retrieval display module A20 is further used for:
[0094] If no input switching instruction is received within a preset time period, a preset initial data code is obtained;
[0095] According to the initial data code, initial data content corresponding to the initial data code is acquired.
[0096] Optionally, the retrieval display module A20 is further used for:
[0097] Determine a cyclic data code in a preset display object list, and obtain cyclic data content corresponding to the cyclic data code;
[0098] If there are multiple cyclic data codes, the cyclic data content corresponding to each cyclic data code is displayed in sequence according to a preset time interval, and each displayed cyclic data code and each cyclic data content are associated and stored in the display data mapping table.
[0099] Optionally, the retrieval display module A20 is further used for:
[0100] If an input external read command is received, all display data in the random access memory and all display data in the external memory are output.
[0101] The specific implementation of the low power consumption display device of the present invention is substantially the same as the above-mentioned embodiments of the low power consumption display device, and will not be described in detail here.
[0102] In addition, the present invention also proposes an electric energy meter, which includes a memory, a processor, and a low-power display program stored in the memory and executable on the processor, and when the processor executes the low-power display program, the steps of the low-power display method described in the above embodiment are implemented.
[0103] The specific implementation of the electric energy meter of the present invention is basically the same as the above-mentioned embodiments of the low power consumption display method, and will not be described in detail here.
[0104] In addition, the present invention also proposes a computer-readable storage medium, characterized in that the computer-readable storage medium includes a low-power display program, and when the low-power display program is executed by a processor, the steps of the low-power display method described in the above embodiment are implemented.
[0105] The specific implementation of the readable storage medium of the present invention is basically the same as the above-mentioned embodiments of the low-power display method, and will not be described in detail here.
[0106] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0107] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling an electric energy meter (which can be a computer, mobile phone, server, television, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0108] In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0109] In the description of this specification, the description with reference to the terms "an embodiment", "another embodiment", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0110] Although the embodiments of the present invention have been shown and described above, the scope of protection of the present invention is not limited thereto. It is understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art can change, modify and replace the above embodiments within the scope of the present invention, and these changes, modifications and replacements should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A low power consumption display method, characterized in that: The method comprises the following steps: Obtaining the current operating state and determining whether the operating state is a power-off state; If the operating state is a power-off state, the electric energy meter switches from a standard mode to a low power consumption mode; If the input switching instruction is received, a first data code corresponding to the switching instruction is obtained, and a preset display data mapping table is searched to see whether there is a first data object corresponding to the first data code; If there is a first data object corresponding to the first data code, displaying the first data content corresponding to the first data object; Wherein, before the step of searching the preset display data mapping table to see whether there is a first data object corresponding to the first data code, the step includes: Determine the remaining stack space of the low-power main task in the random access memory, and create an initial display data mapping table consisting of a standard data object and a target data content at the top position of the remaining stack space, and use the initial display data mapping table as a preset display data mapping table, wherein the standard data object includes a first data code, and the target data content includes data content corresponding to the first data code; After the step of searching the preset display data mapping table for a first data object corresponding to the first data code, the method further includes: If there is no first data object corresponding to the first data code, determining a global variable in the random access memory; Detecting whether there is second data content corresponding to the first data code in the global variable; If there is a second data content corresponding to the first data code, the second data content is displayed, and the first data code is associated with the second data content and stored in the display data mapping table; After the step of detecting whether the global variable contains second data content corresponding to the first data code, the method further includes: If the second data content corresponding to the first data code does not exist, obtaining the third data content corresponding to the first data code in the external memory, and displaying the third data content; The first data code is associated with the third data content and stored in the display data mapping table.
2. The low power consumption display method according to claim 1, characterized in that: After the step of switching the electric energy meter from the standard mode to the low power consumption mode, the method further comprises: If no input switching instruction is received within a preset time period, a preset initial data code is obtained; According to the initial data code, initial data content corresponding to the initial data code is acquired.
3. The low power consumption display method according to claim 2, characterized in that: After the step of obtaining the initial data content corresponding to the initial data code, the method further comprises: Determine a cyclic data code in a preset display object list, and obtain cyclic data content corresponding to the cyclic data code; If there are multiple cyclic data codes, the cyclic data content corresponding to each cyclic data code is displayed in sequence according to a preset time interval, and each displayed cyclic data code and each cyclic data content are associated and stored in the display data mapping table.
4. The low power consumption display method according to claim 1, characterized in that: After the step of switching the electric energy meter from the standard mode to the low power consumption mode, the method further comprises: If an input external read command is received, all display data in the random access memory and all display data in the external memory are output.
5. A low power consumption display device, characterized in that: The low power consumption display device comprises: A state analysis module, used to obtain the current operating state and determine whether the operating state is a power-off state; if the operating state is a power-off state, the electric energy meter switches from a standard mode to a low power consumption mode; a retrieval display module, configured to, upon receiving an input switching instruction, obtain a first data code corresponding to the switching instruction, and search a preset display data mapping table to see whether there is a first data object corresponding to the first data code; if there is a first data object corresponding to the first data code, display a first data content corresponding to the first data object; The retrieval display module is further used to determine the remaining stack space of the low-power main task in the random access memory, and create an initial display data mapping table consisting of a standard data object and a target data content at the top position of the remaining stack space, and use the initial display data mapping table as a preset display data mapping table, wherein the standard data object includes a first data code, and the target data content includes data content corresponding to the first data code; The retrieval display module is further configured to determine a global variable in the random access memory if the first data object corresponding to the first data code does not exist; Detecting whether there is second data content corresponding to the first data code in the global variable; If there is a second data content corresponding to the first data code, the second data content is displayed, and the first data code and the second data content are associated and stored in the display data mapping table; The retrieval and display module is further configured to obtain third data content corresponding to the first data code in an external memory if the second data content corresponding to the first data code does not exist, and display the third data content; The first data code is associated with the third data content and stored in the display data mapping table.
6. An electric energy meter, characterized in that: The electric energy meter includes a memory, a processor, and a low-power display program stored in the memory and executable on the processor, wherein: when the low-power display program is executed by the processor, the steps of the low-power display method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a low power display program, and when the low power display program is executed by the processor, the steps of the low power display method according to any one of claims 1 to 4 are implemented.
