CN111132234A - Data transmission method and corresponding terminal - Google Patents

Data transmission method and corresponding terminal Download PDF

Info

Publication number
CN111132234A
CN111132234A CN201910105863.8A CN201910105863A CN111132234A CN 111132234 A CN111132234 A CN 111132234A CN 201910105863 A CN201910105863 A CN 201910105863A CN 111132234 A CN111132234 A CN 111132234A
Authority
CN
China
Prior art keywords
terminal
transmission
data
information
data packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910105863.8A
Other languages
Chinese (zh)
Other versions
CN111132234B (en
Inventor
郭兴民
姚松平
陈朔
姜文浩
骆亮亮
梁恒辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Publication of CN111132234A publication Critical patent/CN111132234A/en
Application granted granted Critical
Publication of CN111132234B publication Critical patent/CN111132234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/082Load balancing or load distribution among bearers or channels
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data transmission method and a corresponding terminal, relates to the technical field of communication, and can ensure the speed, the power consumption, the reliability and the like of data transmission between terminals according to actual conditions and improve the user experience. According to the data transmission method and device, the data transmission links used for transmitting the data to be transmitted are determined according to the specific transmission strategies, and the data distribution quantity borne on each data transmission link can be supported, so that the selection of the proper data transmission link according to the actual conditions of the transmitting end and the receiving end and other factors can be supported, and the data distribution quantity on the data transmission links can be dynamically adjusted according to the dynamically changed transmission strategies. The embodiment of the application is used in the data transmission process between the devices.

Description

Data transmission method and corresponding terminal
The present application claims priority from chinese patent application filed on 2018, 11/01/h, with chinese patent office, application number 201811310002.5, entitled "method for parallel transmission between terminals," the entire contents of which are incorporated herein by reference.
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a parallel data transmission method between terminals and a corresponding terminal.
Background
With the diversified development of the functions of the intelligent terminal, the types of data storage which can be supported in the intelligent terminal are more and more diversified, and the amount of stored data is more and more large. In this way, when a terminal user needs to perform data transmission or data backup, for example, the user replaces the terminal, the data (such as pictures, videos, office files, audios, and address books) stored in the old terminal needs to be migrated to a new terminal, and for example, when the terminal has a problem and needs to be repaired, or when an operating system needs to be successfully and newly installed, the data backup stored in the terminal needs to be migrated to a storage medium. The migration speed of data can directly affect the user experience.
In order to complete the data migration, one possible solution in the prior art is to use a data transmission method in the prior art as shown in fig. 1. The user may install the cell phone cloning software or the switch assistant software in the originating terminal and the terminating terminal, scan the two-dimensional code generated in the cell phone cloning software or the switch assistant software installed on the terminating terminal by using a functional module (e.g., "scan") for scanning the two-dimensional code installed on the originating terminal or the switch assistant software installed on the terminating terminal, establish a WiFi P2P link between the originating terminal and the terminating terminal, and implement data migration from the originating terminal to the terminating terminal through the WiFi P2P link. However, the method has limited data migration rate, long time consumption when the user data volume is large, and low reliability, and once an unexpected situation (such as two-machine distance pulling) causes the disconnection of the WiFi link.
In another possible solution, as shown in fig. 2, a second example of a data transmission method in the prior art is shown. Data migration may be implemented using a data transmission line (e.g., Universal Serial Bus (USB)), but the method still has a limited migration rate, is time consuming when the user data volume is large, and still has low reliability, and if an unexpected situation (e.g., a data transmission line interface contact is problematic), the migration is interrupted, which greatly affects the user experience.
In another possible solution, as shown in fig. 3, a data transmission method in the prior art is exemplified by three. The user logs in the cloud account at the sending end, uploads the data to be transmitted to the cloud server for storage, then logs in the cloud account at the receiving end, and downloads the data to the receiving end, so that data migration is achieved. However, such a method is highly dependent on internet access services and cloud servers, and fails once a network is in trouble or a server is down, and if a user uploads and downloads data using a cellular network, additional traffic is generated, which may cause additional cost and affect user satisfaction.
Disclosure of Invention
The embodiment of the application provides a data transmission method, which can solve the problems of low transmission speed, high electric quantity consumption and low reliability in data transmission between terminals.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, a data transmission method is provided, where the method is applied to a first terminal, and the method may include: detecting data transmission operation of a user; responding to the data transmission operation of the user, and pairing with the second terminal; acquiring first terminal information and second terminal information, wherein the first terminal information is hardware information and protocol information of a first terminal, and the second terminal information is hardware information and protocol information of a second terminal; determining data to be transmitted and a transmission strategy; dividing data to be transmitted into at least two data packets, wherein the at least two data packets comprise: a first data packet and a second data packet; determining an available transmission link according to the first terminal information, the second terminal information and the transmission strategy, wherein the available transmission link comprises at least two links; determining data to be transmitted by each link in available transmission links when the first data packet is transmitted; establishing link connection with a second terminal according to the available transmission link, and transmitting the first data packet to the second terminal; detecting transmission information of the first data packet; and determining the data required to be transmitted by each link in the available transmission links when the second data packet is transmitted according to the transmission information of the first data packet and the transmission strategy.
According to the technical scheme provided by the first aspect, the data to be transmitted is segmented, the available transmission links for transmitting each segment of data to be transmitted and the data volume borne on each available transmission link are determined according to a specific transmission strategy, so that the selection of a proper available transmission link according to the actual conditions of the transmitting end and the receiving end and other factors can be supported, and the data volume of each transmission link when the next segment of data to be transmitted is dynamically adjusted according to the transmission information of each segment, so that the speed, the power consumption, the reliability and the like during data transmission between terminals are ensured according to the actual conditions, and the user experience is improved.
In a possible implementation manner, before determining, according to the transmission information and the transmission policy of the first data packet, data of the second data packet that each of the available transmission links needs to transmit, the method may further include: acquiring third terminal information and fourth terminal information, wherein the third terminal information is hardware information and protocol information of the first terminal, and the fourth terminal information is hardware information and protocol information of the second terminal; and adjusting the available transmission link according to the third terminal information and the fourth terminal information. Before each segment of data is transmitted, whether the terminal information changes or not is detected, so that the available transmission link during the segment of data transmission can be dynamically adjusted according to the actual condition of the terminal.
In a possible implementation manner, the determining an available transmission link according to the first terminal information, the second terminal information, and the transmission policy may include: determining a data transmission link commonly supported by the first terminal and the second terminal according to the first terminal information and the second terminal information; an available transmission link is determined from the data transmission links commonly supported by the first terminal and the second terminal according to a transmission policy. The available transmission link used for transmitting the data to be transmitted is determined from the transmission links commonly supported by the first terminal and the second terminal according to the transmission strategy, so that the available transmission link which accords with the transmission strategy can be dynamically adjusted according to the actual transmission strategy.
In one possible implementation, the transmission information may include: and transmitting the rate information and/or the power consumption information when the first terminal transmits the first data packet to a second terminal. By collecting the transmission information such as the transmission rate information and/or the power consumption information of the first data packet, the data carried by the available transmission link during transmission of the next data packet can be dynamically adjusted according to the transmission information such as the transmission rate information and/or the power consumption information. In one possible implementation, the transmission policy may include: a power saving policy or a time saving policy; before determining, according to the transmission information of the first data packet and the transmission policy, that data needs to be transmitted by each of the available transmission links when the second data packet is transmitted, the method may further include: detecting a transmission strategy adjustment operation of a user; adjusting the transmission policy in response to the transmission policy adjustment operation; or, judging whether the power consumption information during the transmission of the first data packet shows that the power consumption is greater than a preset threshold value P, if so, adjusting the transmission strategy from a time-saving strategy to a power-saving strategy; wherein the power consumption comprises power consumption of the first terminal and/or power consumption of the second terminal; or, judging whether the transmission rate information when the first data packet is transmitted shows that the average transmission rate is less than a preset threshold value V, if so, adjusting the transmission strategy from a power-saving strategy to a time-saving strategy; wherein the average transmission rate comprises an average transmission rate amount of the first terminal and/or an average reception rate of the second terminal. Before each data packet is transmitted, the transmission strategy of the data packet is adjusted according to transmission information such as transmission rate information, power consumption information and the like detected during the transmission of the previous data packet, or the adjustment of a user on the transmission strategy is received, so that the dynamic adjustment of the transmission strategy is realized.
In a possible implementation manner, the transmission policy is a power saving policy, and the power consumption information when the first terminal transmits the first data packet to the second terminal includes: the power consumption of each available transmission link in unit time when the first terminal transmits the first data packet to the second terminal; determining, according to the transmission information and the transmission policy of the first data packet, data to be transmitted by each of the available transmission links when the second data packet is transmitted, including: determining data that needs to be transmitted by each of the available transmission links for transmitting the second data packet such that: when each available transmission link transmits the second data packet at the same transmission rate as that of the first data packet, the total power consumption is less than the preset threshold P, and the total power consumption is less than the preset threshold T1. And determining the data on each available transmission link by an optimal solution determination method corresponding to the power saving strategy so as to realize reasonable distribution of the data on each available transmission link according to the specific transmission information.
In a possible implementation manner, the transmission policy is a time-saving policy, and the transmission rate information when the first terminal transmits the first data packet to the second terminal includes: the transmission rate of each available transmission link when the first terminal transmits the first data packet to the second terminal; determining, according to the transmission information of the first data packet and the transmission policy, data to be transmitted by each of the available transmission links when the second data packet is transmitted, including: determining data that each of the available transmission links that transmit the second data packet needs to transmit such that: when each available transmission link transmits the second data packet at the same transmission rate as that when the first data packet is transmitted, the total time consumption is less than the preset threshold value T2, and the data on each available transmission link is determined by the optimal solution determination method corresponding to the time-saving strategy, so that the reasonable distribution of the data on each available transmission link is ensured according to specific transmission information.
In one possible implementation, the available transmission links may include at least a first link and a second link; the adjusting the available transmission link according to the third terminal information and the fourth terminal information may include: judging whether a third link exists according to the third terminal information and the fourth terminal information, wherein the third link is different from each available transmission link when the first data packet is transmitted; if so, determining the third link as an available transmission link; determining, according to the transmission information and the transmission policy of the first data packet, data to be transmitted by each of the available transmission links when the second data packet is transmitted, including: determining data to be transmitted on the third link when the second data packet is determined to be transmitted according to a preset allocation strategy; and carrying each other available transmission link except the first link by the data of the second data packet except the data carried by the third link in the second data packet according to the transmission information of the first data packet and the transmission strategy. The newly added common data transmission links at the transmitting end and the receiving end can dynamically adjust the data distribution on each available transmission link.
In a possible implementation manner, if the first link is unavailable when the first data packet is transmitted to the second terminal, the method may further include: allocating the data which is not transmitted by the first link to at least one available transmission link except the first link for further transmission; determining the available transmission link for transmitting the second data packet includes every other available transmission link. When the deletion link exists at the transmitting end and/or the receiving end, the data distribution on each available transmission link can be dynamically adjusted.
In one possible implementation, before establishing the link connection with the second terminal, the method may further include: and reminding the user to assist in establishing each available transmission link according to the determined available transmission links.
In a second aspect, a first terminal is provided, which has the method and functions of implementing any one of the possible implementations of the first aspect. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
The present application provides a first terminal, which may include: a memory for storing computer execution instructions; a processor for executing the computer-executable instructions to implement the data transmission method as in any one of the possible implementations of the first aspect.
The present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions, when executed by a processor, implement the data transmission method as in any one of the possible implementation manners of the first aspect.
Drawings
Fig. 1 is a first example of a data transmission method in the prior art;
fig. 2 is a second example of a data transmission method in the prior art;
fig. 3 is a third example of a data transmission method in the prior art;
fig. 4 is a schematic view of an application scenario of the data transmission method according to the embodiment of the present application;
fig. 5 is a schematic structural diagram of a smartphone terminal according to an embodiment of the present application;
fig. 6 is a first flowchart of a data transmission method according to an embodiment of the present application;
fig. 7 is a first schematic diagram of a data transmission operation according to an embodiment of the present application;
FIG. 8 is a schematic diagram of an interface for acknowledging the initiation of the data transfer according to an embodiment of the present application;
fig. 9 is a schematic diagram illustrating pairing between terminals according to an embodiment of the present application;
fig. 10 is a schematic diagram of a method for determining data to be transmitted according to an embodiment of the present application;
fig. 11 is a schematic view of a transmission policy determination interface according to an embodiment of the present application;
fig. 12 is a schematic diagram of a prompt for establishing a transmission link according to an embodiment of the present application;
fig. 13 is a flowchart of a data transmission method according to an embodiment of the present application;
fig. 14 is a flow chart of a data transmission method provided in the embodiment of the present application;
fig. 15 is a schematic view of a transmission policy modification interface according to an embodiment of the present application;
fig. 16 is a fourth flowchart of a data transmission method according to an embodiment of the present application;
fig. 17 is a fifth flowchart of a data transmission method according to an embodiment of the present application;
fig. 18 is a sixth flowchart of a data transmission method according to an embodiment of the present application;
fig. 19 is a schematic view of a virtual structure of a terminal according to an embodiment of the present application.
Detailed Description
The embodiment of the present application provides a data transmission method, where a first terminal and a second terminal in the method may be a smart phone, a tablet Computer, a smart television box, or other desktop, laptop, and handheld devices, such as an Ultra-mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), a Portable Multimedia Player (PMP), a dedicated media Player, a consumer electronics device, a wearable device, an AR (augmented reality)/VR (virtual reality) device, and the like, and the first terminal and the second terminal may be the same device or different devices, which is not limited in this embodiment.
Taking the first terminal and the second terminal as smart phones as an example, as shown in fig. 4, an application scenario diagram of the data transmission method according to the embodiment of the present application is shown. The application scenario may include the first terminal 100 and the second terminal 110, and the user needs to migrate data (including pictures, videos, office files, audios, address books, and the like) in the first terminal 100 to the second terminal 110 due to a new phone, or a mobile phone failure, a system reinstallation, and the like, that is, the first terminal 100 is a data sending end, and the second terminal 110 is a data receiving end. The migration of data may be via data transmission lines, near field communication NFC, bluetooth, infrared, WiFi, cellular link D2D, Li-fi (light fidelity), etc. After detecting the data transmission operation of the user, the first terminal 100 triggers a data transmission process, and first pairs with the second terminal 110 to obtain terminal information of the second terminal 110, for example, 4a in fig. 4, the first terminal 100 may obtain the second terminal information through WiFi, the first terminal 100 further needs to determine its own terminal information, it should be noted that 4a in fig. 4 is merely an example, actually, the first terminal 100 may also obtain the second terminal information through other available transmission links, the terminal information may include data transmission links supported by respective hardware and corresponding protocol information, as shown in 4a in fig. 4, the data transmission link supported by the first terminal 100 includes a cellular link D2D, USB and WiFi, the data transmission link supported by the second terminal 110 includes a cellular link D2D and WiFi, the first terminal 100 further needs to determine the data to be transmitted and the transmission policy of the data transmission, dividing the data to be transmitted into at least two data packets (e.g., a first data packet and a second data packet), then determining at least two available transmission links for transmitting the first data packet according to the first terminal information, the second terminal information and the transmission policy, as shown in fig. 4b, determining that the available transmission links are a WiFi link and a cellular link D2D, and data carried on each available transmission link, and transmitting corresponding data according to the determined available transmission links; the second terminal 110 may send the terminal information to the first terminal 110 through any data transmission link supported and conducted by both the first terminal 100 and the second terminal 110, as shown in 4c in fig. 4, determine that the amount of data carried on the WiFi link is 70% of the first data packet, and the amount of data carried on the cellular link D2D is 30% of the first data packet, and perform transmission of the first data packet according to the data allocation ratio.
The first terminal 100 may also detect and record transmission information, such as power consumption information and transmission rate information, in real time during transmission of the first data packet, so as to adjust data carried on each available transmission link when transmitting the second data packet according to the transmission information and the transmission policy after the transmission of the first data packet is finished.
As shown in fig. 5, in the embodiment of the present application, a first terminal 100 is taken as a smart phone to exemplify a structural diagram of the first terminal. It should be understood that the smartphone shown in fig. 5 is only one example of the first terminal 100, and that the first terminal 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have a different configuration of components.
As shown in fig. 5, the first terminal 100 may specifically include: the mobile terminal includes a processor 510, an external memory interface 520, an internal memory 521, a Universal Serial Bus (USB) interface 530, a charging management module 540, a power management module 541, a battery 542, an antenna 1, an antenna 2, a mobile communication module 550, a wireless communication module 560, an audio module 570, a speaker 570A, a receiver 570B, a microphone 570C, an earphone interface 570D, a sensor module 580, a button 590, a motor 591, an indicator 592, a camera 593, a display 594, a Subscriber Identity Module (SIM) card interface 595, and the like. The sensor module 580 may include a pressure sensor 580A, a gyro sensor 580B, an air pressure sensor 580C, a magnetic sensor 580D, an acceleration sensor 580E, a distance sensor 580F, a proximity light sensor 580G, a fingerprint sensor 580H, a temperature sensor 580J, a touch sensor 580K, an ambient light sensor 580L, a bone conduction sensor 580M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation to the first terminal 100. In other embodiments of the present application, the first terminal 100 may include more or fewer components than those shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 510 may include one or more processing units, such as: processor 510 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 510 for storing instructions and data. The memory may store instructions for implementing six modular functions: detection instructions, connection instructions, information management instructions, analysis instructions, data transmission instructions, and notification instructions, and are controlled for execution by processor 510. In some embodiments, the memory in processor 510 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 510. If the processor 510 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 510, thereby increasing the efficiency of the system.
In some embodiments, processor 510 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 510 may include multiple sets of I2C buses. The processor 510 may be coupled to the touch sensor 580K, the charger, the flash, the camera 593, etc. through different I2C bus interfaces. For example: the processor 510 may be coupled to the touch sensor 580K through an I2C interface, such that the processor 510 and the touch sensor 580K communicate through an I2C bus interface to implement the touch function of the first terminal 100.
The I2S interface may be used for audio communication. In some embodiments, processor 510 may include multiple sets of I2S buses. The processor 510 may be coupled to the audio module 570 via an I2S bus to enable communication between the processor 510 and the audio module 570. In some embodiments, the audio module 570 can communicate audio signals to the wireless communication module 560 through the I2S interface to enable answering a call through a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 570 and the wireless communication module 560 may be coupled by a PCM bus interface. In some embodiments, the audio module 570 can also transmit audio signals to the wireless communication module 560 through the PCM interface, so as to receive phone calls through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 510 with the wireless communication module 560. For example: the processor 510 communicates with the bluetooth module in the wireless communication module 560 through the UART interface to implement the bluetooth function. In some embodiments, the audio module 570 can transmit the audio signal to the wireless communication module 560 through the UART interface, so as to realize the function of playing music through the bluetooth headset.
The MIPI interface may be used to connect the processor 510 with peripheral devices such as the display screen 594, the camera 593, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a display screen serial interface (DSI), and the like. In some embodiments, the processor 510 and the camera 593 communicate through a CSI interface to implement the shooting function of the first terminal 100. The processor 510 and the display screen 594 communicate through the DSI interface to implement the display function of the first terminal 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 510 with the camera 593, the display screen 594, the wireless communication module 560, the audio module 570, the sensor module 580, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 530 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 530 may be used to connect a charger to charge the first terminal 100, and may also be used to transmit data between the first terminal 100 and peripheral devices. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules according to the embodiment of the present invention is only an exemplary illustration, and does not constitute a limitation on the structure of the first terminal 100. In other embodiments of the present application, the first terminal 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 540 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 540 may receive charging input from a wired charger via the USB interface 530. In some wireless charging embodiments, the charging management module 540 may receive a wireless charging input through a wireless charging coil of the first terminal 100. The charging management module 540 may also provide power to the electronic device through the power management module 541 while charging the battery 542.
The power management module 541 is used to connect the battery 542, the charging management module 540 and the processor 510. The power management module 541 receives input from the battery 542 and/or the charging management module 540, and provides power to the processor 510, the internal memory 521, the display screen 594, the camera 593, the wireless communication module 560, and the like. The power management module 541 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 541 may also be disposed in the processor 510. In other embodiments, the power management module 541 and the charging management module 540 may be disposed in the same device.
The wireless communication function of the first terminal 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 550, the wireless communication module 560, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the first terminal 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 550 may provide a solution including 2G/3G/4G/5G wireless communication and the like applied on the first terminal 100. The mobile communication module 550 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 550 can receive electromagnetic waves from the antenna 1, and can perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit the electromagnetic waves to the modem processor for demodulation. The mobile communication module 550 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 550 may be disposed in the processor 510. In some embodiments, at least some of the functional modules of the mobile communication module 550 may be disposed in the same device as at least some of the modules of the processor 510.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 570A, the receiver 570B, etc.) or displays images or videos through the display screen 594. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be separate from the processor 510, and may be located in the same device as the mobile communication module 550 or other functional modules.
The wireless communication module 560 may provide a solution for wireless communication applied to the first terminal 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 560 may be one or more devices integrating at least one communication processing module. The wireless communication module 560 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 510. The wireless communication module 560 may also receive a signal to be transmitted from the processor 510, frequency-modulate it, amplify it, and convert it into electromagnetic waves via the antenna 2 to radiate it.
In some embodiments, the antenna 1 of the first terminal 100 is coupled with the mobile communication module 550 and the antenna 2 is coupled with the wireless communication module 560, so that the first terminal 100 can communicate with a network and other devices through a wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou satellite navigation system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The first terminal 100 implements a display function through the GPU, the display screen 594, and the application processor. The GPU is an image processing microprocessor connected to a display screen 594 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 510 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 594 is used for displaying images, video, and the like. The display screen 594 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the first terminal 100 may include 1 or N display screens 594, N being a positive integer greater than 1.
The first terminal 100 may implement a photographing function through an ISP, a camera 593, a video codec, a GPU, a display screen 594, an application processor, and the like.
The ISP is used to process the data fed back by the camera 593. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 593.
The camera 593 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the first terminal 100 may include 1 or N cameras 593, where N is a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the first terminal 100 selects a frequency bin, the digital signal processor is configured to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The first terminal 100 may support one or more video codecs. In this way, the first terminal 100 can play or record video in a plurality of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU may implement applications such as intelligent recognition of the first terminal 100, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 520 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the first terminal 100. The external memory card communicates with the processor 510 through the external memory interface 520 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 521 may be used to store computer-executable program code, including instructions. The internal memory 521 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (e.g., audio data, a phonebook, etc.) created during use of the first terminal 100, and the like. In addition, the internal memory 521 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 510 performs various functional applications of the first terminal 100 and data processing by executing instructions stored in the internal memory 521 and/or instructions stored in a memory provided in the processor.
The first terminal 100 may implement an audio function through the audio module 570, the speaker 570A, the receiver 570B, the microphone 570C, the earphone interface 570D, and the application processor, etc. Such as music playing, recording, etc.
The audio module 570 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 570 may also be used to encode and decode audio signals. In some embodiments, the audio module 570 may be disposed in the processor 510, or some functional modules of the audio module 570 may be disposed in the processor 510.
The speaker 570A, also called a "horn", is used to convert the audio electrical signals into sound signals. The first terminal 100 can listen to music through the speaker 570A or listen to a hands-free call.
Receiver 570B, also known as a "handset," is used to convert electrical audio signals into acoustic signals. When the first terminal 100 receives a call or voice information, it can receive voice by bringing the receiver 570B close to the ear of the person.
The microphone 570C, also known as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal into the microphone 570C by speaking the user's mouth near the microphone 570C. The first terminal 100 may be provided with at least one microphone 570C. In other embodiments, the first terminal 100 may be provided with two microphones 570C to implement a noise reduction function in addition to collecting sound signals. In other embodiments, the first terminal 100 may further include three, four or more microphones 570C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The headphone interface 570D is used to connect wired headphones. The headset interface 570D may be the USB interface 530, or may be an open mobile electronic device platform (OMTP) standard interface of 3.5mm, or a Cellular Telecommunications Industry Association (CTIA) standard interface.
The pressure sensor 580A is used for sensing a pressure signal, which can be converted into an electrical signal. In some embodiments, pressure sensor 580A may be disposed on display screen 594. The pressure sensor 580A may be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, or the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 580A, the capacitance between the electrodes changes. The first terminal 100 determines the intensity of the pressure according to the change of the capacitance. When a touch operation is applied to the display screen 594, the first terminal 100 detects the intensity of the touch operation according to the pressure sensor 580A. The first terminal 100 may also calculate the touched position based on the detection signal of the pressure sensor 580A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 580B may be used to determine the motion attitude of the first terminal 100. In some embodiments, the angular velocity of first terminal 100 about three axes (i.e., x, y, and z axes) may be determined by gyroscope sensor 580B. The gyro sensor 580B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 580B detects a shake angle of the first terminal 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the first terminal 100 by a reverse movement, thereby achieving anti-shake. The gyro sensor 580B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 580C is used to measure air pressure. In some embodiments, the first terminal 100 calculates an altitude through a barometric pressure value measured by the barometric pressure sensor 580C to assist in positioning and navigation.
The magnetic sensor 580D includes a hall sensor. The first terminal 100 may detect the opening and closing of the flip holster using the magnetic sensor 580D. In some embodiments, when the first terminal 100 is a folder, the first terminal 100 may detect the opening and closing of the folder according to the magnetic sensor 580D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 580E may detect the magnitude of acceleration of the first terminal 100 in various directions (generally, three axes). The magnitude and direction of gravity can be detected when the first terminal 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 580F for measuring distance. The first terminal 100 may measure the distance by infrared or laser. In some embodiments, the first terminal 100 may take a picture of a scene and may range using the distance sensor 580F to achieve fast focus.
The proximity light sensor 580G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The first terminal 100 emits infrared light to the outside through the light emitting diode. The first terminal 100 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the first terminal 100. When insufficient reflected light is detected, the first terminal 100 may determine that there is no object near the first terminal 100. The first terminal 100 can utilize the proximity light sensor 580G to detect that the user holds the first terminal 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 580G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 580L is for sensing ambient light brightness. The first terminal 100 may adaptively adjust the brightness of the display screen 594 according to the perceived ambient light brightness. The ambient light sensor 580L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 580L may also cooperate with the proximity light sensor 580G to detect whether the first terminal 100 is in a pocket for protection against accidental touches.
The fingerprint sensor 580H is used to collect a fingerprint. The first terminal 100 may utilize the collected fingerprint characteristics to perform fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering, and the like.
The temperature sensor 580J is used to detect temperature. In some embodiments, the first terminal 100 executes a temperature processing strategy using the temperature detected by the temperature sensor 580J. For example, when the temperature reported by the temperature sensor 580J exceeds a threshold, the first terminal 100 performs a reduction in performance of a processor located near the temperature sensor 580J, so as to reduce power consumption and implement thermal protection. In other embodiments, the first terminal 100 heats the battery 542 when the temperature is below another threshold to avoid the first terminal 100 shutting down abnormally due to low temperature. In other embodiments, when the temperature is below a further threshold, the first terminal 100 performs boosting of the output voltage of the battery 542 to avoid abnormal shutdown due to low temperature.
The touch sensor 580K is also referred to as a "touch device". The touch sensor 580K may be disposed on the display screen 594, and the touch sensor 580K and the display screen 594 form a touch screen, which is also referred to as a "touch screen". The touch sensor 580K is used to detect a touch operation applied thereto or therearound. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display screen 594. In other embodiments, the touch sensor 580K may be disposed on a surface of the first terminal 100 at a different position than the display screen 594.
The bone conduction sensor 580M may acquire a vibration signal. In some embodiments, the bone conduction sensor 580M may acquire a vibration signal of a human vocal part vibrating a bone mass. The bone conduction sensor 580M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 580M may also be provided in a headset, integrated into a bone conduction headset. The audio module 570 may analyze the voice signal based on the vibration signal of the bone mass vibrated by the sound part obtained by the bone conduction sensor 580M, so as to implement the voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 580M, so as to realize a heart rate detection function.
The keys 590 include a power-on key, a volume key, etc. The keys 590 may be mechanical keys. Or may be touch keys. The first terminal 100 may receive a key input, and generate a key signal input related to user setting and function control of the first terminal 100.
The motor 591 may generate a vibration indication. The motor 591 can be used for incoming call vibration prompt and also can be used for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 591 may also respond to different vibration feedback effects for touch operations on different areas of the display screen 594. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 592 can be an indicator light that can be used to indicate a charge status, a charge change, a message, a missed call, a notification, etc.
The SIM card interface 595 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 595 or be removed from the SIM card interface 595 to make contact with and separate from the first terminal 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 595 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. Multiple cards can be inserted into the same SIM card interface 595 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 595 may also be compatible with different types of SIM cards. The SIM card interface 595 may also be compatible with an external memory card. The first terminal 100 interacts with the network through the SIM card to implement functions such as a call and data communication. In some embodiments, the first terminal 100 employs eSIM, namely: an embedded SIM card. The eSIM card may be embedded in the first terminal 100 and cannot be separated from the first terminal 100.
The data transmission method provided by the embodiment of the present application is specifically described below with reference to fig. 4 to 5. The basic principle of the method is as follows: the data transmission method comprises the steps that a data transmission end obtains information of transmission links and the like supported by hardware and software of the data transmission end and a data receiving end, determines available transmission links from the transmission links supported by the data transmission end and the data receiving end according to a data transmission strategy, transmits data to be transmitted in a segmented mode, determines the data quantity needing to be borne by each available transmission link before each segment of data is transmitted according to the data transmission strategy, or dynamically adjusts the data quantity needing to be borne by each available transmission link during the segment of data transmission according to actual transmission information of the previous segment of data.
In some embodiments of the present application, after the first terminal 100 triggers a data transmission process and successfully pairs with the second terminal 110, the first terminal 100 may send an information transmission instruction to the second terminal 110, for example, the terminal 100 may send the information transmission instruction to the second terminal 110 through each data transmission link supported by the terminal 100, as shown in 4a in fig. 4, the first terminal 100 sends the information transmission instruction to the second terminal 110 through a WiFi link, the second terminal 110 sends the second terminal information to the first terminal 100 through the WiFi link, or may send the information transmission instruction to the second terminal 110 through any data transmission link supported by the terminal 110 until receiving the terminal information sent by the second terminal 110, which is not limited in this embodiment.
In some embodiments of the present application, during a data transmission process, the first terminal may support dynamic adjustment of a transmission policy, and dynamically adjust a data transmission link and a data allocation amount carried on the data transmission link according to the dynamically adjusted transmission policy.
As shown in fig. 6, a flowchart of a data transmission method provided in the embodiment of the present application, which is applied to the first terminal 100, may include the following steps 601-605.
601. The processor 501 of the first terminal 100 executes the detection instruction in the memory 503 to detect the data transmission operation of the user.
For example, the first terminal 100 may detect that the user clicks the backup button, or the first terminal 100 detects that the user clicks a file such as a picture, a video, an audio, and the like and clicks the backup button, or the first terminal 100 detects a preset instruction representing a data backup command (for example, a pop-up instruction, a voice instruction, a shake, a slide up/down/left/right on the screen of the first terminal 100, a zoom-in/zoom-out gesture used on the screen of the first terminal 100, and the like), and the first terminal 100 may consider that the user needs to backup all or part of data stored on the first terminal 100 to other devices, and continue a subsequent flow of data transmission.
Fig. 7 is a schematic diagram of data transmission operation according to an embodiment of the present application, in some embodiments, as shown in fig. 7a, after a user has selected a part of pictures, the user may click a backup button, and after receiving an operation of the user clicking the backup button, the first terminal 100 backs up the selected pictures to other devices; in other embodiments, as shown in fig. 7b, the user may also shake the terminal, after the first terminal 100 detects that the user shakes the terminal, and analyzes and determines an instruction corresponding to the shake action operation as data backup, and backs up the selected picture to other devices; in other embodiments, as shown in fig. 7c, the data transmission operation may also be that the user issues a voice data backup, the first terminal 100 detects that the user has selected part of the pictures and issues a voice instruction "data backup", and the first terminal 100 considers that the user needs to backup the selected pictures to other devices. The present invention does not impose any limitations on the data transfer operations.
Optionally, the first terminal 100 may continue to perform the subsequent process by itself after detecting the data transmission operation of the user.
Optionally, after detecting the data transmission operation of the user, the first terminal 100 may further use a pop-up window to remind the user to determine whether to start a subsequent data transmission process such as pairing, information acquisition, and the like.
As shown in fig. 8, which is a schematic view of the interface for confirming the start of the data transmission according to the embodiment of the present application, as shown in fig. 8, the reminding interface may be displayed in a floating manner on the basis of the interface after the data to be transmitted is determined at 7a in fig. 7.
602. In response to the detected data transfer operation of the user, the processor 501 of the first terminal 100 executes the connection instruction in the memory 503 to pair with the second terminal.
For example, the first terminal 100 may pair with the second terminal 110 by detecting nearby pairable devices and selecting a pairing mode therewith, or by scanning a two-dimensional code, or by inputting a device identifier of the second terminal 110, and the specific method and process of pairing are not specifically limited in the embodiment of the present application.
As shown in fig. 9, which is a schematic diagram of pairing terminals according to an embodiment of the present application, in response to a detected data transmission operation of a user, a first terminal 100 starts scanning nearby pairable devices, detects information such as a second terminal 110 and a third terminal 120 that can be paired with the first terminal 100, and corresponding terminal models, and a user may select a device to receive data to be transmitted as the second terminal 110 according to a scanning result displayed on an interface of the first terminal 100, and the first terminal 100 may pair with the second terminal 110 through WiFi P2P according to the selection of the user.
603. The processor 501 of the first terminal 100 executes the information management instruction in the memory 503 to obtain first terminal information and second terminal information, wherein the first terminal information is hardware information and protocol information of the first terminal, and the second terminal information is hardware information and protocol information of the second terminal.
It should be noted that the hardware information refers to a transmission link that can be supported by the terminal hardware, for example, USB, WiFi, etc., and the protocol information is used to identify a protocol supported by the supported transmission link, for example, USB2.0, USB3.0, the transmission information of the transmission link may be determined by the supported protocol information, for example, transmission rate, modulation mode, etc., the protocols supported by different transmission links are different, the protocol supported by the same transmission link may also have multiple versions, and when the transmission link used for transmitting the data to be transmitted is determined, the determined available transmission link needs to satisfy both hardware and software support of the transceiving end, and needs to support the same transmission protocol.
604. The processor 501 of the first terminal 100 executes the information management instruction in the memory 503 to determine the data to be transmitted and the processor 501 of the first terminal 100 executes the analysis instruction in the memory 503 to determine the transmission policy.
In some embodiments, the data to be transmitted may be determined by a user, for example, before the user starts data transmission, the user may select the data to be transmitted in a manner of manual checking, a voice instruction, or the like, the first terminal 100 may determine the data to be transmitted by detecting the instruction of the user as shown in fig. 7a and 7b, and the user may manually check the picture to be transmitted; the first terminal 100 may also remind the user to determine data to be transmitted after detecting a data transmission instruction of the user, as shown in fig. 10, which is a schematic diagram of a method for determining data to be transmitted according to an embodiment of the present application, after detecting that the user shakes the mobile phone and analyzes and determines a command corresponding to the action as a data backup, the first terminal 100 pops up a window for the user to select the data to be transmitted which needs to be transmitted this time, and after the user selects the data to be transmitted, determines a file selected by the user to be the data to be transmitted which needs to be transmitted this time;
in other embodiments, the data to be transmitted may also be determined by the first terminal 100, for example, when the first terminal 100 needs to reinstall the system, the first terminal 100 may automatically default to use all data stored in the first terminal 100 as the data to be transmitted, and the method and the manner for determining the data to be transmitted are not limited in this embodiment of the present application. It should be noted that step 604 has no fixed timing limitation with step 602 and step 603, and step 604 may precede step 602 or step 603. In addition, the determination of the transmission strategy and the determination of the data to be transmitted also have no fixed time sequence limit, and the transmission strategy can be determined first, and then the data to be transmitted can be determined.
The transmission policy may include, but is not limited to, a time saving policy and a power saving policy. Optionally, the transmission policy may be selected by a user, for example, the user may select a transmission policy according to his own will, where the transmission policy is used to inform the first terminal 100 which performance in the data transmission process the user pays more attention to, for example, if the user pays more attention to the amount of power consumption, the power saving policy may be selected; if the user focuses more on the transmission speed, the time-saving policy may be selected, and of course, other transmission policies with other performance considerations may also be considered, which is not limited in the embodiment of the present application.
As shown in fig. 11, which is a schematic view of a transmission policy determination interface according to an embodiment of the present application, as shown in fig. 11, the selection interface may be displayed in a floating manner on the basis of the interface after the data to be transmitted is determined in fig. 10.
Optionally, the transmission policy may also be determined by the first terminal 100, specifically, the first terminal 100 may determine according to the terminal information of the first terminal 100, for example, if the electric quantity of the first terminal is less than a preset threshold, the first terminal 100 may determine to select the power saving policy, and if the electric quantity of the first terminal is greater than the preset threshold, the first terminal 100 may determine to select the time saving policy.
Optionally, the transmission policy may be adjusted according to a specific situation of data transmission during data transmission, for example, whether the transmission policy needs to be changed is selected according to an electric power consumption situation and a data transmission speed during data transmission.
Different transmission strategies correspond to different data transmission links, and for example, if the transmission strategy is determined to be a time-saving strategy, the data transmission links for transmitting the data to be transmitted may be determined to be WiFi and the cellular link D2D. The correspondence may be preset, and specifically, the transmission policies may be ranked according to various performances of each data transmission link, for example, the transmission policies are ranked according to the power consumption and the transmission speed, and the transmission policies are referred to the rankings according to performances concerned by different transmission policies, for example, the first three ranked transmission speeds are used as data transmission links corresponding to the time-saving policy.
Optionally, the corresponding relationship between the transmission policy and the data transmission link may receive user-defined settings and modifications of the user.
Optionally, after the first terminal 100 determines the transmission policy, the first terminal 100 may further pop up to remind the user whether to determine to start data transmission.
605. The processor 501 of the first terminal 100 executes the parsing instructions in the memory 503 to divide the data to be transmitted into at least two data packets, which may include: a first data packet and a second data packet.
The first terminal 100 divides the data to be transmitted into a plurality of data packets according to a specific segmentation method (for example, an equal division method), and the determined available transmission links jointly carry each data packet, thereby completing the transmission of each data packet in sequence.
Because the rate and energy consumption of each transmission link may be changed by environmental influences at different times (wireless interference and noise, transmission distance change, etc.), in order to dynamically adjust the data amount on each available transmission link according to the specific situation of data transmission during data transmission, by segmenting the data to be transmitted and transmitting the data accordingly, the data amount on each data transmission link during next data transmission can be adjusted according to the transmission situation of the segment of data after each segment of data is transmitted, and the corresponding transmission strategy and available transmission links during next data transmission can be flexibly adjusted.
Optionally, when segmenting the data to be transmitted, the data may be equally divided into a plurality of segments, or according to any other allocation method, which is not limited in the embodiment of the present application.
606. The processor 501 of the first terminal 100 executes the analysis instructions in the memory 503 to determine an available transmission link comprising at least two links based on the first terminal information, the second terminal information and the transmission policy.
Optionally, the first terminal 100 may determine, according to the first terminal information and the second terminal information, a transmission link that is commonly supported by the first terminal 100 and the second terminal 110; an available transmission link is then determined from the transmission links commonly supported by the first terminal 100 and the second terminal 110 according to the transmission policy. Specifically, the commonly supported transmission link refers to a transmission link that is commonly supported by both hardware and software (i.e., supported protocol information) of the first terminal 100 and the second terminal 110.
Illustratively, the hardware information displays of the first terminal 100 and the second terminal 110 both support USB, but the protocol information displays that the first terminal 100 supports USB2.0 and the second terminal 110 supports USB3.0, so data cannot be transmitted to the second terminal 110 through USB3.0 because the hardware of the first terminal 100 does not support USB3.0, and at this time, the hardware of the second terminal 110 can be compatible with the low-version USB2.0, so the first terminal 100 can transmit data to the second terminal 110 through USB 2.0.
Optionally, after determining an available transmission link according to the first terminal information, the second terminal information, and the transmission policy, the method may further include: the processor 501 of the first terminal 100 executes the notification instructions in the memory 503 to alert the user to assist in establishing the available data transmission link.
For example, the first terminal 100 may remind the user to assist in establishing the data transmission link through various manners such as pop-up window notification and voice notification, which is not limited in the embodiment of the present invention.
For example, as described above, if it is determined that the USB2.0 is an available transmission link, the first terminal 100 may further prompt the user to manually connect the USB data line between the first terminal 100 and the second terminal 110 to assist in turning on the transmission link. For example, after determining that the data transmission link is WiFi transmission, the first terminal 100 and the second terminal 110 may prompt the user with voice to authorize the first terminal 100 and the second terminal 110, so that the first terminal 100 and the second terminal 110 turn on the WiFi switch, and optionally, the first terminal 100 and the second terminal 110 may also prompt the user with voice to turn on the WiFi switch manually by the first terminal 100 and the second terminal 110.
Fig. 12 is a schematic diagram of a prompt for establishing a transmission link according to an embodiment of the present application. As shown in fig. 12, the first terminal 100 determines that the available transmission links are USB3.0 and WiFi, and the pop-up window reminds the user that the links that need to be assisted to be turned on are USB3.0 and WiFi and reminds the user that the user needs to check whether the available transmission links are turned on.
Optionally, the first terminal 100 may also determine a preferred data transmission link of the first terminal 100 according to the terminal information of the first terminal 100 and the determined transmission policy, determine a preferred data transmission link of the second terminal 110 according to the terminal information of the second terminal 110 and the determined transmission policy, and then determine at least one preferred data transmission link commonly supported by the first terminal 100 and the second terminal 110 as a link for performing data transmission.
607. The processor 501 of the first terminal 100 executes the analysis instructions in the memory 503 to determine the data of the first data packet that needs to be transmitted by each of the available transmission links when transmitting the first data packet.
Different transmission strategies correspond to different data transmission links, different data transmission links correspond to different data distribution proportions, the proportional relationship can be preset, and specifically, the proportional relationship can be set according to various performance ranks of each data transmission link, for example, the data transmission link corresponding to the time-saving strategy is WiFi, the data transmission line and the cellular link D2D, the data distribution proportion can be set to be 3:2:1 according to the ranking, and then the data distribution amount on each data transmission link can be determined according to the data distribution proportion to be 3:2:1 and the data amount to be transmitted; the method and the device can also be set according to other principles or rules, and the embodiment of the present application is not limited thereto.
It should be noted that the amount of data carried on each available transmission link is equal to the amount of data of the first data packet × the data allocation ratio of each available data transmission link.
Optionally, user-defined settings and modifications of the proportional relationship may be received.
Optionally, when the first data packet is transmitted, the first data packet may also be equally divided into each available transmission link for transmitting the first data packet.
608. The processor 501 of the first terminal 100 executes the data transmission instructions in the memory 503 to establish a link connection with the second terminal according to the available transmission link and to transmit the first data packet to the second terminal.
It should be noted that each determined available transmission link is used for transmitting data of the first data packet that needs to be carried in parallel.
Optionally, during the whole process of transmitting the data to be transmitted by the first terminal 100, a "stop" option may be displayed on the terminal screen, so that the user may stop the data transmission at any time during the data transmission process, and after stopping the data transmission, a "continue" option may be displayed on the terminal screen, so that the user may resume the data transmission at any time after stopping the data transmission, for example, the user temporarily suspends the data transmission during the data transmission process, releases the memory for participating in a video conference, and continues the unfinished data transmission after finishing the video conference.
609. The processor 501 of the first terminal 100 executes the information management instruction in the memory 503 to detect the transmission information of the first packet.
Optionally, the transmission information may include, but is not limited to: the first terminal 100 transmits transmission rate information and/or power consumption information when transmitting the first packet to the second terminal 110.
Further optionally, the power consumption information may include: power consumption per unit time of each available transmission link when the first terminal 100 transmits the first data packet to the second terminal 110; the transmission rate information may include: the transmission rate of each available transmission link when the first terminal 100 transmits the first data packet to the second terminal 110.
610. The processor 501 of the first terminal 100 executes the analysis instructions in the memory 503 to determine the data to be transmitted by each of the available transmission links when transmitting the second data packet according to the transmission information and the transmission policy of the first data packet.
For example, if the transmission policy is a time-saving policy, the available transmission links are usb.0 and WiFi when the first data packet is transmitted, the data allocation ratio corresponding to the transmission links is 1:1, and when the first data packet is actually transmitted, it is found that the transmission rate of usb.0 is 2 times of the transmission rate of WiFi, then when the second data packet is transmitted, the data allocation ratio corresponding to usb.0 and WiFi may be adjusted to 2:1, so as to save transmission time.
After determining that the data to be transmitted by each of the available transmission links is good for transmitting the second data packet, the first terminal 100 transmits the second data packet to the second terminal 110 through each of the additional transmission links according to the specific data amount allocated.
Similarly, the transmission process for any data packet after the second data packet is similar to the transmission process for the second data packet. As shown in fig. 13, which is a flowchart of a second data transmission method provided in the embodiment of the present application, as shown in fig. 13, after step 610 in fig. 6, the method may further include:
1301. the processor 501 of the first terminal 100 executes the data transmission instructions in the memory 503 to transmit the ith data packet to the second terminal 110 over the available transmission link for transmitting the ith data packet.
The ith data packet is any one of at least two data packets into which the data to be transmitted is divided, except for the first data packet and the second data packet.
1302. The processor 501 of the first terminal 100 executes the information management instruction in the memory 503 to detect the transmission information of the ith packet.
1303. The processor 501 of the first terminal 100 executes the analysis instructions in the memory 503, and determines the data to be transmitted by each of the available transmission links when the i +1 th data packet is transmitted according to the transmission information and the transmission policy of the i th data packet.
And the (i + 1) th data packet is the next data packet which needs to be transmitted after the ith data packet is transmitted.
1304. The processor 501 of the first terminal 100 executes the data transmission instructions in the memory 503 to transmit the (i + 1) th data packet to the second terminal 110 over the available transmission link for transmitting the (i + 1) th data packet.
1305. The processor 501 of the first terminal 100 executes the analysis instructions in the memory 503 to determine whether all data packets have been transmitted. If the data transmission is finished, finishing the data transmission; if not, the next data packet is processed by the same method as that used for transmitting the (i + 1) th data packet.
Optionally, as shown in fig. 14, a flow chart of a data transmission method according to the embodiment of the present application is shown. As shown in fig. 14, before step 1303, the method may further include:
1401. the processor 501 of the first terminal 100 executes the detection instruction in the memory 503 to detect the transmission policy adjustment operation of the user.
For example, after the first terminal 100 completes transmission of the ith data packet by using the time-saving policy, the user may find that the power consumption of the first terminal 100 is faster than expected consumption, and adjust the transmission policy from the time-saving policy to the power-saving policy by using a transmission policy option button or other selection changing manner.
Fig. 15 is a schematic view of a transmission policy modification interface according to an embodiment of the present application. As shown in fig. 15, during the data transmission process, the user adjusts the transmission strategy by pulling down the "change data backup settings" button on the interface.
It should be noted that the user may issue an instruction to adjust the transmission policy at any time, but the first terminal 100 changes the transmission policy from the moment before the next data packet transmission of the currently transmitted data packet.
1402. The processor 501 of the first terminal 100 executes the analysis instruction in the memory 503 to adjust the transmission policy in response to the transmission policy adjustment operation.
Optionally, the data to be transmitted by each of the available transmission links may also be determined by a calculation model corresponding to a preset transmission policy.
It should be noted that different transmission strategies correspond to different calculation models, and the calculation models may be pre-written in the memory 503 of the first terminal 100 to determine the optimal amount of data carried on each transmission link.
For example, if the transmission policy is a power saving policy, when it is determined to transmit the (i + 1) th data packet by the following calculation method, the data to be transmitted in each of the available transmission links may be:
calculating the data x to be transmitted of each link1,x2,…,xMSuch that each available transmission link is at the same transmission rate α as when the ith data packet was transmitted1,α2,…αMWhen the (i + 1) th data packet is transmitted, the total power consumption
Figure BDA0001966717020000161
Is less than the preset threshold value P and,
Figure BDA0001966717020000162
and the total time consumption is less than a preset threshold value T1; wherein, M refers to the total M available transmission links for transmitting the ith data packet, and the data amount to be transmitted by the M available transmission links is x respectively for 1 st, 2 nd and … th1,x2,…,xMJ is any one of M available transmission links, thetajAverage power consumption per unit time for the j-th transmission link, αjAverage rate of transmission of ith data packets for jth transmission link, D2Is the total data amount of the (i + 1) th data packet.
Optionally, when the i +1 th data packet is transmitted, the data to be transmitted in each of the available transmission links may be determined by the following method:
calculating the data x to be transmitted of each link1,x2,…,xMSuch that each available transmission link is at the same transmission rate α as when the ith data packet was transmitted1,α2,…αMWhen the (i + 1) th data packet is transmitted, the total power consumption
Figure BDA0001966717020000163
At a minimum, i.e.
Figure BDA0001966717020000164
And is
Figure BDA0001966717020000165
For example, if the transmission policy is a time-saving policy, it may be determined by the following calculation method that when the i +1 th data packet is transmitted, the data to be transmitted is required by each of the available transmission links:
calculating the data x to be transmitted of each link1,x2,…,xMSuch that each available transmission link is at the same transmission rate α as when the ith data packet was transmitted1,α2,…αMWhen the (i + 1) th data packet is transmitted, the total time consumption
Figure BDA0001966717020000166
Is less than a preset threshold value T2, and
Figure BDA0001966717020000167
wherein, M refers to the total M available transmission links for transmitting the ith data packet, and the data amount to be transmitted by the M available transmission links is x respectively for 1 st, 2 nd and … th1,x2,…,xMJ is any one of the M available transmission links, αjAverage rate of transmission of ith data packets for the first transmission link, Di+1Is the total data amount of the (i + 1) th data packet.
Optionally, when the i +1 th data packet is transmitted, the data to be transmitted in each of the available transmission links may be determined by the following method:
calculating the data x to be transmitted of each link1,x2,…,xMSuch that each available transmission link is at the same transmission rate α as when the ith data packet was transmitted1,α2,…αMWhen the (i + 1) th data packet is transmitted, the total time consumption
Figure BDA0001966717020000168
At a minimum, i.e.
Figure BDA0001966717020000171
And is
Figure BDA0001966717020000172
It should be noted that, the total power consumption amount cannot be obtained by the above method
Figure BDA0001966717020000173
Minimum optimal solution x1,x2,…,xMAnd total time spent
Figure BDA0001966717020000174
At the minimum, when the optimal solution cannot be obtained, the suboptimal solution can be obtained by using an intelligent algorithm such as a genetic algorithm (genetic algorithm), a simulated annealing algorithm (simulated annealing), an ant colony optimization (ant colony optimization), a neural network and the like.
Optionally, as shown in fig. 16, a fourth flowchart of a data transmission method according to an embodiment of the present application is shown. As shown in fig. 16, before step 1303, the method may further include:
1601. the processor 501 of the first terminal 100 executes the analysis instructions in the memory 503 to adjust the transmission policy based on the transmission information.
For example, it is determined whether power consumption information indicating that power consumption is greater than a preset threshold P when the first data packet is transmitted, and if so, the transmission policy is adjusted from a time-saving policy to a power-saving policy; wherein the power consumption comprises power consumption of the first terminal and/or power consumption of a second terminal; or, judging whether the transmission rate information when the first data packet is transmitted shows that the average transmission rate is less than a preset threshold value V, if so, adjusting the transmission strategy from a power-saving strategy to a time-saving strategy; wherein the average transmission rate comprises an average amount of transmission rates of the first terminal and/or an average reception rate of the second terminal.
Optionally, during the transmission of the first data packet to the second terminal according to the available transmission link, or after the transmission of the first data packet is completed, the method may further include: third terminal information and fourth terminal information are obtained, where the third terminal information is hardware information and protocol information of the first terminal 100, and the fourth terminal information is hardware information and protocol information of the second terminal 110. And adjusting the available transmission link according to the third terminal information and the fourth terminal information.
Exemplarily, as shown in fig. 17, a flow chart of a data transmission method according to an embodiment of the present application is shown in fig. five. After step 1301, the method may further include:
1701. the processor 501 of the first terminal 100 executes the information management instruction in the memory 503 to acquire the third terminal information and the fourth terminal information. If there are more available transmission links, 1702 is performed.
Step 1701 may be performed in parallel with step 1301, in parallel with step 1302, or after step 1302 and before step 1303.
In addition, step 1303 is actually: and determining the data to be transmitted by each link in other available transmission links except the newly added transmission link when the ith +1 data packet is transmitted according to the transmission information and the transmission strategy of the ith data packet.
1702. The processor 501 of the first terminal 100 executes the analysis instruction in the memory 503, and determines, according to the preset allocation policy, that data to be transmitted is newly added to the transmission link when the second data packet is transmitted.
If step 1701 can be performed in parallel with step 1301, that is, the transmission of the ith data packet is in progress, the available transmission link for the transmission of the ith data packet is not changed, only when the transmission of the (i + 1) th data packet is determined according to the preset allocation policy, data to be transmitted on the new transmission link is added, and then the data of the (i + 1) th data packet except the data carried by the new transmission link in the (i + 1) th data packet is carried by other available links according to the transmission information and the transmission policy of the ith data packet.
If step 1701 is performed in parallel with step 1302 or after step 1302 and before step 1303, when it is determined to transmit the (i + 1) th data packet according to the preset allocation policy, newly adding data to be transmitted on the transmission link, and then carrying data of the (i + 1) th data packet in the (i + 1) th data packet, except the data carried by the newly added transmission link, on other available links according to the transmission information and the transmission policy of the (i) th data packet.
Taking the example of transmitting the first data packet through the first link and the second link, a newly added third link is detected in the process of transmitting the first data packet, for example, a newly added WiFi transmission link exists due to a user moving to an environment with good WiFi signals, the first terminal 100 completes transmission of the first data packet without any change, then determines data to be transmitted on the newly added third link when transmitting the second data packet according to a preset allocation strategy, and then allocates data of other second data packets to the first link and the second link according to transmission information and a transmission strategy of the first data packet; wherein the first link, the second link and the third link are different from each other.
It should be noted that the allocation policy may be an average allocation policy, or an allocation policy according to other preset allocation policies, for example: according to the custom ratio distribution, the custom ratio can be determined according to the performance of each data transmission link, for example, according to the transmission speed or the power consumption setting of the data transmission link, and the embodiment of the present application is not limited thereto.
Optionally, as shown in fig. 18, a sixth flowchart of a data transmission method provided in the embodiment of the present application is shown. The method may further comprise: if the processor 501 of the first terminal 100 executes the information management instruction in the memory 503 and detects that one of the available transmission links is unavailable, step 1801 is executed.
1801. The processor 501 of the first terminal 100 executes the analysis instructions in the memory 503 to allocate data that has not been transmitted over the deleted transmission link to other available transmission links.
It should be noted that, the first terminal 100 may equally distribute the data that is not completely transmitted by the deleted transmission link to other available transmission links, and may also allocate the data to other available transmission links according to other allocation policies or other factors, which is not limited in this embodiment of the present application.
Similarly, step 1801 may occur during step 1301, may be performed in parallel with step 1302, or may be performed after step 1302 and before step 1303.
The available transmission link for transmitting the (i + 1) th data packet is actually other available transmission links than the deleted transmission link.
Taking the example of transmitting the first data packet through the first link, the second link and the third link, detecting that the third link is unavailable during the transmission of the first data packet, for example, the WiFi link of the first terminal 100 or the second terminal 110 is disconnected due to poor quality or light failure, and for example, the data line between the first terminal 100 and the second terminal 110 is disconnected by the user for use, the first terminal 100 allocates the data that is not transmitted through the third link to the first link and the second link for continuous transmission, and finishes the transmission of the first data packet at this time. And, determining an available transmission link for transmitting the second data packet may include: a first link and a second link; wherein the first link, the second link and the third link are different from each other.
The available transmission links for transmitting the second data packet at this time maintain the first link and the second link.
Optionally, the first terminal 100 may divide the data that has been deleted from the transmission link and has not been completely transmitted to other available transmission links, and may also allocate the data to other available transmission links according to other allocation policies or other factors, which is not limited in this embodiment.
The embodiment of the application can divide the functional modules of the server, for example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
For example, in a case that each functional module is divided in an integrated manner, as shown in fig. 19, a schematic view of a virtual structure of a terminal provided in the embodiment of the present application is shown. The first terminal 100 may include a detection module 1910, a connection module 1920, an information management module 1930, an analysis module 1940, and a data transmission module 1950, where the detection module 1910 is configured to detect a data transmission operation of a user; the connection module 1920 is configured to pair with the second terminal 110 in response to a data transmission operation of a user; the information management module 1930 is configured to obtain first terminal information and second terminal information, where the first terminal information is hardware information and protocol information of the first terminal 100, and the second terminal information is hardware information and protocol information of the second terminal 110; and determining data to be transmitted; the analysis module 1940 is configured to determine a transmission policy and divide the data to be transmitted into at least two data packets, the at least two data packets including: a first data packet and a second data packet; determining an available transmission link according to the first terminal information, the second terminal information and the transmission strategy, wherein the available transmission link comprises at least two links; determining data to be transmitted by each link in the available transmission links when the first data packet is transmitted; a data transmission module 1950, configured to establish a link connection with the second terminal 110 according to an available transmission link, and transmit the first data packet to the second terminal 110; the information management module 1930 is further configured to detect transmission information of the first data packet; the analysis module 1940 is further configured to determine, according to the transmission information and the transmission policy of the first data packet, data to be transmitted by each of the available transmission links when the second data packet is transmitted.
Optionally, the information management module 1930 may be further configured to, before determining, according to transmission information and a transmission policy of a first data packet, that each of the available transmission links needs to transmit data of the second data packet, transmit the first data packet to the second terminal 110, and then acquire third terminal information and fourth terminal information, where the third terminal information is hardware information and protocol information of the first terminal 100, and the fourth terminal information is hardware information and protocol information of the second terminal 110; the analyzing module 1940 may be further configured to adjust the available transmission link according to the third terminal information and the fourth terminal information.
Optionally, the determining an available transmission link according to the first terminal information, the second terminal information, and the transmission policy may include: determining a transmission link commonly supported by the first terminal 100 and the second terminal 110 according to the first terminal information and the second terminal information; the available transmission links are determined from the transmission links commonly supported by the first terminal 100 and the second terminal 110 according to the transmission policy.
Optionally, the transmission information may include: the first terminal 100 transmits the rate information and/or the power consumption information when transmitting the first packet to the second terminal 110.
Optionally, the transmission policy may include: a power saving policy or a time saving policy; the information management module 1930 may further be configured to, when it is determined to transmit the second data packet according to the transmission information and the transmission policy of the first data packet, detect a transmission policy adjustment operation of a user before data that needs to be transmitted by each of the available transmission links; the analysis module 1940 may also be configured to, in response to the transmission policy adjustment operation, adjust the transmission policy; or, the analysis module 1940 may be further configured to determine whether power consumption information indicating power consumption when the first data packet is transmitted is greater than a preset threshold P, and if so, adjust the transmission policy from the time-saving policy to the power-saving policy; wherein the power consumption includes a power consumption of the first terminal 100 and/or a power consumption of the second terminal 110; or judging whether the transmission rate information when the first data packet is transmitted shows that the average transmission rate is less than a preset threshold value V, if so, adjusting the transmission strategy from a power-saving strategy to a time-saving strategy; wherein the average transmission rate comprises an average amount of transmission rates of the first terminal 100 and/or an average reception rate of the second terminal 110.
Optionally, the transmission policy is a power saving policy, and the power consumption information when the first terminal 100 transmits the first data packet to the second terminal 110 may include: power consumption per unit time of each available transmission link when the first terminal 100 transmits the first data packet to the second terminal 110; determining, according to the transmission information and the transmission policy of the first data packet, data to be transmitted by each of the available transmission links when the second data packet is transmitted, including: determining data that needs to be transmitted by each of the available transmission links for transmitting the second data packet such that: when each available transmission link transmits the second data packet at the same transmission rate as the first data packet, the total power consumption is less than the preset threshold P, and the total power consumption is less than the preset threshold T1.
Optionally, the transmission policy is a time-saving policy, and the transmission rate information when the first terminal 100 transmits the first data packet to the second terminal 110 may include: a transmission rate of each available transmission link when the first terminal 100 transmits the first data packet to the second terminal 110; determining, according to the transmission information and the transmission policy of the first data packet, data to be transmitted by each of the available transmission links when the second data packet is transmitted, including: determining data that needs to be transmitted by each of the available transmission links for transmitting the second data packet such that: each available transmission link transmits a second data packet at the same transmission rate as the first data packet, and the total time consumption is less than a preset threshold T2.
Optionally, the available transmission links may include at least a first link and a second link; the adjusting the available transmission link according to the third terminal information and the fourth terminal information may include: judging whether a third link exists according to the third terminal information and the fourth terminal information, wherein the third link is different from each available transmission link when the first data packet is transmitted; if so, determining the third link as an available transmission link; determining, according to the transmission information and the transmission policy of the first data packet, data to be transmitted by each of the available transmission links when the second data packet is transmitted, including: determining data to be transmitted on a third link when the second data packet is determined to be transmitted according to a preset allocation strategy; and carrying the data of the second data packet except the data carried by the third link in the second data packet on each available transmission link except the first link according to the transmission information and the transmission strategy of the first data packet.
Optionally, if the first link is unavailable when the first data packet is transmitted to the second terminal 110, the analysis module is further configured to: allocating the data which is not transmitted by the first link to at least one available transmission link except the first link for further transmission; determining the available transmission links for transmitting the second data packet includes each available transmission link other than.
Optionally, the first terminal 100 further comprises an informing module 1960, configured to remind the user to assist in establishing each available transmission link according to the determined available transmission links before establishing the link connection with the second terminal 110.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (22)

1. A data transmission method is applied to a first terminal, and is characterized by comprising the following steps:
detecting data transmission operation of a user;
responding to the data transmission operation of the user, and pairing with a second terminal;
acquiring first terminal information and second terminal information, wherein the first terminal information is hardware information and protocol information of the first terminal, and the second terminal information is hardware information and protocol information of the second terminal;
determining data to be transmitted and a transmission strategy;
dividing the data to be transmitted into at least two data packets, wherein the at least two data packets comprise: a first data packet and a second data packet;
determining available transmission links according to the first terminal information, the second terminal information and the transmission strategy, wherein the available transmission links comprise at least two links;
determining data to be transmitted by each link in the available transmission links when the first data packet is transmitted;
establishing link connection with the second terminal according to the available transmission link, and transmitting the first data packet to the second terminal;
detecting transmission information of the first data packet;
and determining the data required to be transmitted by each link in the available transmission links when the second data packet is transmitted according to the transmission information of the first data packet and the transmission strategy.
2. The data transmission method according to claim 1, wherein before the determining, according to the transmission information of the first data packet and the transmission policy, the data of the second data packet that needs to be transmitted by each of the available transmission links, the method further comprises:
acquiring third terminal information and fourth terminal information, wherein the third terminal information is hardware information and protocol information of the first terminal, and the fourth terminal information is hardware information and protocol information of the second terminal;
and adjusting the available transmission link according to the third terminal information and the fourth terminal information.
3. The data transmission method according to claim 2, wherein the determining an available transmission link according to the first terminal information, the second terminal information and the transmission policy comprises:
determining a transmission link commonly supported by the first terminal and the second terminal according to the first terminal information and the second terminal information;
and determining available transmission links from the transmission links commonly supported by the first terminal and the second terminal according to the transmission strategy.
4. A data transmission method according to claims 1-3, characterized in that said transmission information comprises: and transmitting the rate information and/or the power consumption information when the first terminal transmits the first data packet to a second terminal.
5. The data transmission method according to claim 4, wherein the transmission policy comprises: a power saving policy or a time saving policy; before determining, according to the transmission information of the first data packet and the transmission policy, that data needs to be transmitted by each of the available transmission links when the second data packet is transmitted, the method further includes:
detecting a transmission strategy adjustment operation of a user;
adjusting the transmission policy in response to the transmission policy adjustment operation;
or the like, or, alternatively,
judging whether the power consumption information when the first data packet is transmitted shows that the power consumption is larger than a preset threshold value P or not,
if yes, adjusting the transmission strategy from a time-saving strategy to a power-saving strategy; wherein the power consumption comprises power consumption of the first terminal and/or power consumption of the second terminal; or the like, or, alternatively,
judging that the transmission rate information when the first data packet is transmitted shows that the average transmission rate is less than a preset threshold value V, if so, adjusting the transmission strategy from a power-saving strategy to a time-saving strategy; wherein the average transmission rate comprises an average amount of transmission rates of the first terminal and/or an average reception rate of the second terminal.
6. The data transmission method according to claim 5, wherein the transmission policy is a power saving policy, and the power consumption information when the first terminal transmits the first packet to the second terminal comprises: the power consumption of each available transmission link in unit time when the first terminal transmits the first data packet to the second terminal;
determining, according to the transmission information of the first data packet and the transmission policy, data to be transmitted by each of the available transmission links when the second data packet is transmitted, including:
determining data that each of the available transmission links that transmit the second data packet needs to transmit such that:
when each of the available transmission links transmits the second data packet at the same transmission rate as that of the first data packet, the total power consumption is less than a preset threshold P, and the total power consumption is less than a preset threshold T1.
7. The data transmission method according to claim 5, wherein the transmission policy is a time-saving policy, and the transmission rate information when the first terminal transmits the first data packet to the second terminal includes: the transmission rate of each available transmission link when the first terminal transmits the first data packet to a second terminal;
determining, according to the transmission information of the first data packet and the transmission policy, data to be transmitted by each of the available transmission links when the second data packet is transmitted, including:
determining data that each of the available transmission links that transmit the second data packet needs to transmit such that:
when each available transmission link transmits the second data packet at the same transmission rate as that of the first data packet, the total time consumption is less than a preset threshold value T2.
8. The data transmission method according to any of claims 2-7, wherein the available transmission links comprise at least a first link and a second link; the adjusting the available transmission link according to the third terminal information and the fourth terminal information includes:
judging whether a third link exists according to the third terminal information and the fourth terminal information, wherein the third link is different from each available transmission link when the first data packet is transmitted;
if yes, determining the third link as an available transmission link;
determining, according to the transmission information of the first data packet and the transmission policy, data to be transmitted by each of the available transmission links when the second data packet is transmitted, including:
determining data to be transmitted on the third link when the second data packet is determined to be transmitted according to a preset allocation strategy;
and loading the data of the second data packet except the data loaded by the third link in each available transmission link except the third link according to the transmission information of the first data packet and the transmission strategy.
9. The data transmission method according to any one of claims 2 to 7,
if the first link is unavailable while transmitting the first data packet to the second terminal, the method further comprises:
allocating the data which is not transmitted by the first link to at least one available transmission link except the first link for further transmission;
determining available transmission links for transmitting the second data packet includes each available transmission link other than the first link.
10. The data transmission method according to any one of claims 1 to 9, wherein before establishing the link connection with the second terminal, the method further comprises:
and reminding a user to assist in establishing each available transmission link according to the determined available transmission links.
11. A first terminal, characterized in that the first terminal comprises:
the detection module is used for detecting data transmission operation of a user;
the connection module is used for responding to the data transmission operation of the user and pairing with a second terminal;
the information management module is used for acquiring first terminal information and second terminal information, wherein the first terminal information is hardware information and protocol information of the first terminal, and the second terminal information is hardware information and protocol information of the second terminal; and
determining data to be transmitted;
an analysis module for determining a transmission policy; and
dividing the data to be transmitted into at least two data packets, wherein the at least two data packets comprise: a first data packet and a second data packet; and
determining available transmission links according to the first terminal information, the second terminal information and the transmission strategy, wherein the available transmission links comprise at least two links; and
determining data to be transmitted by each link in the available transmission links when the first data packet is transmitted;
the data transmission module is used for establishing link connection with the second terminal according to the available transmission link and transmitting the first data packet to the second terminal;
the information management module is further used for detecting the transmission information of the first data packet;
the analysis module is further configured to determine, according to the transmission information of the first data packet and the transmission policy, data to be transmitted by each of the available transmission links when the second data packet is transmitted.
12. The first terminal of claim 11, wherein the information management module is further configured to,
before determining, according to the transmission information of the first data packet and the transmission policy, data of the second data packet that needs to be transmitted by each of the available transmission links, third terminal information and fourth terminal information are obtained, where the third terminal information is hardware information and protocol information of the first terminal, and the fourth terminal information is hardware information and protocol information of the second terminal;
the analysis module is further configured to adjust the available transmission link according to the third terminal information and the fourth terminal information.
13. The first terminal according to claim 12, wherein the determining an available transmission link according to the first terminal information, the second terminal information and the transmission policy comprises:
determining a transmission link commonly supported by the first terminal and the second terminal according to the first terminal information and the second terminal information;
and determining available transmission links from the transmission links commonly supported by the first terminal and the second terminal according to the transmission strategy.
14. The first terminal according to any of claims 11-13, wherein the transmission information comprises: and transmitting the rate information and/or the power consumption information when the first terminal transmits the first data packet to a second terminal.
15. The first terminal of claim 14, wherein the transmission policy comprises: a power saving policy or a time saving policy; the information management module is further configured to,
when the second data packet is determined to be transmitted according to the transmission information of the first data packet and the transmission strategy, detecting the transmission strategy adjustment operation of a user before data needing to be transmitted by each link in the available transmission links;
the analysis module is further configured to adjust the transmission policy in response to the transmission policy adjustment operation;
or the like, or, alternatively,
the analysis module is further used for judging that the power consumption information display power consumption when the first data packet is transmitted is larger than a preset threshold value P, and if so, adjusting the transmission strategy from a time-saving strategy to a power-saving strategy; wherein the power consumption comprises power consumption of the first terminal and/or power consumption of the second terminal; or
Judging that the transmission rate information when the first data packet is transmitted shows that the average transmission rate is less than a preset threshold value V, if so, adjusting the transmission strategy from a power-saving strategy to a time-saving strategy; wherein the average transmission rate comprises an average amount of transmission rates of the first terminal and/or an average reception rate of the second terminal.
16. The first terminal of claim 15, wherein the transmission policy is a power saving policy, and wherein the power consumption information when the first terminal transmits the first packet to the second terminal comprises: the power consumption of each available transmission link in unit time when the first terminal transmits the first data packet to the second terminal;
determining, according to the transmission information of the first data packet and the transmission policy, data to be transmitted by each of the available transmission links when the second data packet is transmitted, including:
determining data that each of the available transmission links that transmit the second data packet needs to transmit such that:
when each of the available transmission links transmits the second data packet at the same transmission rate as that of the first data packet, the total power consumption is less than a preset threshold P, and the total power consumption is less than a preset threshold T1.
17. The first terminal of claim 15, wherein the transmission policy is a time-saving policy, and the transmission rate information when the first terminal transmits the first data packet to the second terminal comprises: the transmission rate of each available transmission link when the first terminal transmits the first data packet to a second terminal;
determining, according to the transmission information of the first data packet and the transmission policy, data to be transmitted by each of the available transmission links when the second data packet is transmitted, including:
determining data that each of the available transmission links that transmit the second data packet needs to transmit such that:
when each available transmission link transmits the second data packet at the same transmission rate as that of the first data packet, the total time consumption is less than a preset threshold value T2.
18. The first terminal according to any of claims 12-17, wherein the available transmission links comprise at least a first link and a second link; the analysis module is further configured to,
judging whether a third link exists according to the third terminal information and the fourth terminal information, wherein the third link is different from each available transmission link when the first data packet is transmitted;
if yes, determining the third link as an available transmission link;
determining, according to the transmission information of the first data packet and the transmission policy, data to be transmitted by each of the available transmission links when the second data packet is transmitted, including:
determining data to be transmitted on the third link when the second data packet is determined to be transmitted according to a preset allocation strategy;
and loading the data of the second data packet in the second data packet except the data loaded by the fourth link on each of the other available transmission links except the third link according to the transmission information of the first data packet and the transmission strategy.
19. The first terminal of any of claims 12-17, wherein if the first link is unavailable for transmission of the first packet to the second terminal, the analysis module is further configured to:
allocating the data which is not transmitted by the first link to at least one available transmission link except the first link for further transmission;
determining available transmission links for transmitting the second data packet includes each available transmission link other than the first link.
20. The first terminal according to any of claims 11-19, characterized in that the first terminal further comprises:
and the notification module is used for reminding a user of assisting in establishing each available transmission link according to the determined available transmission links before the link connection is established with the second terminal.
21. A terminal, characterized in that the terminal comprises:
a memory for storing computer execution instructions;
a processor for executing the computer-executable instructions to implement the data transmission method of any one of claims 1-10.
22. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor implement the data transmission method of any one of claims 1-10.
CN201910105863.8A 2018-11-01 2019-02-01 Data transmission method and corresponding terminal Active CN111132234B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2018113100025 2018-11-01
CN201811310002 2018-11-01

Publications (2)

Publication Number Publication Date
CN111132234A true CN111132234A (en) 2020-05-08
CN111132234B CN111132234B (en) 2023-08-04

Family

ID=70495125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910105863.8A Active CN111132234B (en) 2018-11-01 2019-02-01 Data transmission method and corresponding terminal

Country Status (1)

Country Link
CN (1) CN111132234B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385828A (en) * 2020-05-19 2020-07-07 成都极米科技股份有限公司 Method, terminal and system for receiving and transmitting data in wireless local area network and network access equipment
CN112383948A (en) * 2020-11-13 2021-02-19 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment
CN112654065A (en) * 2021-01-19 2021-04-13 长江水利委员会水文局汉江水文水资源勘测局(长江水利委员会水文局汉江水环境监测中心) River flow speed data acquisition and transmission method
CN113077252A (en) * 2021-04-30 2021-07-06 中国银行股份有限公司 Bank counter business handling method and device
CN113360557A (en) * 2021-05-28 2021-09-07 青岛海信网络科技股份有限公司 Method, device, equipment and medium for adjusting data integration speed
CN114466334A (en) * 2020-11-10 2022-05-10 上海博泰悦臻网络技术服务有限公司 Data transmission method and device based on USB and WiFi, storage medium and electronic equipment
CN114640706A (en) * 2020-11-30 2022-06-17 华为技术有限公司 Data transmission method, electronic device and computer readable storage medium
CN114900865A (en) * 2022-05-26 2022-08-12 上海传英信息技术有限公司 Data processing method, intelligent terminal and storage medium
CN115174840A (en) * 2022-09-06 2022-10-11 深圳市掌锐电子有限公司 Control system based on MIPI signal data transmission
CN115379280A (en) * 2022-10-19 2022-11-22 深圳沛喆微电子有限公司 Information source channel intercommunication transmission method and device and intelligent photo frame
CN116170350A (en) * 2022-12-29 2023-05-26 中国联合网络通信集团有限公司 Data processing method, device and computer readable storage medium
CN117460017A (en) * 2023-10-11 2024-01-26 北京讯腾智慧科技股份有限公司 Beidou reference station data transmission and detection system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9578539B1 (en) * 2013-07-19 2017-02-21 Sprint Spectrum L.P. Transmitting a data packet over a wireless communication link
CN107683598A (en) * 2015-06-03 2018-02-09 桥联有限公司 Transmit data
CN107682882A (en) * 2017-09-29 2018-02-09 努比亚技术有限公司 Data transmission method, mobile terminal and computer-readable recording medium
CN108459926A (en) * 2018-02-26 2018-08-28 新华三技术有限公司 Data remote backup method, apparatus and computer-readable medium
CN108683444A (en) * 2018-07-31 2018-10-19 Oppo广东移动通信有限公司 Data transmission method and related product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9578539B1 (en) * 2013-07-19 2017-02-21 Sprint Spectrum L.P. Transmitting a data packet over a wireless communication link
CN107683598A (en) * 2015-06-03 2018-02-09 桥联有限公司 Transmit data
CN107682882A (en) * 2017-09-29 2018-02-09 努比亚技术有限公司 Data transmission method, mobile terminal and computer-readable recording medium
CN108459926A (en) * 2018-02-26 2018-08-28 新华三技术有限公司 Data remote backup method, apparatus and computer-readable medium
CN108683444A (en) * 2018-07-31 2018-10-19 Oppo广东移动通信有限公司 Data transmission method and related product

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385828A (en) * 2020-05-19 2020-07-07 成都极米科技股份有限公司 Method, terminal and system for receiving and transmitting data in wireless local area network and network access equipment
CN114466334A (en) * 2020-11-10 2022-05-10 上海博泰悦臻网络技术服务有限公司 Data transmission method and device based on USB and WiFi, storage medium and electronic equipment
CN112383948A (en) * 2020-11-13 2021-02-19 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment
CN114640706B (en) * 2020-11-30 2023-09-12 华为技术有限公司 Data transmission method, electronic device and computer readable storage medium
CN114640706A (en) * 2020-11-30 2022-06-17 华为技术有限公司 Data transmission method, electronic device and computer readable storage medium
CN112654065A (en) * 2021-01-19 2021-04-13 长江水利委员会水文局汉江水文水资源勘测局(长江水利委员会水文局汉江水环境监测中心) River flow speed data acquisition and transmission method
CN113077252A (en) * 2021-04-30 2021-07-06 中国银行股份有限公司 Bank counter business handling method and device
CN113360557A (en) * 2021-05-28 2021-09-07 青岛海信网络科技股份有限公司 Method, device, equipment and medium for adjusting data integration speed
CN114900865A (en) * 2022-05-26 2022-08-12 上海传英信息技术有限公司 Data processing method, intelligent terminal and storage medium
CN114900865B (en) * 2022-05-26 2024-06-04 上海传英信息技术有限公司 Data processing method, intelligent terminal and storage medium
CN115174840A (en) * 2022-09-06 2022-10-11 深圳市掌锐电子有限公司 Control system based on MIPI signal data transmission
CN115174840B (en) * 2022-09-06 2022-11-25 深圳市掌锐电子有限公司 Control system based on MIPI signal data transmission
CN115379280B (en) * 2022-10-19 2023-01-31 深圳沛喆微电子有限公司 Information source channel intercommunication transmission method and device and intelligent photo frame
CN115379280A (en) * 2022-10-19 2022-11-22 深圳沛喆微电子有限公司 Information source channel intercommunication transmission method and device and intelligent photo frame
CN116170350A (en) * 2022-12-29 2023-05-26 中国联合网络通信集团有限公司 Data processing method, device and computer readable storage medium
CN116170350B (en) * 2022-12-29 2024-06-04 中国联合网络通信集团有限公司 Data processing method, device and computer readable storage medium
CN117460017A (en) * 2023-10-11 2024-01-26 北京讯腾智慧科技股份有限公司 Beidou reference station data transmission and detection system

Also Published As

Publication number Publication date
CN111132234B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
CN111132234B (en) Data transmission method and corresponding terminal
WO2020168965A1 (en) Method for controlling electronic device having folding screen, and electronic device
US11703960B2 (en) Air mouse mode implementation method and related device
JP7235871B2 (en) Data transmission method and electronic device
WO2021052214A1 (en) Hand gesture interaction method and apparatus, and terminal device
CN115344173A (en) Operation method for split screen display and electronic equipment
CN111030990B (en) Method for establishing communication connection, client and server
WO2022100610A1 (en) Screen projection method and apparatus, and electronic device and computer-readable storage medium
CN112651510B (en) Model updating method, working node and model updating system
EP4181016A1 (en) Image processing method, electronic device, image processing system and chip system
WO2021052407A1 (en) Electronic device control method and electronic device
CN113490291B (en) Data downloading method and device and terminal equipment
CN114422340A (en) Log reporting method, electronic device and storage medium
WO2023241209A9 (en) Desktop wallpaper configuration method and apparatus, electronic device and readable storage medium
CN114339429A (en) Audio and video playing control method, electronic equipment and storage medium
US20240114110A1 (en) Video call method and related device
CN113596919B (en) Data downloading method and device and terminal equipment
CN113365274B (en) Network access method and electronic equipment
CN109285563B (en) Voice data processing method and device in online translation process
CN111935705A (en) Data service management method and device, computer readable medium and terminal equipment
CN113467747A (en) Volume adjustment method, electronic device, storage medium, and computer program product
CN114844542A (en) Antenna selection method and device, electronic equipment and readable storage medium
WO2022252786A1 (en) Window split-screen display method and electronic device
WO2022143158A1 (en) Data backup method, electronic device, data backup system and chip system
WO2024001735A1 (en) Network connection method, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant