[go: up one dir, main page]

CN108224683B - Data synchronization method, user equipment, and computer-readable storage medium - Google Patents

Data synchronization method, user equipment, and computer-readable storage medium Download PDF

Info

Publication number
CN108224683B
CN108224683B CN201711498943.1A CN201711498943A CN108224683B CN 108224683 B CN108224683 B CN 108224683B CN 201711498943 A CN201711498943 A CN 201711498943A CN 108224683 B CN108224683 B CN 108224683B
Authority
CN
China
Prior art keywords
air conditioner
state
server
synchronization
data synchronization
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.)
Expired - Fee Related
Application number
CN201711498943.1A
Other languages
Chinese (zh)
Other versions
CN108224683A (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201711498943.1A priority Critical patent/CN108224683B/en
Publication of CN108224683A publication Critical patent/CN108224683A/en
Application granted granted Critical
Publication of CN108224683B publication Critical patent/CN108224683B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Air Conditioning Control Device (AREA)

Abstract

本发明公开了数据同步方法、用户设备及计算机可读存储介质。本发明中响应于用户输入的空调调节指令,根据空调调节指令确定对应的第一空调运行状态,向服务器发送第一空调运行状态,以使服务器将本地存储的第二空调运行状态修改为第一空调运行状态,生成并反馈回复信息;判断回复信息是否为调节成功信息,在回复信息为调节成功信息时,在当前显示界面中显示第一空调运行状态,以实现数据同步。本发明中在用户设备显示第一空调运行状态前,先对服务器侧以及空调侧的运行状态进行修改,直至运行状态修改完成后,再在用户设备侧显示第一空调运行状态,也就解决了当网络环境较差时用户设备与空调侧显示的空调运行状态不同的技术问题。

Figure 201711498943

The invention discloses a data synchronization method, user equipment and a computer-readable storage medium. In the present invention, in response to the air conditioner adjustment instruction input by the user, the corresponding first air conditioner operation state is determined according to the air conditioner adjustment instruction, and the first air conditioner operation state is sent to the server, so that the server modifies the locally stored second air conditioner operation state to the first air conditioner operation state. The air conditioner operating state generates and feeds back reply information; determines whether the reply information is adjustment success information, and when the reply information is adjustment success information, the first air conditioner operation state is displayed on the current display interface to realize data synchronization. In the present invention, before the user equipment displays the first air conditioner operation state, the operation state of the server side and the air conditioner side is modified first, and the first air conditioner operation state is displayed on the user equipment side after the operation state modification is completed, which solves the problem. When the network environment is poor, it is a technical problem that the operating status of the air conditioner displayed on the user equipment and the air conditioner side is different.

Figure 201711498943

Description

Data synchronization method, user equipment and computer readable storage medium
Technical Field
The present invention relates to the field of electrical appliance technologies, and in particular, to a data synchronization method, a user equipment, and a computer-readable storage medium.
Background
With the continuous development of the internet of things, home appliance manufacturers gradually access the produced home appliances to the internet of things so as to realize the internet of things. For example, an air conditioner may be connected to the internet of things, and a common implementation scenario is that the air conditioner in a user's home is connected to a home network, and the user may directly check the running state of the air conditioner in the home or adjust the temperature and other parameters of the air conditioner by operating an air conditioner application program preinstalled in user equipment, where the user equipment may be an electronic device such as a smart phone and a computer.
However, when the network where the user equipment is located or the network where the air conditioner is located is unstable, the air conditioner operating state viewed at the user equipment end may be different from the actual operating state of the air conditioner, so that when the network environment is poor, there is a technical problem that the air conditioner operating states displayed at the user equipment and the air conditioner side are different.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a data synchronization method, user equipment and a computer readable storage medium, and aims to solve the technical problem that the running states of air conditioners displayed on the user equipment and the air conditioner side are different when the network environment is poor in the prior art.
In order to achieve the above object, the present invention provides a data synchronization method, including the steps of:
the method comprises the steps that user equipment responds to an air conditioner adjusting instruction input by a user, determines a corresponding first air conditioner running state according to the air conditioner adjusting instruction, and sends the first air conditioner running state to a server, so that the server modifies a second air conditioner running state stored locally into the first air conditioner running state, and reply information is generated and fed back;
judging whether the reply information is successfully adjusted information, wherein the successfully adjusted information is used for representing that the server successfully modifies the running state of the air conditioner side;
and when the reply information is the successful adjustment information, displaying the running state of the first air conditioner in a current display interface so as to realize data synchronization.
Preferably, before the user equipment responds to an air conditioner adjustment instruction input by a user, determines a corresponding first air conditioner operation state according to the air conditioner adjustment instruction, and sends the first air conditioner operation state to a server, so that the server modifies a second air conditioner operation state stored locally into the first air conditioner operation state, and generates and feeds back a reply message, the data synchronization method further includes:
the method comprises the steps that user equipment responds to a login instruction input by a user, reads a user identifier from the login instruction, and inquires a corresponding air conditioner identifier according to the user identifier;
sending the air conditioner identification to a server so that the server queries a corresponding third air conditioner running state from a preset mapping relation according to the air conditioner identification, and feeding back the third air conditioner running state when the third air conditioner running state is queried, wherein the preset mapping relation comprises the corresponding relation between the air conditioner identification and the air conditioner running state;
and when the third air conditioner running state is received, displaying the third air conditioner running state in a current display interface.
Preferably, after the user equipment responds to a login instruction input by a user, reads a user identifier from the login instruction, and queries a corresponding air conditioner identifier according to the user identifier, the data synchronization method further includes:
sending a detection instruction to the air conditioner corresponding to the air conditioner identifier so that the air conditioner responds to the detection instruction to detect the network connection state of the network where the air conditioner is located, and feeding back the online state when the network connection state is the online state;
monitoring whether an online state fed back by the air conditioner is received within a first preset time;
and when the online state fed back by the air conditioner is received within the first preset time, the step of sending the air conditioner identification to a server is executed, so that the server inquires a corresponding third air conditioner running state from a preset mapping relation according to the air conditioner identification, and when the third air conditioner running state is inquired, the step of feeding back the third air conditioner running state is executed.
Preferably, the sending of the air conditioner identifier to the server is performed so that the server queries a corresponding third air conditioner operating state from a preset mapping relationship according to the air conditioner identifier, and when the third air conditioner operating state is queried, after the third air conditioner operating state is fed back, the data synchronization method further includes:
when the third air conditioner running state is not received, acquiring a default running state, and displaying the default running state in the current display interface;
sending a state updating instruction to the server according to a preset period so that the server responds to the state updating instruction, inquires a corresponding fourth air conditioner running state according to the air conditioner identification, and feeds back the fourth air conditioner running state when the fourth air conditioner running state is inquired;
and when the fourth air conditioner running state fed back by the server is not received within a second preset time, displaying a preset prompting interface, wherein the preset prompting interface is used for prompting a user that the current network is unstable.
Preferably, the sending of the state updating instruction to the server according to the preset period is performed, so that the server responds to the state updating instruction, queries a corresponding fourth air conditioner operating state according to the air conditioner identifier, and after the fourth air conditioner operating state is fed back when the fourth air conditioner operating state is queried, the data synchronization method further includes:
and when a fourth air conditioner running state fed back by the server is received within a second preset time, switching the equipment state displayed in the current display interface from the default running state to the fourth air conditioner running state.
Preferably, the sending of the state updating instruction to the server according to the preset period is performed, so that the server responds to the state updating instruction, queries a corresponding fourth air conditioner operating state according to the air conditioner identifier, and when the fourth air conditioner operating state is queried, before the fourth air conditioner operating state is fed back, the data synchronization method further includes:
calculating the current packet loss rate;
and when the current packet loss rate is lower than a preset threshold value, executing the step of sending a state updating instruction to the server according to a preset period so that the server responds to the state updating instruction, inquiring a corresponding fourth air conditioner running state according to the air conditioner identification, and feeding back the fourth air conditioner running state when the fourth air conditioner running state is inquired.
Preferably, when the reply message is the adjustment success message, the data synchronization method further includes, after the first air conditioner operation state is displayed in a current display interface to implement data synchronization, the step of:
responding to a synchronization instruction input by a user, acquiring a locally stored running state and taking the running state as a first synchronization state;
sending the synchronization instruction to the server, so that the server responds to the synchronization instruction, acquires a locally stored running state and feeds the running state back as a second synchronization state;
sending the synchronization instruction to the air conditioner so that the air conditioner responds to the synchronization instruction, acquires a locally stored running state and feeds the running state back as a third synchronization state;
comparing the first synchronization state, the second synchronization state and the third synchronization state;
and when the first synchronization state, the second synchronization state and the third synchronization state are the same, displaying prompt information of successful synchronization.
Preferably, after comparing the first synchronization status, the second synchronization status and the third synchronization status, the data synchronization method further includes:
when the first synchronization state, the second synchronization state and the third synchronization state are different, modifying the locally stored first synchronization state into the third synchronization state;
sending a state correction instruction to the server to enable the server to modify the locally stored second synchronization state into the third synchronization state in response to the state correction instruction.
In addition, to achieve the above object, the present invention further provides a user equipment, including: a memory, a processor and a data synchronization program stored on the memory and executable on the processor, the data synchronization program configured to implement the steps of the data synchronization method as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a data synchronization program which, when executed by a processor, implements the steps of the data synchronization method as described above.
According to the method and the device, before the user equipment displays the first air conditioner running state, the running states of the server side and the air conditioner side are modified firstly until the running state is modified, and then the first air conditioner running state is displayed on the user equipment side, so that the running states of the smart phone side, the server side and the air conditioner side are kept synchronous, and the technical problem that the running states of the user equipment and the air conditioner side are different when the network environment is poor in the prior art is solved.
Drawings
FIG. 1 is a schematic diagram of a user equipment architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a data synchronization method according to the present invention;
FIG. 3 is a flowchart illustrating a data synchronization method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a data synchronization method according to a third embodiment of the present invention;
fig. 5 is a flowchart illustrating a data synchronization method according to a fourth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a user equipment in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the user equipment may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may further include a standard wired interface and a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the architecture shown in fig. 1 does not constitute a limitation of the user equipment and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a data synchronization program.
In the user equipment shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting peripheral equipment; the user equipment calls the data synchronization program stored in the memory 1005 through the processor 1001 and performs the following operations:
responding to an air conditioner adjusting instruction input by a user, determining a corresponding first air conditioner running state according to the air conditioner adjusting instruction, sending the first air conditioner running state to a server, so that the server modifies a second air conditioner running state stored locally into the first air conditioner running state, and generating and feeding back reply information;
judging whether the reply information is successfully adjusted information, wherein the successfully adjusted information is used for representing that the server successfully modifies the running state of the air conditioner side;
and when the reply information is the successful adjustment information, displaying the running state of the first air conditioner in a current display interface so as to realize data synchronization.
Further, the processor 1001 may call the data synchronization program stored in the memory 1005, and also perform the following operations:
responding to a login instruction input by a user, reading a user identifier from the login instruction, and inquiring a corresponding air conditioner identifier according to the user identifier;
sending the air conditioner identification to a server so that the server queries a corresponding third air conditioner running state from a preset mapping relation according to the air conditioner identification, and feeding back the third air conditioner running state when the third air conditioner running state is queried, wherein the preset mapping relation comprises the corresponding relation between the air conditioner identification and the air conditioner running state;
and when the third air conditioner running state is received, displaying the third air conditioner running state in a current display interface.
Further, the processor 1001 may call the data synchronization program stored in the memory 1005, and also perform the following operations:
sending a detection instruction to the air conditioner corresponding to the air conditioner identifier so that the air conditioner responds to the detection instruction to detect the network connection state of the network where the air conditioner is located, and feeding back the online state when the network connection state is the online state;
monitoring whether an online state fed back by the air conditioner is received within a first preset time;
and when the online state fed back by the air conditioner is received within the first preset time, the step of sending the air conditioner identification to a server is executed, so that the server inquires a corresponding third air conditioner running state from a preset mapping relation according to the air conditioner identification, and when the third air conditioner running state is inquired, the step of feeding back the third air conditioner running state is executed.
Further, the processor 1001 may call the data synchronization program stored in the memory 1005, and also perform the following operations:
when the third air conditioner running state is not received, acquiring a default running state, and displaying the default running state in the current display interface;
sending a state updating instruction to the server according to a preset period so that the server responds to the state updating instruction, inquires a corresponding fourth air conditioner running state according to the air conditioner identification, and feeds back the fourth air conditioner running state when the fourth air conditioner running state is inquired;
and when the fourth air conditioner running state fed back by the server is not received within a second preset time, displaying a preset prompting interface, wherein the preset prompting interface is used for prompting a user that the current network is unstable.
Further, the processor 1001 may call the data synchronization program stored in the memory 1005, and also perform the following operations:
and when a fourth air conditioner running state fed back by the server is received within a second preset time, switching the equipment state displayed in the current display interface from the default running state to the fourth air conditioner running state.
Further, the processor 1001 may call the data synchronization program stored in the memory 1005, and also perform the following operations:
calculating the current packet loss rate;
and when the current packet loss rate is lower than a preset threshold value, executing the step of sending a state updating instruction to the server according to a preset period so that the server responds to the state updating instruction, inquiring a corresponding fourth air conditioner running state according to the air conditioner identification, and feeding back the fourth air conditioner running state when the fourth air conditioner running state is inquired.
Further, the processor 1001 may call the data synchronization program stored in the memory 1005, and also perform the following operations:
responding to a synchronization instruction input by a user, acquiring a locally stored running state and taking the running state as a first synchronization state;
sending the synchronization instruction to the server, so that the server responds to the synchronization instruction, acquires a locally stored running state and feeds the running state back as a second synchronization state;
sending the synchronization instruction to the air conditioner so that the air conditioner responds to the synchronization instruction, acquires a locally stored running state and feeds the running state back as a third synchronization state;
comparing the first synchronization state, the second synchronization state and the third synchronization state;
and when the first synchronization state, the second synchronization state and the third synchronization state are the same, displaying prompt information of successful synchronization.
Further, the processor 1001 may call the data synchronization program stored in the memory 1005, and also perform the following operations:
when the first synchronization state, the second synchronization state and the third synchronization state are different, modifying the locally stored first synchronization state into the third synchronization state;
sending a state correction instruction to the server to enable the server to modify the locally stored second synchronization state into the third synchronization state in response to the state correction instruction.
In this embodiment, before the user equipment displays the first air conditioner running state, the running states of the server side and the air conditioner side are modified first until the running state is modified, and then the first air conditioner running state is displayed on the user equipment side, so that the running states of the smart phone side, the server side and the air conditioner side are kept synchronous, and the technical problem that the running states of the user equipment and the air conditioner side are different when the network environment is poor in the prior art is solved.
Based on the above hardware structure, an embodiment of the data synchronization method of the present invention is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a data synchronization method according to a first embodiment of the present invention.
In a first embodiment, the data synchronization method comprises the steps of:
step S10: responding to an air conditioner adjusting instruction input by a user, determining a corresponding first air conditioner running state according to the air conditioner adjusting instruction, sending the first air conditioner running state to a server, so that the server modifies a second air conditioner running state stored locally into the first air conditioner running state, and generating and feeding back reply information;
it is understood that the execution subject is a user device, and the user device can be an electronic device which can be connected with the internet, such as a smart phone, a personal computer and the like. In order to control the air conditioner through the smart phone, the smart phone and the air conditioner can be connected to the internet, and the air conditioner has different running states and the running states can also change along with the operation of a user, so that the consistency of the records of the smart phone, the server and the air conditioner side on the air conditioner information needs to be ensured. The air conditioner running state comprises adjustable parameters such as air conditioner control temperature and humidity.
In a specific implementation, a user may open a preset webpage or an application program related to an air conditioner in the smart phone by operating the smart phone, and the user may input an operation on the air conditioner in the opened interface, for example, the temperature of the air conditioner control currently displayed in the interface is "room temperature 23 degrees celsius", the operation input by the user is to adjust the temperature to "room temperature 26 degrees celsius", and the adjustment operation of "room temperature 26 degrees celsius" may be sent to the server. After the server receives the adjustment operation of the room temperature of 26 ℃, because the air conditioner operation state pre-stored at the server side is the room temperature of 23 ℃, the second air conditioner operation state, namely the room temperature of 23 ℃, stored at the server side can be modified into the first air conditioner operation state, namely the room temperature of 26 ℃, and after the modification is successful, reply information can be generated and sent to the smart phone.
Step S20: judging whether the reply information is adjustment success information or not, wherein the adjustment success information is used for representing that the server successfully modifies the locally stored second air conditioner operation state;
it can be understood that if the smart phone can receive the reply message, it indicates that the smart phone can be normally networked. At this time, the running state recorded by the server side is 'room temperature 26 ℃, and after the running state of the server side is successfully modified, the server can send a temperature adjusting instruction to the air conditioner, so that the air conditioner can modify the running state of the locally stored air conditioner into the first air conditioner running state according to the temperature adjusting instruction, therefore, after data is synchronized in real time at the server side, the synchronized data, namely' room temperature 26 ℃, can be sent to the air conditioner, and the modification of the air conditioner temperature is realized.
It should be understood that, after the modification of the operation state of the air conditioner side is completed, the air conditioner generates adjustment success information and feeds back the adjustment success information to the server. And after receiving the adjustment success information sent by the air conditioner, the server sends the adjustment success information to the smart phone.
Step S30: and when the reply information is the successful adjustment information, displaying the running state of the first air conditioner in a current display interface so as to realize data synchronization.
It can be understood that when the smart phone receives the adjustment success information, the running state recorded by the server side is successfully modified to be the room temperature of 26 ℃, the control temperature is successfully modified to be the room temperature of 26 ℃, after the server and the air conditioner side are successfully modified, the room temperature of 26 ℃ can be displayed on the smart phone side, and at the moment, the running states of the smart phone side, the server side and the air conditioner side are all the room temperature of 26 ℃, so that the real-time synchronization of the running states of the air conditioner on the three equipment sides is realized. And even if the network is unstable, the temperature displayed by the user equipment side and the air conditioner side can not be different, because the air conditioner adjusting instruction can be sent out when the network where the mobile phone is located is stable, the parameters of the air conditioner can be successfully modified when the network where the air conditioner is located is stable, and the user can observe the operating state after the operation on the mobile phone side after the parameters of the air conditioner side are successfully modified, the operating states of the user equipment side and the air conditioner side can not be changed when the network is unstable.
In this embodiment, before the user equipment displays the first air conditioner running state, the running states of the server side and the air conditioner side are modified first until the running state is modified, and then the first air conditioner running state is displayed on the user equipment side, so that the running states of the smart phone side, the server side and the air conditioner side are kept synchronous, and the technical problem that the running states of the user equipment and the air conditioner side are different when the network environment is poor in the prior art is solved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a data synchronization method according to a second embodiment of the present invention, and the data synchronization method according to the second embodiment of the present invention is proposed based on the first embodiment shown in fig. 2.
In the second embodiment, before the step S10, the data synchronization method further includes:
step S101: responding to a login instruction input by a user, reading a user identifier from the login instruction, and inquiring a corresponding air conditioner identifier according to the user identifier;
it can be understood that, when using the air conditioner application program in the smart phone, in order to facilitate the user to view the current operating state of the air conditioner through the air conditioner application program in real time, when the user logs in the air conditioner application program, for example, the user inputs an account name and a password to log in the air conditioner application program, so as to obtain the user identifier. The user identification can be an account name or a unique character code and is used for uniquely determining the user identity.
In a specific implementation, each account may be bound with one or more air conditioner identifiers, and each air conditioner identifier is used for uniquely corresponding to one air conditioner. And after determining the corresponding air conditioner identifier according to the user identifier, indicating that the user wants to check the real-time running state of the air conditioner corresponding to the air conditioner identifier.
Step S102: sending the air conditioner identification to a server so that the server queries a corresponding third air conditioner running state from a preset mapping relation according to the air conditioner identification, and feeding back the third air conditioner running state when the third air conditioner running state is queried, wherein the preset mapping relation comprises the corresponding relation between the air conditioner identification and the air conditioner running state;
it should be understood that after determining the air conditioner identifier, the air conditioner identifier may be sent to the server to query the real-time operation state of the air conditioner, and since the operation state of the air conditioner is automatically synchronized to the server whenever the operation state of the air conditioner changes, the real-time operation state of the air conditioner may be directly known by querying the operation state at the server side. For example, if the corresponding third air conditioner running state queried by the server from the preset mapping relationship according to the air conditioner identifier is "room temperature 17 degrees centigrade", it represents that the actually controlled temperature of the air conditioner at the time is "room temperature 17 degrees centigrade".
Step S103: and when the third air conditioner running state is received, displaying the third air conditioner running state in a current display interface.
It can be understood that when the air conditioner running state fed back by the server is "room temperature 17 degrees centigrade", the information of "room temperature 17 degrees centigrade" is displayed in the display interface at the side of the smart phone, so that the user can observe the real-time running state of the air conditioner in real time through the user equipment.
Further, after the step S101, the data synchronization method may further include: sending a detection instruction to the air conditioner corresponding to the air conditioner identifier so that the air conditioner responds to the detection instruction to detect the network connection state of the network where the air conditioner is located, and feeding back the online state when the network connection state is the online state; monitoring whether an online state fed back by the air conditioner is received within a first preset time; and when the online state fed back by the air conditioner is received within the first preset time, the step of sending the air conditioner identification to a server is executed, so that the server inquires a corresponding third air conditioner running state from a preset mapping relation according to the air conditioner identification, and when the third air conditioner running state is inquired, the step of feeding back the third air conditioner running state is executed.
It can be understood that, when a user logs in an account at the smartphone side to query the real-time operation state of the air conditioner, it may be determined whether the air conditioner can be normally connected to the network first. Although the running state of the air conditioner is automatically updated to the server in real time when the running state of the air conditioner changes, the problem does not occur when the user equipment directly inquires the air conditioner information recorded by the server side, but if the air conditioner cannot be normally connected to the network, the air conditioner information recorded by the server side may be wrong, and the air conditioner information displayed by the user equipment side is not the real-time running state of the air conditioner. Therefore, in order to avoid the situation of inconsistency of the air conditioner information, whether the air conditioner can be normally connected to the network or not can be detected, and if the air conditioner can be normally connected to the network, the air conditioner operation state recorded by the server side is consistent with the actual operation state of the air conditioner.
In a specific implementation, after a user successfully logs in an air conditioner application program of a smart phone, a detection instruction is sent to an air conditioner corresponding to an air conditioner identifier so as to judge whether the air conditioner can be normally connected to a network. Of course, the user equipment may also send the detection instruction to the server, so that the server forwards the detection instruction to the air conditioner.
It can be understood that, when the air conditioner receives the detection instruction, the network environment of the network where the air conditioner is located is detected, and if the network environment of the network where the air conditioner is located can enable the air conditioner to stably synchronize the air conditioner operation state with the server, an online state can be generated and fed back to the user equipment, so that the user equipment can execute subsequent slave operations; the network environment of the network where the air conditioner is located cannot enable the air conditioner to stably synchronize the air conditioner running state with the server, and if the problem of network disconnection or too low network speed occurs, the online state cannot be generated and fed back to the user equipment. If the user equipment does not receive the online state within the first preset time, the user can be prompted that the network environment of the network where the air conditioner is located is poor.
In the embodiment, the running state of the air conditioner is inquired in real time through the user equipment, so that a user can directly observe the real-time running state of the air conditioner at the user equipment side.
Referring to fig. 4, fig. 4 is a flowchart illustrating a data synchronization method according to a third embodiment of the present invention, and the data synchronization method according to the third embodiment of the present invention is proposed based on the second embodiment shown in fig. 3.
In the third embodiment, after the step S102, the data synchronization method further includes:
step S103': when the third air conditioner running state is not received, acquiring a default running state, and displaying the default running state in the current display interface;
it can be understood that, when the operation state of the air conditioner is queried in real time through the smart phone, the user can directly observe the real-time operation state of the air conditioner at the user equipment side, and if the smart phone does not receive the queried third air conditioner operation state fed back by the server, it indicates that the network of the smart phone is unstable, or the server side fails to synchronize operation state information from the air conditioner side in time, and can acquire the default operation state to display the default operation state at the smart phone side. For example, if the air conditioner running state fed back by the server is successfully received 3 minutes ago, and the air conditioner running state fed back by the server in real time is not successfully received at the moment, the running state can be continuously displayed to be the room temperature of 15 ℃.
Step S104: sending a state updating instruction to the server according to a preset period so that the server responds to the state updating instruction, inquires a corresponding fourth air conditioner running state according to the air conditioner identification, and feeds back the fourth air conditioner running state when the fourth air conditioner running state is inquired;
it should be understood that the actual operation state of the air conditioner before 3 minutes is "room temperature 15 degrees celsius", but the actual operation state of the current air conditioner is not necessarily "room temperature 15 degrees celsius", and may be changed due to a user's operation or other reasons. Therefore, a state updating instruction is sent to the server according to a preset period so as to continuously try to inquire the real-time air conditioner running state at the server side.
Step S105: and when the fourth air conditioner running state fed back by the server is not received within a second preset time, displaying a preset prompting interface, wherein the preset prompting interface is used for prompting a user that the current network is unstable.
In a specific implementation, when the air conditioner running state fed back by the server in real time is not received, a state updating instruction can be sent to the server every 2 seconds to obtain the real-time running state of the air conditioner. When the air conditioner running state fed back by the server is not received within 8 seconds, a preset prompting interface can be displayed on the smart phone to prompt that the network of the user is unstable. In addition, in order to avoid the failure of the instruction of the user for operating the air conditioner due to the instability of the network, the user can be prohibited from operating the air conditioner in advance until the running state of the air conditioner fed back by the server in real time is received, the normal operation state is recovered, and the user can normally operate the air conditioner.
Further, after the step S104, the data synchronization method may further include: and when a fourth air conditioner running state fed back by the server is received within a second preset time, switching the equipment state displayed in the current display interface from the default running state to the fourth air conditioner running state.
It can be understood that, when the smart phone does not receive the air conditioner running state fed back by the server in real time in the earlier stage, the "default running state", for example, "room temperature 15 degrees celsius", is displayed temporarily in the current display interface until the air conditioner running state fed back by the server in real time, for example, "room temperature 18 degrees celsius", is received, then the "room temperature 15 degrees celsius" may be switched to "room temperature 18 degrees celsius", so as to ensure that the smart phone side can update the latest running state information of the air conditioner in real time.
Further, before the step S104, the data synchronization method may further include: calculating the current packet loss rate; and when the current packet loss rate is lower than a preset threshold value, executing the step of sending a state updating instruction to the server according to a preset period so that the server responds to the state updating instruction, inquiring a corresponding fourth air conditioner running state according to the air conditioner identification, and feeding back the fourth air conditioner running state when the fourth air conditioner running state is inquired.
It can be understood that, considering that when the network environment is poor, the operation of the user for adjusting the air conditioner through the smart phone may not reach the air conditioning device in time to modify the parameters, and the operation states of the air conditioner recorded by the smart phone, the server and the air conditioner may not be consistent, a preset threshold is preset to limit the packet loss rate, and only when the current packet loss rate is lower than the preset threshold, a subsequent process of querying the operation state of the air conditioner to change the operation information displayed at the smart phone side is executed, so that the operation states of the air conditioner recorded by the smart phone, the server and the air conditioner are consistent. For example, the preset threshold is set to 10%, and when the packet loss rate of the current network is lower than 10%, the subsequent operation is performed.
In this embodiment, when the real-time operating state of the air conditioner fed back by the server is not received, a state updating instruction may be periodically sent to the server to continuously try to obtain the real-time operating state of the air conditioner.
Referring to fig. 5, fig. 5 is a flowchart illustrating a fourth embodiment of the data synchronization method according to the present invention, and the fourth embodiment of the data synchronization method according to the present invention is proposed based on the first embodiment shown in fig. 2.
In the fourth embodiment, after the step S30, the data synchronization method further includes:
step S40: responding to a synchronization instruction input by a user, acquiring a locally stored running state and taking the running state as a first synchronization state;
it is understood that, although the implementation manners of the first to third embodiments of the data synchronization method of the present invention can ensure that the air-conditioning operation states recorded by the smartphone, the server and the air-conditioner are consistent, considering that the air-conditioning operation states recorded by the three may not be consistent due to a network problem or an operation error of any one of the three devices, the above problem can be avoided by periodically querying the operation states recorded by the three.
In a specific implementation, a user may click on a "data synchronization" option on the smartphone side to generate a synchronization command, but of course, the smartphone may also generate the synchronization command periodically, for example, the synchronization command is generated every 10 minutes. And responding to the synchronous instruction to acquire the air conditioner running state recorded by the intelligent mobile phone side, namely a first synchronous state, such as' room temperature 15 ℃.
Step S50: sending the synchronization instruction to the server, so that the server responds to the synchronization instruction, acquires a locally stored running state and feeds the running state back as a second synchronization state;
it should be understood that, after querying the "room temperature 15 degrees celsius" recorded by the smartphone side, the synchronization instruction may be sent to the server to query the real-time state of the air conditioner operation recorded by the server side, that is, the second synchronization state, which may be "room temperature 15 degrees celsius".
Step S60: sending the synchronization instruction to the air conditioner so that the air conditioner responds to the synchronization instruction, acquires a locally stored running state and feeds the running state back as a third synchronization state;
it can be understood that after the "room temperature 15 degrees centigrade" recorded by the smartphone side and the "room temperature 15 degrees centigrade" recorded by the server side are queried, a synchronization instruction can be sent to the air conditioner again to query the device state actually operated by the air conditioner side, that is, the third synchronization state, which can be the "room temperature 15 degrees centigrade".
Step S70: comparing the first synchronization state, the second synchronization state and the third synchronization state;
it should be understood that after the operation states recorded by the smartphone, the server, and the air conditioner side are obtained respectively, the first synchronization state, the second synchronization state, and the third synchronization state may be compared.
Step S80: and when the first synchronization state, the second synchronization state and the third synchronization state are the same, displaying prompt information of successful synchronization.
It can be understood that the recorded states of the three are all ' room temperature 15 ℃, and then ' synchronization success ' can be prompted at the smart phone side.
Further, after the step S70, the data synchronization method may further include: when the first synchronization state, the second synchronization state and the third synchronization state are different, modifying the locally stored first synchronization state into the third synchronization state; sending a state correction instruction to the server to enable the server to modify the locally stored second synchronization state into the third synchronization state in response to the state correction instruction.
In a specific implementation, if the states recorded by the three devices are not the same, for example, the first synchronization state recorded by the smart phone side is "room temperature 15 degrees celsius", the second synchronization state recorded by the server side is "room temperature 16 degrees celsius", and the third synchronization state recorded by the air conditioner side is "room temperature 17 degrees celsius", where the state recorded by the air conditioner side is a state in which the air conditioner operates in real time, both the states recorded by the smart phone side and the server side can be modified into the state recorded by the air conditioner side. Therefore, the 'room temperature 15 ℃ recorded by the intelligent mobile phone side can be modified into' room temperature 17 ℃, and the 'room temperature 16 ℃ recorded by the server side can be modified into' room temperature 17 ℃, so that the recorded states of the server and the user equipment side are modified into a third synchronous state, and the running states of the air conditioners recorded by the server, the user equipment side and the user equipment side are kept consistent.
In the embodiment, the air conditioner running information recorded by the user equipment, the server and the air conditioner is obtained in real time, and the air conditioner running information of the user equipment, the server and the air conditioner is compared to check whether the air conditioner running states recorded by the user equipment, the server and the air conditioner are consistent or not in real time.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a data synchronization program is stored on the computer-readable storage medium, and when executed by a processor, the data synchronization program implements the following operations:
responding to an air conditioner adjusting instruction input by a user, determining a corresponding first air conditioner running state according to the air conditioner adjusting instruction, sending the first air conditioner running state to a server, so that the server modifies a second air conditioner running state stored locally into the first air conditioner running state, and generating and feeding back reply information;
judging whether the reply information is successfully adjusted information, wherein the successfully adjusted information is used for representing that the server successfully modifies the running state of the air conditioner side;
and when the reply information is the successful adjustment information, displaying the running state of the first air conditioner in a current display interface so as to realize data synchronization.
Further, the data synchronization program when executed by the processor further performs the following operations:
responding to a login instruction input by a user, reading a user identifier from the login instruction, and inquiring a corresponding air conditioner identifier according to the user identifier;
sending the air conditioner identification to a server so that the server queries a corresponding third air conditioner running state from a preset mapping relation according to the air conditioner identification, and feeding back the third air conditioner running state when the third air conditioner running state is queried, wherein the preset mapping relation comprises the corresponding relation between the air conditioner identification and the air conditioner running state;
and when the third air conditioner running state is received, displaying the third air conditioner running state in a current display interface.
Further, the data synchronization program when executed by the processor further performs the following operations:
sending a detection instruction to the air conditioner corresponding to the air conditioner identifier so that the air conditioner responds to the detection instruction to detect the network connection state of the network where the air conditioner is located, and feeding back the online state when the network connection state is the online state;
monitoring whether an online state fed back by the air conditioner is received within a first preset time;
and when the online state fed back by the air conditioner is received within the first preset time, the step of sending the air conditioner identification to a server is executed, so that the server inquires a corresponding third air conditioner running state from a preset mapping relation according to the air conditioner identification, and when the third air conditioner running state is inquired, the step of feeding back the third air conditioner running state is executed.
Further, the data synchronization program when executed by the processor further performs the following operations:
when the third air conditioner running state is not received, acquiring a default running state, and displaying the default running state in the current display interface;
sending a state updating instruction to the server according to a preset period so that the server responds to the state updating instruction, inquires a corresponding fourth air conditioner running state according to the air conditioner identification, and feeds back the fourth air conditioner running state when the fourth air conditioner running state is inquired;
and when the fourth air conditioner running state fed back by the server is not received within a second preset time, displaying a preset prompting interface, wherein the preset prompting interface is used for prompting a user that the current network is unstable.
Further, the data synchronization program when executed by the processor further performs the following operations:
and when a fourth air conditioner running state fed back by the server is received within a second preset time, switching the equipment state displayed in the current display interface from the default running state to the fourth air conditioner running state.
Further, the data synchronization program when executed by the processor further performs the following operations:
calculating the current packet loss rate;
and when the current packet loss rate is lower than a preset threshold value, executing the step of sending a state updating instruction to the server according to a preset period so that the server responds to the state updating instruction, inquiring a corresponding fourth air conditioner running state according to the air conditioner identification, and feeding back the fourth air conditioner running state when the fourth air conditioner running state is inquired.
Further, the data synchronization program when executed by the processor further performs the following operations:
responding to a synchronization instruction input by a user, acquiring a locally stored running state and taking the running state as a first synchronization state;
sending the synchronization instruction to the server, so that the server responds to the synchronization instruction, acquires a locally stored running state and feeds the running state back as a second synchronization state;
sending the synchronization instruction to the air conditioner so that the air conditioner responds to the synchronization instruction, acquires a locally stored running state and feeds the running state back as a third synchronization state;
comparing the first synchronization state, the second synchronization state and the third synchronization state;
and when the first synchronization state, the second synchronization state and the third synchronization state are the same, displaying prompt information of successful synchronization.
Further, the data synchronization program when executed by the processor further performs the following operations:
when the first synchronization state, the second synchronization state and the third synchronization state are different, modifying the locally stored first synchronization state into the third synchronization state;
sending a state correction instruction to the server to enable the server to modify the locally stored second synchronization state into the third synchronization state in response to the state correction instruction.
In this embodiment, before the user equipment displays the first air conditioner running state, the running states of the server side and the air conditioner side are modified first until the running state is modified, and then the first air conditioner running state is displayed on the user equipment side, so that the running states of the smart phone side, the server side and the air conditioner side are kept synchronous, and the technical problem that the running states of the user equipment and the air conditioner side are different when the network environment is poor in the prior art is solved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. The use of the words first, second, third, etc. do not denote any order, but rather the words first, second, third, etc. are to be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1.一种数据同步方法,其特征在于,所述数据同步方法包括以下步骤:1. a data synchronization method, is characterized in that, described data synchronization method comprises the following steps: 用户设备响应于用户输入的空调调节指令,根据所述空调调节指令确定对应的第一空调运行状态,向服务器发送所述第一空调运行状态,以使所述服务器将本地存储的第二空调运行状态修改为所述第一空调运行状态,生成并反馈回复信息;In response to the air conditioner adjustment instruction input by the user, the user equipment determines the corresponding first air conditioner operation state according to the air conditioner adjustment instruction, and sends the first air conditioner operation state to the server, so that the server operates the second air conditioner stored locally The state is modified to the operating state of the first air conditioner, and reply information is generated and fed back; 判断所述回复信息是否为调节成功信息,所述调节成功信息用于表征所述服务器对空调侧的运行状态修改成功;determining whether the reply information is adjustment success information, and the adjustment success information is used to indicate that the server has successfully modified the operating state of the air conditioner side; 在所述回复信息为所述调节成功信息时,在当前显示界面中显示所述第一空调运行状态,以实现数据同步;When the reply information is the adjustment success information, displaying the first air conditioner operating state in the current display interface to realize data synchronization; 响应于用户输入的同步指令,获取本地存储的运行状态并作为第一同步状态;In response to the synchronization instruction input by the user, obtain the running state of the local storage and use it as the first synchronization state; 向所述服务器发送所述同步指令,以使所述服务器响应于所述同步指令,获取本地存储的运行状态并作为第二同步状态,反馈所述第二同步状态;Sending the synchronization instruction to the server, so that the server, in response to the synchronization instruction, acquires the locally stored running state as a second synchronization state, and feeds back the second synchronization state; 向所述空调发送所述同步指令,以使所述空调响应于所述同步指令,获取本地存储的运行状态并作为第三同步状态,反馈所述第三同步状态;sending the synchronization command to the air conditioner, so that the air conditioner responds to the synchronization command to acquire the locally stored operating state as a third synchronization state, and feed back the third synchronization state; 将所述第一同步状态、所述第二同步状态以及所述第三同步状态进行比对;comparing the first synchronization state, the second synchronization state and the third synchronization state; 在所述第一同步状态、所述第二同步状态以及所述第三同步状态三者相同时,展示同步成功的提示信息。When the first synchronization state, the second synchronization state and the third synchronization state are the same, a prompt message indicating that the synchronization is successful is displayed. 2.如权利要求1所述的数据同步方法,其特征在于,所述用户设备响应于用户输入的空调调节指令,根据所述空调调节指令确定对应的第一空调运行状态,向服务器发送所述第一空调运行状态,以使所述服务器将本地存储的第二空调运行状态修改为所述第一空调运行状态,生成并反馈回复信息之前,所述数据同步方法还包括:2 . The data synchronization method according to claim 1 , wherein the user equipment determines the corresponding first air conditioner operating state according to the air conditioner adjustment instruction in response to the air conditioner adjustment instruction input by the user, and sends the air conditioner adjustment instruction to the server. 3 . the first air conditioner operating state, so that the server modifies the locally stored second air conditioner operating state to the first air conditioner operating state, and before generating and feeding back reply information, the data synchronization method further includes: 用户设备响应于用户输入的登录指令,从所述登录指令中读取用户标识,根据所述用户标识查询对应的空调标识;The user equipment, in response to the login instruction input by the user, reads the user identifier from the login instruction, and queries the corresponding air conditioner identifier according to the user identifier; 向服务器发送所述空调标识,以使所述服务器根据所述空调标识从预设映射关系中查询对应的第三空调运行状态,在查询到所述第三空调运行状态时,反馈所述第三空调运行状态,所述预设映射关系包括所述空调标识与空调运行状态的对应关系;Send the air conditioner identifier to the server, so that the server can query the corresponding third air conditioner operation state from the preset mapping relationship according to the air conditioner identifier, and when the third air conditioner operation state is inquired, feedback the third air conditioner operation state. an air conditioner operating state, the preset mapping relationship includes a corresponding relationship between the air conditioner identifier and the air conditioner operating state; 在接收到所述第三空调运行状态时,在当前显示界面中展示所述第三空调运行状态。When the third air conditioner operating state is received, the third air conditioner operating state is displayed in the current display interface. 3.如权利要求2所述的数据同步方法,其特征在于,所述用户设备响应于用户输入的登录指令,从所述登录指令中读取用户标识,根据所述用户标识查询对应的空调标识之后,所述数据同步方法还包括:3. The data synchronization method according to claim 2, wherein the user equipment reads a user identifier from the login instruction in response to a login instruction input by the user, and queries the corresponding air conditioner identifier according to the user identifier Afterwards, the data synchronization method further includes: 向与所述空调标识对应的空调发送检测指令,以使所述空调响应于所述检测指令,检测所述空调所处网络的网络连接状态,当所述网络连接状态为在线状态时,反馈所述在线状态;Send a detection instruction to the air conditioner corresponding to the air conditioner identifier, so that the air conditioner responds to the detection instruction to detect the network connection status of the network where the air conditioner is located, and when the network connection status is online, feedback the status of the network connection. the online status; 监测是否在第一预设时间内接收到所述空调反馈的在线状态;monitoring whether the online status of the feedback of the air conditioner is received within the first preset time; 当在所述第一预设时间内接收到所述空调反馈的在线状态时,执行所述向服务器发送所述空调标识,以使所述服务器根据所述空调标识从预设映射关系中查询对应的第三空调运行状态,在查询到所述第三空调运行状态时,反馈所述第三空调运行状态的步骤。When the online status of the air conditioner feedback is received within the first preset time, the sending of the air conditioner identifier to the server is performed, so that the server can query the corresponding air conditioner identifier from a preset mapping relationship according to the air conditioner identifier. The third air conditioner operating state is the step of feeding back the third air conditioner operating state when the third air conditioner operating state is queried. 4.如权利要求2所述的数据同步方法,其特征在于,所述向服务器发送所述空调标识,以使所述服务器根据所述空调标识从预设映射关系中查询对应的第三空调运行状态,在查询到所述第三空调运行状态时,反馈所述第三空调运行状态之后,所述数据同步方法还包括:4 . The data synchronization method according to claim 2 , wherein the sending the air conditioner identifier to a server enables the server to query a corresponding third air conditioner operation from a preset mapping relationship according to the air conditioner identifier. 5 . state, after the third air conditioner operating state is fed back when the third air conditioner operating state is queried, the data synchronization method further includes: 在未接收到所述第三空调运行状态时,获取默认运行状态,在所述当前显示界面中展示所述默认运行状态;When the third air conditioner operating state is not received, obtain a default operating state, and display the default operating state in the current display interface; 按照预设周期向所述服务器发送状态更新指令,以使所述服务器响应于所述状态更新指令,根据所述空调标识查询对应的第四空调运行状态,在查询到所述第四空调运行状态时,反馈所述第四空调运行状态;Send a state update instruction to the server according to a preset period, so that the server responds to the state update instruction and queries the corresponding fourth air conditioner operating state according to the air conditioner identifier, and when the fourth air conditioner operating state is queried when the fourth air conditioner operating state is fed back; 当在第二预设时间内未接收到所述服务器反馈的第四空调运行状态时,展示预设提示界面,所述预设提示界面用于提示用户当前网络不稳定。When the fourth air conditioner operating state fed back by the server is not received within the second preset time, a preset prompt interface is displayed, and the preset prompt interface is used to prompt the user that the current network is unstable. 5.如权利要求4所述的数据同步方法,其特征在于,所述按照预设周期向所述服务器发送状态更新指令,以使所述服务器响应于所述状态更新指令,根据所述空调标识查询对应的第四空调运行状态,在查询到所述第四空调运行状态时,反馈所述第四空调运行状态之后,所述数据同步方法还包括:5 . The data synchronization method according to claim 4 , wherein the state update instruction is sent to the server according to a preset period, so that the server responds to the state update instruction, according to the air conditioner identifier. 6 . The corresponding fourth air conditioner operation state is inquired, and after the fourth air conditioner operation state is fed back when the fourth air conditioner operation state is inquired, the data synchronization method further includes: 当在第二预设时间内接收到所述服务器反馈的第四空调运行状态时,将所述当前显示界面中展示的设备状态由所述默认运行状态切换为所述第四空调运行状态。When the fourth air conditioner operating state fed back by the server is received within the second preset time, the device state displayed in the current display interface is switched from the default operating state to the fourth air conditioner operating state. 6.如权利要求4所述的数据同步方法,其特征在于,所述按照预设周期向所述服务器发送状态更新指令,以使所述服务器响应于所述状态更新指令,根据所述空调标识查询对应的第四空调运行状态,在查询到所述第四空调运行状态时,反馈所述第四空调运行状态之前,所述数据同步方法还包括:6 . The data synchronization method according to claim 4 , wherein the state update instruction is sent to the server according to a preset period, so that the server responds to the state update instruction, according to the air conditioner identifier. 7 . The corresponding fourth air conditioner operation state is inquired, and when the fourth air conditioner operation state is inquired, before feeding back the fourth air conditioner operation state, the data synchronization method further includes: 计算当前丢包率;Calculate the current packet loss rate; 当所述当前丢包率低于预设阈值时,执行所述按照预设周期向所述服务器发送状态更新指令,以使所述服务器响应于所述状态更新指令,根据所述空调标识查询对应的第四空调运行状态,在查询到所述第四空调运行状态时,反馈所述第四空调运行状态的步骤。When the current packet loss rate is lower than a preset threshold, executing the sending a state update instruction to the server according to a preset period, so that the server responds to the state update instruction and inquires about the corresponding The fourth air conditioner operating state is the step of feeding back the fourth air conditioner operating state when the fourth air conditioner operating state is queried. 7.如权利要求1所述的数据同步方法,其特征在于,所述将所述第一同步状态、所述第二同步状态以及所述第三同步状态进行比对之后,所述数据同步方法还包括:7 . The data synchronization method according to claim 1 , wherein after the first synchronization state, the second synchronization state and the third synchronization state are compared, the data synchronization method Also includes: 在所述第一同步状态、所述第二同步状态以及所述第三同步状态三者不相同时,将本地存储的第一同步状态修改为所述第三同步状态;When the first synchronization state, the second synchronization state and the third synchronization state are different, modifying the locally stored first synchronization state to the third synchronization state; 向所述服务器发送状态更正指令,以使所述服务器响应于所述状态更正指令,将本地存储的第二同步状态修改为所述第三同步状态。A state correction instruction is sent to the server to cause the server to modify the locally stored second synchronization state to the third synchronization state in response to the state correction instruction. 8.一种用户设备,其特征在于,所述用户设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的数据同步程序,所述数据同步程序被所述处理器执行时实现如权利要求1至7中任一项所述的数据同步方法的步骤。8. A user equipment, characterized in that the user equipment comprises: a memory, a processor, and a data synchronization program stored on the memory and executable on the processor, the data synchronization program being executed by the The processor implements the steps of the data synchronization method according to any one of claims 1 to 7 when executed. 9.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有数据同步程序,所述数据同步程序被处理器执行时实现如权利要求1至7中任一项所述的数据同步方法的步骤。9. A computer-readable storage medium, characterized in that, a data synchronization program is stored on the computer-readable storage medium, and the data synchronization program is implemented as described in any one of claims 1 to 7 when the data synchronization program is executed by a processor. The steps of the data synchronization method described above.
CN201711498943.1A 2017-12-28 2017-12-28 Data synchronization method, user equipment, and computer-readable storage medium Expired - Fee Related CN108224683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711498943.1A CN108224683B (en) 2017-12-28 2017-12-28 Data synchronization method, user equipment, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711498943.1A CN108224683B (en) 2017-12-28 2017-12-28 Data synchronization method, user equipment, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN108224683A CN108224683A (en) 2018-06-29
CN108224683B true CN108224683B (en) 2021-02-23

Family

ID=62642550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711498943.1A Expired - Fee Related CN108224683B (en) 2017-12-28 2017-12-28 Data synchronization method, user equipment, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN108224683B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271082A (en) * 2018-08-22 2019-01-25 珠海格力电器股份有限公司 Control method, device and equipment
CN109282435A (en) * 2018-09-25 2019-01-29 珠海格力电器股份有限公司 Air conditioner control method, server, control end, air conditioner and bottom layer control end
CN109557850B (en) * 2018-11-30 2021-06-04 广东美的制冷设备有限公司 Control method, remote control terminal, household appliance, system and storage medium
CN110597078A (en) * 2019-09-27 2019-12-20 南京博联智能科技有限公司 Equipment control implementation method, device, electronic equipment, storage medium and system
CN111478835B (en) * 2020-03-30 2021-10-22 广东美的暖通设备有限公司 Air conditioning unit monitoring device, monitoring method, air conditioning system and storage medium
CN113835347B (en) * 2021-09-15 2024-11-22 深圳Tcl新技术有限公司 Device status management method and device
CN114327331B (en) * 2021-12-22 2023-09-19 深圳Tcl新技术有限公司 Information display method, device, electronic equipment and computer-readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106527219A (en) * 2015-09-11 2017-03-22 Lg电子株式会社 Mobile terminal and home appliance
CN106681256A (en) * 2017-02-23 2017-05-17 郑州云海信息技术有限公司 Monitoring method and system based on cloud computing

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102006031230B4 (en) * 2006-07-06 2021-07-15 Bayerische Motoren Werke Aktiengesellschaft Method of transferring data
US9049078B2 (en) * 2011-08-31 2015-06-02 Eneroc, Inc. NOC-oriented control of a demand coordination network
US8635373B1 (en) * 2012-09-22 2014-01-21 Nest Labs, Inc. Subscription-Notification mechanisms for synchronization of distributed states
CN103763392B (en) * 2014-01-29 2018-09-07 百度在线网络技术(北京)有限公司 The control method of equipment, apparatus and system
CN103884076B (en) * 2014-02-08 2018-01-02 广东美的制冷设备有限公司 Service provider system, method and the air conditioner wireless controller of air conditioner
CN103985242B (en) * 2014-06-11 2017-01-11 珠海格力电器股份有限公司 Control method, control device and control system of air conditioner
CN104869165B (en) * 2015-05-28 2020-10-20 青岛海尔空调电子有限公司 A cloud-based dual-screen information synchronous transmission system
CN105262788B (en) * 2015-09-06 2019-05-03 北京京东尚科信息技术有限公司 User terminal, server and user equipment
CN106254427A (en) * 2016-07-22 2016-12-21 广东美的暖通设备有限公司 The air conditioning unit means of communication and device
CN106789468A (en) * 2016-12-22 2017-05-31 Tcl集团股份有限公司 A kind of appliances equipment control method and system based on intelligent terminal
CN106603716A (en) * 2016-12-30 2017-04-26 Tcl集团股份有限公司 Synchronization method of intelligent device state, intelligent device and control terminal thereof
CN107390970A (en) * 2017-06-15 2017-11-24 深信服科技股份有限公司 Text box methods of exhibiting, server, user terminal and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106527219A (en) * 2015-09-11 2017-03-22 Lg电子株式会社 Mobile terminal and home appliance
CN106681256A (en) * 2017-02-23 2017-05-17 郑州云海信息技术有限公司 Monitoring method and system based on cloud computing

Also Published As

Publication number Publication date
CN108224683A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN108224683B (en) Data synchronization method, user equipment, and computer-readable storage medium
CN107276864B (en) Method, device and system for intelligent voice device to control household appliances
EP3896916B1 (en) Network distribution method for household appliance, household appliance, mobile terminal and storage medium
CN107515764B (en) Application page opening method, terminal and computer readable storage medium
CN112327763A (en) Intelligent scene control method, device, gateway and storage medium
CN106302055A (en) The synchronous updating method of a kind of smart machine state and system
CN109408090B (en) Upgrading method of equipment software, data converter and readable storage medium
CN106302448B (en) Remote access control method and device
CN106789466B (en) Method for controlling intelligent household appliance, mobile terminal and intelligent household appliance
CN113485134A (en) Device control method and apparatus, storage medium, and electronic device
CN111412588A (en) Control method of air conditioner system, server and medium
CN111147314A (en) Switch upgrading method, device and storage medium
US20220417052A1 (en) Network configuration terminal, network configuration method for home appliance, and computer-readable storage medium
CN109974206B (en) Air conditioning system, control method thereof, control terminal and storage medium
CN112436986A (en) Network distribution method and device, network distribution equipment and computer readable storage medium
US20150106529A1 (en) Terminal apparatus and method for connecting to virtual server in virtual desktop infrastructure
CN107702274B (en) Terminal control method, device and computer-readable storage medium
CN111308903A (en) Control method of household appliance, air conditioner system, server and storage medium
WO2014180251A1 (en) Smart home home gateway implementation method and device
CN112448870A (en) Household appliance control method, device and equipment
CN110768878A (en) Voice function configuration method, configuration device and readable storage medium
CN104898472A (en) Terminal control method and device
WO2016197637A1 (en) Method for implementing remote access, alljoyn gateway proxy, cloud server and mobile device
CN112333062A (en) Control method and control device for household equipment and computer readable storage medium
CN108900586B (en) Household appliance, WIFI module, communication method between household appliance and WIFI module and terminal and readable storage medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201230

Address after: 9 / F, building D4, international e city, 1001 Zhongshan Garden Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: SHENZHEN TCL NEW TECHNOLOGY Co.,Ltd.

Address before: 516001, 6th Floor, TCL Building, No. 6, Eling South Road, Huizhou City, Guangdong Province

Applicant before: HUIZHOU TCL HOME APPLIANCE GROUP Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210223

Termination date: 20211228