CN107872490B - Intelligent electric appliance and method for realizing business data consistency between intelligent electric appliance and cloud end - Google Patents

Intelligent electric appliance and method for realizing business data consistency between intelligent electric appliance and cloud end Download PDF

Info

Publication number
CN107872490B
CN107872490B CN201610858810.XA CN201610858810A CN107872490B CN 107872490 B CN107872490 B CN 107872490B CN 201610858810 A CN201610858810 A CN 201610858810A CN 107872490 B CN107872490 B CN 107872490B
Authority
CN
China
Prior art keywords
data
cloud
intelligent electric
electric appliance
appliance
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.)
Active
Application number
CN201610858810.XA
Other languages
Chinese (zh)
Other versions
CN107872490A (en
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610858810.XA priority Critical patent/CN107872490B/en
Publication of CN107872490A publication Critical patent/CN107872490A/en
Application granted granted Critical
Publication of CN107872490B publication Critical patent/CN107872490B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides an intelligent electric appliance and a method for realizing service data consistency between the intelligent electric appliance and a cloud end, which can realize the consistency between the intelligent electric appliance and the cloud end data, namely, whether a user sets hardware at the intelligent electric appliance end or the cloud end, the two-end data are finally kept consistent. The method for realizing the business data consistency between the intelligent electric appliance and the cloud comprises the following steps: when the intelligent electric appliance is connected with the cloud end, the intelligent electric appliance sends a snapshot of stored business data to the cloud end, the cloud end compares the snapshot with the cloud end business data to judge consistency, when the data sources and the version numbers of the snapshot and the cloud end business data are the same, the data are consistent, the sources are the same, the version numbers are different, the business data of the other one is updated by using the current business data of one of the intelligent electric appliance and the cloud end corresponding to the data sources, and when the sources are different, the business data of the other one is updated by using the business data of the one of the intelligent electric appliance and the cloud end with the larger version number of the current business data.

Description

Intelligent electric appliance and method for realizing business data consistency between intelligent electric appliance and cloud end
Technical Field
The invention relates to the technical field of computers and software thereof, in particular to a method for realizing business data consistency between an intelligent electric appliance and a cloud end and the intelligent electric appliance keeping the business data consistency with the cloud end.
Background
In a modern intelligent hardware system, intelligent hardware data (such as device state and service data) generally exists at a hardware (device) end, and is stored at an intelligent cloud end (server end) so that a user can use the data when the device is offline (namely, disconnected from the network and not connected with the cloud end). For example, a user may set a recipe of a smart microwave oven through a mobile phone APP (application), the recipe data is first sent to the cloud, the cloud sends the recipe data to a smart device (hardware end), and the cloud stores the recipe data. In addition, the user can also directly set the service data on the intelligent device, and then the set service data is reported to the cloud, and the user can view and maintain the service data (such as menu data) on the mobile phone APP.
The problem of distributed data storage, namely the problem of inconsistent data of the cloud and the intelligent device, is solved in the above usage scenarios. For example, the user sets the service data at the cloud end, the cloud end issues the service data to the intelligent device, the intelligent device receives the service data successfully, but the time is out when the response is given to the cloud end, then the cloud end can inform the user that the issuing of the service data to the intelligent device end fails, the user may withdraw the operation, accordingly, the cloud end can discard the service data, but the intelligent device already stores the service data, and thus, the data at the cloud end and the data at the intelligent device end are inconsistent.
Generally, the distributed data inconsistency of the system is easily caused due to the complexity of the intelligent hardware network environment. The current technical scheme does not support data synchronization of two ends generally, and generally, data is subject to a hardware end (an intelligent device end), and a cloud end only stores data backup or pulls a device snapshot from the hardware end (the intelligent device end). Due to the fact that the data of the cloud end and the data of the two ends of the intelligent device end are asynchronous, user experience is poor.
Disclosure of Invention
In view of this, the present invention provides a method for implementing service data consistency between an intelligent electrical appliance and a cloud end and an intelligent electrical appliance keeping service data consistency with the cloud end, which can implement the consistency between the intelligent electrical appliance and the cloud end data, that is, no matter a user sets hardware at the intelligent electrical appliance end or the cloud end (through a mobile phone APP), the service data at the two ends can be finally kept consistent.
To achieve the above object, according to one aspect of the present invention, a method for implementing service data consistency between an intelligent appliance and a cloud is provided.
A method for realizing business data consistency between an intelligent electric appliance and a cloud end, wherein the business data comprises data content, a data source and a version number, and the method comprises the following steps: when a user sets or updates service data in the intelligent electric appliance, the intelligent electric appliance executes the following actions: if the service data is set to be initial, the version number is set to be 0, otherwise, the version number is increased by 1, a data source is set to be an intelligent electric appliance, the set or updated service data is stored, and when a user sets or updates the service data in a cloud terminal, the cloud terminal executes the following actions: if the service data is initially set, setting the version number to be 0, otherwise, increasing the version number by 1, setting a data source to be a cloud end, and sending the set or updated data to the intelligent electric appliance, wherein when the sending is successful, the intelligent electric appliance receives and stores the set or updated service data, when the intelligent electric appliance is connected with the cloud end, the intelligent electric appliance sends a snapshot of the stored service data to the cloud end according to a set frequency, the snapshot comprises the data source and the version number of the service data stored by the intelligent electric appliance, the cloud end compares the received snapshot with the service data stored by the cloud end to judge consistency, wherein when the received snapshot is the same as the data source and the version number of the service data stored by the cloud end, the data is judged to be consistent, when the data source is the same and the version number is different, the current service data of one of the intelligent electric appliance and the cloud end corresponding to the data source is used for updating the other one of the intelligent electric appliance and the cloud When the data sources are different, the service data of the other one is updated by the service data of the intelligent electric appliance and the cloud end with the version number of the current service data being larger.
Optionally, the user, the smart appliance and the cloud communicate with each other in a wired or wireless manner.
Optionally, the user accesses the smart appliance or the cloud and sets or updates service data through the internet by using a client device.
Optionally, the user sets or updates service data in the smart appliance or the cloud by using a mobile phone APP.
Optionally, the user sets or updates service data on an input device of the smart appliance.
Optionally, when the cloud sends the set or updated data to the smart appliance, if the sending is unsuccessful, the cloud performs data rollback.
According to another aspect of the invention, an intelligent electric appliance keeping business data consistent with cloud is provided.
An intelligent appliance that maintains business data consistent with a cloud, the business data including data content, data source, and version number, the intelligent appliance comprising: input means for receiving user input; the communication device is used for realizing communication connection with the cloud and a user; the storage device is used for storing the service data; a processing device; when the user sets or updates the service data through the input device or the communication connection, the processing device executes the following actions: if the service data is set to be initial setting, the version number is set to be 0, otherwise, the version number is increased by 1, a data source is set to be an intelligent electric appliance, and the set or updated service data is stored in the storage device, wherein when a user sets or updates the service data in a cloud terminal, the cloud terminal executes the following actions: if the service data is initially set, setting the version number to be 0, otherwise, increasing the version number by 1, setting a data source to be a cloud end and sending the set or updated data to the intelligent electric appliance, wherein when the sending is successful, the intelligent electric appliance receives and stores the set or updated service data, when the intelligent electric appliance is in communication connection with the cloud end, the processing device sends snapshots of the stored service data to the cloud end according to a set frequency, the snapshots comprise the data source and the version number of the service data stored by the intelligent electric appliance, wherein the cloud end compares the received snapshots with the service data stored in the cloud end to judge consistency, when the received snapshots are the same as the data source and the version number of the service data stored in the cloud end, the data are judged to be consistent, and when the data sources are the same and the version numbers are different, and updating the business data of the other one by using the current business data of the intelligent electrical appliance and the cloud end corresponding to the data source, and updating the business data of the other one by using the business data of the intelligent electrical appliance and the cloud end with the larger version number of the current business data when the data sources are different.
Optionally, the communication device is configured to enable wired or wireless communication with the cloud and a user.
Optionally, the user accesses the smart appliance or the cloud and sets or updates service data through the internet by using a client device.
Optionally, the user sets or updates service data in the smart appliance or the cloud by using a mobile phone APP.
Optionally, the input device is used for a user to set or update service data on the intelligent electrical appliance.
Optionally, when the cloud sends the set or updated data to the smart appliance, if the sending is unsuccessful, the cloud performs data rollback.
According to the technical scheme of the invention, when a user sets or updates service data in the intelligent electric appliance, the intelligent electric appliance executes the following actions: if the service data is set to be initial, the version number is set to be 0, otherwise, the version number is increased by 1, a data source is set to be an intelligent electric appliance, the set or updated service data is stored, and when a user sets or updates the service data in a cloud terminal, the cloud terminal executes the following actions: if the service data is the initial setting, setting the version number to be 0, otherwise, increasing the version number by 1, setting the data source to be a cloud end, and sending the set or updated data to the intelligent electric appliance, wherein when the sending is successful, the intelligent electric appliance receives and stores the set or updated service data, when the intelligent electric appliance is connected with the cloud end, the intelligent electric appliance sends a snapshot of the stored service data to the cloud end according to a set frequency, the snapshot comprises the data source and the version number of the service data stored by the intelligent electric appliance, the cloud end compares the received snapshot with the service data stored by the cloud end to judge consistency, wherein when the received snapshot is the same as the data source and the version number of the service data stored by the cloud end, the data is judged to be consistent, and when the data source is the same and the version number is different, the current service data of one of the intelligent electric appliance and the cloud end corresponding to the data source is used for updating the service data, and when the data sources are different, updating the business data of the other one by using the business data with the larger version number of the current business data in the intelligent electric appliance and the cloud. By using the technical scheme of the invention, the consistency of the intelligent electric appliance and the cloud data can be realized, namely, no matter the user sets the hardware at the intelligent electric appliance end or the cloud end (through the mobile phone APP), the service data at the two ends can be kept consistent finally.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram illustrating main steps of a method for implementing business data consistency between an intelligent appliance and a cloud end according to an embodiment of the present invention;
fig. 2 is a schematic diagram of data interaction among a user side, a smart appliance side and a cloud side according to an embodiment of the present invention;
fig. 3 is a schematic diagram of main components of an intelligent appliance consistent with cloud-held business data according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram illustrating main steps of a method for implementing business data consistency between an intelligent appliance and a cloud according to an embodiment of the present invention.
The method for realizing the business data consistency between the intelligent electric appliance and the cloud end mainly comprises the steps S11 to S13. The service data comprises data content, a data source and a version number.
Step S11: when a user sets or updates service data in the intelligent electric appliance, the intelligent electric appliance executes the following actions: and if the data source is initially set, setting the version number to be 0, otherwise, increasing the version number by 1, setting the data source as the intelligent electrical appliance, and storing the set or updated service data.
Step S12: when a user sets or updates service data in the cloud, the cloud executes the following actions: and if the set service data is the initial set service data, setting the version number as 0, otherwise, increasing the version number by 1, setting the data source as a cloud, and sending the set or updated service data to the intelligent electric appliance, wherein when the sending is successful, the intelligent electric appliance receives and stores the set or updated service data.
When the cloud sends the set or updated data to the intelligent electric appliance, if the sending is unsuccessful, the cloud rolls back the data.
Step S13: when the intelligent electric appliance is connected with the cloud end, the intelligent electric appliance sends a snapshot of the stored business data to the cloud end according to the set frequency, the snapshot comprises a data source and a version number of the business data stored by the intelligent electric appliance, and the cloud end compares the received snapshot with the business data stored by the cloud end to judge consistency.
When the data source and the version number of the received snapshot are the same as those of the service data stored in the cloud, the data are judged to be consistent, when the data source is the same and the version number is different, the current service data of one of the intelligent electric appliance and the cloud corresponding to the data source is used for updating the service data of the other one, and when the data source is different, the service data of the other one is updated by the service data of the intelligent electric appliance and the cloud with the larger version number of the current service data.
The user, the smart appliance and the cloud may communicate with each other in a wired or wireless manner.
The user can access the intelligent electric appliance or the cloud end through the Internet by utilizing the client equipment and set or update the business data, and particularly, the user can set or update the business data in the intelligent electric appliance or the cloud end by utilizing the mobile phone APP.
The user can also set or update the service data on the input device of the intelligent electric appliance.
Fig. 2 is a schematic diagram illustrating data interaction among a user side, an intelligent appliance side, and a cloud side according to an embodiment of the present invention. The user side can be a mobile phone APP. The intelligent electric appliance can be an electric appliance such as a microwave oven, a refrigerator, a washing machine, an air conditioner, an electric curtain and the like with a processing device (processor) and a communication function.
The data interaction among the user side, the smart appliance side and the cloud side is described in detail below according to the interaction diagram shown in fig. 2.
The user can set or update the business data at the cloud end through the user sides such as the mobile phone APP, for example, the user can set or update the business data at the mobile phone APP interface, and then upload the business data to the cloud end for storage. The cloud sets the data source as the cloud while storing the service data set or updated by the user, and accumulates the version number of the service data in the cloud by 1, specifically, the cloud may preset an initial value of the version number of the service data, for example, 0, and when the service data in the cloud is updated, the updated version number of the service data is accumulated by 1 on the basis of the original version number. And then, the cloud sends the updated service data to the intelligent electric appliance end, if the cloud sends the data successfully, the intelligent electric appliance end stores and updates the service data, meanwhile, the version number of the updated service data per se is also accumulated by 1, and if the cloud sends the data unsuccessfully, the cloud rolls back the data, namely, the cloud recovers the service data before updating. For example, assume that the service data is air conditioner temperature data, the air conditioner temperature that the current cloud was saved is 20 degrees celsius, and the data version number is 1, when the user sets the air conditioner temperature at the cloud to 30 degrees celsius through APP or the like, then the air conditioner temperature that the cloud was stored is updated to 30 degrees celsius, and the version number becomes 2, the cloud issues the updated air conditioner temperature data, if the issuance fails, then the cloud performs data rollback, that is, the saved air conditioner temperature is restored to the original 20 degrees celsius, and the original version number 1 is replied. The failure issue condition may be that the cloud does not issue the data to the intelligent electrical appliance end due to a network reason, or that the cloud has issued the data to the intelligent electrical appliance end and the intelligent electrical appliance end has successfully updated the data, but the cloud does not receive a functional response returned by the intelligent electrical appliance end due to a network flash and the like, so that the cloud considers the failure issue of the data.
The user may also directly operate the smart appliance to set or update the service data, for example, the user directly sets or updates the service data on an input device (e.g., an operation panel) of the smart appliance and stores the service data. The intelligent electric appliance sets the data source as the intelligent electric appliance while storing the service data set or updated by the user, and adds 1 to the version number of the service data at the intelligent electric appliance end. Then, the smart appliance determines whether to report the updated service data to the cloud end according to the online condition (i.e. the condition of establishing communication connection with the cloud end), and if the smart appliance is online (i.e. the condition of establishing communication connection with the cloud end), the service data is reported to the cloud end, otherwise, the service data is reported again when waiting to be online.
Under a certain condition, for example, if data transmission by the cloud fails or data reporting by the intelligent electrical appliance fails, the two-end data is inconsistent, and therefore, the problem of consistency of the two-end data is solved between the intelligent electrical appliance and the cloud based on a data snapshot reporting mechanism. The mechanism does not pursue strong consistency of the two-end data (namely real-time consistency of the data), but mainly focuses on weak consistency of the data, namely, the two-end data can ensure final consistency of the data as long as the intelligent electric appliance is normally online.
The following describes a specific implementation method of the data snapshot reporting mechanism in detail. When the intelligent electric appliance is in communication connection with the cloud, the intelligent electric appliance uploads the snapshot of the currently stored business data to the cloud, and the snapshot can be reported regularly as long as the intelligent electric appliance is kept online (namely, is in communication connection with the cloud). The snapshot specifically includes a data source and a version number of the service data stored by the intelligent electrical appliance, and also includes specific contents of the service data. And the reporting snapshot can be reported at a set frequency, for example, every five minutes, the reported specific frequency is related to the device attribute of the intelligent electrical appliance, and the intelligent electrical appliance terminal can be customized. After the cloud receives the reported snapshot, the cloud compares the snapshot with the service data stored in the cloud to judge the consistency of the data of two ends (the intelligent electrical appliance end and the cloud end). Specifically, the data sources and the version numbers of the snapshot and the cloud service data are sequentially compared, and when the data sources and the version numbers of the snapshot and the cloud service data are the same, it is determined that the two end data are consistent. When the data sources are the same and the version numbers are different, the service data of the data sources are used as a standard, namely, if the service data are all from the cloud end, the cloud end issues the stored service data to the intelligent electric appliance again, so that the intelligent electric appliance updates the service data of the cloud end to be consistent with the cloud end, and if the service data are all from the intelligent electric appliance, the cloud end updates the service data of the cloud end according to the data in the snapshot so as to be consistent with the data of the intelligent electric appliance end. And when the data sources are different, comparing the version numbers of the service data of the snapshot and the cloud, and taking the version number higher of the two as the standard, namely updating the cloud service data if the version number of the service data in the snapshot is higher, otherwise, sending the data to the intelligent electric appliance by the cloud so as to update the service data in the intelligent electric appliance into the data consistent with the cloud.
Fig. 3 is a schematic diagram of main components of an intelligent appliance consistent with cloud-held business data according to an embodiment of the present invention. The service data comprises data content, a data source and a version number.
As shown in fig. 3, the intelligent electrical appliance 30 consistent with the cloud-maintained service data according to the embodiment of the present invention mainly includes: input device 31, communication device 32, storage device 33, processing device 34.
Wherein the input device 31 is used for receiving user input; the communication device 32 is used for realizing communication connection with the cloud and the user; the storage device 33 is used for storing service data. And, when the user sets or updates the service data in the smart electrical appliance 30 through the input device 31 or the communication connection, the processing device 34 performs the following actions: if the setting is initial setting, the version number is set to 0, otherwise, the version number is incremented by 1, the data source is set as the intelligent electrical appliance 30, and the set or updated service data is stored in the storage device 33, wherein when the user sets or updates the service data in the cloud, the cloud performs the following actions: and if the service data is the initial setting, setting the version number to be 0, otherwise, increasing the version number by 1, setting the data source to be a cloud end, and sending the set or updated data to the intelligent electric appliance 30, wherein when the sending is successful, the intelligent electric appliance 30 receives and stores the set or updated service data.
When the intelligent electrical appliance 30 is in communication connection with the cloud, the processing device 34 sends a snapshot of the stored service data to the cloud according to a set frequency, the snapshot includes a data source and a version number of the service data stored by the intelligent electrical appliance 30, wherein the cloud compares the received snapshot with the service data stored in the cloud to determine consistency, wherein when the received snapshot is the same as the data source and the version number of the service data stored in the cloud, the data is determined to be consistent, when the data source is the same and the version number is different, the service data of one of the intelligent electrical appliance 30 and the cloud corresponding to the data source is updated by using the current service data of the other one of the intelligent electrical appliance 30 and the cloud, and when the data source is different, the service data of the other one of the intelligent electrical appliance 30 and the cloud having the larger version number is updated by using the service data of the current service data of the other.
The communication device 32 may be used to enable wired or wireless communication with the cloud and the user.
The user can access the smart appliance 30 or the cloud via the internet using the client device and set or update the service data. And, specifically, the user may set or update the service data in the smart appliance 30 or the cloud using the mobile phone APP.
The input device 31 may be used for a user to set or update service data on the smart appliance 30.
When the cloud sends the set or updated data to the smart appliance 30, if the sending is unsuccessful, the cloud performs data rollback.
According to the technical scheme of the embodiment of the invention, when a user sets or updates service data in the intelligent electric appliance, the intelligent electric appliance executes the following actions: if the service data is set to be initial, the version number is set to be 0, otherwise, the version number is increased by 1, a data source is set to be an intelligent electric appliance, the set or updated service data is stored, and when a user sets or updates the service data in a cloud terminal, the cloud terminal executes the following actions: if the service data is the initial setting, setting the version number to be 0, otherwise, increasing the version number by 1, setting the data source to be a cloud end, and sending the set or updated data to the intelligent electric appliance, wherein when the sending is successful, the intelligent electric appliance receives and stores the set or updated service data, when the intelligent electric appliance is connected with the cloud end, the intelligent electric appliance sends a snapshot of the stored service data to the cloud end according to a set frequency, the snapshot comprises the data source and the version number of the service data stored by the intelligent electric appliance, the cloud end compares the received snapshot with the service data stored by the cloud end to judge consistency, wherein when the received snapshot is the same as the data source and the version number of the service data stored by the cloud end, the data is judged to be consistent, and when the data source is the same and the version number is different, the current service data of one of the intelligent electric appliance and the cloud end corresponding to the data source is used for updating the service data, and when the data sources are different, updating the business data of the other one by using the business data with the larger version number of the current business data in the intelligent electric appliance and the cloud. By using the technical scheme of the embodiment of the invention, the consistency of the intelligent electric appliance and the cloud data can be realized, namely, no matter a user sets hardware at the intelligent electric appliance end or the cloud end (through a mobile phone APP), the service data at the two ends can be kept consistent finally.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for realizing business data consistency between an intelligent electric appliance and a cloud end is characterized in that the business data comprises data content, data sources and version numbers, and the method comprises the following steps:
when a user sets or updates service data in the intelligent electric appliance, the intelligent electric appliance executes the following actions: if it is the initial setting, the version number is set to 0, otherwise the version number is incremented by 1, the data source is set as the intelligent appliance, and the set or updated service data is saved,
when a user sets or updates service data in the cloud, the cloud executes the following actions: if the service data is the initial setting, setting the version number to be 0, otherwise, increasing the version number by 1, setting a data source to be a cloud end, and sending the set or updated data to the intelligent electric appliance, wherein when the sending is successful, the intelligent electric appliance receives and stores the set or updated service data,
when the intelligent electric appliance is connected with the cloud end, the intelligent electric appliance sends a snapshot of the stored business data to the cloud end according to a set frequency, the snapshot comprises a data source and a version number of business data stored by the intelligent electric appliance, the cloud end compares the received snapshot with the business data stored by the cloud end to judge consistency, wherein when the received snapshot is the same as the data source and version number of the service data stored in the cloud, judging the data are consistent, when the data sources are the same and the version numbers are different, updating the business data of one of the intelligent electrical appliance and the cloud end corresponding to the data source by using the current business data of the other one, when the data sources are different, and updating the business data of the other one by using the business data of the intelligent electrical appliance and the cloud end with the business data of which the version number of the current business data is larger.
2. The method of claim 1, wherein the user, the smart appliance and the cloud are in wired or wireless communication with each other.
3. The method of claim 2, wherein the user accesses the smart appliance or the cloud and sets or updates business data via the internet using a client device.
4. The method according to claim 3, wherein the user sets or updates service data in the smart appliance or the cloud using a mobile phone APP.
5. The method of claim 1, wherein the user sets or updates business data on an input device of the smart appliance.
6. The method of claim 1, wherein when the cloud sends the set or updated data to the smart appliance, if the sending is unsuccessful, the cloud performs data rollback.
7. An intelligent electric appliance keeping business data consistent with cloud, wherein the business data comprises data content, data source and version number, and the intelligent electric appliance comprises:
input means for receiving user input;
the communication device is used for realizing communication connection with the cloud and a user;
the storage device is used for storing the service data;
a processing device;
when the user sets or updates the service data through the input device or the communication connection, the processing device executes the following actions: if the service data is set to be initial setting, the version number is set to be 0, otherwise, the version number is increased by 1, a data source is set to be an intelligent electric appliance, and the set or updated service data is stored in the storage device, wherein when a user sets or updates the service data in a cloud terminal, the cloud terminal executes the following actions: if the service data is the initial setting, setting the version number to be 0, otherwise, increasing the version number by 1, setting a data source to be a cloud end and sending the set or updated data to the intelligent electric appliance, wherein when the sending is successful, the intelligent electric appliance receives and stores the set or updated service data,
when the intelligent electric appliance is in communication connection with the cloud end, the processing device sends a snapshot of the stored business data to the cloud end according to a set frequency, wherein the snapshot comprises a data source and a version number of the business data stored by the intelligent electric appliance, wherein the cloud compares the received snapshot with the business data stored by the cloud to determine consistency, wherein when the received snapshot is the same as the data source and version number of the service data stored in the cloud, judging the data are consistent, when the data sources are the same and the version numbers are different, updating the business data of one of the intelligent electrical appliance and the cloud end corresponding to the data source by using the current business data of the other one, when the data sources are different, and updating the business data of the other one by using the business data of the intelligent electrical appliance and the cloud end with the business data of which the version number of the current business data is larger.
8. The smart appliance of claim 7, wherein the communication device is configured to enable wired or wireless communication with the cloud and a user.
9. The smart appliance of claim 8, wherein the user accesses the smart appliance or the cloud and sets or updates business data using a client device over the internet.
10. The smart appliance according to claim 9, wherein the user sets or updates service data in the smart appliance or the cloud using a mobile phone APP.
11. The intelligent appliance according to claim 7, wherein the input device is used for a user to set or update business data on the intelligent appliance.
12. The smart appliance of claim 7, wherein when the cloud sends the setting or updating data to the smart appliance, if the sending is unsuccessful, the cloud performs data rollback.
CN201610858810.XA 2016-09-28 2016-09-28 Intelligent electric appliance and method for realizing business data consistency between intelligent electric appliance and cloud end Active CN107872490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610858810.XA CN107872490B (en) 2016-09-28 2016-09-28 Intelligent electric appliance and method for realizing business data consistency between intelligent electric appliance and cloud end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610858810.XA CN107872490B (en) 2016-09-28 2016-09-28 Intelligent electric appliance and method for realizing business data consistency between intelligent electric appliance and cloud end

Publications (2)

Publication Number Publication Date
CN107872490A CN107872490A (en) 2018-04-03
CN107872490B true CN107872490B (en) 2020-11-03

Family

ID=61761338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610858810.XA Active CN107872490B (en) 2016-09-28 2016-09-28 Intelligent electric appliance and method for realizing business data consistency between intelligent electric appliance and cloud end

Country Status (1)

Country Link
CN (1) CN107872490B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601629A (en) * 2013-10-31 2015-05-06 中兴通讯股份有限公司 Processing method and processing apparatus, control apparatus and working method thereof as well as control method and control system
US9189495B1 (en) * 2012-06-28 2015-11-17 Emc Corporation Replication and restoration
CN105516230A (en) * 2014-10-15 2016-04-20 深圳市腾讯计算机系统有限公司 Data processing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179521A (en) * 2007-10-31 2008-05-14 广州市聚晖电子科技有限公司 Data synchronization updating system and method of digital family equipment
US8539567B1 (en) * 2012-09-22 2013-09-17 Nest Labs, Inc. Multi-tiered authentication methods for facilitating communications amongst smart home devices and cloud-based servers
US9336226B2 (en) * 2013-01-11 2016-05-10 Commvault Systems, Inc. Criteria-based data synchronization management
CN103986742B (en) * 2013-02-08 2018-08-31 纬创资通股份有限公司 The method and related electronic device of file synchronization
CN105450779B (en) * 2015-12-31 2019-05-21 九阳股份有限公司 The method of one household appliance connection multiserver

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9189495B1 (en) * 2012-06-28 2015-11-17 Emc Corporation Replication and restoration
CN104601629A (en) * 2013-10-31 2015-05-06 中兴通讯股份有限公司 Processing method and processing apparatus, control apparatus and working method thereof as well as control method and control system
CN105516230A (en) * 2014-10-15 2016-04-20 深圳市腾讯计算机系统有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN107872490A (en) 2018-04-03

Similar Documents

Publication Publication Date Title
CN111966651B (en) Data synchronization method, device, electronic equipment and storage medium
US10103940B2 (en) Local network and method of updating a device in a local network
CN105812435B (en) Application upgrading data packet processing method and device, electronic equipment and system
WO2022036901A1 (en) Implementation method and apparatus for redis replica set
CN105049502B (en) The method and apparatus that device software updates in a kind of cloud network management system
CN105279210A (en) Automatic mode switching in a synchronous replication environment
CN112532729A (en) Data synchronization method and device for edge device and cloud end
CN109547524B (en) User behavior storage method, device, equipment and storage medium based on Internet of things
US10037253B2 (en) Fault handling methods in a home service system, and associated household appliances and servers
CN112737847B (en) Node upgrading method and device, storage medium and electronic device
CN112653577A (en) Network element management method, device and storage medium
CN106789475A (en) Household electric appliance control method and device
CN111181765A (en) Task processing method and device
CN113852673A (en) Signaling tracking method and device of core network element and storage medium
CN110958287B (en) Operation object data synchronization method, device and system
CN113067769B (en) Router restarting method, device, equipment and storage medium
CN103001822B (en) The processing method of Network Abnormal and device
CN107872490B (en) Intelligent electric appliance and method for realizing business data consistency between intelligent electric appliance and cloud end
CN107818027B (en) Method and device for switching main name node and standby name node and distributed system
CN112822227B (en) Data synchronization method, device, equipment and storage medium of distributed storage system
CN114595069B (en) Service offline method and device, electronic equipment and storage medium
CN108011750B (en) Firmware upgrading method for communication module in centralized meter reading system
CN107783824B (en) Method for controlling intelligent household equipment and server device
KR20170130801A (en) Operating method for provisioning and electronic device supporting the same
CN109240608B (en) Configuration information synchronization method and 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
GR01 Patent grant
GR01 Patent grant