Household appliance product and power consumption data storage method thereof
By using power consumption statistics modules and controllers in home appliances to coordinate cloud and local storage, the problems of high storage performance and easy data loss in the existing technology are solved, and safe storage of power consumption data and resource saving are achieved.
Patent Information
- Application Number
- CN202211075052.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-02
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-09-02
AI Technical Summary
When existing home appliances store power consumption data, the storage performance requirements are high and cannot be effectively reduced, and the data is easily lost when offline.
Use the power consumption statistics module to count the power consumption data of home appliances, upload it to the cloud when online, temporarily store it in the local storage module when offline, and migrate it to the cloud after it comes back online. The controller coordinates cloud and local storage to ensure data integrity and reduce storage performance requirements.
It effectively reduces the storage performance requirements of home appliances, avoids the loss of power consumption data, ensures data integrity and saves local storage resources.
Smart Images

Figure CN115514776B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of household electrical appliances, and in particular to a household electrical appliance and a method for storing power consumption data thereof. Background Art
[0002] Energy consumption is one of the important indicators for evaluating the performance of home appliances. Currently, the world pays close attention to the energy consumption of home appliances. The power consumption marked on home appliances is usually the power consumption under calibrated conditions, which is quite different from the actual power consumption of home appliances. Therefore, it is necessary to count and store the actual power consumption. Existing home appliances usually store the counted power consumption in a local storage module. This storage method has high requirements on the storage performance of home appliances. Summary of the invention
[0003] The purpose of the embodiment of the present invention is to provide a household appliance product and a method for storing power consumption data thereof, which can store offline power consumption data of the household appliance product when it is offline in a local storage module, and upload the power consumption data to the cloud for storage when the household appliance product is connected, thereby reducing the storage performance requirements of the household appliance product.
[0004] To achieve the above object, an embodiment of the present invention provides a household appliance product, including:
[0005] A power consumption statistics module, used for counting the power consumption data of the load of the household electrical appliance, wherein the power consumption counting register of the power consumption statistics module is a read-clear register;
[0006] A storage module, used for storing the power consumption data;
[0007] Controller for:
[0008] When the home appliance product is online, in response to a timed query instruction, the power consumption data is acquired and uploaded to the cloud so that the cloud saves the power consumption data;
[0009] When the home appliance product is offline, in response to a timed temporary storage instruction, the power consumption data is acquired and temporarily stored in the storage module, so that the temporarily stored power consumption data of the storage module can be migrated to the cloud after the home appliance product is back online.
[0010] As an improvement of the above solution, the controller is used to: when the home appliance product is online, in response to a timed query instruction, obtain and upload the power consumption data to the cloud so that the cloud can save the power consumption data, specifically including:
[0011] When the home appliance product is online, in response to a timed query instruction, the power consumption data is obtained to be temporarily stored in a designated cache area, and the power consumption data is uploaded to the cloud;
[0012] When the success mark information is received, the power consumption data in the cache area is deleted; wherein the success mark information is a feedback value returned by the cloud after completing the reception of the power consumption data.
[0013] As an improvement of the above solution, the controller is also used for:
[0014] When the home appliance product is online, in response to a repeated query instruction, the power consumption data in the cache area is uploaded to the cloud;
[0015] The repeat query instruction is sent from the cloud to the home appliance product, and the cloud sends the repeat query instruction in the following manner:
[0016] When the cloud does not receive the power consumption data within a preset return time threshold after sending the query instruction, the repeated query instruction is sent to the home appliance product until the number of repeated sending of the repeated query instruction reaches a preset number of retransmissions or the cloud receives the power consumption data; wherein, the query instruction includes a timed query instruction and a repeated query instruction.
[0017] As an improvement of the above solution, the timing query instruction is sent from the cloud to the home appliance product, and the cloud sends the timing query instruction in the following manner:
[0018] When the home appliance is online, a timing query instruction is periodically sent to the home appliance based on a preset timing query rule.
[0019] As an improvement of the above solution, the controller is also used for:
[0020] In response to an initial query instruction, determining whether the initial query instruction matches the timing query rule;
[0021] When the initial query instruction matches the preset timed query rule, acquiring and uploading the power consumption data and the temporarily stored power consumption data to the cloud;
[0022] When the initial query instruction does not match the scheduled query rule, migrating the temporarily stored power consumption data to the cloud;
[0023] The initial query instruction is sent from the cloud to the home appliance, and the cloud sends the initial query instruction in the following manner: when the cloud and the home appliance complete the networking operation, the initial query instruction is sent to the home appliance.
[0024] As an improvement to the above solution, the timed temporary storage instruction is triggered in the following manner:
[0025] When the home appliance product is offline, the time node of uploading the power consumption data to the cloud most recently is recorded as the offline time node; the offline time node is used as the initial time node and based on the preset timing query rules, the timing temporary storage instruction is triggered regularly until the home appliance product is back online.
[0026] As an improvement of the above solution, it also includes: the cloud is connected to the user terminal, and the cloud responds to the power consumption viewing instruction sent by the user terminal, generates and feeds back power consumption display data to the user terminal for user viewing.
[0027] As an improvement of the above-mentioned scheme, the household appliance is a refrigerator, the controller is a display panel, the refrigerator also includes a main control board, the power consumption statistics module is connected to the main control board through a first universal asynchronous serial port, the display board is connected to the main control board through a second universal asynchronous serial port, and the display panel obtains the power consumption data obtained by the power consumption statistics module through the main control board.
[0028] As an improvement of the above solution, the power consumption data at least includes power consumption, and the power consumption statistics module counts the power consumption of the load of the household appliance in the following manner:
[0029] Acquiring the current and voltage of the load, and calculating the active instantaneous power of the load according to the current and the voltage;
[0030] Performing an integration operation on the active instantaneous power to obtain the active energy of the load;
[0031] An electric energy pulse is generated according to the active energy, and power consumption is calculated according to the electric energy pulse.
[0032] To achieve the above object, an embodiment of the present invention further provides a method for storing power consumption data of household appliances, the method comprising:
[0033] When the home appliance product is online, in response to the timing query instruction, the power consumption data obtained by the power consumption statistics module is obtained, and the power consumption data is uploaded to the cloud so that the cloud saves the power consumption data; wherein the power consumption counting register of the power consumption statistics module is a read-clear register;
[0034] When the home appliance product is offline, in response to a timed temporary storage instruction, the power consumption data is acquired and temporarily stored in a preset storage module, so that the temporarily stored power consumption data of the storage module can be migrated to the cloud after the home appliance product is back online.
[0035] Compared with the prior art, the household appliance product and the method for storing power consumption data thereof disclosed in the embodiments of the present invention include a power consumption statistics module and a storage module. The power consumption statistics module is used to count the power consumption data of the load of the household appliance product and clear its own power consumption counting register after sending the power consumption data to the controller; when the household appliance product is online, in response to a timed query instruction, the power consumption data is obtained and uploaded to the cloud so that the cloud can save the power consumption data; when the household appliance product is offline, in response to a timed temporary storage instruction, the power consumption data is obtained and temporarily stored in the storage module so that the temporarily stored power consumption data of the storage module can be migrated to the cloud after the household appliance product is back online. In an embodiment of the present invention, a power consumption statistics module is used to perform power consumption data statistics on the load of household appliances. Different networking conditions correspond to different power consumption data storage methods. When connected to the network, the data is uploaded to the cloud, and there is no need to store all power consumption data locally, thereby reducing the requirements for the storage performance of household appliances. When not connected to the network, the power consumption data is temporarily stored locally to avoid the loss of power consumption data and ensure the integrity of the power consumption data. The storage of power consumption data and the saving of local storage resources are taken into account through the coordinated control of cloud storage and local storage. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a structural schematic diagram of a household appliance networking system provided by an embodiment of the present invention;
[0037] Figure 2 is a first working flow diagram of a controller provided by an embodiment of the present invention;
[0038] Figure 3 is a second working flow diagram of the controller provided by an embodiment of the present invention;
[0039] Figure 4 is a third working flow diagram of the controller provided in an embodiment of the present invention;
[0040] Figure 5 This is a first workflow diagram of the cloud provided by an embodiment of the present invention;
[0041] Figure 6 is a fourth working flow diagram of the controller provided by an embodiment of the present invention;
[0042] Figure 7 is a fifth working flow chart of the controller 12 provided in an embodiment of the present invention;
[0043] Figure 8 is a structural schematic diagram of another household appliance networking system provided by an embodiment of the present invention;
[0044] Fig. 9 It is a power consumption display diagram provided by an embodiment of the present invention;
[0045] Fig.10 is a circuit structure diagram of a power consumption statistics module provided in an embodiment of the present invention;
[0046] Fig.11 It is a circuit structure diagram of the power consumption statistics module provided in an embodiment of the present invention.
[0047] Among them, 1. Home appliances; 2. Cloud; 11. Power consumption statistics module; 12. Controller; 13. Storage module; 14. Load; 3. Communication module; 4. User terminal. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] In the description of the present application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0050] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0051] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0052] See also Figure 1 , Figure 11 is a schematic diagram of the structure of a household appliance networking system provided by an embodiment of the present invention. The household appliance networking system described in the embodiment of the present invention includes a household appliance 1 and a cloud 2 (cloud server). The household appliance includes a power consumption statistics module 11, a controller 12 and a storage module 13. The household appliance 1 also includes a load 14. In order to enable the household appliance 1 to be connected to the cloud 2, the household appliance networking system is further provided with a communication module 3. The communication module 3 may be a WI FI module or other communication modules, which are not limited here. The power consumption statistics module 11 is connected to the controller 12. The controller 12 is connected to the cloud 2 through the communication module 3. The controller 12 is also connected to the storage module 13. The power consumption statistics module 11 is used to count the power consumption data of the load 14 of the household appliance 1 and send the power consumption data to the controller 12 by responding to the data acquisition instruction of the controller 12. After the power consumption data is sent to the controller 12, the power consumption counting register in the power consumption statistics module is cleared to start the recalculation of the power consumption data. It can be understood that the power consumption counting register of the power consumption statistics module 11 is a read-clear register. When the household appliance 1 is powered on for the first time, the power consumption statistics module 11 is first initialized and the power consumption counting register is set to be cleared after reading. That is, each time the power consumption data of the power consumption module within T time is queried, the accumulated power consumption data of the power consumption statistics module 11 is set to zero. The next time it is queried after T time, it is the power consumption data of the household appliance 1 within this T time. The power consumption data may include at least one of current data, voltage data, and power consumption. When the power consumption data is uploaded to the cloud or stored in the storage module, the time point corresponding to the power consumption data will be noted. Since the cloud stores the power consumption data in units of T time, the time corresponding to the power consumption data that can be viewed by the user is an integer multiple of T time.
[0053] In an embodiment of the present invention, the controller 12 is used to periodically obtain the power consumption data counted by the power consumption statistics module 11 and upload it to the cloud 2 when the home appliance 1 is in an online state, so as to realize cloud storage of the power consumption data of the home appliance. When the home appliance 1 is not in an online state, the power consumption data counted by the power consumption statistics module 11 is periodically obtained and stored in a local storage module 13. Specifically, the controller 12 is used to: when the home appliance 1 is online, in response to a scheduled query instruction, obtain and upload the power consumption data to the cloud 2 so that the cloud 2 can save the power consumption data; when the home appliance 1 is offline, in response to a scheduled temporary storage instruction, obtain and temporarily store the power consumption data in the storage module 13, so as to migrate the temporarily stored power consumption data of the storage module 13 to the cloud 2 after the home appliance 1 is back online.
[0054] For example, see Figure 2 , Figure 2 is a first working flow chart of the controller 12 provided in an embodiment of the present invention, wherein the controller 12 is used to execute steps S11 to S16:
[0055] S11, obtaining the networking status of the household appliance 1, and proceeding to step S12;
[0056] S12, determine whether the home appliance product 1 is online, if so, proceed to step S13, if not, proceed to step S15;
[0057] S13, in response to the timing query instruction, obtaining power consumption data from the power consumption statistics module 11, and then entering step S14;
[0058] S14, uploading the power consumption data to the cloud so that the cloud 2 can save the power consumption data.
[0059] S15, in response to the timing temporary storage instruction, obtaining power consumption data from the power consumption statistics module 11, and then entering step S16;
[0060] S16, sending the power consumption data to the local storage module 13 so that the storage module 13 temporarily stores the power consumption data, and migrating the temporarily stored power consumption data of the storage module 13 to the cloud 2 after the home appliance 1 is back online.
[0061] Compared with the prior art, the embodiment of the present invention adopts a power consumption statistics module 11 to perform power consumption data statistics on the load of the household appliance 1. Different networking conditions correspond to different power consumption data storage methods. The data is uploaded to the cloud 2 when connected to the network. There is no need to store all power consumption data locally, which reduces the storage performance requirements for the household appliance 1. When not connected to the network, the power consumption data is temporarily stored locally to avoid the loss of power consumption data and ensure the integrity of the power consumption data. The storage of power consumption data and the saving of local storage resources are taken into account through the coordinated control of cloud storage and local storage.
[0062] In a preferred embodiment, specifically, the controller 12 is used for: when the household appliance 1 is online, responding to a timed query instruction, obtaining and uploading the power consumption data to the cloud 2 so that the cloud 2 saves the power consumption data, specifically including: when the household appliance 1 is online, responding to a timed query instruction, obtaining the power consumption data to temporarily store it in a designated cache area, and uploading the power consumption data to the cloud; when receiving a success flag information, deleting the power consumption data in the cache area; wherein the success flag information is a feedback value returned by the cloud after completing the reception of the power consumption data.
[0063] For example, see Figure 3 , Figure 3is a second working flow chart of the controller 12 provided in an embodiment of the present invention, wherein the controller 12 is used to execute steps S17 to S22:
[0064] S17, receiving a timing query instruction, and then proceeding to step S18;
[0065] S18, in response to the timing query instruction, obtaining power consumption data from the power consumption statistics module 11, and then entering step S19;
[0066] S19, temporarily storing the power consumption data in a designated buffer area, and then proceeding to step S20;
[0067] S20, uploading the power consumption data to the cloud 2, and then proceeding to step S21;
[0068] S21, determine whether the success mark information returned by the cloud 2 is received, if so, enter step S22, if not, enter other control logic;
[0069] S22, deleting the power consumption data in the buffer area.
[0070] Specifically, the data sent by the household appliance 1 to the cloud 2 may be lost during the transmission process due to communication interference, etc., resulting in the cloud 2 being unable to successfully receive the data. By specifying a local cache area, the cache area is located in the storage module 13 and is used to temporarily store the data to be sent to the cloud 2. When the cloud 2 completes data reception, it will return a success mark information to the household appliance 1. After receiving the success mark information, the controller 12 determines that the data upload is completed and deletes the data stored in the cache area, thereby ensuring the integrity of the power consumption data.
[0071] In a preferred embodiment, the controller is also used for: when the household appliance 1 is online, in response to a repeated query instruction, uploading the power consumption data in the cache area to the cloud 2; wherein, the repeated query instruction is sent from the cloud 2 to the household appliance 1, and the cloud 2 sends the repeated query instruction in the following manner: when the cloud 2 does not receive the power consumption data within a preset return time threshold after sending the query instruction, sending the repeated query instruction to the household appliance 1 until the repeated query instruction is sent a preset number of times or the cloud 2 receives the power consumption data; wherein, the query instruction includes a timed query instruction and a repeated query instruction.
[0072] Specifically, the query instruction includes a timed query instruction and a repeated query instruction, and the cloud 2 actively queries the power consumption data of the home appliance 1 by sending the query instruction. The difference between the timed query instruction and the repeated query instruction is that the timed query instruction is a query instruction issued at a specific time point, and the repeated query instruction is a query instruction with a duplicate check mark added. The controller 12 can determine the data to be uploaded by judging whether the received query instruction has a duplicate check mark. When the home appliance 1 is online, the data transmitted during the communication between the home appliance 1 and the cloud 2 may be lost, so that the receiving party cannot successfully receive the data. For example, the request instruction for power consumption data sent by the cloud 2 to the home appliance 1 is lost during the transmission process. At this time, the controller 12 cannot obtain the data to be transmitted to the cloud 2, or the data transmitted by the controller 12 to the cloud 2 is lost during the transmission, resulting in the cloud 2 being unable to receive the data. In order to deal with the situation where the device is online but the network is abnormal for a short time, a repeated query function is set. The cloud 2 sets a timeout time. If it is not received within the timeout time, it is determined as not received. The cloud 2 will issue a scheduled query instruction only when it determines that the home appliance 1 is online. If the corresponding data is not received within the preset return time threshold (timeout time) after the query instruction is issued, a repeated query instruction will be issued. When the controller 12 receives the repeated query instruction, it uploads the power consumption data in the cache area to the cloud 2 and clears the cache area when receiving the success mark information returned by the cloud 2; in order to save resources of the cloud 2, the time interval between the repeated query instructions issued continuously is gradually increased, and the query of power consumption data is suspended when the repeated query instruction is issued too many times in a row.
[0073] For example, see Figure 4 , Figure 4 is a third working flow chart of the controller 12 provided in an embodiment of the present invention, wherein the controller 12 is used to execute steps S23 to S27:
[0074] S23, receiving a repeat query instruction, and then proceeding to step S24;
[0075] S24, in response to the repeated query instruction, obtaining power consumption data from the cache area, and then entering step S25;
[0076] S25, uploading the power consumption data to the cloud 2, and then proceeding to step S26;
[0077] S26, determine whether the success mark information returned by the cloud 2 is received, if so, enter step S27, if not, enter other control logic.
[0078] S27, deleting the power consumption data in the cache area.
[0079] In a preferred embodiment, the scheduled query instruction is sent from the cloud 2 to the home appliance 1, and the cloud 2 sends the scheduled query instruction in the following manner: when the home appliance 1 is online, based on a preset scheduled query rule, the scheduled query instruction is periodically sent to the home appliance 1.
[0080] Specifically, the cloud 2 actively queries the power consumption data of the home appliance 1 by sending a scheduled query instruction. For example, the user can set a scheduled query rule in the cloud 2, for example, the scheduled query rule is a scheduled query every hour. When the home appliance 1 is connected to the cloud 2 for the first time, the information of the home appliance 1 (such as the unique number of the home appliance 1, product type, model, etc., which are not limited here) is entered in the cloud 2. Then, the cloud 2 uses the time point when the first networking operation is completed as the initial time, and sends a scheduled query instruction to the controller 12 of the home appliance 1 every hour when the home appliance 1 is online. The controller 12 responds to the scheduled query instruction. The power consumption data obtained by statistics is obtained from the power consumption statistics module 11. Since the storage mode of the power consumption counting register of the power consumption statistics module 11 is cleared after reading, the power consumption data obtained by the cloud 2 from the power consumption statistics module 11 through the timed query instruction are all the power consumption data of the household appliance 1 in the previous hour; wherein, there is a heartbeat connection between the refrigerator itself and the cloud 2. For example, if no heartbeat data of the refrigerator is received for 5 consecutive minutes, the cloud 2 will determine that the device is offline. When the device is offline, the cloud 2 will not make regular queries. Generally, the timing time interval of the regular query rule is greater than the time interval required to determine that the household appliance 1 is offline.
[0081] For example, see Figure 5 , Figure 5 is a first working flow diagram of the cloud 2 provided in an embodiment of the present invention, wherein the cloud 2 is used to execute steps S28 to S31:
[0082] S28, determine whether the home appliance 1 is online, if so, go to step S29, if not, go to other control logics;
[0083] S29, obtain the current time, and then proceed to step S30;
[0084] S30, based on the preset timing query rule, determine whether the current time is the time node of the timing query, if so, enter step S31, if not, enter other control logic;
[0085] S31 , sending a timing query instruction to the home appliance 1 .
[0086] In a preferred embodiment, the controller 12 is also used to: respond to an initial query instruction, determine whether the initial query instruction matches the scheduled query rule; when the initial query instruction matches the preset scheduled query rule, obtain and upload the power consumption data and the temporarily stored power consumption data to the cloud 2; when the initial query instruction does not match the scheduled query rule, migrate the temporarily stored power consumption data to the cloud 2; wherein, the initial query instruction is sent from the cloud 2 to the home appliance 1, and the cloud 2 sends the initial query instruction in the following manner: when the cloud 2 and the home appliance 1 complete the networking operation, send the initial query instruction to the home appliance 1.
[0087] Specifically, the query instruction sent by the cloud 2 also includes an initial query instruction. There is a long time interval between the first power-on and networking of the home appliance 1 or a long time interval between disconnection and reconnection. Therefore, when the networking operation is completed, the local storage module 13 may already store power consumption data. Therefore, when the cloud 2 detects that the networking operation with the home appliance 1 is completed, it sends an initial query instruction to the home appliance 1. After receiving the initial query instruction, the controller 12 of the home appliance 1 will judge the current time. If the current time matches the preset timed query rule, that is, the current time is exactly the time node of the timed query, then the power consumption data is obtained from the power consumption statistics module 11 and the temporarily stored power consumption data is obtained from the storage module 13 and sent to the cloud 2; if the current time does not match the preset timed query rule, that is, the current time does not belong to the time node of the timed query, then only the temporarily stored power consumption data in the storage module 13 is sent to the cloud 2.
[0088] For example, see Figure 6 , Figure 6 is a fourth working flow chart of the controller 12 provided in an embodiment of the present invention, wherein the controller 12 is used to execute steps S32 to S35:
[0089] S32, receiving the initial query instruction, and then proceeding to step S33;
[0090] S33, determine whether the initial query instruction matches the scheduled query rule, if so, proceed to step S34, if not, proceed to step S35;
[0091] S34, obtaining power consumption data from the power consumption statistics module 11 and extracting temporarily stored power consumption data from the storage module 13, and sending these two sets of data to the cloud 2;
[0092] S35 , migrating the temporarily stored power consumption data in the storage module 13 to the cloud 2 .
[0093] In a preferred implementation, the timed temporary storage instruction is triggered in the following manner: when the household appliance 1 is offline, the time node of the most recent upload of the power consumption data to the cloud 2 is recorded as an offline time node; using the offline time node as the initial time node and based on a preset timed query rule, the timed temporary storage instruction is triggered regularly until the household appliance 1 is back online.
[0094] Specifically, when the device is offline, the cloud 2 cannot issue a query instruction at this time. At this time, when the home appliance 1 detects that it is not connected to the Internet or the network cannot realize cloud-network data transmission after being connected to the Internet, it first records the offline time. The home appliance 1 will record the time T0 when the cloud 2 last queried the power consumption data. After the home appliance 1 is offline, assuming that the scheduled query rule is to query once every T time, then at the time point T0+T, the scheduled temporary storage instruction will be triggered. The controller 12 responds to the scheduled temporary storage instruction to read the power consumption data from the power consumption statistics module 11 and temporarily stores it in the local storage module 13, and notes the time point. After the device is connected to the Internet, the cloud 2 will immediately issue an initial query instruction. At this time, it is determined whether the query time point every T time has arrived based on the issuance time point of the initial query instruction. If the time is not up, the device will upload all the data in the local storage module 13 to the cloud 2. If the query time point is reached, the power consumption data of the power consumption module within the current T time will be queried once, and the data in the storage module 13 will be uploaded uniformly. The cloud 2 stores the power consumption data and the corresponding time every T minutes. In this way, the power consumption data of the device within each time period T can be accurately distinguished, ensuring that the power consumption data is accurate when the user views it.
[0095] For example, see Figure 7 , Figure 7 is a fifth working flow chart of the controller 12 provided in an embodiment of the present invention, wherein the controller 12 is used to execute steps S36 to S42:
[0096] S36, obtaining the networking status of the household appliance 1, and then proceeding to step S37;
[0097] S37, determine whether the home appliance 1 is offline, if so, go to step S38, if not, go to other control logic;
[0098] S38, recording the time node of uploading the power consumption data to the cloud 2 most recently as the offline time node, and then proceeding to step S39;
[0099] S39, taking the offline time node as the initial time node, and calculating the scheduled storage time node based on the preset scheduled query rule, and then entering step S40; preferably, the scheduled query rule here is consistent with the scheduled query rule of the cloud 2.
[0100] S40, obtaining the current time, and then proceeding to step S41;
[0101] S41, determine whether the current time matches the time node of the timing storage, if so, proceed to step S42, if not, return to step S36;
[0102] S42, triggering the timing temporary storage instruction.
[0103] In a preferred embodiment, it also includes: the cloud 2 is connected to the user terminal, and the cloud 2 generates and feeds back the power consumption display data to the user terminal in response to the power consumption data viewing instruction sent by the user terminal for the user to view.
[0104] For example, see Figure 8 , Figure 8 1 is a schematic diagram of another household appliance 1 networking system provided by an embodiment of the present invention. In addition to the household appliance 1 and the cloud 2, the household appliance 1 networking system provided by the embodiment of the present invention further includes a user terminal 4. The user terminal 4 can be an electronic device such as a tablet, a computer, a mobile phone, etc., which is not limited here. For example, a user can obtain data stored in the cloud 2 through a mobile phone APP, and then calculate and display the power consumption per hour, day, month, and year on the APP according to different display interfaces, such as Fig. 9 As shown in the power consumption display graph, users can switch at the top to view the power consumption per hour within 24 hours, or switch to the 7-day option to view the power consumption in the past 7 days. Users can set the interval T for the cloud 2 to send power consumption queries through the mobile phone APP as needed. The smaller T is, the more detailed the power consumption data will be.
[0105] In a preferred embodiment, the household appliance 1 is a refrigerator, the controller 12 is a display panel, the refrigerator also includes a main control board, the power consumption statistics module 11 is connected to the main control board via a first universal asynchronous serial port, the display board is connected to the main control board via a second universal asynchronous serial port, and the display board obtains the power consumption data obtained by the power consumption statistics module 11 through the main control board.
[0106] Exemplarily, the household appliance 1 is a refrigerator, the controller 12 is a display panel, the refrigerator also includes a main control board, the power consumption statistics module 11 is installed on the main control board in a detachable manner, the output end of the power consumption statistics module 11 is connected to the input end of the main control board through a first universal asynchronous serial port, the input end of the display panel is connected to the output end of the main control board through a second universal asynchronous serial port, and the display panel obtains the statistics of the power consumption statistics module 11 through the main control board.
[0107] Furthermore, the household appliance 1 may also be a wine cabinet.
[0108] In a preferred embodiment, the power consumption data at least includes power consumption, and the power consumption statistics module 11 counts the power consumption of the load 14 of the household appliance 1 in the following manner: obtaining the current and voltage of the load 14, and calculating the active instantaneous power of the load 14 based on the current and the voltage; integrating the active instantaneous power to obtain the active energy of the load 14; generating an electric energy pulse based on the active energy, and calculating the power consumption based on the electric energy pulse.
[0109] For example, see Fig.10 , Fig.10 1 is a circuit structure diagram of the power consumption statistics module 11 provided in an embodiment of the present invention. The power consumption chip used in this embodiment is the BL0942 chip. Fig.10 A current sampling resistor RL and a first voltage-dividing resistor R1 and a second voltage-dividing resistor R2 are set in the circuit. The load 14 current and voltage collected by the BL0942 chip are used to calculate the active instantaneous power. The active instantaneous power is integrated over time to obtain the active energy, and the electric energy pulse CF can be further output. The power consumption counting register stores the number of output electric energy pulses CF. The MCU reads the number of electric energy pulses through the uart serial port and calculates the power consumption.
[0110] It is worth noting that power-consuming chips are not limited to the above-mentioned specific chip types. Other chip circuit designs and Fig.10 The circuits shown may be different, and chip selection and circuit design can be carried out according to actual conditions.
[0111] Compared with the prior art, the household appliance 1 disclosed in the embodiment of the present invention includes a power consumption statistics module 11 and a storage module 13. The power consumption statistics module 11 is used to count the power consumption data of the load 14 of the household appliance 1, and clear its own power consumption counting register after sending the power consumption data to the controller 12; when the household appliance 1 is online, it responds to the scheduled query instruction, obtains and uploads the power consumption data to the cloud 2 so that the cloud 2 saves the power consumption data; when the household appliance 1 is offline, it responds to the scheduled temporary storage instruction, obtains and temporarily stores the power consumption data to the storage module 13, so that the temporarily stored power consumption data of the storage module 13 can be migrated to the cloud 2 after the household appliance 1 is back online. In an embodiment of the present invention, a power consumption statistics module 11 is used to perform power consumption statistics on a load 14 of a household appliance 1. Different networking conditions correspond to different power consumption data storage methods. When connected to the network, the data is uploaded to the cloud 2. There is no need to store all power consumption data locally, which reduces the requirements for the storage performance of the household appliance 1. When not connected to the network, the power consumption data is temporarily stored locally to avoid loss of power consumption data and ensure the integrity of the power consumption data. The storage of power consumption data and the saving of local storage resources are taken into account through coordinated control of cloud storage and local storage.
[0112] See also Fig.11 , Fig.11 The flowchart of a method for storing power consumption data of a household appliance provided by an embodiment of the present invention is implemented by a controller installed in the household appliance. The method comprises:
[0113] S11, when the household appliance is online, in response to a timing query instruction, obtaining power consumption data obtained by the power consumption statistics module, and uploading the power consumption data to the cloud so that the cloud can save the power consumption data; wherein the power consumption counting register of the power consumption statistics module is a read-clear register;
[0114] S12. When the home appliance is offline, in response to a timed temporary storage instruction, the power consumption data is acquired and temporarily stored in a preset storage module, so as to migrate the temporarily stored power consumption data in the storage module to the cloud after the home appliance is back online.
[0115] Compared with the prior art, the embodiment of the present invention adopts a power consumption statistics module to perform power consumption data statistics on the load of household appliances. Different networking conditions correspond to different power consumption data storage methods. The data is uploaded to the cloud when connected to the network, and there is no need to store all power consumption data locally, which reduces the storage performance requirements for household appliances. When not connected to the network, the power consumption data is temporarily stored locally to avoid the loss of power consumption data and ensure the integrity of the power consumption data. The storage of power consumption data and the saving of local storage resources are taken into account through the coordinated control of cloud storage and local storage.
[0116] In a preferred embodiment, when the household appliance is online, in response to a timed query instruction, the power consumption data obtained by the power consumption statistics module is obtained, and the power consumption data is uploaded to the cloud so that the cloud saves the power consumption data, specifically including:
[0117] When the home appliance product is online, in response to a timed query instruction, the power consumption data is obtained to be temporarily stored in a designated cache area, and the power consumption data is uploaded to the cloud;
[0118] When the success mark information is received, the power consumption data in the cache area is deleted; wherein the success mark information is a feedback value returned by the cloud after completing the reception of the power consumption data.
[0119] In a preferred embodiment, the method further comprises:
[0120] When the home appliance product is online, in response to a repeated query instruction, the power consumption data in the cache area is uploaded to the cloud;
[0121] The repeat query instruction is sent from the cloud to the home appliance product, and the cloud sends the repeat query instruction in the following manner:
[0122] When the cloud does not receive the power consumption data within a preset return time threshold after sending the query instruction, the repeated query instruction is sent to the home appliance product until the number of repeated sending of the repeated query instruction reaches a preset number of retransmissions or the cloud receives the power consumption data; wherein, the query instruction includes a timed query instruction and a repeated query instruction.
[0123] In a preferred embodiment, the timing query instruction is sent from the cloud to the home appliance, and the cloud sends the timing query instruction in the following manner:
[0124] When the home appliance is online, a timing query instruction is periodically sent to the home appliance based on a preset timing query rule.
[0125] In a preferred embodiment, in response to the initial query instruction, determining whether the initial query instruction matches the timing query rule;
[0126] When the initial query instruction matches the preset timed query rule, acquiring and uploading the power consumption data and the temporarily stored power consumption data to the cloud;
[0127] When the initial query instruction does not match the scheduled query rule, migrating the temporarily stored power consumption data to the cloud;
[0128] The initial query instruction is sent from the cloud to the home appliance, and the cloud sends the initial query instruction in the following manner: when the cloud and the home appliance complete the networking operation, the initial query instruction is sent to the home appliance.
[0129] In a preferred embodiment, the timed temporary storage instruction is triggered by:
[0130] When the home appliance product is offline, the time node of uploading the power consumption data to the cloud most recently is recorded as the offline time node; the offline time node is used as the initial time node and based on the preset timing query rules, the timing temporary storage instruction is triggered regularly until the home appliance product is back online.
[0131] In a preferred embodiment, it also includes: the cloud is connected to the user terminal, and the cloud responds to the power consumption viewing instruction sent by the user terminal to generate and feed back power consumption display data to the user terminal for user viewing.
[0132] In a preferred embodiment, the household appliance is a refrigerator, the controller is a display panel, the refrigerator also includes a main control board, the power consumption statistics module is connected to the main control board via a first universal asynchronous serial port, the display board is connected to the main control board via a second universal asynchronous serial port, and the display panel obtains the power consumption data obtained by the power consumption statistics module through the main control board.
[0133] In a preferred embodiment, the power consumption data at least includes power consumption, and the power consumption statistics module counts the power consumption of the load of the household appliance in the following manner:
[0134] Acquiring the current and voltage of the load, and calculating the active instantaneous power of the load according to the current and the voltage;
[0135] Performing an integration operation on the active instantaneous power to obtain the active energy of the load;
[0136] An electric energy pulse is generated according to the active energy, and power consumption is calculated according to the electric energy pulse.
[0137] Compared with the prior art, the embodiment of the present invention discloses a method for storing power consumption data of household appliances, wherein the household appliances include a power consumption statistics module and a storage module, wherein the power consumption statistics module is used to count the power consumption data of the load of the household appliances, and clear its own power consumption counting register after sending the power consumption data to a controller; when the household appliances are online, in response to a timed query instruction, the power consumption data is obtained and uploaded to the cloud so that the cloud can save the power consumption data; when the household appliances are offline, in response to a timed temporary storage instruction, the power consumption data is obtained and temporarily stored in the storage module so that the temporarily stored power consumption data of the storage module can be migrated to the cloud after the household appliances are back online. In an embodiment of the present invention, a power consumption statistics module is used to perform power consumption data statistics on the load of household appliances. Different networking conditions correspond to different power consumption data storage methods. When connected to the network, the data is uploaded to the cloud, and there is no need to store all power consumption data locally, thereby reducing the requirements for the storage performance of household appliances. When not connected to the network, the power consumption data is temporarily stored locally to avoid the loss of power consumption data and ensure the integrity of the power consumption data. The storage of power consumption data and the saving of local storage resources are taken into account through the coordinated control of cloud storage and local storage.
[0138] It is worth noting that the specific implementation process of the method for storing power consumption data of household appliances described in the embodiment of the present invention is the same as the execution process of each component in the household appliances described in the above embodiment, and will not be repeated here.
[0139] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A household appliance product, It is characterized in that include: A power consumption statistics module, used for counting the power consumption data of the load of the household electrical appliance, wherein the power consumption counting register of the power consumption statistics module is a read-clear register; A storage module, used for storing the power consumption data; Controller for: When the home appliance product is online, in response to a timed query instruction, the power consumption data is acquired and uploaded to the cloud so that the cloud saves the power consumption data; When the home appliance product is offline, in response to a timed temporary storage instruction, the power consumption data is acquired and temporarily stored in the storage module, so as to migrate the temporarily stored power consumption data of the storage module to the cloud after the home appliance product is back online; The timing query instruction is sent from the cloud to the home appliance product, and the cloud sends the timing query instruction in the following manner: When the home appliance is online, based on a preset timed query rule, regularly sending a timed query instruction to the home appliance; The controller is also used for: In response to an initial query instruction, determining whether the initial query instruction matches the timing query rule; When the initial query instruction matches the preset timed query rule, acquiring and uploading the power consumption data and the temporarily stored power consumption data to the cloud; When the initial query instruction does not match the scheduled query rule, migrating the temporarily stored power consumption data to the cloud; The initial query instruction is sent from the cloud to the home appliance, and the cloud sends the initial query instruction in the following manner: when the cloud and the home appliance complete the networking operation, the initial query instruction is sent to the home appliance; The timing temporary storage instruction is triggered by the following method: When the home appliance product is offline, the time node of uploading the power consumption data to the cloud most recently is recorded as the offline time node; the offline time node is used as the initial time node and based on the preset timing query rules, the timing temporary storage instruction is triggered regularly until the home appliance product is back online.
2. The household appliance according to claim 1, It is characterized in that The controller is used to: when the home appliance product is online, in response to a timed query instruction, obtain and upload the power consumption data to the cloud so that the cloud can save the power consumption data, specifically including: When the home appliance product is online, in response to a timed query instruction, the power consumption data is obtained to be temporarily stored in a designated cache area, and the power consumption data is uploaded to the cloud; When the success mark information is received, the power consumption data in the cache area is deleted; wherein the success mark information is a feedback value returned by the cloud after completing the reception of the power consumption data.
3. The household appliance according to claim 2, It is characterized in that The controller is also used for: When the home appliance product is online, in response to a repeated query instruction, the power consumption data in the cache area is uploaded to the cloud; The repeat query instruction is sent from the cloud to the home appliance product, and the cloud sends the repeat query instruction in the following manner: When the cloud does not receive the power consumption data within a preset return time threshold after sending the query instruction, the repeated query instruction is sent to the home appliance product until the number of repeated sending of the repeated query instruction reaches a preset number of retransmissions or the cloud receives the power consumption data; wherein, the query instruction includes a timed query instruction and a repeated query instruction.
4. The household appliance according to claim 1, 2 or 3, It is characterized in that Also includes: The cloud is connected to the user terminal, and in response to the power consumption viewing instruction sent by the user terminal, the cloud generates and feeds back power consumption display data to the user terminal for the user to view.
5. The household appliance according to claim 1, 2 or 3, It is characterized in that The household appliance is a refrigerator, the controller is a display panel, the refrigerator also includes a main control board, the power consumption statistics module is connected to the main control board via a first universal asynchronous serial port, the display board is connected to the main control board via a second universal asynchronous serial port, and the display panel obtains the power consumption data obtained by the power consumption statistics module through the main control board.
6. The household appliance according to claim 1, Features The power consumption data at least includes power consumption, and the power consumption statistics module counts the power consumption of the load of the household appliance in the following manner: Acquiring the current and voltage of the load, and calculating the active instantaneous power of the load according to the current and the voltage; Performing an integration operation on the active instantaneous power to obtain the active energy of the load; An electric energy pulse is generated according to the active energy, and power consumption is calculated according to the electric energy pulse.
7. A method for storing power consumption data of household appliances, It is characterized in that include: When the home appliance product is online, in response to the timing query instruction, the power consumption data obtained by the power consumption statistics module is obtained, and the power consumption data is uploaded to the cloud so that the cloud saves the power consumption data; wherein the power consumption counting register of the power consumption statistics module is a read-clear register; When the home appliance product is offline, in response to a timed temporary storage instruction, the power consumption data is acquired and temporarily stored in a preset storage module, so that the temporarily stored power consumption data in the storage module is migrated to the cloud after the home appliance product is back online; The timing query instruction is sent from the cloud to the home appliance product, and the cloud sends the timing query instruction in the following manner: When the home appliance is online, based on a preset timed query rule, regularly sending a timed query instruction to the home appliance; In response to an initial query instruction, determining whether the initial query instruction matches the timing query rule; When the initial query instruction matches the preset timed query rule, acquiring and uploading the power consumption data and the temporarily stored power consumption data to the cloud; When the initial query instruction does not match the scheduled query rule, migrating the temporarily stored power consumption data to the cloud; The initial query instruction is sent from the cloud to the home appliance, and the cloud sends the initial query instruction in the following manner: when the cloud and the home appliance complete the networking operation, the initial query instruction is sent to the home appliance; The timing temporary storage instruction is triggered by the following method: When the home appliance product is offline, the time node of uploading the power consumption data to the cloud most recently is recorded as the offline time node; the offline time node is used as the initial time node and based on the preset timing query rules, the timing temporary storage instruction is triggered regularly until the home appliance product is back online.
