Data processing method, device, system, computer equipment and storage medium

By synchronizing scene data in the smart home system and identifying differences, the problem of inconsistent message synchronization is solved, data consistency management between servers and home devices is realized, and the quality of smart home services is improved.

CN115865949BActive Publication Date: 2025-08-08GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211503113.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-25
Publication Date
2025-08-08
Estimated Expiration
2042-11-25

AI Technical Summary

Technical Problem

In the process of synchronizing scenario messages to cloud servers and home devices, messages often occur when they are not synchronized to cloud servers or home devices, resulting in inconsistent messages between cloud servers and home devices, affecting the quality of smart home services.

Method used

By obtaining scene data and syncing it to the server and home device respectively, determining the differential data between the server and the home device, identifying the target device and syncing the differential data to the target device to maintain data consistency.

Benefits of technology

It improves the cloud server's ability to manage scene data, ensures the normal operation of home equipment, and thus improves the service quality of smart home services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115865949B_ABST
    Figure CN115865949B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data processing method, apparatus, system, computer equipment and storage medium, wherein the method includes: obtaining scene data and synchronizing the scene data to a server and a device home device respectively; determining the difference between the scene data in the server and the device home device to obtain difference data; based on the difference data, determining a target object device from the server and / or the device home device, and synchronizing the difference data to the target object target device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of smart home technology, and more particularly to a data processing method, apparatus, system, computer equipment, and storage medium. Background Art

[0002] With the continuous development of IoT technology, smart homes have become increasingly common. Multiple home devices can be connected through networking to enable communication between cloud servers and home devices. Specifically, users can set scene messages and synchronize them to the cloud server and home devices, allowing the cloud server to manage both the scene messages and the home devices.

[0003] However, when synchronizing scene messages to the cloud server and home devices, synchronization failures often occur. For example, scene messages may not be synchronized to the cloud server or to the home devices. In this case, the consistency of messages between the cloud server and the home devices cannot be guaranteed, which hinders the cloud server's ability to manage scene messages and home devices, and thus reduces the quality of smart home services provided to users. Summary of the Invention

[0004] The embodiments of the present disclosure at least provide a data processing method, apparatus, system, computer equipment, and storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides a data processing method, including:

[0006] Acquire scene data and synchronize the scene data to the server and home devices respectively;

[0007] Determine the difference between the scene data in the server and the scene data in the home device to obtain difference data;

[0008] A target device is determined from the server or home device, and the difference data is synchronized to the target device.

[0009] In an optional implementation, determining the difference between the scene data in the server and the home device to obtain the difference data includes:

[0010] Obtaining a first scene identifier corresponding to the scene data stored in the server, and obtaining a second scene identifier corresponding to the scene data stored in the home device;

[0011] In a case where the first scene identifier does not match the second scene identifier, determining an identifier difference between the first scene identifier and the second scene identifier;

[0012] The data synchronization time of the scene data corresponding to the identification difference is determined, and the scene data corresponding to the data synchronization time is determined as the difference data.

[0013] In an optional implementation, determining the target device from the server or the home device includes:

[0014] Determining a synchronization number of synchronizing the scene data to the server;

[0015] When the number of synchronizations reaches a threshold, the server is determined as a target device.

[0016] In an optional implementation, determining the target device from the server or the home device includes:

[0017] When there are multiple home appliances, obtaining first scene data stored in each of the home appliances;

[0018] A home device whose stored first scene data does not match the second scene data in the server is determined as a target device.

[0019] In an optional implementation manner, synchronizing the difference data to the target device includes:

[0020] In a case where the target device includes the server, performing a determination operation on the running status of the server;

[0021] When the running state of the server meets the data synchronization condition, an operation of synchronizing the difference data to the server is performed.

[0022] In an optional implementation manner, synchronizing the difference data to the target device includes:

[0023] In a case where the target device includes the household device, determining an operating state of the household device;

[0024] When the operating state of the household appliance meets the data synchronization condition, determining the device type of the household appliance, and determining a data synchronization instruction corresponding to the household appliance based on the device type;

[0025] In response to the data synchronization instruction, an operation of synchronizing the difference data to the home device is executed.

[0026] In an optional implementation, the step of synchronizing the difference data to the home device in response to the data synchronization instruction includes:

[0027] When the device type of the home device is the first type, determining an intermediate device that communicates with the server and instructing the intermediate device to obtain the difference data; determining a first data synchronization instruction, and in response to the first data synchronization instruction, instructing the intermediate device to synchronize the difference data to the home device;

[0028] or,

[0029] In a case where the device type of the home device is the second type, a second data synchronization instruction is determined, and the server is instructed to synchronize the difference data to the home device through the second data synchronization instruction.

[0030] In an optional implementation, the method further includes:

[0031] After synchronizing the difference data to the target device, obtaining a control instruction determined by the server based on the scenario data;

[0032] Based on the control instruction, the corresponding home appliance is controlled to perform corresponding operations.

[0033] In a second aspect, an embodiment of the present disclosure further provides a data processing device, including:

[0034] An acquisition unit, configured to acquire scene data and synchronize the scene data to a server and home devices respectively;

[0035] a determining unit, configured to determine a difference between the scene data in the server and the scene data in the home device, and obtain difference data;

[0036] A synchronization unit is used to determine a target device from the server or home device and synchronize the difference data to the target device.

[0037] In a third aspect, the present disclosure further provides a data processing system, comprising: a server, a home device, and a main device;

[0038] The master device obtains scene data and synchronizes the scene data to a server and a home appliance respectively, determines a difference between the scene data in the server and the home appliance, obtains difference data, and determines a target device from the server or the home appliance to synchronize the difference data to the target device;

[0039] The server, in response to a synchronization request from the master device, acquires scene data, and, if determined to be a target device, acquires difference data synchronized by the master device;

[0040] The home device obtains scene data in response to the synchronization request of the master device, and obtains difference data synchronized by the master device when the home device is determined to be a target device.

[0041] In a fourth aspect, an embodiment of the present disclosure further provides a computer device comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned first aspect or any possible implementation of the first aspect are performed.

[0042] In a fifth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect or any possible implementation of the first aspect are executed.

[0043] In the embodiments of the present disclosure, scene data can first be acquired and synchronized to a server and home appliances, respectively. Next, the difference between the scene data in the server and the home appliances can be determined to obtain difference data, and target devices that have not been synchronized to the difference data can be identified so that the difference data can be synchronized to the target devices. This maintains data consistency between the server and the home appliances, facilitates the server's management of the scene data, and controls the home appliances based on the scene data, thereby improving the quality of smart home services provided to users. To make the above-mentioned purposes, features, and advantages of the present disclosure more clearly understood, preferred embodiments are specifically described below in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments. The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and, together with the specification, are used to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without inventive effort.

[0045] Figure 1 A flow chart of a data processing method provided by an embodiment of the present disclosure is shown;

[0046] Figure 2 A flowchart of determining the difference between scene data in a server and a home device and obtaining the difference data provided by an embodiment of the present disclosure is shown;

[0047] Figure 3 A flowchart of another data processing method provided by an embodiment of the present disclosure is shown;

[0048] Figure 4 A schematic diagram of a data processing device provided by an embodiment of the present disclosure is shown;

[0049] Figure 5 A schematic diagram of a data processing system provided by an embodiment of the present disclosure is shown;

[0050] Figure 6 A schematic diagram of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the disclosure for which protection is sought, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present disclosure.

[0052] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.

[0053] The term "and / or" herein simply describes an association relationship, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, and the existence of B alone. In addition, the term "at least one" herein refers to any combination of at least two of any one or more of a plurality of items. For example, "at least one of A, B, and C" can represent any one or more elements selected from the set consisting of A, B, and C.

[0054] Research has found that existing smart home solutions require synchronizing scene messages to both cloud servers and home devices, enabling the cloud server to manage these messages and devices. However, synchronization failures often occur during this process, for example, when a scene message fails to sync to the cloud server or to a home device. This prevents message consistency between the cloud server and the home device, hindering the cloud server's ability to manage scene messages and devices, and consequently reducing the quality of smart home services provided to users.

[0055] Based on the above research, the present disclosure provides a data processing method, apparatus, system, computer device, and storage medium. In an embodiment of the present disclosure, scene data can first be acquired and synchronized to a server and a home appliance, respectively. Next, the difference between the scene data in the server and the home appliance can be determined to obtain the difference data, and target devices that have not been synchronized to the difference data can be identified and synchronized to the target devices. This maintains data consistency between the server and the home appliance, facilitates the server's management of the scene data, and controls the home appliance based on the scene data, thereby improving the quality of smart home services provided to users.

[0056] To facilitate understanding of this embodiment, a data processing method disclosed in this embodiment is first described in detail. The data processing method provided in this embodiment is generally executed by a computer device with certain computing capabilities. In some possible implementations, the data processing method can be implemented by a processor invoking computer-readable instructions stored in a memory.

[0057] In the disclosed embodiments, the computer device may be a terminal device having a target application installed thereon. The target application is communicatively connected to the server and device in the disclosed embodiments, allowing a user to input scene data into the target application, which in turn synchronizes the scene data with the server and home appliances. Furthermore, the home appliances in the disclosed embodiments may be home appliances that provide intelligent home services to users, and the server may be a cloud server that manages the scene data and the home appliances.

[0058] See also Figure 1 FIG. 1 is a flow chart of a data processing method provided by an embodiment of the present disclosure, wherein the method includes steps S101 to S105, wherein:

[0059] S101: Acquire scene data, and synchronize the scene data to a server and home devices respectively.

[0060] In the embodiment of the present disclosure, first, scene data can be obtained based on the above-mentioned target application. The scene data can be used to indicate the home environment in which the home appliance is located and the scene of the operating status of the home appliance. For example, the scene data may include: user's travel data, environmental data of the home environment, user's demand data, etc. Among them, the travel data can be determined by the travel data set by the user in the target application, such as the time when the user goes out and the time when he returns home. The environmental data can be determined based on the home environment, such as the ambient temperature, ambient humidity, etc. The demand data can be determined based on the needs input by the user in the target application, such as the indoor temperature required by the user, the water temperature of the water heater required by the user, etc.

[0061] After acquiring the scene data, the scene data can be synchronized to the server and home appliances respectively, wherein the server can be the above-mentioned cloud server, and the home appliances can include: air conditioners, water heaters, rice cookers, refrigerators, microwave ovens, etc.

[0062] It should be understood that the aforementioned home appliances can provide home services to users based on scenario data. For example, if the scenario data includes demand data indicating that the user requires a water temperature of 50°C for the water heater, then upon receiving the demand data, the water heater can adjust the temperature of the temperature control module to 50°C. Furthermore, upon receiving the scenario data, the aforementioned server can understand the real-time scenario status and manage the scenario data and the home appliances in the scenario.

[0063] S103: Determine the difference between the scene data in the server and the scene data in the home device, and obtain difference data.

[0064] In the disclosed embodiments, the difference data can be used to indicate the difference between the scene data synchronized to the server and the scene data stored in the home appliance. After the acquired scene data is synchronized to the server and the home appliance, the target application can periodically check whether the scene data on the server and the home appliance are consistent. In a specific implementation, after acquiring the scene data, a scene identifier can be generated for the scene data based on the time the scene data was acquired, and the scene identifier and the scene data can be synchronized simultaneously to the service area and the home appliance.

[0065] Based on this, when the scene identifiers in the server and the home appliance are inconsistent, it can be determined that the scene data in the server and the home appliance are inconsistent. For example, if the scene identifier corresponding to the scene data stored in the home appliance is the first scene identifier, and the scene identifier corresponding to the scene data stored in the server is the second scene identifier, where the first scene identifier is 3 and the second scene identifier is 2, then it can be determined that the scene data in the server and the device are inconsistent.

[0066] Next, the difference between the scene data in the server and the home device can be determined based on the scene identification, thereby obtaining difference data. The specific method for determining the difference data is described below and will not be repeated here.

[0067] S105: Determine a target device from the server or home device, and synchronize the difference data to the target device.

[0068] In the disclosed embodiment, a target device that has not been synchronized with the difference data can first be identified on the server or in the home appliance. The difference data can then be synchronized to the target device according to the data retransmission method corresponding to the target device, thereby maintaining consistency in the scene data between the server and the home appliance, facilitating the server's management of the scene data and controlling the home appliance based on the scene data. The specific method for determining the target device is described below and will not be further elaborated here.

[0069] It should be understood that if the scene data in the server and the home appliance are inconsistent, for example, the water temperature of the water heater in the home appliance needs to be maintained at 50°C to meet the user's water demand. However, the scene data in the server indicates that the water temperature in the water heater is 50°C, while the actual water temperature in the water heater is 26°C. At this time, the server will determine based on the scene data that the water heater meets the user's water demand, and thus will not regulate the water temperature in the water heater through control instructions, resulting in a poor user experience.

[0070] In the embodiment of the present disclosure, scene data can be first obtained and synchronized to the server and the home appliance respectively. Next, the difference between the scene data in the server and the home appliance can be determined to obtain the difference data, and the target device that has not been synchronized to the difference data can be determined to synchronize the difference data to the target device, thereby maintaining the data consistency between the server and the home appliance, helping the server to manage the scene data and control the home appliance based on the scene data, thereby improving the service quality of the smart home service provided to the user.

[0071] In an alternative embodiment, see Figure 2 FIG. 1 is a flowchart of determining the difference between the scene data in the server and the home device in step S103 and obtaining the difference data, specifically including steps S1031 to S1033, wherein:

[0072] S1031: Obtain a first scene identifier corresponding to the scene data stored in the server, and obtain a second scene identifier corresponding to the scene data stored in the home device.

[0073] As can be seen from the above, in the disclosed embodiments, after scene data is acquired, a scene identifier can be generated for the scene data based on the time the scene data was acquired, and the scene identifier and the scene data can be synchronized to the service area and the home device at the same time. Here, the scene identifier should be incremental. For example, the scene data acquired at 2:00 PM may correspond to a scene identifier of 3, and the scene data acquired at 4:00 PM may correspond to a scene identifier of 4.

[0074] Based on this, it can be determined whether there is a difference between the scene data in the server and the home device based on the scene identifier. In specific implementation, a first scene identifier corresponding to the scene data stored in the server can be obtained, and a second scene identifier corresponding to the scene data stored in the home device can be obtained.

[0075] It should be understood that the above-mentioned target application can obtain the first scene identifier and the second scene identifier according to the preset detection time, and compare the obtained first scene identifier and the second scene identifier to determine whether the scene data stored in the server is consistent with the scene data stored in the home device. In case of inconsistency, the difference data can be determined in time and reissued to the target device that lacks the difference data.

[0076] S1032: If the first scene identifier does not match the second scene identifier, determine an identifier difference between the first scene identifier and the second scene identifier.

[0077] In the disclosed embodiment, the first scene identifier and the second scene identifier obtained can be compared. If the first scene identifier and the second scene identifier do not match, the first scene identifier and the second scene identifier are subtracted to obtain the difference between the first scene identifier and the second scene identifier. Furthermore, based on the subtraction result, the device with the smaller scene identifier can be determined and designated as the target device.

[0078] For example, when the first scene identifier is 4 and the second scene identifier is 3, after subtracting the first scene identifier from the second scene identifier, the determined identifier difference is 1. At the same time, since the second scene identifier is smaller than the first scene identifier, the home device corresponding to the second scene identifier can be determined as the target device.

[0079] S1033: Determine the data synchronization time of the scene data corresponding to the identification difference, and determine the scene data corresponding to the data synchronization time as the difference data.

[0080] After determining the identification difference, the corresponding data synchronization time can be determined based on the smaller scene identifier of the first scene identifier and the second scene identifier and the identification difference, wherein the data synchronization time can be used to indicate the time when synchronizing the scene data corresponding to the above-mentioned difference data.

[0081] For example, if the smaller of the first and second scene identifiers is determined to be the second scene identifier, the second scene identifier is 3, and the identifier difference is 1, then the next data synchronization time 2 after the data synchronization time 1 corresponding to the second scene identifier can be determined, and the data synchronization time 2 can be determined as the data synchronization time corresponding to the identifier difference. Subsequently, the scene data synchronized by the target application at the data synchronization time 2 can be determined as differential data.

[0082] In an embodiment of the present disclosure, the above-mentioned target application can obtain the first scene identifier and the second scene identifier according to a preset detection time, and compare the obtained first scene identifier and the second scene identifier to determine whether the scene data stored in the server is consistent with the scene data stored in the home device. In the case of inconsistency, the difference data is determined in a timely manner, and the difference data is reissued to the target device that lacks the difference data, thereby maintaining the consistency of the scene data stored in the server and the home device.

[0083] In an optional embodiment, the above step S105, determining the target device from the server or home device, specifically includes the following process:

[0084] S11: Determine the number of synchronization times for synchronizing the scene data to the server.

[0085] S12: When the number of synchronization times reaches a threshold, the server is determined as a target device.

[0086] In the embodiment of the present disclosure, taking into account the possibility that the server may be temporarily unable to receive scene data due to network fluctuations or short-term server failures, a number threshold can be set in advance for the server device in the target application so that when the server is temporarily unable to receive scene data, the scene data can be synchronized to the server multiple times without the number of synchronizations exceeding the number threshold.

[0087] Based on this, when synchronizing the same scene data to the server, the synchronization count can be recorded each time. If the synchronization count reaches the above threshold, it can be determined that the server has been unable to receive data for a long time. In this case, the scene data will not be synchronized to the server, and the server will be identified as the target device. Next, the scene data can be stored in the message queue of the target application, and the scene data can be retrieved from the message queue after the server resumes receiving data.

[0088] In an embodiment of the present disclosure, a threshold for the number of synchronizations of scene data can be set in advance for the server to reduce the situation where the server misses receiving scene data when it is temporarily unable to receive scene data. At the same time, when the number of synchronizations of the same scene data reaches the threshold, it can be determined that the server is in a state of being unable to receive data for a long time. At this time, the scene data can be stored in a message queue in the target application to wait for the server to resume the data receiving state and then obtain the scene data from the message queue, thereby reducing the waste of computing resources of the device.

[0089] In an optional embodiment, the above step S105, determining the target device from the server or home device, further includes the following process:

[0090] S21: When there are multiple home appliances, obtain first scene data stored in each of the home appliances.

[0091] S22: Determine a home device whose stored first scene data does not match the second scene data in the server as a target device.

[0092] In an optional embodiment, when there are multiple home devices, the scene data can be synchronized with each home device during synchronization, thereby improving the efficiency of collaboration between the various home devices. For example, if the scene data includes a user's travel data, and the travel data indicates that the user will return home at 9 o'clock, then this scene data can be synchronized with each home device, allowing each home device to coordinate based on the scene data and provide home services to the user. For example, the air conditioner will turn on at 8:30 to adjust the room temperature for the user, and the lights will turn on at 9 o'clock to provide lighting for the user.

[0093] Based on this, the first scene data stored in each home device can be obtained, and the second scene data stored in the server can be obtained, and at least some home devices whose first scene data and second scene data do not match are determined as target devices among all home devices.

[0094] In specific implementation, the scene identifier corresponding to the first scene data can be compared with the scene identifier corresponding to the second scene data, so as to determine at least some home appliances that do not match the first scene data and the second scene data as target devices based on the scene identifier.

[0095] In another optional embodiment, the scene data may include the device ID of the home device to be synchronized, and the scene device may be synchronized to the corresponding home device based on the device ID. Based on this, when the data synchronization time 3 indicated by the scene identifier corresponding to the second scene data stored on the server matches the data synchronization time 4 of the most recent scene data synchronization in the target application, the second scene data may be acquired and the device ID included in the second scene data may be parsed. Next, the first scene data stored in the home device corresponding to the device ID may be acquired, and a determination may be made as to whether the first scene data matches the second scene data. If not, the home device may be identified as the target device.

[0096] In an embodiment of the present disclosure, when there are multiple home appliances, the first scene data stored in each home appliance can be obtained, and the first scene data can be compared with the second scene data in the server, so that the home appliance whose first scene data does not match the second scene data can be used as the target device, thereby improving the accuracy of reissuing the difference data and further improving the efficiency of using the computing power resources of the device.

[0097] In an optional embodiment, the step S105 of synchronizing the difference data to the target device specifically includes the following process:

[0098] S31: When the target device includes the server, performing a determination operation on the running status of the server.

[0099] In the embodiment of the present disclosure, it can be seen from the above that the server may be in an operating state where it cannot receive data for a long time due to a malfunction or other reasons. At this time, when the target device includes a server, the operating state of the server can be polled according to the preset polling time by determining the operation, and it can be determined whether the polled operating state meets the data synchronization conditions.

[0100] S32: When the running state of the server meets the data synchronization condition, execute the operation of synchronizing the difference data to the server.

[0101] In the disclosed embodiments, the data synchronization condition may be used to indicate that the server is in a state where it can receive data, for example, the state may be a normal operating state. In this case, the cached scene data may be obtained from the message queue, and difference data may be determined in the scene data to synchronize the difference data to the server.

[0102] From the above description, it can be seen that when the target device includes a server, the operating status of the server can be determined, and when the operating status of the server meets the data synchronization conditions, the operation of synchronizing the difference data in the message queue to the server can be executed, thereby reducing the server lag caused by repeatedly sending data to the server when the server cannot receive data.

[0103] In an optional embodiment, the above step S105 of synchronizing the difference data to the target device further includes the following process:

[0104] S41: When the target device includes the household device, determine the operating status of the household device.

[0105] S42: When the operating state of the home appliance meets the data synchronization condition, determine the device type of the home appliance, and determine the data synchronization instruction corresponding to the home appliance based on the device type.

[0106] S43: In response to the data synchronization instruction, execute an operation of synchronizing the difference data to the home device.

[0107] In an embodiment of the present disclosure, if the target device includes a household appliance, a request may be made to a server to obtain difference data and determine the operating status of the household appliance. This operating status may indicate whether the household appliance is capable of receiving data. For example, if the household appliance is powered off, it may be determined that the household appliance is unable to receive data. If it is determined that the household appliance is unable to receive data, the obtained difference data may be stored in a message queue, pending the operational status of the household appliance meeting the aforementioned data synchronization conditions.

[0108] The data synchronization condition can be used to indicate that a household appliance is in a state capable of receiving data. For example, the data synchronization condition can be that the household appliance is in normal operation. If it is determined that the operating state of the household appliance meets the data synchronization condition, the device type of the household appliance can be determined, and a data synchronization instruction matching the household appliance can be determined based on the device type. The device type can indicate the data transmission method supported by the household appliance, such as WiFi transmission or Bluetooth transmission. Next, in response to the data synchronization instruction, the difference data can be synchronized to the household appliance. The specific process of synchronizing the difference data to the household appliance is described below and is not further described here.

[0109] In an embodiment of the present disclosure, when the target device includes a household appliance, the operating status of the household appliance can be determined, and when the operating status of the household appliance meets the data synchronization conditions, the operation of synchronizing the difference data to the household appliance is performed, thereby reducing the situation where message congestion and repeated data reception are caused by repeatedly sending data to the household appliance when the household appliance cannot receive data.

[0110] In an optional embodiment, in step S43, in response to the data synchronization instruction, the operation of synchronizing the difference data to the home device is performed, specifically including the following methods:

[0111] Method 1:

[0112] In a case where the device type of the home device is the second type, a second data synchronization instruction is determined, and the server is instructed to synchronize the difference data to the home device through the second data synchronization instruction.

[0113] In the disclosed embodiments, the network topology of the home device can be determined first, and based on this network topology, the method for the home device to access the server can be determined. Specifically, the second type can be used to indicate that the home device is a Wi-Fi device, i.e., the method for the Wi-Fi device to access the server is Wi-Fi access. If the device type of the home device is determined to be the second type, data exchange between the home device and the server can be achieved through Wi-Fi communication, thereby synchronizing the difference data to the home device.

[0114] Method 2:

[0115] When the device type of the home device is the first type, determine an intermediate device that communicates with the server and instruct the intermediate device to obtain the difference data; determine a first data synchronization instruction, and in response to the first data synchronization instruction, instruct the intermediate device to synchronize the difference data to the home device.

[0116] In the disclosed embodiments, the network topology of the home devices can be determined first, and based on this network topology, the method for connecting the home devices to the server can be determined. Specifically, the first type can be used to indicate that the home device is a Bluetooth device. Because direct data transmission between a Bluetooth device and a server is impeded, an intermediate device capable of communicating with the Bluetooth device and the server can be identified. This intermediate device can be the primary device on which the target application is installed, or the aforementioned Wi-Fi device.

[0117] During implementation, the priority for obtaining difference data between the master device and the Wi-Fi device can be pre-set. This prevents multiple devices from simultaneously obtaining difference data when the target device is a Bluetooth device and the home devices include Wi-Fi devices. For example, the master device's priority can be set to level 1, and the Wi-Fi device's priority can be set to level 2. In this case, when obtaining difference data, the master device will be given priority. If the master device is unable to obtain and transmit cached data, the Wi-Fi device can be used to obtain the difference data.

[0118] After obtaining the difference data, a first data synchronization instruction can be determined based on the difference data, and the first data synchronization instruction can be sent to the intermediate device, so that the intermediate device synchronizes the obtained difference data to the home device based on the first data synchronization instruction.

[0119] In an embodiment of the present disclosure, the device type of the home device can be determined based on the way the home device accesses the server, and the data synchronization instruction corresponding to the home device can be determined based on the device type, so that the difference data can be synchronized to the home device based on the data synchronization instruction, thereby enabling the present disclosure to adapt to the network access methods of different types of home devices, thereby improving the scope of application of the present disclosure.

[0120] In an optional embodiment, the above Figure 1 The corresponding implementation further includes step S106, which specifically includes the following process:

[0121] S1061: After synchronizing the difference data to the target device, obtain a control instruction determined by the server based on the scenario data.

[0122] S1062: Based on the control instruction, control the corresponding home appliance to perform corresponding operations.

[0123] In an embodiment of the present disclosure, the server can be instructed to analyze the status of the home appliances to determine the operating status of each home appliance, and determine the control instructions for adjusting the home environment based on the operating status of each home appliance and the scene data, so as to control the corresponding home appliances to perform corresponding operations based on the control instructions, thereby adjusting the home environment.

[0124] For example, if the server determines that the operating status of the air conditioner is not running, and the scene data indicates that the user's travel data is that the user arrives home at nine o'clock, then the server can determine the control instruction for the air conditioner. The control instruction can indicate the start-up time and operating parameters of the air conditioner. For example, the start-up time can be half past eight, and the operating parameters can include temperature control parameters, such as 26°C.

[0125] Next, the control instruction sent by the server can be obtained, and based on the control instruction, the air conditioner can be controlled to perform corresponding operations according to the above-mentioned startup time and operating parameters.

[0126] In the embodiment of the present disclosure, the control instructions determined by the server based on the scene data can be obtained to control the corresponding home appliances to perform corresponding operations based on the control instructions, thereby improving the efficiency of controlling the home appliances and the accuracy of issuing instructions, and improving the intelligence level of home services.

[0127] See for example Figure 3 FIG. 1 is a flow chart of another data processing method provided by an embodiment of the present disclosure, wherein the method includes steps S601 to S608, wherein:

[0128] S601: Acquire scene data and synchronize the scene data to the server and home devices respectively.

[0129] S602: Determine whether the target device for which scene data synchronization fails is a home device; if so, execute step S603; if not, execute step S608.

[0130] S603: Determine whether the device type of the home device is a Wi-Fi device; if so, execute step S604; if not, execute step S607.

[0131] S604: Send the difference data to the home device via the server.

[0132] S605: According to the preset detection time, regularly detect the party where the scene data synchronization fails in the home device or the server.

[0133] In the embodiment of the present disclosure, the above-mentioned second scene identifier in the home device can be compared with the above-mentioned first scene identifier in the server to determine whether the first scene identifier and the second scene identifier match. If they do not match, it can be determined that the scene data in the home device and the server are inconsistent. If they match, it can be determined that the scene data in the home device and the server are consistent.

[0134] When it is determined that the scene data in the home appliance and the scene data in the server are inconsistent, the one with the smaller scene identifier corresponding to the stored scene data can be determined as the one on which the scene data synchronization fails.

[0135] S606: Update the side where scene data synchronization fails.

[0136] S607: Synchronize the difference data to the home device through the intermediate device.

[0137] S608: Synchronize the difference data to the server through the target application.

[0138] In summary, in the embodiments of the present disclosure, scene data can be first obtained and synchronized to the server and home appliances respectively. Next, the difference between the scene data in the server and the home appliances can be determined to obtain difference data, and the target device that has not been synchronized to the difference data can be determined to synchronize the difference data to the target device, thereby maintaining the consistency of data between the server and the home appliances, helping the server to manage the scene data, and control the home appliances based on the scene data, thereby improving the service quality of the smart home services provided to users.

[0139] Those skilled in the art will understand that in the above-mentioned method of the specific implementation method, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0140] Based on the same inventive concept, a data processing device corresponding to the data processing method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned data processing method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0141] Reference Figure 4 FIG. 1 is a schematic diagram of a data processing device provided by an embodiment of the present disclosure, wherein the device includes: an acquisition unit 41, a determination unit 42, and a synchronization unit 43; wherein,

[0142] An acquisition unit 41 is used to acquire scene data and synchronize the scene data to a server and home devices respectively;

[0143] a determining unit 42, configured to determine a difference between the scene data in the server and the scene data in the home device, and obtain difference data;

[0144] The synchronization unit 43 is configured to determine a target device from the server or home device and synchronize the difference data to the target device.

[0145] In the embodiment of the present disclosure, scene data can be first obtained and synchronized to the server and the home appliance respectively. Next, the difference between the scene data in the server and the home appliance can be determined to obtain the difference data, and the target device that has not been synchronized to the difference data can be determined to synchronize the difference data to the target device, thereby maintaining the data consistency between the server and the home appliance, helping the server to manage the scene data and control the home appliance based on the scene data, thereby improving the service quality of the smart home service provided to the user.

[0146] In a possible implementation, the determining unit 42 is further configured to:

[0147] Obtaining a first scene identifier corresponding to the scene data stored in the server, and obtaining a second scene identifier corresponding to the scene data stored in the home device;

[0148] In a case where the first scene identifier does not match the second scene identifier, determining an identifier difference between the first scene identifier and the second scene identifier;

[0149] The data synchronization time of the scene data corresponding to the identification difference is determined, and the scene data corresponding to the data synchronization time is determined as the difference data.

[0150] In a possible implementation manner, the synchronization unit 43 is further configured to:

[0151] Determining a synchronization number of synchronizing the scene data to the server;

[0152] When the number of synchronizations reaches a threshold, the server is determined as a target device.

[0153] In a possible implementation manner, the synchronization unit 43 is further configured to:

[0154] When there are multiple home appliances, obtaining first scene data stored in each of the home appliances;

[0155] A home device whose stored first scene data does not match the second scene data in the server is determined as a target device.

[0156] In a possible implementation manner, the synchronization unit 43 is further configured to:

[0157] In a case where the target device includes the server, performing a determination operation on the running status of the server;

[0158] When the running state of the server meets the data synchronization condition, an operation of synchronizing the difference data to the server is performed.

[0159] In a possible implementation manner, the synchronization unit 43 is further configured to:

[0160] In a case where the target device includes the household device, determining an operating state of the household device;

[0161] When the operating state of the household appliance meets the data synchronization condition, determining the device type of the household appliance, and determining a data synchronization instruction corresponding to the household appliance based on the device type;

[0162] In response to the data synchronization instruction, an operation of synchronizing the difference data to the home device is executed.

[0163] In a possible implementation manner, the synchronization unit 43 is further configured to:

[0164] When the device type of the home device is the first type, determining an intermediate device that communicates with the server and instructing the intermediate device to obtain the difference data; determining a first data synchronization instruction, and in response to the first data synchronization instruction, instructing the intermediate device to synchronize the difference data to the home device;

[0165] or,

[0166] In a case where the device type of the home device is the second type, a second data synchronization instruction is determined, and the server is instructed to synchronize the difference data to the home device through the second data synchronization instruction.

[0167] In a possible implementation manner, the device is further used for:

[0168] After synchronizing the difference data to the target device, obtaining a control instruction determined by the server based on the scenario data;

[0169] Based on the control instruction, the corresponding home appliance is controlled to perform corresponding operations.

[0170] For descriptions of the processing flow of each unit in the device and the interaction flow between each unit, reference can be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0171] Reference Figure 5FIG. 5 is a schematic diagram of a data processing system 50 provided in an embodiment of the present disclosure, wherein the system includes: a main device 51, a server 52, and a home device 53; wherein,

[0172] The main device 51 obtains scene data and synchronizes the scene data to the server and the home appliance respectively, determines the difference between the scene data in the server and the home appliance, obtains difference data, and determines the target device from the server or the home appliance to synchronize the difference data to the target device.

[0173] In the disclosed embodiments, scenario data may first be acquired based on the target application. The scenario data may include: user travel data, home environment data, user demand data, etc. The travel data may be determined by the itinerary set by the user in the target application, such as the user's departure time and return time. The environmental data may be determined based on the home environment, such as the ambient temperature and humidity. The demand data may be determined based on the requirements input by the user in the target application, such as the user's desired indoor temperature or the user's desired water heater temperature.

[0174] After acquiring the scene data, the scene data can be synchronized to the server and home appliances respectively, wherein the server can be the above-mentioned cloud server, and the home appliances can include: air conditioners, water heaters, rice cookers, refrigerators, microwave ovens, etc.

[0175] It should be understood that the aforementioned home appliances can provide home services to users based on scenario data. For example, if the scenario data includes demand data indicating that the user requires a water temperature of 50°C for the water heater, then upon receiving the demand data, the water heater can adjust the temperature of the temperature control module to 50°C. Furthermore, upon receiving the scenario data, the aforementioned server can understand the real-time scenario status and manage the scenario data and the home appliances in the scenario.

[0176] In the disclosed embodiments, the difference data can be used to indicate the difference between the scene data synchronized to the server and the scene data synchronized to the home appliance. After the acquired scene data is synchronized to the server and the home appliance, the target application can periodically check whether the scene data on the server and the home appliance are consistent. In a specific implementation, after acquiring the scene data, a scene identifier can be generated for the scene data based on the time the scene data was acquired, and the scene identifier and the scene data can be synchronized simultaneously to the service area and the home appliance.

[0177] Based on this, when the scene identifiers in the server and the home appliance are inconsistent, it can be determined that the scene data in the server and the home appliance are inconsistent. For example, if the scene identifier corresponding to the scene data stored in the home appliance is the first scene identifier, and the scene identifier corresponding to the scene data stored in the server is the second scene identifier, where the first scene identifier is 3 and the second scene identifier is 2, then it can be determined that the scene data in the server and the device are inconsistent.

[0178] Next, the difference between the scene data in the server and the home device can be determined based on the scene identification, thereby obtaining difference data. The specific method for determining the difference data is described below and will not be repeated here.

[0179] In the disclosed embodiment, a target device that has not been synchronized with the difference data can first be identified on the server or in the home appliance. The difference data can then be synchronized to the target device according to the data retransmission method corresponding to the target device, thereby maintaining consistency in the scene data between the server and the home appliance, facilitating the server's management of the scene data and controlling the home appliance based on the scene data. The specific method for determining the target device is described below and will not be further elaborated here.

[0180] It should be understood that if the scene data in the server and the home appliance are inconsistent, for example, the water temperature of the water heater in the home appliance needs to be maintained at 50°C to meet the user's water demand. However, the scene data in the server indicates that the water temperature in the water heater is 50°C, while the actual water temperature in the water heater is 26°C. At this time, the server will determine based on the scene data that the water heater meets the user's water demand, and thus will not regulate the water temperature in the water heater through control instructions, resulting in a poor user experience.

[0181] The server 52 obtains scene data in response to the synchronization request of the master device, and obtains difference data synchronized by the master device if it is determined to be the target device;

[0182] The home device 53 obtains scene data in response to the synchronization request of the master device, and obtains difference data synchronized by the master device if it is determined as a target device.

[0183] In an embodiment of the present disclosure, the server and home device can obtain scene data synchronized by the main device in response to a synchronization request from the main device, and obtain difference data synchronized by the main device if the device is determined to be a target device.

[0184] It should be understood that the server can also determine control instructions based on scene data to control corresponding home appliances to perform corresponding operations, thereby providing users with intelligent home services. The specific method of determining control instructions and controlling home operations is as described in the embodiment of step S106 above, and will not be repeated here.

[0185] Corresponding to Figure 1 The data processing method in the present disclosure also provides a computer device 600, such as Figure 6 FIG. 6 is a schematic diagram of the structure of a computer device 600 provided in an embodiment of the present disclosure, including:

[0186] Processor 61, memory 62, and bus 63; memory 62 is used to store execution instructions and includes internal memory 621 and external memory 622; the internal memory 621 is also called internal memory and is used to temporarily store operation data in the processor 61 and data exchanged with external memory 622 such as a hard disk. The processor 61 exchanges data with the external memory 622 through the internal memory 621. When the computer device 600 is running, the processor 61 communicates with the memory 62 via the bus 63, so that the processor 61 executes the following instructions:

[0187] Acquire scene data and synchronize the scene data to the server and home devices respectively;

[0188] Determine the difference between the scene data in the server and the scene data in the home device to obtain difference data;

[0189] A target device is determined from the server or home device, and the difference data is synchronized to the target device.

[0190] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program executes the steps of the data processing method described in the above method embodiment. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0191] The embodiments of the present disclosure also provide a computer program product, which carries program code. The instructions included in the program code can be used to execute the steps of the data processing method described in the above method embodiment. For details, please refer to the above method embodiment and will not be repeated here.

[0192] The computer program product may be implemented in hardware, software, or a combination thereof. In one embodiment, the computer program product is implemented as a computer storage medium. In another embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0193] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0194] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0195] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0196] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0197] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The scope of protection of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present disclosure, or replace some of the technical features therein with equivalents. Such modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure shall be subject to the scope of protection of the claims.

Claims

1. A data processing method, characterized in that: The data processing method is applied to a main device of a data processing system, wherein the data processing system further includes a server and home appliances. The data processing method includes: Acquire scene data and synchronize the scene data to the server and home devices respectively; Determine the difference between the scene data in the server and the scene data in the home device to obtain difference data; A target device is determined from the server or home device, and the difference data is synchronized to the target device.

2. The method according to claim 1, characterized in that The determining the difference between the scene data in the server and the scene data in the home device to obtain the difference data includes: Obtaining a first scene identifier corresponding to the scene data stored in the server, and obtaining a second scene identifier corresponding to the scene data stored in the home device; In a case where the first scene identifier does not match the second scene identifier, determining an identifier difference between the first scene identifier and the second scene identifier; The data synchronization time of the scene data corresponding to the identification difference is determined, and the scene data corresponding to the data synchronization time is determined as the difference data.

3. The method according to claim 1, characterized in that The determining of the target device from the server or the home device includes: Determining a synchronization number of synchronizing the scene data to the server; When the number of synchronizations reaches a threshold, the server is determined as a target device.

4. The method according to claim 1, wherein The determining of the target device from the server or the home device includes: When there are multiple home appliances, obtaining first scene data stored in each of the home appliances; A home device whose stored first scene data does not match the second scene data in the server is determined as a target device.

5. The method according to claim 1, wherein Synchronizing the difference data to the target device includes: In a case where the target device includes the server, performing a determination operation on the running status of the server; When the running state of the server meets the data synchronization condition, an operation of synchronizing the difference data to the server is performed.

6. The method according to claim 1, wherein Synchronizing the difference data to the target device includes: In a case where the target device includes the household device, determining an operating state of the household device; When the operating state of the household appliance meets the data synchronization condition, determining the device type of the household appliance, and determining a data synchronization instruction corresponding to the household appliance based on the device type; In response to the data synchronization instruction, an operation of synchronizing the difference data to the home device is executed.

7. The method according to claim 6, characterized in that The step of synchronizing the difference data to the home device in response to the data synchronization instruction includes: When the device type of the home device is the first type, determining an intermediate device that communicates with the server and instructing the intermediate device to obtain the difference data; determining a first data synchronization instruction, and in response to the first data synchronization instruction, instructing the intermediate device to synchronize the difference data to the home device; or, In a case where the device type of the home device is the second type, a second data synchronization instruction is determined, and the server is instructed to synchronize the difference data to the home device through the second data synchronization instruction.

8. The method according to claim 1, characterized in that The method further comprises: After synchronizing the difference data to the target device, obtaining a control instruction determined by the server based on the scenario data; Based on the control instruction, the corresponding home appliance is controlled to perform corresponding operations.

9. A data processing device, characterized in that: The data processing device is applied to the main device of the data processing system, and the data processing system also includes a server and home appliances. The data processing device includes: An acquisition unit, configured to acquire scene data and synchronize the scene data to a server and home devices respectively; a determining unit, configured to determine a difference between the scene data in the server and the scene data in the home device, and obtain difference data; A synchronization unit is used to determine a target device from the server or home device and synchronize the difference data to the target device.

10. A data processing system, characterized in that: include: Servers, home appliances, and main equipment; The master device obtains scene data and synchronizes the scene data to a server and a home appliance respectively, determines a difference between the scene data in the server and the home appliance, obtains difference data, and determines a target device from the server or the home appliance to synchronize the difference data to the target device; The server, in response to a synchronization request from the master device, acquires scene data, and, if determined to be a target device, acquires difference data synchronized by the master device; The home device obtains scene data in response to the synchronization request of the master device, and obtains difference data synchronized by the master device when the home device is determined to be a target device.

11. A computer device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the data processing method according to any one of claims 1 to 8 are performed.

12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the data processing method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and service-side device for controlling intelligent household equipment

    CN107783824A

  • Smart home control method, gateway device and smart home control system

    CN109212983A