Data transmission method and device and electronic equipment

By establishing communication pipelines between mobile terminals with different operating systems, data backup and restoration are realized, which solves the problem of difficulty in data backup and restoration between different terminals in the existing technology and improves user experience.

CN119364333APending Publication Date: 2025-01-24WONDERSHARE TECHNOLOGY (HUNAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411364534.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The prior art is difficult to backup and restore data between mobile terminals of different operating systems, affecting the user experience.

Method used

By connecting the first mobile terminal (installing iOS system) with the second mobile terminal (installation of the HarMonyOS system), the communication pipeline is established with an isolation service to achieve data backup and reducing.

Benefits of technology

It realizes data backup and restoration between different mobile terminals, improves the user experience, and overcomes the limitation of limited cloud storage space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119364333A_ABST
    Figure CN119364333A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data transmission method. The method comprises the following steps: connecting a first mobile terminal with a second mobile terminal; backing up the data of the first mobile terminal to the second mobile terminal; and / or restoring the backup data of the second mobile terminal to the first mobile terminal. According to the data transmission method provided by the embodiment of the invention, data backup and / or restoration between different mobile terminals can be realized, so that the use experience of a user is improved. The embodiment of the invention further provides a data transmission device and electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of data transmission, and in particular, to a data transmission method, device, and electronic device. Background Art

[0002] With the development of communication technology, mobile terminals are becoming more and more intelligent and have more and more functions, such as taking photos, shooting videos, and downloading music and videos from the Internet. Therefore, users' communication interactions based on mobile terminals are no longer limited to the basic functions of phone calls and text messages, and users have an increasingly strong demand for sharing data such as photos, music, and videos.

[0003] In addition, due to differences in operating systems and other reasons, the transmission of terminal data between mobile terminals is restricted, making it difficult for users to transfer and restore data between different mobile terminals, which affects the user experience. Summary of the invention

[0004] In response to the problems existing in the above-mentioned prior art, the embodiments of the present application provide a data transmission method, device, and electronic device, which can realize data backup and / or restoration between different mobile terminals, thereby improving the user experience.

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

[0006] connecting the first mobile terminal to the second mobile terminal;

[0007] backing up the data of the first mobile terminal to the second mobile terminal; and / or

[0008] The backup data of the second mobile terminal is restored to the first mobile terminal.

[0009] Furthermore, the first mobile terminal is a mobile terminal installed with an IOS system, and the second mobile terminal is a mobile terminal installed with a HarmonyOS system.

[0010] Further, backing up the data of the first mobile terminal to the second mobile terminal includes:

[0011] The second mobile terminal connects to the isolation service of the first mobile terminal;

[0012] By means of the isolation service, opening a backup service of the first mobile terminal and establishing a communication channel between the first mobile terminal and the second mobile terminal; and

[0013] The second mobile terminal receives data sent by the backup service of the first mobile terminal.

[0014] Further, the second mobile terminal connects to the isolation service of the first mobile terminal, including:

[0015] Obtaining a universal unique identification code of the first mobile terminal; and

[0016] The second mobile terminal connects to the isolation service of the first mobile terminal through the universal unique identification code of the first mobile terminal.

[0017] Further, restoring the backup data of the second mobile terminal to the first mobile terminal includes:

[0018] The second mobile terminal connects to the isolation service of the first mobile terminal;

[0019] By means of the isolation service, opening the restoration service of the first mobile terminal and establishing a communication channel between the first mobile terminal and the second mobile terminal; and

[0020] The restoration service of the first mobile terminal receives the backup data sent by the second mobile terminal.

[0021] Further, after the restoration service of the first mobile terminal receives the backup data sent by the second mobile terminal, the method further includes:

[0022] Close the communication pipe.

[0023] Further, connecting the first mobile terminal to the second mobile terminal includes:

[0024] The first mobile terminal is connected to the second mobile terminal by using an OTG connection.

[0025] In a second aspect, an embodiment of the present application further provides a data transmission device, including:

[0026] A device connection module, used to connect the first mobile terminal to the second mobile terminal;

[0027] a data backup module, configured to back up the data of the first mobile terminal to the second mobile terminal; and / or

[0028] The data restoration module is used to restore the backup data of the second mobile terminal to the first mobile terminal.

[0029] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to implement the data transmission method according to the first aspect when executing the program.

[0030] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, wherein the computer program is used to implement the data transmission method according to the first aspect above.

[0031] The embodiments of the present application bring the following beneficial effects:

[0032] In the data transmission method provided in the embodiment of the present application, after the first mobile terminal is connected to the second mobile terminal, the data of the first mobile terminal can be backed up to the second mobile terminal, and the backup data of the second mobile terminal can be restored to the first mobile terminal. Therefore, the data transmission method provided in the embodiment of the present application can realize the backup and / or restoration of data between different mobile terminals, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0034] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application;

[0035] Figure 2a and Figure 2b A schematic diagram of the connection between mobile terminals provided in an embodiment of the present application;

[0036] Figure 3 A structural block diagram of a data transmission device provided in an embodiment of the present application;

[0037] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0038] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments described in the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0040] In the specification and claims of this application and the above-mentioned drawings, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "multiple" means two or more. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to the specific circumstances.

[0041] Figure 1 FIG. 1 is a flow chart of a data transmission method according to an embodiment of the present application. Figure 1 As shown, the data transmission method of the embodiment of the present application includes the following steps:

[0042] S101: connecting a first mobile terminal to a second mobile terminal;

[0043] Specifically, see Figure 2a and Figure 2b , the first mobile terminal 100 is connected to the second mobile terminal 200 via the data line 150, so the data of the first mobile terminal 100 can be transmitted to the second mobile terminal 200 via the data line 150. The data includes text messages, voice messages, pictures, videos, files and other forms of data of the application.

[0044] S102: backing up data of the first mobile terminal to the second mobile terminal; and / or

[0045] Specifically, when the first mobile terminal 100 is connected to the second mobile terminal 200 via the data cable 150, the first mobile terminal 100 acts as a slave device of the USB (Universal Serial Bus), and the second mobile terminal 200 acts as a master device of the USB. The application on the second mobile terminal 200 calls the system API of the first mobile terminal 100 to perform a privilege escalation operation, thereby being able to access the first mobile terminal 200 as a USB slave device, and then back up the data of the first mobile terminal 100 to the second mobile terminal 200.

[0046] S103: Restoring the backup data of the second mobile terminal to the first mobile terminal;

[0047] As described above, when the first mobile terminal 100 is connected to the second mobile terminal 200 via the data line 150 , the backup data of the second mobile terminal 200 can also be restored to the first mobile terminal 100 .

[0048] Therefore, in the data transmission method provided in the embodiment of the present application, after the first mobile terminal is connected to the second mobile terminal, the data of the first mobile terminal can be backed up to the second mobile terminal, and the backup data of the second mobile terminal can be restored to the first mobile terminal. Therefore, the data transmission method provided in the embodiment of the present application can realize the backup and / or restoration of data between different mobile terminals, thereby improving the user experience.

[0049] Furthermore, in some embodiments of the present application, the first mobile terminal 100 is a mobile terminal installed with an IOS system (iPhone Operating System, Apple operating system), and the second mobile terminal 200 is a mobile terminal installed with a HarmonyOS system (Huawei Hongmeng operating system).

[0050] Specifically, mobile terminals installed with the IOS system usually store or back up data in the cloud, and the storage capacity of the cloud is limited. In the data transmission method provided in the embodiment of the present application, the mobile terminal installed with the IOS system can back up data to the mobile terminal installed with the HarmonyOS system. Therefore, the data transmission method provided in the embodiment of the present application can overcome the limitations of cloud storage space and realize data backup and / or restoration between different mobile terminals, thereby improving the user experience.

[0051] Further, in some embodiments of the present application, backing up the data of the first mobile terminal 100 to the second mobile terminal 200 includes:

[0052] The second mobile terminal 200 is connected to the isolation (Lockdown) service of the first mobile terminal 100;

[0053] By using the isolation service, opening a backup service of the first mobile terminal 100 and establishing a communication channel between the first mobile terminal 100 and the second mobile terminal 200; and

[0054] The second mobile terminal 200 receives data sent by the backup service of the first mobile terminal 100 .

[0055] Specifically, Lockdown mode is a security mode provided by Apple mobile phones, which aims to enhance security by limiting network access and device functions. When the first mobile terminal 100 is connected to the second mobile terminal 200 via a data cable 150, the first mobile terminal 100 sends a Connect Lockdown protocol (connection isolation protocol) communication packet to the IOS device through the USB channel, establishes a connection with the Lockdown service, and then transfers to the Backup service through the Lockdown service. The second mobile terminal 200 receives the data sent by the backup service of the first mobile terminal 100, such as files and directory information. The second mobile terminal 200 receives and saves all files and directory information transmitted by the first mobile terminal 100, thereby realizing data backup of the second mobile terminal 100. Therefore, the data transmission method provided in the embodiment of the present application can realize data backup and / or restoration between different mobile terminals, thereby improving the user experience.

[0056] It should be noted that the current IOS backup protocol only supports full backup. If you only need to back up a part, you can filter the backup package file in the Huawei Hongmeng system client, but the IOS device will still send the full backup to the Huawei Hongmeng system through the USB channel. After receiving it, the Huawei Hongmeng system can choose not to write it to the time disk, thereby shortening the time to write files.

[0057] Further, in some embodiments of the present application, the second mobile terminal 200 connects to the isolation service of the first mobile terminal 100, including:

[0058] Acquire a universal unique identification code of the first mobile terminal 100; and

[0059] The second mobile terminal 200 connects to the isolation service of the first mobile terminal 100 through the universal unique identification code of the first mobile terminal 100 .

[0060] Specifically, a universally unique identifier (Universally Unique Identifier, UUID) allows all elements in a distributed system to have unique identification information without the need to specify identification information through a central control terminal. Each mobile terminal has a unique universal unique identifier. When the second mobile terminal 200 needs to connect to the isolation service of the first mobile terminal 100, it is necessary to obtain the universal unique identifier of the first mobile terminal 100. The second mobile terminal 200 connects to the isolation service of the first mobile terminal 100 through the universal unique identifier of the first mobile terminal 100, and is transferred to the backup service of the first mobile terminal 100 to realize data backup of the second mobile terminal 100. Therefore, the data transmission method provided in the embodiment of the present application can realize data backup and / or restoration between different mobile terminals, thereby improving the user experience.

[0061] Further, in some embodiments of the present application, restoring the backup data of the second mobile terminal 200 to the first mobile terminal 100 includes:

[0062] The second mobile terminal 200 connects to the isolation service of the first mobile terminal 100;

[0063] By using the isolation service, opening the restoration service of the first mobile terminal 100 and establishing a communication channel between the first mobile terminal 100 and the second mobile terminal 200; and

[0064] The restoration service of the first mobile terminal 100 receives the backup data sent by the second mobile terminal 200 .

[0065] Therefore, the data transmission method provided in the embodiment of the present application can realize data backup and / or restoration between different mobile terminals through the above steps, thereby improving the user experience.

[0066] Furthermore, in some embodiments of the present application, after the restore service of the first mobile terminal 100 receives the backup data sent by the second mobile terminal 200, it also includes: closing the communication channel. The communication channel is used to transmit data between the first mobile terminal 100 and the second mobile terminal 200. When the relevant operation is completed, the communication channel needs to be closed to ensure data security.

[0067] Further, in some embodiments of the present application, connecting the first mobile terminal 100 with the second mobile terminal 200 includes:

[0068] The first mobile terminal 100 and the second mobile terminal 200 are connected by OTG connection.

[0069] Specifically, OTG (On-The-Go, plug and play) is a USB communication protocol that allows USB devices to communicate with each other without a host (such as a computer). Through the OTG function, mobile terminals such as mobile phones can directly connect to other USB devices without going through a computer. This provides more possibilities for data transmission, extended operations, etc. of mobile phones. For example, the first mobile terminal 100 can be connected to the second mobile terminal 200 via a Type-C adapter or a Lighting adapter, thereby enabling data transmission between the first mobile terminal 100 and the second mobile terminal 200.

[0070] Figure 3 2 is a block diagram of the structure of the data transmission device 200 provided in the embodiment of the present application. Figure 3 As shown, the data transmission device 200 of the embodiment of the present application includes: a device connection module 210, a data backup module 220 and a data restoration module 230, wherein:

[0071] The device connection module 210 is used to connect the first mobile terminal to the second mobile terminal;

[0072] A data backup module 220, configured to back up the data of the first mobile terminal to the second mobile terminal; and / or

[0073] The data restoration module 230 is used to restore the backup data of the second mobile terminal to the first mobile terminal.

[0074] In the data transmission device provided in the embodiment of the present application, when the first mobile terminal is connected to the second mobile terminal, the data of the first mobile terminal can be backed up to the second mobile terminal, and the backup data of the second mobile terminal can be restored to the first mobile terminal. Therefore, the data transmission method provided in the embodiment of the present application can realize the backup and / or restoration of data between different mobile terminals, thereby improving the user experience.

[0075] It should be noted that the specific implementation method of the data transmission device of the embodiment of the present application is similar to the specific implementation method of the data transmission method of the embodiment of the present application. Please refer to the description of the method part for details, and no further details will be given here.

[0076] Figure 4 Schematic diagram of the structure of an electronic device 300 according to an embodiment of the present application.

[0077] like Figure 4As shown, the electronic device 300 includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from the storage part 302 to a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The CPU 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0078] The following components are connected to the I / O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed, so that a computer program read therefrom is installed into the storage section 308 as needed.

[0079] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 309, and / or installed from a removable medium 311. When the computer program is executed by a central processing unit (CPU) 301, the above-mentioned functions defined in the electronic device of the present application are executed.

[0080] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electronic device, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0081] In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction-executing electronic device, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction-executing electronic device, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0082] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the processing receiving device, method and computer program product according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the aforementioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based electronic device that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0083] The units or modules involved in the embodiments described in this application may be implemented by software or hardware. The units or modules described may also be set in a processor, and the processor is used to implement the data transmission method when executing the program:

[0084] connecting the first mobile terminal to the second mobile terminal;

[0085] backing up the data of the first mobile terminal to the second mobile terminal; and / or

[0086] The backup data of the second mobile terminal is restored to the first mobile terminal.

[0087] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently and not be assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the data transmission method described in the present application:

[0088] connecting the first mobile terminal to the second mobile terminal;

[0089] backing up the data of the first mobile terminal to the second mobile terminal; and / or

[0090] The backup data of the second mobile terminal is restored to the first mobile terminal.

[0091] As another aspect, the present application further provides a computer program product, which may be included in the electronic device described in the above embodiment; or may exist independently without being installed in the electronic device. The above computer program product stores one or more programs, and when the above programs are used by one or more processors to execute the data transmission method described in the present application:

[0092] connecting the first mobile terminal to the second mobile terminal;

[0093] backing up the data of the first mobile terminal to the second mobile terminal; and / or

[0094] The backup data of the second mobile terminal is restored to the first mobile terminal.

[0095] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. All equivalent structural changes made by using the contents of the present application specification and drawings under the application concept of the present application, or directly / indirectly used in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A data transmission method, characterized in that: The following steps are involved: connecting the first mobile terminal to the second mobile terminal; backing up the data of the first mobile terminal to the second mobile terminal; and / or The backup data of the second mobile terminal is restored to the first mobile terminal.

2. The data transmission method according to claim 1, characterized in that: The first mobile terminal is a mobile terminal installed with an IOS system, and the second mobile terminal is a mobile terminal installed with a HarmonyOS system.

3. The data transmission method according to claim 2, characterized in that: The backing up the data of the first mobile terminal to the second mobile terminal includes: The second mobile terminal connects to the isolation service of the first mobile terminal; By means of the isolation service, opening a backup service of the first mobile terminal and establishing a communication channel between the first mobile terminal and the second mobile terminal; and The second mobile terminal receives data sent by the backup service of the first mobile terminal.

4. The data transmission method according to claim 3, characterized in that: The second mobile terminal connects to the isolation service of the first mobile terminal, including: Obtaining a universal unique identification code of the first mobile terminal; and The second mobile terminal connects to the isolation service of the first mobile terminal through the universal unique identification code of the first mobile terminal.

5. The data transmission method according to claim 2, characterized in that: The restoring the backup data of the second mobile terminal to the first mobile terminal includes: The second mobile terminal connects to the isolation service of the first mobile terminal; By means of the isolation service, opening the restoration service of the first mobile terminal and establishing a communication channel between the first mobile terminal and the second mobile terminal; and The restoration service of the first mobile terminal receives the backup data sent by the second mobile terminal.

6. The data transmission method according to claim 5, characterized in that: After the restoration service of the first mobile terminal receives the backup data sent by the second mobile terminal, the method further includes: Close the communication pipe.

7. The data transmission method according to claim 1, characterized in that: The step of connecting the first mobile terminal to the second mobile terminal includes: The first mobile terminal is connected to the second mobile terminal by using an OTG connection.

8. A data transmission device, characterized in that: include: A device connection module, used to connect the first mobile terminal to the second mobile terminal; A data backup module, used for backing up the data of the first mobile terminal to the second mobile terminal; and / or The data restoration module is used to restore the backup data of the second mobile terminal to the first mobile terminal.

9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor is configured to implement the data transmission method according to any one of claims 1 to 7 when executing the program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to implement the data transmission method according to any one of claims 1 to 7.