A data transmission method, system and related devices
Patent Information
- Application Number
- CN202510174196.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-17
- Publication Date
- 2026-08-18
AI Technical Summary
[0003]这样,虽然可以实现数据传输,但是在每次传输时,都需要选择待传输的数据和接收端,操作步骤繁琐
[0059]第六方面,本申请提供了一种计算机程序产品,包括计算机指令,该计算机指令被处理器执行时实现上述任一方面任一项可能的实现方式中的数据传输方法。
Smart Images

Figure CN122594037A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a data transmission method, system and related apparatus. Background Technology
[0002] With the continuous development of communication technology, data transmission is being used in more and more scenarios. Users can select the data to be transmitted and the receiving end in their electronic devices, and then transmit the data to the receiving end.
[0003] While this method enables data transmission, it requires selecting the data to be transmitted and the receiving end for each transmission, making the process cumbersome. Summary of the Invention
[0004] This application provides a data transmission method, system, and related apparatus, which realizes the determination of the pasting object based on the pasting area and data type, and completes the single-device and / or cross-device data transmission through copy and paste operations.
[0005] In a first aspect, this application provides a data transmission method applied to a first electronic device, the method comprising: receiving a user's first copy operation on first data and storing the first data in a first copy space, the first data including data of a first type; receiving a user's first paste operation on a first area; determining, based on the first area, that the type of the object to be pasted includes the first type; and pasting the first data in the first area.
[0006] The first copy space can be a virtual storage space pre-configured by the first electronic device, or it can be a pre-allocated physical storage space. Storing the first data in this first copy space can refer to storing the first data or a link to the first data (such as a network link, pointer, address, etc.), and the link to the first data can be used to retrieve the first data.
[0007] This simplifies the data transfer process, allowing users to transfer data through simple copy and paste operations. Furthermore, during pasting, the type of the object to be pasted can be identified based on the pasting area, and the data included in the object to be pasted can be determined based on the type of the object, thus completing the data transfer.
[0008] In one possible implementation, before storing the first data into the first copy space, the method further includes: in response to the first copy operation, determining that the first copy operation is valid based on the first data.
[0009] Using the above implementation method, if the first copy operation is determined to be valid, the first data can be stored in the first copy space based on the first copy operation. This avoids storing redundant data in the first copy space, saves memory in the first copy space, and improves the utilization rate of the first copy space.
[0010] In one possible implementation, determining the validity of the first copy operation based on the first data specifically includes: determining that no copy operation for the first data was received before the first copy operation; and determining that there is no data identical or similar to the first data in the first copy space.
[0011] By employing the above implementation method, the validity of the first copy operation can be determined by judging whether the copy operation on the first data is a continuous operation and whether the first copy space stores data that is the same as or similar to the first data. This avoids storing the same or similar data in the first copy space, saving memory in the first copy space and improving its utilization rate.
[0012] It should be noted that, in one possible implementation, data that is the same as or similar to the first data refers to data whose similarity to the first data is less than a preset similarity threshold.
[0013] In one possible implementation, storing the first data into the first copy space specifically includes: determining that the type of the first data includes a first type; and storing the first data in the first copy space based on the first type.
[0014] In this way, the first data can be stored in the first copy space based on its type, which facilitates the management of the data in the first copy space and also makes it easier to quickly find the first data based on its type during the subsequent pasting process, thus improving the data transmission efficiency.
[0015] In one possible implementation, the first copy space includes a first subspace, which is the storage space corresponding to the first type in the first copy space; storing first data in the first copy space based on the first type specifically includes: storing first data in the first subspace based on the first type.
[0016] In this way, the first data can be stored in the first subspace of the first copy space based on the type of the first data. This makes it easier to manage the data in the first copy space according to the data type, and also makes it easier to quickly find the first data from the first subspace based on the type of the first data during the subsequent pasting process, thus improving the data transmission efficiency.
[0017] It should be noted that the first subspace can be a pre-defined virtual storage space / physical storage space within the first copy space.
[0018] In one possible implementation, the method further includes: setting the priority of the first data to the highest priority, where the first priority is the highest priority among all data in the first subspace or the first copy space.
[0019] This allows you to set the priority of the first data when storing it, and then determine the object to be pasted (or a subset of the objects to be pasted) from the specified type (e.g., the first type) of data based on the priority during the subsequent pasting process.
[0020] In one possible implementation, before pasting the first data in the first area, the method further includes: determining from the first copy space that the object to be pasted includes the first data based on a first type.
[0021] In this way, if it is determined that the type of the object to be pasted corresponding to the first region includes the first type, the object to be pasted (or a subset of the objects to be pasted) can be determined from all the data of the first type stored in the first copy space based on the first type.
[0022] In one possible implementation, determining the object to be pasted from the first copy space based on the first type includes first data, specifically: determining the object to be pasted from the first copy space based on the first type includes first data, wherein the first data is the highest priority data among the first type of data stored in the first copy space.
[0023] In this way, if it is determined that the type of the object to be pasted corresponding to the first region includes the first type, the data with higher priority can be determined as the object to be pasted (or a subset of the objects to be pasted) from all the data of the first type stored in the first copy space based on the data priority.
[0024] In one possible implementation, determining that the object to be pasted from the first copy space includes first data based on a first type specifically includes: determining one or more data from the first copy space based on the first type, wherein the one or more data includes the first data; outputting a first paste prompt, wherein the first paste prompt includes a first data option, wherein the first data option corresponds to the first data; and receiving an operation from a user selecting a first data option, wherein the operation is used to indicate that the object to be pasted includes the first data.
[0025] Using the above implementation method, one or more data of a specified type can be determined from the first copy space based on the first type, and the object to be pasted (or a subset of the objects to be pasted) can be determined from the one or more data based on the user's selection. In this way, more possible choices can be provided to the user, allowing the user to select the object to paste.
[0026] In one possible implementation, determining the type of the object to be pasted as a first type based on the first region specifically includes: determining the first region type of the first region; and determining the type of the object to be pasted corresponding to the first region type as including the first type based on the correspondence between region type and pasted object type.
[0027] In this way, the type of the pasted object can be determined from the correspondence between the area of the paste operation and the type of the pasted object.
[0028] In one possible implementation, the method further includes: receiving a first input operation from a user for a second region; displaying second data in the second region in response to the first input operation; identifying the second data as a subset of the first data based on a first copy space; outputting a second paste prompt, the second paste prompt being used to ask the user whether to paste the first data; and displaying the first data in the second region upon receiving the user's operation to paste the first data.
[0029] Using the above implementation, when the user's input is detected to be a subset of any data (e.g., the first data) in the first copy space, the user can be prompted whether to paste the data. In this way, the first copy space can also support input suggestion functionality, thereby reducing input time and improving input efficiency for users in their daily information input processes.
[0030] In one possible implementation, after receiving a first copy operation from the user for the first data, the method further includes: receiving a second copy operation from the user for the first data; and in response to the second copy operation, determining that the second copy operation is invalid based on the first data.
[0031] In this way, if both the first and second copy operations target the first data, the second copy operation can be determined to be invalid, reducing redundant steps and improving copy efficiency.
[0032] In one possible implementation, after determining that the second copy operation is invalid based on the first data, the priority of the first data in the first copy space is adjusted to the highest priority among the first type of data.
[0033] In one possible implementation, before storing the first data into the first copy space, the method further includes: determining that the first data is incomplete based on the first type; and completing the first data based on the first type and the first data.
[0034] Using the above implementation method, if the first piece of data being copied is incomplete, it can be completed before storing the completed data. This allows for automatic identification and completion of incomplete data during the copying process, preventing data loss during subsequent pasting and improving data transfer efficiency.
[0035] In one possible implementation, pasting the first data in the first area specifically includes: determining that the first data is incomplete based on the first type; completing the first data based on the first type and the first data, and pasting the completed first data in the first area.
[0036] Using the above implementation method, if incomplete first data to be pasted is detected during the pasting process, the first data can be completed before pasting the completed first data. Optionally, the incomplete first data in the first copy space can also be replaced with the completed first data. In this way, incomplete data can be automatically identified and completed during the pasting process, avoiding data loss and improving data transmission efficiency.
[0037] In one possible implementation, after receiving a first copy operation from a user for the first data, the method further includes: receiving a third copy operation from a user for the third data; determining that the type of the third data includes a second type; and storing the third data in the first copy space based on the second type.
[0038] In this way, different types of data can be stored in the first copy space based on the data type, which facilitates the subsequent management of different types of data in the first copy space and the subsequent quick search of data based on type.
[0039] In one possible implementation, the method further includes: detecting that a first deletion condition is met; determining the first data to be deleted corresponding to the first deletion condition based on the correspondence between the deletion condition and the data to be deleted; and deleting the first data to be deleted from the first copy space.
[0040] Using the above implementation method, one or more specified data items can be deleted from the first copy space based on the met deletion conditions. This cleans up the data in the first copy space, preventing it from becoming full and affecting subsequent data transmission.
[0041] In one possible implementation, the deletion conditions include any one or more of the following: the first electronic device is powered on, the first electronic device is powered off, a user operation to clear the first copy space is received, the remaining memory of the first copy space is detected to be less than the remaining threshold, and the number of data of any type in the first copy space is detected to reach the number threshold corresponding to that type.
[0042] In this way, you can delete a specific single piece of data in the first copy space, or delete one or more pieces of data of a specified type in the first copy space, or delete all data in the first copy space.
[0043] In one possible implementation, receiving a user's operation to clean up the first copy space specifically includes one or more of the following: receiving a user's operation to delete specified data in the first copy space, receiving a user's operation to delete all data of the first type in the first copy space, and receiving a user's operation to delete all data in the first copy space.
[0044] In this way, the data to be deleted can be determined based on the user's actions, and the data selected by the user can be deleted.
[0045] In one possible implementation, the method further includes: establishing a communication connection with a second electronic device; outputting a first setting prompt, the first setting prompt being used to prompt the second electronic device to set permissions for the first copy space; receiving a first setting operation; and in response to the first setting operation, granting the second electronic device copy permissions for the first copy space.
[0046] In this way, the first electronic device can grant other electronic devices (such as the second electronic device) relevant permissions to the first copy space, such as copy permissions.
[0047] When the second electronic device has copy permission in the first copy space, the second electronic device can respond to the user's paste operation, determine the type of the object to be pasted based on the paste area, and determine the object to be pasted from the first copy space based on the type of the object to be pasted, thereby realizing cross-device data transmission.
[0048] Secondly, this application provides a data transmission system, including a first electronic device and a second electronic device. The first electronic device includes a first copy space and has write permissions for the first copy space. The second electronic device has copy permissions for the first copy space. The first electronic device is used to receive a first copy operation from a user for first data and store the first data into the first copy space. The first data includes data of a first type. The second electronic device is used to receive a second paste operation from a user for a third area. The second electronic device is also used to determine, based on the third area, that the type of the object to be pasted includes the first type. The second electronic device is also used to paste the first data in the third area.
[0049] Using the above implementation method, when the second electronic device has copy permission in the first copy space, the second electronic device can respond to the user's paste operation, determine the type of the object to be pasted based on the paste area, and determine the object to be pasted from the first copy space based on the type of the object to be pasted, thereby realizing cross-device data transmission.
[0050] In one possible implementation, the first electronic device is further configured to establish a communication connection with the second electronic device; the first electronic device is further configured to grant the second electronic device copying permissions to the first copy space.
[0051] In this way, the first electronic device can grant other electronic devices (such as the second electronic device) relevant permissions to the first copy space, such as copy permissions.
[0052] In another possible implementation, the first electronic device can also be used to grant the second electronic device other permissions, such as write permissions and / or delete permissions for the first copy space.
[0053] It should be noted that, in one possible implementation, during the copying of the first data, the function of the first electronic device may also refer to the relevant functions of the copying process in any of the possible implementations of the first aspect described above. Furthermore, during the pasting process, the function of the second electronic device may also refer to the relevant functions of the pasting process in any of the possible implementations of the first aspect described above.
[0054] In another possible implementation, if the first electronic device grants the second electronic device write permission to the first copy space, the second electronic device can also be used to perform the copying process related functions in any of the possible implementations of the first aspect described above.
[0055] Thirdly, this application provides an electronic device including one or more processors and one or more memories; wherein the one or more memories are coupled to one or more processors, and the one or more memories are used to store computer instructions, and when the one or more processors execute the computer instructions, they implement the data transmission method in any possible implementation of any of the above aspects.
[0056] The electronic device may be a first electronic device in any of the possible implementations of the first and second aspects described above, or it may be a second electronic device in any of the possible implementations of the first and second aspects described above.
[0057] Fourthly, this application provides a chip system including a processing circuit and an interface circuit. The interface circuit is used to receive code instructions and transmit them to the processing circuit. The processing circuit is used to execute the code instructions to perform the data transmission method in any possible implementation of any of the above aspects.
[0058] Fifthly, this application provides a readable storage medium storing computer instructions that, when executed by a processor, implement the data transmission method in any of the possible implementations of any of the above aspects.
[0059] Sixthly, this application provides a computer program product, including computer instructions that, when executed by a processor, implement the data transmission method in any of the possible implementations of any of the above aspects.
[0060] The beneficial effects of aspects three through six can be referenced from the beneficial effects of aspects one through two mentioned above. Attached Figure Description
[0061] Figure 1AThis application provides a schematic diagram of the system architecture of a data transmission system.
[0062] Figure 1B This application provides a schematic diagram of the system architecture of a data transmission system.
[0063] Figures 2A-2E A schematic diagram of the device configuration of a set of electronic devices provided in the embodiments of this application;
[0064] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0065] Figure 4A A schematic diagram of the data transmission method provided in this application embodiment;
[0066] Figure 4B This application provides a schematic diagram illustrating the logic of writing or reading data into a copy space A1.
[0067] Figure 4C This application provides a schematic diagram illustrating the steps of a copying process in an embodiment of the present application.
[0068] Figure 4D This application provides a schematic diagram illustrating the steps of a pasting process.
[0069] Figure 5A This is a schematic diagram of the copying process in a data transmission method provided in an embodiment of this application;
[0070] Figure 5B A schematic diagram illustrating the types of copying operations provided in this application embodiment;
[0071] Figure 5C A schematic diagram of a storage procedure for storing data in copy space A1 based on type, provided as an embodiment of this application;
[0072] Figure 6A This application provides a schematic flowchart of a method for determining whether a copying operation is valid.
[0073] Figure 6B This application provides a schematic diagram of a storage method for data of the same type in a copy space A1, as illustrated in an embodiment of the present application.
[0074] Figure 6C This is a modified document storage diagram provided as an embodiment of the present application;
[0075] Figure 7A A flowchart illustrating the process of identifying copied data types is provided for an embodiment of this application;
[0076] Figure 7BA schematic diagram illustrating the correspondence between file types and file extensions provided in this application embodiment;
[0077] Figure 7C A set of schematic diagrams illustrating a type-based data storage method in copy space A1 provided for embodiments of this application;
[0078] Figure 8 This is a schematic diagram of the pasting process of a data transmission method provided in an embodiment of this application;
[0079] Figure 9 This application provides a schematic diagram of a process for determining a paste object from a copy space A1 based on the type of the paste object in an embodiment of the present application.
[0080] Figure 10 This application provides a schematic diagram of a process for determining a paste object from a copy space A1 based on the type of the paste object in an embodiment of the present application.
[0081] Figure 11 A flowchart illustrating a data transmission method provided in an embodiment of this application;
[0082] Figure 12 This application provides a schematic diagram of a process for completing incomplete data during the copying process.
[0083] Figure 13A This application provides a schematic diagram of a process for completing incomplete data during the pasting process.
[0084] Figure 13B A schematic diagram illustrating the identification and correction methods corresponding to different types of pasted objects / pasting areas provided in the embodiments of this application;
[0085] Figure 14A This application provides a schematic diagram of a process for deleting data in copy space A1 according to an embodiment of the present application.
[0086] Figure 14B This is a schematic diagram illustrating the setting of different number thresholds for different types in an embodiment of this application;
[0087] Figure 14C This application provides a schematic diagram illustrating the changes in text storage space B3 within copy space A1 before and after text copying, as shown in the embodiments of this application.
[0088] Figure 15 This application provides a schematic diagram of a process for deleting data based on a user's deletion operation, as illustrated in an embodiment of the present application.
[0089] Figure 16 A schematic diagram of the copying process for another data transmission method provided in an embodiment of this application;
[0090] Figure 17 A schematic diagram of the pasting process for another data transmission method provided in this application embodiment;
[0091] Figure 18 This is a schematic diagram of the copying process in a data transmission method provided in an embodiment of this application;
[0092] Figure 19 This is a schematic diagram illustrating a process for associating and storing multiple data in a copy space A1, as provided in an embodiment of this application.
[0093] Figure 20 This application provides a schematic diagram of the pasting process for a data transmission method according to an embodiment of the present application;
[0094] Figure 21 This application provides a schematic diagram of a process for pasting data based on user input.
[0095] Figures 22A-22H A set of schematic diagrams illustrating the interface for cleaning up data in the copy space provided in this application embodiment;
[0096] Figures 23A-23C A set of schematic diagrams showing the interface after completing and pasting an incomplete URL, provided for embodiments of this application;
[0097] Figures 24A-24C A set of schematic diagrams showing the interface after pasting incomplete paths, provided for embodiments of this application;
[0098] Figures 25A-25C A set of schematic diagrams illustrating image upload scenarios provided in this application embodiment;
[0099] Figures 26A-26D A schematic diagram of an interface for setting permissions of an electronic device for copy space A1, provided in an embodiment of this application;
[0100] Figures 26E-26F A schematic diagram of another set of interfaces for setting permissions of electronic devices to copy space A1, provided for embodiments of this application;
[0101] Figure 27 This is a schematic diagram of the functional modules of a data transmission system provided in an embodiment of this application;
[0102] Figure 28 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of this application;
[0103] Figure 29 This is a flowchart illustrating a data transmission method provided in an embodiment of this application. Detailed Implementation
[0104] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0105] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0106] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with the user. It realizes the conversion between the internal form of information and the form that the user can accept. The user interface is source code written in a specific computer language such as Java or Extensible Markup Language (XML). The interface source code is parsed and rendered on the electronic device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of an electronic device.
[0107] The system architectures of two data transmission systems provided in the embodiments of this application are described below.
[0108] Figure 1A A schematic diagram of the system architecture of a data transmission system 10 provided in an embodiment of this application is shown.
[0109] like Figure 1A As shown, the data transmission system 10 may include an electronic device 100, and optionally, may also include an electronic device 200.
[0110] In the data transmission system 10, the electronic device 100 may include a copy space A1. The copy space A1 may be a local memory space of the electronic device 100 or an external storage space of the electronic device 100. This application does not limit it.
[0111] Electronic device 100 can receive and respond to a user's copy operation, and determine whether the copy is valid based on the data selected by the user. After determining that the copy is valid, it can identify the type of data selected by the user, and store the selected data in the copy space A1 based on that type.
[0112] In some embodiments, the electronic device 100 may also receive and respond to a user's paste operation, determine the type of the paste object based on the area of the user's paste operation, determine one or more data of that type from the copy space A1, and paste the data selected by the user or the highest priority data among the one or more data into the area selected by the user.
[0113] In some embodiments, electronic device 100 may establish a communication connection with electronic device 200. When electronic device 100 and electronic device 200 establish a communication connection, electronic device 100 may set permissions for electronic device 200 on copy space A1.
[0114] When electronic device 100 authorizes electronic device 200 to copy data from copy space A1, electronic device 200 can receive and respond to the user's paste operation, determine the type of the paste object based on the area of the user's paste operation, determine one or more data of that type from copy space A1, and paste the data selected by the user or the data with the highest priority from the one or more data into the area selected by the user.
[0115] When electronic device 100 authorizes electronic device 200 to write data to copy space A1, electronic device 200 can receive and respond to the user's copy operation, and determine whether the copy is valid based on the data selected by the user. After determining that the copy is valid, it can identify the type of data selected by the user and store the selected data in copy space A1 based on that type. Optionally, after receiving the user's copy operation, electronic device 200 can prompt the user to choose whether to write the selected data to copy space A1. If the user chooses to write the selected data to copy space A1, electronic device 200 can perform subsequent validity checks and other processes.
[0116] It should be noted that electronic device 100 can be Figure 1AThe computer shown can also be an electronic device with a display screen, such as a tablet computer, laptop computer, smartphone, or wearable device. Electronic device 200 can be... Figure 1A The tablet computer shown can also be an electronic device with a display screen, such as a computer, laptop computer, smartphone, or wearable device. This application does not limit the specific device type or form of electronic device 100 and electronic device 200.
[0117] Understandable, Figure 1A The illustrated embodiment is merely an example. In this application embodiment, the data transmission system 10 may also include more electronic devices than those in the above embodiment, and any electronic device may copy data from the copy space A1 and paste it into the area selected by the user based on the user's paste operation, provided that the electronic device 100 authorizes the copying of data from the copy space A1. This application does not limit the scope of the application.
[0118] Figure 1B A schematic diagram of the system architecture of a data transmission system 20 provided in an embodiment of this application is shown.
[0119] like Figure 1B As shown, the data transmission system 20 may include electronic device 100 and server 300, and optionally, may also include electronic device 200.
[0120] In the data transmission system 20, server 300 may include a replication space A1. Replication space A1 can be a memory space of server 300 or an external storage space of server 300, which is not limited herein. Server 300 may store the permissions of one or more electronic devices to replication space A1. For example, the permissions of electronic device 100 to replication space A1, the permissions of electronic device 200 to replication space, etc. Among these one or more electronic devices, there is an electronic device with the highest permission level, for example, electronic device 100. In this case, electronic device 100 has the highest level of permission to replication space A1, such as authorizing other electronic devices (e.g., electronic device 2000) to have permissions to replication space A1 (e.g., access, copy, write, delete, etc.). Electronic device 100 may also have access, copy, write, delete, etc. permissions to replication space A1.
[0121] During the copying process, the electronic device 100 can receive and respond to the user's copy operation, determining whether the copy operation is a continuous copy operation targeting the same data based on the data selected by the user. If the copy operation is not a continuous copy operation targeting the same data, the electronic device 100 can send the copied data to the server 300. In some embodiments, the electronic device 100 can also identify the type of the data and send the identified type to the server 300. During the pasting process, if the electronic device 100 receives the user's paste operation, it can identify the type of the pasted object based on the area of effect of the paste operation and send the type of the pasted object to the server 300. Then, the electronic device 100 can receive the pasted object sent by the server 300 and paste the pasted object into the area specified by the user.
[0122] During the copying process, server 300 can determine whether the data sent by electronic device 100 (or other electronic device with write permissions to copy space A1) is similar to the data stored in copy space A1. After determining that there is no data similar to the data in copy space A1, server 300 can add the data to the storage space corresponding to that type in copy space A1 based on the data type. It should be noted that in some embodiments, server 300 can also identify the type of data after receiving data sent by electronic device 100. In other embodiments, server 300 can also receive the data sent by electronic device 100 and the type of the data. During the pasting process, server 300 can receive the type of the pasting object sent by electronic device 100 (or other electronic device with copy permissions to copy space A1), determine the pasting object from copy space A1 based on the type of the pasting object, and send the pasting object to electronic device 100.
[0123] It should be noted that if the electronic device 200 has write permissions to the copy space A1, then in this case, the electronic device 200 can also receive and respond to the user's copy operation, determining whether to write the data to the copy space A1 based on the data copied by the user. For a detailed description, please refer to the relevant description of the electronic device 100 during the copy process; it will not be repeated here. In some other embodiments, if the electronic device 200 has copy permissions to the copy space A1 (i.e., the permission to copy data from the copy space A1), then in this case, the electronic device 200 can also receive and respond to the user's paste operation, determining the corresponding paste object from the copy space A1. For a detailed description, please refer to the relevant description of the electronic device 100 during the paste process; it will not be repeated here.
[0124] It should be noted that electronic device 100 can be Figure 1BThe computer shown can also be an electronic device with a display screen, such as a tablet computer, laptop computer, smartphone, wearable device, or in-vehicle infotainment system. Electronic device 200 can be... Figure 1B The tablet computer shown can also be a computer, laptop, smartphone, wearable device, in-vehicle system, or other electronic device with a display screen. Server 300 can be... Figure 1B The standalone server shown can also be a server cluster or a server module. This application does not limit the specific device type and form of electronic device 100, electronic device 200 and server 300.
[0125] Understandable, Figure 1B The embodiments shown are merely examples. In the embodiments of this application, the data transmission system 20 may include more electronic devices than those in the above embodiments, and the functional description of any electronic device in the data transmission system 20 can be referred to the relevant description of the electronic device 200. This application does not limit it here.
[0126] The following describes the device configuration of a set of electronic devices 100 provided in the embodiments of this application.
[0127] Figures 2A-2E This is a schematic diagram of the device configuration of a set of electronic devices 100 provided in the embodiments of this application.
[0128] like Figure 2A As shown, the electronic device 100 can be a computer 30. The computer 30 may include a monitor and a host computer. In some embodiments, the monitor and host computer may be integrated into a single unit; in other embodiments, the monitor and host computer may be two separate parts. In this case, the monitor and host computer may establish a wired / wireless communication connection and implement the functions of the computer 30 based on this connection. The monitor may include a display screen, which can be used to display data copied / pasted by the user. In some embodiments, the computer 30 may also be connected to one or more external devices, such as a mouse, keyboard, etc., through an interface to facilitate more convenient use of some functions of the computer 30. This application does not impose limitations on this.
[0129] like Figure 2BAs shown, the electronic device 100 may be a tablet computer 40. The tablet computer 40 may include a display screen for displaying data copied / pasted by the user. A touch sensor may also be disposed below the display screen for receiving user actions on the data displayed on the screen, such as copy / paste operations. The tablet computer 40 can receive and respond to user actions (e.g., copy / paste operations) and display corresponding interactive effects on the display screen. In some embodiments, the tablet computer 40 may also include one or more buttons (e.g., power button, volume buttons, etc.) for triggering the tablet computer 40 to perform specified functions (e.g., power on / off, volume adjustment, etc.).
[0130] like Figure 2C As shown, the electronic device 100 may be a laptop computer 50. The laptop computer 50 may include a display screen and a keyboard. The display screen may be used to display data copied / pasted by the user, and the keyboard may be used to trigger the laptop computer 50 to perform specific operations, such as input operations, quick copy operations, or quick paste operations. In some embodiments, the laptop computer 50 may also be connected to one or more other devices, such as a mouse, to facilitate the user's use of some functions of the computer 30. This application does not limit the scope of the application.
[0131] like Figure 2D As shown, the electronic device 100 may be a smartphone 60. The smartphone 60 may include a display screen for displaying data copied / pasted by the user. In some embodiments, a touch sensor may be disposed below the display screen for receiving user actions on the data displayed on the screen, such as copy / paste operations. In some embodiments, the smartphone 60 may also include one or more buttons (e.g., a power button, volume buttons, etc.) for triggering the smartphone 60 to perform specified functions (e.g., powering on / off, adjusting volume, etc.).
[0132] like Figure 2E As shown, the electronic device 100 can be a smartwatch 70. The smartwatch 70 may include a watch body and a watch band, wherein the connection between the watch band and the watch body can be fixed or detachable. The watch body may have a display screen, which can be used to display data copied / pasted by the user. In some embodiments, a touch sensor may also be provided below the display screen, which can be used to receive user operations on the data displayed on the display screen, such as copy / paste operations. In some embodiments, the watch body may also have one or more buttons (e.g., a crown), which can be used to trigger the smartwatch 70 to perform specific operations, such as turning on the display screen; this application does not limit the scope of the invention.
[0133] Understandable, Figures 2A-2E The embodiments shown are merely examples. In the embodiments of this application, the electronic device 100 may also be a wearable device such as a wristband, smart glasses, smart ring, or smart brooch, or other electronic devices with a display screen that are different from the above embodiments in terms of device type or form. This application does not limit the scope of the embodiments.
[0134] It should be noted that, in the embodiments of this application, the device configuration of the electronic device 200 can also refer to the above description. Figures 2A-2E The description of the device configuration of the electronic device 100 in the illustrated embodiment is provided below. Furthermore, if the data transmission system 10 or data transmission system 20 also includes one or more other electronic devices, the device configuration of those one or more electronic devices can also be referenced above. Figures 2A-2E The description of the device form of the electronic device 100 in the illustrated embodiment is not limited herein.
[0135] The hardware structure of the electronic device 100 provided in the embodiments of this application is described below.
[0136] Figure 3 This illustration shows a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of this application.
[0137] Electronic device 100 may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device and / or smart city device. The embodiments of this application do not impose any special restrictions on the specific type of electronic device.
[0138] Electronic device 100 may include a processor 110, internal memory 121, charging management module 140, power management module 141, battery 142, wireless communication module 160, display screen 194, etc. Optionally, electronic device 100 may also include one or more of the following: external memory interface 120, universal serial bus (USB) interface 130, mobile communication module 150, antenna 1, antenna 2, audio module 170, sensor module 180, button 190, motor 191, indicator 192, camera 193, etc. Sensor module 180 may include a touch sensor 180K, etc. Optionally, sensor module 180 may also include one or more of the following: gyroscope sensor, magnetic sensor, accelerometer, pressure sensor, barometric pressure sensor, distance sensor, proximity sensor, fingerprint sensor, temperature sensor, ambient light sensor, bone conduction sensor, etc.
[0139] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0140] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0141] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0142] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0143] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0144] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0145] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0146] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.
[0147] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0148] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0149] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0150] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0151] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0152] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, frequency modulate and amplify them, and then convert them into electromagnetic waves for radiation via antenna 2.
[0153] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0154] In some embodiments, the electronic device 100 implements display functions via a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU performs mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0155] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), or it can be manufactured using organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), minimized LEDs, microLEDs, micro-OLEDs, quantum dot light-emitting diodes (QLEDs), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0156] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM). The RAM can be directly read and written by the processor 110 and can be used to store executable programs (e.g., machine instructions) of the operating system or other running programs, as well as user and application data. The NVM can also store executable programs and user and application data, and can be pre-loaded into the RAM for direct read and write operations by the processor 110.
[0157] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.
[0158] Electronic device 100 can implement audio functions through audio module 170 and application processor, such as making calls, playing music, and recording audio. Audio module 170 may include speaker 170A and microphone 170C. Optionally, audio module 170 may also include one or more of the following: receiver 170B, headphone jack, etc.
[0159] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0160] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
[0161] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
[0162] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0163] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0164] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.
[0165] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
[0166] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0167] It should be noted that, in this embodiment, the hardware structure of the electronic device 200 can also refer to the above description. Figure 3 The illustrated embodiment shows the hardware structure of the electronic device 100. In some embodiments, the electronic device 200 may also include components that are more complex than those described above. Figure 3 The embodiments shown may contain more or fewer devices than those described above, and this application is not limited thereto.
[0168] This application provides a data transmission method. An electronic device 100 can receive and respond to a user's operation to copy data 1. After confirming the validity of the copy operation for data 1, it can identify the type 1 of data 1 and add data 1 to the copy space A1 based on type 1. Subsequently, the electronic device 100 (or other electronic devices with copy permissions for copy space A1) can receive and respond to a user's paste operation for area 1. After determining that the type of the paste object is type 1 based on area 1, it can identify one or more data of type 1 (e.g., data 1) from the copy space A1 and paste one of these data as the paste object into area 1.
[0169] In this way, data transfer can be achieved quickly through copy and paste operations. This data transfer can be done within the same device or across devices, improving data transfer efficiency and simplifying data transfer operations.
[0170] The following describes the scheme logic of a data transmission method provided in an embodiment of this application.
[0171] Figure 4A The diagram shows a schematic diagram of the data transmission method provided in an embodiment of this application.
[0172] like Figure 4AAs shown, the data transfer method may include a copy process and a paste process. The copy process may include the following steps: copy operation, validity check, classification, and storage in copy space A1 according to type, etc.; the paste process may include the following steps: paste operation, intelligent recognition of the paste object, and pasting, etc.
[0173] The copy operation can be a touch operation (e.g., touchscreen operation), a keyboard shortcut copy key operation, or a copy operation triggered by any of the following: mouse operation, gesture operation, voice control, etc. This application does not limit the specific operation method of the copy operation. Validity judgment can be a validity judgment for this copy operation. It should be noted that the result of the validity judgment can include valid and invalid. If the validity judgment result is valid, the classification step and subsequent steps can be executed; if the validity judgment result is invalid, no further steps need to be executed. Classification can refer to identifying the data selected by the user to copy and determining the type of the data; storing it in the copy space A1 according to type means storing the data or the corresponding link in the storage space corresponding to the type of data.
[0174] It should be noted that, in this embodiment, the copy space A1 can store the data itself or links to the data (e.g., pointers, local paths, network links, etc.). These links can be used to retrieve the data. In some embodiments, if the user's copy operation targets locally stored data, the path to the local data can be stored in copy space A1 without storing the data itself. If the user's copy operation targets network-stored data, the network data itself can be stored in copy space A1. Alternatively, while maintaining a network connection, only the network link of the network data can be stored. This application does not impose any limitations on this.
[0175] The paste operation can be a touch operation (such as a touchscreen operation), an operation via a keyboard shortcut paste key, or a paste operation triggered by any of the following: mouse operation, gesture operation, voice control, etc. This application does not limit the specific operation method of the paste operation. In some embodiments, the paste operation can also be triggered by detecting that the content input by the user meets the paste conditions, etc., which is not limited here. Intelligent identification of the paste object can include multiple steps such as identifying the type of the paste object based on the effective area of the paste operation (or input operation), and determining the paste object from the copy space A1 based on the type of the paste object. Pasting can refer to pasting the paste object determined from the copy space A1 at the effective area of the user's paste operation (or input operation).
[0176] During the copying process, the entity that receives the copying operation and performs the validity check can be electronic device 100 or other electronic devices with write permissions to the copying space A1. In some embodiments, the copying space A1 is a built-in (or external) storage space of electronic device 100. In this case, the entity that performs the steps of classifying and storing data in the copying space A1 by category can be electronic device 100. In other embodiments, the copying space A1 is a built-in (or external) storage space of server 300. In this case, the entity that performs the steps of classifying and storing data in the copying space A1 by category can be server 300.
[0177] During the pasting process, the entity that performs the steps of receiving the pasting operation, intelligently identifying the pasting object, and pasting can be electronic device 100, electronic device 200, or other electronic devices with the permission to copy data from copy space A1. This application does not limit the scope of the application.
[0178] It should be noted that, in the embodiments of this application, the copy space A1 can be a virtual storage space, which can be formed by mapping one or more actual discontinuous or contiguous storage spaces.
[0179] Understandable, Figure 4A The embodiments shown are merely examples. In the embodiments of this application, the copying process and the pasting process may include more, fewer, or different steps than those in the above embodiments, and the executing entities of each step may also be different from those in the above embodiments. This application does not limit these aspects.
[0180] Figure 4B This illustration shows a logical diagram of writing or reading data into a copy space A1 according to an embodiment of this application.
[0181] like Figure 4B As shown, the visualization device may include electronic device 100 and / or electronic device 200. Optionally, it may also include more electronic devices with displays. The device types of electronic device 100 and electronic device 200 can be referred to the above. Figures 2A-3 The relevant descriptions in the illustrated embodiments will not be repeated here.
[0182] At least one electronic device in the visualization device (e.g., electronic device 100) has the permission to write data to the copy space A1, i.e., write permission; at the same time, at least one electronic device in the visualization device (e.g., electronic device 100, electronic device 200, etc.) has the permission to read data from the copy space A1 (also called copy data), i.e. copy permission.
[0183] Taking an electronic device 100 having write permission to copy space A1 as an example, the electronic device 100 can respond to one or more copy instructions to write data indicated by the copy instruction into copy space A1. These one or more copy instructions may include copy instruction 1, copy instruction 2, ..., copy instruction M, etc., where M is a positive integer greater than 2. It should be noted that any one of these copy instructions can trigger the electronic device 100 to execute the copy process. After determining that the data indicated by the copy instruction is valid, the data is written into copy space A1. It is understood that this embodiment is merely an example. In this application embodiment, if there are one or more other electronic devices in the visualization device that have write permission to copy space A1, these one or more electronic devices can also respond to copy instructions to write data indicated by the copy instruction into copy space A1. This application does not limit this.
[0184] Taking electronic device 200 having copy permission for copy space A1 as an example, electronic device 200 can respond to one or more paste commands and read the data indicated by the paste command from copy space A1. These one or more paste commands may include paste command 1, paste command 2, ..., paste command N, etc., where N is a positive integer greater than 2, and the value of N can be the same as or different from M. It should be noted that any one of these paste commands can trigger electronic device 100 to execute the paste process. After determining one or more data (including the paste object) indicated by the paste command, it reads the one or more data from copy space A1 and pastes the paste object into the designated area based on the user's operation. It is understood that this embodiment is only an example. In this application embodiment, if there are one or more other electronic devices in the visualization device that have copy permission for copy space A1, these one or more electronic devices can also respond to paste commands and read the data indicated by the paste command from copy space A1. This application does not limit this.
[0185] Understandable, Figure 4B The illustrated embodiments are merely illustrative. The visualization device can write data into the copy space A1 based on copy instructions, and can also read data from the copy space A1 through paste instructions. In the embodiments of this application, the visualization device can also execute multiple consecutive copy and / or paste processes based on multiple copy instructions and / or paste instructions. This application does not limit the scope of the application.
[0186] Figure 4C A schematic diagram illustrating the steps of a copying process provided in an embodiment of this application is shown.
[0187] like Figure 4CAs shown, the copying process may include the following steps: copying process management, copying content identification, copying content classification management, etc. Optionally, it may also include copying content cleanup and / or copying quantity threshold management, etc.
[0188] The copying process management can include identifying the copied data and determining its validity; copy content identification can refer to classifying the copied data; copy content classification management can refer to classifying, storing, and managing data in copy space A1 based on data type; and copy content cleanup can refer to deleting all or part of the data in copy space A1 when specific conditions are met. The data deleted can vary depending on the conditions met. The specific correspondence between conditions and deleted data can be found below. Figure 14A The relevant descriptions in the illustrated embodiments are not detailed here. Replication quantity threshold management can refer to setting different (or the same) storage thresholds for different types of data in replication space A1. When the amount of data of a certain type in replication space A1 reaches the preset storage threshold, the user can be prompted to delete one or more data of that type, or, by default, the lowest priority data of that type (or the oldest data of that type) can be deleted. Furthermore, the specific details of each step in the replication process can be found in the following... Figures 5A-7C The relevant descriptions in the illustrated embodiments will not be detailed here.
[0189] Understandable, Figure 4C This is just one example. In the embodiments of this application, the copying process may include more, fewer, or different steps than those in the above embodiments, and this application does not limit it.
[0190] Figure 4D The illustration shows a step diagram of a pasting process provided in an embodiment of this application.
[0191] like Figure 4D As shown, the pasting process may include the following steps: pasting type recognition, pasting object selection, etc., and optionally, it may also include pasting content modification, etc.
[0192] The steps involved include: paste type recognition (which may refer to determining the type of the paste object based on the paste area); paste object selection (which may refer to identifying one or more data items of that type from the copy space based on the paste object type, and then determining the paste object from those data items based on priority and / or user actions); and paste content correction (which may refer to completing the paste object based on its type when incompleteness is detected). For details on each step, please refer to the following... Figures 8-12 The relevant descriptions in the illustrated embodiments will not be detailed here.
[0193] Understandable, Figure 4D This is just one example. In the embodiments of this application, the pasting process may include more, fewer, or different steps than those in the above embodiments, and this application does not limit it.
[0194] According to the above Figures 4A-4D As shown in the embodiments, the data transmission method in this application may include a copy process and a paste process. The copy process and the paste process are described below.
[0195] Figure 5A The illustration shows a schematic diagram of the copying process in a data transmission method provided in an embodiment of this application.
[0196] like Figure 5A As shown, a replication process may include the following steps:
[0197] S501. Electronic device 100 receives a copy operation from the user for data 1.
[0198] For example, Figure 5B This illustration shows a type diagram of the copying operation provided in an embodiment of this application.
[0199] like Figure 5B As shown, the user's copy operation for data 1 can be a touch operation (such as a touchscreen operation), an operation via a keyboard shortcut copy key, or a copy operation triggered by any of the following methods: mouse operation, gesture operation, voice control, etc. This application does not limit the specific methods used. The object of the copy operation is the data to be copied, and the electronic device 100 can determine the data to be copied, such as data 1, based on the object of the copy operation.
[0200] Understandable, Figure 5B The embodiments shown are merely examples. In the embodiments of this application, the copying operation may also adopt a different operation type than that in the above embodiments, and this application does not limit it here.
[0201] S502. Electronic device 100 determines whether the copying operation for data 1 is valid.
[0202] In this embodiment, the validity of a single copy operation refers to the absence of data with a similarity greater than a preset similarity threshold in the copy space A1 for the copied data (e.g., data 1). If data with a similarity greater than the preset similarity threshold exists in the copy space A1, the copy operation is deemed invalid. In some embodiments, determining the validity of a single copy operation can also be referred to as determining the validity of the data copied in that operation.
[0203] In some embodiments, the specific method by which the electronic device 100 determines whether the copying operation for data 1 is valid can be referred to the following: Figure 6A The relevant descriptions in the illustrated embodiments will not be detailed here.
[0204] If the electronic device 100 determines that the copying operation for data 1 is valid, the electronic device 100 may perform the following step S503.
[0205] If the electronic device 100 determines that the copying operation for data 1 is invalid, the electronic device 100 may perform the following step S505.
[0206] S503. Electronic device 100 determines that the type of data 1 is type 1.
[0207] Electronic device 100 can have multiple data types preset.
[0208] In some embodiments, the electronic device 100 can categorize data into two types: files and non-files. The file type can be further subdivided into multiple file subcategories, such as documents, audio, video, images, folders, and custom scripts. Similarly, the non-file type can also be subdivided into multiple subcategories, such as identity information, addresses, and URLs. In this case, the electronic device 100 can first identify whether data 1 is a file, and then identify the specific type of data 1. For example, the specific method by which the electronic device 100 determines the type of data 1 can be referred to the following... Figures 7A-7B The relevant descriptions in the illustrated embodiments will not be detailed here.
[0209] S504. Electronic device 100 stores data 1 in copy space A1 based on type 1.
[0210] In some embodiments, the copy space A1 can be divided into multiple storage spaces according to preset types, and each storage space can correspond to one type. After determining that the data 1 is of type 1, the electronic device 100 can store the data 1 in the storage space corresponding to type 1 in the copy space A1. Optionally, the electronic device 100 can also set the priority of the data 1 to the highest priority under type 1 in the copy space A1.
[0211] For example, Figure 5C This illustration shows a storage procedure for storing data in copy space A1 based on type, according to an embodiment of this application.
[0212] like Figure 5C As shown, the copy space A1 can include multiple storage spaces, such as document storage space B1, image storage space B2, text storage space B3, identity information storage space B4, etc.
[0213] Once the copied data includes document 1, and the copy operation for document 1 is confirmed to be valid, copy type identification can be performed on document 1. After copy type identification, document 1 is determined to be a document, and then document 1 can be stored in document storage space B1 within copy space A1.
[0214] Once the copied data includes image 1, and the copy operation for image 1 is confirmed to be valid, copy type identification can be performed on image 1. After copy type identification, image 1 is determined to be an image, and then image 1 can be stored in image storage space B2 within copy space A1.
[0215] Once the copied data includes text 1, and the copy operation for text 1 is confirmed to be valid, copy type identification can be performed on text 1. After copy type identification, text 1 is determined to be of type text, and then text 1 can be stored in text storage space B3 within copy space A1.
[0216] Understandable, Figure 5C This is merely an illustrative example. Data can be stored in the replication space A1 based on the type of replicated data to facilitate subsequent data management and retrieval. In this embodiment, the partitioning method of the replication space A1 may differ from the above embodiment; the replication space A1 may include more advanced partitioning methods than those described above. Figure 5C The embodiments shown may have more, less, or different storage space than the embodiments described above, and this application does not limit the scope of the embodiments.
[0217] In some embodiments, after determining that the data 1 is of type 1, the electronic device 100 may further determine whether type 1 belongs to a preset type in the copy space A1. If type 1 belongs to a preset type in the copy space A1, the data 1 can be stored in the storage space corresponding to type 1 in the copy space A1; if type 1 does not belong to a preset type in the copy space A1, the data 1 can be stored in the storage space corresponding to other types in the copy space A1. Alternatively, the electronic device 100 may also allocate a storage space in the copy space A1 and use that storage space as the storage space for data of type 1. This application does not impose any limitations on this.
[0218] S505. Electronic device 100 determines not to add data 1 to copy space A1.
[0219] If the electronic device 100 determines that the copying operation for data 1 is invalid, then the electronic device 100 does not need to add data 1 to the copying space A1.
[0220] Understandable, Figure 5AThe embodiments shown are merely examples. In the embodiments of this application, the electronic device 100 may also employ more, fewer, or different copying processes than those described in the embodiments to achieve data transmission. This application does not limit the scope of the embodiments.
[0221] Using the data transmission method provided in this application, data of any type can be stored in the copy space A1 according to the data type through copying, which facilitates the management and transmission of data according to type and improves data transmission efficiency.
[0222] Figure 6A This illustration shows a flowchart of a method for determining whether a copying operation is valid, as provided in an embodiment of this application.
[0223] like Figure 6A As shown, a specific process for determining whether a copy operation is valid may include the following steps:
[0224] S601. Electronic device 100 determines whether the copy operation for data 1 is a continuous copy operation.
[0225] A continuous copy operation on the same data refers to two or more consecutive copy operations on the same data, meaning that the content copied in this copy operation is completely identical to the content copied in the previous copy operation.
[0226] If the electronic device 100 determines that the copying operation for data 1 is not a continuous copying operation, the electronic device 100 may perform the following step S602.
[0227] If the electronic device 100 determines that the copying operation for data 1 is a continuous copying operation, the electronic device 100 may perform the following step S605.
[0228] S602. Electronic device 100 determines whether there is data similar to data 1 in copy space A1.
[0229] In some embodiments, the electronic device 100 can determine whether two pieces of data are similar based on whether the similarity between them is greater than a preset similarity threshold. For example, the similarity between any two pieces of data can be calculated using any similarity calculation method such as Euclidean distance, Manhattan distance, or Chebyshev distance, and this application does not limit it.
[0230] If at least one piece of data in copy space A1 has a similarity to data 1 greater than a preset similarity threshold, then electronic device 100 can determine that there is data similar to data 1 in copy space A1. If no piece of data in copy space A1 has a similarity to data 1 greater than the preset similarity threshold, then electronic device 100 can determine that there is no data similar to data 1 in copy space A1.
[0231] If there is no data similar to data 1 in the copy space A1, the electronic device 100 can execute the following step S603.
[0232] If data similar to data 1 exists in the copy space A1, the electronic device 100 can perform the following step S604.
[0233] S603. Electronic device 100 confirms that the copying operation for data 1 is valid.
[0234] S604. Electronic device 100 determines data 2 in copy space A1 that is similar to data 1, and adjusts the priority of data 2 in copy space A1.
[0235] If data similar to data 1 exists in copy space A1, electronic device 100 can identify data 2 similar to data 1 in copy space A1, identify the type of data 2, determine the storage space corresponding to that type in copy space A1, and adjust the priority of data 2 among one or more data in that storage space.
[0236] In one possible implementation, data of the same type can be stored in a stack within a predefined storage space in the replication space A1. Thus, for data of the same type, the data written to replication space A1 first is located at the bottom of that storage space, and the data written to storage space A1 most recently is located at the top. In this case, the priority among multiple data items of the same type can be determined based on their storage location; that is, within that storage space, the closer the storage location is to the bottom, the lower the priority, and the closer the storage location is to the top, the higher the priority.
[0237] For example, Figure 6B This illustration shows a schematic diagram of a storage method for the same type of data in a copy space A1 provided by an embodiment of this application.
[0238] like Figure 6BAs shown, taking document storage space B1 within copy space A1 as an example, document storage space B1 can store documents 1, 2, and 3. Document 3 was written to document storage space B1 earliest and is located at the bottom of document storage space B1; document 1 was written to document storage space B1 latest and is located at the top of document storage space B1; document 2 was written to document storage space B1 later than document 3 but earlier than document 1, and is located in the middle of document storage space B1. In this case, among the three documents, document 1 has the highest priority, document 3 has the lowest priority, and document 2's priority is between that of document 1 and document 3.
[0239] Understandable, Figure 6B This is merely an illustrative example. In the copy space A1, the priority of data among data of the same type can be determined based on the storage location of the data in the preset storage space. In this embodiment of the application, the priority of other types of data in the copy space A1 can also be determined in a similar way. This application does not limit this.
[0240] When the priority of data is determined based on the data storage location among similar data, the electronic device 100 can adjust the priority of data 2 by adjusting the storage location of data 2.
[0241] For example, as described above Figure 6B For example, if data 2 is as described above Figure 6B In the illustrated embodiment, document 2 can be stored in document storage space B1 by the electronic device 100, swapping the storage locations of document 2 and document 1. A schematic diagram of the adjusted document storage is shown below. Figure 6C As shown.
[0242] like Figure 6C As shown, after adjusting the priority of document 2, document 2, document 1 and document 3 are stored in document storage space B1 from top to bottom. The priorities are from high to low as document 2, document 1 and document 3, that is, document 2 has the highest priority, document 3 has the lowest priority, and the priority of document 1 is between the priorities of document 2 and document 3.
[0243] Understandable, Figure 6C This is merely an illustrative example. In the copy space A1, the priority of data can be adjusted by changing the storage location of the data in the storage space corresponding to that type. In the embodiments of this application, the priority of other types of data can also be adjusted in a similar way, and this application does not limit it.
[0244] In another possible implementation, within the copy space A1, the priority of that data among data of the same type can be written simultaneously with the data being written. This allows the priority of existing data to be adjusted based on the newly written data each time new data of the same type is written. Furthermore, if it is determined that the newly copied data is similar to existing data, the priority of that similar data can be changed, increasing its priority; this application does not impose further limitations on this approach.
[0245] It is understood that the embodiments described here are merely illustrative of two ways to adjust data priority. In the embodiments of this application, the electronic device 100 may also adjust the priority of data 2 in a different way than the above embodiments, and this application does not limit it here.
[0246] In another possible implementation, if data 2 similar to data 1 is identified in the copy space A1, the electronic device 100 may also prompt the user to manually adjust the priority of data 2, and adjust the priority of data 2 based on the user's operation.
[0247] S605. Electronic device 100 determines not to operate on copy space A1.
[0248] If the electronic device 100 determines that the copying operation for data 1 is a continuous copying operation, then the electronic device 100 determines not to perform any operation on the copying space A1.
[0249] This reduces unnecessary steps, avoids writing duplicate content into the copy space A1, improves copying efficiency, and increases the utilization rate of the copy space A1.
[0250] Understandable, Figure 6A The embodiments shown are merely examples. In the embodiments of this application, the electronic device 100 may also use different methods than those described above to determine whether the copying operation is valid. This application does not limit this.
[0251] The following describes a specific method for identifying the type of copied data provided by an embodiment of this application.
[0252] Figure 7A A flowchart illustrating an embodiment of this application for identifying copy data types is shown.
[0253] like Figure 7A As shown, a specific process for identifying copied data types may include the following steps:
[0254] S701. Electronic device 100 determines whether data 1 is a file.
[0255] If data 1 is a file, then electronic device 100 can perform the following step S702.
[0256] If data 1 is not a file, then electronic device 100 may perform the following step S706.
[0257] S702. Electronic device 100 acquires data 1 file type 1.
[0258] In some embodiments, electronic device 100 may determine the file type 1 of data 1 based on the file extension of data 1.
[0259] For example, Figure 7B This illustration shows a schematic diagram of the correspondence between file types and file extensions provided in an embodiment of this application.
[0260] like Figure 7B As shown, file types can include, but are not limited to, any one or more of the following: documents, images, folders, custom scripts, etc. Specifically, the file extensions for documents can include, but are not limited to, any one or more of the following: ppt / pptx / doc / docx / xls / xlsx; the file extensions for images can include, but are not limited to, any one or more of the following: jpg / jpeg / gif / png / webp; the file extensions for folders can be folder formats; and the file extensions for custom scripts can include, but are not limited to, any one or more of the following: Sql / py / r / css, etc.
[0261] Understandable, Figure 7B The embodiments shown are merely examples. In the embodiments of this application, the file types may include more, fewer, or different file types than those in the above embodiments, and the file suffixes corresponding to different types may also include more, fewer, or different file suffixes than those in the above embodiments. This application does not impose any limitations on these embodiments.
[0262] S703. Electronic device 100 determines whether file type 1 belongs to a subclass of a preset file type.
[0263] In some embodiments, the copy space A1 may be pre-configured with subclasses of file types and non-file types.
[0264] For example, Table 1 shows a subclass of file type and a subclass of non-file type set in copy space A1 according to an embodiment of this application.
[0265] Table 1
[0266] File type Non-file type document Identity information picture address Custom script Website Folder schedule
[0267] As shown in Table 1, the copy space A1 can have multiple subclasses for file types and non-file types. For example, subclasses for file types can include any one or more of the following: document, image, custom script, folder, etc.; subclasses for non-file types can include any one or more of the following: identity information, address, URL, calendar, etc.
[0268] It is understood that the embodiments shown in Table 1 are only examples. In the embodiments of this application, the copy space A1 may also be provided with more or fewer subclasses of file types and / or subclasses of non-file types than the above embodiments. In other embodiments, file types and non-file types may not be distinguished. This application does not limit this.
[0269] After determining that the type of data 1 is file type 1, the electronic device 100 can determine whether file type 1 belongs to the preset file type based on the subclass of the file type set in the copy space A1.
[0270] If it is determined that file type 1 belongs to the preset file type, the electronic device 100 can perform the following step S704.
[0271] If it is determined that file type 1 does not belong to the preset file type, the electronic device 100 can perform the following step S705.
[0272] S704. Electronic device 100 stores data 1 in the storage space of file type 1 in copy space A1.
[0273] In this embodiment, the copy space A1 can be divided into different storage spaces according to different data types. The copy space A1 can store a preset correspondence between different types of data and storage spaces.
[0274] For example, Table 2 shows a correspondence between different types of data and storage space provided in the embodiments of this application.
[0275] Table 2
[0276]
[0277]
[0278] As shown in Table 2, the copy space A1 can be pre-divided with the correspondence between different types of data and storage spaces. For example, in the file type, data belonging to the document subclass can be stored in document storage space B1; in the file type, data belonging to the image subclass can be stored in image storage space B2; in the file type, data belonging to the custom script subclass can be stored in custom script storage space B5; in the file type, data belonging to the folder subclass can be stored in folder storage space B6; in the non-file type, data belonging to the identity information subclass can be stored in identity information storage space B4; in the non-file type, data belonging to the address subclass can be stored in address storage space B7; in the non-file type, data belonging to the URL subclass can be stored in URL storage space B8; and in the non-file type, data belonging to the schedule subclass can be stored in schedule storage space B9. Furthermore, in the file type, files that do not belong to any preset subclass can be stored in other file storage space B10; and in the non-file type, non-file data that does not belong to any preset subclass can be stored in other non-file storage space B11.
[0279] It is understood that the embodiments shown in Table 2 are only examples. In the embodiments of this application, the copy space A1 may also adopt a different division method than the embodiments shown in Table 2 above, such as including more, fewer or different types, subclasses and storage spaces than the above embodiments. This application does not limit this.
[0280] In some embodiments, after determining that file type 1 belongs to a subclass of a preset file type, the electronic device 100 can determine the storage space corresponding to file type 1 in the copy space A1 based on file type 1, and store data 1 in that storage space.
[0281] In some embodiments, when storing data 1, the priority of data 1 under file type 1 can be set.
[0282] In one possible implementation, the priority of data 1 can be determined based on its storage location within the storage space corresponding to file type 1. For example, if copy space A1 uses a stack to store data within the storage space corresponding to file type 1, then in this case, electronic device 100 can store data 1 at the top level of that storage space to ensure that the most recently stored data 1 has the highest priority under file type 1 within copy space A1.
[0283] In another possible implementation, the copy space A1 can also record the write time of data 1 while storing data 1 based on file type 1. The write time of data 1 can be used to determine the priority of data 1. Under the same type (or subclass), the earlier the data is written, the lower the priority.
[0284] In another possible implementation, copy space A1 can also set the priority of data 1 while storing data 1 based on file type 1. The priority of data 1 can be determined based on one or more factors such as the write time and pasting frequency of data 1, or it can be manually set by the user. In addition, after storing data 1, the priorities of other data under file type 1 in copy space A1 can be updated.
[0285] It is understood that the embodiments described here are merely illustrative. The copy space A1 can set the priority of data 1 while storing data 1. In the embodiments of this application, the electronic device 100 may also determine the priority of data 1 in a different manner than the above embodiments. This application does not limit this.
[0286] S705. Electronic device 100 stores data 1 in the storage space corresponding to other types of files in copy space A1.
[0287] In one possible implementation, if the file type 1 of data 1 does not belong to any of the preset subclasses under the file type, the electronic device 100 can store data 1 in the storage space corresponding to other file types. For example, the storage space corresponding to other file types can be other file storage space B10 in the embodiment shown in Table 2 above.
[0288] In another possible implementation, if file type 1 of data 1 does not belong to any of the preset subclasses under file type, the electronic device 100 can also determine whether to set up a new storage space corresponding to file type 1 in the copy space A1 according to the user's usage habits. This storage space can be allocated from the storage spaces corresponding to other file types. Specifically, if the electronic device 100 detects that the amount of data belonging to file type 1 in the data copied by the user is greater than a preset data amount threshold, the electronic device 100 can set up a new storage space corresponding to file type 1 in the copy space A1 and store data 1 in that storage space. If the electronic device 100 detects that the amount of data belonging to file type 1 in the data copied by the user is less than or equal to the preset data amount threshold, the electronic device 100 can store data 1 in the storage space corresponding to other file types. It is understood that the embodiments here are only illustrative examples. The allocation of storage spaces in the copy space A1 can be updated based on the user's usage habits. In this application embodiment, the electronic device 100 can also use different methods than those in the above embodiments to update the allocation of each storage space in the copy space A1. This application does not limit this.
[0289] It should be noted that in some embodiments, while storing data 1, the priority of data 1 can be set. The method of setting the priority of data 1 can be compared with the relevant description in step S704 above, and will not be repeated here.
[0290] S706. Electronic device 100 extracts key characters from data 1.
[0291] After determining that Data 1 is not a file, Electronic Device 100 can extract the key characters of Data 1.
[0292] Electronic device 100 may store one or more key character extraction algorithms. The data for the key character extraction algorithm may be data (e.g., data 1), and the output may be the key characters in the data. Electronic device 100 may extract the key characters of data 1 using the one or more key character extraction algorithms.
[0293] For example, if data 1 includes an address (geographic address), then the keywords of data 1 can include that address; if data 1 includes a website address, then the keywords of data 1 can include that website address; if data 1 includes an ID card number, then the keywords can include that ID card number; if data 1 includes time information (time point, time period, etc.), then the keywords can include that time information, and so on.
[0294] Key characters of data 1 can be used to identify the subclass of data 1 in non-file types.
[0295] S707. Electronic device 100 determines the non-file type 1 of data 1 based on the key characters of data 1.
[0296] Electronic device 100 can store the correspondence between some key characters and non-file type subclasses.
[0297] For example, Table 3 shows a correspondence between key characters and non-file type subclasses provided in an embodiment of this application.
[0298] Table 3
[0299] Non-file type Key characters Identity information ID number, name, gender, age, place of origin address Geographic address, house number, postal code Website Server type, domain name, directory, file name schedule Time information, itinerary
[0300] As shown in Table 3, the electronic device 100 can store the correspondence between key characters and non-file type subclasses. When data containing a key character is detected, it can be determined that the data belongs to the subclass of the non-file type corresponding to that key character. For example, the key characters corresponding to identity information can include any one or more of the following: ID number, name, gender, age, place of origin, etc.; the key characters corresponding to an address can include any one or more of the following: geographical address, house number, postal code, etc.; the key characters corresponding to a website address can include any one or more of the following: server type, domain name, directory, file name, etc.; the key characters corresponding to a schedule can include any one or more of the following: time information, itinerary.
[0301] It is understood that the embodiments shown in Table 3 are only examples. In the embodiments of this application, the electronic device 100 may also store more, fewer or different non-file type subclasses and / or key characters than the above embodiments, and each non-file type subclass may correspond to more, fewer or different key characters than the above embodiments. This application does not limit this.
[0302] In some embodiments, after extracting the key characters of data 1, the electronic device 100 can determine that the subclass of data 1 is non-file type 1 based on the correspondence between the key characters and the subclass of non-file type.
[0303] S708. Electronic device 100 determines whether non-file type 1 belongs to a preset non-file type subclass.
[0304] In some embodiments, the copy space A1 may store one or more preset subclasses of non-file types. For example, the preset subclasses of non-file types in the copy space A1 can be referred to the relevant descriptions in the embodiments shown in Tables 1-2 above, and will not be repeated here.
[0305] If non-file type 1 belongs to a preset subclass of non-file type, then electronic device 100 can perform the following step S709.
[0306] If non-file type 1 does not belong to the preset non-file type subclass, then electronic device 100 can perform the following step S710.
[0307] S709. Electronic device 100 stores data 1 in a storage space of non-file type 1 in copy space A1.
[0308] In some embodiments, after determining that non-file type 1 belongs to a preset subclass of non-file type, the electronic device 100 can determine the storage space corresponding to non-file type 1 in the copy space A1 based on non-file type 1, and store data 1 in the storage space.
[0309] In some embodiments, when storing data 1, the priority of data 1 under non-file type 1 can be set. The method for setting the priority of data 1 can be compared with the relevant description in step S704 above, and will not be repeated here.
[0310] S710. Electronic device 100 stores data 1 in the storage space corresponding to other types of non-files in copy space A1.
[0311] In one possible implementation, if the non-file type 1 of data 1 does not belong to any of the preset subclasses under non-file types, then the electronic device 100 can store data 1 in the storage space corresponding to other non-file types. For example, the storage space corresponding to other types of the file can be other non-file storage space B11 in the embodiment shown in Table 2 above.
[0312] In another possible implementation, if data 1's non-file type 1 does not belong to any of the preset subclasses under non-file types, the electronic device 100 can also determine, based on the user's usage habits, whether to set a new storage space corresponding to non-file type 1 in the copy space A1. This storage space can be allocated from the storage spaces corresponding to other non-file types. Specifically, this can be compared with the relevant description of setting the storage space for file type 1 in the copy space A1 in step S705 above, which will not be repeated here.
[0313] It should be noted that in some embodiments, while storing data 1, the priority of data 1 can be set. The method of setting the priority of data 1 can be compared with the relevant description in step S704 above, and will not be repeated here.
[0314] Understandable, Figure 7A The illustrated embodiment is merely an example. In the embodiments of this application, the electronic device 100 may also adopt the same approach as described above. Figure 7A The embodiments shown identify the type of copied data in different ways, such as identifying the type of data based solely on the content of the data, or identifying the type of data based on the content of the data, the source of the data, etc. This application does not limit the scope of the identification.
[0315] Using the data transmission method provided in this application, the type of copied data can be identified, and the data can be stored in the copy space A1 according to the type, which facilitates subsequent data management and pasting.
[0316] For example, Figure 7C This illustration shows a set of data storage methods based on type in the copy space A1 provided by an embodiment of this application.
[0317] like Figure 7CAs shown, initially, the copy space A1 can be empty, meaning no data is stored in copy space A1. Subsequently, the electronic device 100 can sequentially receive operations such as copying text 1, copying text 2, copying document 1, copying image 1, and copying folder 1. When all of the above copy operations are valid, the data in copy space A1 changes as follows:
[0318] First, after copying text 1, the electronic device 100 can write text 1 into the copy space A1 based on the text type. At this time, text 1 can be stored in the copy space A1.
[0319] After copying text 2, the electronic device 100 can write text 2 into the copy space A1 based on the text type. At this time, the copy space A1 can store text 1 and text 2, both of which are text types. The copy space A1 can manage multiple data of text types, such as setting a list of text types, which can include text 1 and text 2.
[0320] After copying document 1, electronic device 100 can write document 1 into copy space A1 based on document type. At this time, copy space A1 can store text 1, text 2, and document 1. Since document 1 is not a text type, document 1 needs to be stored in a different location than text type data, that is, in the storage space corresponding to the document type.
[0321] After copying image 1, electronic device 100 can write image 1 into copy space A1 based on image type. At this time, copy space A1 can store text 1, text 2, document 1, and image 1. Since image 1 does not belong to text type or document type, image 1 needs to be stored in a different location than the previous data, that is, in the storage space corresponding to the image type.
[0322] After copying folder 1, electronic device 100 can write folder 1 into copy space A1 based on folder type. At this time, copy space A1 can store text 1, text 2, document 1, image 1, and folder 1. Since folder 1 is neither a text type, nor a document type, nor an image type, folder 1 needs to be stored in a different location than the previous data, that is, in the storage space corresponding to the folder type.
[0323] It is understandable that the above Figure 7CThe illustrated embodiments are merely illustrative. The replication space A1 can store data based on its type, meaning different types of data can be stored in different storage spaces, while data of the same type can be stored in the same storage space, facilitating subsequent data management and retrieval. In this application embodiment, the data stored in the replication space A1 may include more, less, or different data than in the above embodiments, and this application does not impose any limitations on this.
[0324] The following describes the pasting process in a data transmission method provided in an embodiment of this application.
[0325] Figure 8 The diagram illustrates the pasting process of a data transmission method provided in an embodiment of this application.
[0326] like Figure 8 As shown, the pasting process of a data transfer method may include the following steps:
[0327] S801. Electronic device 100 receives a paste operation from the user in area 1.
[0328] In the embodiments of this application, the paste operation can be a touch operation (such as a touch screen operation), an operation via a keyboard shortcut paste key, or a paste operation triggered by any of the following methods: mouse operation, gesture operation, voice control, etc. This application does not limit the scope of the operation.
[0329] The electronic device 100 can identify the area of effect of the user's paste operation, i.e., area 1. In some embodiments, if the electronic device 100 is connected to a mouse, the area of effect of the paste operation can be the area where the mouse is hovering; in other embodiments, the area of effect of the paste operation can be the area of effect of the user's touch screen operation, etc. In other embodiments, the electronic device 100 can also determine the area of effect of the paste operation in a way different from the above embodiments, which is not limited here.
[0330] S802. Electronic device 100 identifies the type of pasted object based on region 1, including type 1.
[0331] In some embodiments, the electronic device 100 can determine the pasting area type of area 1, and based on a preset correspondence between pasting area types and pasted object types, determine that the type of the pasted object pasted in area 1 includes type 1. Here, the pasted object refers to the data pasted in area 1 after this pasting operation is performed.
[0332] In one possible implementation, the electronic device 100 can obtain information about interface elements in and near region 1 based on the interface to which region 1 belongs, and determine the pasting region type of region 1 based on the information of the aforementioned interface elements. It is understood that this embodiment is merely an example, and in this application embodiment, the electronic device 100 may also determine the pasting region type of region 1 in a different manner than the above embodiment; this application does not impose limitations here.
[0333] For example, Table 4 shows a correspondence between the type of pasting area and the type of pasting object provided in an embodiment of this application.
[0334] Table 4
[0335] Paste area type Paste object type Blank area of folder File type Document editing area Text, images, etc. Web link area Website search box Text, images, audio, etc. Identity information filling area Identity information Address field address
[0336] As shown in Table 4, the electronic device 100 can store the correspondence between paste area types and paste object types. For example, when the paste area type is a blank folder area, the paste object type can include file types (including various subclasses of file types, such as document, image, audio, video, etc.); when the paste area type is a document editing area, the paste object type can include text, image, etc., any one or more of these; when the paste area type is a web link area, the paste object type can include URLs; when the paste area type is a search box, the paste object type can include text, image, audio, etc., any one or more of these; when the paste area type is an identity information input area, the paste object type can include identity information; when the paste area type is an address input area, the paste object type can include addresses, etc.
[0337] It is understood that the embodiments shown in Table 4 are just examples. In the embodiments of this application, the electronic device 100 may also store more or fewer types of pasting areas and / or types of pasting objects than those shown in Table 4, or may store different correspondences than those shown in the embodiments. This application does not limit these possibilities.
[0338] S803. Electronic device 100 determines a paste object from copy space A1 based on type 1, the paste object including data 1.
[0339] In some embodiments, the type of the pasted object only includes type 1, that is, the type of the pasted object is type 1. In this case, the electronic device 100 can obtain one or more data from the storage space corresponding to type 1 in the copy space A1, and the type of the one or more data is all type 1. In some embodiments, the one or more data may be one or more data with higher priority in the storage space corresponding to type 1 in the copy space A1.
[0340] In some embodiments, the electronic device 100 may determine the highest priority data from one or more data of type 1 stored in the copy space A1 and use that data as the paste object.
[0341] In other embodiments, the electronic device 100 can determine multiple data items with a priority order higher than a preset priority threshold from one or more data items of type 1 stored in the copy space A1, and display these multiple data items on the display screen to determine the final paste object based on the user's subsequent selection operation. For example, if the user selects data 1, it can be determined that the paste object includes data 1.
[0342] For example, the specific process by which electronic device 100 filters multiple types 1 data from copy space A1 and determines the paste object from these multiple data can be referred to the following: Figure 9 The relevant descriptions in the illustrated embodiments.
[0343] In one possible implementation, the electronic device 100 can also determine the number of Type 1 data selected from the copy space A1 based on the specific method of the user's paste operation. For example, if the user's paste operation is a mouse operation, the electronic device 100 can determine to select multiple Type 1 data from the copy space A1 and determine the final paste object based on the user's subsequent selection operation. As another example, if the user's paste operation is a keyboard shortcut operation, or if the user's paste operation is a gesture operation or voice control operation, the electronic device 100 can determine the highest priority data as the paste object from one or more Type 1 data stored in the copy space A1. It is understood that the embodiments described here are merely illustrative. The specific operation method of the paste operation can affect the number of selected data, thereby affecting the subsequent interaction process with the user. In this application embodiment, a different paste operation than the above embodiment can be used to achieve different interaction effects, or the same paste operation as the above embodiment can be used to achieve different interaction effects. This application does not limit the specific implementation method of the paste operation and the specific relationship between the number of selected data.
[0344] In other embodiments, the type of the paste object may include multiple types, such as type 1 and one or more other types. In this case, the specific process by which the electronic device 100 determines the paste object from the copy space A1 based on the type of the paste object can be referred to the following... Figure 10 The relevant descriptions in the illustrated embodiments will not be detailed here.
[0345] S804. Electronic device 100 pastes data 1 in area 1.
[0346] After determining that the object to be pasted includes data 1, the electronic device 100 can paste data 1 at area 1.
[0347] Understandable, Figure 8 The illustrated embodiment is merely an example. In the embodiments of this application, when performing the data transmission method, the electronic device 100 may also employ methods similar to those described above. Figure 8 The different processes shown in the embodiments complete the pasting process, and this application does not limit it.
[0348] Using the data transmission method provided in this application, multiple data can be transmitted simultaneously through copy and paste operations. Furthermore, matching data can be filtered from the data to be transmitted based on the area of the paste operation, enabling users to achieve fast and efficient data transmission.
[0349] Figure 9 This illustration shows a flowchart of a process for determining a paste object from a copy space A1 based on the type of the paste object, according to an embodiment of this application.
[0350] like Figure 9 As shown, the specific process by which electronic device 100 determines the paste object from copy space A1 based on type 1 may include the following steps:
[0351] S901. Electronic device 100 determines a plurality of data from type 1 data stored in copy space A1, the plurality of data including data 1.
[0352] In some embodiments, the electronic device 100 may have a preset data filtering threshold (e.g., 3 or 5 items). When the type of the pasted object is determined to be type 1, the electronic device 100 can filter out a number of high-priority data items from the type 1 data stored in the copy space A1. The number of these data items may be less than or equal to the preset data filtering threshold. Optionally, in some embodiments, the electronic device 100 may also set different data filtering thresholds for different types, which is not limited herein.
[0353] Among the selected data of multiple types 1, data 1 may be included. In some embodiments, data 1 may be the highest priority data among the multiple data of type 1.
[0354] S902. Electronic device 100 displays paste prompt 1, paste prompt 1 includes one or more options, the one or more options including option 1 corresponding to data 1.
[0355] When multiple data points are selected, the electronic device 100 can display a paste prompt 1. The paste prompt 1 can include multiple options, each corresponding to one of the multiple data points. Furthermore, each option can trigger the electronic device 100 to designate the data corresponding to that option as the paste object.
[0356] It should be noted that, optionally, when a piece of data (e.g., data 1) is selected, the electronic device 100 may also display a paste prompt 1. In this case, paste prompt 1 may include option 1 corresponding to data 1, but not other options. In this scenario, paste prompt 1 can be used to prompt the user to choose whether to paste data 1.
[0357] It is understood that the embodiments described here are merely illustrative. The pasting prompt 1 can prompt the user to select the final pasting object. In the embodiments of this application, the pasting prompt 1 may also include more, less, or different content than the above embodiments. This application does not limit this.
[0358] S903. Electronic device 100 receives and responds to the user's selection of option 1, and determines that the pasted object includes data 1.
[0359] In some embodiments, the electronic device 100 may receive and respond to the user's operation of selecting option 1 (e.g., a click operation, a gesture operation, a voice selection operation of option 1, etc.) and determine that the pasted object includes data 1.
[0360] In one possible implementation, the number of objects to be pasted can be odd, and the electronic device 100 can stop displaying the paste prompt 1 after receiving the user's selection of option 1.
[0361] In another possible implementation, the number of objects to be pasted can be singular or plural. In this case, after receiving the user's selection of option 1, the paste prompt 1 remains displayed so that the user can subsequently choose whether to continue pasting other data. Optionally, if the electronic device 100 does not receive any user operation within a preset time period (e.g., 5 seconds or 10 seconds), the electronic device 100 can stop displaying paste prompt 1 and end the current pasting process. Alternatively, the electronic device 100 can also receive and respond to the user's operation to close paste prompt 1, stop displaying paste prompt 1, and end the current pasting process.
[0362] Understandable, Figure 9 The illustrated embodiment is merely an example. In the embodiments of this application, the electronic device 100 may also adopt the same approach as described above. Figure 9 The different methods used in the illustrated embodiments to determine the paste object from the copy space A1 are not limited herein.
[0363] By using the data transmission method provided in this application, the type of the object to be pasted can be identified based on the area of the pasting operation during the pasting process. Then, the object to be pasted can be determined from the copy space A1 based on the type of the object to be pasted in the specified area, so as to realize cross-regional data transmission and make data transmission faster and more efficient.
[0364] In some application scenarios, the type of the pasted object may not be unique. For example, when the area affected by the paste operation is the document editing area, the pasted object may include text, images, and other content. In this case, the electronic device 100 can filter out multiple types of data from the copy space A1 based on the multiple types of pasted objects, and then determine the pasted object from these multiple types of data.
[0365] For example, Figure 10 This illustration shows a flowchart of a process for determining a paste object from a copy space A1 based on the type of the paste object, according to an embodiment of this application.
[0366] like Figure 10 As shown, when the type of the pasted object is not unique, the process by which the electronic device 100 determines the specific pasted object from the copy space A1 based on the type of the pasted object may include the following steps:
[0367] S1001. Electronic device 100 determines the type of the pasted object, including type 1 and type 2.
[0368] S1002. Electronic device 100 selects one or more data from type 1 data stored in copy space A1, the one or more data including data 1.
[0369] The details of step S1002 can be found above. Figure 9 The relevant description of step S901 shown will not be repeated here.
[0370] S1003. Electronic device 100 selects one or more data from the type 2 data stored in copy space A1.
[0371] In some embodiments, the one or more data may be one or more of the highest priority data among the type 2 data stored in the replication space A1.
[0372] The specific method by which electronic device 100 selects one or more data items from the type 2 data stored in copy space A1 can also be compared with the above. Figure 9 The relevant description of step S901 shown will not be repeated here.
[0373] S1004. Electronic device 100 displays paste prompt 2, paste prompt 2 includes type option 1 and type option 2, type option 1 corresponds to type 1, and type option 2 corresponds to type 2.
[0374] In some embodiments, when the type of the object to be pasted includes multiple types, the electronic device 100 may display a paste prompt 2. The paste prompt 2 may include multiple type options, such as type option 1 and type option 2. Each type option may correspond to a type of object to be pasted; for example, type option 1 may correspond to type 1, and type option 2 may correspond to type 2. Each type option may be used to trigger the electronic device 100 to display one or more options, and each option may correspond to data of that type filtered from the copy space A1.
[0375] S1005. Electronic device 100 receives and responds to the user's operation of selecting type option 1, and displays paste prompt 1, which includes option 1 corresponding to data 1.
[0376] S1006. Electronic device 100 receives and responds to the user's selection of option 1, and determines that the pasted object includes data 1.
[0377] The specific details of steps S1005 to S1006 can be found above. Figure 9 The relevant descriptions of steps S902 to S903 shown are not repeated here.
[0378] Understandable, Figure 10 The illustrated embodiments are merely illustrative. When the type of the pasted object is not unique, multiple types of data can be filtered from the copy space A1 based on the type of the pasted object, and the pasted object can be determined based on the user's selection. In the embodiments of this application, the types of pasted objects may also include more, fewer, or different types than those in the above embodiments, and this application does not limit them.
[0379] Furthermore, in some embodiments, after filtering out multiple types of data, the electronic device 100 can further determine the highest priority data from the multiple types of data based on information such as user preferences, and use that data as the paste object. This application does not limit the specific method of determining the final paste object from the multiple types of data filtered out.
[0380] Using the data transmission method provided in this application, during the pasting process, multiple different types of data can be selected from the copy space A1 based on the area of the pasting operation for the user to choose from and paste. This not only makes data transmission more convenient and efficient, but also allows for adaptive adjustments based on actual application scenarios to improve the user experience.
[0381] In some application scenarios, electronic device 100 can also grant other electronic devices (such as electronic device 200) permissions to copy space A1, such as write permission, copy permission, view permission, or any one or more of these permissions. When electronic device 200 has permission to copy data from copy space A1, electronic device 100 can write data to copy space A1 through a copy operation; electronic device 200 can read data from copy space A1 through a paste operation, thereby achieving cross-device data transfer through copy and paste operations.
[0382] Figure 11 A schematic flowchart of a data transmission method provided in an embodiment of this application is shown.
[0383] like Figure 11 As shown, a specific process of a data transmission method may include the following steps:
[0384] S1101. Electronic device 100 establishes a communication connection with electronic device 200.
[0385] The communication connection between electronic device 100 and electronic device 200 can be a wireless communication connection or a wired communication connection, and this application does not limit it.
[0386] S1102. Electronic device 100 determines whether it is the first connection with electronic device 200.
[0387] In some embodiments, after establishing a communication connection with electronic device 200, electronic device 100 can determine whether it is the first connection with electronic device 200.
[0388] If electronic device 100 and electronic device 200 are connected for the first time, electronic device 100 can perform the following step S1103.
[0389] If electronic device 100 and electronic device 200 are not connected for the first time, electronic device 100 may perform the following step S1105.
[0390] S1103. Electronic device 100 outputs a permission setting prompt, which is used to prompt the user to set the permissions of electronic device 200 to copy space A1.
[0391] Upon initial connection, electronic device 100 needs to configure permissions for electronic device 200 on copy space A1. In this case, electronic device 100 can output a permission setting prompt, which is used to guide the user to configure permissions for electronic device 200 on copy space A1. In some embodiments, electronic device 100 can output the permission setting prompt using one or more methods such as display screen, voice broadcast, vibration, and indicator light flashing. This application does not limit the specific output method of the permission setting prompt.
[0392] Electronic device 100 can authorize electronic device 200 to have one or more permissions on copy space A1.
[0393] In one possible implementation, the copy space A1 can assign different identities to different electronic devices, and different identities have different permissions.
[0394] For example, Table 5 shows a correspondence between an identity and the permissions of a copy space A1 provided in an embodiment of this application.
[0395] Table 5
[0396]
[0397] As shown in Table 5, the replication space A1 can store the correspondence between identities and permissions of replication space A1. For example, a device with super administrator identity may have the following permissions for replication space A1: view permission, copy permission, write permission, delete permission, and authorize permission; a device with administrator identity may have the following permissions for replication space A1: view permission, copy permission, write permission, and delete permission; a device with regular user identity may have the following permissions for replication space A1: view permission, copy permission, and write permission; and a device with temporary user identity may have the following permissions for replication space A1: view permission.
[0398] It should be noted that viewing permission refers to the permission to view the data stored in copy space A1; copy permission refers to the permission to copy data from copy space A1; write permission refers to the permission to write data to copy space A1; delete permission refers to the permission to delete any one or more data in copy space A1; and authorization permission refers to the permission to set identities for other electronic devices, that is, the permission to authorize one or more permissions of copy space A1 to other electronic devices.
[0399] It is understood that the embodiments shown in Table 5 are only examples. In the embodiments of this application, the copy space A1 may also be set with more, fewer or different identities than those shown in Table 5 above, and different identities may also correspond to more, fewer or different permissions than those shown in the above embodiments. In addition, the correspondence between identities and permissions may also be different from those shown in the above embodiments. This application does not limit this.
[0400] S1104. Electronic device 100 receives and responds to the user's permission setting operation, and sets the permissions of electronic device 200 for copy space A1.
[0401] After the output permission setting prompt, electronic device 100 can receive and respond to the user's permission setting operation to determine the permissions of electronic device 200 for copy space A1.
[0402] In some embodiments, the permission setting prompt can trigger the electronic device 100 to display an identity setting interface, which can be used to set the identity of the electronic device 200 (e.g., administrator, general user, etc.). The electronic device 100 can determine the identity selected by the user based on the user's permission setting operation, and then determine and set the permissions of the electronic device 200 to the copy space A1 based on the correspondence between identity and permissions.
[0403] S1105. Electronic device 100 determines the permissions of electronic device 200 to copy space A1 based on historical permission information.
[0404] When electronic device 100 and electronic device 200 are not connected for the first time, electronic device 100 can determine the permissions of electronic device 200 to the copy space A1 based on historical permission information. This historical permission information may include authorization records of electronic device 100 to other electronic devices. Therefore, when electronic device 100 and electronic device 200 are not connected for the first time, the historical permission information may include authorization records previously granted by electronic device 100 to electronic device 200, which may include permissions previously granted by electronic device 100 to electronic device 200 to the copy space A1.
[0405] S1106. Electronic device 100 sends permissions from electronic device 200 to copy space A1.
[0406] S1107. Electronic device 200 receives a paste operation from the user for area 2.
[0407] In some embodiments, step S1107 may be a step executed after step S1106; in other embodiments, step S1107 may be a step executed synchronously with step S1101, or a step executed after step S1101. This application does not limit the execution order between step S1107 and step S1101.
[0408] S1108. Electronic device 200 determines the type of pasted object based on region 2, including type 1.
[0409] The specific method by which electronic device 200 determines the type of pasted object based on region 2 can be compared with the above. Figure 8 The relevant descriptions in step S802 shown will not be repeated here.
[0410] S1109. Electronic device 200 determines whether electronic device 200 has copy permission for copy space A1.
[0411] When electronic device 100 and electronic device 200 have established a communication connection, electronic device 200 can respond to the user's paste operation and determine whether electronic device 200 has copy permission for copy space A1.
[0412] Based on the above step S1106, the electronic device 200 can obtain the permissions of the electronic device 200 to the copy space A1, and determine whether the electronic device 200 has the permission to copy the copy space A1.
[0413] If the electronic device 200 has copy permission for copy space A1, then the electronic device 200 can perform the following step S1110.
[0414] If the electronic device 200 does not have copy permission for copy space A1, the electronic device 200 may perform the following step S1112.
[0415] S1110. Electronic device 200 determines the paste object, including data 1, from copy space A1 based on type 1.
[0416] In some embodiments, when the electronic device 200 has copying permissions for copy space A1, the electronic device 200 can determine from copy space A1 that the paste object includes data 1, and the type of data 1 is type 1. The specific method by which the electronic device 200 determines the paste object from copy space A1 based on type 1 can be referred to the above. Figure 8 Step S803 shown Figures 9-10 The relevant descriptions in the illustrated embodiments will not be repeated here.
[0417] In some embodiments, the electronic device 200 may also locally include a copy space A2. In this case, if the electronic device 200 has copy permissions for copy space A1, the electronic device 200 may also determine the paste object from copy space A1 and the local copy space A2 based on type 1, where the paste object includes data 1. For example, the electronic device 200 may filter one or more data from type 1 data stored in copy space A1, and one or more data from type 1 data stored in local copy space A2, and finally determine the paste object from all the filtered data based on the priority of each data and / or the user's operation.
[0418] S1111. Electronic device 200 pastes data 1 in area 2.
[0419] After confirming that the object to be pasted includes data 1, the electronic device 200 can paste data 1 in area 2.
[0420] S1112. Electronic device 200 determines the paste object, including data 2, from the local copy space A2 of electronic device 200 based on type 1.
[0421] In some embodiments, if the electronic device 200 has copy permission for copy space A1, the electronic device 200 may also determine the paste object from the local copy space A2 based on type 1, and the paste object includes data 1.
[0422] The specific method by which electronic device 100 determines the paste object from the local copy space A2 based on type 1 can be referred to the relevant description in step S1110 above, and will not be repeated here.
[0423] S1113. Electronic device 200 pastes data 2 in area 2.
[0424] After confirming that the object to be pasted includes data 2, the electronic device 200 can paste data 2 in area 2.
[0425] Understandable, Figure 11 The illustrated embodiment is merely an example. In the embodiments of this application, the specific process for achieving cross-device data transmission through copy-paste operations may also include more than the above. Figure 11 The embodiments shown may have more or fewer steps than those in the embodiments described above, and this application does not limit the scope of the embodiments.
[0426] The data transmission method provided in this application embodiment enables cross-device data transmission through copy and paste operations, simplifying the data transmission process, making user operations more convenient, and improving data transmission efficiency.
[0427] In some application scenarios, the data copied by the user may be incomplete, which can affect the subsequent pasting process. In some embodiments, during the copying process, the electronic device 100 (or other electronic device) can determine whether the copied data is complete based on the type of data being copied and complete any incomplete data. This avoids pasting incomplete data during the pasting process, providing a better user experience.
[0428] For example, Figure 12 This illustration shows a flowchart of a process for completing incomplete data during the copying process, as provided in an embodiment of this application.
[0429] like Figure 12 As shown, a specific process for completing incomplete data during the copying process may include the following steps:
[0430] S1201. After determining the type 1 of data 1, electronic device 100 determines whether data 1 is complete based on type 1.
[0431] In some embodiments, the electronic device 100 performs the above-described... Figure 5A After step S503 shown, it can be determined whether data 1 is complete based on type 1.
[0432] In one possible implementation, the electronic device 100 may store one or more types of data formats.
[0433] For example, Table 6 shows the correspondence between the storage type and data format of an electronic device 100 provided in an embodiment of this application.
[0434] Table 6
[0435]
[0436] As shown in Table 6, the electronic device 100 can store the correspondence between different types and data formats. For example, in non-file types, the data format corresponding to the URL subclass can be URL format F1, the data format corresponding to the address subclass can be address format F2, the data format corresponding to the identity information subclass can be identity information format F3, and the data format corresponding to the file type can be file format F4, etc.
[0437] It is understood that the embodiments shown in Table 6 are merely illustrative examples. The electronic device 100 may store different types of data formats. In the embodiments of this application, the electronic device 100 may store more, fewer, or different types and data formats than those shown in Table 6 above, and the correspondence between types and data formats may also be different. For example, under the file type, different subtypes may also correspond to different data formats, etc. This application does not limit this.
[0438] After determining the type 1 of data 1, the electronic device 100 can determine the data format corresponding to type 1 based on type 1, and determine whether data 1 is complete based on the data format.
[0439] It is understood that the embodiments described here are merely examples. In the embodiments of this application, the electronic device 100 may also use different methods than those described above to determine whether the copied data is complete. This application does not limit this.
[0440] If the electronic device 100 determines that data 1 is incomplete, the electronic device 100 may perform the following step S1202.
[0441] If the electronic device 100 determines that data 1 is complete, the electronic device 100 may perform the following step S1204.
[0442] S1202. Electronic device 100 determines data 3 based on type 1, where data 3 is the completed data 1.
[0443] In some embodiments, after determining that data 1 is incomplete, electronic device 100 can complete data 1 based on type 1 to obtain data 3.
[0444] In one possible implementation, electronic device 100 can complete data 1 based on the format of type 1. For example, if data 1 is a URL lacking a top-level domain (e.g., .com), electronic device 100 can complete data 1 based on the URL type to obtain a complete URL with the top-level domain. It is understood that the embodiments described here are merely illustrative, and data 1 can be completed based on type 1. In the embodiments of this application, the type of data 1 may also include more, fewer, or different types than those described in the above embodiments, and this application does not impose any limitations on this.
[0445] S1203. Electronic device 100 stores data 3 in copy space A1 based on type 1.
[0446] In some embodiments, if it is determined that data 1 is incomplete, after completing data 1 to obtain data 3, the electronic device 100 can store data 3 in the storage space corresponding to type 1 in the copy space A1. The specific method by which the electronic device 100 stores data 3 in the storage space corresponding to type 1 in the copy space A1 can be compared with the above description. Figure 5A The steps S504 and S504 are shown. Figure 7A The relevant descriptions in the illustrated embodiments will not be repeated here.
[0447] S1204. Electronic device 100 stores data 1 in copy space A1 based on type 1.
[0448] In some embodiments, if it is determined that data 1 is complete, the electronic device 100 may store data 1 in the storage space corresponding to type 1 in the copy space A1. The specific method by which the electronic device 100 stores data 1 in the storage space corresponding to type 1 in the copy space A1 can be referred to the above. Figure 5A The steps S504 and S504 are shown. Figure 7A The relevant descriptions in the illustrated embodiments will not be repeated here.
[0449] Understandable, Figure 12 The illustrated embodiment is merely an example. In the embodiments of this application, the electronic device 100 may also adopt the same approach as described above. Figure 12 The different methods shown in the embodiments are used to complete incomplete data during the copying process, and this application does not limit the scope of the invention.
[0450] By using the data transmission method provided in this application, in cases where the data copied by the user is incomplete, the incomplete data can be supplemented based on the data type during the copying process, avoiding the pasting of incomplete data later and providing users with a better user experience.
[0451] In some application scenarios, the data copied by the user may be incomplete, which can affect the subsequent pasting process. In other embodiments, during the pasting process, electronic device 100 (or electronic device 200, or other electronic devices) can determine whether the object to be pasted is complete based on its type and complete any incomplete data. This avoids pasting incomplete data and provides a better user experience.
[0452] Figure 13A This illustration shows a flowchart of a process for completing incomplete data during the pasting process, as provided in an embodiment of this application.
[0453] like Figure 13A As shown, a specific process for completing incomplete data during the pasting process may include the following steps:
[0454] S1301. After the electronic device 100 determines that the pasted object in the defined area 1 includes data 1, it determines whether data 1 is complete.
[0455] In some embodiments, during the pasting process, the electronic device 100 performs the above-described... Figure 8 After step S803, i.e., after confirming that the pasted object includes data 1, it is possible to determine whether data 1 is complete based on its type 1. The specific method for determining the completeness of data 1 based on type 1 can be found above. Figure 12 The relevant descriptions in step S1201 shown will not be repeated here.
[0456] If the electronic device 100 determines that data 1 is incomplete, the electronic device 100 may perform the following step S1302.
[0457] If the electronic device 100 determines that data 1 is complete, the electronic device 100 may perform the following step S1305.
[0458] S1302. Electronic device 100 determines data 3 based on type 1, where data 3 is the completed data 1.
[0459] If data 1 is incomplete, electronic device 100 can complete data 1 based on type 1 to obtain data 3.
[0460] For example, the specific method by which electronic device 100 completes data 1 based on type 1 can be referred to the above. Figure 12 The relevant descriptions in the illustrated embodiments will not be repeated here.
[0461] In other embodiments, the electronic device 100 may also modify the data 1 based on the type 1 of the pasted object and / or the type of the pasted area. For example, Figure 13B This illustration shows a schematic diagram of the identification and correction methods corresponding to different types of pasted objects / pasting areas provided in the embodiments of this application.
[0462] like Figure 13B As shown, different types of pasted objects / paste areas can correspond to different automatic content recognition and intelligent correction methods.
[0463] For example:
[0464] When the type of the object to be pasted is a file path, the electronic device 100 can automatically identify the most recently copied path and correct it (i.e., complete the incomplete path); when pasting, the corrected path is automatically pasted.
[0465] When the type of the object to be pasted is a URL (web link), the electronic device 100 can automatically identify the most recently copied URL and correct it (i.e., complete the incomplete URL); when pasting, the corrected URL is automatically pasted.
[0466] When the paste area type is a document editing area, the electronic device 100 can automatically identify the most recently copied data that can be pasted into the document, and paste it according to the context of the document, based on the time and the copied content.
[0467] When the type of the pasted object is an image, the electronic device 100 can automatically recognize special images, such as ID photos, invoices, etc.; when pasting, it can prioritize selecting relevant ID photos from the copy space (e.g., copy space A1).
[0468] When the pasting area type is an information entry area, the electronic device 100 can automatically recognize data of identity information types such as name, mobile phone number, ID card number, and social security number; when pasting, it can recognize the text that needs to be filled in and select the relevant text from the copy space (e.g., copy space A1).
[0469] Understandable, Figure 13B The embodiments shown are merely examples. In the embodiments of this application, the types of pasted objects may include more, fewer, or different types than those in the above embodiments. Alternatively, the types of pasted areas may include more, fewer, or different types of pasted areas than those in the above embodiments. This application does not impose any limitations here. Furthermore, the types of pasted objects and / or pasted areas may correspond to automatic recognition content and / or intelligent correction methods different from those in the above embodiments. This application also does not impose any limitations here.
[0470] S1303. Electronic device 100 pastes data 3 in area 1.
[0471] After obtaining the completed data 3, the electronic device 100 can paste data 3 into area 1.
[0472] S1304. Electronic device 100 replaces data 1 in copy space A1 with data 3.
[0473] Step S1304 is an optional step.
[0474] It should be noted that step S1304 can be a step executed synchronously with step S1303, or a step executed after step S1303, or a step executed before step S1303. This application does not limit the execution order of steps S1303 and S1304.
[0475] In some embodiments, after performing step S1302 and obtaining the completed data 3, the electronic device 100 can replace data 1 in the copy space A1 with data 3. Thus, when pasting data 1 again subsequently, the complete data 3 can be pasted directly without needing to complete data 1 again.
[0476] S1305. Electronic device 100 pastes data 1 in area 1.
[0477] If data 1 is complete data, then electronic device 100 can directly paste data 1 into area 1.
[0478] Understandable, Figure 13A The illustrated embodiment is merely an example. In the embodiments of this application, the electronic device 100 may also adopt the same approach as described above. Figure 13A The different methods shown in the embodiments are used to complete incomplete data during the pasting process, and this application does not limit this to any particular method.
[0479] It should be noted that in some application scenarios, such as when the electronic device 200 is performing the pasting process, the electronic device 200 can also use the same method as described above. Figure 13A Similar to the embodiments shown, incomplete data is supplemented in this application. Figure 13A The execution subject of the illustrated embodiment is not limited.
[0480] Using the data transmission method provided in this application, in cases where the data copied by the user is incomplete, the incomplete data can be supplemented based on the data type during the pasting process, avoiding the pasting of incomplete data in subsequent pastes and providing users with a better user experience.
[0481] In some application scenarios, electronic devices (such as electronic device 100) with deletion permissions for copy space A1 can delete one or more specified data items based on the correspondence between the deletion conditions and the data when the deletion conditions are detected. This allows for the management of data and storage space in copy space A1, preventing overload of copy space A1 from affecting subsequent data transmission.
[0482] For example, Figure 14A This illustration shows a flowchart of deleting data in copy space A1 according to an embodiment of this application.
[0483] like Figure 14A As shown, a specific process for deleting data in copy space A1 may include the following steps:
[0484] S1401. Electronic device 100 has detected that the deletion conditions are met.
[0485] In some embodiments, deletion conditions may include any one or more of the following: the electronic device 100 is powered off / on; the capacity of the free storage space of the copy space A1 is less than a preset capacity threshold; a user's deletion operation is received; the storage space corresponding to any type in the copy space A1 is fully occupied; the number of data of a specified type in the copy space A1 has reached a preset number threshold and the data type to be written is also the specified type; the storage space corresponding to any type in the copy space A1 has not been used for a long time (i.e., no data has been written and / or read within a preset time threshold, which may be 1 day or 12 hours, etc.), etc.
[0486] Among the above deletion conditions, some can trigger the electronic device 100 to delete all data in the copy space A1, some can trigger the electronic device 100 to delete all data of a specified type, and some can trigger the electronic device 100 to delete one or more data of a specified type. The specific correspondence between the deletion conditions and the data to be deleted can be found in the relevant description in step S1402 below, and will not be detailed here.
[0487] It is understood that the embodiments described herein are merely illustrative of some deletion conditions. In the embodiments of this application, the deletion conditions may include more, fewer, or different deletion conditions than those described in the above embodiments. In some embodiments, users may also customize the deletion conditions, which are not limited herein.
[0488] S1402. Electronic device 100 deletes one or more specified data in copy space A1 based on the correspondence between deletion conditions and the data to be deleted.
[0489] In some embodiments, the electronic device 100 may store the correspondence between different deletion conditions and the data to be deleted.
[0490] For example, Table 7 shows the correspondence between deletion conditions stored in an electronic device 100 provided in an embodiment of this application and the data to be deleted.
[0491] Table 7
[0492]
[0493] As shown in Table 7, the electronic device 100 can store the correspondence between different deletion conditions and the data to be deleted. For example, if the deletion condition is that the electronic device 100 is turned off / on, the data to be deleted can include all the data in the copy space A1; if the deletion condition is that a user's deletion operation is received, the data to be deleted can be determined based on the user's deletion operation; if the deletion condition is that the number of data of a specified type in the copy space A1 has reached a preset threshold, and the data type to be written is also of the specified type, the data to be deleted can include the lowest priority data of that type stored in the copy space A1; if the deletion condition is that the storage space corresponding to any type in the copy space A1 is fully occupied, the data to be deleted can include one or more data of that type with lower priority; if the deletion condition is that the storage space corresponding to any type in the copy space A1 has not been used for a long time (i.e., no data has been written to and / or read from), the data to be deleted can include all the data of that type, and so on.
[0494] It is understood that the embodiments shown in Table 7 are just examples. In the embodiments of this application, the deletion conditions may include more, less, or different content than the above embodiments, and the deleted data corresponding to the deletion conditions may also include more, less, or different data than the above embodiments. This application does not limit these contents here.
[0495] After detecting that any preset deletion condition is met, the electronic device 100 can determine the data to be deleted based on the correspondence between the deletion condition and the data to be deleted, and delete the deleted data from the copy space A1 to free up more storage space for the user to use later.
[0496] Understandable, Figure 14A The illustrated embodiment is merely an example. In the embodiments of this application, the electronic device 100 may also employ methods similar to those described above. Figure 14A The embodiments shown depict different methods for deleting one or more data in copy space A1, and this application does not limit this to any particular method. Furthermore, other electronic devices with deletion permissions for copy space A1 can also employ similar methods. Figure 14A The method shown is used to delete one or more data in the copy space A1, but this application does not limit the scope of the data.
[0497] Using the data transmission method provided in this application, data in the copy space A1 can be cleaned up based on deletion conditions to ensure that the copy space A1 is not overloaded, thereby providing a better user experience when users transmit data in the future.
[0498] In some application scenarios, the copy space A1 can also have the function of accidental deletion recovery, that is, the electronic device 100 (or other electronic device) can receive and respond to the user's operation to recover deleted data, and recover the data specified by the user in the copy space A1.
[0499] In one possible implementation, after receiving an operation from a user to delete one or more data items in the copy space A1, the electronic device 100 can store the one or more data items in a pre-set temporary storage area. Subsequently, if the electronic device 100 receives an operation from a user to restore deleted data, it can restore the user-specified data from the temporary storage area based on the user's operation. It should be noted that the storage space of the temporary storage area is limited; if the temporary storage area is full, the most recently deleted data from the copy space A1 can overwrite the oldest deleted data.
[0500] In another possible implementation, after receiving an operation from a user to delete one or more data in the copy space A1, the electronic device 100 sets a timer. The countdown timer can be a preset duration (e.g., 1 day, 6 hours, or 30 minutes). Before the timer countdown ends, if the electronic device 100 receives an operation from the user to restore any one of the one or more data, the electronic device 100 may not delete the data; if the electronic device 100 does not receive an operation from the user to restore any one of the one or more data when the timer countdown ends, the electronic device 100 may delete the one or more data.
[0501] It is understood that the above embodiments are merely illustrative of the fact that the copy space A1 can have the function of accidental deletion recovery. In the embodiments of this application, the electronic device 100 may also implement the accidental deletion recovery function in a different manner than the above embodiments, or may use the technology related to the accidental deletion recovery function in the prior art to implement the accidental deletion recovery function in the copy space A1. This application does not limit this.
[0502] In some application scenarios, the electronic device 100 can set a threshold number for each preset type. When the data storage volume of a certain type reaches the preset threshold number, the user can be prompted to clean up the data of that type, or one or more low-priority data under that type can be deleted by default. Alternatively, when newly written data of that type is detected, the lowest priority data under that type can be deleted and the new data can be written.
[0503] For example, Figure 14B This illustration shows a schematic diagram of setting different number thresholds for different types, provided by an embodiment of this application.
[0504] like Figure 14BAs shown, in the copy space A1, the maximum storage size for text data can be M1; the maximum storage size for image data can be M2; the maximum storage size for video data can be M3; the maximum storage size for document data can be M4; and the maximum storage size for folder data can be M5. Furthermore, the total size of the copy space A1 can be X GB. It should be noted that in some embodiments, the maximum storage size for each of the above data types in the copy space A1 can be adjusted, for example, according to user settings or user habits, etc., and this application does not limit this. In other embodiments, the size of the copy space A1 can also be adjusted according to user settings, and this application does not limit this either.
[0505] Understandable, Figure 14B This is merely an illustrative example. Different types of data may have the same or different maximum storage numbers (i.e., number thresholds) in the replication space A1. In this embodiment, the replication space A1 may also include more data than described above. Figure 14B The embodiments shown may include more, fewer, or different types from the embodiments described above. In addition, they may include a maximum number of storage units that are different from those described above. This application does not limit these types of embodiments.
[0506] For example, Figure 14C This illustration shows a change in text storage space B3 in copy space A1 before and after copying text, according to an embodiment of this application.
[0507] like Figure 14C As shown, text storage space B3 belongs to copy space A1. Before the copy operation, text storage space B3 can store text 1, text 2, and text 3. Within text storage space B3, text 1 has the highest priority, text 3 has the lowest priority, and text 2's priority is between text 3 and text 1. Furthermore, text storage space B3 can store a maximum of 3 texts; that is, a maximum of three texts can be stored in text storage space B3.
[0508] In this case, the electronic device 100 receives and responds to the user's operation of copying text 4. After determining that the copying of text 4 is valid, the electronic device 100 needs to write text 4 into the text storage space B3.
[0509] Since the maximum storage capacity of text storage space B3 is 3, at least one text needs to be deleted before text 4 can be written into text storage space B3. Therefore, electronic device 100 can delete the lowest priority text 3, and then write text 4 into text storage space B3.
[0510] After copying text 4, text storage space B3 can store text 4, text 1, and text 2. In text storage space B3, the highest priority data is text 4, the lowest priority data is text 2, and the priority of text 1 is between that of text 2 and text 4.
[0511] Understandable, Figure 14C This is merely an example. If the storage space corresponding to the newly written data type is fully occupied, the electronic device 100 can delete one or more lower-priority data of that type and then write the new data into the storage space.
[0512] This not only improves the utilization of the copy space A1, but also avoids affecting the use of other data, providing users with a better user experience.
[0513] In some application scenarios, electronic device 100 can determine the deleted data based on the user's deletion operation.
[0514] For example, Figure 15 This illustration shows a flowchart of a user-based deletion operation for deleting data, as provided in an embodiment of this application.
[0515] like Figure 15 As shown, a specific process for deleting data in copy space A1 based on a user's deletion operation may include the following steps:
[0516] S1501. Electronic device 100 receives a user's operation to open the delete function and displays a one-click cleanup control and a list view control.
[0517] In some embodiments, the electronic device 100 can enable the delete function in a settings application. In other embodiments, the electronic device 100 can also enable the delete function via specific gestures, sounds, or buttons. This application does not limit the specific operation by which the user enables the delete function.
[0518] In some embodiments, after the deletion function is enabled, a one-click cleanup control and a view list control can be displayed. The one-click cleanup control can be used to trigger the electronic device 100 to clear all data in the copy space A1; the view list control can be used to trigger the electronic device 100 to display a list of all types in the copy space A1.
[0519] S1502. Electronic device 100 receives the user's operation of selecting the one-click cleanup control and deletes all data in the copy space A1.
[0520] S1503. Electronic device 100 receives the user's operation of selecting to view the list control, and displays the type list, which includes type option 3, and type option 3 corresponds to type 3.
[0521] In some embodiments, the type list may include multiple type options, each type option corresponding to a type in copy space A1, for example, type option 3 may correspond to type 3. Each type option can be used to trigger the electronic device 100 to display one or more data of that type, and each data option may correspond to a piece of data of that type stored in copy space A1.
[0522] S1504. Electronic device 100 receives and responds to the user's operation of selecting type option 3, and displays data option 1 and type deletion control.
[0523] In some embodiments, the electronic device 100 may receive and respond to a user's selection of type option 3 by displaying a type deletion control and one or more data options, each data option corresponding to type 3 data stored in copy space A1. The one or more data options may include data option 1. The type deletion control can be used to trigger the electronic device 100 to delete all data of that type stored in copy space A1.
[0524] S1505. Electronic device 100 receives and responds to the user's operation of selecting the type deletion control, and deletes all data of type 3 in copy space A1.
[0525] S1506. Electronic device 100 receives and responds to the user's operation of selecting data option 1, and deletes the data corresponding to data option 1.
[0526] Understandable, Figure 15 The illustrated embodiment is merely an example. In this application embodiment, the electronic device 100 (or other electronic device with deletion permissions for copy space A1) may also employ the same method as described above. Figure 15 The embodiments shown employ different methods to delete data in copy space A1, and the user interaction process may also differ from the embodiments described above; therefore, this application does not impose limitations on these methods. Furthermore, in other embodiments, other electronic devices with deletion permissions for copy space A1 may also employ the methods described above. Figure 15 The illustrated embodiment deletes data in copy space A1, but this application does not limit the scope of the invention.
[0527] Using the data transmission method provided in this application, the electronic device 100 can determine the data to be deleted by the user based on the user's deletion operation, thereby improving the utilization rate of the copy space A1.
[0528] In some application scenarios, the replication space A1 can be the storage space within server 300 or the storage space in an external device connected to server 300. Electronic device 100 can have write permissions to replication space A1. In this case, electronic device 100 can receive and respond to the user's replication operation, interact with server 300, and determine whether to write the data to replication space A1 based on the data selected by the user.
[0529] For example, Figure 16 The diagram illustrates a copying process of another data transmission method provided in this application embodiment.
[0530] like Figure 16 As shown, the copying process of another data transfer method may include the following steps:
[0531] S1601. Electronic device 100 establishes a communication connection with server 300.
[0532] The communication connection between electronic device 100 and server 300 can be a wireless communication connection or a wired communication connection.
[0533] S1602. Electronic device 100 and server 300 interact to determine that electronic device 100 has the highest authority over copy space A1.
[0534] In some embodiments, the electronic device 100 may be the super administrator of the copy space A1, which has the highest privileges in the copy space A1, that is, all privileges of the copy space A1.
[0535] In one possible implementation, server 300 may have preset permission information, which may include the permissions of one or more electronic devices (e.g., electronic device 100) to the copy space A1. For example, the permission information may include the identity of each electronic device and the permissions corresponding to that identity. The correspondence between identity and permissions can be referred to the relevant description in the embodiment shown in Table 5 above, and will not be repeated here. In this case, when server 300 detects the establishment of a communication connection with electronic device 100, it can determine that electronic device 100 has the highest permission to copy space A1 based on the preset permission information.
[0536] In another possible implementation, after establishing a communication connection with the server 300, the electronic device 100 can interact with the server 300 through this connection. For example, it can send the electronic device 100's identity identifier (e.g., super administrator, etc.) to the server 300, which indicates the permissions of the electronic device 100 to the replication space A1. In this case, the server 300 can determine that the electronic device 100 has all permissions to the replication space A1 based on the identity identifier sent by the electronic device 100.
[0537] It is understood that the above embodiments are only two examples. In the embodiments of this application, the electronic device 100 and the server 300 may also adopt different methods than those in the above embodiments to determine that the electronic device 100 has the highest authority to copy space A1 through interaction. This application does not limit this.
[0538] S1603. Electronic device 100 receives a copy operation for data 1.
[0539] For details of step S1603, please refer to the above. Figure 5A The details of step S501 shown will not be repeated here.
[0540] S1604. Electronic device 100 determines whether the copy operation for data 1 is a continuous copy operation.
[0541] In response to the user's copy operation on data 1, the electronic device 100 can determine whether the copy operation on data 1 is a continuous copy operation. The specific determination method can be referred to the above. Figure 6A The details of step S601 shown will not be repeated here.
[0542] If the electronic device 100 has write permission to copy space A1: if it is determined that the current copy operation is not a continuous copy operation, the electronic device 100 may execute the following step S1605; if it is determined that the current copy operation is a continuous copy operation, the electronic device 100 may not execute the subsequent steps.
[0543] S1605. Electronic device 100 sends update instruction 1 to server 300, update instruction 1 including data 1.
[0544] In some embodiments, update instruction 1 can be used to instruct server 300 to adjust the data stored in replication space A1 based on data 1, or to adjust the priority of the data.
[0545] S1606. Server 300 determines whether there is data similar to data 1 in the replication space A1.
[0546] In response to update command 1, server 300 can determine whether there is data similar to data 1 in the replication space A1. The specific determination method can be compared with the above. Figure 6A The relevant content in step S602 shown will not be repeated here.
[0547] If it is determined that there is no data similar to data 1 in the replication space A1, then server 300 can perform the following step S1607.
[0548] If it is determined that there is data similar to data 1 (e.g., data 2) in the replication space A1, then the server 300 can perform the following step S1608.
[0549] S1607. Server 300 identifies data 1 as type 1 and stores data 1 in replication space A1 based on type 1.
[0550] The specific details of step S1607 can be compared with those described above. Figure 5A Step S504 shown, and the above Figure 7A The relevant details in the illustrated embodiments will not be repeated here.
[0551] S1608. Server 300 determines that data 2 in replication space A1 is similar to data 1, and adjusts the priority of data 2 in replication space A1.
[0552] The specific details of steps S1607-S1608 can be compared and referred to the above. Figure 6A The details of step S604 shown will not be repeated here.
[0553] Understandable, Figure 16 The illustrated embodiment is merely an example. In this application embodiment, the replication space A1 can also be set in other electronic devices or in a server cluster composed of multiple servers. This application does not limit this.
[0554] Using the data transmission method provided in this application, during the copying process, the electronic device 100 can store the copied data in the server 300 based on the user's copying operation, so that other electronic devices connected to the server 300 can use the data, thereby expanding the application scenarios and scope and providing users with better data transmission services.
[0555] In some application scenarios, the copy space A1 can be storage space within server 300 or storage space in an external device connected to server 300. Electronic device 200 can have copy permissions for copy space A1. In this case, electronic device 200 (or other electronic device with copy permissions for copy control A1) can receive and respond to the user's paste operation, interact with server 300, and filter the paste objects from copy space A1.
[0556] For example, Figure 17 The diagram illustrates the pasting process of another data transmission method provided in this application embodiment.
[0557] like Figure 17 As shown, the pasting process for another data transfer method may include the following steps:
[0558] S1701. Electronic device 200 establishes a communication connection with electronic device 100.
[0559] In one possible implementation, electronic device 200 can establish a direct communication connection with electronic device 100, such as a wireless communication connection and / or a wired communication connection.
[0560] In another possible implementation, electronic device 200 can also establish an indirect communication connection with electronic device 100 through server 300, that is, electronic device 200 can communicate with electronic device 100 through server 300.
[0561] S1702. Electronic device 200 establishes a communication connection with server 300.
[0562] It should be noted that steps S1701 and S1702 can be executed simultaneously, or steps S1701 can be executed first and then steps S1702, or steps S1702 can be executed first and then steps S1701. This application does not limit the execution order of these two steps.
[0563] S1703. Electronic device 100 sets permissions for electronic device 200 on copy space A1 based on user operation.
[0564] Step S1703 is an optional step.
[0565] In some embodiments, when an electronic device 100 detects that a communication connection has been established with the electronic device 200, it may prompt the user to set the permissions of the electronic device 200 to the copy space A1, and determine the permissions of the electronic device 200 to the copy space A1 based on the user's setting operation.
[0566] In other embodiments, if the electronic device 100 detects that a communication connection has been established with the electronic device 200 and no permissions have been set for the electronic device 200 to the copy space A1, it may prompt the user to set the permissions for the electronic device 200 to the copy space A1, and determine the permissions for the electronic device 200 to the copy space A1 based on the user's setting operation.
[0567] In some other embodiments, if electronic device 100 has previously set permissions for electronic device 200 on copy space A1, electronic device 100 may skip step S1703 and instead execute step S1704.
[0568] It should be noted that, in Figure 17 In the illustrated embodiment, the electronic device 200 has copying permissions for the copy space A1.
[0569] S1704. Electronic device 100 sends permissions from electronic device 200 to copy space A1.
[0570] In some embodiments, if electronic device 100 has previously set permissions for electronic device 200 to copy space A1, electronic device 100 can determine the permissions for electronic device 200 to copy space A1 when it detects the establishment of a communication connection with electronic device 200, and send the permissions for electronic device 200 to copy space A1 to electronic device 200. Optionally, the permissions for electronic device 200 to copy space A1 can also be sent to server 300.
[0571] In other embodiments, if electronic device 100 has not set permissions for electronic device 200 to copy space A1, electronic device 100 can determine the permissions for electronic device 200 to copy space A1 after performing the above step S1703, and send the permissions for electronic device 200 to copy space A1 to electronic device 200. Optionally, the permissions for electronic device 200 to copy space A1 can also be sent to server 300.
[0572] S1705. Electronic device 100 receives a paste operation for region 2.
[0573] S1706. Electronic device 200 determines the type of pasted object based on region 2, including type 1.
[0574] The details of steps S1705-S1706 can be found above. Figure 8 The relevant content of steps S801-S802 shown will not be repeated here.
[0575] S1707. Electronic device 200 sends retrieval request 1 to server 300, retrieval request 1 including type 1.
[0576] In some embodiments, if it is determined that the type of the pasted object includes type 1, and the electronic device 200 has copy permission for copy space A1, the electronic device 200 may send a retrieval request 1 carrying the type of the pasted object to the server 300. The retrieval request 1 is used to request the server 300 to send one or more types 1 data.
[0577] It should be noted that, in another possible implementation, the electronic device 200 may also send a request 1 to the server 300 after receiving the paste operation, carrying the paste area type of area 2. In this case, the server 300 can determine the type of the paste object based on the paste area type.
[0578] S1708. Server 300 determines that the pasted object includes data 1 based on type 1.
[0579] The specific method by which Server 300 determines the paste object based on Type 1 can be compared to the above. Figure 8 Step S803 is shown. Figure 9 as well as Figure 10 The relevant descriptions in the embodiments are not repeated here.
[0580] S1709. Server 300 sends Acquisition Response 1 to Electronic Device 200, Acquisition Response 1 including Data 1.
[0581] S1710. Electronic device 200 pastes data 1 in area 2.
[0582] After determining that the object to be pasted includes data 1 based on the response 1, the electronic device 200 can paste data 1 in area 2.
[0583] Understandable, Figure 17 The illustrated embodiment is merely an example. In this application embodiment, the replication space A1 can also be located in other electronic devices or in a server cluster consisting of multiple servers; this application does not limit this. Furthermore, other electronic devices with replication permissions for replication space A1 can also be used. Figure 17 The pasting process can be completed in the manner shown, and this application does not impose any limitations on it.
[0584] By using the data transmission method provided in this application, during the pasting process, the electronic device 200 can obtain the pasted object from the copy space A1 based on the user's pasting operation and the interaction with the server 300, thereby expanding the usage scenarios and scope and providing users with better data transmission services.
[0585] In some application scenarios, during the copying process, the data 1 copied by the user in a single instance may include multiple types. In this case, the electronic device 100 can store different types of data in data 1 separately based on the multiple types of data 1. Optionally, the multiple different types of data in data 1 can also be associated in the copying space A1.
[0586] For example, Figure 18 The illustration shows a schematic diagram of the copying process in a data transmission method provided in an embodiment of this application.
[0587] like Figure 18 As shown, when a user copies data of multiple types in a single transaction, the copying process in a data transfer method may include the following steps:
[0588] S1801. Electronic device 100 receives a copy operation from the user for data 1.
[0589] S1802. Electronic device 100 confirms that the copying operation for data 1 is valid.
[0590] The details of steps S1801-S1802 can be found above. Figure 5A and Figure 6A The relevant details in the illustrated embodiments will not be repeated here.
[0591] S1803. Electronic device 100 identifies that data 1 includes sub-data a and sub-data b, where the type of sub-data a is type 1 and the type of sub-data b is type 2.
[0592] For example, sub-data a can be text, sub-data b can be an image, etc. It is understood that the embodiments here are merely illustrative, and the data copied by a user in a single instance can include various types of data. In the embodiments of this application, data 1 may also include more, fewer, or different types than those in the above embodiments, and this application does not limit it here.
[0593] S1804. Electronic device 100 stores sub-data a in copy space A1 based on type 1.
[0594] S1805. Electronic device 100 stores sub-data b in copy space A1 based on type 2.
[0595] The specific methods by which electronic device 100 stores sub-data a in copy space A1 based on type 1 and sub-data b in copy space A1 based on type 2 can be referred to the above. Figure 5A , Figure 7A The relevant descriptions in the embodiments are not repeated here.
[0596] S1806. Electronic device 100 associates sub-data a and sub-data b in copy space A1.
[0597] Step S1806 is an optional step.
[0598] In some embodiments, step S1806 may be executed simultaneously with any one or more of steps S1804 and S1805. In other embodiments, step S1806 may be executed after steps S1804 and S1805. This application does not impose any limitations on this.
[0599] For example, Table 8 illustrates a storage method for associating different types of data in a copy space A1, provided by an embodiment of this application.
[0600] Table 8
[0601]
[0602] As shown in Table 8, one or more sets of data of different types can be stored in the replication space A1. Each set of stored data can include multiple associated data, such as associated data R1 and associated data R2, and can also include the type and storage address of each associated data. Taking sub-data a and sub-data b in the above embodiment as an example, in this set of associated data, associated data R1 can be sub-data a, the type of associated data R1 can be type 1, and the storage address of associated data R1 can be add1; associated data R2 can be sub-data b, the type of associated data R2 can be type 2, and the storage address of associated data R2 can be add2.
[0603] It is understood that Table 8 is merely an illustrative example. Multiple different types of data can be stored together in the copy space A1 to facilitate quick lookup during subsequent pasting. In this application embodiment, the stored data may include more, less, or different data than in the above embodiments. Furthermore, it may also store more, less, or different content than in the above embodiments, which is not limited herein.
[0604] Using the data transmission method provided in this application, when the data copied in a single transaction includes multiple types of data, different types of data can be stored separately, and these different types of data can also be stored together for easy retrieval later.
[0605] In another possible implementation, the copy space A1 may also include a storage space corresponding to a mixed-type data, which can be used to store data composed of multiple data types. In this case, when the data copied in a single transaction includes multiple data types, the electronic device 100 may also store the data in the storage space corresponding to the mixed-type data after recognizing that the data includes multiple data types; this application does not impose any limitations on this.
[0606] It is understood that the above embodiments are only two examples. In the embodiments of this application, the electronic device 100 (or other electronic devices with write permissions to copy space A1) may also store data of various types in a different way than the above embodiments. This application does not limit this.
[0607] In some application scenarios, electronic device 100 can also associate multiple different types of data based on the data stored in copy space A1, based on the data type, user usage habits, or any one or more of these factors, and store the multiple different types of data in association.
[0608] For example, Figure 19 This illustration shows a flowchart of a process for associating and storing multiple data in a copy space A1, as provided in an embodiment of this application.
[0609] like Figure 19 As shown, a specific process for associating and storing multiple data in a copy space A1 may include the following steps:
[0610] S1901. Electronic device 100 detects that data 1 and data 4 are associated in copy space A1.
[0611] In some embodiments, the electronic device 100 may store one or more association type groups, each association type group may include multiple different types with association.
[0612] For example, Table 9 shows one or more groups of associated types stored in an electronic device 100 provided in an embodiment of this application.
[0613] Table 9
[0614]
[0615] As shown in Table 9, the electronic device 100 may store one or more associated type groups, such as associated type group 1 and associated type group 2. Each associated type group may include multiple types; for example, associated type group 1 may include type 1 and type 2, associated type group 2 may include type 3, type 4 and type 5, etc.
[0616] It is understood that the embodiments shown in Table 9 are merely examples. In the embodiments of this application, the electronic device 100 may also store more, fewer, or different association type groups than those shown in Table 9, and each association type group may also include more, fewer, or different types than those shown in the embodiments. This application does not limit this.
[0617] When electronic device 100 stores one or more cell association type groups, electronic device 100 can identify the data in copy space A1 based on the association type group, and determine that data 1 and data 4 are associated based on type 1 of data 1 and type 2 of data 4.
[0618] In other embodiments, the electronic device 100 may also determine one or more associated type groups based on the user's usage habits (e.g., in scenarios where the user pastes multiple types of data at the same time, the frequency of the user pasting each type, etc.) and update the associated type groups stored in the electronic device 100.
[0619] S1902. Electronic device 100 outputs an association prompt, which is used to prompt the user whether to associate stored data 1 and data 4.
[0620] Step S1902 is an optional step.
[0621] If the electronic device 100 receives the operation of the user associated storage data 1 and data 4, the electronic device 100 may perform the following step S1903.
[0622] If the electronic device 100 does not receive the user's operation to associate stored data 1 and data 4, the electronic device 100 may not associate stored data 1 and data 4.
[0623] S1903. Electronic device 100 associates and stores data 1 and data 4 in copy space A1.
[0624] In some embodiments, when an association prompt is output, the electronic device 100 can receive and respond to the user's operation of associating storage, and associate storage data 1 and data 4 in the copy space A1.
[0625] In other embodiments, the electronic device 100 may also associate and store data 1 and data 4 in the copy space A1 if it detects that data 1 and data 4 are associated in the copy space A1.
[0626] For example, the specific way in which electronic device 100 associates and stores data 1 and data 4 in copy space A1 can be compared with the relevant description in the embodiment shown in Table 8 above, and will not be repeated here.
[0627] Understandable, Figure 19 The illustrated embodiment is merely an example. In this application embodiment, the electronic device 100 (or other electronic device with write permissions to copy space A1) may also employ methods similar to those described above. Figure 19 The embodiments shown use different methods to identify and store associated data, and this application does not limit this to any particular method.
[0628] In some application scenarios, when the electronic device 100 (or other electronic device with copy permission in copy space A1) determines that the type of the pasted object includes multiple types, it can also determine the pasted object containing multiple types of data from copy space A1 based on one or more sets of data associated with it stored in copy space A1, and paste it in the specified area.
[0629] For example, Figure 20 The illustration shows a pasting process of a data transmission method provided in this application.
[0630] like Figure 20 As shown, when the object being pasted includes multiple types, the pasting process of a data transfer method may include the following steps:
[0631] S2001. Electronic device 100 receives and responds to the user's paste operation for area 3.
[0632] S2002. Electronic device 100 determines the type of pasted object based on region 3, including type 1 and type 2.
[0633] For example, the specific method by which the electronic device 100 determines the type of the pasted object based on region 3 can be compared with the above. Figure 8 Step S802 shown Figure 10 The relevant descriptions in the illustrated embodiments will not be repeated here.
[0634] S2003. Electronic device 100 determines whether there is associated storage type 1 data and type 2 data in copy space A1.
[0635] In some embodiments, the electronic device 100 can determine whether there is type 1 data and type 2 data stored in the copy space A1 based on one or more sets of data stored in association in the copy space A1.
[0636] If data of type 1 and data of type 2 are stored together in the copy space A1, the electronic device 100 may perform the following step S2004.
[0637] If data of type 1 and data of type 2 are stored together in the copy space A1, the electronic device 100 may perform the following step S2006.
[0638] S2004. Electronic device 100 determines that the pasted objects include data 1 and data 4, where data 1 is type 1 data and data 4 is type 2 data associated with data 1.
[0639] S2005. Electronic device 100 pastes data 1 and data 4 in area 3.
[0640] S2006. Electronic device 100 determines data 1 from copy space A1 based on type 1.
[0641] S2007. Electronic device 100 determines data 4 from copy space A1 based on type 2.
[0642] The specific method by which electronic device 100 determines data from copy space A1 based on type can be referred to the above. Figure 8 The relevant descriptions in step S803 shown will not be repeated here.
[0643] It should be noted that steps S2006 and S2007 can be executed simultaneously, or steps S2007 can be executed first and then steps S2006, or steps S2006 can be executed first and then steps S2007. This application does not limit this.
[0644] S2008. Electronic device 100 outputs paste prompt 3, paste prompt 3 includes combination option 1, combination option 1 corresponds to data 1 and data 4.
[0645] Step S2008 is an optional step.
[0646] In some embodiments, after outputting the paste prompt 3, the electronic device 100 may receive and respond to the user's selection of combination option 1, determine that the paste objects include data 1 and data 4, and perform the following step S2009.
[0647] S2009. Electronic device 100 pastes data 1 and data 4 in area 3.
[0648] In some embodiments, the electronic device 100 may receive and respond to the user's selection of combination option 1 and perform step S2009.
[0649] In some other embodiments, the electronic device 100 may also perform step S2009 after performing steps S2006 and S2007.
[0650] S2010. Electronic device 100 associates and stores data 1 and data 4 in copy space A1.
[0651] Step S2010 is an optional step.
[0652] In some embodiments, after performing steps S2006 and S2007, or after performing step S2008, the electronic device 100 can associate and store data 1 and data 4 in the copy space A1. For example, the specific method by which the electronic device 100 associates and stores data 1 and data 4 can be referred to the above description. Figure 18 , Figure 19 The relevant descriptions in the illustrated embodiments will not be repeated here.
[0653] Understandable, Figure 20 The illustrated embodiment is merely an example. In this application embodiment, the electronic device 100 (or other electronic device with copying rights to the copy space A1) may also employ the same method as described above. Figure 20 The embodiments shown illustrate different methods for determining paste objects containing various types of data from copy space A1 and pasting them into designated areas; this application does not limit these methods.
[0654] Using the data transmission method provided in this application, an electronic device with copying permissions for copy space A1 can determine the paste object based on the correlation between data in copy space A1. This allows multiple data of different types to be pasted simultaneously, simplifying the pasting process and improving data transmission efficiency.
[0655] In some application scenarios, the electronic device 100 can also determine the paste object from the copy space A1 based on the user input data and paste the paste object in the specified area.
[0656] For example, Figure 21 This illustration shows a flowchart of a user-input-based data pasting process provided in an embodiment of this application.
[0657] like Figure 21 As shown, a specific process for pasting data based on user input may include the following steps:
[0658] S2101. Electronic device 100 receives and responds to the user's input of data 5 in area 4, and displays data 5 in area 4.
[0659] S2102. Electronic device 100 identifies data 5 as a subset of data 1 based on the copy space A1.
[0660] S2103. Electronic device 100 outputs paste prompt 4, which is used to prompt the user whether to paste data 1 in area 4.
[0661] Step S2103 is an optional step.
[0662] S2104. Electronic device 100 displays data 1 in area 4.
[0663] In some embodiments, when outputting paste prompt 4, electronic device 100 can receive and respond to the user's operation of selecting to paste data 1, and display data 1 in area 4.
[0664] In other embodiments, the electronic device 100 may also display data 1 in region 4 after recognizing that data 5 is a subset of data 1.
[0665] It should be noted that displaying data 1 in region 4 means pasting the difference between data 1 and data 5 in region 4, that is, pasting the part of data 1 that does not belong to data 5; or, displaying data 1 in region 4 can also mean deleting data 5 in region 4 and then pasting data 1. This application does not limit this.
[0666] Understandable, Figure 21 The illustrated embodiment is merely an example. In the embodiments of this application, the electronic device 100 (or other electronic devices with copying permissions for copying space A1) may also adopt a different approach than the above embodiment, based on the operation of user input data, based on the user input data and / or the effective area of the input operation, to determine the paste object from copying space A1, and paste the paste object in the specified area. This application does not limit this.
[0667] Using the data transmission method provided in this application, the electronic device 100 can also paste the data at the user input position when it detects that the user input data belongs to any subset of data in the copy space A1, thereby simplifying the user input operation and improving data transmission efficiency.
[0668] For example, Figures 22A-22H This application provides a set of schematic diagrams illustrating an interface for cleaning up data in a copy space, as shown in an embodiment of the present application.
[0669] like Figure 22AAs shown, the electronic device 100 displays a desktop 2200, which may include one or more icons, such as video application icons. The electronic device 100 can receive and respond to a user's operation of opening the cleanup menu of the copy space A1 (e.g., right-click operation, voice control operation, etc.), and display the cleanup menu 2201 of the copy space A1 on the desktop 2200. The cleanup menu 2201 may include a theme "Copy Cleanup," a one-click cleanup control 2211, and one or more type options, such as document option 2212, image option 2213, text option 2214, folder option 2215, and other options 2216. The one-click cleanup control 2211 can be used to trigger the electronic device 100 to delete all data in the copy space A1. Each type option can be used to trigger the electronic device 100 to delete all data of that type in the copy space A1, or to trigger the electronic device 100 to display the option corresponding to all data of that type in the copy space A1.
[0670] In some embodiments, the electronic device 100 can receive and respond to a user's click operation on the one-click cleanup control 2211 to delete all data in the copy space A1, such as... Figure 22B As shown, delete all type options in the cleanup menu 2201.
[0671] like Figure 22B As shown, on desktop 2200, the cleanup menu 2201 may include the theme "Copy Cleanup" and may also include a one-click cleanup control 2211, but may not include the above. Figure 22A The type options in the illustrated embodiment. Optionally, the cleanup menu 2201 may also include an empty prompt 2217, which can be used to prompt the user that the current copy space A1 is empty.
[0672] In other embodiments, the electronic device 100 may also activate the cleanup menu of the copy space A1 after the user opens it, such as... Figure 22C As shown, a cleanup menu 2202 is displayed on the desktop 2200. The cleanup menu 2202 may include a theme "Copy Cleanup", and may also include a one-click cleanup control 2211 and a type list option 2218. The type list option 2218 can be used to trigger the electronic device 100 to display one or more type options, each type option can correspond to a preset type in the copy space A1.
[0673] Electronic device 100 can receive and respond to user clicks on type list options 2218, such as... Figure 22DAs shown, one or more type options are displayed, such as document option 2212, image option 2213, text option 2214, folder option 2215, and other options 2216, etc. The specific function of each type option can be found above. Figure 22A The relevant descriptions in the illustrated embodiments will not be repeated here.
[0674] In some embodiments, such as Figure 22E As shown, the electronic device 100 can receive and respond to a user's double-click operation (or other specified operation) on the document option 2212 in the cleanup menu 2201, deleting all document type data in the copy space A1, such as... Figure 22F As shown, delete document option 2212 in the cleanup menu 2201.
[0675] In other embodiments, the electronic device 100 may receive and respond to a user's click (or other specified action) on the document option 2212 in the cleanup menu 2201, such as... Figure 22G As shown, the cleanup menu 2201 displays one or more document type data options, each corresponding to a document stored in copy space A1. For example, these one or more data options may include document 1 option 2221, document 2 option 2222, document 3 option 2223, etc., where document 1 option 2221 corresponds to document 1, document 2 option 2222 corresponds to document 2, and document 3 option 2223 corresponds to document 3. Each data option can be used to trigger the electronic device 100 to delete the data corresponding to that data option from copy space A1. Optionally, document option 2212 may use a different display color (or other different display method) than other type options to indicate to the user that the currently expanded one or more data options are document type data options. Further optionally, the cleanup menu 2201 may also display a type deletion control 2224, which can be used to trigger the electronic device 100 to delete all document type data in copy space A1.
[0676] Electronic device 100 can receive and respond to a user's click operation on option 2222 of document 2, delete document 2 from copy space A1, and as... Figure 22H As shown, remove document 2 option 2222 from the cleanup menu 2201.
[0677] Understandable, Figures 22A-22HThese are just some examples. In the embodiments of this application, when cleaning up the data in the copy space A1, the electronic device 100 (or other electronic device with deletion permission for the copy space A1) may also adopt an interaction method different from the above embodiments, or display more, fewer, or different interfaces than the above embodiments. This application does not limit this.
[0678] In some application scenarios, if the copied URL is incomplete, the electronic device 100 can complete the URL and paste the completed URL when pasting it.
[0679] For example, Figures 23A-23C The illustration shows a set of interface diagrams for pasting incomplete URLs, as provided in an embodiment of this application.
[0680] like Figure 23A As shown, the electronic device 100 can display a webpage interface 2300, which may include an address bar 2301, webpage elements 2305, and a search bar 2306. The address bar 2301 can display the URL corresponding to the webpage interface 2300, i.e., "http: / / www.aaaaaaa.com / ". Figure 23A In the illustrated embodiment, a portion of the URL is selected, and this selected portion can be displayed within a selection box 2303. This selection box 2303 can use a different display color than the address bar 2301 to indicate the selected portion to the user. The selected portion can be "tp: / / www.aaaaaaa.com / ". Furthermore, a copy control 2304 can be displayed near the selection box 2303. The copy control 2304 can be used to trigger the electronic device 100 to copy the selected portion of the URL and write it into the copy space A1.
[0681] Electronic device 100 can receive and respond to a user's click operation on copy control 2304 to copy the selected portion in address bar 2301.
[0682] like Figure 23B As shown, the electronic device 100 can display a web page interface 2310. The web page interface 2310 can include an address bar 2311. The address bar 2311 is empty, and a paste control 2312 can be displayed near the address bar 2311. The paste control 2312 can be used to trigger the electronic device 100 to determine an address from the copy space A1 and paste the address into the address bar 2311.
[0683] In some embodiments, the electronic device 100 may receive and respond to a user's operation on the paste control 2312, determine the most recently copied URL "tp: / / www.aaaaaaa.com / " from the copy space A1, and complete the URL to obtain the URL "http: / / www.aaaaaaa.com / ". Then, as... Figure 23C As shown, the electronic device 100 can paste the completed URL "http: / / www.aaaaaaa.com / " into the address bar 2301 and access the URL, displaying the corresponding webpage interface 2300.
[0684] In other embodiments, the electronic device 100 may also, after copying the URL "tp: / / www.aaaaaaa.com / ", recognize that the URL is incomplete, complete the URL to obtain the URL "http: / / www.aaaaaaa.com / ", and store the completed URL in the copy space A1. Then, when pasting, the completed URL "http: / / www.aaaaaaa.com / " can be directly pasted.
[0685] Understandable, Figures 23A-23C The embodiments shown are merely examples. In the embodiments of this application, during the copy and paste process, more, fewer, or different interfaces than those in the above embodiments may be displayed, and the scenarios for completing the copied data may also include more or different scenarios than those in the above embodiments. This application does not limit these scenarios.
[0686] In some application scenarios, when electronic device 100 copies the path of a local file, if the copied path is incomplete, electronic device 100 can complete the path and paste the completed path when pasting it.
[0687] For example, Figures 24A-24C The illustration shows a set of interface diagrams provided in the embodiments of this application for pasting after completing incomplete paths.
[0688] like Figure 24AAs shown, the electronic device 100 can display a desktop 2200, and the desktop 2200 can also display a running page 2400. The running page 2400 can include a path input box 2401, a confirm control 2402, a cancel control 2403, and a browse control 2404. Specifically, the path input box 2401 is used to trigger the electronic device 100 to display the path entered by the user; the confirm control 2402 is used to trigger the electronic device 100 to open a folder / file based on the path in the path input box 2401; the cancel control 2403 is used to trigger the electronic device 100 to stop displaying the running page 2400; and the browse control 2404 is used to trigger the electronic device 100 to open a folder based on the parent path of the path in the path input box 2401. Furthermore, when the user selects the path input box 2401, the electronic device 100 can display a paste control 2405 near the path input box 2401. The paste control 2405 can be used to trigger the electronic device 100 to select a path from the copy space A1 and paste it into the path input box 2401.
[0689] In some embodiments, the electronic device 100 may receive and respond to a user's click operation on the paste control 2405, determining a path "Data\T11" from the copy space A1, such as... Figure 24B As shown, the electronic device 100 can paste the path "Data\T11" into the path input box 2401. Furthermore, since the path "Data\T11" is incomplete, a completion control 2406 can be displayed near the path input box 2401. The completion control 2406 can be used to trigger the electronic device 100 to complete the path "Data\T11" and display the completed path in the path input box 2401.
[0690] Electronic device 100 can receive and respond to user clicks on autocomplete control 2406, and complete the path "Data\T11" based on the local path to obtain the completed path "D:\Data\T11", such as... Figure 24C As shown, the completed path "D:\Data\T11" is displayed in the path input box 2401.
[0691] Afterwards, the electronic device 100 can receive and respond to the user's click operation on the control 2402 and open the folder corresponding to the path "D:\Data\T11".
[0692] In other embodiments, the electronic device 100 may also receive and respond to the user's request regarding the above. Figure 24AThe click operation of the paste control 2405 shown determines a path "Data\T11" from the copy space A1, and completes the path "Data\T11" based on the local path to obtain the completed path "D:\Data\T11", and so on. Figure 24C As shown, the completed path "D:\Data\T11" is displayed in the path input box 2401.
[0693] Understandable, Figures 24A-24C The embodiments shown are merely examples. In the embodiments of this application, during the pasting process, more, fewer, or different interfaces than those in the above embodiments may be displayed, and the scenarios for completing the copied data may also include more or different scenarios than those in the above embodiments. This application does not limit these scenarios.
[0694] In some application scenarios, when uploading images, electronic device 100 can identify special images (such as ID card photos, certificate photos, etc.) from copy space A1 and upload the identified images. This can shorten the time spent searching for images and improve efficiency.
[0695] For example, Figures 25A-25C The diagram shows a set of interface schematics for uploading images provided in an embodiment of this application.
[0696] like Figure 25A As shown, the electronic device 100 can display a webpage interface 2500, which may include an address bar 2501 displaying the URL corresponding to the current webpage interface 2500. Furthermore, the webpage interface 2500 may also include an ID document upload area 2510, which may include text prompts such as "Upload ID photo here." The ID document upload area 2510 may also include an upload control 2511, a confirm control 2512, and a cancel control 2513. The upload control 2511 can be used to trigger the electronic device 100 to select an image. The confirm control 2512 can be used to trigger the electronic device 100 to upload the image selected by the user. The cancel control 2513 can be used to trigger the electronic device 100 to cancel the upload of the image selected by the user.
[0697] In some embodiments, the electronic device 100 can receive and respond to a user's click on the upload control 2511, such as... Figure 25B As shown, paste prompt 2520 is displayed.
[0698] like Figure 25BAs shown, the paste prompt 2520 may include a text prompt 2521 and an image prompt 2522. The text prompt 2521 can be used to prompt the user whether to paste the relevant image found in the copy space A1, such as "Paste the following ID photo?". The image prompt 2522 may include one or more thumbnails, which are thumbnails of the relevant images found in the copy space A1. In addition, the paste prompt 2520 may also include a yes control 2523 and a no control 2524. The yes control 2523 can be used to trigger the electronic device 100 to paste the image determined from the copy space A1 in the ID upload area 2510, and the no control 2524 can be used to trigger the electronic device 100 to close the paste prompt 2520.
[0699] Electronic device 100 can receive and respond to user clicks on control 2523, such as... Figure 25C As shown, image 2514 is displayed in document upload area 2510. Image 2514 can be one of the above-mentioned... Figure 25B The thumbnail in image 2522.
[0700] Understandable, Figures 25A-25C The illustrated embodiment is merely an example. In other scenarios of uploading / sending images, or in scenarios of uploading / sending other types of files, the electronic device 100 may also prioritize searching for relevant data in the copy space A1 based on the data stored in the copy space A1. This application does not impose any limitations on this.
[0701] In some application scenarios, after establishing a communication connection with electronic device 200, electronic device 100 can configure the permissions of electronic device 200 on the copy space A1 according to user settings. In this way, cross-device data transfer can be achieved by granting electronic device 200 partial permissions on the copy space A1.
[0702] For example, Figures 26A-26D This illustration shows a set of interface diagrams for setting permissions of electronic device 200 to copy space A1 according to an embodiment of this application.
[0703] In one possible implementation, electronic device 100 may display, upon detecting a connection to electronic device 200 or upon receiving an operation from a user to open an identity settings interface, the following: Figure 26A The identity settings interface shown is 2600.
[0704] like Figure 26AAs shown, the identity setting interface 2600 may include an identity setting prompt 2601, one or more identity options, and a completion control 2605. The identity setting prompt 2601 can be used to prompt the user to set the identity of the electronic device 200, so as to determine the permissions of the electronic device 200 to the copy space A1. In the one or more identity options, each identity option may correspond to a preset identity, and each identity may correspond to one or more permissions to the copy space A1. For example, the one or more identity options may include an administrator option 2602, a general user option 2603, and a temporary user option 2604, etc. This application does not limit the number of identity options or the specific identities corresponding to the options. Each identity option may also include a selection identifier and a view permission control. The selection identifier may include two states: selected and unselected. The selection identifier is used to indicate whether the identity option has been selected by the user, and the view permission control can be used to view the permissions corresponding to the identity. For example, administrator option 2602 may include a selection identifier 2602a and a view permission control 2602b; regular user option 2603 may include a selection identifier 2603a and a view permission control 2603b; temporary user option 2604 may include a selection identifier 2604a and a view permission control 2604b. Completion control 2605 can be used to trigger electronic device 100 to set the identity and permissions of electronic device 200 based on the user-selected identity option.
[0705] In some embodiments, the electronic device 100 may receive and respond to a user's click on the view permission control 2603b in the general user option 2603, displaying, for example... Figure 26B The general user permissions interface shown is 2610.
[0706] like Figure 26BAs shown, the general user permission interface 2610 may include one or more permissions corresponding to a general user for the copy space A1, such as view permission 2611, copy permission 2612, and write permission 2613. Optionally, each permission may also include a delete control. For example, view permission 2611 may include a delete control 2611a, which can be used to delete the view permission from the general user identity; copy permission 2612 may include a delete control 2612a, which can be used to delete the copy permission from the general user identity; and write permission 2613 may include a delete control 2613a, which can be used to delete the write permission from the general user identity. Further optionally, the general user permission interface 2610 may also include an add permission control 2614, which can be used to trigger the electronic device 100 to add one or more permissions to the general user identity. In addition, the general user permission interface 2610 may also include a return control 2615, which can be used to trigger the electronic device 100 to return. Figure 26A The identity settings interface shown is 2600.
[0707] Electronic device 100 can receive and respond to user clicks on return control 2615, and display... Figure 26C The identity settings interface shown. Figure 26C For details regarding the identity settings interface 2600 shown above, please refer to the above. Figure 26A The relevant descriptions in the illustrated embodiments.
[0708] Electronic device 100 can receive and respond to user requests. Figure 26C The click operation of selection identifier 2603a in the illustrated embodiment, such as Figure 26D As shown, the state of the selection identifier 2603a is switched from unselected to selected, for example, from unfilled to filled (or other different display methods are used, etc. This application does not limit the specific manifestation of the selected and unselected states of the selection identifier).
[0709] Afterwards, electronic device 100 can receive and respond to the user's click operation on the completion control 2605, and set the identity of electronic device 200 to a general user. At this time, the permissions of electronic device 200 to copy space A1 can include viewing permission, copying permission and writing permission.
[0710] For example, Figures 26E-26F This illustration shows another set of interface diagrams for setting permissions of electronic device 200 to copy space A1 according to an embodiment of this application.
[0711] In one possible implementation, electronic device 100 may display, upon detecting a connection to electronic device 200 or upon receiving an operation from a user to open the permission settings interface, the following: Figure 26E The permission settings interface shown is 2620.
[0712] like Figure 26E As shown, the permission setting interface 2620 may include a permission setting prompt 2621, one or more permission options, and a completion control 2625. The permission setting prompt 2621 can be used to prompt the user to set permissions for the electronic device 200 on the copy space A1. Each of the one or more permission options can correspond to a permission for the copy space A1. For example, the one or more permission options may include a view permission option 2622, a copy permission option 2623, a write permission option 2624, etc. Each permission option may also include a selection identifier, which can include both selected and unselected states, indicating whether the permission option has been selected by the user. For example, the view permission option 2622 may include a selection identifier 2622a; the copy permission option 2623 may include a selection identifier 2623a; and the write permission option 2624 may include a selection identifier 2624a. The completion control 2625 can be used to trigger the electronic device 100 to set permissions for the electronic device 200 based on the user-selected permission options. It should be noted that the permission options can support single selection or multiple selection.
[0713] The electronic device 100 can receive and respond to a user's click operation on the selection indicator 2623a, switching the selection indicator 2623a to the selected state. Other specific details regarding the selection indicator can be found above. Figure 26D The relevant descriptions in the illustrated embodiments will not be repeated here.
[0714] In some embodiments, due to the limited display size of the electronic device 100, the permission settings interface 2620 may not be able to display all permission options on a single screen. In this case, the electronic device 100 may display more permission options on the display screen based on the user's swiping operation (such as swiping up and down or swiping left and right).
[0715] Electronic device 100 can receive and respond to a user's swipe-up action on the permission settings interface 2620, such as... Figure 26F As shown, the permission settings interface 2620 displays more permission options, such as the delete permission option 2626 and the grant permission option 2627. The delete permission option 2626 may include a selection identifier 2626a, and the grant permission option 2627 may include a selection identifier 2627a.
[0716] Electronic device 100 can receive and respond to a user's click operation on the completion control 2625, and determine the permissions of electronic device 200 to copy space A1, including copy permissions, based on selection identifier 2623a.
[0717] Understandable, Figures 26A-26D , Figures 26E-26F These are just two examples. In the embodiments of this application, the electronic device 100 may also use a different interface than the above embodiments to complete the setting of permissions for the electronic device 200, and may also set different permissions for the electronic device 200 than the above embodiments. This application does not limit this.
[0718] It should be noted that the above Figures 22A-25C The illustrated embodiments are merely examples of computer interfaces used to describe the interfaces for processes such as copying, pasting, deleting data, and completing incomplete data. Figures 26A-26F Taking the wearable device interface as an example, the interface for setting the identity and / or permissions of the electronic device 200 is described. In this embodiment, the electronic device 100 can also be a smartphone, tablet, wearable device, etc. In this case, the interface for processes such as copying, pasting, deleting data, and completing incomplete data can also be compared with the relevant descriptions in the above embodiments and adapted based on the device type. This application does not limit it here.
[0719] In addition, it should be noted that the above Figures 22A-26F The illustrated embodiment is merely an example of using electronic device 100 as the execution subject. In the embodiments of this application, electronic device 200 or other electronic devices with corresponding permissions can also perform operations such as copying, pasting, and deleting. The interface during the execution process can also be adapted with reference to the relevant descriptions in the above embodiments, such as adjusting it according to the screen size of different devices. This will not be elaborated here.
[0720] The functional modules of a data transmission system provided in the embodiments of this application are described below.
[0721] Figure 27 A schematic diagram of the functional modules of a data transmission system 2700 provided in an embodiment of this application is shown.
[0722] like Figure 27As shown, the data transmission system 2700 may include a copy management module 2710, a copy space 2720, and a paste management module 2730. The copy management module 2710 may include a user interaction module 2711 and a validity judgment module 2712. Optionally, the copy management module 2710 may also include a copy correction module 2713. The copy space 2720 may include a type recognition module 2721, a storage module 2723, a space management module 2724, a space cleanup module 2725, and an authorization module 2727. Optionally, the copy space 2720 may also include a content recognition module 2722. The paste management module 2730 may include a user interaction module 2731, a paste object type recognition module 2732, a paste object recognition module 2734, and a paste prompt module 2733. Optionally, the paste management module 2730 may also include a paste correction module 2735.
[0723] In the copy management module 2710, the user interaction module 2711 can interact with the user, such as receiving the user's copy operation. After receiving the user's copy operation, the user interaction module 2711 can determine the data that the user is copying and send the copied data to the validity judgment module 2712.
[0724] The validity determination module 2712 can determine whether the copy operation is valid based on the data sent by the user interaction module 2711. The specific determination method can be referred to the above. Figure 6A The relevant descriptions in the embodiments are not repeated here. In some embodiments, after determining that the copy operation is valid, the validity determination module 2712 can send the copied data to the copy space 2720. In other embodiments, after determining that the copy operation is valid, the validity determination module 2712 can send the copied data to the copy correction module 2713.
[0725] The copy correction module 2713 can determine whether the data is complete and complete incomplete data. In some embodiments, the copy correction module 2713 can store an integrity completion algorithm. In some embodiments, the copy correction module 2713 can send the completed data to the copy space 2720.
[0726] In the copy space 2720, the type identification module 2721 can identify the type of data. In some embodiments, the type identification module 2721 can identify the type of data based on the data sent by the copy management module 2710, and store the data in the storage module 2723 based on the identified type. In other embodiments, after the type identification module 2721 identifies the type of data based on the data sent by the copy management module 2710, the type identification module 2721 can also send the data and the data type to the content identification module 2722.
[0727] The content recognition module 2722 can recognize the content of data. In some embodiments, the content recognition module 2722 can recognize the content of data sent by the copy management module 2710 (or the type recognition module 2721) and determine the correlation between data based on the content. If it is determined that the data are correlated, the content recognition module 2722 can store the data in the storage module 2723 based on the correlation and the type of the data.
[0728] Storage module 2723 can store data, such as data written to copy space 2720 by a user via electronic device 100 (or other electronic device with write permissions). In some embodiments, storage module 2723 can store data based on the data type sent by type identification module 2721. In some embodiments, storage module 2723 can store data based on the correlation between data sent by content identification module 2722. In other embodiments, storage module 2723 can also delete one or more data stored in storage module 2723 based on cleanup instructions sent by space cleanup module 2725. In other embodiments, storage module 2723 can also manage the data stored in storage module 2723 based on management instructions sent by space management module 2724 (e.g., adjusting categories, adjusting priorities, adjusting storage locations, etc.). In some embodiments, storage module 2723 can also send one or more data of the same type to paste management module 2730 based on the type of paste object sent by paste management module 2730.
[0729] The space management module 2724 can manage the data in the copy space 2720, such as adding types, removing types, merging types, or adjusting the storage space size of each type.
[0730] The space cleanup module 2725 can clean up one or more data in the copied space 2720.
[0731] The authorization module 2727 can authenticate different electronic devices. For example, it can authenticate the write permission of electronic devices that write data to the copy space 2720; authenticate the copy permission of electronic devices that copy data from the copy space 2720; and authenticate the authorization permission of electronic devices that authorize other electronic devices to access the copy space 2720, etc.
[0732] In the paste management module 2730, the user interaction module 2731 can interact with the user, such as receiving the user's paste operation, receiving the user's input operation, etc.
[0733] The paste object type recognition module 2732 can identify the type of the paste object. For example, it can determine the type of the paste object based on the area of the user's paste operation (or input operation, etc.). After identifying the type of the paste object, it can send the type of the paste object to the copy space 2720 to request the retrieval of one or more data of that type stored in the copy space 2720.
[0734] The paste object recognition module 2734 can identify the paste object from one or more data sent by the copy space 2720 and paste the paste object into a designated area. In some embodiments, the paste object recognition module 2734 may also instruct the paste prompt module 2733 to output a paste prompt. In other embodiments, the paste object recognition module 2734 may also send the identified paste object to the paste correction module 2735.
[0735] The paste prompt module 2733 can output a paste prompt. In some embodiments, the paste prompt is used to prompt the user to select a paste object from multiple alternative data. In other embodiments, the paste prompt is used to prompt the user whether to paste the paste object identified by the paste object recognition module 2734. In still other embodiments, the paste prompt can also be used to prompt the user to select a paste object composed of multiple types of data, which is not limited herein.
[0736] The paste correction module 2735 can complete incomplete pasted objects. In some embodiments, the paste correction module 2735 can receive a pasted object sent by the pasteed object recognition module 2734 and determine whether the pasted object is complete. If the pasted object is incomplete, the paste correction module 2735 can complete the pasted object.
[0737] Understandable, Figure 27The embodiments shown are merely examples. In the embodiments of this application, the data transmission system 2700 may also include more, fewer, or different functional modules than those in the above embodiments. Furthermore, any of the above functional modules may be divided into multiple functional modules, or any multiple functional modules may be merged into one functional module. This application does not impose any limitations on these aspects.
[0738] It should be noted that in some embodiments, such as when the electronic device 100 performs the copy and paste processes, the above... Figure 27 All modules in the data transmission system 2700 shown can be installed in the electronic device 100.
[0739] In other embodiments, for the above Figure 1A The data transmission system 10 shown above Figure 27 The copy management module 2710 and copy space 2720 shown can be installed in the electronic device 100. Figure 27 The paste management module 2730 shown can be installed in the electronic device 200.
[0740] In other embodiments, for the above Figure 1B The data transmission system 20 shown above Figure 27 The replication management module 2710 shown can be installed in the electronic device 100, and the replication space 2720 can be installed in the server 300. Figure 27 The paste management module 2730 shown can be installed in the electronic device 200.
[0741] It is understood that the above embodiments are only three examples. In the embodiments of this application, the above embodiments may vary depending on the actual use scenario and device. Figure 27 The relationship between the functional modules and the electronic devices in the data transmission system in the illustrated embodiments may also be different from that in the above embodiments, and this application does not limit it here.
[0742] The following describes a possible physical structure of the electronic device 100 provided in the embodiments of this application.
[0743] For example, Figure 28 This illustration shows a schematic diagram of the physical structure of an electronic device 100 provided in an embodiment of this application.
[0744] like Figure 28 As shown, the electronic device 100 may include a processor 2801, a memory 2802, and a display 2803, and optionally, may also include a transmitter and a receiver. The processor 2801, memory 2802, and display 2803 may be interconnected or interconnected via a bus 2804.
[0745] For example, memory 2802 is used to store computer programs and data of electronic device 100. Memory 2802 may include, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM).
[0746] The software or program code required for all or part of the functions of the electronic device 100 in the above method embodiments is stored in the memory 2802.
[0747] In one possible implementation, if the software or program code required for some functions is stored in the memory 2802, then in addition to calling the program code in the memory 2802 to implement some functions, the processor 2801 can also cooperate with other components (such as receivers, transmitters, etc.) to complete other functions described in the method embodiment (such as the function of receiving or sending data).
[0748] The monitor 2803 can be used to display interface elements, such as copied data, pasted data, etc.
[0749] For example, processor 2801 may be a CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor types, as described above. Processor 2801 may be used to read programs stored in memory 2802 and execute operations performed by electronic device 100 in any of the above embodiments.
[0750] Understandable, Figure 28 The illustrated embodiment is merely an example. In the embodiments of this application, the electronic device 100 may also include components beyond those described above. Figure 28 The embodiments shown have more, fewer, or more Figure 28 The different devices shown in the embodiments are not limited herein.
[0751] It should be noted that, in the embodiments of this application, the physical structures of the aforementioned electronic devices 200, server 300, etc., can also refer to the above description. Figure 28 The physical structure of the electronic device 100 shown will not be described in detail here.
[0752] Figure 29 A schematic flowchart of a data transmission method provided in an embodiment of this application is shown.
[0753] like Figure 29 As shown, the specific process of a data transmission method provided in this application may include the following steps:
[0754] S2901. The first electronic device receives a first copy operation from a user for first data and stores the first data into a first copy space, the first data including data of a first type.
[0755] The first copy space can be a virtual storage space pre-configured by the first electronic device, or it can be a pre-allocated physical storage space.
[0756] The storage of first data in the first copy space can refer to storing the first data or a link to the first data (such as a network link, pointer, address, etc.), and the link to the first data can be used to retrieve the first data.
[0757] The first electronic device may be the electronic device 100 in the above embodiments.
[0758] For example, the first data could be as described above. Figure 5A , Figure 6A , Figure 7A , Figure 8 In the embodiments, data 1 of the first type can be type 1 in the above embodiments. The first copy space can be copy space A1 in the above embodiments.
[0759] S2902. The first electronic device receives a first paste operation from a user for a first area.
[0760] For example, the first region could be Figure 8 Region 1 in the illustrated embodiment.
[0761] S2903. The first electronic device determines the type of the object to be pasted, including the first type, based on the first region.
[0762] The specific method by which the first electronic device determines the type of the object to be pasted based on the first region can be found in the above description. Figure 8 The relevant descriptions in step S802 shown will not be repeated here.
[0763] In another possible implementation, the type of the object to be pasted can include multiple types. In this case, the method for confirming the object to be pasted can refer to the above. Figure 10 or Figure 20 The relevant descriptions in the illustrated embodiments will not be repeated here.
[0764] S2904. The first electronic device pastes the first data in the first area.
[0765] This simplifies the data transfer process, allowing users to transfer data through simple copy and paste operations. Furthermore, during pasting, the type of the object to be pasted can be identified based on the pasting area, and the data included in the object to be pasted can be determined based on the type of the object, thus completing the data transfer.
[0766] In one possible implementation, before storing the first data into the first copy space, the method further includes: in response to the first copy operation, determining that the first copy operation is valid based on the first data.
[0767] For details on how to determine the validity of the first copy operation, please refer to the above. Figure 6A The relevant descriptions in the illustrated embodiments will not be repeated here.
[0768] Using the above implementation method, if the first copy operation is determined to be valid, the first data can be stored in the first copy space based on the first copy operation. This avoids storing redundant data in the first copy space, saves memory in the first copy space, and improves the utilization rate of the first copy space.
[0769] In one possible implementation, determining the validity of the first copy operation based on the first data specifically includes: determining that no copy operation for the first data was received before the first copy operation; and determining that there is no data identical or similar to the first data in the first copy space.
[0770] By employing the above implementation method, the validity of the first copy operation can be determined by judging whether the copy operation on the first data is a continuous operation and whether the first copy space stores data that is the same as or similar to the first data. This avoids storing the same or similar data in the first copy space, saving memory in the first copy space and improving its utilization rate.
[0771] It should be noted that, in one possible implementation, data that is the same as or similar to the first data refers to data whose similarity to the first data is less than a preset similarity threshold. The method for calculating similarity can be referred to the above. Figure 6A The relevant description in step S602 is shown.
[0772] In one possible implementation, storing the first data into the first copy space specifically includes: determining that the type of the first data includes a first type; and storing the first data in the first copy space based on the first type.
[0773] In this way, the first data can be stored in the first copy space based on its type, which facilitates the management of the data in the first copy space and also makes it easier to quickly find the first data based on its type during the subsequent pasting process, thus improving the data transmission efficiency.
[0774] In one possible implementation, the first copy space includes a first subspace, which is the storage space corresponding to the first type in the first copy space; storing first data in the first copy space based on the first type specifically includes: storing first data in the first subspace based on the first type.
[0775] In this way, the first data can be stored in the first subspace of the first copy space based on the type of the first data. This makes it easier to manage the data in the first copy space according to the data type, and also makes it easier to quickly find the first data from the first subspace based on the type of the first data during the subsequent pasting process, thus improving the data transmission efficiency.
[0776] It should be noted that the first subspace can be a pre-defined virtual storage space / physical storage space within the first copy space.
[0777] In one possible implementation, the method further includes: setting the priority of the first data to the highest priority, where the first priority is the highest priority among all data in the first subspace or the first copy space.
[0778] This allows you to set the priority of the first data when storing it, and then determine the object to be pasted (or a subset of the objects to be pasted) from the specified type (e.g., the first type) of data based on the priority during the subsequent pasting process.
[0779] In one possible implementation, before pasting the first data in the first area, the method further includes: determining from the first copy space that the object to be pasted includes the first data based on a first type.
[0780] In this way, if it is determined that the type of the object to be pasted corresponding to the first region includes the first type, the object to be pasted (or a subset of the objects to be pasted) can be determined from all the data of the first type stored in the first copy space based on the first type.
[0781] In one possible implementation, determining the object to be pasted from the first copy space based on the first type includes first data, specifically: determining the object to be pasted from the first copy space based on the first type includes first data, wherein the first data is the highest priority data among the first type of data stored in the first copy space.
[0782] In this way, if it is determined that the type of the object to be pasted corresponding to the first region includes the first type, the data with higher priority can be determined as the object to be pasted (or a subset of the objects to be pasted) from all the data of the first type stored in the first copy space based on the data priority.
[0783] In one possible implementation, determining that the object to be pasted from the first copy space includes first data based on a first type specifically includes: determining one or more data from the first copy space based on the first type, wherein the one or more data includes the first data; outputting a first paste prompt, wherein the first paste prompt includes a first data option, wherein the first data option corresponds to the first data; and receiving an operation from a user selecting a first data option, wherein the operation is used to indicate that the object to be pasted includes the first data.
[0784] Using the above implementation method, one or more data of a specified type can be determined from the first copy space based on the first type, and the object to be pasted (or a subset of the objects to be pasted) can be determined from the one or more data based on the user's selection. In this way, more possible choices can be provided to the user, allowing the user to select the object to paste.
[0785] In one possible implementation, determining the type of the object to be pasted as a first type based on the first region specifically includes: determining the first region type of the first region; and determining the type of the object to be pasted corresponding to the first region type as including the first type based on the correspondence between region type and pasted object type.
[0786] In this way, the type of the pasted object can be determined from the correspondence between the area of the paste operation and the type of the pasted object.
[0787] In one possible implementation, the method further includes: receiving a first input operation from a user for a second region; displaying second data in the second region in response to the first input operation; identifying the second data as a subset of the first data based on a first copy space; outputting a second paste prompt, the second paste prompt being used to ask the user whether to paste the first data; and displaying the first data in the second region upon receiving the user's operation to paste the first data.
[0788] For example, the specific details of this implementation can also be found in the above description. Figure 21 The relevant descriptions in the illustrated embodiments. For example, the second data can be as described above. Figure 21 Data 5 in the illustrated embodiment, the second region can be as described above. Figure 21 Region 4 in the illustrated embodiment.
[0789] It is understood that the subject executing the above implementation method can be the first electronic device or other electronic devices with copying rights to the first copying space, and this application does not limit it here.
[0790] Using the above implementation, when the user's input is detected to be a subset of any data (e.g., the first data) in the first copy space, the user can be prompted whether to paste the data. In this way, the first copy space can also support input suggestion functionality, thereby reducing input time and improving input efficiency for users in their daily information input processes.
[0791] In one possible implementation, after receiving a first copy operation from the user for the first data, the method further includes: receiving a second copy operation from the user for the first data; and in response to the second copy operation, determining that the second copy operation is invalid based on the first data.
[0792] In this way, if both the first and second copy operations target the first data, the second copy operation can be determined to be invalid, reducing redundant steps and improving copy efficiency.
[0793] In one possible implementation, after determining that the second copy operation is invalid based on the first data, the priority of the first data in the first copy space is adjusted to the highest priority among the first type of data.
[0794] In one possible implementation, before storing the first data into the first copy space, the method further includes: determining that the first data is incomplete based on the first type; and completing the first data based on the first type and the first data.
[0795] For example, the specific process for completing incomplete data during the copying process can also refer to the above. Figure 12 The relevant content in the illustrated embodiment.
[0796] Using the above implementation method, if the first piece of data being copied is incomplete, it can be completed before storing the completed data. This allows for automatic identification and completion of incomplete data during the copying process, preventing data loss during subsequent pasting and improving data transfer efficiency.
[0797] In one possible implementation, pasting the first data in the first area specifically includes: determining that the first data is incomplete based on the first type; completing the first data based on the first type and the first data, and pasting the completed first data in the first area.
[0798] For example, the specific process for completing incomplete data during the pasting process can also be referred to the above. Figure 13A The relevant content in the illustrated embodiment.
[0799] Using the above implementation method, if incomplete first data to be pasted is detected during the pasting process, the first data can be completed before pasting the completed first data. Optionally, the incomplete first data in the first copy space can also be replaced with the completed first data. In this way, incomplete data can be automatically identified and completed during the pasting process, avoiding data loss and improving data transmission efficiency.
[0800] In one possible implementation, after receiving a first copy operation from a user for the first data, the method further includes: receiving a third copy operation from a user for the third data; determining that the type of the third data includes a second type; and storing the third data in the first copy space based on the second type.
[0801] In this way, different types of data can be stored in the first copy space based on the data type, which facilitates the subsequent management of different types of data in the first copy space and the subsequent quick search of data based on type.
[0802] In one possible implementation, the method further includes: detecting that a first deletion condition is met; determining the first data to be deleted corresponding to the first deletion condition based on the correspondence between the deletion condition and the data to be deleted; and deleting the first data to be deleted from the first copy space.
[0803] For example, the specific process for cleaning up the data in the first copy space can also refer to the above. Figures 14A-15 The relevant details in the illustrated embodiments will not be repeated here.
[0804] Using the above implementation method, one or more specified data items can be deleted from the first copy space based on the met deletion conditions. This cleans up the data in the first copy space, preventing it from becoming full and affecting subsequent data transmission.
[0805] In one possible implementation, the deletion conditions include any one or more of the following: the first electronic device is powered on, the first electronic device is powered off, a user operation to clear the first copy space is received, the remaining memory of the first copy space is detected to be less than the remaining threshold, and the number of data of any type in the first copy space is detected to reach the number threshold corresponding to that type.
[0806] In this way, you can delete a specific single piece of data in the first copy space, or delete one or more pieces of data of a specified type in the first copy space, or delete all data in the first copy space.
[0807] In one possible implementation, receiving a user's operation to clean up the first copy space specifically includes one or more of the following: receiving a user's operation to delete specified data in the first copy space, receiving a user's operation to delete all data of the first type in the first copy space, and receiving a user's operation to delete all data in the first copy space.
[0808] In this way, the data to be deleted can be determined based on the user's actions, and the data selected by the user can be deleted.
[0809] In one possible implementation, the method further includes: establishing a communication connection with a second electronic device; outputting a first setting prompt, the first setting prompt being used to prompt the second electronic device to set permissions for the first copy space; receiving a first setting operation; and in response to the first setting operation, granting the second electronic device copy permissions for the first copy space.
[0810] For example, the second electronic device may be the electronic device 200 in the above embodiments.
[0811] As another example, the process of the first electronic device authorizing the second electronic device can refer to the above. Figure 11 The relevant steps in the illustrated embodiment.
[0812] In this way, the first electronic device can grant other electronic devices (such as the second electronic device) relevant permissions to the first copy space, such as copy permissions.
[0813] When the second electronic device has copy permission in the first copy space, the second electronic device can respond to the user's paste operation, determine the type of the object to be pasted based on the paste area, and determine the object to be pasted from the first copy space based on the type of the object to be pasted, thereby realizing cross-device data transmission.
[0814] The following describes a chip system provided by an embodiment of this application.
[0815] This application also provides a chip system including at least one processor for implementing the functions involved in the electronic device 100 in any of the above embodiments.
[0816] In one possible design, the chip system also includes a memory for storing program instructions and data, which may be located within or outside the processor.
[0817] The chip system can consist of chips or include chips and other discrete components.
[0818] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.
[0819] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application embodiment does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application embodiment does not specifically limit the type of memory or the arrangement of the memory and processor.
[0820] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0821] It is understood that the above chip system is only an example. In the embodiments of this application, the chip system may also include more, fewer, or different devices than those in the above embodiments. This application does not limit the scope of the invention.
[0822] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.
[0823] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0824] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0825] In summary, the above description is merely an embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made based on the disclosure of this application should be included within the scope of protection of this application.
Claims
1. A data transmission method, applied to a first electronic device, characterized in that, The method includes: Receive a user's first copy operation for first data and store the first data in a first copy space, wherein the first data includes data of a first type; Receive the user's first paste operation for the first area; Based on the first region, the type of the object to be pasted is determined to include the first type; Paste the first data into the first area.
2. The method according to claim 1, characterized in that, Before storing the first data to the first copy space, the method further includes: In response to the first copy operation, the validity of the first copy operation is determined based on the first data.
3. The method according to claim 2, characterized in that, The step of determining that the first copy operation is valid based on the first data specifically includes: It was determined that no copy operation for the first data was received prior to the first copy operation; It is determined that there is no data in the first copy space that is the same as or similar to the first data.
4. The method according to any one of claims 1-3, characterized in that, The storage of the first data in the first copy space specifically includes: The type of the first data includes the first type; The first data is stored in the first copy space based on the first type.
5. The method according to claim 4, characterized in that, The first copy space includes a first subspace, which is the storage space corresponding to the first type in the first copy space; The storage of the first data in the first copy space based on the first type specifically includes: The first data is stored in the first subspace based on the first type.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: The priority of the first data is set to the first priority, which is the highest priority among all data in the first subspace or the first copy space.
7. The method according to any one of claims 1-6, characterized in that, Before pasting the first data into the first area, the method further includes: Based on the first type, the object to be pasted is determined from the first copy space to include the first data.
8. The method according to claim 7, characterized in that, The step of determining the object to be pasted from the first copy space based on the first type includes the first data, specifically including: Based on the first type, the object to be pasted is determined from the first copy space to include the first data, wherein the first data is the highest priority data among the first type of data stored in the first copy space.
9. The method according to claim 7, characterized in that, The step of determining the object to be pasted from the first copy space based on the first type includes the first data, specifically including: One or more data are determined from the first copy space based on the first type, wherein the one or more data includes the first data; Output a first paste prompt, which includes a first data option, and the first data option corresponds to the first data; The system receives a user's selection of the first data option, the operation indicating that the object to be pasted includes the first data.
10. The method according to any one of claims 1-9, characterized in that, The step of determining the type of the object to be pasted as the first type based on the first region specifically includes: Determine the first region type of the first region; Based on the correspondence between region type and paste object type, it is determined that the paste object type corresponding to the first region type includes the first type.
11. The method according to any one of claims 1-10, characterized in that, The method further includes: Received the user's first input operation for the second area; In response to the first input operation, the second data is displayed in the second area; Based on the first copy space, the second data is identified as a subset of the first data; Output a second paste prompt, which asks the user whether to paste the first data; Upon receiving the user's action to paste the first data, the first data is displayed in the second area.
12. The method according to any one of claims 1-11, characterized in that, After receiving the user's first copy operation for the first data, the method further includes: Receive a second copy operation from the user for the first data; In response to the second copy operation, the second copy operation is determined to be invalid based on the first data.
13. The method according to any one of claims 1-12, characterized in that, Before storing the first data into the first copy space, the method further includes: Based on the first type, it is determined that the first data is incomplete; The first data is completed based on the first type and the first data.
14. The method according to any one of claims 1-12, characterized in that, Pasting the first data in the first area specifically includes: Based on the first type, it is determined that the first data is incomplete; Complete the first data based on the first type and the first data, and paste the completed first data in the first area.
15. The method according to any one of claims 1-14, characterized in that, After receiving the user's first copy operation for the first data, the method further includes: Receives a third copy operation from the user for third-party data; The type of the third data is determined to include the second type; The third data is stored in the first copy space based on the second type.
16. The method according to any one of claims 1-15, characterized in that, The method further includes: The first deletion condition has been met. Based on the correspondence between deletion conditions and data to be deleted, the first data to be deleted corresponding to the first deletion condition is determined; Delete the first data to be deleted from the first copy space.
17. The method according to claim 16, characterized in that, The deletion criteria include one or more of the following: The first electronic device is powered on, the first electronic device is powered off, the user's operation to clear the first copy space is received, the memory balance of the first copy space is detected to be less than the balance threshold, and the number of any type of data in the first copy space is detected to have reached the number threshold corresponding to that type.
18. The method according to any one of claims 1-17, characterized in that, The method further includes: Establish a communication connection with the second electronic device; Output a first setting prompt, which is used to prompt the second electronic device to set permissions for the first copy space; Receive the first setting operation; In response to the first setting operation, the second electronic device is granted copying permission to the first copy space.
19. A data transmission system, comprising a first electronic device and a second electronic device, characterized in that, The first electronic device includes a first copy space, the first electronic device has write permission to the first copy space, and the second electronic device has copy permission to the first copy space; The first electronic device is used to receive a first copy operation from a user for first data and store the first data in a first copy space, wherein the first data includes data of a first type; The second electronic device is used to receive a second paste operation from the user for the third area; The second electronic device is also used to determine the type of the object to be pasted, including the first type, based on the third region; The second electronic device is also used to paste the first data in the third area.
20. The system according to claim 19, characterized in that, The first electronic device is also used to establish a communication connection with the second electronic device; The first electronic device is also used to grant the second electronic device copying permissions to the first copy space.
21. An electronic device, characterized in that, It includes one or more processors and one or more memories; wherein the one or more memories are coupled to one or more processors, and the one or more memories are used to store computer instructions, which, when the one or more processors execute the computer instructions, implement the data transmission method of any one of claims 1-18.
22. A chip system, characterized in that, It includes a processing circuit and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit them to the processing circuit, and the processing circuit is used to execute the code instructions to perform the data transmission method according to any one of claims 1-18.
23. A readable storage medium, characterized in that, The device stores computer instructions that, when executed by a processor, implement the data transmission method according to any one of claims 1-18.
24. A computer program product, characterized in that, It includes computer instructions that, when executed by a processor, implement the data transmission method according to any one of claims 1-18.