WO2016115787A1 - 多系统设备的数据同步方法、数据同步系统和终端 - Google Patents

多系统设备的数据同步方法、数据同步系统和终端 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
English (en)
French (fr)
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/zh
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

本发明提供了一种多系统设备的数据同步方法、系统和终端,其中,多系统设备的数据同步方法,包括:判断所述多个系统中的任一系统中的数据是否被更新;在判定所述多个系统中的任一系统中的数据被更新时,判断是否接收到系统切换指令;在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;将所述数据包发送至待切换的系统以完成数据同步过程。通过本发明的技术方案,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。

Description

多系统设备的数据同步方法、数据同步系统和终端
本申请要求于2015年01月20日提交中国专利局,申请号为201510028292.4、发明名称为“多系统设备的数据同步方法、数据同步系统和终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及数据同步技术领域,具体而言,涉及一种多系统设备的数据同步方法、一种多系统设备的数据同步系统和一种终端。
背景技术
在相关技术中,多系统设备诸如手机终端等,因为系统的使用情况而对本系统中的数据进行分别的保存,但是在系统切换过程中,数据需要通过同步机制来保证用户的使用体验,例如用户在安全系统中使用输入法后,会在安全系统的词库中进行数据更新,当用户从安全系统切换至非安全系统时,非安全系统中若无法获知安全系统中的数据更新情况,则无法为用户提供更新的数据,但是,如果设置一种数据同步机制,在每次系统间进行切换时都进行数据同步,则会占用多系统设备较大的内存,以及造成过多的功耗损失。
因此,如何设计多系统设计的数据同步方案以保证数据同步效率和功耗节约成为亟待解决的技术问题。
发明内容
本发明正是基于上述技术问题至少之一,提出了一种新的多系统设备的数据同步方案和一种终端,在任一系统有数据更新时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。
有鉴于此,本发明提出了一种多系统设备的数据同步方法,包括:判断所述多个系统中的任一系统中的数据是否被更新;在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;在判定接收到所述系 统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;将所述数据包发送至待切换的系统以完成数据同步过程。
在该技术方案中,通过在任一系统产生更新后的数据时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。
具体地,在多系统中的A系统在运行过程中,数据库诸如输入法词库、通讯录数据库、短信数据库和账户数据库等会产生一些更新后的数据,在切换至多系统中的B系统时,多系统设备产生系统切换指令,对于上述系统切换指令的处理可以有两种实施方式:
(1)以广播的形式将系统切换指令发送至包括B系统在内的所有系统(多系统设备中至少包括A系统和B系统);
(2)将系统切换指令发送至待切换的B系统。
在发送系统切换指令后,以数据包的标识信息对数据包进行打包处理,其中,标识信息包括该数据包在资源管理器中的进程名称、数据包的应用名称和数据包的属性信息中的一个或多个的任意组合。
在发送系统切换指令后,将打包后的更新后的数据发送至B系统中具备相同标识信息的数据包,并完成同步更新,其中,更新后的数据可以是A系统中更新后的数据的部分,也可以是A系统中的完整数据包,包括更新后的数据和原始数据。
在上述技术方案中,优选地,对更新后的数据进行打包处理,包括以下具体步骤:根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包。
在该技术方案中,通过根据标识信息对更新后的数据进行打包处理,使得更新后的数据具备了个异性的标识,也即在后续步骤中,将更新后的数据包发送至具备相同标识的进程中,减小了数据更新过程对多系统设备的内存占用率,保证了多系统操作的流程性,提升了用户的使用体验。
在上述技术方案中,优选地,将所述数据包发送至待切换的系统以完成数据同步过程,包括以下具体步骤:将所述数据包发送至待切换的系统中的具备 相同所述标识信息的进程中,以完成数据同步过程。
在上述技术方案中,优选地,将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,包括以下具体步骤:创建多系统间通信通道;通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
在上述技术方案中,优选地,还包括以下具体步骤:在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。
在该技术方案中,通过在判定无系统切换指令时,对更新后的数据进行缓存处理,实现了数据包的实时更新和数据更新的效率,也即在数据发生更新时保存更新后的数据,等待系统切换指令后即可立即发送最新的数据包,提高了数据同步过程的效率。
根据本发明的另一方面,还提出了一种多系统设备的数据同步系统,包括:判断单元,用于判断所述多个系统中的任一系统中的数据是否被更新;检测单元,用于在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;打包单元,用于在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;发送单元,用于将所述数据包发送至待切换的系统以完成数据同步过程。
在该技术方案中,通过在任一系统产生更新后的数据时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。
具体地,在多系统中的A系统在运行过程中,数据库诸如输入法词库、通讯录数据库、短信数据库和账户数据库等会产生一些更新后的数据,在切换至多系统中的B系统时,多系统设备产生系统切换指令,对于上述系统切换指令的处理可以有两种实施方式:
(1)以广播的形式将系统切换指令发送至包括B系统在内的所有系统(多系统设备中至少包括A系统和B系统);
(2)将系统切换指令发送至待切换的B系统。
在发送系统切换指令后,以数据包的标识信息对数据包进行打包处理,其 中,标识信息包括该数据包在资源管理器中的进程名称、数据包的应用名称和数据包的属性信息中的一个或多个的任意组合。
在发送系统切换指令后,将打包后的更新后的数据发送至B系统中具备相同标识信息的数据包,并完成同步更新,其中,更新后的数据可以是A系统中更新后的数据的部分,也可以是A系统中的完整数据包,包括更新后的数据和原始数据。
在上述技术方案中,优选地,所述打包单元还用于,根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包。
在上述技术方案中,优选地,所述发送单元还用于,将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
在上述技术方案中,优选地,还包括:创建单元,用于创建多系统间通信通道;所述发送单元,还包括:广播发送单元,用于通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
在上述技术方案中,优选地,还包括:缓存单元,用于在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。
在该技术方案中,通过在判定无系统切换指令时,对更新后的数据进行缓存处理,实现了数据包的实时更新和数据更新的效率,也即在数据发生更新时保存更新后的数据,等待系统切换指令后即可立即发送最新的数据包,提高了数据同步过程的效率。
通过以上技术方案,通过在任一系统产生更新后的数据时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。
附图说明
图1示出了根据本发明的一个实施例的多系统设备的数据同步方法的示意流程图;
图2示出了根据本发明的实施例的多系统设备的数据同步系统的示意框 图;
图3示出了根据本发明的另一个实施例的多系统设备的数据同步方法的示意流程图;
图4示出了根据本发明的另一个实施例的多系统设备的数据同步方法的示意流程图;
图5示出了根据本发明的实施例的终端的示意框图。
具体实施方式
为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明的保护范围并不受下面公开的具体实施例的限制。
图1、图3和图4示出了根据本发明的实施例的多系统设备的数据同步方法的多种实施方式。
实施例一:
如图1所示,根据本发明的实施例的实施例的多系统设备的数据同步方法,包括:步骤102,判断所述多个系统中的任一系统中的数据是否被更新;步骤104,在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;步骤106,在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;步骤108,将所述数据包发送至待切换的系统以完成数据同步过程。
在该技术方案中,通过在任一系统产生更新后的数据时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。
具体地,在多系统中的A系统在运行过程中,数据库诸如输入法词库、通讯录数据库、短信数据库和账户数据库等会产生一些更新后的数据,在切换 至多系统中的B系统时,多系统设备产生系统切换指令,对于上述系统切换指令的处理可以有两种实施方式:
(1)以广播的形式将系统切换指令发送至包括B系统在内的所有系统(多系统设备中至少包括A系统和B系统);
(2)将系统切换指令发送至待切换的B系统。
在发送系统切换指令后,以数据包的标识信息对数据包进行打包处理,其中,标识信息包括该数据包在资源管理器中的进程名称、数据包的应用名称和数据包的属性信息中的一个或多个的任意组合。
在发送系统切换指令后,将打包后的更新后的数据发送至B系统中具备相同标识信息的数据包,并完成同步更新,其中,更新后的数据可以是A系统中更新后的数据的部分,也可以是A系统中的完整数据包,包括更新后的数据和原始数据。
在上述技术方案中,优选地,对更新后的数据进行打包处理,包括以下具体步骤:根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包。
在该技术方案中,通过根据标识信息对更新后的数据进行打包处理,使得更新后的数据具备了个异性的标识,也即在后续步骤中,将更新后的数据包发送至具备相同标识的进程中,减小了数据更新过程对多系统设备的内存占用率,保证了多系统操作的流程性,提升了用户的使用体验。
在上述技术方案中,优选地,将所述数据包发送至待切换的系统以完成数据同步过程,包括以下具体步骤:将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
在上述技术方案中,优选地,将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,包括以下具体步骤:创建多系统间通信通道;通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
在上述技术方案中,优选地,检测是否接收到系统切换指令,还包括以下具体步骤:在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。
在该技术方案中,通过在判定无系统切换指令时,对更新后的数据进行缓 存处理,实现了数据包的实时更新和数据更新的效率,也即在数据发生更新时保存更新后的数据,等待系统切换指令后即可立即发送最新的数据包,提高了数据同步过程的效率。
实施例二:
如图3所示,根据本发明的实施例的实施例的多系统设备的数据同步方法,包括:步骤302,双系统间切换广播;步骤304,从非安全系统切换至安全系统;步骤306,判断核心数据是否更新,若是,则执行步骤308,若否,则结束;步骤308,开启非安全系统的数据同步服务;步骤310,封装更新后的数据;步骤312,创建数据传输通道;步骤314,安全系统接收更新后的数据;步骤316,开启安全系统的数据同步服务;步骤318,安全系统进行数据解析和同步处理。
实施例三:
如图4所示,根据本发明的实施例的实施例的多系统设备的数据同步方法,包括:步骤402,双系统间切换广播;步骤404,从安全系统切换至非安全系统;步骤406,判断核心数据是否更新,若是,则执行步骤408,若否,则结束;步骤408,开启安全系统的数据同步服务;步骤410,封装更新后的数据;步骤412,创建数据传输通道;步骤414,非安全系统接收更新后的数据;步骤416,开启非安全系统的数据同步服务;步骤418,非安全系统进行数据解析和同步处理。
图2示出了根据本发明的实施例的多系统设备的数据同步系统的示意框图。
如图2所示,根据本发明的实施例的多系统设备的数据同步系统200,包括:判断单元202,用于判断所述多个系统中的任一系统中的数据是否被更新;检测单元204,用于在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;打包单元206,用于在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;发送单元208,用于将所述数据包发送至待切换的系统以完成数据同步过程。
在该技术方案中,通过在任一系统产生更新后的数据时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成 的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。
具体地,在多系统中的A系统在运行过程中,数据库诸如输入法词库、通讯录数据库、短信数据库和账户数据库等会产生一些更新后的数据,在切换至多系统中的B系统时,多系统设备产生系统切换指令,对于上述系统切换指令的处理可以有两种实施方式:
(1)以广播的形式将系统切换指令发送至包括B系统在内的所有系统(多系统设备中至少包括A系统和B系统);
(2)将系统切换指令发送至待切换的B系统。
在发送系统切换指令后,以数据包的标识信息对数据包进行打包处理,其中,标识信息包括该数据包在资源管理器中的进程名称、数据包的应用名称和数据包的属性信息中的一个或多个的任意组合。
在发送系统切换指令后,将打包后的更新后的数据发送至B系统中具备相同标识信息的数据包,并完成同步更新,其中,更新后的数据可以是A系统中更新后的数据的部分,也可以是A系统中的完整数据包,包括更新后的数据和原始数据。
在上述技术方案中,优选地,所述打包单元206还用于,根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包。
在上述技术方案中,优选地,所述发送单元208还用于,将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
在上述技术方案中,优选地,还包括:创建单元210,用于创建多系统间通信通道;所述发送单元208,还包括:广播发送单元212,用于通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
在上述技术方案中,优选地,还包括:缓存单元214,用于在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。
在该技术方案中,通过在判定无系统切换指令时,对更新后的数据进行缓存处理,实现了数据包的实时更新和数据更新的效率,也即在数据发生更新时 保存更新后的数据,等待系统切换指令后即可立即发送最新的数据包,提高了数据同步过程的效率。
图5示出了根据本发明的实施例的终端的示意框图,如图5所示,该终端5可以包括:至少一个处理器51,例如CPU,至少一个通信总线52以及存储器53;通信总线52用于实现这些组件之间的连接通信;存储器53可以是高速RAM存储器,也可以是非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。存储器53中存储一组程序代码,且处理器51用于调用存储器53中存储的程序代码,用于执行以下操作:
判断所述多个系统中的任一系统中的数据是否被更新;
在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;
在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;
将所述数据包发送至待切换的系统以完成数据同步过程。
可选的,处理器51对更新后的数据进行打包处理,包括以下具体步骤:
根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包。
又可选的,处理器51将所述数据包发送至待切换的系统以完成数据同步过程,包括以下具体步骤:
将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
另可选的,处理器51将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,包括以下具体步骤:
创建多系统间通信通道;
通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
进一步的,处理器51还执行以下步骤:
在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。
以上结合附图详细说明了本发明的技术方案,考虑到如何设计多系统设计 的数据同步方案以保证数据同步效率和功耗节约的技术问题。因此,本发明提出了一种新的多系统设备的数据同步方案和一种终端,通过在任一系统产生更新后的数据时,才在系统切换过程中进行数据同步过程,实现了多系统间的数据同步效果,另外,在数据被更新时才根据系统切换指令进行数据同步,避免了系统切换即进行数据同步造成的功耗损失,节约了多系统设备的内存,进而保证了多系统操作的流畅性,提升了用户的使用体验。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (13)

  1. 一种多系统设备的数据同步方法,所述多系统设备包括多个系统,其特征在于,所述数据同步方法包括:
    判断所述多个系统中的任一系统中的数据是否被更新;
    在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;
    在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;
    将所述数据包发送至待切换的系统以完成数据同步过程。
  2. 根据权利要求1所述的多系统设备的数据同步方法,其特征在于,对更新后的数据进行打包处理,包括以下具体步骤:
    根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包。
  3. 根据权利要求2所述的多系统设备的数据同步方法,其特征在于,将所述数据包发送至待切换的系统以完成数据同步过程,包括以下具体步骤:
    将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
  4. 根据权利要求3所述的多系统设备的数据同步方法,其特征在于,将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,包括以下具体步骤:
    创建多系统间通信通道;
    通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
  5. 根据权利要求1至4中任一项所述的多系统设备的数据同步方法,其特征在于,还包括以下步骤:
    在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。
  6. 一种多系统设备的数据同步系统,所述多系统设备包括多个系统,其特征在于,所述数据同步系统包括:
    判断单元,用于判断所述多个系统中的任一系统中的数据是否被更新;
    检测单元,用于在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;
    打包单元,用于在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;
    发送单元,用于将所述数据包发送至待切换的系统以完成数据同步过程。
  7. 根据权利要求6所述的多系统设备的数据同步系统,其特征在于,所述打包单元还用于根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包,所述发送单元还用于将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
  8. 根据权利要求7所述的多系统设备的数据同步系统,其特征在于,还包括:
    创建单元,用于创建多系统间通信通道;
    所述发送单元,还包括:
    广播发送单元,用于通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
  9. 根据权利要求6至8中任一项所述的多系统设备的数据同步系统,其特征在于,还包括:
    缓存单元,用于在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。
  10. 一种终端,所述终端包括多个系统,其特征在于,所述终端包括处理器和存储器,其中,所述存储器中存储一组程序代码,且所述处理器用于调用所述存储器中存储的程序代码,用于执行以下操作:
    判断所述多个系统中的任一系统中的数据是否被更新;
    在判定所述多个系统中的任一系统中的数据被更新时,检测是否接收到系统切换指令;
    在判定接收到所述系统切换指令时,对更新后的数据进行打包处理,以产生待同步的数据包;
    将所述数据包发送至待切换的系统以完成数据同步过程。
  11. 根据权利要求10所述的终端,其特征在于,所述处理器对更新后的 数据进行打包处理,包括以下具体步骤:
    根据所述更新后的数据的标识信息对所述更新后的数据进行打包处理,以产生待同步的数据包;
    所述处理器将所述数据包发送至待切换的系统以完成数据同步过程,包括以下具体步骤:
    将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
  12. 根据权利要求11所述的终端,其特征在于,所述处理器将所述数据包发送至待切换的系统中的具备相同所述标识信息的进程中,包括以下具体步骤:
    创建多系统间通信通道;
    通过所述通信通道将所述数据包广播发送至待切换的系统中的具备相同所述标识信息的进程中,以完成数据同步过程。
  13. 根据权利要求10至12中任一项所述的终端,其特征在于,所述处理器还执行以下步骤:
    在判定未接收到所述系统切换指令时,对所述更新后的数据进行缓存处理。
PCT/CN2015/077985 2015-01-20 2015-04-30 多系统设备的数据同步方法、数据同步系统和终端 Ceased WO2016115787A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510028292.4 2015-01-20
CN201510028292.4A CN104580734A (zh) 2015-01-20 2015-01-20 多系统设备的数据同步方法、数据同步系统和终端

Publications (1)

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

Family

ID=53095861

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/077985 Ceased WO2016115787A1 (zh) 2015-01-20 2015-04-30 多系统设备的数据同步方法、数据同步系统和终端

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334197A (zh) * 2022-08-09 2022-11-11 青岛海信移动通信技术股份有限公司 一种通讯功能变更方法、多系统终端及介质

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580734A (zh) * 2015-01-20 2015-04-29 宇龙计算机通信科技(深圳)有限公司 多系统设备的数据同步方法、数据同步系统和终端
CN105740009B (zh) * 2016-01-26 2019-09-17 青岛海信移动通信技术股份有限公司 版本升级方法及终端设备
CN106201675B (zh) * 2016-06-25 2019-10-25 依偎科技(南昌)有限公司 一种移动终端应用冻结方法及移动终端
CN106250230B (zh) * 2016-09-29 2019-10-11 宇龙计算机通信科技(深圳)有限公司 一种应用冻结的方法、装置及终端
CN106775837B (zh) * 2016-11-29 2020-08-28 北京元心科技有限公司 多系统的全局配置同步方法及装置
CN106487811B (zh) * 2016-11-29 2019-06-25 北京元心科技有限公司 多容器间通信的方法及装置
CN108401003B (zh) * 2017-02-08 2021-01-22 北京百度网讯科技有限公司 雷达数据的同步方法、装置、设备和计算机存储介质
CN107241449A (zh) * 2017-08-01 2017-10-10 珠海市魅族科技有限公司 数据同步方法及装置、手持移动终端和存储介质
CN108390989B (zh) * 2018-01-05 2021-08-27 郑州信大捷安信息技术股份有限公司 一种基于Android双系统的系统间通知同步方法
CN112583977A (zh) * 2019-09-12 2021-03-30 成都鼎桥通信技术有限公司 消息同步方法、装置及存储介质
CN112506459A (zh) * 2020-12-14 2021-03-16 成都赫尔墨斯科技股份有限公司 用于航电系统综合显示控制单元的数据同步方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477547A (zh) * 2002-08-23 2004-02-25 英业达股份有限公司 同机双系统数据转换的更新备份系统及其方法
CN102801543A (zh) * 2011-05-24 2012-11-28 中国银联股份有限公司 一种双活系统间动态数据同步的方法
CN103544057A (zh) * 2012-07-09 2014-01-29 腾讯科技(深圳)有限公司 数据业务系统的切换方法和切换系统
CN104580734A (zh) * 2015-01-20 2015-04-29 宇龙计算机通信科技(深圳)有限公司 多系统设备的数据同步方法、数据同步系统和终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477547A (zh) * 2002-08-23 2004-02-25 英业达股份有限公司 同机双系统数据转换的更新备份系统及其方法
CN102801543A (zh) * 2011-05-24 2012-11-28 中国银联股份有限公司 一种双活系统间动态数据同步的方法
CN103544057A (zh) * 2012-07-09 2014-01-29 腾讯科技(深圳)有限公司 数据业务系统的切换方法和切换系统
CN104580734A (zh) * 2015-01-20 2015-04-29 宇龙计算机通信科技(深圳)有限公司 多系统设备的数据同步方法、数据同步系统和终端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334197A (zh) * 2022-08-09 2022-11-11 青岛海信移动通信技术股份有限公司 一种通讯功能变更方法、多系统终端及介质
CN115334197B (zh) * 2022-08-09 2024-05-10 青岛海信移动通信技术有限公司 一种通讯功能变更方法、多系统终端及介质

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2016115787A1 (zh) 多系统设备的数据同步方法、数据同步系统和终端
US9203734B2 (en) Optimized bi-directional communication in an information centric network
US10587544B2 (en) Message processing method, processing server, terminal, and storage medium
JP6855573B2 (ja) ユーザ端末の位置エリアの更新方法、アクセスネットワークエンティティ、ユーザ端末およびコアネットワークエンティティ
EP3079313B1 (en) Data splitting method and splitter
EP4013018A2 (en) Method for transmitting stream, streaming server and streaming system
WO2017067391A1 (zh) 虚拟机的数据共享方法及装置
US10057343B2 (en) Implementing synchronization of state information between instances of an application as well as between different applications in an efficient, scalable manner
JP6826207B2 (ja) ルーティング方法および装置
US20180098151A1 (en) Enhanced multichannel audio interception and redirection for multimedia devices
US10367897B2 (en) Method and apparatus for releasing services in stages
CN110337829B (zh) 通信控制方法及通信系统
EP2847963A1 (en) Method and apparatus for accelerating connections in a cloud network
WO2022188770A1 (zh) 数据单元处理方法、装置、节点和存储介质
CN108011899A (zh) 一种会话建立优化方法、装置和系统
EP2775675B1 (en) Synchronization method among network devices, network device and system
US20160323082A1 (en) Communication device and managing method
CN105681158A (zh) 一种提高ip短消息投递准确性的方法、设备和系统
CN103209195A (zh) 数据获取方法、终端以及远端设备
CN105009097B (zh) 一种消息发射装置及方法
WO2022206865A1 (zh) 信息处理方法、装置、终端及网络侧设备
WO2016127634A1 (zh) 一种应用程序业务处理的方法、设备、系统及存储介质
CN104506622B (zh) 多屏同步控制方法及系统
WO2017045454A1 (zh) 一种实现终端接入的方法、装置和系统
EP2981027B1 (en) Resource management for stream reservations

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