WO2016115787A1 - Data synchronization method and data synchronization system for multi-system device, and terminal - Google Patents

Data synchronization method and data synchronization system for multi-system device, and terminal Download PDF

Info

Publication number
WO2016115787A1
WO2016115787A1 PCT/CN2015/077985 CN2015077985W WO2016115787A1 WO 2016115787 A1 WO2016115787 A1 WO 2016115787A1 CN 2015077985 W CN2015077985 W CN 2015077985W WO 2016115787 A1 WO2016115787 A1 WO 2016115787A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
updated
data synchronization
switched
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2015/077985
Other languages
French (fr)
Chinese (zh)
Inventor
徐以山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Publication of WO2016115787A1 publication Critical patent/WO2016115787A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of data synchronization technologies, and in particular, to a data synchronization method for a multi-system device, a data synchronization system for a multi-system device, and a terminal.
  • a multi-system device such as a mobile phone terminal
  • a multi-system device separately saves data in the system because of the usage of the system, but in the system switching process, the data needs to ensure the user experience through a synchronization mechanism, such as a user.
  • the data is updated in the vocabulary of the security system.
  • the user switches from the security system to the non-secure system, if the data update in the security system cannot be known in the non-secure system, Provide users with updated data, but if you set up a data synchronization mechanism, data synchronization is performed every time you switch between systems, which will take up more memory of multi-system devices and cause excessive power loss.
  • the invention is based on at least one of the above technical problems, and proposes a new data synchronization scheme of a multi-system device and a terminal.
  • the data synchronization process is performed in the system switching process.
  • the data synchronization effect between multiple systems is also performed.
  • the data is updated, the data synchronization is performed according to the system switching instruction, thereby avoiding the power loss caused by the system switching, that is, the data loss caused by the data synchronization, thereby saving the memory of the multi-system device, thereby ensuring the memory.
  • the fluency of multi-system operation enhances the user experience.
  • the present invention provides a data synchronization method for a multi-system device, including: determining whether data in any one of the plurality of systems is updated; determining any one of the plurality of systems When the data in the data is updated, it is detected whether a system switching instruction is received; When the command is switched, the updated data is packaged to generate a data packet to be synchronized; the data packet is sent to the system to be switched to complete the data synchronization process.
  • the data synchronization process is performed in the system switching process, and the data synchronization effect between the multiple systems is realized, and in addition, the system switching instruction is performed according to the system switching instruction when the data is updated.
  • Data synchronization is performed to avoid power loss caused by data synchronization, which saves memory of multi-system devices, thereby ensuring the smoothness of multi-system operation and improving the user experience.
  • the database such as the input method vocabulary, the address book database, the short message database, and the account database, may generate some updated data, when switching to the B system in the multi-system.
  • the multi-system device generates a system switching instruction, and there are two implementation manners for processing the above system switching instruction:
  • the data packet is packaged by the identifier information of the data packet, where the identifier information includes the process name of the data packet in the resource manager, the application name of the data packet, and the attribute information of the data packet. Any combination of one or more.
  • the packaged updated data is sent to the data packet with the same identification information in the B system, and the synchronization update is completed, wherein the updated data may be part of the updated data in the A system. It can also be a complete packet in the A system, including updated data and raw data.
  • the packetized processing is performed on the updated data, including the following specific steps: performing packet processing on the updated data according to the identifier information of the updated data to generate data to be synchronized. package.
  • the updated data is packaged according to the identification information, so that the updated data has an identity of the opposite sex, that is, in the subsequent step, the updated data packet is sent to the same identifier.
  • the memory usage of the multi-system device in the data update process is reduced, the processability of the multi-system operation is ensured, and the user experience is improved.
  • the data packet is sent to the system to be switched to complete the data synchronization process, and includes the following specific steps: sending the data packet to the system to be switched In the same process of identifying the information, the data synchronization process is completed.
  • the data packet is sent to a process in the system to be switched that has the same identifier information, and includes the following specific steps: creating a multi-system communication channel; The data packet is broadcasted to a process in the system to be switched that has the same identification information to complete the data synchronization process.
  • the method further includes the following steps: performing cache processing on the updated data when it is determined that the system switching instruction is not received.
  • the real-time update of the data packet and the efficiency of data update are realized, that is, the updated data is saved when the data is updated, After waiting for the system switching instruction, the latest data packet can be sent immediately, which improves the efficiency of the data synchronization process.
  • a data synchronization system for a multi-system device comprising: a determining unit, configured to determine whether data in any one of the plurality of systems is updated; When it is determined that the data in any one of the plurality of systems is updated, detecting whether a system switching instruction is received; and a packaging unit, configured to perform the updated data when determining that the system switching instruction is received.
  • the packet processing is performed to generate a data packet to be synchronized; and a sending unit is configured to send the data packet to the system to be switched to complete the data synchronization process.
  • the data synchronization process is performed in the system switching process, and the data synchronization effect between the multiple systems is realized, and in addition, the system switching instruction is performed according to the system switching instruction when the data is updated.
  • Data synchronization is performed to avoid power loss caused by data synchronization, which saves memory of multi-system devices, thereby ensuring the smoothness of multi-system operation and improving the user experience.
  • the database such as the input method vocabulary, the address book database, the short message database, and the account database, may generate some updated data, when switching to the B system in the multi-system.
  • the multi-system device generates a system switching instruction, and there are two implementation manners for processing the above system switching instruction:
  • the data packet After transmitting the system switching instruction, the data packet is packaged by the identification information of the data packet, and
  • the identification information includes any combination of one or more of a process name of the data packet in the resource manager, an application name of the data packet, and attribute information of the data packet.
  • the packaged updated data is sent to the data packet with the same identification information in the B system, and the synchronization update is completed, wherein the updated data may be part of the updated data in the A system. It can also be a complete packet in the A system, including updated data and raw data.
  • the packaging unit is further configured to perform packet processing on the updated data according to the identifier information of the updated data to generate a data packet to be synchronized.
  • the sending unit is further configured to send the data packet to a process in the system to be switched that has the same identifier information to complete a data synchronization process.
  • the method further includes: a creating unit, configured to create a multi-system communication channel; the sending unit, further comprising: a broadcast sending unit, configured to broadcast the data packet through the communication channel In the process with the same identification information in the system to be switched, the data synchronization process is completed.
  • the method further includes: a buffering unit, configured to cache the updated data when determining that the system switching instruction is not received.
  • the real-time update of the data packet and the efficiency of data update are realized, that is, the updated data is saved when the data is updated, After waiting for the system switching instruction, the latest data packet can be sent immediately, which improves the efficiency of the data synchronization process.
  • the data synchronization process is performed in the system switching process, and the data synchronization effect between the multiple systems is realized, and in addition, when the data is updated, the system switching instruction is performed according to the system switching instruction.
  • the data synchronization avoids the power loss caused by the data switching, which saves the memory of the multi-system device, thereby ensuring the fluency of the multi-system operation and improving the user experience.
  • FIG. 1 shows a schematic flow chart of a data synchronization method of a multi-system device according to an embodiment of the present invention
  • FIG. 2 shows a schematic block of a data synchronization system of a multi-system device in accordance with an embodiment of the present invention.
  • FIG. 3 is a schematic flow chart showing a data synchronization method of a multi-system device according to another embodiment of the present invention.
  • FIG. 4 is a schematic flow chart showing a data synchronization method of a multi-system device according to another embodiment of the present invention.
  • FIG. 5 shows a schematic block diagram of a terminal in accordance with an embodiment of the present invention.
  • 1, 3 and 4 illustrate various embodiments of a data synchronization method for a multi-system device in accordance with an embodiment of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • a data synchronization method of a multi-system device includes: Step 102: determining whether data in any one of the plurality of systems is updated; When it is determined that the data in any one of the plurality of systems is updated, detecting whether a system switching instruction is received; and step 106, when determining that the system switching instruction is received, performing packet processing on the updated data, To generate a data packet to be synchronized; in step 108, the data packet is sent to the system to be switched to complete the data synchronization process.
  • the data synchronization process is performed in the system switching process, and the data synchronization effect between the multiple systems is realized, and in addition, the system switching instruction is performed according to the system switching instruction when the data is updated.
  • Data synchronization is performed to avoid power loss caused by data synchronization, which saves memory of multi-system devices, thereby ensuring the smoothness of multi-system operation and improving the user experience.
  • databases such as the input method vocabulary, the address book database, the short message database, and the account database generate some updated data, and are switched.
  • the multi-system device In the B system of at most systems, the multi-system device generates a system switching instruction, and there are two implementation manners for processing the above system switching instruction:
  • the data packet is packaged by the identifier information of the data packet, where the identifier information includes the process name of the data packet in the resource manager, the application name of the data packet, and the attribute information of the data packet. Any combination of one or more.
  • the packaged updated data is sent to the data packet with the same identification information in the B system, and the synchronization update is completed, wherein the updated data may be part of the updated data in the A system. It can also be a complete packet in the A system, including updated data and raw data.
  • the packetized processing is performed on the updated data, including the following specific steps: performing packet processing on the updated data according to the identifier information of the updated data to generate data to be synchronized. package.
  • the updated data is packaged according to the identification information, so that the updated data has an identity of the opposite sex, that is, in the subsequent step, the updated data packet is sent to the same identifier.
  • the memory usage of the multi-system device in the data update process is reduced, the processability of the multi-system operation is ensured, and the user experience is improved.
  • the data packet is sent to the system to be switched to complete the data synchronization process, and the following specific steps are included: sending the data packet to the system to be switched and having the same identifier information The process to complete the data synchronization process.
  • the data packet is sent to a process in the system to be switched that has the same identifier information, and includes the following specific steps: creating a multi-system communication channel; The data packet is broadcasted to a process in the system to be switched that has the same identification information to complete the data synchronization process.
  • detecting whether the system switching instruction is received further comprising the step of: performing cache processing on the updated data when determining that the system switching instruction is not received.
  • the updated data is slowed down when it is determined that there is no system switching instruction.
  • the storage process realizes the real-time update of the data packet and the efficiency of data update, that is, the updated data is saved when the data is updated, and the latest data packet can be immediately sent after waiting for the system switching instruction, thereby improving the efficiency of the data synchronization process.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • a data synchronization method of a multi-system device includes: step 302, switching between two systems; and step 304, switching from a non-secure system to a security system; Determining whether the core data is updated, if yes, executing step 308, if not, ending; step 308, turning on the data synchronization service of the non-secure system; step 310, encapsulating the updated data; step 312, creating a data transmission channel; The security system receives the updated data; in step 316, the data synchronization service of the security system is turned on; and in step 318, the security system performs data parsing and synchronization processing.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the data synchronization method of the multi-system device includes: step 402, switching between two systems; and step 404, switching from the security system to the non-secure system; Determining whether the core data is updated, if yes, executing step 408; if not, ending; step 408, turning on the data synchronization service of the security system; step 410, encapsulating the updated data; step 412, creating a data transmission channel;
  • the non-secure system receives the updated data; in step 416, the data synchronization service of the non-secure system is turned on; and in step 418, the non-secure system performs data parsing and synchronization processing.
  • FIG. 2 shows a schematic block diagram of a data synchronization system of a multi-system device in accordance with an embodiment of the present invention.
  • the data synchronization system 200 of the multi-system device includes: a determining unit 202, configured to determine whether data in any one of the multiple systems is updated; 204, configured to detect whether a system switching instruction is received when determining that data in any one of the multiple systems is updated; and a packaging unit 206, configured to: when it is determined that the system switching instruction is received The subsequent data is subjected to a packing process to generate a data packet to be synchronized; a transmitting unit 208 is configured to send the data packet to the system to be switched to complete the data synchronization process.
  • the data synchronization process is performed in the system switching process, and the data synchronization effect between the multiple systems is realized, and in addition, the system switching instruction is performed according to the system switching instruction when the data is updated. Synchronize data to avoid data synchronization caused by system switching The loss of power consumption saves the memory of multi-system devices, thereby ensuring the smoothness of multi-system operation and improving the user experience.
  • the database such as the input method vocabulary, the address book database, the short message database, and the account database, may generate some updated data, when switching to the B system in the multi-system.
  • the multi-system device generates a system switching instruction, and there are two implementation manners for processing the above system switching instruction:
  • the data packet is packaged by the identifier information of the data packet, where the identifier information includes the process name of the data packet in the resource manager, the application name of the data packet, and the attribute information of the data packet. Any combination of one or more.
  • the packaged updated data is sent to the data packet with the same identification information in the B system, and the synchronization update is completed, wherein the updated data may be part of the updated data in the A system. It can also be a complete packet in the A system, including updated data and raw data.
  • the packaging unit 206 is further configured to perform packet processing on the updated data according to the identifier information of the updated data to generate a data packet to be synchronized.
  • the sending unit 208 is further configured to send the data packet to a process in the system to be switched that has the same identifier information to complete a data synchronization process.
  • the method further includes: a creating unit 210, configured to create a multi-system communication channel; the sending unit 208 further includes: a broadcast sending unit 212, configured to use the data by using the communication channel
  • the packet broadcast is sent to the process in the system to be switched that has the same identification information to complete the data synchronization process.
  • the buffer unit 214 is configured to perform buffer processing on the updated data when it is determined that the system switching instruction is not received.
  • the system by performing cache processing on the updated data when determining that there is no system switching instruction, the real-time update of the data packet and the efficiency of data update are realized, that is, when the data is updated. After saving the updated data, the system can immediately send the latest data packet after waiting for the system switching instruction, which improves the efficiency of the data synchronization process.
  • FIG. 5 shows a schematic block diagram of a terminal according to an embodiment of the present invention.
  • the terminal 5 may include at least one processor 51, such as a CPU, at least one communication bus 52 and a memory 53, and a communication bus 52. Used to implement connection communication between these components; the memory 53 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • a set of program codes is stored in the memory 53, and the processor 51 is configured to call the program code stored in the memory 53 for performing the following operations:
  • the updated data is packaged to generate a data packet to be synchronized
  • the data packet is sent to the system to be switched to complete the data synchronization process.
  • the processor 51 performs packet processing on the updated data, including the following specific steps:
  • the processor 51 sends the data packet to the system to be switched to complete the data synchronization process, including the following specific steps:
  • the processor 51 sends the data packet to the process in the system to be switched that has the same identifier information, and includes the following specific steps:
  • the data packet is broadcasted through the communication channel to a process in the system to be switched that has the same identification information to complete the data synchronization process.
  • processor 51 also performs the following steps:
  • the updated data is cached.
  • the technical solution of the present invention is described in detail above with reference to the accompanying drawings, in consideration of how to design a multi-system design.
  • the data synchronization scheme ensures technical problems of data synchronization efficiency and power consumption. Therefore, the present invention proposes a new data synchronization scheme for a multi-system device and a terminal.
  • the data synchronization process is performed in the system switching process, and the multi-system is realized.
  • Data synchronization effect in addition, data synchronization is performed according to the system switching instruction when the data is updated, thereby avoiding power loss caused by system switching, that is, data synchronization, saving memory of multi-system devices, thereby ensuring smooth operation of multiple systems sexuality enhances the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Hardware Redundancy (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides a data synchronization method and system for a multi-system device, and a terminal. The data synchronization method for a multi-system device comprises: determining whether data in any system of multiple systems is updated; when determining that the data in any system of the multiple systems is updated, determining whether a system switching instruction is received; when determining that the system switching instruction is received, packaging the updated data to generate a data packet to be synchronized; and sending the data packet to a system to be switched to so as to complete a data synchronization process. By means of the technical scheme of the present invention, the data synchronization effect is achieved for multiple systems; in addition, data synchronization is conducted according to a system switching instruction only when data is updated, so that power loss caused by conducting data synchronization upon system switching is avoided, the memory of the multi-system device is saved, the fluency of the multi-system operation is guaranteed, and user experience is improved.

Description

多系统设备的数据同步方法、数据同步系统和终端Data synchronization method, data synchronization system and terminal of multi-system equipment

本申请要求于2015年01月20日提交中国专利局,申请号为201510028292.4、发明名称为“多系统设备的数据同步方法、数据同步系统和终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201510028292.4, the invention titled "Data Synchronization Method for Multi-System Equipment, Data Synchronization System and Terminal", which was submitted to the Chinese Patent Office on January 20, 2015. The citations are incorporated herein by reference.

技术领域Technical field

本发明涉及数据同步技术领域,具体而言,涉及一种多系统设备的数据同步方法、一种多系统设备的数据同步系统和一种终端。The present invention relates to the field of data synchronization technologies, and in particular, to a data synchronization method for a multi-system device, a data synchronization system for a multi-system device, and a terminal.

背景技术Background technique

在相关技术中,多系统设备诸如手机终端等,因为系统的使用情况而对本系统中的数据进行分别的保存,但是在系统切换过程中,数据需要通过同步机制来保证用户的使用体验,例如用户在安全系统中使用输入法后,会在安全系统的词库中进行数据更新,当用户从安全系统切换至非安全系统时,非安全系统中若无法获知安全系统中的数据更新情况,则无法为用户提供更新的数据,但是,如果设置一种数据同步机制,在每次系统间进行切换时都进行数据同步,则会占用多系统设备较大的内存,以及造成过多的功耗损失。In the related art, a multi-system device, such as a mobile phone terminal, separately saves data in the system because of the usage of the system, but in the system switching process, the data needs to ensure the user experience through a synchronization mechanism, such as a user. After the input method is used in the security system, the data is updated in the vocabulary of the security system. When the user switches from the security system to the non-secure system, if the data update in the security system cannot be known in the non-secure system, Provide users with updated data, but if you set up a data synchronization mechanism, data synchronization is performed every time you switch between systems, which will take up more memory of multi-system devices and cause excessive power loss.

因此,如何设计多系统设计的数据同步方案以保证数据同步效率和功耗节约成为亟待解决的技术问题。Therefore, how to design a data synchronization scheme of multi-system design to ensure data synchronization efficiency and power consumption has become a technical problem to be solved.

发明内容Summary of the invention

本发明正是基于上述技术问题至少之一,提出了一种新的多系统设备的数据同步方案和一种终端,在任一系统有数据更新时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。The invention is based on at least one of the above technical problems, and proposes a new data synchronization scheme of a multi-system device and a terminal. When any system has data update, the data synchronization process is performed in the system switching process. The data synchronization effect between multiple systems is also performed. When the data is updated, the data synchronization is performed according to the system switching instruction, thereby avoiding the power loss caused by the system switching, that is, the data loss caused by the data synchronization, thereby saving the memory of the multi-system device, thereby ensuring the memory. The fluency of multi-system operation enhances the user experience.

有鉴于此,本发明提出了一种多系统设备的数据同步方法,包括:判断所述多个系统中的任一系统中的数据是否被更新;在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;在判定接收到所述系 统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;将所述数据包发送至待切换的系统以完成数据同步过程。In view of this, the present invention provides a data synchronization method for a multi-system device, including: determining whether data in any one of the plurality of systems is updated; determining any one of the plurality of systems When the data in the data is updated, it is detected whether a system switching instruction is received; When the command is switched, the updated data is packaged to generate a data packet to be synchronized; the data packet is sent to the system to be switched to complete the data synchronization process.

在该技术方案中,通过在任一系统产生更新后的数据时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。In the technical solution, when the updated data is generated in any system, the data synchronization process is performed in the system switching process, and the data synchronization effect between the multiple systems is realized, and in addition, the system switching instruction is performed according to the system switching instruction when the data is updated. Data synchronization is performed to avoid power loss caused by data synchronization, which saves memory of multi-system devices, thereby ensuring the smoothness of multi-system operation and improving the user experience.

具体地,在多系统中的A系统在运行过程中,数据库诸如输入法词库、通讯录数据库、短信数据库和账户数据库等会产生一些更新后的数据,在切换至多系统中的B系统时,多系统设备产生系统切换指令,对于上述系统切换指令的处理可以有两种实施方式:Specifically, in the operation of the A system in the multi-system, the database, such as the input method vocabulary, the address book database, the short message database, and the account database, may generate some updated data, when switching to the B system in the multi-system, The multi-system device generates a system switching instruction, and there are two implementation manners for processing the above system switching instruction:

(1)以广播的形式将系统切换指令发送至包括B系统在内的所有系统(多系统设备中至少包括A系统和B系统);(1) transmitting system switching instructions to all systems including the B system in the form of broadcasts (including at least the A system and the B system among the multi-system devices);

(2)将系统切换指令发送至待切换的B系统。(2) Send the system switching instruction to the B system to be switched.

在发送系统切换指令后,以数据包的标识信息对数据包进行打包处理,其中,标识信息包括该数据包在资源管理器中的进程名称、数据包的应用名称和数据包的属性信息中的一个或多个的任意组合。After the system switching instruction is sent, the data packet is packaged by the identifier information of the data packet, where the identifier information includes the process name of the data packet in the resource manager, the application name of the data packet, and the attribute information of the data packet. Any combination of one or more.

在发送系统切换指令后,将打包后的更新后的数据发送至B系统中具备相同标识信息的数据包,并完成同步更新,其中,更新后的数据可以是A系统中更新后的数据的部分,也可以是A系统中的完整数据包,包括更新后的数据和原始数据。After transmitting the system switching instruction, the packaged updated data is sent to the data packet with the same identification information in the B system, and the synchronization update is completed, wherein the updated data may be part of the updated data in the A system. It can also be a complete packet in the A system, including updated data and raw data.

在上述技术方案中,优选地,对更新后的数据进行打包处理,包括以下具体步骤:根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包。In the above technical solution, preferably, the packetized processing is performed on the updated data, including the following specific steps: performing packet processing on the updated data according to the identifier information of the updated data to generate data to be synchronized. package.

在该技术方案中,通过根据标识信息对更新后的数据进行打包处理,使得更新后的数据具备了个异性的标识,也即在后续步骤中,将更新后的数据包发送至具备相同标识的进程中,减小了数据更新过程对多系统设备的内存占用率,保证了多系统操作的流程性,提升了用户的使用体验。In the technical solution, the updated data is packaged according to the identification information, so that the updated data has an identity of the opposite sex, that is, in the subsequent step, the updated data packet is sent to the same identifier. In the process, the memory usage of the multi-system device in the data update process is reduced, the processability of the multi-system operation is ensured, and the user experience is improved.

在上述技术方案中,优选地,将所述数据包发送至待切换的系统以完成数据同步过程,包括以下具体步骤:将所述数据包发送至待切换的系统中的具备 相同所述标识信息的进程中,以完成数据同步过程。In the above technical solution, preferably, the data packet is sent to the system to be switched to complete the data synchronization process, and includes the following specific steps: sending the data packet to the system to be switched In the same process of identifying the information, the data synchronization process is completed.

在上述技术方案中,优选地,将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,包括以下具体步骤:创建多系统间通信通道;通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。In the above technical solution, preferably, the data packet is sent to a process in the system to be switched that has the same identifier information, and includes the following specific steps: creating a multi-system communication channel; The data packet is broadcasted to a process in the system to be switched that has the same identification information to complete the data synchronization process.

在上述技术方案中,优选地,还包括以下具体步骤:在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。In the above technical solution, preferably, the method further includes the following steps: performing cache processing on the updated data when it is determined that the system switching instruction is not received.

在该技术方案中,通过在判定无系统切换指令时,对更新后的数据进行缓存处理,实现了数据包的实时更新和数据更新的效率,也即在数据发生更新时保存更新后的数据,等待系统切换指令后即可立即发送最新的数据包,提高了数据同步过程的效率。In the technical solution, by performing cache processing on the updated data when determining that there is no system switching instruction, the real-time update of the data packet and the efficiency of data update are realized, that is, the updated data is saved when the data is updated, After waiting for the system switching instruction, the latest data packet can be sent immediately, which improves the efficiency of the data synchronization process.

根据本发明的另一方面,还提出了一种多系统设备的数据同步系统,包括:判断单元,用于判断所述多个系统中的任一系统中的数据是否被更新;检测单元,用于在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;打包单元,用于在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;发送单元,用于将所述数据包发送至待切换的系统以完成数据同步过程。According to another aspect of the present invention, a data synchronization system for a multi-system device is further provided, comprising: a determining unit, configured to determine whether data in any one of the plurality of systems is updated; When it is determined that the data in any one of the plurality of systems is updated, detecting whether a system switching instruction is received; and a packaging unit, configured to perform the updated data when determining that the system switching instruction is received The packet processing is performed to generate a data packet to be synchronized; and a sending unit is configured to send the data packet to the system to be switched to complete the data synchronization process.

在该技术方案中,通过在任一系统产生更新后的数据时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。In the technical solution, when the updated data is generated in any system, the data synchronization process is performed in the system switching process, and the data synchronization effect between the multiple systems is realized, and in addition, the system switching instruction is performed according to the system switching instruction when the data is updated. Data synchronization is performed to avoid power loss caused by data synchronization, which saves memory of multi-system devices, thereby ensuring the smoothness of multi-system operation and improving the user experience.

具体地,在多系统中的A系统在运行过程中,数据库诸如输入法词库、通讯录数据库、短信数据库和账户数据库等会产生一些更新后的数据,在切换至多系统中的B系统时,多系统设备产生系统切换指令,对于上述系统切换指令的处理可以有两种实施方式:Specifically, in the operation of the A system in the multi-system, the database, such as the input method vocabulary, the address book database, the short message database, and the account database, may generate some updated data, when switching to the B system in the multi-system, The multi-system device generates a system switching instruction, and there are two implementation manners for processing the above system switching instruction:

(1)以广播的形式将系统切换指令发送至包括B系统在内的所有系统(多系统设备中至少包括A系统和B系统);(1) transmitting system switching instructions to all systems including the B system in the form of broadcasts (including at least the A system and the B system among the multi-system devices);

(2)将系统切换指令发送至待切换的B系统。(2) Send the system switching instruction to the B system to be switched.

在发送系统切换指令后,以数据包的标识信息对数据包进行打包处理,其 中,标识信息包括该数据包在资源管理器中的进程名称、数据包的应用名称和数据包的属性信息中的一个或多个的任意组合。After transmitting the system switching instruction, the data packet is packaged by the identification information of the data packet, and The identification information includes any combination of one or more of a process name of the data packet in the resource manager, an application name of the data packet, and attribute information of the data packet.

在发送系统切换指令后,将打包后的更新后的数据发送至B系统中具备相同标识信息的数据包,并完成同步更新,其中,更新后的数据可以是A系统中更新后的数据的部分,也可以是A系统中的完整数据包,包括更新后的数据和原始数据。After transmitting the system switching instruction, the packaged updated data is sent to the data packet with the same identification information in the B system, and the synchronization update is completed, wherein the updated data may be part of the updated data in the A system. It can also be a complete packet in the A system, including updated data and raw data.

在上述技术方案中,优选地,所述打包单元还用于,根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包。In the above technical solution, preferably, the packaging unit is further configured to perform packet processing on the updated data according to the identifier information of the updated data to generate a data packet to be synchronized.

在上述技术方案中,优选地,所述发送单元还用于,将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。In the above technical solution, preferably, the sending unit is further configured to send the data packet to a process in the system to be switched that has the same identifier information to complete a data synchronization process.

在上述技术方案中,优选地,还包括:创建单元,用于创建多系统间通信通道;所述发送单元,还包括:广播发送单元,用于通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。In the above technical solution, preferably, the method further includes: a creating unit, configured to create a multi-system communication channel; the sending unit, further comprising: a broadcast sending unit, configured to broadcast the data packet through the communication channel In the process with the same identification information in the system to be switched, the data synchronization process is completed.

在上述技术方案中,优选地,还包括:缓存单元,用于在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。In the above technical solution, preferably, the method further includes: a buffering unit, configured to cache the updated data when determining that the system switching instruction is not received.

在该技术方案中,通过在判定无系统切换指令时,对更新后的数据进行缓存处理,实现了数据包的实时更新和数据更新的效率,也即在数据发生更新时保存更新后的数据,等待系统切换指令后即可立即发送最新的数据包,提高了数据同步过程的效率。In the technical solution, by performing cache processing on the updated data when determining that there is no system switching instruction, the real-time update of the data packet and the efficiency of data update are realized, that is, the updated data is saved when the data is updated, After waiting for the system switching instruction, the latest data packet can be sent immediately, which improves the efficiency of the data synchronization process.

通过以上技术方案,通过在任一系统产生更新后的数据时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。Through the above technical solution, when the updated data is generated in any system, the data synchronization process is performed in the system switching process, and the data synchronization effect between the multiple systems is realized, and in addition, when the data is updated, the system switching instruction is performed according to the system switching instruction. The data synchronization avoids the power loss caused by the data switching, which saves the memory of the multi-system device, thereby ensuring the fluency of the multi-system operation and improving the user experience.

附图说明DRAWINGS

图1示出了根据本发明的一个实施例的多系统设备的数据同步方法的示意流程图;1 shows a schematic flow chart of a data synchronization method of a multi-system device according to an embodiment of the present invention;

图2示出了根据本发明的实施例的多系统设备的数据同步系统的示意框 图;2 shows a schematic block of a data synchronization system of a multi-system device in accordance with an embodiment of the present invention. Figure

图3示出了根据本发明的另一个实施例的多系统设备的数据同步方法的示意流程图;FIG. 3 is a schematic flow chart showing a data synchronization method of a multi-system device according to another embodiment of the present invention; FIG.

图4示出了根据本发明的另一个实施例的多系统设备的数据同步方法的示意流程图;4 is a schematic flow chart showing a data synchronization method of a multi-system device according to another embodiment of the present invention;

图5示出了根据本发明的实施例的终端的示意框图。FIG. 5 shows a schematic block diagram of a terminal in accordance with an embodiment of the present invention.

具体实施方式detailed description

为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。The present invention will be further described in detail below with reference to the drawings and specific embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.

在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明的保护范围并不受下面公开的具体实施例的限制。In the following description, numerous specific details are set forth in order to provide a full understanding of the invention, but the invention may be practiced otherwise than as described herein. Limitations of the embodiments.

图1、图3和图4示出了根据本发明的实施例的多系统设备的数据同步方法的多种实施方式。1, 3 and 4 illustrate various embodiments of a data synchronization method for a multi-system device in accordance with an embodiment of the present invention.

实施例一:Embodiment 1:

如图1所示,根据本发明的实施例的实施例的多系统设备的数据同步方法,包括:步骤102,判断所述多个系统中的任一系统中的数据是否被更新;步骤104,在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;步骤106,在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;步骤108,将所述数据包发送至待切换的系统以完成数据同步过程。As shown in FIG. 1, a data synchronization method of a multi-system device according to an embodiment of the embodiment of the present invention includes: Step 102: determining whether data in any one of the plurality of systems is updated; When it is determined that the data in any one of the plurality of systems is updated, detecting whether a system switching instruction is received; and step 106, when determining that the system switching instruction is received, performing packet processing on the updated data, To generate a data packet to be synchronized; in step 108, the data packet is sent to the system to be switched to complete the data synchronization process.

在该技术方案中,通过在任一系统产生更新后的数据时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。In the technical solution, when the updated data is generated in any system, the data synchronization process is performed in the system switching process, and the data synchronization effect between the multiple systems is realized, and in addition, the system switching instruction is performed according to the system switching instruction when the data is updated. Data synchronization is performed to avoid power loss caused by data synchronization, which saves memory of multi-system devices, thereby ensuring the smoothness of multi-system operation and improving the user experience.

具体地,在多系统中的A系统在运行过程中,数据库诸如输入法词库、通讯录数据库、短信数据库和账户数据库等会产生一些更新后的数据,在切换 至多系统中的B系统时,多系统设备产生系统切换指令,对于上述系统切换指令的处理可以有两种实施方式:Specifically, in the operation of the A system in multiple systems, databases such as the input method vocabulary, the address book database, the short message database, and the account database generate some updated data, and are switched. In the B system of at most systems, the multi-system device generates a system switching instruction, and there are two implementation manners for processing the above system switching instruction:

(1)以广播的形式将系统切换指令发送至包括B系统在内的所有系统(多系统设备中至少包括A系统和B系统);(1) transmitting system switching instructions to all systems including the B system in the form of broadcasts (including at least the A system and the B system among the multi-system devices);

(2)将系统切换指令发送至待切换的B系统。(2) Send the system switching instruction to the B system to be switched.

在发送系统切换指令后,以数据包的标识信息对数据包进行打包处理,其中,标识信息包括该数据包在资源管理器中的进程名称、数据包的应用名称和数据包的属性信息中的一个或多个的任意组合。After the system switching instruction is sent, the data packet is packaged by the identifier information of the data packet, where the identifier information includes the process name of the data packet in the resource manager, the application name of the data packet, and the attribute information of the data packet. Any combination of one or more.

在发送系统切换指令后,将打包后的更新后的数据发送至B系统中具备相同标识信息的数据包,并完成同步更新,其中,更新后的数据可以是A系统中更新后的数据的部分,也可以是A系统中的完整数据包,包括更新后的数据和原始数据。After transmitting the system switching instruction, the packaged updated data is sent to the data packet with the same identification information in the B system, and the synchronization update is completed, wherein the updated data may be part of the updated data in the A system. It can also be a complete packet in the A system, including updated data and raw data.

在上述技术方案中,优选地,对更新后的数据进行打包处理,包括以下具体步骤:根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包。In the above technical solution, preferably, the packetized processing is performed on the updated data, including the following specific steps: performing packet processing on the updated data according to the identifier information of the updated data to generate data to be synchronized. package.

在该技术方案中,通过根据标识信息对更新后的数据进行打包处理,使得更新后的数据具备了个异性的标识,也即在后续步骤中,将更新后的数据包发送至具备相同标识的进程中,减小了数据更新过程对多系统设备的内存占用率,保证了多系统操作的流程性,提升了用户的使用体验。In the technical solution, the updated data is packaged according to the identification information, so that the updated data has an identity of the opposite sex, that is, in the subsequent step, the updated data packet is sent to the same identifier. In the process, the memory usage of the multi-system device in the data update process is reduced, the processability of the multi-system operation is ensured, and the user experience is improved.

在上述技术方案中,优选地,将所述数据包发送至待切换的系统以完成数据同步过程,包括以下具体步骤:将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。In the above technical solution, preferably, the data packet is sent to the system to be switched to complete the data synchronization process, and the following specific steps are included: sending the data packet to the system to be switched and having the same identifier information The process to complete the data synchronization process.

在上述技术方案中,优选地,将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,包括以下具体步骤:创建多系统间通信通道;通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。In the above technical solution, preferably, the data packet is sent to a process in the system to be switched that has the same identifier information, and includes the following specific steps: creating a multi-system communication channel; The data packet is broadcasted to a process in the system to be switched that has the same identification information to complete the data synchronization process.

在上述技术方案中,优选地,检测是否接收到系统切换指令,还包括以下具体步骤:在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。In the above technical solution, preferably, detecting whether the system switching instruction is received, further comprising the step of: performing cache processing on the updated data when determining that the system switching instruction is not received.

在该技术方案中,通过在判定无系统切换指令时,对更新后的数据进行缓 存处理,实现了数据包的实时更新和数据更新的效率,也即在数据发生更新时保存更新后的数据,等待系统切换指令后即可立即发送最新的数据包,提高了数据同步过程的效率。In the technical solution, the updated data is slowed down when it is determined that there is no system switching instruction. The storage process realizes the real-time update of the data packet and the efficiency of data update, that is, the updated data is saved when the data is updated, and the latest data packet can be immediately sent after waiting for the system switching instruction, thereby improving the efficiency of the data synchronization process. .

实施例二:Embodiment 2:

如图3所示,根据本发明的实施例的实施例的多系统设备的数据同步方法,包括:步骤302,双系统间切换广播;步骤304,从非安全系统切换至安全系统;步骤306,判断核心数据是否更新,若是,则执行步骤308,若否,则结束;步骤308,开启非安全系统的数据同步服务;步骤310,封装更新后的数据;步骤312,创建数据传输通道;步骤314,安全系统接收更新后的数据;步骤316,开启安全系统的数据同步服务;步骤318,安全系统进行数据解析和同步处理。As shown in FIG. 3, a data synchronization method of a multi-system device according to an embodiment of the present invention includes: step 302, switching between two systems; and step 304, switching from a non-secure system to a security system; Determining whether the core data is updated, if yes, executing step 308, if not, ending; step 308, turning on the data synchronization service of the non-secure system; step 310, encapsulating the updated data; step 312, creating a data transmission channel; The security system receives the updated data; in step 316, the data synchronization service of the security system is turned on; and in step 318, the security system performs data parsing and synchronization processing.

实施例三:Embodiment 3:

如图4所示,根据本发明的实施例的实施例的多系统设备的数据同步方法,包括:步骤402,双系统间切换广播;步骤404,从安全系统切换至非安全系统;步骤406,判断核心数据是否更新,若是,则执行步骤408,若否,则结束;步骤408,开启安全系统的数据同步服务;步骤410,封装更新后的数据;步骤412,创建数据传输通道;步骤414,非安全系统接收更新后的数据;步骤416,开启非安全系统的数据同步服务;步骤418,非安全系统进行数据解析和同步处理。As shown in FIG. 4, the data synchronization method of the multi-system device according to the embodiment of the embodiment of the present invention includes: step 402, switching between two systems; and step 404, switching from the security system to the non-secure system; Determining whether the core data is updated, if yes, executing step 408; if not, ending; step 408, turning on the data synchronization service of the security system; step 410, encapsulating the updated data; step 412, creating a data transmission channel; The non-secure system receives the updated data; in step 416, the data synchronization service of the non-secure system is turned on; and in step 418, the non-secure system performs data parsing and synchronization processing.

图2示出了根据本发明的实施例的多系统设备的数据同步系统的示意框图。2 shows a schematic block diagram of a data synchronization system of a multi-system device in accordance with an embodiment of the present invention.

如图2所示,根据本发明的实施例的多系统设备的数据同步系统200,包括:判断单元202,用于判断所述多个系统中的任一系统中的数据是否被更新;检测单元204,用于在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;打包单元206,用于在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;发送单元208,用于将所述数据包发送至待切换的系统以完成数据同步过程。As shown in FIG. 2, the data synchronization system 200 of the multi-system device according to the embodiment of the present invention includes: a determining unit 202, configured to determine whether data in any one of the multiple systems is updated; 204, configured to detect whether a system switching instruction is received when determining that data in any one of the multiple systems is updated; and a packaging unit 206, configured to: when it is determined that the system switching instruction is received The subsequent data is subjected to a packing process to generate a data packet to be synchronized; a transmitting unit 208 is configured to send the data packet to the system to be switched to complete the data synchronization process.

在该技术方案中,通过在任一系统产生更新后的数据时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成 的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。In the technical solution, when the updated data is generated in any system, the data synchronization process is performed in the system switching process, and the data synchronization effect between the multiple systems is realized, and in addition, the system switching instruction is performed according to the system switching instruction when the data is updated. Synchronize data to avoid data synchronization caused by system switching The loss of power consumption saves the memory of multi-system devices, thereby ensuring the smoothness of multi-system operation and improving the user experience.

具体地,在多系统中的A系统在运行过程中,数据库诸如输入法词库、通讯录数据库、短信数据库和账户数据库等会产生一些更新后的数据,在切换至多系统中的B系统时,多系统设备产生系统切换指令,对于上述系统切换指令的处理可以有两种实施方式:Specifically, in the operation of the A system in the multi-system, the database, such as the input method vocabulary, the address book database, the short message database, and the account database, may generate some updated data, when switching to the B system in the multi-system, The multi-system device generates a system switching instruction, and there are two implementation manners for processing the above system switching instruction:

(1)以广播的形式将系统切换指令发送至包括B系统在内的所有系统(多系统设备中至少包括A系统和B系统);(1) transmitting system switching instructions to all systems including the B system in the form of broadcasts (including at least the A system and the B system among the multi-system devices);

(2)将系统切换指令发送至待切换的B系统。(2) Send the system switching instruction to the B system to be switched.

在发送系统切换指令后,以数据包的标识信息对数据包进行打包处理,其中,标识信息包括该数据包在资源管理器中的进程名称、数据包的应用名称和数据包的属性信息中的一个或多个的任意组合。After the system switching instruction is sent, the data packet is packaged by the identifier information of the data packet, where the identifier information includes the process name of the data packet in the resource manager, the application name of the data packet, and the attribute information of the data packet. Any combination of one or more.

在发送系统切换指令后,将打包后的更新后的数据发送至B系统中具备相同标识信息的数据包,并完成同步更新,其中,更新后的数据可以是A系统中更新后的数据的部分,也可以是A系统中的完整数据包,包括更新后的数据和原始数据。After transmitting the system switching instruction, the packaged updated data is sent to the data packet with the same identification information in the B system, and the synchronization update is completed, wherein the updated data may be part of the updated data in the A system. It can also be a complete packet in the A system, including updated data and raw data.

在上述技术方案中,优选地,所述打包单元206还用于,根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包。In the above technical solution, the packaging unit 206 is further configured to perform packet processing on the updated data according to the identifier information of the updated data to generate a data packet to be synchronized.

在上述技术方案中,优选地,所述发送单元208还用于,将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。In the above technical solution, preferably, the sending unit 208 is further configured to send the data packet to a process in the system to be switched that has the same identifier information to complete a data synchronization process.

在上述技术方案中,优选地,还包括:创建单元210,用于创建多系统间通信通道;所述发送单元208,还包括:广播发送单元212,用于通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。In the above technical solution, preferably, the method further includes: a creating unit 210, configured to create a multi-system communication channel; the sending unit 208 further includes: a broadcast sending unit 212, configured to use the data by using the communication channel The packet broadcast is sent to the process in the system to be switched that has the same identification information to complete the data synchronization process.

在上述技术方案中,优选地,还包括:缓存单元214,用于在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。In the above technical solution, preferably, the buffer unit 214 is configured to perform buffer processing on the updated data when it is determined that the system switching instruction is not received.

在该技术方案中,通过在判定无系统切换指令时,对更新后的数据进行缓存处理,实现了数据包的实时更新和数据更新的效率,也即在数据发生更新时 保存更新后的数据,等待系统切换指令后即可立即发送最新的数据包,提高了数据同步过程的效率。In the technical solution, by performing cache processing on the updated data when determining that there is no system switching instruction, the real-time update of the data packet and the efficiency of data update are realized, that is, when the data is updated. After saving the updated data, the system can immediately send the latest data packet after waiting for the system switching instruction, which improves the efficiency of the data synchronization process.

图5示出了根据本发明的实施例的终端的示意框图,如图5所示,该终端5可以包括:至少一个处理器51,例如CPU,至少一个通信总线52以及存储器53;通信总线52用于实现这些组件之间的连接通信;存储器53可以是高速RAM存储器,也可以是非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。存储器53中存储一组程序代码,且处理器51用于调用存储器53中存储的程序代码,用于执行以下操作:FIG. 5 shows a schematic block diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 5, the terminal 5 may include at least one processor 51, such as a CPU, at least one communication bus 52 and a memory 53, and a communication bus 52. Used to implement connection communication between these components; the memory 53 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. A set of program codes is stored in the memory 53, and the processor 51 is configured to call the program code stored in the memory 53 for performing the following operations:

判断所述多个系统中的任一系统中的数据是否被更新;Determining whether data in any one of the plurality of systems is updated;

在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;Detecting whether a system switching instruction is received when determining that data in any one of the plurality of systems is updated;

在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;When it is determined that the system switching instruction is received, the updated data is packaged to generate a data packet to be synchronized;

将所述数据包发送至待切换的系统以完成数据同步过程。The data packet is sent to the system to be switched to complete the data synchronization process.

可选的,处理器51对更新后的数据进行打包处理,包括以下具体步骤:Optionally, the processor 51 performs packet processing on the updated data, including the following specific steps:

根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包。And performing the packet processing on the updated data according to the identifier information of the updated data to generate a data packet to be synchronized.

又可选的,处理器51将所述数据包发送至待切换的系统以完成数据同步过程,包括以下具体步骤:Optionally, the processor 51 sends the data packet to the system to be switched to complete the data synchronization process, including the following specific steps:

将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。Sending the data packet to a process in the system to be switched that has the same identification information to complete the data synchronization process.

另可选的,处理器51将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,包括以下具体步骤:Alternatively, the processor 51 sends the data packet to the process in the system to be switched that has the same identifier information, and includes the following specific steps:

创建多系统间通信通道;Create a multi-system communication channel;

通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。The data packet is broadcasted through the communication channel to a process in the system to be switched that has the same identification information to complete the data synchronization process.

进一步的,处理器51还执行以下步骤:Further, the processor 51 also performs the following steps:

在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。When it is determined that the system switching instruction is not received, the updated data is cached.

以上结合附图详细说明了本发明的技术方案,考虑到如何设计多系统设计 的数据同步方案以保证数据同步效率和功耗节约的技术问题。因此,本发明提出了一种新的多系统设备的数据同步方案和一种终端,通过在任一系统产生更新后的数据时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。The technical solution of the present invention is described in detail above with reference to the accompanying drawings, in consideration of how to design a multi-system design. The data synchronization scheme ensures technical problems of data synchronization efficiency and power consumption. Therefore, the present invention proposes a new data synchronization scheme for a multi-system device and a terminal. When the updated data is generated in any system, the data synchronization process is performed in the system switching process, and the multi-system is realized. Data synchronization effect, in addition, data synchronization is performed according to the system switching instruction when the data is updated, thereby avoiding power loss caused by system switching, that is, data synchronization, saving memory of multi-system devices, thereby ensuring smooth operation of multiple systems Sexuality enhances the user experience.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims (13)

一种多系统设备的数据同步方法,所述多系统设备包括多个系统,其特征在于,所述数据同步方法包括:A data synchronization method for a multi-system device, the multi-system device comprising a plurality of systems, wherein the data synchronization method comprises: 判断所述多个系统中的任一系统中的数据是否被更新;Determining whether data in any one of the plurality of systems is updated; 在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;Detecting whether a system switching instruction is received when determining that data in any one of the plurality of systems is updated; 在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;When it is determined that the system switching instruction is received, the updated data is packaged to generate a data packet to be synchronized; 将所述数据包发送至待切换的系统以完成数据同步过程。The data packet is sent to the system to be switched to complete the data synchronization process. 根据权利要求1所述的多系统设备的数据同步方法,其特征在于,对更新后的数据进行打包处理,包括以下具体步骤:The data synchronization method of the multi-system device according to claim 1, characterized in that the packet processing of the updated data comprises the following specific steps: 根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包。And performing the packet processing on the updated data according to the identifier information of the updated data to generate a data packet to be synchronized. 根据权利要求2所述的多系统设备的数据同步方法,其特征在于,将所述数据包发送至待切换的系统以完成数据同步过程,包括以下具体步骤:The data synchronization method of the multi-system device according to claim 2, wherein the transmitting the data packet to the system to be switched to complete the data synchronization process comprises the following specific steps: 将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。Sending the data packet to a process in the system to be switched that has the same identification information to complete the data synchronization process. 根据权利要求3所述的多系统设备的数据同步方法,其特征在于,将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,包括以下具体步骤:The data synchronization method of the multi-system device according to claim 3, wherein the sending the data packet to the process having the same identification information in the system to be switched includes the following specific steps: 创建多系统间通信通道;Create a multi-system communication channel; 通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。The data packet is broadcasted through the communication channel to a process in the system to be switched that has the same identification information to complete the data synchronization process. 根据权利要求1至4中任一项所述的多系统设备的数据同步方法,其特征在于,还包括以下步骤:The data synchronization method of the multi-system device according to any one of claims 1 to 4, further comprising the steps of: 在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。When it is determined that the system switching instruction is not received, the updated data is cached. 一种多系统设备的数据同步系统,所述多系统设备包括多个系统,其特征在于,所述数据同步系统包括: A data synchronization system for a multi-system device, the multi-system device comprising a plurality of systems, wherein the data synchronization system comprises: 判断单元,用于判断所述多个系统中的任一系统中的数据是否被更新;a determining unit, configured to determine whether data in any one of the plurality of systems is updated; 检测单元,用于在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;a detecting unit, configured to detect whether a system switching instruction is received when determining that data in any one of the plurality of systems is updated; 打包单元,用于在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;a packing unit, configured to perform packet processing on the updated data to determine a data packet to be synchronized when determining that the system switching instruction is received; 发送单元,用于将所述数据包发送至待切换的系统以完成数据同步过程。And a sending unit, configured to send the data packet to a system to be switched to complete a data synchronization process. 根据权利要求6所述的多系统设备的数据同步系统,其特征在于,所述打包单元还用于根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包,所述发送单元还用于将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。The data synchronization system of the multi-system device according to claim 6, wherein the packaging unit is further configured to perform packet processing on the updated data according to the identifier information of the updated data to generate a to-be-processed data. And the sending unit is further configured to send the data packet to a process in the system to be switched that has the same identifier information to complete the data synchronization process. 根据权利要求7所述的多系统设备的数据同步系统,其特征在于,还包括:The data synchronization system of the multi-system device of claim 7, further comprising: 创建单元,用于创建多系统间通信通道;Create a unit for creating a multi-system communication channel; 所述发送单元,还包括:The sending unit further includes: 广播发送单元,用于通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。And a broadcast sending unit, configured to broadcast the data packet to the process in the system to be switched that has the same identifier information through the communication channel, to complete the data synchronization process. 根据权利要求6至8中任一项所述的多系统设备的数据同步系统,其特征在于,还包括:The data synchronization system of the multi-system device according to any one of claims 6 to 8, further comprising: 缓存单元,用于在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。And a buffer unit, configured to cache the updated data when determining that the system switching instruction is not received. 一种终端,所述终端包括多个系统,其特征在于,所述终端包括处理器和存储器,其中,所述存储器中存储一组程序代码,且所述处理器用于调用所述存储器中存储的程序代码,用于执行以下操作:A terminal, the terminal comprising a plurality of systems, wherein the terminal comprises a processor and a memory, wherein the memory stores a set of program codes, and the processor is configured to call the stored in the memory Program code to do the following: 判断所述多个系统中的任一系统中的数据是否被更新;Determining whether data in any one of the plurality of systems is updated; 在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;Detecting whether a system switching instruction is received when determining that data in any one of the plurality of systems is updated; 在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;When it is determined that the system switching instruction is received, the updated data is packaged to generate a data packet to be synchronized; 将所述数据包发送至待切换的系统以完成数据同步过程。The data packet is sent to the system to be switched to complete the data synchronization process. 根据权利要求10所述的终端,其特征在于,所述处理器对更新后的 数据进行打包处理,包括以下具体步骤:The terminal according to claim 10, wherein said processor pair is updated The data is packaged and includes the following specific steps: 根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包;And performing the packet processing on the updated data according to the identifier information of the updated data to generate a data packet to be synchronized; 所述处理器将所述数据包发送至待切换的系统以完成数据同步过程,包括以下具体步骤:The processor sends the data packet to the system to be switched to complete the data synchronization process, including the following specific steps: 将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。Sending the data packet to a process in the system to be switched that has the same identification information to complete the data synchronization process. 根据权利要求11所述的终端,其特征在于,所述处理器将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,包括以下具体步骤:The terminal according to claim 11, wherein the processor sends the data packet to a process in the system to be switched that has the same identification information, and includes the following specific steps: 创建多系统间通信通道;Create a multi-system communication channel; 通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。The data packet is broadcasted through the communication channel to a process in the system to be switched that has the same identification information to complete the data synchronization process. 根据权利要求10至12中任一项所述的终端,其特征在于,所述处理器还执行以下步骤:The terminal according to any one of claims 10 to 12, wherein the processor further performs the following steps: 在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。 When it is determined that the system switching instruction is not received, the updated data is cached.
PCT/CN2015/077985 2015-01-20 2015-04-30 Data synchronization method and data synchronization system for multi-system device, and terminal Ceased WO2016115787A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510028292.4A CN104580734A (en) 2015-01-20 2015-01-20 Data synchronization method, data synchronization system and terminal of multi-system equipment
CN201510028292.4 2015-01-20

Publications (1)

Publication Number Publication Date
WO2016115787A1 true WO2016115787A1 (en) 2016-07-28

Family

ID=53095861

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/077985 Ceased WO2016115787A1 (en) 2015-01-20 2015-04-30 Data synchronization method and data synchronization system for multi-system device, and terminal

Country Status (2)

Country Link
CN (1) CN104580734A (en)
WO (1) WO2016115787A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334197A (en) * 2022-08-09 2022-11-11 青岛海信移动通信技术股份有限公司 Communication function changing method, multi-system terminal and medium

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580734A (en) * 2015-01-20 2015-04-29 宇龙计算机通信科技(深圳)有限公司 Data synchronization method, data synchronization system and terminal of multi-system equipment
CN105740009B (en) * 2016-01-26 2019-09-17 青岛海信移动通信技术股份有限公司 Version upgrading method and terminal device
CN106201675B (en) * 2016-06-25 2019-10-25 依偎科技(南昌)有限公司 A kind of mobile terminal application freezing method and mobile terminal
CN106250230B (en) * 2016-09-29 2019-10-11 宇龙计算机通信科技(深圳)有限公司 A kind of method, apparatus and terminal that application is freezed
CN106487811B (en) * 2016-11-29 2019-06-25 北京元心科技有限公司 Method and device for communication among multiple containers
CN106775837B (en) * 2016-11-29 2020-08-28 北京元心科技有限公司 Multi-system global configuration synchronization method and device
CN108401003B (en) * 2017-02-08 2021-01-22 北京百度网讯科技有限公司 Radar data synchronization method, device, equipment and computer storage medium
CN107241449A (en) * 2017-08-01 2017-10-10 珠海市魅族科技有限公司 Method of data synchronization and device, hand-held mobile terminal and storage medium
CN108390989B (en) * 2018-01-05 2021-08-27 郑州信大捷安信息技术股份有限公司 Inter-system notification synchronization method based on Android dual systems
CN112583977A (en) * 2019-09-12 2021-03-30 成都鼎桥通信技术有限公司 Message synchronization method, device and storage medium
CN112506459A (en) * 2020-12-14 2021-03-16 成都赫尔墨斯科技股份有限公司 Data synchronization method and system for avionics system comprehensive display control unit

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477547A (en) * 2002-08-23 2004-02-25 英业达股份有限公司 Update backup system and method for data conversion of same-machine dual-system
CN102801543A (en) * 2011-05-24 2012-11-28 中国银联股份有限公司 Method for dynamic data synchronization between active-active systems
CN103544057A (en) * 2012-07-09 2014-01-29 腾讯科技(深圳)有限公司 Switching method and switching system for data service systems
CN104580734A (en) * 2015-01-20 2015-04-29 宇龙计算机通信科技(深圳)有限公司 Data synchronization method, data synchronization system and terminal of multi-system equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477547A (en) * 2002-08-23 2004-02-25 英业达股份有限公司 Update backup system and method for data conversion of same-machine dual-system
CN102801543A (en) * 2011-05-24 2012-11-28 中国银联股份有限公司 Method for dynamic data synchronization between active-active systems
CN103544057A (en) * 2012-07-09 2014-01-29 腾讯科技(深圳)有限公司 Switching method and switching system for data service systems
CN104580734A (en) * 2015-01-20 2015-04-29 宇龙计算机通信科技(深圳)有限公司 Data synchronization method, data synchronization system and terminal of multi-system equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334197A (en) * 2022-08-09 2022-11-11 青岛海信移动通信技术股份有限公司 Communication function changing method, multi-system terminal and medium
CN115334197B (en) * 2022-08-09 2024-05-10 青岛海信移动通信技术有限公司 Communication function changing method, multi-system terminal and medium

Also Published As

Publication number Publication date
CN104580734A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
WO2016115787A1 (en) Data synchronization method and data synchronization system for multi-system device, and terminal
US9203734B2 (en) Optimized bi-directional communication in an information centric network
JP6855573B2 (en) How to update the location area of the user terminal, access network entity, user terminal and core network entity
EP3079313B1 (en) Data splitting method and splitter
EP4013018A2 (en) Method for transmitting stream, streaming server and streaming system
JP6427692B2 (en) Method and apparatus for providing multi-view streaming service
WO2017067391A1 (en) Data sharing method and device for virtual machines
US20180227842A1 (en) Method and system for selection of an access and mobility management function in an access network environment
JP6826207B2 (en) Routing method and equipment
US10057343B2 (en) Implementing synchronization of state information between instances of an application as well as between different applications in an efficient, scalable manner
CN104426815A (en) Flow table issuing method and system in software-defined network, open flow controller and open flow switch
WO2019237594A1 (en) Session persistence method and apparatus, and computer device and storage medium
US10367897B2 (en) Method and apparatus for releasing services in stages
JP7094276B2 (en) Communication control method and communication system
WO2013169409A1 (en) Method and apparatus for accelerating connections in a cloud network
CN108011899A (en) A kind of session establishment optimization method, device and system
CN103957159A (en) Method for determining label switched path and path computation elements
US20160323082A1 (en) Communication device and managing method
EP2775675B1 (en) Synchronization method among network devices, network device and system
CN103209195A (en) Data acquisition method, terminal and far-end device
WO2015024373A1 (en) Virtual machine communication method and device
CN105009097B (en) A message transmitting device and method
WO2016127634A1 (en) Service processing method, device and system for application program, and storage medium
CN104506622B (en) Multi-screen synchronous control method and system
WO2022188770A1 (en) Data unit processing method and apparatus, and node and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15878461

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15878461

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: CONSTATATION DE LA PERTE D'UN DROIT CONFORMEMENT A LA REGLE 112(1) CBE (OEB FORM 1205A DATE DU 11/12/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15878461

Country of ref document: EP

Kind code of ref document: A1