Information synchronization method, device, electronic device and computer-readable storage medium

By obtaining pre-stored scene fields based on the scene identification on the server side and generating switching instructions, the problem of slow transmission speed caused by large amount of data during the synchronization of front-end interface and background data is solved, efficient information synchronization is achieved and user experience is improved.

CN114090148BActive Publication Date: 2025-03-11SHENZHEN TCL NEW-TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111284991.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-01
Publication Date
2025-03-11
Estimated Expiration
2041-11-01

AI Technical Summary

Technical Problem

During the synchronization process of front-end interface and background data, due to the large amount of data, the transmission speed is slow and the information synchronization efficiency is poor, which affects the user experience.

Method used

By obtaining pre-stored scene fields based on the scene identification on the server side, and generating switching instructions based on user instructions, pre-stored scene fields and feature information, the amount of data to be transmitted is reduced and the efficiency of information synchronization is improved.

Benefits of technology

The amount of data transmission during information synchronization is reduced, the efficiency of information transmission and synchronization is improved, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114090148B_ABST
    Figure CN114090148B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose an information synchronization method, device, electronic device and computer-readable storage medium, the method comprising: receiving scene information and user instructions of the current scene sent by the terminal; obtaining pre-stored scene fields according to the identifier of the current scene; generating switching instructions based on user instructions, pre-stored scene fields and characteristic information to instruct the terminal to switch the current scene accordingly. New scene information is determined by user instructions, scene fields and characteristic information of the scene to achieve updating and synchronization of scene information. By transmitting the identifier of the scene to the server, the server can obtain the scene field information of the scene according to the identifier of the scene, and the direct transmission of the scene field is replaced by the identifier of the scene, thereby reducing the amount of data transmitted during information synchronization and improving the efficiency of information synchronization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and specifically to an information synchronization method, device, electronic device, and computer-readable storage medium. Background Art

[0002] With the rapid development of computer technology, there are more and more types of terminal products. The use of terminal products involves the problem of front-end and back-end synchronization. For example, the front-end interface needs to be synchronized with the back-end server data, or the back-end server needs to be synchronized with the front-end interface information.

[0003] At present, in the process of keeping the front-end interface synchronized with the back-end data, due to the large amount of data in the front-end interface, the transmission speed is slow and the efficiency of information synchronization is poor, which affects the user experience. Summary of the invention

[0004] The embodiments of the present application provide an information synchronization method, device, electronic device and computer-readable storage medium, which can improve the efficiency of information synchronization.

[0005] The embodiment of the present application provides an information synchronization method, which is applied to a server, including:

[0006] The scene information of the current scene and the user instruction sent by the receiving terminal, the scene information includes the characteristic information of the current scene and the identifier of the current scene;

[0007] Get the pre-stored scene field according to the identifier of the current scene;

[0008] A switching instruction is generated based on user instructions, pre-stored scene fields and feature information to instruct the terminal to switch the current scene accordingly.

[0009] Accordingly, the embodiment of the present application further provides an information synchronization device, including:

[0010] A scene information receiving module, used to receive scene information of the current scene and user instructions sent by the terminal, where the scene information includes feature information of the current scene and an identifier of the current scene;

[0011] An identification module, used to obtain a pre-stored scene field according to the identifier of the current scene;

[0012] The instruction generation module is used to generate a switching instruction based on user instructions, pre-stored scene fields and feature information to instruct the terminal to switch the current scene accordingly.

[0013] Optionally, in some embodiments of the present invention, the pre-stored scene field includes a fixed field in the corresponding scene, and the information synchronization device further includes a fixed field generation module, and the fixed field generation module includes:

[0014] An extraction unit, used to extract fixed fields in preset scene information;

[0015] A first determining unit, configured to determine the fixed field as a pre-stored scene field of the preset scene information;

[0016] A second determining unit, used to determine an identifier of the preset scene information, and establish a mapping relationship between the identifier of the preset scene information and a pre-stored scene field;

[0017] Identification module, including:

[0018] The third determining unit is used to determine the pre-stored scene field according to the mapping relationship and the identifier of the current scene.

[0019] The instruction generation module includes:

[0020] A splicing unit, used to splice pre-stored scene fields and feature information to generate a complete scene page;

[0021] The recognition unit is used to recognize the user instruction and obtain the recognition result;

[0022] The generation unit is used to match the recognition result and the complete scene page to generate a switching instruction for the current scene.

[0023] The information synchronization device further includes an identification generation module, which includes:

[0024] A receiving unit, used for receiving scene information sent by a terminal;

[0025] An identification unit, used to identify the identifier of scene information;

[0026] The setting unit is used to set the identifier of the scene corresponding to the scene information according to a preset rule if the identifier does not exist, and send the identifier of the scene to the terminal.

[0027] The embodiment of the present application provides an information synchronization method, which is applied to a terminal, including:

[0028] Obtaining scene information and user instructions of the current scene, where the scene information includes feature information of the current scene and an identifier of the current scene;

[0029] Sending the scene information and the user instruction to the server to instruct the server to generate a switching instruction according to the scene information and the user instruction;

[0030] Receive switching instructions to switch the current scene accordingly.

[0031] Accordingly, an embodiment of the present application further provides a terminal, including:

[0032] An acquisition module is used to acquire scene information and user instructions of the current scene, where the scene information includes feature information of the current scene and an identifier of the current scene;

[0033] A sending module, used to send scene information and user instructions to the server to instruct the server to generate a switching instruction according to the scene information and the user instructions;

[0034] The receiving module is used to receive a switching instruction to switch the current scene accordingly.

[0035] Optionally, in some embodiments of the present invention, the terminal further includes a setting module, the setting module:

[0036] A pre-setting module, used to pre-set identification of scenes in the terminal and store the identification of each scene;

[0037] or,

[0038] An indication setting module, used for sending scene information to a server to instruct the server to set a corresponding identifier for the scene corresponding to the scene information;

[0039] The identification receiving module is used to receive and store the identification set by the server for the scene.

[0040] An embodiment of the present application also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above-mentioned information synchronization method are implemented.

[0041] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned information synchronization method are implemented.

[0042] In the embodiment of the present application, when the terminal scene interface changes, the user instruction, the scene identifier, and the characteristic information of the scene are sent to the server, so that the server can determine the scene field corresponding to the scene interface according to the scene identifier, and generate a switching instruction for the scene interface according to the user instruction, the scene field and the characteristic information, so that the terminal can switch the scene interface according to the switching instruction. Among them, since the server can determine the scene field according to the scene identifier, when the terminal and the server synchronize information, only the scene identifier field with a small amount of data needs to be transmitted, and there is no need to transmit the scene field information in the scene interface, which reduces the amount of data transmitted during information synchronization and improves the efficiency of information transmission and synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 It is a scenario diagram of the information synchronization method provided in an embodiment of the present application;

[0045] Figure 2 It is a schematic diagram of a first process of the information synchronization method provided in an embodiment of the present application;

[0046] Figure 3 It is a second flow diagram of the information synchronization method provided in an embodiment of the present application;

[0047] Figure 4 is a first structural diagram of an information synchronization device provided in an embodiment of the present application;

[0048] Figure 5 It is a schematic diagram of the architecture of a server in the information synchronization device provided in an embodiment of the present application;

[0049] Figure 6 is a second structural diagram of the information synchronization device provided in an embodiment of the present application;

[0050] Figure 7 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0052] The embodiments of the present application provide an information synchronization method, device, electronic device and computer-readable storage medium. Specifically, the embodiments of the present application provide an information synchronization device suitable for electronic devices, wherein the electronic device can be a terminal or a server and other devices. Among them, the terminal can be a television, an intelligent voice device (such as a Bluetooth speaker, etc.), a mobile phone, a computer, a notebook, a desktop or a personal notebook (PC, Personal Computer), etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content Delivery Network), and big data and artificial intelligence platforms. The server can be directly or indirectly connected via wired or wireless communication.

[0053] In the embodiment of the present application, the information synchronization method can be executed by the terminal alone, or by the server alone, or by the terminal and the server together. Figure 1 , taking the example of a terminal and a server jointly executing the information synchronization method, where other devices can also be added on the basis of the terminal and the server to assist in completing the information synchronization method, and the types of other devices are not limited here; the terminal and the server are connected through a network, such as a wired or wireless network connection, and the specific execution process is as follows:

[0054] The terminal device 10 receives the user's instruction information, and after receiving the instruction information, obtains the scene information of its current scene (including the feature information of the scene and the identification of the scene), and sends the scene information and the user's instruction to the server 11, so as to instruct the server 11 to generate a scene switching instruction according to the scene information and the instruction information;

[0055] Among them, the server 11 parses the scene identification according to the received scene information, determines the scene field corresponding to the scene interface according to the scene identification, and then, the server 11 generates a scene switching instruction according to the characteristic information of the scene in the received scene information, the scene field determined by the analysis, and the user instruction; then, the server 11 sends the generated switching instruction to the terminal device 10, so that the terminal device 10 can switch the scene according to the switching instruction.

[0056] In the embodiment of the present application, the scene includes a music playing environment or a video playing environment (such as the interface information currently displayed by the terminal device), and accordingly, the characteristic information of the scene includes the audio and video information played in the scene interface, for example, the name of the TV series being played, the name of the music, etc. In the embodiment of the present application, the terminal device includes a terminal device with a display screen and a terminal device without a display screen, so in the embodiment of the present application, the scene includes a scene with a visual graphical interface and a scene without a visual graphical interface.

[0057] In an embodiment of the present application, the command information can be obtained by converting the user's voice information. For example, the terminal device 10 may include an intelligent voice device, wherein the intelligent voice device receives the user's voice and recognizes the voice to determine the user's command information. The intelligent voice device can also convert the voice into corresponding text information to facilitate determining the corresponding operation object according to the text information (for example, buttons such as "play", "pause", and "fast forward" in the scene).

[0058] Among them, in the embodiment of the present application, the scene of the visual graphic interface is taken as an example. For example, in the visual interface of the terminal device 10, a music playback interface or a video playback interface is displayed, and the interface correspondingly displays buttons such as "play", "pause", and "fast forward". Therefore, when the scene information of the terminal device 10 is updated by switching instructions, the current display interface information of the terminal device 10 is updated accordingly. For example, when it is determined that the user's instruction information is to manipulate the "play" button in the interface, the music or video in the current interface is started accordingly. When it is determined that the user's instruction information is to manipulate the "pause" button in the interface, the playback of the music or video in the current interface is stopped accordingly.

[0059] Among them, in an embodiment of the present application, the server 11 stores the association relationship between the scene identifier and the scene interface element set (scene field). Therefore, after receiving the scene identifier sent by the terminal device, the server 11 can determine the scene field of the scene corresponding to the scene identifier based on the association relationship between the scene identifier and the scene field. Subsequently, the switching instruction expected by the user can be generated through the user instructions, scene fields and the characteristic information of the scene.

[0060] For example, in an embodiment of the present application, the target pre-stored scene field of the user operation is determined by identifying the user instruction information, new scene information is generated according to the target pre-stored scene field and the characteristic information of the existing scene, and the new scene information is sent to the terminal device 10, which displays the new scene information.

[0061] Among them, in the embodiment of the present application, the scene identifier is a unique identifier of the scene, which is used to distinguish each scene. Among them, in the embodiment of the present application, the scene identifier includes a scene number, a scene name, or a combination of a scene number and a scene name, or a field that can distinguish the current scene from other scenes. Among them, in the embodiment of the present application, the scene identifier is preferably a scene number.

[0062] The present application provides an information synchronization method, which can be applied to a server, as follows:

[0063] The scene information of the current scene and the user instruction sent by the receiving terminal, the scene information includes the feature information of the current scene and the identifier of the current scene.

[0064] Among them, in an embodiment of the present application, the terminal device includes a device that requires synchronization between the front-end and back-end servers, for example, a television, an intelligent voice device, a mobile phone or a computer, etc., wherein the scene includes an information display environment, for example, a visual music playback interface, a video playback interface, a shopping website interface, an entry encyclopedia interface, etc., corresponding to the music playback scene, video playback scene, shopping scene and encyclopedia scene respectively.

[0065] In the embodiment of the present application, by receiving the scene information and user instructions sent by the terminal, the server can regenerate new scene information according to the scene information and user instructions.

[0066] The characteristic information includes the content information being played in the current scene, such as the name of the TV series being played, the name of the music, etc. The scene identifier is used to uniquely identify the scene, so that the server can accurately identify the current scene of the terminal device.

[0067] Get the pre-stored scene fields according to the identifier of the current scene.

[0068] Among them, since each identifier corresponds to a unique scene, the association relationship between each scene identifier and the scene field can be stored in the server in advance, and then the scene field in the current scene of the terminal can be determined according to the scene identifier, so that the scene field of the current scene can be obtained according to the scene identifier, thereby reducing the amount of data transmission when the terminal and the server synchronize information, and improving the efficiency of information synchronization.

[0069] For scenes that are not pre-identified, you can also upload screenshots to the cloud for OCR. After cloud recognition, the assigned identifier is returned to the terminal, and the terminal synchronizes the voice scene information by reporting this identifier.

[0070] A switching instruction is generated based on user instructions, pre-stored scene fields and feature information to instruct the terminal to switch the current scene accordingly.

[0071] Among them, the switching instruction expected by the user can be determined through the user instruction, the scene field and the characteristic information, so that the terminal device can update the scene information according to the switching instruction.

[0072] Among them, in the embodiment of the present application, the user instructions include play, pause or next song, etc., and the switching instructions include playing or pausing the TV series content corresponding to the characteristic information, or playing the TV series content of the next TV series, etc.

[0073] In the embodiment of the present application, when the terminal scene interface changes, the user instruction, the scene identifier, and the characteristic information of the scene are sent to the server, so that the server can determine the scene field corresponding to the scene interface according to the scene identifier, and generate a switching instruction for the scene interface according to the user instruction, the scene field and the characteristic information, so that the terminal can switch the scene interface according to the switching instruction. Among them, since the server can determine the scene field according to the scene identifier, when the terminal and the server synchronize information, only the scene identifier field with a small amount of data needs to be transmitted, and there is no need to transmit the scene field information in the scene interface, which reduces the amount of data transmitted during information synchronization and improves the efficiency of information transmission and synchronization.

[0074] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.

[0075] See also Figure 2 , Figure 2 The following is a flow chart of the information synchronization method provided in the embodiment of the present application. The specific process of the information synchronization method executed by the server can be as follows:

[0076] 101. Receive scene information of a current scene and a user instruction sent by a terminal, where the scene information includes feature information of the current scene and an identifier of the current scene.

[0077] The characteristic information includes the content information being played in the current scene, such as the name of the TV series being played, the name of the music, etc. The scene identifier is used to uniquely identify the scene, so that the server can accurately identify the current scene of the terminal device.

[0078] Among them, by receiving the scene information and user instructions sent by the terminal device, the server can generate new scene information according to the scene information and user instructions, thereby realizing the update and synchronization of the scene information of the terminal device.

[0079] In the embodiment of the present application, the user instruction can be determined by recognizing the user's voice information, for example, converting the user's voice information into instruction information to obtain the user instruction.

[0080] 102. Obtain a pre-stored scene field according to the identifier of the current scene.

[0081] The identifier of the scene corresponds to a unique scene, so the scene field of the current scene can be obtained according to the identifier, wherein the scene field is a fixed field in the scene. For example, in an embodiment of the present application, a correspondence between each identifier and the scene field of the corresponding scene can be pre-established, so that after receiving the identifier of the scene, the server can obtain the scene field corresponding to the scene from the server to reduce the amount of data transmission during information synchronization; that is, optionally, in some embodiments, before the step of "obtaining the pre-stored scene field according to the identifier of the current scene", the method also includes:

[0082] Extract fixed fields from preset scene information;

[0083] Determine the fixed field as a pre-stored scene field of the preset scene information;

[0084] An identifier of the preset scene information is determined, and a mapping relationship between the identifier of the preset scene information and a pre-stored scene field is established.

[0085] Then, the step of "obtaining the pre-stored scene field according to the identifier of the current scene" includes:

[0086] According to the mapping relationship and the identifier of the current scene, the pre-stored scene field is determined.

[0087] Among them, since each identifier corresponds to a scene information, and the scene field in the scene information is also fixed, the correspondence between each scene identifier and its corresponding scene field can be pre-stored in the server, so that the server can obtain the scene field corresponding to the scene according to the scene identifier.

[0088] 103. Generate a switching instruction based on the user instruction, the pre-stored scene field and the feature information to instruct the terminal to switch the current scene accordingly.

[0089] The switching instruction expected by the user is determined through the user's instruction, the scene field and the characteristic information of the scene.

[0090] Among them, in the server, the scene information (interface information) of the terminal scene can be reconstructed according to the scene field and the feature information, and then, according to the user instruction, the switching instruction expected by the user is determined, that is, optionally, in some embodiments, the step of "generating a switching instruction based on the user instruction, the pre-stored scene field and the feature information" includes:

[0091] Combine the pre-stored scene fields and feature information to generate a complete scene page;

[0092] Identify the user's instructions and obtain the identification results;

[0093] Match the recognition results and the complete scene page to generate a switching instruction for the current scene.

[0094] Among them, in the embodiment of the present application, by receiving the scene identifier sent by the terminal device, and determining the scene field of the scene in the server according to the scene identifier, the server does not need to receive the scene field information sent by the terminal device to obtain the scene field of the current scene, thereby reducing the amount of data transmission when the terminal device and the server synchronize information, and improving the efficiency of information synchronization.

[0095] By matching the user instruction recognition result with the scene page, the switching instruction expected by the user can be determined.

[0096] In an embodiment of the present application, the scene field of the scene stored in the server can be identified and extracted from the scene information. For example, when the scene interface of the terminal device is drawn, the scene field of the scene can be extracted from the scene information and saved in the server.

[0097] Wherein, in the case where the scene identifier is missing, the server may set the identifier of the current scene according to a preset rule, and send the identifier to the terminal, so that the terminal can obtain the identifier corresponding to the current scene, that is, optionally, in some embodiments, the method further includes:

[0098] Receive scene information sent by the terminal;

[0099] Identification of scene information;

[0100] If the identifier does not exist, the identifier of the scene corresponding to the scene information is set according to a preset rule, and the identifier of the scene is sent to the terminal.

[0101] Among them, by detecting the scene identifier, it can be detected whether each scene corresponds to a unique identifier, and in the case of the lack of the scene identifier, the scene identifier is generated by a preset rule, for example, after the terminal transmits the interface picture to the server for optical character recognition (OCR, Optical Character Recognition), it returns the agreed number; that is, after the server receives the above scene information, it recognizes it, and then can assign different forms of numbers to it according to the order of reception or the time of reception or the type of the above scene information, and then synchronizes the corresponding number to the terminal. In the embodiment of the present application, when the terminal scene interface changes, the server receives the user instruction, the scene identifier, and the feature information of the scene, so that the server can determine the scene field corresponding to the scene interface according to the scene identifier, and generates the scene interface switching instruction according to the user instruction, the scene field and the feature information, so that the terminal can switch the scene interface according to the switching instruction, wherein, since the server can determine the scene field according to the scene identifier, therefore, when the terminal and the server synchronize information, only the scene identifier, which is a field with less data, needs to be transmitted, and the scene field information in the scene interface does not need to be transmitted, which reduces the amount of data transmitted during information synchronization and improves the efficiency of information transmission and synchronization.

[0102] See also Figure 3 , Figure 3 This is a flow chart of the information synchronization method provided in the embodiment of the present application. The specific process of the information synchronization method executed by the terminal may be as follows:

[0103] 201. Obtain scene information and user instructions of the current scene, where the scene information includes feature information of the current scene and an identifier of the current scene.

[0104] The characteristic information of the current scene includes the content information being played in the current scene, such as the name of the TV series being played, the name of the music, etc. The scene identifier is used to uniquely identify the scene, so that the server can accurately identify the current scene of the terminal device.

[0105] 202. Send the scene information and the user instruction to the server to instruct the server to generate a switching instruction according to the scene information and the user instruction.

[0106] By sending the characteristic information of the scene, the identifier of the scene and the user instruction to the server, the server can generate the switching instruction expected by the user according to the characteristic information and identifier of the scene and the instruction information of the user.

[0107] 203. Receive a switching instruction to switch the current scene accordingly.

[0108] Among them, by receiving the switching instruction sent by the server, the terminal device can generate new scene information according to the switching instruction, so that the terminal device can switch to the new scene information according to the user's instruction.

[0109] In the embodiment of the present application, the identification of the scene can be preset and saved in the scene information or generated by the server, and then the scene identification is saved in the terminal by the server, that is, optionally, in some embodiments, before the step of "obtaining the scene information and user instructions of the current scene", the method further includes:

[0110] Pre-set identification for the scenes in the terminal and store the identification of each scene;

[0111] or,

[0112] Sending the scene information to the server to instruct the server to set a corresponding identifier for the scene corresponding to the scene information;

[0113] Receive and store the scene identifier set by the server.

[0114] By setting the scene identifier, each scene can correspond to a unique identifier, so that the server can identify the scene field information of the corresponding scene according to the identifier. In an embodiment corresponding to the present application, different identifiers can be set for different scenes in the terminal in advance, for example, each scene is numbered sequentially, so that each scene has a corresponding number identifier; or, the corresponding scene information is sent to the server during the operation of the terminal, and then the server automatically assigns different forms of numbers according to the order or time of receiving the above scene information or the type of the above scene information, and then synchronizes the corresponding number to the terminal. That is: for scenes that are not pre-stored, you can upload screenshots to the cloud OCR, and after cloud recognition, return the assigned identifier to the terminal to achieve automation. The automatic setting of scene identifiers by the server increases the diversity of scene identifier generation methods.

[0115] In the embodiment of the present application, when the terminal scene interface changes, the user instruction, the scene identifier, and the characteristic information of the scene are sent to the server, so that the server can determine the scene field corresponding to the scene interface according to the scene identifier, and generate a switching instruction for the scene interface according to the user instruction, the scene field and the characteristic information, so that the terminal can switch the scene interface according to the switching instruction. Among them, since the server can determine the scene field according to the scene identifier, when the terminal and the server synchronize information, only the scene identifier field with a small amount of data needs to be transmitted, and there is no need to transmit the scene field information in the scene interface, which reduces the amount of data transmitted during information synchronization and improves the efficiency of information transmission and synchronization.

[0116] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of the information synchronization device provided by the present application. The device is integrated in a server. The information synchronization device may include a scene information receiving module 301, an identification module 302 and an instruction generating module 303. Specifically, it may be as follows:

[0117] The scene information receiving module 301 is used to receive scene information of the current scene and user instructions sent by the terminal. The scene information includes feature information of the current scene and an identifier of the current scene.

[0118] The identification module 302 is used to obtain a pre-stored scene field according to the identifier of the current scene.

[0119] Optionally, in some embodiments of the present application, the device further includes a pre-stored module, and the pre-stored module includes:

[0120] An extraction unit, used to extract fixed fields in preset scene information;

[0121] A determination unit, used to determine the fixed field as a pre-stored scene field of the preset scene information;

[0122] The establishing unit is used to determine the identifier of the preset scene information and establish a mapping relationship between the identifier of the preset scene information and the pre-stored scene field.

[0123] The identification module 302 includes:

[0124] The identification unit is used to determine the pre-stored scene field according to the mapping relationship and the identifier of the current scene.

[0125] The instruction generation module 303 is used to generate a switching instruction based on a user instruction, a pre-stored scene field and feature information to instruct the terminal to perform a corresponding switch on the current scene.

[0126] The instruction generation module 303 includes:

[0127] A splicing unit, used to splice pre-stored scene fields and feature information to generate a complete scene page;

[0128] The recognition unit is used to recognize the user instruction and obtain the recognition result;

[0129] The matching unit is used to match the recognition result and the complete scene page to generate a switching instruction for the current scene.

[0130] The device further includes an identification generation module, which includes:

[0131] A receiving unit, used for receiving scene information sent by a terminal;

[0132] An identification unit, used to identify the identification of scene information;

[0133] The generating unit is used to set the identifier of the scene corresponding to the scene information according to a preset rule if the identifier does not exist, and send the identifier of the scene to the terminal.

[0134] Among them, see Figure 5 , Figure 5 It is a schematic diagram of the architecture of the server in the embodiment of the present application, which is as follows:

[0135] 311. Dialogue system module: used to receive user command information and scene information;

[0136] 312. Identification module: used to identify the scene field corresponding to the user's instruction information;

[0137] 313. Mapping relationship storage module: used to obtain the mapping relationship between the scene identifier and the scene field in the scene from the data storage space, and determine the pre-stored scene field of the current scene according to the scene identifier and the mapping relationship;

[0138] 314. Natural composite ecosystem: used to generate the user's desired change scene information (i.e., new scene information) based on the scene information and the user's instruction information;

[0139] 315. Data storage module (database): used to store system data, user data, and various scene data, etc.;

[0140] 316. Calling module: used to call the corresponding storage module to obtain corresponding data after being triggered.

[0141] In the embodiment of the present application, the scene information receiving module 301 receives the scene information and user instructions sent by the terminal device, and the identification module 302 identifies the scene field of the scene stored in the server memory according to the identifier in the scene information. Then, the instruction generation module 303 determines the switching instruction expected by the user according to the scene field, feature information and user instructions of the scene.

[0142] Among them, the embodiment of the present application enables the server to directly obtain the scene field of the scene according to the scene identifier by receiving the scene feature information, scene identifier and user instructions sent by the terminal, without the need to transmit the scene field, thereby reducing the amount of data transmitted during information synchronization and improving the efficiency of information synchronization.

[0143] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of the information synchronization device provided by the present application. The device is integrated in a terminal. The information synchronization device may include an acquisition module 321, a sending module 322 and a receiving module 323. Specifically, it may be as follows:

[0144] The acquisition module 321 is used to acquire scene information of the current scene and user instructions. The scene information includes feature information of the current scene and an identifier of the current scene.

[0145] The sending module 322 is used to send the scene information and the user instruction to the server to instruct the server to generate a switching instruction according to the scene information and the user instruction.

[0146] The receiving module 323 is used to receive a switching instruction to switch the current scene accordingly.

[0147] Optionally, in some embodiments of the present application, the device further includes a generating identification module, and the generating identification module includes:

[0148] A pre-generating unit, used to pre-set identifiers for scenes in the terminal and store the identifier of each scene;

[0149] The Generate Identity module includes:

[0150] A server generating unit, used for sending the scene information to the server to instruct the server to set a corresponding identifier for the scene corresponding to the scene information;

[0151] The identification receiving unit is used to receive and store the identification set by the server for the scene.

[0152] In the embodiment of the present application, the acquisition module 321 acquires the scene information and user instructions of the terminal device itself in the current scene, and then the sending module 322 sends the scene information to the server to indicate that the server can generate the switching instructions expected by the user based on the scene information and the user instructions. Then, the receiving module 323 performs corresponding switching on the current scene in the terminal device according to the switching instructions.

[0153] Among them, the embodiment of the present application sends the characteristic information and identifier of the current scene to the server, so that the server can obtain the scene field of the scene according to the identifier in the scene information, avoid the transmission of the scene field during information synchronization, reduce the amount of data required for information synchronization, and improve the efficiency of information synchronization.

[0154] In addition, the present application also provides an electronic device, such as Figure 7 As shown, it shows a schematic diagram of the structure of the electronic device involved in this application, specifically:

[0155] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Figure 7The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0156] The processor 401 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.

[0157] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

[0158] The electronic device also includes a power supply 403 for supplying power to each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 403 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0159] The electronic device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0160] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby implementing the steps in any one of the information synchronization methods provided in this application.

[0161] In the embodiment of the present application, when the terminal scene interface changes, the user instruction, the scene identifier, and the characteristic information of the scene are sent to the server, so that the server can determine the scene field corresponding to the scene interface according to the scene identifier, and generate a switching instruction for the scene interface according to the user instruction, the scene field and the characteristic information, so that the terminal can switch the scene interface according to the switching instruction. Among them, since the server can determine the scene field according to the scene identifier, when the terminal and the server synchronize information, only the scene identifier field with a small amount of data needs to be transmitted, and there is no need to transmit the scene field information in the scene interface, which reduces the amount of data transmitted during information synchronization and improves the efficiency of information transmission and synchronization.

[0162] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0163] To this end, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any one of the information synchronization methods provided in the present application.

[0164] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0165] Since the instructions stored in the storage medium can execute the steps in any information synchronization provided in the present application, the beneficial effects that can be achieved by any information synchronization method provided in the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

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

Claims

1. An information synchronization method, characterized in that: Applicable to servers, including: receiving scene information of a current scene and a user instruction sent by a terminal, wherein the scene information includes feature information of the current scene and an identifier of the current scene; Acquire a pre-stored scene field according to the identifier of the current scene; Generate a switching instruction based on the user instruction, the pre-stored scene field and the feature information to instruct the terminal to switch the current scene accordingly; The generating the switching instruction based on the user instruction, the pre-stored scene field and the feature information includes: The pre-stored scene fields and the feature information are combined to generate a complete scene page; Identify the user instruction and obtain an identification result; Matching the recognition result with the complete scene page to generate a switching instruction for the current scene; The pre-stored scene field includes a fixed field in the corresponding scene. Accordingly, before acquiring the pre-stored scene field according to the identifier of the current scene, the method further includes: Extract fixed fields from preset scene information; Determine the fixed field as a pre-stored scene field of the preset scene information; Determine the identifier of the preset scene information, and establish a mapping relationship between the identifier of the preset scene information and the pre-stored scene field; The acquiring a pre-stored scene field according to the identifier of the current scene includes: A pre-stored scene field is determined according to the mapping relationship and the identifier of the current scene.

2. The method according to claim 1, characterized in that The information synchronization method further includes: Receiving scene information sent by the terminal; An identifier for identifying the scene information; If the identifier does not exist, the identifier of the scene corresponding to the scene information is set according to a preset rule, and the identifier of the scene is sent to the terminal.

3. An information synchronization method, characterized in that: Applied to terminals, including: Acquire scene information and user instructions of the current scene, wherein the scene information includes feature information of the current scene and an identifier of the current scene; Sending the scene information and the user instruction to a server to instruct the server to generate a switching instruction according to the scene information and the user instruction; receiving the switching instruction to switch the current scene accordingly; The server generates a switching instruction according to the scene information and the user instruction, including: Acquire a pre-stored scene field according to the identifier of the current scene; The pre-stored scene fields and the feature information are combined to generate a complete scene page; Identify the user instruction and obtain an identification result; Matching the recognition result with the complete scene page to generate a switching instruction for the current scene; The pre-stored scene field includes a fixed field in the corresponding scene. Accordingly, before acquiring the pre-stored scene field according to the identifier of the current scene, the method further includes: Extract fixed fields from preset scene information; Determine the fixed field as a pre-stored scene field of the preset scene information; Determine the identifier of the preset scene information, and establish a mapping relationship between the identifier of the preset scene information and the pre-stored scene field; The acquiring a pre-stored scene field according to the identifier of the current scene includes: A pre-stored scene field is determined according to the mapping relationship and the identifier of the current scene.

4. The method according to claim 3, characterized in that The information synchronization method further includes: Pre-set identification for the scenes in the terminal and store the identification of each scene; or, Sending the scene information to the server to instruct the server to set a corresponding identifier for the scene corresponding to the scene information; Receive and store an identifier of the scene set by the server.

5. An information synchronization device, characterized in that: include: A scene information receiving module, used to receive scene information of the current scene and a user instruction sent by a terminal, wherein the scene information includes feature information of the current scene and an identifier of the current scene; An identification module, used for acquiring a pre-stored scene field according to an identifier of the current scene; An instruction generation module, configured to generate a switching instruction based on the user instruction, the pre-stored scene field and the feature information, so as to instruct the terminal to perform a corresponding switch on the current scene; The generating the switching instruction based on the user instruction, the pre-stored scene field and the feature information includes: The pre-stored scene fields and the feature information are combined to generate a complete scene page; Identify the user instruction and obtain an identification result; Matching the recognition result with the complete scene page to generate a switching instruction for the current scene; The pre-stored scene field includes a fixed field in the corresponding scene. Accordingly, before acquiring the pre-stored scene field according to the identifier of the current scene, the device further includes: Extract fixed fields from preset scene information; Determine the fixed field as a pre-stored scene field of the preset scene information; Determine the identifier of the preset scene information, and establish a mapping relationship between the identifier of the preset scene information and the pre-stored scene field; The acquiring a pre-stored scene field according to the identifier of the current scene includes: A pre-stored scene field is determined according to the mapping relationship and the identifier of the current scene.

6. An information synchronization device, characterized in that: include: An acquisition module, used to acquire scene information of a current scene and a user instruction, wherein the scene information includes feature information of the current scene and an identifier of the current scene; A sending module, used for sending the scene information and the user instruction to a server, so as to instruct the server to generate a switching instruction according to the scene information and the user instruction; A receiving module, used to receive the switching instruction to switch the current scene accordingly; The server generates a switching instruction according to the scene information and the user instruction, including: Acquire a pre-stored scene field according to the identifier of the current scene; The pre-stored scene fields and the feature information are combined to generate a complete scene page; Identify the user instruction and obtain an identification result; Matching the recognition result with the complete scene page to generate a switching instruction for the current scene; The pre-stored scene field includes a fixed field in the corresponding scene. Accordingly, before acquiring the pre-stored scene field according to the identifier of the current scene, the device further includes: Extract fixed fields from preset scene information; Determine the fixed field as a pre-stored scene field of the preset scene information; Determine the identifier of the preset scene information, and establish a mapping relationship between the identifier of the preset scene information and the pre-stored scene field; The acquiring a pre-stored scene field according to the identifier of the current scene includes: A pre-stored scene field is determined according to the mapping relationship and the identifier of the current scene.

7. An electronic device, characterized in that: The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the information synchronization method as described in any one of claims 1-2 or 3-4 are implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the information synchronization method as described in any one of claims 1-2 or 3-4.

Citation Information

Patent Citations

  • Method for controlling equipment through voice and electronic equipment

    CN112346695A

  • Intelligent large screen control method, device and equipment and computer readable storage medium

    CN112351304A

  • Interface intelligent interaction control method, apparatus and system, and storage medium

    US20190066682A1