Data transmission method, system and device, electronic equipment and storage medium
By classifying data when replacing electronic devices and using different transmission resources, the problem of data transmission time is solved, and efficiency and flexibility are improved.
Patent Information
- Application Number
- CN202411296879.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2025-01-03
AI Technical Summary
When replacing electronic devices, the data transmission time is too long, which leads to the problem of the user waiting for too long.
By responding to user input in the first electronic device, classifying data into multiple types, and using different target data transmission resources to transmit it to the second electronic device according to different types of data, ensuring that data with high user needs is preferred for high-efficiency resources. Conduct transmission.
Improves data transmission efficiency, saves users' waiting time, and improves data transmission flexibility.
Smart Images

Figure CN119254704A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of data transmission, and specifically relates to a data transmission method, system, device, electronic device and storage medium. Background Art
[0002] At present, electronic devices have become indispensable tools for people. With the increasingly fierce competition in electronic devices, the replacement of electronic devices is also accelerating. Now, due to the demand for high-quality pictures and videos by users and the increasingly complex application functions of application manufacturers, the storage space required by electronic devices is also increasing. The read-only memory (ROM) of electronic devices has gradually increased from 64G to 512G or 1TB, or even larger space.
[0003] As users continue to use electronic devices, they accumulate more and more private data, such as photos, videos, applications, etc. When users replace their electronic devices with new ones, their private data needs to be transferred from the old electronic devices to the new ones. However, due to the large amount of private data, the transmission time will be relatively long, causing users to wait too long. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a data transmission method, system, device, electronic device and storage medium, so as to save the user's waiting time when changing phones.
[0005] In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a first electronic device, and the method includes:
[0006] receiving a first input from a user;
[0007] In response to the first input, classify the data in the first electronic device to obtain multiple types of data;
[0008] For data of a target type, a target data transmission resource corresponding to the data of the target type is used to transmit the data of the target type to a second electronic device, wherein the multiple types of data include the data of the target type.
[0009] In a second aspect, an embodiment of the present application provides a data transmission method, which is applied to a second electronic device, and the method includes:
[0010] In the case of determining that data transmitted by the first electronic device is received, determining a target type of the data;
[0011] The target data receiving resource corresponding to the target data type is used to receive the target data type.
[0012] In a third aspect, an embodiment of the present application provides a data transmission system, which is deployed in a first electronic device, and includes:
[0013] an application layer, the application layer including at least one application program, the application layer including application data of the at least one application program, and the application data of the at least one application program including multiple types of data;
[0014] a framework layer, the framework layer being used to determine a transmission priority of application data of a target type and a target data transmission resource for transmitting the application data of the target type, and to send the target data transmission resource to the hardware layer, wherein the plurality of types include the target type;
[0015] A hardware layer, wherein the hardware layer is used to configure hardware resources as the target data transmission resources so as to transmit the target type of application data to the second electronic device through the target data transmission resources according to the transmission priority of the target type of application data.
[0016] In a fourth aspect, an embodiment of the present application provides a data transmission device, applied to a first electronic device, the device comprising:
[0017] A first receiving module, used to receive a first input from a user;
[0018] a classification module, configured to classify the data in the first electronic device in response to the first input to obtain data of multiple types;
[0019] The data transmission module is used to transmit the target type of data to a second electronic device by using a target data transmission resource corresponding to the target type of data, wherein the multiple types of data include the target type of data.
[0020] In a fifth aspect, an embodiment of the present application provides a data transmission device, which is applied to a second electronic device, and the device includes:
[0021] A first determining module, configured to determine a target type of the data when it is determined that data transmitted by the first electronic device is received;
[0022] The data receiving module is used to receive the data of the target type by using the target data receiving resources corresponding to the data of the target type.
[0023] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect and / or the steps of the method described in the second aspect are implemented.
[0024] In the seventh aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the method described in the first aspect, and / or the method described in the second aspect.
[0025] In an eighth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the first aspect and / or the method described in the second aspect.
[0026] In an embodiment of the present application, when it is necessary to transfer data in a first electronic device to a second electronic device, the first electronic device can classify the data that needs to be transmitted in the first electronic device in response to a first input from a user to obtain multiple types of data, and then different target data transmission resources can be used to transmit different types of data to the second electronic device. In this way, the scheme of the embodiment of the present application transmits the data required by the user to the second electronic device using different target data transmission resources according to the needs of the user. In this way, data with high user demand can be transmitted using higher data transmission resources to ensure priority use of data with high user demand, thereby improving data transmission efficiency and saving the user's waiting time. In addition, the embodiment of the present application uses different target data transmission resources to transmit the data to the second electronic device according to the needs of the user, thereby improving the flexibility of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 is a structural schematic diagram of a data transmission system provided by some embodiments of the present application;
[0028] Figure 2 is a flowchart of a data transmission method provided by some embodiments of the present application;
[0029] Figure 3 is a flowchart of a data transmission method provided by some embodiments of the present application;
[0030] Figure 4 is a flowchart of a data transmission method provided by some embodiments of the present application;
[0031] Figure 5 is a flowchart of a data transmission method provided by some embodiments of the present application;
[0032] Figure 6 is a schematic diagram of the structure of a data transmission system provided by some embodiments of the present application;
[0033] Figure 7is a schematic diagram of the structure of a data transmission device provided in some embodiments of the present application;
[0034] Figure 8 is a schematic diagram of the structure of a data transmission device provided in some embodiments of the present application;
[0035] Fig. 9 is a schematic diagram of the structure of an electronic device provided by some embodiments of the present application;
[0036] Fig.10 It is a schematic diagram of the structure of an electronic device shown in some embodiments of the present application. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0038] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0039] As described in the background technology section, the prior art has the problem that when an electronic device is replaced, the data transmission time between two electronic devices is too long, causing the user to wait for a long time. In order to solve the above problem, the embodiments of the present application provide a data transmission method, system, device, electronic device and storage medium. When it is necessary to transfer data in a first electronic device to a second electronic device, the first electronic device can classify the data that needs to be transmitted in the first electronic device in response to the user's first input to obtain multiple types of data. Then, for different types of data, different target data transmission resources can be used to transmit them to the second electronic device. In this way, the scheme of the embodiments of the present application transmits the data required by the user to the second electronic device using different target data transmission resources according to the user's needs. In this way, data with high user demand can be transmitted using higher data transmission resources to ensure priority use of data with high user demand, thereby improving data transmission efficiency and saving user waiting time. In addition, the embodiments of the present application use different target data transmission resources to transmit it to the second electronic device according to the user's needs, thereby improving the flexibility of data transmission.
[0040] The technical solution of the embodiments of the present application can be applied to the scenario of replacing an electronic device. For example, the user previously used electronic device A and now replaces the electronic device used with electronic device B. It is necessary to transfer the data in electronic device A, such as pictures in the photo album, chat records in the instant messaging application, and contact information of contacts in the phone book, to the second electronic device.
[0041] Before introducing the data transmission method provided in the embodiment of the present application, the data transmission system for implementing the data transmission method in the embodiment of the present application is first introduced.
[0042] Figure 1 It is a structural diagram of a data transmission system provided in an embodiment of the present application. The data transmission system 100 may include a first electronic device 110 and a second electronic device 120. Here, the first electronic device 110 and the second electronic device 120 may establish a communication connection through a network 130.
[0043] With reference to the above example, the first electronic device may be electronic device A previously used by the user, and the second electronic device may be electronic device B that the user is going to replace with.
[0044] In some embodiments of the present application, the first electronic device and the second electronic device may be, but are not limited to, a personal computer (PC), a smart phone, a tablet computer, or a personal digital assistant (PDA).
[0045] Figure 2 is a flow chart of a data transmission method provided in an embodiment of the present application. The execution subject of the data transmission method may be the above-mentioned Figure 1 Data transmission systems in Figure 2 As shown, the data transmission method provided in the embodiment of the present application may include steps 210 to 250.
[0046] Step 210: The first electronic device receives a first input from a user.
[0047] Among them, the first input is an input to the first electronic device, and the above-mentioned first input is used to transfer data in the first electronic device to the second electronic device. The first input can be a first operation. Exemplarily, the above-mentioned first input includes but is not limited to: the user's touch input to the first electronic device through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the above-mentioned first input can be: the user's touch input to the first electronic device.
[0048] Step 220: The first electronic device classifies the data in the first electronic device in response to the first input to obtain data of multiple types.
[0049] In some embodiments of the present application, the data in the first electronic device may include, but is not limited to, application data of at least one application in the first electronic device.
[0050] Step 230: The first electronic device transmits the target type of data to the second electronic device using the target data transmission resources corresponding to the target type of data.
[0051] The target type may be one of multiple types, that is, multiple types of data may include data of the target type.
[0052] The target data transmission resources may be data transmission resources corresponding to the target type of data in the first electronic device, and specifically may be hardware resources and software resources in the first electronic device, such as but not limited to resources of the central processing unit (CPU) of the first electronic device, resources of random access memory (RAM), and resources of wireless Internet access (WiFi).
[0053] Step 240: When the second electronic device determines that it has received the data transmitted by the first electronic device, it determines the target type of the data.
[0054] Step 250: The second electronic device receives data of the target type using a target data receiving resource corresponding to the data of the target type.
[0055] Among them, the target data receiving resources can be data receiving resources corresponding to the target type of data in the second electronic device, specifically hardware resources and software resources in the second electronic device, such as but not limited to CPU resources, RAM resources, WiFi resources, etc. of the second electronic device.
[0056] In an embodiment of the present application, when it is necessary to transfer data in a first electronic device to a second electronic device, the first electronic device can classify the data that needs to be transmitted in the first electronic device in response to a first input from a user to obtain multiple types of data, and then different target data transmission resources can be used to transmit different types of data to the second electronic device. When the second electronic device determines that it has received data transmitted by the first electronic device, it can determine the target type of the transmitted data, and then the second electronic device uses the target data receiving resources corresponding to the target type of data to receive the target type of data. In this way, the scheme of the embodiment of the present application transmits the data required by the user to the second electronic device using different target data transmission resources according to the needs of the user. In this way, data with high user demand can be transmitted using higher data transmission resources to ensure priority use of data with high user demand, thereby improving data transmission efficiency and saving the user's waiting time. In addition, the embodiment of the present application uses different target data transmission resources to transmit it to the second electronic device according to the needs of the user, thereby improving the flexibility of data transmission.
[0057] The data transmission method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0058] Figure 3is a flow chart of a data transmission method provided in an embodiment of the present application, and the data transmission method can be applied to the above Figure 1 The first electronic device 110 in FIG. Figure 3 As shown, the data transmission method provided in the embodiment of the present application may include steps 310 to 330.
[0059] Step 310: Receive a first input from a user.
[0060] In some embodiments of the present application, in order to improve the security of data transmission, step 310 may specifically include:
[0061] When it is determined that the first electronic device is connected to the second electronic device, a first input of the user for the first inquiry information is received.
[0062] The inquiry information here may be information for inquiring whether to transfer the data in the first electronic device to the second electronic device.
[0063] In some embodiments of the present application, when it is determined that a connection is established between the first electronic device and the second electronic device, the first electronic device may display a first inquiry message. Specifically, the inquiry message may be a pop-up box inquiring whether to transfer data of the first electronic device to the second electronic device.
[0064] Then, a first input of the user to the first inquiry information is received, for example, the user clicks a "yes" control in a pop-up box asking whether to transfer the data of the first electronic device to the second electronic device.
[0065] In an embodiment of the present application, when it is determined that a connection is established between a first electronic device and a second electronic device, a first input of a user for first inquiry information is received. Thus, according to user needs, the operation of transmitting data from the first electronic device to the second electronic device is performed only when the first input of the user for the first inquiry information is received, thereby improving the security of data transmission.
[0066] Step 320: In response to the first input, classify the data in the first electronic device to obtain multiple types of data.
[0067] In some embodiments of the present application, after receiving the first input from the user, the data in the first electronic device can be classified in response to the first input to obtain multiple types of data. The data in the first electronic device here can be data of various applications, such as but not limited to pictures in an album, chat records in an instant messaging application, and contact information of contacts in a phone book.
[0068] In some embodiments of the present application, in order to improve the data classification efficiency and flexibility of the first electronic device, step 320 may specifically include:
[0069] Classifying the data in the first electronic device according to the frequency of data use to obtain multiple types of data;
[0070] and / or,
[0071] In response to a second input from the user, the data in the first electronic device is divided into a plurality of types of data.
[0072] Among them, the second input is an input of data in the first electronic device, and the above-mentioned second input is used to divide the data in the first electronic device into multiple types of data, and the second input can be a second operation. Exemplarily, the above-mentioned second input includes but is not limited to: the user's touch input of the data in the first electronic device through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the above-mentioned second input can be: the user's click input of the data in the first electronic device.
[0073] In some embodiments of the present application, the first electronic device can automatically classify the data in the first electronic device directly according to the frequency of use of its data by the user to obtain multiple types of data. Specifically, the data with high usage frequency can be classified into one category, and the data with less high usage frequency can be classified into another category. For example, if the user often uses an information push application to browse various push information, the information push application can be classified into one category, and the data of other applications can be classified into another category.
[0074] It should be noted that when the first electronic device automatically classifies the data therein, it may not be classified according to the frequency of use of the data by the user, but rather classified according to the importance of the data in the first electronic device to the user. For example, although the user often uses the information push application to browse various push information, when the first electronic device is replaced, the contact information of the contacts in the phone book and the pictures in the photo album belong to the user's private data and need to be transferred to the second electronic device as soon as possible. Therefore, the contact information of the contacts in the phone book and the pictures in the photo album can be classified into one category, and other data that does not belong to the user's private data can be classified into another category.
[0075] It should be noted that when the first electronic device automatically divides the data therein, it is not limited to the two division bases listed above, but can also be other division bases. The specific rules for automatically dividing the data in the first electronic device can be set according to user needs and are not limited in the embodiments of the present application.
[0076] In some embodiments of the present application, when classifying data in the first electronic device, in addition to automatic classification by the first electronic device, the user can also manually classify according to user needs, that is, the user can choose which data to classify. For example, when the user changes the first electronic device, during the data transmission process, he does not want to wait for the data transmission, but wants to play with the second electronic device for a while, such as watching the news pushed by the push information application and the video played by the video player, etc. Therefore, although the user usually uses more instant messaging applications, at this time the user can manually classify the data in the push information application and the video player into one category, and classify other data into another category.
[0077] In some embodiments of the present application, when dividing the data in the first electronic device into different types of data, a combination of the above two methods can also be used, that is, after the first electronic device automatically divides the data in the first electronic device, the user can also manually adjust the automatically divided data.
[0078] It should be noted that there is no limit to the number of types of data divided by the above classification method, that is, the data in the first electronic device can be divided into three types of data, or the data in the first electronic device can be divided into five types of data, or the data in the first electronic device can be divided into six types of data. The specific number can be set according to user needs and is not limited in the embodiments of the present application.
[0079] In the embodiment of the present application, by automatically classifying the data in the first electronic device according to the frequency of data use, multiple types of data are obtained, so that the data in the first electronic device can be quickly classified, and the data classification efficiency in the first electronic device is improved. By responding to the second input of the user, the data in the first electronic device is divided into multiple types of data, so that the data in the first electronic device can be classified according to the user's needs, and the classification flexibility of the data in the first electronic device is improved.
[0080] Step 330: For the target type of data, use the target data transmission resource corresponding to the target type of data to transmit the target type of data to the second electronic device.
[0081] In some embodiments of the present application, different data transmission resources may be sampled to transmit different types of data, thereby improving the flexibility of data transmission.
[0082] In some embodiments of the present application, the target type of data may include data with a user usage priority of a first priority. In order to improve the transmission efficiency of the data with a user usage priority of the first priority, before the target data transmission resource corresponding to the target type of data is used to transmit the target type of data to the second electronic device, the method involved may further include:
[0083] The system available resources of the first electronic device are used as target data transmission resources for the data of the first priority level.
[0084] Among them, the system available resources of the first electronic device may be system resources available in the first electronic device, specifically hardware resources and software resources in the first electronic device, such as but not limited to CPU resources, RAM resources, WiFi resources, etc. of the first electronic device.
[0085] In some embodiments of the present application, when it is necessary to transmit data with a user usage priority of the first priority, all system available resources of the first electronic device can be used to transmit the data with the user usage priority of the first priority, that is, the system available resources in the first electronic device can be configured as the highest priority for transmitting the data with the user usage priority of the first priority.
[0086] In an embodiment of the present application, when it is necessary to transmit data with a user usage priority of the first priority, the system available resources of the first electronic device are used as the target data transmission resources for the data with the first priority. This ensures that the data with the user usage priority of the first priority can be transmitted to the second electronic device as soon as possible, saving the transmission time of the data with the user usage priority of the first priority, improving the transmission efficiency of the data with the user usage priority of the first priority, and saving the user's waiting time for the transmission of the data with the user usage priority of the first priority.
[0087] In some embodiments of the present application, the target type of data may include data with a user usage priority of a second priority, where the first priority may be higher than the second priority; in order to improve the user experience, before the target data transmission resource corresponding to the target type of data is used to transmit the target type of data to the second electronic device, the method involved may further include:
[0088] Acquiring temperature information and system resource usage information of the first electronic device;
[0089] According to the system resource usage information and the temperature information, data transmission resources are configured for the second priority data to obtain target data transmission resources.
[0090] The temperature information of the first electronic device may be information used to represent the temperature of the first electronic device.
[0091] The system resource usage information of the first electronic device may be information used to characterize the usage of the system resources of the first electronic device, such as the usage of the CPU, RAM, and WiFi of the first electronic device.
[0092] In some embodiments of the present application, data transmission resources can be configured for data with a user usage priority of the second priority based on temperature information and system resource usage information of the first electronic device, and target data transmission resources can be obtained to transmit data with a user usage priority of the second priority based on the target data transmission resources.
[0093] It should be noted that when the first electronic device transmits data with a second priority level, it must ensure that the transmission of data with a first priority level has been completed, so as to facilitate the rapid transmission of data with a first priority level.
[0094] In an embodiment of the present application, data transmission resources are configured for data with a user usage priority of the second priority based on the temperature information and system resource usage information of the first electronic device to obtain target data transmission resources. In this way, when transmitting data with a user usage priority of the second priority, priority is given to ensuring that the temperature information and system resource usage information of the first electronic device are not over-saturated, thereby ensuring the normal and smooth use of the first electronic device and improving the user experience of the first electronic device.
[0095] In some embodiments of the present application, in order to further improve the user experience, configuring data transmission resources for the second priority data according to the usage information and the temperature information to obtain the target data transmission resources may specifically include:
[0096] Allocate the first system available resources to the application running in the foreground of the first electronic device according to the system resource usage information and the temperature information, so that the fluency of the application running in the foreground of the first electronic device reaches a first threshold;
[0097] Data transmission resources are configured for the data of the second priority level according to the available resources of the second system to obtain target data transmission resources.
[0098] The first system available resources may be a part of available resources in the system resources of the first electronic device.
[0099] The second system available resources may be system available resources remaining after the first system available resources are removed from the system resources of the first electronic device.
[0100] The first threshold may be a lower limit of a threshold that is preset so as to make the fluency of the application program running in the foreground of the first electronic device reach user satisfaction.
[0101] In some embodiments of the present application, when transmitting data with a user usage priority of the second priority, the first system available resources are first configured to the application running in the foreground of the first electronic device based on the system resource usage information and temperature information, so that the fluency of the application running in the foreground of the first electronic device reaches a first threshold, that is, while ensuring a smooth experience of the application running in the foreground of the first electronic device, the remaining available resources are used to transmit data with a user usage priority of the second priority.
[0102] In an embodiment of the present application, when transmitting data with a user usage priority of the second priority, firstly, a smooth experience of the application running in the foreground of the first electronic device is ensured, and then the remaining available resources are used to transmit data with a user usage priority of the second priority. In this way, when transmitting data with a user usage priority of the second priority, the user can smoothly use the application running in the foreground of the first electronic device. In this way, the data with a user usage priority of the second priority is transmitted, and at the same time, the smooth use of the application running in the foreground of the first electronic device by the user is not affected.
[0103] In some embodiments of the present application, in order to further improve the user experience, the above method may also include:
[0104] During the data transmission of the target type, the data transmission progress information of the target type is displayed.
[0105] The data transmission progress information may be information used to describe the transmission status of the target type of data, such as the estimated transmission completion time of the target type of data and the current transmission progress of the target type of data.
[0106] In some embodiments of the present application, during the transmission of data of the target type, transmission progress information of the data of the target type may be displayed in real time.
[0107] In an embodiment of the present application, during the transmission of target type data, the transmission progress information of the target type data is displayed in real time, so that the user can view the transmission progress information of the target type data in real time and intuitively, so that the user can understand the transmission status of the target type data in real time and intuitively, thereby improving the user's usage experience.
[0108] Figure 4is a flow chart of a data transmission method provided in an embodiment of the present application, and the data transmission method can be applied to the above Figure 1 The second electronic device 120 in FIG. Figure 4 As shown, the data transmission method provided in the embodiment of the present application may include steps 410 to 420.
[0109] It should be noted that the professional terms involved in the embodiments of the present application are consistent with those in the previous embodiments and have the same meanings, which will not be repeated here.
[0110] Step 410: When it is determined that data transmitted by the first electronic device is received, determine the target type of the data.
[0111] In some embodiments of the present application, when the second electronic device determines that it has received data transmitted by the first electronic device, it may first determine the target type of the transmitted data.
[0112] In some embodiments of the present application, when a first electronic device transmits data to a second electronic device, the data may carry a type identifier of the data, so that when the second electronic device determines the target type of the transmitted data, it can determine the target type of the transmitted data by parsing the type identifier of the data.
[0113] Step 420: Use a target data receiving resource corresponding to the target type of data to receive the target type of data.
[0114] In some embodiments of the present application, after the target type of data transmitted from the first electronic device is determined, a target data receiving resource corresponding to the data of the target type may be used to receive the data of the target type.
[0115] In an embodiment of the present application, when the second electronic device determines that it has received data transmitted by the first electronic device, it can determine the target type of the data, and then use the target data receiving resources corresponding to the target type of data to receive the target type of data. In this way, the scheme of the embodiment of the present application uses different target data receiving resources to receive the data required by the user according to the needs of the user. In this way, data with high user demand can be received using higher data receiving resources to ensure priority use of data with high user demand, improve data transmission efficiency, save users' waiting time, and the embodiment of the present application uses different target data receiving resources to receive it according to the needs of the user, thereby improving the flexibility of data reception.
[0116] In some embodiments of the present application, the target type of data may include data with a user usage priority of the first priority. In order to improve the reception efficiency of the data with the user usage priority of the first priority, before step 420, the above method may further include:
[0117] The system available resources of the second electronic device are used as target data receiving resources for the data of the first priority level.
[0118] Among them, the system available resources of the second electronic device may be system resources available in the second electronic device, specifically hardware resources and software resources in the second electronic device, such as but not limited to CPU resources, RAM resources, WiFi resources, etc. of the second electronic device.
[0119] In some embodiments of the present application, when it is necessary to receive data with a first priority level for user usage, all system available resources of the second electronic device can be used to receive the data with a first priority level for user usage, that is, the system available resources in the second electronic device can be configured to the highest priority level for receiving data with a first priority level for user usage.
[0120] In an embodiment of the present application, when it is necessary to receive data with a user usage priority of the first priority, the system available resources of the second electronic device are used as the target data receiving resources for the data with the first priority. This ensures that the data with the user usage priority of the first priority is received as soon as possible, saves the receiving time of the data with the user usage priority of the first priority, improves the receiving efficiency of the data with the user usage priority of the first priority, and saves the user's waiting time for receiving the data with the user usage priority of the first priority.
[0121] In some embodiments of the present application, the target type of data may include data with a user usage priority of the second priority, where the first priority is higher than the second priority. In order to improve the user experience, before step 420, the above method may further include:
[0122] Acquiring temperature information and system resource usage information of the second electronic device;
[0123] According to the system resource usage information and the temperature information, data receiving resources are configured for the data of the second priority level to obtain target data receiving resources.
[0124] The temperature information of the second electronic device may be information used to represent the temperature of the second electronic device.
[0125] The system resource usage information of the second electronic device may be information used to characterize the usage of the system resources of the second electronic device, such as the usage of the CPU, RAM, and WiFi of the second electronic device.
[0126] In some embodiments of the present application, data receiving resources can be configured for data with a user usage priority of the second priority based on temperature information and system resource usage information of the second electronic device to obtain target data receiving resources so as to receive data with a user usage priority of the second priority based on the target data receiving resources.
[0127] It should be noted that when the second electronic device receives data with a second priority level from the user, it must ensure that the reception of data with a first priority level from the user has been completed and restored, that is, it must ensure that the data with a first priority level from the user can be used normally on the second electronic device, so as to facilitate the quick reception and use of data with a first priority level from the user.
[0128] In an embodiment of the present application, data receiving resources are configured for data with a second priority level for the user based on the temperature information and system resource usage information of the second electronic device to obtain target data receiving resources. In this way, when receiving data with a second priority level for the user, priority is given to ensuring that the temperature information and system resource usage information of the second electronic device are not over-saturated, thereby ensuring the normal and smooth use of the second electronic device and improving the user experience of the second electronic device.
[0129] In some embodiments of the present application, in order to further improve the user experience, configuring data receiving resources for the second priority data according to the usage information and the temperature information to obtain the target data receiving resources may specifically include:
[0130] Allocating the third system available resources to the application running in the foreground of the second electronic device according to the system resource usage information and the temperature information, so that the fluency of the application running in the foreground of the second electronic device reaches a first threshold;
[0131] The data receiving resources are configured for the data of the second priority level according to the available resources of the fourth system to obtain the target data receiving resources.
[0132] The third system available resource may be a part of the available resources in the system resources of the second electronic device.
[0133] The fourth system available resources may be system available resources remaining after the third system available resources are removed from the system resources of the second electronic device.
[0134] In some embodiments of the present application, when receiving data with a second priority level as used by the user, the third system available resources are first allocated to the application running in the foreground of the second electronic device based on the system resource usage information and temperature information, so that the fluency of the application running in the foreground of the second electronic device reaches a first threshold, that is, while ensuring a smooth experience of the application running in the foreground of the second electronic device, the remaining available resources are used to receive data with a second priority level as used by the user.
[0135] In an embodiment of the present application, when receiving data with a user usage priority of the second priority, firstly, a smooth experience of the application running in the foreground of the second electronic device is ensured, and then the remaining available resources are used to receive data with a user usage priority of the second priority. In this way, when receiving data with a user usage priority of the second priority, the user can smoothly use the application running in the foreground of the second electronic device. In this way, the data with a user usage priority of the second priority is received, and at the same time, the smooth use of the application running in the foreground of the second electronic device by the user is not affected.
[0136] In some embodiments of the present application, in order to further improve the user experience, the above method may also include:
[0137] During the process of receiving data of the target type, the target type data receiving progress information is displayed.
[0138] The data reception progress information may be information used to describe the reception status of the target type of data, such as the estimated reception completion time of the target type of data and the current reception progress of the target type of data.
[0139] In some embodiments of the present application, during the process of receiving data of the target type, reception progress information of the data of the target type may be displayed in real time.
[0140] In an embodiment of the present application, during the process of receiving data of the target type, the reception progress information of the target type data is displayed in real time, so that the user can view the reception progress information of the target type data in real time and intuitively, so that the user can understand the reception status of the target type data in real time and intuitively, thereby improving the user's usage experience.
[0141] In order to better understand the data transmission method provided in the embodiment of the present application, the data transmission method provided in the embodiment of the present application is introduced below with a specific scenario.
[0142] The following introduces the data transmission method provided in an embodiment of the present application by taking the example of dividing the data of the first electronic device into two types of data, wherein the first type of data is data with a user usage priority of a first priority, and the second type of data is data with a user usage priority of a second priority, and the first priority is higher than the second priority.
[0143] Figure 5 is a flow chart of a data transmission method provided in an embodiment of the present application, and the data transmission method can be applied to the above Figure 1 The data transmission system in Figure 5 As shown, the data transmission method provided in the embodiment of the present application may include steps 501-519, specifically, steps 501-509 in the left box A are executed by the first electronic device, and steps 510-519 in the right box B are executed by the second electronic device.
[0144] Step 501: Receive a first input from a user.
[0145] Step 502: In response to a first input, classify data in a first electronic device to obtain data of multiple types.
[0146] The above steps 501 to 502 are consistent with steps 310 to 320 in the above embodiment, and are not described again here.
[0147] Step 503 , determine whether there is data of the first type, if so, execute step 504 , if not, execute step 506 .
[0148] Step 504: Transmit the first type of data in a speed priority mode.
[0149] In step 504, using the speed priority mode to transmit the first type of data means that all the system available resources in the first electronic device are used to transmit the first type of data, that is, in the above embodiment, the system available resources of the first electronic device are used as the target data transmission resources for the first priority data.
[0150] It should be noted that when transmitting the first type of data, if the user uses the first electronic device, an unsmooth experience such as freezing and heating may occur.
[0151] Step 505 , determine whether the transmission of the first type of data is completed, if so, execute step 506 , if not, return to execute step 504 .
[0152] In step 505, if the transmission of the first type of data is completed, the first electronic device can be used normally and smoothly; if the transmission of the first type of data is not completed, the transmission of the first type of data continues.
[0153] Step 506 , determine whether there is data of the second type, if so, execute step 507 , if not, execute step 509 .
[0154] Step 507: Transmit the second type of data in a foreground application smooth experience priority mode.
[0155] In step 507, the foreground application smooth experience priority mode is used to transmit the second type of data. Specifically, the remaining resources are used to transmit the second type of data while ensuring that the fluency of the application running in the foreground of the first electronic device is greater than a first threshold. That is, in the above embodiment, the first system available resources are configured to the application running in the foreground of the first electronic device so that the fluency of the application running in the foreground of the first electronic device reaches the first threshold; data transmission resources are configured for the second priority data according to the second system available resources to obtain the target data transmission resources.
[0156] Step 508 , determine whether the second type of data is transmitted, if so, execute step 509 , if not, return to execute step 507 .
[0157] Step 509: Data transmission is completed.
[0158] It should be noted that the execution body of the above steps 501 to 509 is the above Figure 1 The first electronic device 110 in.
[0159] Step 510 , determine whether there is data of the first type, if so, execute step 511 , if not, execute step 515 .
[0160] Step 511: Receive data of the first type in a speed priority mode.
[0161] In step 511, receiving the first type of data in speed priority mode means using all the system available resources in the second electronic device to receive the first type of data, that is, using the system available resources of the second electronic device as the target data receiving resources for the first priority data in the above embodiment.
[0162] It should be noted that when receiving the first type of data, if the user uses the second electronic device, an unsmooth experience such as freezing and heating may occur.
[0163] Step 512: determine whether the first type of data has been received. If so, execute steps 513 and 516; if not, return to execute step 511.
[0164] Step 513: Determine whether the first type of data is recovered. If so, execute step 514; if not, execute step 515.
[0165] Step 514: The second electronic device can be used normally and smoothly.
[0166] Step 515: First type of data recovery.
[0167] Step 516, determine whether there is data of the second type, if so, execute step 517, if not, execute step 519.
[0168] Step 517: Receive the second type of data in a foreground application smooth experience priority mode.
[0169] In step 517, the foreground application smooth experience priority mode is adopted to receive the second type of data. Specifically, the remaining resource users receive the second type of data while ensuring that the fluency of the application running in the foreground of the second electronic device is greater than the first threshold. That is, in the above embodiment, the third system available resources are configured to the application running in the foreground of the second electronic device so that the fluency of the application running in the foreground of the second electronic device reaches the first threshold; and data receiving resources are configured for the second priority data according to the fourth system available resources to obtain the target data receiving resources.
[0170] Step 518, determine whether the second type of data has been received, if so, execute step 519, if not, return to execute step 517.
[0171] Step 519: Data reception is completed.
[0172] It should be noted that the execution body of the above steps 510 to 519 is the above Figure 1 The second electronic device 120 in.
[0173] In some embodiments of the present application, in order to better understand the data transmission method provided in the embodiments of the present application, the embodiments of the present application also provide a data transmission system for implementing the above-mentioned data transmission method, and the system architecture of the data transmission system can be applied to the first electronic device 110 and the second electronic device 120.
[0174] like Figure 6 As shown, the system architecture of the data transmission system is deployed in the first electronic device 110 as an example for description. Figure 6 , Figure 6 In the example, multiple types of data are transformed into two types of data, which are first type of data and second type of data. Here, the first type of data is data with a first priority level for user use, and the second type of data is data with a second priority level for user use. The first priority level is higher than the second priority level, so the transmission priority level of the first type of data is higher than the transmission priority level of the second type of data.
[0175] like Figure 6 As shown, the system architecture of the data transmission system may include an application layer 610 , a framework layer 620 and a hardware layer 630 .
[0176] The application layer 610 includes at least one application program, the application layer includes application data of at least one application program, and the application data of at least one application program includes multiple types of data;
[0177] A framework layer 620, the framework layer is used to determine the transmission priority of the target type of application data and the target data transmission resource for transmitting the target type of application data, and send the target data transmission resource to the hardware layer, wherein the multiple types include the target type;
[0178] The hardware layer 630 is used to configure the hardware resources as target data transmission resources so as to transmit the target type of application data to the second electronic device through the target data transmission resources according to the transmission priority of the target type of application data.
[0179] The transmission priority of the target type of application data may be the transmission priority of the target type of application data, and the specific transmission priority of the target type of application data may be determined according to the data classification type in the above embodiment, that is, different types of data have different transmission priorities.
[0180] The hardware resources are hardware resources included in the hardware layer, such as CPU resources, RAM resources, and WiFi resources of the first electronic device.
[0181] In an embodiment of the present application, the transmission priority of the target type of application data in the application data of at least one application included in the application layer and the target data transmission resource for transmitting the target type of application data are determined based on the framework layer in the first electronic device, and the target data transmission resource is sent to the hardware layer so that the hardware layer configures the hardware resources as target data transmission resources, and transmits the target type of application data to the second electronic device through the target data transmission resource according to the transmission priority of the target type of application data. In this way, the scheme of the embodiment of the present application transmits the data required by the user to the second electronic device using different target data transmission resources according to the needs of the user. In this way, data with high user demand can be transmitted using higher data transmission resources to ensure priority use of data with high user demand, thereby improving data transmission efficiency and saving user waiting time. In addition, the embodiment of the present application transmits it to the second electronic device using different target data transmission resources according to the needs of the user, thereby improving the flexibility of data transmission.
[0182] In some embodiments of the present application, reference Figure 6The framework layer may include a scheduling service module 621, a storage service module 622, and a network service module 623. The hardware layer may include a central processor 631, a memory 632, and a network module 633. The central processor 631 may include a computing service resource module (in Figure 6 not shown);
[0183] The scheduling service module 621 is used to determine the target computing service resources of the computing service resource module, the target storage service resources of the storage service module 622, and the target network service resources of the network service module 623 that need to be scheduled to transmit the target type of application data according to the target type of application data and the system available resources of the first electronic device;
[0184] The central processor 631 is used to configure the computing service resources of the computing service resource module as target computing service resources, configure the storage service resources of the memory 632 as target storage service resources, and configure the network service resources of the network module 633 as target network service resources, and control the memory 632 to transmit the target type of application data to the second electronic device based on the target storage service resources and the network module 633 to transmit the target network service resources.
[0185] Among them, the target computing power service resources can be the computing power service resources of the scheduling computing power service resource module determined by the scheduling service module 621 based on the application data of the target type and the system available resources of the first electronic device, that is, how much computing power service resources of the computing power service resource module are needed to transmit the application data of the target type.
[0186] The target storage service resources can be the storage service resources of the scheduling storage service module 622 required to transmit the target type of application data, determined by the scheduling service module 621 based on the target type of application data and the system available resources of the first electronic device, that is, how much storage service resources of the storage service module 622 are required to transmit the target type of application data.
[0187] The target network service resources can be the network service resources of the scheduling network service module 623 required to transmit the target type of application data determined by the scheduling service module 621 based on the target type of application data and the system available resources of the first electronic device, that is, how much network service resources of the network service module 623 are required to transmit the target type of application data.
[0188] In some embodiments of the present application, the scheduling service module 621 can determine the target computing power service resources of the computing power service resource module that need to be scheduled to transmit the target type of application data, the target storage service resources of the storage service module 622, and the target network service resources of the network service module 623 based on the target type of application data and the system available resources of the first electronic device, and then use the central processor 631 to configure the computing power service resources of the computing power service resource module as the target computing power service resources, the storage service resources of the memory 632 as the target storage service resources, and the network service resources of the network module 633 as the target network service resources, and control the memory 632 to transmit the target type of application data to the second electronic device based on the target storage service resources and the network module 633 based on the target network service resources.
[0189] refer to Figure 6 , when the target type of application data includes data with a user usage priority of the first priority, when the data with the user usage priority of the first priority is transmitted to the second electronic device, the scheduling service module 621 adopts the scheduling service with the highest priority, and then determines that the computing power service resources of the computing power service resource module are the computing power service resources with the highest priority, the target storage service resources of the storage service module 622 are the storage service resources with the highest priority, and the target network service resources of the network service module 623 are the network service resources with the highest priority, so that the central processor 631 configures the computing power service resources of the computing power service resource module as the computing power service resources with the highest priority, the storage service resources of the memory 632 are the storage service resources with the highest priority, and the network service resources of the network module 633 are the network service resources with the highest priority, and controls the computing power service resource module based on the computing power service resources with the highest priority, the storage service resources based on the highest priority, and the network module 633 based on the network service resources with the highest priority to transmit the data with the user usage priority of the first priority to the second electronic device.
[0190] It can be understood that the central processing unit may include two threads, one is a control thread for controlling other modules, and the other is a processing thread for processing data. The central processing unit may configure the computing power service resources of the computing power service resource module as target computing power service resources based on the control thread, and configure the storage service resources of the memory 632 as target storage service resources, and configure the network service resources of the network module 633 as target network service resources, and based on the processing thread control the computing power service resource module based on the target computing power service resources, the memory based on the target storage service resources, and the network module based on the target network service resources to transmit the target type of application data to the second electronic device.
[0191] In an embodiment of the present application, a scheduling service module is used to determine the target computing power service resources of the computing power service resource module, the target storage service resources of the storage service module, and the target network service resources of the network service module that need to be scheduled to transmit the target type of application data according to the target type of application data and the system available resources of the first electronic device. Then, a central processing unit is used to configure the computing power service resources of the computing power service resource module as the target computing power service resources, the storage service resources of the memory as the target storage service resources, and the network service resources of the network module as the target network service resources. The computing power service resource module is controlled to transmit the target type of application data to the second electronic device based on the target computing power service resources, the memory based on the target storage service resources, and the network module based on the target network service resources. In this way, different storage service resources and network service resources can be used for transmission according to different types of application data, thereby improving the efficiency of data transmission, saving users' waiting time, and improving the flexibility of data transmission.
[0192] In some embodiments of the present application, the memory 632 may include a read-only memory (ROM) and a RAM, and application data of at least one application program is pre-stored in the ROM.
[0193] When the application data is transmitted to the second electronic device: after the memory is configured as a target storage service resource, the memory configured as the target storage service resource can be used to extract the target type of application data from the ROM and store it in the RAM;
[0194] The network module configured as a target network service resource is used to transmit the target type of application data in the RAM to the second electronic device.
[0195] In some embodiments of the present application, application data of at least one application is stored in ROM. After the memory is configured as a target storage service resource, the memory configured as a target storage service resource can extract the target type of application data from the ROM and store it in RAM, and then the network module configured as a target network service resource transfers the target type of application data in the RAM to the second electronic device.
[0196] In an embodiment of the present application, the target type of application data can be extracted from the ROM and stored in the RAM through a memory configured as a target storage service resource, and then the network module configured as a target network service resource transmits the target type of application data in the RAM to the second electronic device, thereby improving the efficiency of data transmission.
[0197] In some embodiments of the present application, the framework layer may further include a performance dynamic management module 624;
[0198] In the case where the target type of application data is application data of the second priority, the performance dynamic management module 624 determines the system available resources of the first electronic device according to the computing power service resources of the computing power service resource module, the storage service resources of the storage service module 622, the network service resources of the network service module 623 and the temperature information of the first electronic device, and sends the system available resources to the scheduling service module 621;
[0199] The scheduling service module 621 is used to determine the target computing service resources of the computing service resource module that need to be scheduled to transmit the second-priority application data, the target storage service resources of the storage service module 622, and the target network service resources of the network service module 623 based on the second-priority application data and the system available resources.
[0200] In some embodiments of the present application, the user usage priority of the application data of the second priority is lower than that of the application data of the first priority.
[0201] In some embodiments of the present application, when the target type of application data is second-priority application data, the performance dynamic management module 624 can determine the system available resources of the first electronic device based on the computing power service resources of the computing power service resource module, the storage service resources of the storage service module 622, the network service resources of the network service module 623, and the temperature information of the first electronic device, and send the system available resources to the scheduling service module 621. Then the scheduling service module 621 determines the target computing power service resources of the computing power service resource module, the target storage service resources of the storage service module 622, and the target network service resources of the network service module 623 that need to be scheduled for transmitting the second-priority application data based on the second-priority application data and the system available resources. Specifically, when the target type of application data is second-priority application data, reference can be made to the above-mentioned embodiment to configure data transmission resources for the second-priority data based on the system resource usage information and temperature information to obtain the target data transmission resources.
[0202] That is, when the target type of application data is application data of the second priority, when configuring the target computing power service resources of the computing power service resource module, the target storage service resources of the storage service module 622, and the target network service resources of the network service module 623, the remaining computing power service resources, storage service resources, and network service resources can be used to transmit the application data of the second priority while ensuring that the fluency of the application running in the foreground of the first electronic device reaches the first threshold.
[0203] In an embodiment of the present application, when the target type of application data is second-priority application data, the performance dynamic management module determines the system available resources of the first electronic device based on the computing power service resources of the computing power service resource module, the storage service resources of the storage service module, the network service resources of the network service module, and the temperature information of the first electronic device, and sends the system available resources to the scheduling service module, so that the scheduling service module determines the target computing power service resources of the computing power service resource module, the target storage service resources of the storage service module, and the target network service resources of the network service module that need to be scheduled for transmitting the second-priority application data based on the second-priority application data and the system available resources. In this way, the storage service module can be configured with the target computing power service resources, target storage service resources, and target network service resources required for transmitting the second-priority application data based on the system available resources of the first electronic device determined by the performance dynamic management module, so as to ensure that the second-priority application data can be transmitted based on its corresponding transmission resources, reduce unnecessary waste of system resources, and improve the utilization rate of system resources.
[0204] In some embodiments of the present application, reference Figure 6 The application layer 610 may further include a display module 611, wherein the display module 611 is used to display data transmission progress information of the target type during the data transmission process of the target type.
[0205] The data transmission method provided in the embodiment of the present application can be executed by a data transmission device. In the embodiment of the present application, the data transmission method executed by a data transmission device is taken as an example to illustrate the data transmission device provided in the embodiment of the present application.
[0206] Figure 7 is a schematic diagram of a data transmission device according to an exemplary embodiment. The data transmission device can be applied to the above Figure 1 The first electronic device 110 in.
[0207] like Figure 7 As shown, the data transmission device 700 may include:
[0208] A first receiving module 710, configured to receive a first input from a user;
[0209] A classification module 720, configured to classify the data in the first electronic device in response to the first input to obtain data of multiple types;
[0210] The data transmission module 730 is used to transmit the target type of data to the second electronic device by using the target data transmission resources corresponding to the target type of data, wherein the multiple types of data include the target type of data.
[0211] In an embodiment of the present application, when it is necessary to transfer data in a first electronic device to a second electronic device, the first electronic device can classify the data that needs to be transmitted in the first electronic device in response to a first input from a user to obtain multiple types of data, and then different target data transmission resources can be used to transmit different types of data to the second electronic device. In this way, the scheme of the embodiment of the present application transmits the data required by the user to the second electronic device using different target data transmission resources according to the needs of the user. In this way, data with high user demand can be transmitted using higher data transmission resources to ensure priority use of data with high user demand, thereby improving data transmission efficiency and saving the user's waiting time. In addition, the embodiment of the present application uses different target data transmission resources to transmit the data to the second electronic device according to the needs of the user, thereby improving the flexibility of data transmission.
[0212] In some embodiments of the present application, the target type of data includes data with a user usage priority of the first priority; the above-mentioned device may also include:
[0213] The first determining module is configured to use the system available resources of the first electronic device as the target data transmission resources for the data of the first priority before using the target data transmission resources corresponding to the data of the target type to transmit the data of the target type to the second electronic device.
[0214] In some embodiments of the present application, the target type of data includes data with a user usage priority of a second priority, and the first priority is higher than the second priority; the above-mentioned device may also include:
[0215] A first acquisition module, configured to acquire temperature information and system resource usage information of the first electronic device before transmitting the target type of data to the second electronic device using a target data transmission resource corresponding to the target type of data;
[0216] The second determining module is used to configure data transmission resources for the data of the second priority level according to the system resource usage information and the temperature information to obtain target data transmission resources.
[0217] In some embodiments of the present application, the second determining module is specifically configured to:
[0218] Allocating the first system available resources to the application running in the foreground of the first electronic device according to the system resource usage information and the temperature information, so that the fluency of the application running in the foreground of the first electronic device reaches a first threshold;
[0219] According to the second system available resources, data transmission resources are configured for the data of the second priority level to obtain target data transmission resources, wherein the second system available resources are the system available resources remaining after removing the first system available resources from the system resources of the first electronic device.
[0220] In some embodiments of the present application, the classification module 720 is specifically used to:
[0221] Classifying the data in the first electronic device according to the frequency of data use to obtain multiple types of data;
[0222] and / or,
[0223] In response to a second input from the user, the data in the first electronic device is divided into a plurality of types of data.
[0224] The data transmission device provided in the embodiment of the present application can achieve Figure 3 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0225] Figure 8 is a schematic diagram of a data transmission device according to an exemplary embodiment. The data transmission device can be applied to the above Figure 1 The second electronic device 120 in.
[0226] like Figure 8 As shown, the data transmission device 800 may include:
[0227] A first determining module 810 is used to determine a target type of the data when it is determined that data transmitted by the first electronic device is received;
[0228] The data receiving module 820 is used to receive the target type of data using the target data receiving resources corresponding to the target type of data.
[0229] In an embodiment of the present application, when the second electronic device determines that it has received data transmitted by the first electronic device, it can determine the target type of the data, and then use the target data receiving resources corresponding to the target type of data to receive the target type of data. In this way, the scheme of the embodiment of the present application uses different target data receiving resources to receive the data required by the user according to the needs of the user. In this way, data with high user demand can be received using higher data receiving resources to ensure priority use of data with high user demand, improve data transmission efficiency, save users' waiting time, and the embodiment of the present application uses different target data receiving resources to receive it according to the needs of the user, thereby improving the flexibility of data reception.
[0230] In some embodiments of the present application, the target type of data includes data with a user usage priority of the first priority; the above-mentioned device may also include:
[0231] The second determining module is configured to use the system available resources of the second electronic device as the target data receiving resources for the data of the first priority before using the target data receiving resources corresponding to the data of the target type to receive the data of the target type.
[0232] In some embodiments of the present application, the target type of data includes data with a user usage priority of a second priority, and the first priority is higher than the second priority; the above-mentioned device may also include:
[0233] A first acquisition module, configured to acquire temperature information and system resource usage information of the second electronic device before receiving the data of the target type using the target data receiving resource corresponding to the data of the target type;
[0234] The third determination module is used to configure data receiving resources for the data of the second priority level according to the system resource usage information and the temperature information to obtain target data receiving resources.
[0235] In some embodiments of the present application, the third determination module is specifically used to:
[0236] Allocating the third system available resources to the application running in the foreground of the second electronic device according to the system resource usage information and the temperature information, so that the fluency of the application running in the foreground of the second electronic device reaches a first threshold;
[0237] According to the fourth system available resources, data receiving resources are configured for the data of the second priority level to obtain target data receiving resources, wherein the fourth system available resources are the system available resources remaining after removing the third system available resources from the system resources of the second electronic device.
[0238] In some embodiments of the present application, the above-mentioned device may further include:
[0239] The display module is used to display the receiving progress information of the target type of data during the process of receiving the target type of data.
[0240] The data transmission device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmentedreality, AR) / virtual reality (virtualreality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personalcomputer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0241] The data transmission device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0242] The data transmission device provided in the embodiment of the present application can achieve Figure 4 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0243] Alternatively, if Fig. 9 As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901 and a memory 902, wherein the memory 902 stores programs or instructions that can be executed on the processor 901, and when the program or instructions are executed by the processor 901, the various steps of the above-mentioned data transmission method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
[0244] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0245] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0246] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0247] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0248] In electronic equipment for the above Figure 1 In the case of the first electronic device, the functions of each hardware structure are as follows:
[0249] The user input unit 1007 is used to receive a first input from a user;
[0250] Processor 1010 is used to classify the data in the first electronic device in response to the first input to obtain multiple types of data; for the data of a target type, use a target data transmission resource corresponding to the data of the target type to transmit the data of the target type to a second electronic device, wherein the multiple types of data include the data of the target type.
[0251] In this way, when it is necessary to transfer data in the first electronic device to the second electronic device, the first electronic device can classify the data that needs to be transmitted in the first electronic device in response to the user's first input to obtain multiple types of data, and then different target data transmission resources can be used to transmit different types of data to the second electronic device. In this way, the scheme of the embodiment of the present application transmits the data required by the user to the second electronic device using different target data transmission resources according to the user's needs. In this way, data with high user demand can be transmitted using higher data transmission resources to ensure priority use of data with high user demand, thereby improving data transmission efficiency and saving users' waiting time. In addition, the embodiment of the present application uses different target data transmission resources to transmit it to the second electronic device according to the user's needs, thereby improving the flexibility of data transmission.
[0252] Optionally, the target type of data includes data with a user usage priority of a first priority;
[0253] The processor 1010 is further configured to use the system available resources of the first electronic device as target data transmission resources for the data of the first priority level.
[0254] In this way, when it is necessary to transmit data with a first priority level as the user's usage priority, the system available resources of the first electronic device are used as the target data transmission resources for the first priority level data. This ensures that the data with a first priority level as the user's usage priority can be transmitted to the second electronic device as quickly as possible, saving the transmission time of the data with a first priority level as the user's usage priority, improving the transmission efficiency of the data with a first priority level as the user's usage priority, and saving the user's waiting time for the transmission of the data with a first priority level as the user's usage priority.
[0255] Optionally, the target type of data includes data with a user usage priority of a second priority, and the first priority is higher than the second priority;
[0256] Processor 1010 is further configured to obtain temperature information and system resource usage information of the first electronic device; and configure data transmission resources for the second priority data according to the system resource usage information and the temperature information to obtain target data transmission resources.
[0257] In this way, by configuring data transmission resources for data with a user usage priority of the second priority based on the temperature information and system resource usage information of the first electronic device, the target data transmission resources are obtained. In this way, when transmitting data with a user usage priority of the second priority, priority is given to ensuring that the temperature information and system resource usage information of the first electronic device are not over-saturated, thereby ensuring the normal and smooth use of the first electronic device, and improving the user experience of the first electronic device.
[0258] Optionally, the processor 1010 is further used to configure the first system available resources to the application running in the foreground of the first electronic device based on the system resource usage information and the temperature information, so that the fluency of the application running in the foreground of the first electronic device reaches a first threshold; configure data transmission resources for the second priority data based on the second system available resources to obtain target data transmission resources, and the second system available resources are the system available resources remaining after removing the first system available resources from the system resources of the first electronic device.
[0259] In this way, when transmitting data with the second priority level for user usage, the remaining available resources are used to transmit data with the second priority level for user usage, while first ensuring a smooth experience of the application running in the foreground of the first electronic device. In this way, when transmitting data with the second priority level for user usage, the user can smoothly use the application running in the foreground of the first electronic device. In this way, the data with the second priority level for user usage is transmitted, and at the same time, it will not affect the user's smooth use of the application running in the foreground of the first electronic device.
[0260] Optionally, the processor 1010 is further used to classify the data in the first electronic device according to the frequency of data usage to obtain multiple types of data; and / or, in response to a second input from a user, divide the data in the first electronic device into multiple types of data.
[0261] In this way, by automatically classifying the data in the first electronic device according to the frequency of data use, multiple types of data are obtained, so that the data in the first electronic device can be quickly classified, and the data classification efficiency in the first electronic device is improved. By responding to the user's second input, the data in the first electronic device is divided into multiple types of data, so that the data in the first electronic device can be classified according to the user's needs, and the classification flexibility of the data in the first electronic device is improved.
[0262] In electronic equipment for the above Figure 1 In the case of the second electronic device, the functions of each hardware structure are as follows:
[0263] The processor 1010 is used to determine the target type of the data when it is determined that the data transmitted by the first electronic device is received; and receive the data of the target type using the target data receiving resources corresponding to the data of the target type.
[0264] In this way, when the second electronic device determines that it has received data transmitted by the first electronic device, it can determine the target type of the data, and then use the target data receiving resources corresponding to the target type of data to receive the target type of data. In this way, the scheme of the embodiment of the present application uses different target data receiving resources to receive the data required by the user according to the user's needs. In this way, data with high user demand can be received using higher data receiving resources to ensure priority use of data with high user demand, thereby improving data transmission efficiency and saving users' waiting time. The embodiment of the present application uses different target data receiving resources to receive data according to user needs, thereby improving the flexibility of data reception.
[0265] Optionally, the target type of data includes data with a user usage priority of a first priority;
[0266] The processor 1010 is further configured to use the system available resources of the second electronic device as target data receiving resources for the data of the first priority level.
[0267] In this way, when it is necessary to receive data with a first priority level as the user's usage priority, the system available resources of the second electronic device are used as the target data receiving resources for the first priority level data. This ensures that the data with a first priority level as the user's usage priority is received as soon as possible, saving the receiving time of the data with a first priority level as the user's usage priority, improving the receiving efficiency of the data with a first priority level as the user's usage priority, and saving the user's waiting time for receiving the data with a first priority level as the user's usage priority.
[0268] Optionally, the target type of data includes data with a user usage priority of a second priority, and the first priority is higher than the second priority;
[0269] The processor 1010 is further configured to obtain temperature information and system resource usage information of the second electronic device; and configure data receiving resources for the second priority data according to the system resource usage information and the temperature information to obtain target data receiving resources.
[0270] In this way, by configuring data receiving resources for data with a second priority level for the user based on the temperature information and system resource usage information of the second electronic device, target data receiving resources are obtained. In this way, when receiving data with a second priority level for the user, priority is given to ensuring that the temperature information and system resource usage information of the second electronic device are not over-saturated, thereby ensuring the normal and smooth use of the second electronic device and improving the user experience of the second electronic device.
[0271] Optionally, the processor 1010 is further used to configure a third system available resource to an application running in the foreground of the second electronic device based on the system resource usage information and the temperature information, so that the fluency of the application running in the foreground of the second electronic device reaches a first threshold; configure data receiving resources for the second priority data based on the fourth system available resources to obtain target data receiving resources, the fourth system available resources being the system available resources remaining after removing the third system available resources from the system resources of the second electronic device.
[0272] In this way, when receiving data with the second priority level for user usage, the remaining available resources are used to receive data with the second priority level for user usage, first ensuring a smooth experience of the application running in the foreground of the second electronic device. In this way, when receiving data with the second priority level for user usage, the user can smoothly use the application running in the foreground of the second electronic device. In this way, the data with the second priority level for user usage is received, and at the same time, it will not affect the user's smooth use of the application running in the foreground of the second electronic device.
[0273] Optionally, the display unit 1006 is used to display the receiving progress information of the data of the target type during the process of receiving the data of the target type.
[0274] In this way, during the process of receiving data of the target type, the target type data reception progress information is displayed in real time, so that the user can view the reception progress information of the target type data in real time and intuitively, so that the user can understand the reception status of the target type data in real time and intuitively, thereby improving the user experience.
[0275] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a color camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0276] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0277] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0278] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned data transmission method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0279] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0280] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned data transmission method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0281] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0282] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned data transmission method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0283] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0284] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0285] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A data transmission method, characterized in that: Applied to a first electronic device, the method includes: receiving a first input; In response to the first input, classify the data in the first electronic device to obtain multiple types of data; For data of a target type, a target data transmission resource corresponding to the data of the target type is used to transmit the data of the target type to a second electronic device, wherein the multiple types of data include the data of the target type.
2. The method according to claim 1, characterized in that The target type of data includes data with a user usage priority of the first priority; Before using the target data transmission resource corresponding to the target type of data to transmit the target type of data to the second electronic device, the method further includes: The system available resources of the first electronic device are used as target data transmission resources for the data of the first priority level.
3. The method according to claim 1, characterized in that The target type of data includes data with a user usage priority of a second priority, the first priority being higher than the second priority; Before using the target data transmission resource corresponding to the target type of data to transmit the target type of data to the second electronic device, the method further includes: Acquiring temperature information and system resource usage information of the first electronic device; According to the system resource usage information and the temperature information, data transmission resources are configured for the data of the second priority level to obtain target data transmission resources.
4. The method according to claim 3, characterized in that: The configuring data transmission resources for the data of the second priority level according to the system resource usage information and the temperature information to obtain target data transmission resources includes: Allocating the first system available resources to the application running in the foreground of the first electronic device according to the system resource usage information and the temperature information, so that the fluency of the application running in the foreground of the first electronic device reaches a first threshold; According to the second system available resources, data transmission resources are configured for the data of the second priority level to obtain target data transmission resources, wherein the second system available resources are the system available resources remaining after removing the first system available resources from the system resources of the first electronic device.
5. The method according to any one of claims 1 to 4, characterized in that The classifying the data in the first electronic device to obtain multiple types of data includes: Classifying the data in the first electronic device according to the frequency of data use to obtain multiple types of data; and / or, In response to a second input, data in the first electronic device is divided into a plurality of types of data.
6. A data transmission method, characterized in that: Applied to a second electronic device, the method includes: Upon receiving data transmitted by the first electronic device, determining a target type of the data; The target data receiving resource corresponding to the target data type is used to receive the target data type.
7. The method according to claim 6, characterized in that The target type of data includes data with a user usage priority of the first priority; Before adopting the target data receiving resource corresponding to the target data to receive the target type of data, the method further includes: The system available resources of the second electronic device are used as target data receiving resources for the data of the first priority level.
8. The method according to claim 6, characterized in that The target type of data includes data with a user usage priority of a second priority, the first priority being higher than the second priority; Before adopting the target data receiving resource corresponding to the target data to receive the target type of data, the method further includes: Acquiring temperature information and system resource usage information of the second electronic device; According to the system resource usage information and the temperature information, data receiving resources are configured for the data of the second priority level to obtain target data receiving resources.
9. The method according to claim 8, characterized in that The configuring data receiving resources for the data of the second priority level according to the system resource usage information and the temperature information to obtain target data receiving resources includes: Allocating the third system available resources to the application running in the foreground of the second electronic device according to the system resource usage information and the temperature information, so that the fluency of the application running in the foreground of the second electronic device reaches a first threshold; According to the fourth system available resources, data receiving resources are configured for the data of the second priority level to obtain target data receiving resources, wherein the fourth system available resources are the remaining system available resources after removing the third system available resources from the system resources of the second electronic device.
10. The method according to any one of claims 6 to 9, characterized in that: The method further comprises: During the process of receiving the data of the target type, the receiving progress information of the data of the target type is displayed.
11. A data transmission system, characterized in that: The system is deployed in a first electronic device, and the system includes: an application layer, the application layer including at least one application program, the application layer including application data of the at least one application program, and the application data of the at least one application program including multiple types of data; a framework layer, the framework layer being used to determine a transmission priority of application data of a target type and a target data transmission resource for transmitting the application data of the target type, and to send the target data transmission resource to the hardware layer, wherein the plurality of types include the target type; A hardware layer, wherein the hardware layer is used to configure hardware resources as the target data transmission resources so as to transmit the target type of application data to the second electronic device through the target data transmission resources according to the transmission priority of the target type of application data.
12. The system according to claim 11, characterized in that The framework layer includes a scheduling service module, a storage service module and a network service module, the hardware layer includes a central processing unit, a memory and a network module, and the central processing unit includes a computing service resource module; The scheduling service module is used to determine the target computing service resources of the computing service resource module, the target storage service resources of the storage service module, and the target network service resources of the network service module that need to be scheduled to transmit the target type of application data according to the target type of application data and the system available resources of the first electronic device; The central processor is used to configure the computing power service resources of the computing power service resource module as the target computing power service resources, configure the storage service resources of the memory as the target storage service resources, and configure the network service resources of the network module as the target network service resources, and control the computing power service resource module based on the target computing power service resources, the memory based on the target storage service resources, and the network module based on the target network service resources to transmit the target type of application data to the second electronic device.
13. The system according to claim 12, characterized in that The framework layer also includes a performance dynamic management module; In the case where the target type of application data is application data of the second priority, the performance dynamic management module determines the system available resources of the first electronic device according to the computing power service resources of the computing power service resource module, the storage service resources of the storage service module, the network service resources of the network service module and the temperature information of the first electronic device, and sends the system available resources to the scheduling service module; The scheduling service module is used to determine the target computing power service resources of the computing power service resource module, the target storage service resources of the storage service module and the target network service resources of the network service module that need to be scheduled to transmit the second-priority application data based on the second-priority application data and the system available resources.
14. The system according to any one of claims 11 to 13, characterized in that: The application layer also includes a display module; The display module is used to display the data transmission progress information of the target type during the data transmission of the target type.
15. A data transmission device, characterized in that: Applied to a first electronic device, the device comprises: A first receiving module, used to receive a first input from a user; a classification module, configured to classify the data in the first electronic device in response to the first input to obtain data of multiple types; The data transmission module is used to transmit the target type of data to a second electronic device by using a target data transmission resource corresponding to the target type of data, wherein the multiple types of data include the target type of data.
16. A data transmission device, characterized in that: Applied to a second electronic device, the device comprises: A first determining module, configured to determine a target type of the data when it is determined that data transmitted by the first electronic device is received; The data receiving module is used to receive the data of the target type by using the target data receiving resources corresponding to the data of the target type.
17. An electronic device, characterized in that: It includes a processor and a memory, the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, it implements the steps of the data transmission method according to any one of claims 1 to 5, and / or the steps of the data transmission method according to any one of claims 6 to 10.
18. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, it implements the steps of the data transmission method according to any one of claims 1 to 5, and / or the steps of the data transmission method according to any one of claims 6 to 10.
