Scene version updating method and device, equipment and storage medium

By adopting the scene version update method in the smart home system, using the device scene edited by the central control device as the basis, synchronously updating the device scene on the cloud platform and the host device, the accuracy and timeliness of device scene synchronization in the smart home system are solved, and efficient and accurate device scene management is achieved.

CN119739404APending Publication Date: 2025-04-01GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411627960.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

There are problems with the synchronization of different device scenarios in smart home systems, especially when multiple devices edit the same scenario at the same time, conflicts are easily caused, resulting in synchronization errors.

Method used

A scenario version update method is proposed. The device scene edited by the central control device shall be updated simultaneously, and the device scene on the cloud platform and host device shall be updated simultaneously to ensure the accuracy of device scene updates, and to provide automatic detection and manual resolution options when version conflicts are made.

Benefits of technology

Through this method, we ensure the accuracy and timeliness of device scenario updates, reduce user operation complexity, and improve the accuracy, efficiency and user experience of scenario synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119739404A_ABST
    Figure CN119739404A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a scene version updating method and device, equipment and a storage medium, and the method comprises the steps: in response to an editing operation for an equipment scene of a first version of central control equipment, editing the equipment scene of the first version of the central control equipment to obtain an equipment scene of a second version; according to the equipment scene of the second version of the central control equipment, updating the equipment scene on the cloud platform to the equipment scene of the second version; detecting a current version of a device scene on the host device; and if the current version of the device scene on the host device is lower than the second version of the device scene on the cloud platform, updating the device scene on the host device to the device scene of the second version. According to the embodiment of the invention, in the scene synchronization process among the cloud platform, the central control equipment and the host equipment, the equipment scene edited by the central control equipment is taken as a criterion, so that the updating accuracy of the equipment scene is ensured, and a synchronization error is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and in particular to a scene version updating method and device, an electronic device and a storage medium. Background Art

[0002] In smart home or IoT systems, scene synchronization is a vital function. Scenes define the ability of host devices to perform predetermined actions at specific times. Smart home systems usually consist of central control devices, cloud platforms, and host devices. As the core of the system, the central control device is responsible for centralized control and management of other devices; the host device is the entity that directly connects and controls specific devices, such as smart bulbs, smart sockets, smart cameras, etc.; the cloud platform plays a key role in the system, providing services such as data storage, scene synchronization, remote management, security protection, and intelligent optimization.

[0003] Users can edit and manage scenes on the cloud, central control devices, and host devices. However, when multiple devices edit the same scene at the same time, conflicts may occur, resulting in scene synchronization issues. Traditional methods often have defects such as unclear priority settings or synchronization delays when dealing with such conflicts, which affects the user experience.

[0004] Therefore, how to ensure the accuracy and timeliness of synchronization of different device scenarios in the smart home system has become an urgent problem to be solved in the design of the smart home system. Summary of the invention

[0005] An embodiment of the present application provides a scene version update method to solve the problem of how to ensure the accuracy and timeliness of scene synchronization of different devices in a smart home system.

[0006] Correspondingly, an embodiment of the present application also provides a scene version updating device, an electronic device and a storage medium to ensure the implementation and application of the above method.

[0007] In order to solve the above problems, an embodiment of the present application discloses a scene version update method, which is applied to a smart home system. The smart home system includes a central control device, a cloud platform and a host device. The central control device is respectively connected to the cloud platform and the host device for communication. The central control device stores a first version of a device scene. The device scene is a programmed process in which the host device performs a predetermined operation according to a preset schedule. The method includes:

[0008] In response to an editing operation on the first version of the device scene of the central control device, editing the first version of the device scene of the central control device to obtain a second version of the device scene;

[0009] According to the device scenario of the second version of the central control device, updating the device scenario on the cloud platform to the device scenario of the second version;

[0010] Detecting a current version of a device context on the host device;

[0011] If the current version of the device scenario on the host device is lower than the second version of the device scenario on the cloud platform, the device scenario on the host device is updated to the second version of the device scenario.

[0012] In an optional embodiment of the present application, the method further includes:

[0013] If the current version of the device scene on the host device is higher than the second version of the device scene on the cloud platform, suspending the update of the device scene on the host device;

[0014] Send first conflict information, the first conflict information including the version number corresponding to the device scenario of the current version on the host device, the version number corresponding to the device scenario of the second version on the cloud platform, and a first conflict resolution method; the first conflict resolution method includes continuing to update and not updating for the time being.

[0015] In an optional embodiment of the present application, after sending the first conflict information, the method further includes:

[0016] presenting the first conflict resolution method;

[0017] In response to a selection operation of continuing to update in the first conflict resolution method, updating the device scene on the host device to a device scene of a second version;

[0018] In response to the selection operation of not updating temporarily in the first conflict resolution method, the device scene on the host device is not updated.

[0019] In an optional embodiment of the present application, updating the device scenario on the cloud platform to the device scenario of the second version according to the device scenario of the second version of the central control device includes:

[0020] Detecting the current version of the device scenario on the cloud platform;

[0021] If the current version of the device scene on the cloud platform is lower than the second version of the device scene on the central control device, the device scene on the cloud platform is updated to the second version of the device scene.

[0022] In an optional embodiment of the present application, the method further includes:

[0023] If the current version of the device scene on the cloud platform is higher than the second version of the device scene on the central control device, suspending the update of the device scene on the cloud platform;

[0024] Send second conflict information, the second conflict information including the version number corresponding to the second version of the device scenario on the central control device, the version number corresponding to the current version of the device scenario on the cloud platform, and a second conflict resolution method; the second conflict resolution method includes updating according to the central control device, updating according to the cloud platform, and version merging.

[0025] In an optional embodiment of the present application, after sending the second conflict information, the method includes:

[0026] presenting the second conflict resolution method;

[0027] In response to the selection operation of updating according to the central control device in the second conflict resolution method, updating the device scenario on the cloud platform to the device scenario of the second version;

[0028] In response to the selection operation of updating according to the cloud platform in the second conflict resolution method, the device scene on the central control device is updated by using the device scene on the cloud platform to cover;

[0029] In response to a selection operation for merging the versions in the second conflict resolution method, the device scene on the central control device is merged with the device scene on the cloud platform.

[0030] In an optional embodiment of the present application, merging the device scene on the central control device with the device scene on the cloud platform includes:

[0031] Displaying a merge interface, the merge interface at least including the scene content of the device scene on the central control device, the scene content of the device scene on the cloud platform, and a scene editing toolbar;

[0032] Receiving the merged device scene submitted by the merging interface;

[0033] Using the merged device scene to overwrite and update the device scene on the central control device, the merged device scene is obtained by merging the scene content of the device scene on the central control device with the scene content of the device scene on the cloud platform;

[0034] The merged device scene is synchronized to the cloud platform.

[0035] In an optional embodiment of the present application, the method further includes:

[0036] Record the time when the conflict occurs, the conflicting device, the version number corresponding to the device scene on the conflicting device, the scene content of the device scene on the conflicting device, and the conflict resolution method selected by the user to obtain a conflict log;

[0037] The conflict log is pushed to the terminal device of the user.

[0038] In an optional embodiment of the present application, the method further includes:

[0039] In response to an editing operation on the device scenario, a version number corresponding to the device scenario is updated.

[0040] The embodiment of the present application further discloses a scene version updating device, which is applied to a smart home system. The smart home system includes a central control device, a cloud platform and a host device. The central control device is respectively connected to the cloud platform and the host device for communication. The central control device stores a first version of a device scene. The device scene is a programmed process in which the host device performs a predetermined operation according to a preset schedule. The device includes:

[0041] A scene editing module, configured to edit the first version of the device scene of the central control device to obtain a second version of the device scene in response to an editing operation on the first version of the device scene of the central control device;

[0042] A cloud platform updating module, configured to update the device scenario on the cloud platform to the device scenario of the second version according to the device scenario of the second version of the central control device;

[0043] A host device detection module, used to detect the current version of the device scene on the host device;

[0044] The host device updating module is used to update the device scenario on the host device to the second version of the device scenario if the current version of the device scenario on the host device is lower than the second version of the device scenario on the cloud platform.

[0045] An embodiment of the present application also discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the scene version update method as described in one or more of the embodiments of the present application.

[0046] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the scene version update method as described in one or more of the embodiments of the present application.

[0047] Compared with the prior art, the embodiments of the present application have the following advantages:

[0048] In an embodiment of the present application, in response to an editing operation on a first version of a device scene of a central control device, the first version of the device scene of the central control device is edited to obtain a second version of the device scene; according to the second version of the device scene of the central control device, the device scene on the cloud platform is updated to the second version of the device scene; the current version of the device scene on the host device is detected; if the current version of the device scene on the host device is lower than the second version of the device scene on the cloud platform, the device scene on the host device is updated to the second version of the device scene. In the scene synchronization process between the cloud platform, the central control device and the host device, the embodiment of the present application takes the device scene edited by the central control device as the standard, thereby ensuring the accuracy of the device scene update and avoiding synchronization errors, thereby reducing the complexity of user operations. In addition, the embodiment of the present application can also automatically detect version conflicts of device scenes, prompt the user in time, and provide manual resolution options. After the user edits the device scene on the central control device, it will be automatically synchronized to the cloud platform and the host device, thereby improving the accuracy, efficiency and user experience of scene synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 This is a flowchart of a method for updating a scenario version according to an embodiment of the present application;

[0050] Figure 2 This is an implementation flow chart of an embodiment of a scenario version update method of the present application;

[0051] Figure 3 It is a structural block diagram of an embodiment of a scene version updating device of the present application;

[0052] Figure 4 It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0054] Reference Figure 1 , is a flowchart of a method for updating a scenario version according to an embodiment of the present application, comprising the following steps:

[0055] Step 101: In response to an editing operation on a first version of a device scene of a central control device, the first version of the device scene of the central control device is edited to obtain a second version of the device scene.

[0056] A scene version update method shown in an embodiment of the present application is applied to a smart home system, which includes a central control device, a cloud platform and a host device, and the central control device is communicated with the cloud platform and the host device respectively. The central control device refers to a device in a smart home or Internet of Things system that is responsible for centralized control and management of other devices. The host device refers to a device in a smart home or Internet of Things system that directly connects and controls a specific device, usually the smart device itself, such as a smart light bulb, a smart socket, a smart camera, etc. The cloud platform plays a key role in the system, providing services such as data storage, scene synchronization, remote management, security protection and intelligent optimization.

[0057] In an optional embodiment, the user can remotely control and manage the smart home system through the smart home application installed on the terminal device by interacting with the central control device, the host device and the cloud platform.

[0058] Among them, several device scenarios are stored on the central control device, cloud platform and host device. The device scenario is a programmed process in which the host device performs a predetermined operation according to a preset schedule. For example, in the scenario of returning home from get off work, the scenario includes the air conditioner in the living room turning on after a delay of 5 seconds, the curtains opening immediately, etc.

[0059] Users can edit the device scenes in the central control device, cloud platform or host device through the smart home application installed on the terminal device, including editing operations such as deletion and modification, and can also add new device scenes. In one embodiment, after the user edits the device scene in the central control device, cloud platform or host device, the version of the edited device scene in the device will be upgraded to a higher version, which is specifically manifested as an increase in the version number. For example, after the user edits and saves a device scene with a version number of 1 on the cloud platform, the version number of the device scene will be updated to 2. However, when the user edits the same scene for multiple devices at the same time, conflicts may arise, resulting in the problem of scene synchronization.

[0060] In this regard, the embodiment of the present application proposes a scene version update method, which takes the device scene edited by the central control device as the basis, and synchronously updates the same device scene on the cloud platform and the host platform to ensure the accuracy of the device scene update and avoid synchronization errors. In this embodiment, the first version of the device scene on the central control device is described.

[0061] In step 101, the user can edit the first version of the device scene on the central control device through the smart home application installed on the terminal device. In response to the editing operation on the first version of the device scene on the central control device, the smart home system edits the first version of the device scene on the central control device to obtain a second version of the device scene.

[0062] The second version of the device scenario has a higher version number than the first version of the device scenario.

[0063] Step 102: According to the device scenario of the second version of the central control device, the device scenario on the cloud platform is updated to the device scenario of the second version.

[0064] In step 102, according to the device scenario of the second version of the central control device, the device scenario on the cloud platform is synchronously updated to the device scenario of the second version.

[0065] In an optional embodiment, before synchronizing the same device scene on the cloud platform, the current version of the device scene on the cloud platform may be detected first. When the current version of the device scene on the cloud platform is lower than the second version of the device scene on the central control device, the device scene on the cloud platform is updated to the second version of the device scene, and the version number of the device scene on the cloud platform is updated and incremented, so that the version number of the device scene on the cloud platform is synchronized with the version number of the device scene on the central control device.

[0066] Step 103: Detect the current version of the device scene on the host device.

[0067] In step 103, after the device scene on the cloud platform is updated to the second version of the device scene, the device scene on the host device needs to be synchronously updated using the second version of the device scene on the cloud platform. Before synchronizing the device scene on the host device, the current version of the device scene on the host device is first detected.

[0068] Step 104: If the current version of the device scenario on the host device is lower than the second version of the device scenario on the cloud platform, the device scenario on the host device is updated to the second version of the device scenario.

[0069] In step 104, if it is detected that the current version of the device scene on the host device is lower than the second version of the device scene on the cloud platform, specifically, the version number of the current version of the device scene on the host device is lower than the version number of the second version of the device scene on the cloud platform, then the second version of the device scene on the cloud platform is used to synchronously update the device scene on the host device, so that the device scene on the host device is updated to the second version of the device scene, and the version number of the device scene on the host device is updated and incremented, so that the version number of the device scene on the host device is synchronized with the version number of the device scene on the cloud platform and the central control device.

[0070] In an embodiment of the present application, in response to an editing operation on a first version of a device scene of a central control device, the first version of the device scene of the central control device is edited to obtain a second version of the device scene; according to the second version of the device scene of the central control device, the device scene on the cloud platform is updated to the second version of the device scene; the current version of the device scene on the host device is detected; if the current version of the device scene on the host device is lower than the second version of the device scene on the cloud platform, the device scene on the host device is updated to the second version of the device scene. In the scene synchronization process between the cloud platform, the central control device and the host device, the embodiment of the present application takes the device scene edited by the central control device as the standard, thereby ensuring the accuracy of the device scene update and avoiding synchronization errors, thereby reducing the complexity of user operations. In addition, the embodiment of the present application can also automatically detect version conflicts of device scenes, prompt the user in time, and provide manual resolution options. After the user edits the device scene on the central control device, it will be automatically synchronized to the cloud platform and the host device, thereby improving the accuracy, efficiency and user experience of scene synchronization.

[0071] In an optional embodiment of the present application, the method further includes:

[0072] If the current version of the device scene on the host device is higher than the second version of the device scene on the cloud platform, suspending the update of the device scene on the host device;

[0073] Send first conflict information, the first conflict information including the version number corresponding to the device scenario of the current version on the host device, the version number corresponding to the device scenario of the second version on the cloud platform, and a first conflict resolution method; the first conflict resolution method includes continuing to update and not updating for the time being.

[0074] In this embodiment, if it is detected that the current version of the device scene on the host device is higher than the second version of the device scene on the cloud platform, specifically, the version number of the current version of the device scene on the host device is higher than the version number of the second version of the device scene on the cloud platform, it is determined that a conflict occurs, and the host device refuses to update. In this case, the conflicting devices are the host device and the cloud platform.

[0075] After determining that a conflict occurs, the host device may send a first conflict information to the smart home application on the terminal device. Specifically, the first conflict information may include the version number corresponding to the current version of the device scene on the host device, the version number corresponding to the second version of the device scene on the cloud platform, and a first conflict resolution method. The first conflict resolution method may include two options: continue to update and temporarily not update, so as to remind the user that a conflict occurs during the synchronous update of the device scene, and remind the user to manually select the first conflict resolution method.

[0076] The embodiments of the present application can automatically detect version conflicts in device scenes, promptly prompt users, and provide manual resolution options, thereby improving the efficiency of scene synchronization, reducing errors and delays caused by version conflicts, and significantly enhancing the user experience, allowing users to manage and control smart home devices more easily and efficiently.

[0077] In an optional embodiment of the present application, after sending the first conflict information, the method further includes:

[0078] presenting the first conflict resolution method;

[0079] In response to a selection operation of continuing to update in the first conflict resolution method, updating the device scene on the host device to a device scene of a second version;

[0080] In response to the selection operation of not updating temporarily in the first conflict resolution method, the device scene on the host device is not updated.

[0081] In this embodiment, after the terminal device receives the first conflict resolution solution, the options of the first conflict resolution solution are displayed to the user through a visualization screen, and the user can select one of the options according to actual needs.

[0082] When the user selects the Continue Update option in the first conflict resolution solution, in response to the selection operation of Continue Update in the first conflict resolution solution, the device scene on the host device is updated to the second version of the device scene, and the version number of the device scene on the host device is updated, so that the version number of the device scene on the host device is synchronized with the version number of the device scene on the cloud platform and the central control device.

[0083] When the user selects the option of not updating temporarily in the first conflict resolution, in response to the selection operation of not updating temporarily in the first conflict resolution, the current version of the device scene on the host device is maintained, and the device scene on the host device is not updated.

[0084] The embodiment of the present application provides a manual resolution option when a version synchronization update conflict occurs, and the user can choose to synchronize the update or not to continue the update, thereby improving the accuracy, efficiency and user experience of scene synchronization.

[0085] In an optional embodiment of the present application, updating the device scenario on the cloud platform to the device scenario of the second version according to the device scenario of the second version of the central control device includes:

[0086] Detecting the current version of the device scenario on the cloud platform;

[0087] If the current version of the device scene on the cloud platform is lower than the second version of the device scene on the central control device, the device scene on the cloud platform is updated to the second version of the device scene.

[0088] In this embodiment, before using the second version of the device scene on the central control device to synchronously update the device scene on the cloud platform, the current version of the device scene on the cloud platform may be detected first.

[0089] When it is detected that the current version of the device scene on the cloud platform is lower than the second version of the device scene on the central control device, specifically, when it is detected that the version number of the current version of the device scene on the cloud platform is lower than the version number of the second version of the device scene on the central control device, the second version of the device scene on the central control device is used to synchronously update the device scene on the cloud platform, so that the device scene on the cloud platform is updated to the second version of the device scene.

[0090] The embodiment of the present application detects the current version of the device scene on the cloud platform before updating and synchronizing the device scene on the cloud platform, which can avoid synchronization errors, thereby improving the accuracy, efficiency and user experience of scene synchronization.

[0091] In an optional embodiment of the present application, the method further includes:

[0092] If the current version of the device scene on the cloud platform is higher than the second version of the device scene on the central control device, suspending the update of the device scene on the cloud platform;

[0093] Send second conflict information, the second conflict information including the version number corresponding to the second version of the device scenario on the central control device, the version number corresponding to the current version of the device scenario on the cloud platform, and a second conflict resolution method; the second conflict resolution method includes updating according to the central control device, updating according to the cloud platform, and version merging.

[0094] In this embodiment, when the current version of the device scene on the cloud platform is detected, if it is detected that the current version of the device scene on the cloud platform is higher than the second version of the device scene on the central control device, specifically, if it is detected that the version number of the current version of the device scene on the cloud platform is higher than the version number of the second version of the device scene on the central control device, it is determined that a conflict occurs, and the cloud platform refuses to update. At this time, the conflicting devices are the central control device and the cloud platform.

[0095] After determining that a conflict occurs, the cloud platform may send a second conflict information to the smart home application on the terminal device. Specifically, the second conflict information may include the version number corresponding to the second version of the device scene on the central control device, the version number corresponding to the current version of the device scene on the cloud platform, and a second conflict solution. The second conflict solution may include three options: update according to the central control device, update according to the cloud platform, and version merging, so as to remind the user that a conflict occurs during the synchronous update of the device scene, and remind the user to manually select the second conflict solution.

[0096] The embodiments of the present application can automatically detect version conflicts in device scenes, promptly prompt users, and provide manual resolution options, thereby improving the efficiency of scene synchronization, reducing errors and delays caused by version conflicts, and significantly enhancing the user experience, allowing users to manage and control smart home devices more easily and efficiently.

[0097] In an optional embodiment of the present application, after sending the second conflict information, the method includes:

[0098] presenting the second conflict resolution method;

[0099] In response to the selection operation of updating according to the central control device in the second conflict resolution method, updating the device scenario on the cloud platform to the device scenario of the second version;

[0100] In response to the selection operation of updating according to the cloud platform in the second conflict resolution method, the device scene on the central control device is updated by using the device scene on the cloud platform to cover;

[0101] In response to a selection operation for merging the versions in the second conflict resolution method, the device scene on the central control device is merged with the device scene on the cloud platform.

[0102] In this embodiment, after the terminal device receives the second conflict resolution solution, the options of the second conflict resolution solution are displayed to the user through a visual screen, and the user can select one of the options according to actual needs.

[0103] When the user selects the option to update according to the central control device in the second conflict resolution method, in response to the selection operation to update according to the central control device in the second conflict resolution method, the device scene on the cloud platform is updated to the second version of the device scene, and the version number of the device scene on the cloud platform is updated, so that the version number of the device scene on the cloud platform is synchronized with the version number of the device scene on the central control device.

[0104] When the user selects the option to update according to the cloud platform in the second conflict resolution method, in response to the selection operation to update according to the cloud platform in the second conflict resolution method, the device scene on the cloud platform is used to overwrite the device scene on the central control device, so that the device scene on the central control device is consistent with the device scene on the cloud platform, and the version number of the device scene on the central control device is updated, so that the version number of the device scene on the cloud platform is synchronized with the version number of the device scene on the central control device.

[0105] When the user selects the version merge option in the second conflict resolution method, in response to the selection operation of the version merge in the second conflict resolution method, the device scene on the central control device is merged with the device scene on the cloud platform, and the merged device scene is used to update the device scenes on the cloud platform and the central control device, and the version numbers of the device scenes on the cloud platform and the central control device are updated, so that the version number of the device scene on the cloud platform is synchronized with the version number of the device scene on the central control device.

[0106] The embodiment of the present application provides a manual resolution option when a version synchronization update conflict occurs. The user can choose to update according to the central control device, update according to the cloud platform, or merge versions, thereby improving the accuracy, efficiency and user experience of scene synchronization.

[0107] In an optional embodiment of the present application, merging the device scene on the central control device with the device scene on the cloud platform includes:

[0108] Displaying a merge interface, the merge interface at least including the scene content of the device scene on the central control device, the scene content of the device scene on the cloud platform, and a scene editing toolbar;

[0109] Receiving the merged device scene submitted by the merging interface;

[0110] Using the merged device scene to overwrite and update the device scene on the central control device, the merged device scene is obtained by merging the scene content of the device scene on the central control device with the scene content of the device scene on the cloud platform;

[0111] The merged device scene is synchronized to the cloud platform.

[0112] In this embodiment, when the user selects the version merge option in the second conflict resolution method, a merge interface can be displayed on the visual screen of the terminal device, and the merge interface includes at least the scene content of the device scene on the central control device, the scene content of the device scene on the cloud platform, and a scene editing toolbar. The user can use the scene editing toolbar to manually merge the scene content of the device scene on the central control device and the device scene on the cloud platform, and generate a new version of the device scene.

[0113] After completing the manual merging, the user submits the merged device scene to the smart home system through the merging interface, and the smart home system can receive the merged device scene submitted through the merging interface.

[0114] The merged device scene is used to overwrite and update the device scene on the central control device. The merged device scene is obtained by merging the scene content of the device scene on the central control device with the scene content of the device scene on the cloud platform, and the version number of the device scene on the central control device is updated and incremented.

[0115] Continue to use the merged device scene to synchronously update the device scene on the cloud platform, and update the version number of the device scene on the cloud platform to synchronize the version number of the device scene on the cloud platform with the version number of the device scene on the central control device.

[0116] In an optional embodiment, the device scene on the host device can be further updated to the merged device scene, and the version number of the device scene on the host device can be updated so that the version number of the device scene on the host device is synchronized with the version number of the device scene on the cloud platform and the central control device.

[0117] The embodiment of the present application provides a manual resolution option when a conflict occurs in version synchronization update. The user can choose to merge the versions, merge the device scenes of different versions of two devices, and synchronize the updates to other devices, thereby improving the user experience.

[0118] In an optional embodiment of the present application, the method further includes:

[0119] Record the time when the conflict occurs, the conflicting device, the version number corresponding to the device scene on the conflicting device, the scene content of the device scene on the conflicting device, and the conflict resolution method selected by the user to obtain a conflict log;

[0120] The conflict log is pushed to the terminal device of the user.

[0121] In this embodiment, when a conflict occurs in the synchronous update of the device scene, the smart home system will automatically record the time of the conflict, the conflicting device, the version number corresponding to the device scene on the conflicting device, the scene content of the device scene on the conflicting device, and the conflict resolution method selected by the user, obtain the conflict log, and push the conflict log to the user's terminal device.

[0122] For example, when the device scene on the cloud platform is updated synchronously with the device scene on the host device, if the version number of the device scene on the cloud platform is 1 and the version number of the device scene on the host device is 2, it is determined that a conflict occurs, and the conflicting devices are the cloud platform and the host device. The first conflict resolution option selected by the user at this time is to continue updating and synchronously update the device scene on the host device to the device scene on the cloud platform. Based on the above information, including the time of conflict, conflicting device, the version number corresponding to the device scene on the conflicting device, the scene content of the device scene on the conflicting device, and the conflict resolution method selected by the user, a conflict log is generated and pushed.

[0123] When a conflict occurs in the synchronization update of a device scenario, the embodiment of the present application will automatically record the conflict information and generate a conflict log to push to the user. The conflict log can be used for problem tracing and analysis, which will assist in the subsequent troubleshooting and problem analysis that may be required, and help to quickly locate the root cause of the problem.

[0124] In an optional embodiment of the present application, the method further includes:

[0125] In response to an editing operation on the device scenario, a version number corresponding to the device scenario is updated.

[0126] In this embodiment, each device scene has a version number on the cloud platform, the central control device and the host device. Each time the device scene is edited, in response to the editing operation on the device scene, the version number corresponding to the device scene needs to be updated.

[0127] For example, a user edits scene A with version number 1 on the cloud platform, and obtains scene A with version number 2 on the cloud platform; a user edits scene B with version number 5 on the central control device, and obtains scene B with version number 6 on the central control device.

[0128] In the embodiment of the present application, after each device scene is edited, the version number corresponding to the device scene is updated to facilitate version detection and version comparison when the device scene needs to be updated synchronously, thereby avoiding synchronization errors.

[0129] In an embodiment of the present application, in response to an editing operation on a first version of a device scene of a central control device, the first version of the device scene of the central control device is edited to obtain a second version of the device scene; according to the second version of the device scene of the central control device, the device scene on the cloud platform is updated to the second version of the device scene; the current version of the device scene on the host device is detected; if the current version of the device scene on the host device is lower than the second version of the device scene on the cloud platform, the device scene on the host device is updated to the second version of the device scene. In the scene synchronization process between the cloud platform, the central control device and the host device, the embodiment of the present application takes the device scene edited by the central control device as the standard, thereby ensuring the accuracy of the device scene update and avoiding synchronization errors, thereby reducing the complexity of user operations. In addition, the embodiment of the present application can also automatically detect version conflicts of device scenes, prompt the user in time, and provide manual resolution options. After the user edits the device scene on the central control device, it will be automatically synchronized to the cloud platform and the host device, thereby improving the accuracy, efficiency and user experience of scene synchronization.

[0130] Reference Figure 2 , is an implementation flow chart of an embodiment of a scenario version updating method of the present application.

[0131] Step 201: The user first edits scene A with a device version number of 1 on the central control device.

[0132] Step 202: The central control device updates the version number of scene A from 1 to 2 and saves the new scene content.

[0133] Step 203: The central control device synchronously updates the device scene A with version number 2 to the cloud (ie, the cloud platform).

[0134] Step 204: The cloud accepts the update and synchronizes the content and version number of the device scene A on the cloud with the device scene A with version number 2 on the central control device.

[0135] Step 205: The cloud synchronously updates the device scene A with version number 2 to other devices, namely the host device.

[0136] Step 206: The host device receives the device scene A with a version number of 2 for updating.

[0137] Step 207: The host device compares the version number of the device scene A with the version number 2 with the device scene A in the host device.

[0138] Step 2081: If the version number of the device scene A in the host device is lower than the version number 2 of the device scene A synchronized from the central control device to the cloud, the host device accepts the update.

[0139] Step 2082: If the version number of the device scene A in the host device is higher than the version number 2 of the device scene A synchronized to the cloud by the central control device, the host device refuses to update and issues a conflict warning to the user. The user manually chooses to accept or refuse the update.

[0140] In an embodiment of the present application, in response to an editing operation on a first version of a device scene of a central control device, the first version of the device scene of the central control device is edited to obtain a second version of the device scene; according to the second version of the device scene of the central control device, the device scene on the cloud platform is updated to the second version of the device scene; the current version of the device scene on the host device is detected; if the current version of the device scene on the host device is lower than the second version of the device scene on the cloud platform, the device scene on the host device is updated to the second version of the device scene. In the scene synchronization process between the cloud platform, the central control device and the host device, the embodiment of the present application takes the device scene edited by the central control device as the standard, thereby ensuring the accuracy of the device scene update and avoiding synchronization errors, thereby reducing the complexity of user operations. In addition, the embodiment of the present application can also automatically detect version conflicts of device scenes, prompt the user in time, and provide manual resolution options. After the user edits the device scene on the central control device, it will be automatically synchronized to the cloud platform and the host device, thereby improving the accuracy, efficiency and user experience of scene synchronization.

[0141] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.

[0142] On the basis of the above embodiments, this embodiment further provides a scene version updating device, which is applied to electronic devices such as terminal devices and servers.

[0143] Reference Figure 3 , shows a structural block diagram of an embodiment of a scene version update device of the present application, which may specifically include the following modules:

[0144] A scene editing module 301 is used for editing the first version of the device scene of the central control device to obtain a second version of the device scene in response to an editing operation on the first version of the device scene of the central control device;

[0145] A cloud platform updating module 302 is used to update the device scenario on the cloud platform to the device scenario of the second version according to the device scenario of the second version of the central control device;

[0146] A host device detection module 303 is used to detect the current version of the device scenario on the host device;

[0147] The host device updating module 304 is configured to update the device scenario on the host device to the second version of the device scenario if the current version of the device scenario on the host device is lower than the second version of the device scenario on the cloud platform.

[0148] In an optional embodiment of the present application, the device further includes:

[0149] A host device pausing update module, configured to suspend updating of the device scene on the host device if the current version of the device scene on the host device is higher than the second version of the device scene on the cloud platform;

[0150] The first conflict information sending module is used to send the first conflict information, wherein the first conflict information includes the version number corresponding to the device scenario of the current version on the host device, the version number corresponding to the device scenario of the second version on the cloud platform, and the first conflict resolution method; the first conflict resolution method includes continuing to update and not updating for the time being.

[0151] In an optional embodiment of the present application, the device further includes:

[0152] A first conflict solution display module, used to display the first conflict solution;

[0153] A first updating module, configured to update the device scenario on the host device to a second version of the device scenario in response to a selection operation of continuing to update in the first conflict resolution method;

[0154] The first termination module is configured to not update the device scene on the host device in response to the selection operation of not updating temporarily in the first conflict resolution method.

[0155] In an optional embodiment of the present application, the cloud platform update module 302 includes:

[0156] A cloud platform detection submodule, used to detect the current version of the device scenario on the cloud platform;

[0157] The cloud platform update confirmation submodule is used to update the device scene on the cloud platform to the second version of the device scene if the current version of the device scene on the cloud platform is lower than the second version of the device scene on the central control device.

[0158] In an optional embodiment of the present application, the cloud platform update module 302 further includes:

[0159] A cloud platform suspending update submodule, configured to suspend updating of the device scene on the cloud platform if the current version of the device scene on the cloud platform is higher than the second version of the device scene on the central control device;

[0160] The second conflict information sending submodule is used to send the second conflict information, wherein the second conflict information includes the version number corresponding to the second version of the device scenario on the central control device, the version number corresponding to the current version of the device scenario on the cloud platform, and a second conflict resolution method; the second conflict resolution method includes updating according to the central control device, updating according to the cloud platform, and version merging.

[0161] In an optional embodiment of the present application, the cloud platform update module 302 includes:

[0162] A second conflict solution display submodule, used to display the second conflict solution;

[0163] A second updating submodule, configured to update the device scenario on the cloud platform to a second version of the device scenario in response to a selection operation of updating the central control device in the second conflict resolution method;

[0164] A second overlay update submodule is used to, in response to the selection operation of updating according to the cloud platform in the second conflict resolution method, overlay and update the device scene on the central control device using the device scene on the cloud platform;

[0165] The second merging submodule is used to merge the device scene on the central control device with the device scene on the cloud platform in response to a selection operation on merging the versions in the second conflict resolution method.

[0166] In an optional embodiment of the present application, the second merging submodule is further used for:

[0167] Displaying a merge interface, the merge interface at least including the scene content of the device scene on the central control device, the scene content of the device scene on the cloud platform, and a scene editing toolbar;

[0168] Receiving the merged device scene submitted by the merging interface;

[0169] Using the merged device scene to overwrite and update the device scene on the central control device, the merged device scene is obtained by merging the scene content of the device scene on the central control device with the scene content of the device scene on the cloud platform;

[0170] The merged device scene is synchronized to the cloud platform.

[0171] In an optional embodiment of the present application, the device further includes:

[0172] A log recording module is used to record the time when the conflict occurs, the conflicting device, the version number corresponding to the device scene on the conflicting device, the scene content of the device scene on the conflicting device, and the conflict resolution method selected by the user to obtain a conflict log;

[0173] The log push module is used to push the conflict log to the terminal device of the user.

[0174] In an optional embodiment of the present application, the device further includes:

[0175] In response to an editing operation on the device scenario, a version number corresponding to the device scenario is updated.

[0176] In an embodiment of the present application, in response to an editing operation on a first version of a device scene of a central control device, the first version of the device scene of the central control device is edited to obtain a second version of the device scene; according to the second version of the device scene of the central control device, the device scene on the cloud platform is updated to the second version of the device scene; the current version of the device scene on the host device is detected; if the current version of the device scene on the host device is lower than the second version of the device scene on the cloud platform, the device scene on the host device is updated to the second version of the device scene. In the scene synchronization process between the cloud platform, the central control device and the host device, the embodiment of the present application takes the device scene edited by the central control device as the standard, thereby ensuring the accuracy of the device scene update and avoiding synchronization errors, thereby reducing the complexity of user operations. In addition, the embodiment of the present application can also automatically detect version conflicts of device scenes, prompt the user in time, and provide manual resolution options. After the user edits the device scene on the central control device, it will be automatically synchronized to the cloud platform and the host device, thereby improving the accuracy, efficiency and user experience of scene synchronization.

[0177] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.

[0178] The present application embodiment provides one or more machine-readable media on which instructions are stored, and when executed by one or more processors, an electronic device executes one or more of the methods described in the above embodiments. In the present application embodiment, the electronic device includes various types of devices such as terminal devices and servers (clusters).

[0179] The embodiments of the present disclosure may be implemented as a device configured as desired using any appropriate hardware, firmware, software, or any combination thereof, and the device may include electronic devices such as terminal devices and servers (clusters). Figure 4 An exemplary apparatus 400 that may be used to implement various embodiments described in this application is schematically illustrated.

[0180] For one embodiment, Figure 4 An exemplary apparatus 400 is shown having one or more processors 402, a control module (chip set) 404 coupled to at least one of the processor(s) 402, a memory 406 coupled to the control module 404, a non-volatile memory (NVM) / storage device 408 coupled to the control module 404, one or more input / output devices 410 coupled to the control module 404, and a network interface 412 coupled to the control module 404.

[0181] The processor 402 may include one or more single-core or multi-core processors, and the processor 402 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 400 can be used as a terminal device, server (cluster), etc. described in the embodiments of the present application.

[0182] In some embodiments, the apparatus 400 may include one or more computer-readable media (e.g., memory 406 or NVM / storage device 408) having instructions 414 and one or more processors 402 combined with the one or more computer-readable media and configured to execute the instructions 414 to implement a module to perform the actions described in the present disclosure.

[0183] For one embodiment, control module 404 may include any suitable interface controller to provide any suitable interface to at least one of processor(s) 402 and / or any suitable device or component in communication with control module 404 .

[0184] The control module 404 may include a memory controller module to provide an interface to the memory 406. The memory controller module may be a hardware module, a software module, and / or a firmware module.

[0185] The memory 406 may be used, for example, to load and store data and / or instructions 414 for the device 400. For one embodiment, the memory 406 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 406 may include a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).

[0186] For one embodiment, control module 404 may include one or more input / output controllers to provide interfaces to NVM / storage device 408 and input / output device(s) 410 .

[0187] For example, NVM / storage 408 may be used to store data and / or instructions 414. NVM / storage 408 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).

[0188] NVM / storage device 408 may include storage resources that are physically part of the device on which apparatus 400 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 408 may be accessed via input / output device(s) 410 over a network.

[0189] (One or more) input / output devices 410 may provide an interface for the apparatus 400 to communicate with any other appropriate device, and the input / output device 410 may include a communication component, an audio component, a sensor component, etc. The network interface 412 may provide an interface for the apparatus 400 to communicate through one or more networks, and the apparatus 400 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.

[0190] For one embodiment, at least one of the processor(s) 402 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 404. For one embodiment, at least one of the processor(s) 402 may be packaged together with the logic of one or more controllers of the control module 404 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 402 may be integrated on the same die with the logic of one or more controllers of the control module 404. For one embodiment, at least one of the processor(s) 402 may be integrated on the same die with the logic of one or more controllers of the control module 404 to form a system-on-chip (SoC).

[0191] In various embodiments, the device 400 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the device 400 may have more or fewer components and / or different architectures. For example, in some embodiments, the device 400 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.

[0192] Among them, the main control chip can be used as a processor or control module in the detection device, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.

[0193] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0194] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0195] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable scenario version update terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable scenario version update terminal device generate instructions for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0196] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable scenario version update terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0197] These computer program instructions can also be loaded onto a computer or other programmable scenario version update terminal device, so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0198] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0199] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0200] The above is a detailed introduction to a scenario version update method and device, an electronic device and a storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A scene version update method, characterized in that: Applied to a smart home system, the smart home system includes a central control device, a cloud platform and a host device, the central control device is respectively connected to the cloud platform and the host device for communication, the central control device stores a first version of a device scenario, the device scenario is a programmed process in which the host device performs a predetermined operation according to a preset schedule, and the method includes: In response to an editing operation on the first version of the device scene of the central control device, editing the first version of the device scene of the central control device to obtain a second version of the device scene; According to the device scenario of the second version of the central control device, updating the device scenario on the cloud platform to the device scenario of the second version; Detecting a current version of a device context on the host device; If the current version of the device scenario on the host device is lower than the second version of the device scenario on the cloud platform, the device scenario on the host device is updated to the device scenario of the second version.

2. The method according to claim 1, characterized in that The method further comprises: If the current version of the device scene on the host device is higher than the second version of the device scene on the cloud platform, suspending the update of the device scene on the host device; Send first conflict information, the first conflict information including the version number corresponding to the device scenario of the current version on the host device, the version number corresponding to the device scenario of the second version on the cloud platform, and a first conflict resolution method; the first conflict resolution method includes continuing to update and not updating for the time being.

3. The method according to claim 2, characterized in that After sending the first conflict information, the method further includes: presenting the first conflict resolution method; In response to a selection operation of continuing to update in the first conflict resolution method, updating the device scene on the host device to a device scene of a second version; In response to the selection operation of not updating temporarily in the first conflict resolution method, the device scene on the host device is not updated.

4. The method according to claim 1, characterized in that: The updating of the device scenario on the cloud platform to the device scenario of the second version according to the device scenario of the second version of the central control device includes: Detecting the current version of the device scenario on the cloud platform; If the current version of the device scene on the cloud platform is lower than the second version of the device scene on the central control device, the device scene on the cloud platform is updated to the second version of the device scene.

5. The method according to claim 4, characterized in that The method further comprises: If the current version of the device scene on the cloud platform is higher than the second version of the device scene on the central control device, suspending the update of the device scene on the cloud platform; Send second conflict information, the second conflict information including the version number corresponding to the second version of the device scenario on the central control device, the version number corresponding to the current version of the device scenario on the cloud platform, and a second conflict resolution method; the second conflict resolution method includes updating according to the central control device, updating according to the cloud platform, and version merging.

6. The method according to claim 5, characterized in that After sending the second conflict information, the method includes: presenting the second conflict resolution method; In response to the selection operation of updating the central control device in the second conflict resolution method, updating the device scenario on the cloud platform to the device scenario of the second version; In response to the selection operation of updating according to the cloud platform in the second conflict resolution method, the device scene on the central control device is updated by using the device scene on the cloud platform to cover; In response to a selection operation for merging the versions in the second conflict resolution method, the device scene on the central control device is merged with the device scene on the cloud platform.

7. The method according to claim 6, characterized in that The merging of the device scene on the central control device with the device scene on the cloud platform includes: Displaying a merge interface, the merge interface at least including the scene content of the device scene on the central control device, the scene content of the device scene on the cloud platform, and a scene editing toolbar; Receiving the merged device scene submitted by the merging interface; Using the merged device scene to overwrite and update the device scene on the central control device, the merged device scene is obtained by merging the scene content of the device scene on the central control device with the scene content of the device scene on the cloud platform; The merged device scene is synchronized to the cloud platform.

8. The method according to any one of claims 2 to 7, characterized in that: The method further comprises: Record the time when the conflict occurs, the conflicting device, the version number corresponding to the device scene on the conflicting device, the scene content of the device scene on the conflicting device, and the conflict resolution method selected by the user to obtain a conflict log; The conflict log is pushed to the terminal device of the user.

9. The method according to claim 1, characterized in that: The method further comprises: In response to an editing operation on the device scenario, a version number corresponding to the device scenario is updated.

10. A scene version updating device, characterized in that: Applied to a smart home system, the smart home system includes a central control device, a cloud platform and a host device, the central control device is respectively connected to the cloud platform and the host device for communication, the central control device stores a first version of a device scenario, the device scenario is a programmed process in which the host device performs a predetermined operation according to a preset schedule, and the device includes: A scene editing module, configured to edit the first version of the device scene of the central control device to obtain a second version of the device scene in response to an editing operation on the first version of the device scene of the central control device; A cloud platform updating module, configured to update the device scenario on the cloud platform to the device scenario of the second version according to the device scenario of the second version of the central control device; A host device detection module, used to detect the current version of the device scene on the host device; The host device updating module is used to update the device scene on the host device to the second version of the device scene if the current version of the device scene on the host device is lower than the second version of the device scene on the cloud platform.

11. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, enables the processor to execute the scene version updating method as described in one or more of claims 1-9.

12. One or more machine-readable media having executable codes stored thereon, which, when executed, enable a processor to execute the scene version updating method as described in one or more of claims 1-9.

Citation Information

Patent Citations

  • Scene information synchronization method and device, storage medium and electronic device

    CN115174295A

  • Scene information updating method and device, storage medium and electronic device

    CN115296948A

  • Data synchronization method and system, gateway device, proxy gateway and storage medium

    CN115967722A

  • Scene mode providing method, terminal, cloud platform, storage medium and program product

    CN118101687A

  • Updating method and device, terminal equipment and computer readable storage medium

    CN118838616A