CN113327175A - Method and device for determining total power consumption, storage medium and electronic device - Google Patents

Method and device for determining total power consumption, storage medium and electronic device Download PDF

Info

Publication number
CN113327175A
CN113327175A CN202110475867.2A CN202110475867A CN113327175A CN 113327175 A CN113327175 A CN 113327175A CN 202110475867 A CN202110475867 A CN 202110475867A CN 113327175 A CN113327175 A CN 113327175A
Authority
CN
China
Prior art keywords
state
power consumption
total
duration
total power
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
CN202110475867.2A
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110475867.2A priority Critical patent/CN113327175A/en
Publication of CN113327175A publication Critical patent/CN113327175A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0637Strategic management or analysis, e.g. setting a goal or target of an organisation; Planning actions based on goals; Analysis or evaluation of effectiveness of goals

Abstract

The invention discloses a method and a device for determining total electricity consumption, a storage medium and an electronic device, wherein the method comprises the following steps: receiving a power consumption request sent by a terminal, wherein the power consumption request is used for acquiring the total power consumption of target equipment in a preset time period; responding to the power consumption request, and acquiring first total power consumption of the target equipment in a first state and second total power consumption of the target equipment in a second state; and taking the sum of the first total electricity consumption and the second total electricity consumption as the total electricity consumption, namely determining the total electricity consumption according to the first total electricity consumption of the target equipment in the first state and the second total electricity consumption of the target equipment in the second state. By adopting the technical scheme, the problems that in the related technology, the cost of the hardware module is higher, the intelligent equipment can increase the overall cost of the intelligent equipment by increasing the hardware module to sense and calculate the power consumption of the intelligent equipment and the like are solved.

Description

Method and device for determining total power consumption, storage medium and electronic device
Technical Field
The invention relates to the field of communication, in particular to a method and a device for determining total electricity consumption, a storage medium and an electronic device.
Background
Along with the development of scientific and technological progress and internet, the popularization of intelligent equipment, the user is higher and higher to the wisdom function requirement of household electrical appliances, and the user is all more concerned about the use amount of the energy consumption of intelligent equipment in the family, and most of intelligent equipment perception calculation intelligent equipment's power consumption through increasing the hardware module at present, however because the hardware module cost is higher, intelligent equipment can increase intelligent equipment's whole cost through increasing the power consumption of hardware module perception calculation intelligent equipment.
Aiming at the problems that in the related art, due to the fact that the cost of a hardware module is high, the overall cost of the intelligent equipment can be increased by the intelligent equipment through increasing the hardware module to sense and calculate the power consumption of the intelligent equipment, and the like, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining total power consumption, a storage medium and an electronic device, which are used for at least solving the problems that in the related art, due to the fact that the cost of a hardware module is higher, the overall cost of intelligent equipment is increased when the intelligent equipment senses and calculates the power consumption of the intelligent equipment by adding the hardware module, and the like.
According to an embodiment of the present invention, there is provided a method for determining total power consumption, including: receiving a power consumption request sent by a terminal, wherein the power consumption request is used for acquiring the total power consumption of target equipment in a preset time period; responding to the power consumption request, and acquiring first total power consumption of the target equipment in a first state and second total power consumption of the target equipment in a second state; and taking the sum of the first total electricity consumption and the second total electricity consumption as the total electricity consumption.
In one exemplary embodiment, the obtaining a first total power consumption of the target device in a first state and a second total power consumption of the target device in a second state includes: acquiring a first unit electricity consumption of the target equipment in the first state and a second unit electricity consumption of the target equipment in the second state; and obtaining a first duration of the target device in the first state and a second duration of the target device in the second state; taking a product of the first unit electricity consumption amount and the first duration as the first total electricity consumption amount, and taking a product of the second unit electricity consumption amount and the second duration as the second total electricity consumption amount.
In one exemplary embodiment, obtaining a second total power consumption of the target device in a second state includes: acquiring a third total power consumption of a first component in the target equipment in the second state and a fourth total power consumption of a second component in the target equipment in the second state; and taking the sum of the third total power consumption and the fourth total power consumption as the second total power consumption.
In one exemplary embodiment, the obtaining a third total power consumption of the first component in the target device in the second state and a fourth total power consumption of the second component in the target device in the second state includes: acquiring a third unit electricity consumption of the first component in the second state and a fourth unit electricity consumption of the second component in the second state, wherein the second unit electricity consumption comprises: the third unit electricity consumption amount and the fourth unit electricity consumption amount; and obtaining a third duration of the first component in the second state and a fourth duration of the second component in the second state, wherein the second duration comprises: the third duration and the fourth duration; taking a product of the third unit electricity usage and the third duration as the third total electricity usage, and taking a product of the fourth unit electricity usage and the fourth duration as the fourth total electricity usage.
In one exemplary embodiment, obtaining a third duration of the first component in the second state and a fourth duration of the second component in the second state comprises: acquiring first time from false to true to false of a state identifier corresponding to a second state of the first component, and taking the first time as the third duration; and acquiring a second time from false to true to false of the state identifier corresponding to the second state of the second component, and taking the second time as the fourth duration.
In one exemplary embodiment, the obtaining a first unit electricity usage of the target device in the first state and a second unit electricity usage of the target device in the second state includes: obtaining historical power consumption of the target device, wherein the historical power consumption comprises: a first historical power consumption of the target device in the first state and a second historical power consumption of the target device in the second state; determining the first unit electricity usage from the first historical electricity usage, and determining the second unit electricity usage from the second historical electricity usage.
In one exemplary embodiment, the first state includes: a powered-on state in which the target device is, the second state comprising: the target device is in a door-open state.
According to another embodiment of the present invention, there is also provided an apparatus for determining a total power usage, including: the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving a power consumption request sent by a terminal, and the power consumption request is used for acquiring the total power consumption of target equipment in a preset time period; the response module is used for responding to the power consumption request and acquiring first total power consumption of the target equipment in a first state and second total power consumption of the target equipment in a second state; and the calculating module is used for taking the sum of the first total electricity consumption and the second total electricity consumption as the total electricity consumption.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-mentioned method for determining the total power usage when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the method for determining the total power consumption through the computer program.
In the embodiment of the invention, a power consumption request sent by a terminal is received, wherein the power consumption request is used for acquiring the total power consumption of target equipment in a preset time period; responding to the power consumption request, and acquiring first total power consumption of the target equipment in a first state and second total power consumption of the target equipment in a second state; and taking the sum of the first total electricity consumption and the second total electricity consumption as the total electricity consumption, namely determining the total electricity consumption according to the first total electricity consumption of the target equipment in the first state and the second total electricity consumption of the target equipment in the second state. By adopting the technical scheme, the problems that in the related technology, the cost of the hardware module is higher, the whole cost of the intelligent equipment can be increased by the intelligent equipment through increasing the power consumption of the hardware module sensing and calculating the intelligent equipment, and the like are solved, and the whole cost of the intelligent equipment is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computer terminal of a method for determining total power consumption according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of determining total power usage according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a method of determining total power usage according to an embodiment of the invention;
fig. 4 is a block diagram of the configuration of a total power usage determination apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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 the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method provided by the embodiment of the application can be executed in a computer terminal, a computer terminal or a similar operation device. Taking an example of the operation on a computer terminal, fig. 1 is a hardware structure block diagram of the computer terminal of the method for determining total power consumption according to the embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the method for determining the total power consumption in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for determining total power consumption is provided, and is applied to the above-mentioned computer terminal, and fig. 2 is a flowchart of the method for determining total power consumption according to the embodiment of the present invention, where the flowchart includes the following steps:
step S202, receiving a power consumption request sent by a terminal, wherein the power consumption request is used for acquiring the total power consumption of target equipment in a preset time period;
wherein, the target device can be understood as an intelligent refrigerator.
Step S204, responding to the power consumption request, and acquiring first total power consumption of the target equipment in a first state and second total power consumption of the target equipment in a second state;
and step S206, taking the sum of the first total electricity consumption and the second total electricity consumption as the total electricity consumption.
Through the steps, a power consumption request sent by a terminal is received, wherein the power consumption request is used for acquiring the total power consumption of the target equipment in a preset time period; responding to the power consumption request, and acquiring first total power consumption of the target equipment in a first state and second total power consumption of the target equipment in a second state; and taking the sum of the first total electricity consumption and the second total electricity consumption as the total electricity consumption, namely determining the total electricity consumption according to the first total electricity consumption of the target equipment in the first state and the second total electricity consumption of the target equipment in the second state. By adopting the technical scheme, the problems that in the related technology, the cost of the hardware module is higher, the whole cost of the intelligent equipment can be increased by the intelligent equipment through increasing the power consumption of the hardware module sensing and calculating the intelligent equipment, and the like are solved, and the whole cost of the intelligent equipment is reduced.
It should be noted that: the first state includes: a powered-on state in which the target device is, the second state comprising: the target device is in a door-open state.
The step S204 may have a plurality of implementation manners, and the embodiment of the present invention mainly provides two implementation schemes:
the first scheme is as follows:
step S10: acquiring a first unit electricity consumption of the target equipment in the first state and a second unit electricity consumption of the target equipment in the second state;
step S12: acquiring a first duration of the target device in the first state and a second duration of the target device in the second state;
step S14: taking a product of the first unit electricity consumption amount and the first duration as the first total electricity consumption amount, and taking a product of the second unit electricity consumption amount and the second duration as the second total electricity consumption amount.
Scheme II:
step S20: acquiring a first duration of the target device in the first state and a second duration of the target device in the second state;
step S22: acquiring a first unit electricity consumption of the target equipment in the first state and a second unit electricity consumption of the target equipment in the second state;
step S24: taking a product of the first unit electricity consumption amount and the first duration as the first total electricity consumption amount, and taking a product of the second unit electricity consumption amount and the second duration as the second total electricity consumption amount.
In other words, a first unit power consumption of the target device in the first state, a second unit power consumption of the target device in the second state, a first duration of the target device in the first state, and a second duration of the target device in the first state are obtained, the first unit power consumption of the target device in the first state is multiplied by the first duration of the target device in the first state to obtain a first total power consumption, and the second unit power consumption of the target device in the second state is multiplied by the second duration of the target device in the first state to obtain a second total power consumption.
As can be seen from the first and second schemes, the first unit power consumption of the target device in the first state and the second unit power consumption of the target device in the second state may be obtained first, or the first duration of the target device in the first state and the second duration of the target device in the first state may be obtained first, and as for the above execution steps, the embodiment of the present invention is not limited.
In one exemplary embodiment, a third total power consumption of a first component in the target device in the second state and a fourth total power consumption of a second component in the target device in the second state are obtained; and taking the sum of the third total power consumption and the fourth total power consumption as the second total power consumption.
It is understood that the target device includes: and a first component and a second component which can be understood as a refrigerating chamber and a freezing chamber in the case that the target device is an intelligent refrigerator, and the second total power consumption is determined by adding a third total power consumption of the first component in the second state and a fourth total power consumption of the second component in the second state.
Further, the target device may further include: the method comprises the following steps that under the condition that target equipment is an intelligent refrigerator, the first assembly and the second assembly can be understood as a refrigerating chamber, a freezing chamber and a soft freezing chamber, and under the condition that the target equipment comprises three assemblies, third total power consumption of the first assembly in the target equipment in a second state, fourth total power consumption of the second assembly in the target equipment in the second state and fifth total power consumption of the third assembly in the target equipment in the second state are obtained; and taking the sum of the third total electricity consumption, the fourth total electricity consumption and the fifth total electricity consumption as the second total electricity consumption.
In an exemplary embodiment, a manner of obtaining the third total power consumption of the first component in the target device in the second state and the fourth total power consumption of the second component in the target device in the second state is specifically as follows:
step S30: acquiring a third unit electricity consumption of the first component in the second state and a fourth unit electricity consumption of the second component in the second state, wherein the second unit electricity consumption comprises: the third unit electricity consumption amount and the fourth unit electricity consumption amount;
step S32: obtaining a third duration of the first component in the second state and a fourth duration of the second component in the second state, wherein the second duration comprises: the third duration and the fourth duration;
step S34: taking a product of the third unit electricity usage and the third duration as the third total electricity usage, and taking a product of the fourth unit electricity usage and the fourth duration as the fourth total electricity usage.
In other words, the third duration of the first component in the second state, the fourth duration of the second component in the second state, the third unit power consumption of the first component in the second state, and the fourth unit power consumption of the second component in the second state are obtained, the third duration of the first component in the second state is multiplied by the third unit power consumption of the first component in the second state to obtain a third total power consumption, and the fourth duration of the second component in the second state is multiplied by the fourth unit power consumption of the second component in the second state to obtain a second total power consumption.
It should be noted that, in the embodiment of the present invention, the execution sequence of step S30 and step S32 is not limited, that is, the third duration of the first component in the second state and the fourth duration of the second component in the second state may be obtained first, or the third unit electric quantity of the first component in the second state and the fourth unit electric quantity of the second component in the second state may be obtained first.
In an exemplary embodiment, a first time from false to true to false of a state identifier corresponding to the second state of the first component is obtained, and the first time is taken as the third duration; and acquiring a second time from false to true to false of the state identifier corresponding to the second state of the second component, and taking the second time as the fourth duration.
It is understood that the third duration is obtained by: the state of the first component identifies a first time from false to true to false, i.e., a first time from off to on to off of the state of the first component; the manner of obtaining the fourth duration is: the state of the second component identifies a second time from false to true to false, i.e., a second time from off to on to off of the state of the second component.
In an exemplary embodiment, the manner of obtaining the first unit electricity consumption of the target device in the first state and the second unit electricity consumption of the target device in the second state is specifically as follows: obtaining historical power consumption of the target device, wherein the historical power consumption comprises: a first historical power consumption of the target device in the first state and a second historical power consumption of the target device in the second state; determining the first unit electricity usage from the first historical electricity usage, and determining the second unit electricity usage from the second historical electricity usage.
Specifically, the first historical power consumption of the first preset time period of the first state of the target device is acquired, the first historical power consumption is divided by the first preset time period, the quotient of the first historical power consumption and the first preset time period is used as the first unit power consumption, the second historical power consumption of the first preset time period of the second state of the target device is acquired, the second historical power consumption is divided by the first preset time period, and the quotient of the second historical power consumption and the first preset time period is used as the second unit power consumption.
In order to better understand the process of the method for determining the total power consumption, the following describes a flow of a method for determining the total power consumption with reference to an optional embodiment, but the flow is not limited to the technical solution of the embodiment of the present invention.
In this embodiment, a method for determining total power consumption is provided, and fig. 3 is a schematic diagram of a method for determining total power consumption according to an embodiment of the present invention, as shown in fig. 3, the following steps are specifically performed:
step S301: the terminal APP sends a power consumption inquiry request to the server;
step S302: the server transmits a power consumption inquiry request to the big data platform;
step S303: the large data platform sends first unit electricity consumption of the refrigerator in an unopened state to the server according to the electricity consumption query request, opens a second unit electricity consumption increased by the refrigerating chamber, and opens a third unit electricity consumption increased by the freezing chamber; the duration of the refrigerator in the power-on state, the duration of the freezing chamber in the door-opening state and the duration of the refrigerating chamber in the door-opening state;
step S304: the server opens the second unit power consumption increased by the refrigerating chamber and opens the third unit power consumption increased by the freezing chamber according to the first unit power consumption of the refrigerator in the state that the door is not opened; calculating the total power consumption by the time when the refrigerator is in a power-on state, the duration time when the freezing chamber is in a door-opening state and the duration time when the refrigerating chamber is in the door-opening state;
step S305: the total power usage is returned to the APP.
Specifically, taking a refrigerator (equivalent to the target device in the above-described embodiment) as an example, a first unit electricity consumption amount of the refrigerator in an unopened state is determined according to a historical electricity consumption amount of the refrigerator: 0.1 degree/hour (corresponding to the first unit amount of electricity used in the above embodiment), and the third unit amount of electricity additionally added to the opening of the refrigerating compartment is: 0.001 degree/minute (corresponding to the fourth unit amount of electricity used in the above-described embodiment), and the second unit amount of electricity used in the freezing compartment, which is additionally added at one time, is about 0.002 degree/minute (corresponding to the third unit amount of electricity used in the above-described embodiment); the refrigerator is on-line, that is, the refrigerator is in a power-on state (corresponding to the first state in the above-described embodiment), and the duration for which the door state of the freezing compartment is changed from false to true and then to false is the duration for which the freezing compartment is in a door-open state (corresponding to the third duration for which the first assembly is in the second state in the above-described embodiment). The duration of the change from the false state to the true state to the false state of the refrigerating compartment is the duration of the opening state of the refrigerating compartment (corresponding to the fourth duration of the second state of the second assembly in the above embodiment).
The amount of electricity used (equivalent to the second total amount of electricity used in the above-described embodiment) increased after the doors of the refrigerating chamber and the freezing chamber of the refrigerator are opened: the duration time of the opening of the refrigerating chamber, the additionally increased third unit power consumption of the opening of the refrigerating chamber and the duration time of the opening of the freezing chamber and the additionally increased second unit power consumption of the opening of the freezing chamber are respectively calculated; the total electricity consumption of the refrigerator is as follows: the refrigerating chamber door opening duration, the third unit power consumption additionally increased by the refrigerating chamber door opening, the freezing chamber door opening duration, the second unit power consumption additionally increased by the freezing chamber door opening and the duration of the refrigerator power-on state, and the first unit power consumption of the refrigerator in the state that the refrigerator is not opened.
Step 1: the method comprises the steps that a terminal sends a power consumption request to a server corresponding to a refrigerator, wherein the power consumption request is as follows: acquiring the electricity consumption of 12:00-16:00 at 4, 15 and 15 days in 2021;
step 2: the server sends the power consumption request to the cloud platform;
and step 3: the cloud platform queries in the database, and the duration of the cold storage room opened by the user is as follows within a time period of 12:00-16:00 at 4 months and 15 days in 2021: 10 minutes, wherein the duration of opening the freezing chamber by a user is 5 minutes, the duration of opening the soft freezing chamber by the user is 3 minutes, and the duration of the power-on state of the refrigerator is 240 minutes; the cloud platform inquires in the database that the unit electricity consumption time for opening the refrigerating chamber is 0.001 degree/minute, the unit electricity consumption time for opening the freezing chamber is 0.002 degree/minute, the unit electricity consumption time for opening the soft freezing chamber is 0.015 degree/minute, and the unit electricity consumption time for the refrigerator in a state that the refrigerator is not opened is 0.1 degree/hour;
and 4, step 4: the duration of time that the user opens the refrigerating chamber is: 10 minutes, wherein the duration of opening the freezing chamber by a user is 5 minutes, the duration of the power-on state of the refrigerator is 240 minutes, the unit electricity consumption time for opening the refrigerating chamber is 0.001 degree/minute, the unit electricity consumption time for opening the freezing chamber is 0.002 degree/minute, and the unit electricity consumption time of the refrigerator in the state of not opening the door is 0.05 degree/hour, and the refrigerator is sent to a server; the server calculates the total power consumption: 10 × 0.001+5 × 0.002+4 × 0.05 ═ 0.22;
and 5: the total used amount of 0.22 is transmitted to the terminal.
Through the embodiment, a power consumption request sent by a terminal is received, wherein the power consumption request is used for acquiring the total power consumption of target equipment in a preset time period; responding to the power consumption request, and acquiring first total power consumption of the target equipment in a first state and second total power consumption of the target equipment in a second state; and taking the sum of the first total electricity consumption and the second total electricity consumption as the total electricity consumption, namely determining the total electricity consumption according to the first total electricity consumption of the target equipment in the first state and the second total electricity consumption of the target equipment in the second state. By adopting the technical scheme, the problems that in the related technology, the cost of the hardware module is higher, the whole cost of the intelligent equipment can be increased by the intelligent equipment through increasing the power consumption of the hardware module sensing and calculating the intelligent equipment, and the like are solved, and the whole cost of the intelligent equipment is reduced.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Fig. 4 is a block diagram of the configuration of a total power usage determination apparatus according to an embodiment of the present invention; as shown in fig. 4, includes:
the receiving module 42 is configured to receive a power consumption request sent by a terminal, where the power consumption request is used to obtain a total power consumption of a target device in a preset time period;
a response module 44, configured to respond to the power consumption request, to obtain a first total power consumption of the target device in a first state and a second total power consumption of the target device in a second state;
a calculating module 46, configured to use a sum of the first total power consumption and the second total power consumption as the total power consumption.
Through the embodiment, a power consumption request sent by a terminal is received, wherein the power consumption request is used for acquiring the total power consumption of target equipment in a preset time period; responding to the power consumption request, and acquiring first total power consumption of the target equipment in a first state and second total power consumption of the target equipment in a second state; and taking the sum of the first total electricity consumption and the second total electricity consumption as the total electricity consumption, namely determining the total electricity consumption according to the first total electricity consumption of the target equipment in the first state and the second total electricity consumption of the target equipment in the second state. By adopting the technical scheme, the problems that in the related technology, the cost of the hardware module is higher, the whole cost of the intelligent equipment can be increased by the intelligent equipment through increasing the power consumption of the hardware module sensing and calculating the intelligent equipment, and the like are solved, and the whole cost of the intelligent equipment is reduced.
It should be noted that: the first state includes: a powered-on state in which the target device is, the second state comprising: the target device is in a door-open state.
It should be noted that the apparatus for determining the total power consumption further includes an obtaining module, and in an exemplary embodiment, the obtaining module is further configured to obtain a first unit power consumption of the target device in the first state and a second unit power consumption of the target device in the second state; acquiring a first duration of the target device in the first state and a second duration of the target device in the second state; and the calculation module is also used for taking the product of the first unit electricity consumption and the first duration as the first total electricity consumption and taking the product of the second unit electricity consumption and the second duration as the second total electricity consumption.
In an exemplary embodiment, the obtaining module is further configured to obtain a first duration of the target device in the first state and a second duration of the target device in the second state; acquiring a first unit electricity consumption of the target equipment in the first state and a second unit electricity consumption of the target equipment in the second state; and the calculation module is also used for taking the product of the first unit electricity consumption and the first duration as the first total electricity consumption and taking the product of the second unit electricity consumption and the second duration as the second total electricity consumption.
In other words, a first unit power consumption of the target device in the first state, a second unit power consumption of the target device in the second state, a first duration of the target device in the first state, and a second duration of the target device in the first state are obtained, the first unit power consumption of the target device in the first state is multiplied by the first duration of the target device in the first state to obtain a first total power consumption, and the second unit power consumption of the target device in the second state is multiplied by the second duration of the target device in the first state to obtain a second total power consumption.
As can be seen from the two embodiments, the first unit power consumption of the target device in the first state and the second unit power consumption of the target device in the second state may be obtained first, or the first duration of the target device in the first state and the second duration of the target device in the first state may be obtained first.
In an exemplary embodiment, the obtaining module is further configured to obtain a third total power consumption of the first component in the target device in the second state and a fourth total power consumption of the second component in the target device in the second state; and taking the sum of the third total power consumption and the fourth total power consumption as the second total power consumption.
It is understood that the target device includes: and a first component and a second component which can be understood as a refrigerating chamber and a freezing chamber in the case that the target device is an intelligent refrigerator, and the second total power consumption is determined by adding a third total power consumption of the first component in the second state and a fourth total power consumption of the second component in the second state.
Further, the target device may further include: the method comprises the following steps that under the condition that target equipment is an intelligent refrigerator, the first assembly and the second assembly can be understood as a refrigerating chamber, a freezing chamber and a soft freezing chamber, and under the condition that the target equipment comprises three assemblies, third total power consumption of the first assembly in the target equipment in a second state, fourth total power consumption of the second assembly in the target equipment in the second state and fifth total power consumption of the third assembly in the target equipment in the second state are obtained; and taking the sum of the third total electricity consumption, the fourth total electricity consumption and the fifth total electricity consumption as the second total electricity consumption.
In an exemplary embodiment, the obtaining module is further configured to obtain a third unit power consumption of the first component in the second state and a fourth unit power consumption of the second component in the second state, where the second unit power consumption includes: the third unit electricity consumption amount and the fourth unit electricity consumption amount; obtaining a third duration of the first component in the second state and a fourth duration of the second component in the second state, wherein the second duration comprises: the third duration and the fourth duration; taking a product of the third unit electricity usage and the third duration as the third total electricity usage, and taking a product of the fourth unit electricity usage and the fourth duration as the fourth total electricity usage.
In other words, the third duration of the first component in the second state, the fourth duration of the second component in the second state, the third unit power consumption of the first component in the second state, and the fourth unit power consumption of the second component in the second state are obtained, the third duration of the first component in the second state is multiplied by the third unit power consumption of the first component in the second state to obtain a third total power consumption, and the fourth duration of the second component in the second state is multiplied by the fourth unit power consumption of the second component in the second state to obtain a second total power consumption.
It should be noted that, in the embodiment of the present invention, the third duration of the first component in the second state and the fourth duration of the second component in the second state may be obtained first, or the third unit electric quantity of the first component in the second state and the fourth unit electric quantity of the second component in the second state may be obtained first.
In an exemplary embodiment, the obtaining module is further configured to obtain a first time from false to true to false of the state identifier corresponding to the second state of the first component, and use the first time as the third duration; and acquiring a second time from false to true to false of the state identifier corresponding to the second state of the second component, and taking the second time as the fourth duration.
It is understood that the third duration is obtained by: the state of the first component identifies a first time from false to true to false, i.e., a first time from off to on to off of the state of the first component; the manner of obtaining the fourth duration is: the state of the second component identifies a second time from false to true to false, i.e., a second time from off to on to off of the state of the second component.
In an exemplary embodiment, the obtaining module is further configured to obtain a first unit electricity consumption of the target device in the first state and a second unit electricity consumption of the target device in the second state in a specific manner as follows: obtaining historical power consumption of the target device, wherein the historical power consumption comprises: a first historical power consumption of the target device in the first state and a second historical power consumption of the target device in the second state; determining the first unit electricity usage from the first historical electricity usage, and determining the second unit electricity usage from the second historical electricity usage.
Specifically, the first historical power consumption of the first preset time period of the first state of the target device is acquired, the first historical power consumption is divided by the first preset time period, the quotient of the first historical power consumption and the first preset time period is used as the first unit power consumption, the second historical power consumption of the first preset time period of the second state of the target device is acquired, the second historical power consumption is divided by the first preset time period, and the quotient of the second historical power consumption and the first preset time period is used as the second unit power consumption.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, receiving a power consumption request sent by a terminal, wherein the power consumption request is used for acquiring the total power consumption of target equipment in a preset time period;
s2, responding to the power consumption request, and acquiring a first total power consumption of the target equipment in a first state and a second total power consumption of the target equipment in a second state;
and S3, taking the sum of the first total electricity consumption and the second total electricity consumption as the total electricity consumption.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving a power consumption request sent by a terminal, wherein the power consumption request is used for acquiring the total power consumption of target equipment in a preset time period;
s2, responding to the power consumption request, and acquiring a first total power consumption of the target equipment in a first state and a second total power consumption of the target equipment in a second state;
and S3, taking the sum of the first total electricity consumption and the second total electricity consumption as the total electricity consumption.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for determining total power usage, comprising:
receiving a power consumption request sent by a terminal, wherein the power consumption request is used for acquiring the total power consumption of target equipment in a preset time period;
responding to the power consumption request, and acquiring first total power consumption of the target equipment in a first state and second total power consumption of the target equipment in a second state;
and taking the sum of the first total electricity consumption and the second total electricity consumption as the total electricity consumption.
2. The method for determining the total power consumption according to claim 1, wherein the obtaining of a first total power consumption of the target device in a first state and a second total power consumption of the target device in a second state comprises:
acquiring a first unit electricity consumption of the target equipment in the first state and a second unit electricity consumption of the target equipment in the second state; and
acquiring a first duration of the target device in the first state and a second duration of the target device in the second state;
taking a product of the first unit electricity consumption amount and the first duration as the first total electricity consumption amount, and taking a product of the second unit electricity consumption amount and the second duration as the second total electricity consumption amount.
3. The method for determining the total power consumption according to claim 2, wherein obtaining a second total power consumption of the target device in a second state comprises:
acquiring a third total power consumption of a first component in the target equipment in the second state and a fourth total power consumption of a second component in the target equipment in the second state;
and taking the sum of the third total power consumption and the fourth total power consumption as the second total power consumption.
4. The method for determining the total power consumption according to claim 3, wherein obtaining a third total power consumption of a first component in the target device in the second state and a fourth total power consumption of a second component in the target device in the second state comprises:
acquiring a third unit electricity consumption of the first component in the second state and a fourth unit electricity consumption of the second component in the second state, wherein the second unit electricity consumption comprises: the third unit electricity consumption amount and the fourth unit electricity consumption amount; and
obtaining a third duration of the first component in the second state and a fourth duration of the second component in the second state, wherein the second duration comprises: the third duration and the fourth duration;
taking a product of the third unit electricity usage and the third duration as the third total electricity usage, and taking a product of the fourth unit electricity usage and the fourth duration as the fourth total electricity usage.
5. The method for determining total power usage of claim 4, wherein obtaining a third duration of the first component in the second state and a fourth duration of the second component in the second state comprises:
acquiring first time from false to true to false of a state identifier corresponding to a second state of the first component, and taking the first time as the third duration; and
and acquiring a second time from false to true to false of the state identifier corresponding to the second state of the second component, and taking the second time as the fourth duration.
6. The method for determining the total power consumption according to claim 2, wherein obtaining a first unit power consumption of the target device in the first state and a second unit power consumption of the target device in the second state comprises:
obtaining historical power consumption of the target device, wherein the historical power consumption comprises: a first historical power consumption of the target device in the first state and a second historical power consumption of the target device in the second state;
determining the first unit electricity usage from the first historical electricity usage, and determining the second unit electricity usage from the second historical electricity usage.
7. The method for determining total power usage of any one of claims 1 to 6, wherein the first status comprises: a powered-on state in which the target device is, the second state comprising: the target device is in a door-open state.
8. An apparatus for determining a total power consumption, comprising:
the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving a power consumption request sent by a terminal, and the power consumption request is used for acquiring the total power consumption of target equipment in a preset time period;
the response module is used for responding to the power consumption request and acquiring first total power consumption of the target equipment in a first state and second total power consumption of the target equipment in a second state;
and the calculating module is used for taking the sum of the first total electricity consumption and the second total electricity consumption as the total electricity consumption.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202110475867.2A 2021-04-29 2021-04-29 Method and device for determining total power consumption, storage medium and electronic device Pending CN113327175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110475867.2A CN113327175A (en) 2021-04-29 2021-04-29 Method and device for determining total power consumption, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110475867.2A CN113327175A (en) 2021-04-29 2021-04-29 Method and device for determining total power consumption, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN113327175A true CN113327175A (en) 2021-08-31

Family

ID=77413977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110475867.2A Pending CN113327175A (en) 2021-04-29 2021-04-29 Method and device for determining total power consumption, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113327175A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103824442A (en) * 2014-03-05 2014-05-28 安徽汉高电子科技有限公司 Real-time inquiring system for electricity utilization information based on electricity network
CN106780113A (en) * 2016-11-28 2017-05-31 国网山东省电力公司济宁供电公司 electricity consumption data management system and method
CN206450004U (en) * 2016-11-21 2017-08-29 合肥达米尼电气科技有限公司 A kind of tele-control system of intelligent refrigerator
CN109034911A (en) * 2018-08-17 2018-12-18 云丁智能科技(北京)有限公司 The method and device of the electricity charge amount of money is calculated based on time-of-use tariffs
CN110067109A (en) * 2019-04-24 2019-07-30 珠海格力电器股份有限公司 A kind of washing machine method for determining power consumption, device, storage medium and washing machine
CN110426542A (en) * 2019-08-05 2019-11-08 广州供电局有限公司 Electricity consumption monitoring device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103824442A (en) * 2014-03-05 2014-05-28 安徽汉高电子科技有限公司 Real-time inquiring system for electricity utilization information based on electricity network
CN206450004U (en) * 2016-11-21 2017-08-29 合肥达米尼电气科技有限公司 A kind of tele-control system of intelligent refrigerator
CN106780113A (en) * 2016-11-28 2017-05-31 国网山东省电力公司济宁供电公司 electricity consumption data management system and method
CN109034911A (en) * 2018-08-17 2018-12-18 云丁智能科技(北京)有限公司 The method and device of the electricity charge amount of money is calculated based on time-of-use tariffs
CN110067109A (en) * 2019-04-24 2019-07-30 珠海格力电器股份有限公司 A kind of washing machine method for determining power consumption, device, storage medium and washing machine
CN110426542A (en) * 2019-08-05 2019-11-08 广州供电局有限公司 Electricity consumption monitoring device

Similar Documents

Publication Publication Date Title
CN106487928B (en) Message pushing method and device
CN109147788B (en) Local voice library updating method and device
CN105425603A (en) Method and apparatus for controlling intelligent equipment
US20180164758A1 (en) Information processing method, cloud service platform and information processing system
CN108986807B (en) Device control method and apparatus, storage medium, and electronic apparatus
CN106130972A (en) Resource access control method and device
CN111736938B (en) Information display method and device, storage medium and electronic device
CN110320813B (en) Power management method and device for Internet of things equipment
CN114697150A (en) Command issuing method and device, storage medium and electronic device
CN109561329A (en) Control method, mobile terminal and the computer readable storage medium of smart television
CN113327175A (en) Method and device for determining total power consumption, storage medium and electronic device
CN110381441B (en) Method and device for managing position of terminal in operating system
WO2023159821A1 (en) Method and device for determining operational behavior, storage medium, and electronic device
CN107577150A (en) A kind of electric quantity controlling method, electronic equipment and computer-readable recording medium
CN109409883B (en) Cooperative processing method based on intelligent contract, household appliance and server
CN105302808B (en) A kind of method and apparatus reducing load peak in user group matching process
CN114286431B (en) Method and device for starting low-power mode, storage medium and electronic device
CN110909036A (en) Functional module recommendation method and device
CN113064677B (en) Application running method and device, storage medium and electronic device
CN115200146A (en) Method and device for sending closing command, storage medium and electronic device
CN111426018B (en) Air conditioning equipment control method and device, air conditioning equipment and storage medium
CN110445784B (en) Display method and device of operation data and energy system
CN113435642A (en) Edible strategy determination method and device, storage medium and electronic device
CN106210120A (en) A kind of recommendation method of server and device thereof
CN110781878A (en) Target area determination method and device, storage medium and electronic device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210831