Data Transmission Method, Apparatus, Terminal and Storage Medium
By adjusting the bandwidth of the uplink data transmission link and averaging the data to the second time of the downlink data transmission link, the problem of excessive DDR bandwidth caused by DRX cycle alignment is solved, and more efficient data transmission and battery life time is achieved.
Patent Information
- Application Number
- CN202210684389.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-16
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-06-16
AI Technical Summary
In the prior art, when electronic devices conduct uplink and downlink data transmission, DDR bandwidth requirements are too high due to DRX cycle alignment, resulting in data transmission failure.
By determining the target data volume and the duration of the downlink data transmission link, adjusting the bandwidth of the uplink data transmission link, and average data transmission to the second duration of the downlink data transmission link for transmission, avoiding data impact.
It effectively reduces the bandwidth requirements for data transmission, avoids data transmission failure, and improves data transmission efficiency and battery life time.
Smart Images

Figure CN114980219B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of communication technologies, and particularly to a data transmission method, apparatus, terminal, and storage medium. Background Art
[0002] During communication, data transmission between electronic devices is bursty. There is data transmission for a period of time, but no data transmission in the next period of time. Therefore, discontinuous reception (DRX) is often used for data transmission. That is, when there is no data transmission, the power consumption can be reduced by stopping receiving the Physical Downlink Control Channel (PDCCH), thereby increasing the usage time of the battery of the electronic device.
[0003] In related technologies, usually to save power consumption, during data transmission, a method of transmitting data in parallel for uplink and downlink is adopted, that is, the sending end accumulates a certain number of data packets and then sends them to the receiving end, so as to avoid the receiving end frequently starting and sleeping in order to receive data, which leads to an increase in the load of the receiving end processor. At the same time, in order to facilitate the implementation of parallel data transmission for uplink and downlink, the start times of the DRX cycles for uplink and downlink are aligned.
[0004] In the above related technologies, although the method of simultaneous data transmission can bring benefits in terms of power consumption, when uplink and downlink data are concurrent, the DDR bandwidth of the data transmission system is the sum of the uplink DDR bandwidth and the downlink DDR bandwidth. Therefore, after the DRX cycles are aligned, the requirement for the DDR bandwidth is too high, resulting in data transmission failure. Summary of the Invention
[0005] Embodiments of the present application provide a data transmission method, apparatus, terminal, and storage medium, which can reduce the requirement for bandwidth during data transmission. The technical solution is as follows:
[0006] On the one hand, a data transmission method is provided, and the method includes:
[0007] Determine a target data volume, where the target data volume is the data volume transmitted by the uplink data transmission link within a first duration, and the first duration is the duration corresponding to the active time period in the first data transmission cycle of the uplink data transmission link;
[0008] Determine a second duration of the downlink data transmission link, where the second duration is the duration corresponding to the active time period in the second data transmission cycle of the downlink data transmission link;
[0009] Adjust the first data transmission bandwidth of the uplink data transmission link based on the target data volume and the second duration to obtain a second data transmission bandwidth;
[0010] Transmit the data to be transmitted through the uplink data transmission link during the activation period in the second data transmission cycle based on the second data transmission bandwidth.
[0011] On the other hand, a data transmission device is provided, and the device includes:
[0012] A first determination module, configured to determine a target data volume, where the target data volume is the data volume transmitted by the uplink data transmission link within a first duration, and the first duration is the duration corresponding to the activation period in the first data transmission cycle of the uplink data transmission link;
[0013] A second determination module, configured to determine a second duration of the downlink data transmission link, where the second duration is the duration corresponding to the activation period in the second data transmission cycle of the downlink data transmission link;
[0014] An adjustment module, configured to adjust the first data transmission bandwidth of the uplink data transmission link based on the target data volume and the second duration to obtain a second data transmission bandwidth;
[0015] A data transmission module, configured to transmit the data to be transmitted through the uplink data transmission link during the activation period in the second data transmission cycle based on the second data transmission bandwidth.
[0016] On the other hand, a terminal is provided, and the terminal includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the data transmission method as described in the above aspect.
[0017] On the other hand, a computer-readable storage medium is provided, and the computer-readable storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the data transmission method as described in the above aspect.
[0018] On the other hand, a computer program product is provided, and the computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the data transmission method as described in the above aspect.
[0019] In an embodiment of the present application, by averaging the data transmitted on the uplink transmission link within the second time period corresponding to the downlink data transmission link, it is possible to avoid the problem that during data transmission, at the initial stage of data transmission, due to the large bandwidths of the uplink data transmission link and the downlink data transmission link, data shocks occur, resulting in insufficient bandwidth and further causing data transmission failures. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 FIG. shows a schematic diagram of an implementation environment related to a data transmission method provided by an exemplary embodiment of the present application;
[0021] Figure 2 FIG. shows a flowchart of a data transmission method shown in an exemplary embodiment of the present application;
[0022] Figure 3 FIG. shows a schematic diagram of the data transmission bandwidth shown in an exemplary embodiment of the present application;
[0023] Figure 4 FIG. shows a flowchart of a data transmission method shown in an exemplary embodiment of the present application;
[0024] Figure 5 FIG. shows a flowchart of a data transmission method shown in an exemplary embodiment of the present application;
[0025] Figure 6 FIG. shows a schematic diagram of the activation time of a hardware accelerator shown in an exemplary embodiment of the present application;
[0026] Figure 7 FIG. shows a block diagram of a data transmission device shown in an exemplary embodiment of the present application;
[0027] Figure 8 FIG. shows a block diagram of a terminal shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0028] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe in detail the embodiments of the present application with reference to the accompanying drawings.
[0029] As used herein, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects and indicates that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. In addition, the relevant data involved in the present application can be data authorized by the user or fully authorized by all parties.
[0030] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions. For example, the target data volume, the first data transmission cycle, and the second data transmission cycle involved in this application are all obtained under sufficient authorization.
[0031] Please refer to Figure 1 , which shows a schematic diagram of the implementation environment involved in the data transmission method provided by an exemplary embodiment of this application. This implementation environment includes a sending end 10 and a receiving end 20. The sending end 10 and the receiving end 20 communicate through a network.
[0032] In order to reduce power consumption, the sending end 10 and the receiving end 20 perform data transmission according to the data transmission cycle. The data transmission cycle includes the first data transmission cycle of the uplink data transmission link and the second data transmission cycle of the downlink data transmission link. Both the first data transmission cycle and the second data transmission cycle include an active time period and a sleep time period. During the active time period, the data transmission link is in the powered-on state and can perform data transmission. During the sleep time period, the data transmission link is in the powered-off state, and during this time, the data transmission link does not perform data transmission. Thus, during the data transmission process, the data transmission link does not need to be in the powered-on state all the time, thereby reducing power consumption.
[0033] During the data transmission process, the data transmitted during the uplink data transmission and the downlink data transmission processes are all transmitted through a Double Data Rate (DDR) memory. Among them, the DDR is used to cache the data to be transmitted. Therefore, the bandwidth of the DDR will limit the efficiency and transmission result of data transmission.
[0034] In some embodiments, the receiving end 20 and the sending end 10 are terminals with wireless communication functions. Among them, both the receiving end 20 and the sending end 10 can be mobile terminals, such as mobile phones (or called "cellular" phones) and computers with mobile terminals. For example, they can be portable, pocket-sized, handheld, computer-integrated, or vehicle-mounted mobile devices. Both the receiving end 20 and the sending end 10 can also be mobile phones, tablet computers, computers with wireless communication functions, or wearable devices, etc. In the embodiments of this application, no specific limitation is made in this regard.
[0035] Please refer to Figure 2 , which shows a flowchart of the data transmission method shown by an exemplary embodiment of this application. The method includes:
[0036] Step S201: The terminal determines the target data volume, which is the data volume transmitted by the uplink data transmission link within the first time period. The first time period is the duration corresponding to the active time period in the first data transmission cycle of the uplink data transmission link.
[0037] The target data volume is the data volume of the data transmitted by the uplink data transmission link during the active time period of a first data transmission cycle. In some embodiments, each time the terminal performs data transmission, it predicts the data volume that needs to be transmitted by the uplink data transmission link for this data transmission. In some embodiments, the terminal determines the maximum data volume that can be transmitted by the uplink data transmission link in each data transmission cycle according to the first time period corresponding to the active time period in the first data transmission cycle of the uplink data transmission link and the bandwidth provided by the DDR for the uplink data transmission link.
[0038] Correspondingly, in some embodiments, the terminal reads the data volume of the data cached in the memory to obtain the target data volume. The memory is used to cache the data transmitted by the uplink data transmission link within the first time period. When the terminal transmits data through the uplink, it first caches the data to be transmitted in the memory. When the time reaches the start time of the active time period of the first data transmission cycle, the terminal transmits the data cached in the memory through the uplink data transmission link. In this implementation, the terminal determines the target data volume for this data transmission before the active time period of each data transmission cycle, so as to be able to more accurately adjust the data transmission bandwidth corresponding to the target data volume.
[0039] In some embodiments, the terminal determines the target data volume based on the first data transmission bandwidth and the first time period. The transmission rate of data transmitted in the uplink and downlink data transmission links is affected by the bandwidth of the data transmission link, that is, the maximum transmission rate does not exceed the maximum bandwidth of the data transmission link. Therefore, in the embodiments of the present application, the first data transmission bandwidth is used as the data transmission rate, the product of the first data parameter bandwidth and the first time period is used as the maximum data volume that can be transmitted by the uplink data transmission link within the first time period, and the maximum data volume is used as the target data volume. In the embodiments of the present application, using the maximum data volume that can be transmitted by the uplink data transmission link within the first time period as the target data volume not only ensures that the uplink data transmission link can also transmit the maximum data volume transmitted by the original data transmission bandwidth after adjusting the data transmission bandwidth, but also eliminates the need to determine the target data volume for each data transmission during this data transmission, thereby improving the data transmission efficiency.
[0040] It should be noted that the terminal can be a receiving end or a sending end. In the embodiments of the present application, no specific limitation is made in this regard.
[0041] Step S202: The terminal determines a second duration of the downlink data transmission link, where the second duration is the duration corresponding to the active time period in the second data transmission cycle of the downlink data transmission link.
[0042] The downlink data transmission link is a data transmission link bound to the uplink data transmission link of the terminal. The duration of the second data transmission cycle is the same as that of the first data transmission cycle. The durations of the first data transmission cycle and the second data transmission cycle are set as needed, and in the embodiments of the present application, no specific limitation is made thereto. The second duration is the duration corresponding to the active time period in the second data transmission cycle. The second duration is less than the duration of the second data transmission cycle, and the second duration is set as needed, and in the embodiments of the present application, no specific limitation is made to the second duration.
[0043] In some embodiments, the terminal caches relevant information of the currently used second data transmission cycle, and the relevant information includes the duration of the second data transmission cycle and the duration corresponding to the active time period in the second data transmission cycle. Accordingly, the terminal reads the cached relevant information and obtains the second duration from the relevant information. In some embodiments, the terminal records the duration corresponding to the active time period in the second data transmission cycle through a timer and stores the active time period locally. When the second duration needs to be obtained, the second duration is read from the local storage, or the timing result of the timer is determined as the second duration.
[0044] Step S203: The terminal adjusts the first data transmission bandwidth of the uplink data transmission link based on the target data volume and the second duration to obtain a second data transmission bandwidth.
[0045] The second data transmission bandwidth is less than the first data transmission bandwidth. In this step, the terminal adjusts the duration of the active time period for data transmission in the first data transmission cycle from the first duration to the second duration, so that the data corresponding to the target data volume can be transmitted within the second duration, thereby reducing the bandwidth requirement per unit time, and thus adjusting the first data transmission bandwidth to the second data transmission bandwidth, that is, reducing the bandwidth requirement and ensuring the throughput of the data transmission system.
[0046] Step S204: The terminal transmits the data to be transmitted through the uplink data transmission link within the active time period in the second data transmission cycle based on the second data transmission bandwidth.
[0047] In this step, the terminal sends the data to be transmitted on the uplink data transmission link to other terminals based on the adjusted second data transmission bandwidth and the active time period in the second data transmission cycle. Accordingly, the terminal transmits the data to be transmitted at the second data transmission bandwidth as the transmission rate and with the second duration corresponding to the active time period in the second data transmission cycle as the transmission duration.
[0048] See Figure 3 , the first data transmission bandwidth of the terminal's uplink data transmission link is X, the first duration is t1, the third data transmission bandwidth of the downlink data transmission link is Y, the second duration is t2. Before adjusting the first data bandwidth of the uplink data transmission link, the data transmission bandwidth of the terminal within the t1 time period is X + Y; the terminal adjusts the data transmission duration of the uplink data transmission link from the first duration to the second duration, and adjusts the data transmission bandwidth of the uplink data transmission link from the first data transmission bandwidth to the second data transmission bandwidth Z, where the second data transmission bandwidth Z is less than the first data transmission bandwidth X. After adjustment, the data transmission bandwidth of the terminal within the t2 time period is Z + Y, and the terminal performs data transmission based on the adjusted data transmission bandwidth and data transmission duration.
[0049] In the embodiments of the present application, by averaging the data transmitted on the uplink transmission link within the second duration corresponding to the downlink data transmission link, it is possible to avoid the problem that at the initial stage of data transmission, due to the large bandwidths of the uplink data transmission link and the downlink data transmission link, data impact occurs, resulting in insufficient bandwidth and further causing data transmission failure.
[0050] Please refer to Figure 4 , which shows a flowchart of a data transmission method shown in an exemplary embodiment of the present application. The method includes:
[0051] Step S401: The terminal determines the target data volume, which is the data volume transmitted by the uplink data transmission link within the first duration, and the first duration is the duration corresponding to the active time period in the first data transmission cycle of the uplink data transmission link.
[0052] The principle of this step is the same as that of step S201 and will not be elaborated here.
[0053] Step S402: The terminal determines the second duration of the downlink data transmission link, which is the duration corresponding to the active time period in the second data transmission cycle of the downlink data transmission link.
[0054] The principle of this step is the same as that of step S202 and will not be elaborated here.
[0055] Step S403: The terminal determines the target data transmission rate based on the second duration and the target data volume.
[0056] The data transmission rate is the ratio of the amount of data transmitted to the transmission duration. Correspondingly, in the embodiments of the present application, the terminal determines the quotient of the target data amount and the second duration as the target data transmission rate. By determining the quotient of the target data amount and the second duration as the target transmission rate, since the target data amount is the maximum data amount that the uplink data transmission link can transmit, therefore, determining the quotient of the target data amount and the second duration as the data transmission rate can ensure that the data throughput is not affected.
[0057] Step S404: The terminal determines the data transmission bandwidth matching the target data transmission rate as the second data transmission bandwidth.
[0058] The transmission rate of data is positively correlated with the data transmission bandwidth. In some embodiments, the value of the terminal target data transmission rate is used as the value of the data transmission bandwidth matching the target data transmission rate to obtain the second data transmission bandwidth. In some embodiments, the terminal determines the second data transmission bandwidth matching the target data transmission rate based on the target data transmission rate according to the corresponding relationship between the data transmission rate and the data transmission bandwidth. Among them, the corresponding relationship between the data transmission rate and the data transmission bandwidth can be determined according to any relationship algorithm of the data transmission rate and the data transmission bandwidth, and in the embodiments of the present application, no specific limitation is made in this regard.
[0059] Step S405: The terminal transmits the data to be transmitted through the uplink data transmission link during the active time period in the second data transmission cycle based on the second data transmission bandwidth.
[0060] The principle of this step is the same as that of step S204 and will not be elaborated here.
[0061] In the embodiments of the present application, by averaging the data transmitted by the uplink transmission link within the second duration corresponding to the downlink data transmission link, it is possible to avoid the problem that during data transmission, at the initial stage of data transmission, due to the large bandwidths of the uplink data transmission link and the downlink data transmission link, data impact occurs, resulting in insufficient bandwidth and further leading to data transmission failure.
[0062] In some embodiments, the terminal adopts a structure of a modem and a wireless network access point (Access Point, AP). Among them, the modem and the AP are connected through a Peripheral Component Interconnect Express (PCIE) interface, and the PCIE is powered on by a hardware accelerator, thereby realizing the control of the activation and dormancy of the modem and the AP. In order to prevent power consumption waste caused by the hardware accelerator maintaining the power-on state of the PCIE during the dormancy time in the data transmission cycle. The embodiment of the present application proposes to adjust the power-on state of the hardware accelerator based on the data transmission cycle of the downlink data transmission link. See Figure 5 , which shows a flowchart of a data transmission method shown in an exemplary embodiment of the present application. The method includes:
[0063] Step S501: The terminal determines a target data volume, where the target data volume is the data volume transmitted by the uplink data transmission link within a first time period, and the first time period is the time period corresponding to the activation time period in the first data transmission cycle of the uplink data transmission link.
[0064] The principle of this step is the same as that of step S201, and will not be elaborated here.
[0065] Step S502: The terminal determines a second time period of the downlink data transmission link, where the second time period is the time period corresponding to the activation time period in the second data transmission cycle of the downlink data transmission link.
[0066] The principle of this step is the same as that of step S202, and will not be elaborated here.
[0067] Step S503: The terminal adjusts the first data transmission bandwidth of the uplink data transmission link based on the target data volume and the second time period to obtain a second data transmission bandwidth.
[0068] The principle of this step is the same as that of step S203, and will not be elaborated here.
[0069] Step S504: The terminal controls the operating state of the hardware accelerator based on the second data transmission cycle of the downlink data transmission link. The hardware accelerator is used to control the data transmission of the downlink data transmission link and the uplink data transmission link based on the operating state.
[0070] See Figure 6, in the embodiment of the present application, the duration of the powered-on state of the hardware accelerator is kept consistent with the second data transmission period. Before entering the activation time period, the terminal wakes up the hardware accelerator to make it work. During the sleep time period, the terminal controls the hardware accelerator to also enter the sleep state. Correspondingly, in response to the current time reaching the activation time of the downlink data transmission link, the terminal controls the hardware accelerator to enter the activation state. When the hardware accelerator is in the activation state, the hardware accelerator is used to control the uplink data transmission link and the downlink data transmission link to perform data transmission; in response to the activation duration of the hardware accelerator reaching the second duration, the terminal controls the hardware accelerator to enter the sleep state. When the hardware accelerator is in the sleep state, the hardware accelerator is used to control the uplink data transmission link and the downlink data transmission link to stop performing data transmission.
[0071] It should be noted that this step can also be executed before step S201. In the embodiment of the present application, the execution order of this step is not specifically limited.
[0072] Step S505: The terminal controls the uplink data transmission link through the hardware accelerator, and based on the second data transmission bandwidth, transmits the data to be transmitted through the uplink data transmission link during the activation time period in the second data transmission cycle.
[0073] The principle of this step is the same as that of step S204, and will not be elaborated here.
[0074] In the embodiment of the present application, by keeping the duration of the powered-on state of the hardware accelerator consistent with the second data transmission period, before entering the activation time period, the terminal wakes up the hardware accelerator to make it work. During the sleep time period, the terminal controls the hardware accelerator to also enter the sleep state, thereby preventing the uplink and downlink data transmission links from being powered on during the sleep time period of the data transmission cycle, and further saving the power consumption of the terminal, thereby further increasing the usage duration of the battery.
[0075] Please refer to Figure 7 , which shows the structural block diagram of the data transmission device provided by an embodiment of the present application. The data transmission device can be implemented as all or part of a processor through software, hardware, or a combination of both. The device includes:
[0076] The first determination module 701 is used to determine the target data volume, where the target data volume is the data volume transmitted by the uplink data transmission link within the first duration, and the first duration is the duration corresponding to the activation time period in the first data transmission cycle of the uplink data transmission link;
[0077] A second determination module 702, configured to determine a second duration of the downlink data transmission link, where the second duration is the duration corresponding to the active time period in the second data transmission cycle of the downlink data transmission link;
[0078] An adjustment module 703, configured to adjust a first data transmission bandwidth of the uplink data transmission link based on the target data volume and the second duration to obtain a second data transmission bandwidth;
[0079] A data transmission module 704, configured to transmit data to be transmitted through the uplink data transmission link within the active time period in the second data transmission cycle based on the second data transmission bandwidth.
[0080] In some embodiments, the adjustment module 703 includes:
[0081] A first determination unit, configured to determine a target data transmission rate based on the second duration and the target data volume;
[0082] A second determination unit, configured to determine the data transmission bandwidth matching the target data transmission rate as the second data transmission bandwidth.
[0083] In some embodiments, the first determination unit is configured to determine the quotient of the target data volume and the second duration as the target data transmission rate.
[0084] In some embodiments, the first determination module 701 includes:
[0085] A reading unit, configured to read the data volume of the data cached in the memory to obtain the target data volume, where the memory is used to cache the data transmitted by the uplink data transmission link within the first duration; or,
[0086] A third determination unit, configured to determine the target data volume based on the first data transmission bandwidth and the first duration.
[0087] In some embodiments, the third determination unit is configured to determine a maximum data transmission rate based on the first data transmission bandwidth; and determine the product of the maximum data transmission rate and the first duration as the target data volume.
[0088] In some embodiments, the data transmission module 704 is configured to transmit the data to be transmitted at the second data transmission bandwidth as the transmission rate and with the second duration corresponding to the active time period in the second data transmission cycle as the transmission duration.
[0089] In some embodiments, the apparatus further includes:
[0090] A control module, configured to control an operating state of a hardware accelerator based on a second data transmission period of the downlink data transmission link, where the hardware accelerator is configured to control data transmission of the downlink data transmission link and the uplink data transmission link based on the operating state.
[0091] In some embodiments, the control module includes:
[0092] A first control unit, configured to control the hardware accelerator to enter an active state in response to the current time reaching an activation time of the downlink data transmission link. When the hardware accelerator is in the active state, the hardware accelerator is configured to control data transmission of the uplink data transmission link and the downlink data transmission link;
[0093] A second control unit, configured to control the hardware accelerator to enter a sleep state in response to an activation duration of the hardware accelerator reaching the second duration. When the hardware accelerator is in the sleep state, the hardware accelerator is configured to control the uplink data transmission link and the downlink data transmission link to stop data transmission.
[0094] In an embodiment of the present application, by averaging the data transmitted by the uplink transmission link within the second duration corresponding to the downlink data transmission link, it is possible to avoid, during data transmission, at the initial stage of data transmission, due to the large bandwidths of the uplink data transmission link and the downlink data transmission link, generating data shocks, causing insufficient bandwidth, and further resulting in data transmission failure.
[0095] In some embodiments, the electronic device is provided as a terminal. Please refer to Figure 8 , which shows a structural block diagram of a terminal 800 provided by an exemplary embodiment of the present application. The terminal 800 may be a terminal with an image processing function such as a smart phone or a tablet computer. The terminal 800 in the present application may include one or more of the following components: a processor 810, a memory 820, and a communication module 830.
[0096] The processor 810 may include one or more processing cores. The processor 810 connects various parts within the entire terminal 800 through various interfaces and lines. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 820, and by calling data stored in the memory 820, it performs various functions of the terminal 800 and processes data. Optionally, the processor 810 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 810 may integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the NPU is used to implement artificial intelligence (AI) functions; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 810 and may be implemented separately by a single chip.
[0097] The memory 820 may include random access memory (RAM) and may also include read-only memory. Optionally, the memory 820 includes a non-transitory computer-readable storage medium. The memory 820 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 820 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the terminal 800 (such as audio data, phone book), etc.
[0098] The communication module 830 is used to transmit and receive signals, and the communication module may be a wireless fidelity (Wireless Fidelity, WIFI) module, etc. The communication module 830 adopts the structure of a modem and a wireless network access point (Access Point, AP). The modem and the AP are connected through a high-speed serial computer expansion bus (Peripheral Component Interconnect Express, PCIE) interface, and the PCIE is powered on by a hardware accelerator, thereby realizing the activation and sleep control of the modem and AP.
[0099] The terminal 810 may also include a display screen, which is a display component for displaying a user interface. Optionally, the display screen is a display screen with a touch function, through which a user can use a finger, a touch pen, or any other suitable object to perform touch operations on the display screen.
[0100] The display screen is usually arranged on the front panel of the terminal 800. The display screen can be designed as a full screen, a curved screen, a special-shaped screen, a double-sided screen or a folding screen. The display screen can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.
[0101] In addition, those skilled in the art can understand that the structure of the terminal 800 shown in the above drawings does not constitute a limitation on the terminal 800, and the terminal 800 may include more or fewer components than shown in the drawings, or combine certain components, or arrange the components differently. For example, the terminal 800 also includes components such as a microphone, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a power supply, and a Bluetooth module, which will not be described in detail here.
[0102] An embodiment of the present application further provides a computer-readable storage medium, which stores at least one program code, and the at least one program code is used to be executed by a processor to implement the data transmission method as described in the above aspects.
[0103] An embodiment of the present application further provides a computer program product, which stores at least one program code, and the at least one program code is used to be executed by a processor to implement the data transmission method as described in the above aspects.
[0104] Those skilled in the art should be able to realize that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented by hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. The computer-readable medium includes computer storage media and communication media, where the communication media includes any medium that facilitates the transfer of a computer program from one place to another. The storage media can be any available medium accessible by a general-purpose or special-purpose computer.
[0105] The above are only alternative embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included within the protection scope of the present application.
Claims
1. A data transmission method, characterized in that, The method includes: Determine a target data volume, where the target data volume is the data volume transmitted by the uplink data transmission link within a first duration, and the first duration is the duration corresponding to the active time period in the first data transmission cycle of the uplink data transmission link; Determine a second duration of the downlink data transmission link, where the second duration is the duration corresponding to the active time period in the second data transmission cycle of the downlink data transmission link; Based on the target data volume and the second duration, adjust the first data transmission bandwidth of the uplink data transmission link to obtain a second data transmission bandwidth; Based on the second data transmission cycle of the downlink data transmission link, control the operating state of the hardware accelerator, where the hardware accelerator is used to control the data transmission of the downlink data transmission link and the uplink data transmission link based on the operating state; Control the uplink data transmission link through the hardware accelerator, and transmit the data to be transmitted through the uplink data transmission link within the active time period in the second data transmission cycle based on the second data transmission bandwidth.
2. The method according to claim 1, wherein The adjusting the first data transmission bandwidth of the uplink data transmission link based on the target data volume and the second duration to obtain a second data transmission bandwidth includes: Based on the second duration and the target data volume, determine a target data transmission rate; Determine the data transmission bandwidth matching the target data transmission rate as the second data transmission bandwidth.
3. The method according to claim 2, characterized in that, The determining the target data transmission rate based on the second duration and the target data volume includes: Determine the quotient of the target data volume and the second duration as the target data transmission rate.
4. The method according to claim 1, wherein The determining the target data volume includes: Read the data volume of the data cached in the memory to obtain the target data volume, where the memory is used to cache the data transmitted by the uplink data transmission link within the first duration; or, Based on the first data transmission bandwidth and the first duration, determine the target data volume.
5. The method according to claim 4, wherein The determining the target data volume based on the first data transmission bandwidth and the first duration includes: Based on the first data transmission bandwidth, determine the maximum data transmission rate; Determine the product of the maximum data transmission rate and the first duration as the target data volume.
6. The method according to claim 1, wherein The transmitting the data to be transmitted through the uplink data transmission link within the active time period in the second data transmission cycle based on the second data transmission bandwidth includes: Transmit the data to be transmitted at the second data transmission bandwidth as the transmission rate and with the second duration corresponding to the active time period in the second data transmission cycle as the transmission duration.
7. The method according to claim 1, characterized in that The controlling the operating state of the hardware accelerator based on the second data transmission cycle of the downlink data transmission link includes: In response to the current time reaching the activation time of the downlink data transmission link, control the hardware accelerator to enter the active state. When the hardware accelerator is in the active state, the hardware accelerator is used to control the data transmission of the uplink data transmission link and the downlink data transmission link; In response to the activation duration of the hardware accelerator reaching the second duration, control the hardware accelerator to enter a sleep state. When the hardware accelerator is in the sleep state, the hardware accelerator is used to control the uplink data transmission link and the downlink data transmission link to stop data transmission.
8. A data transmission device, characterized in that, The device includes: A first determination module, configured to determine a target data volume, where the target data volume is the data volume transmitted by the uplink data transmission link within a first duration, and the first duration is the duration corresponding to the activation period in the first data transmission cycle of the uplink data transmission link; A second determination module, configured to determine a second duration of the downlink data transmission link, where the second duration is the duration corresponding to the activation period in the second data transmission cycle of the downlink data transmission link; An adjustment module, configured to adjust the first data transmission bandwidth of the uplink data transmission link based on the target data volume and the second duration to obtain a second data transmission bandwidth; A control module, configured to control the operating state of the hardware accelerator based on the second data transmission cycle of the downlink data transmission link, where the hardware accelerator is used to control the data transmission of the downlink data transmission link and the uplink data transmission link based on the operating state; A data transmission module, configured to control the uplink data transmission link through the hardware accelerator, and transmit the data to be transmitted through the uplink data transmission link within the activation period in the second data transmission cycle based on the second data transmission bandwidth.
9. The device according to claim 8, characterized in that The adjustment module is used to A first determination unit, configured to determine a target data transmission rate based on the second duration and the target data volume; A second determination unit, configured to determine the data transmission bandwidth matching the target data transmission rate as the second data transmission bandwidth.
10. The device according to claim 9, characterized in that, The first determination unit is configured to determine the quotient of the target data volume and the second duration as the target data transmission rate.
11. The device according to claim 8, characterized in that, The first determination module includes: A reading unit, configured to read the data volume of the data cached in the memory to obtain the target data volume, where the memory is used to cache the data transmitted by the uplink data transmission link within the first duration; or A third determination unit, configured to determine the target data volume based on the first data transmission bandwidth and the first duration.
12. The device according to claim 11, wherein, The third determination unit is configured to determine the maximum data transmission rate based on the first data transmission bandwidth; and determine the product of the maximum data transmission rate and the first duration as the target data volume.
13. The device according to claim 8, characterized in that, The data transmission module is configured to transmit the data to be transmitted at the second data transmission bandwidth as the transmission rate and with the second duration corresponding to the activation period in the second data transmission cycle as the transmission duration.
14. The device according to claim 8, characterized in that The control module includes: A first control unit, configured to control the hardware accelerator to enter an active state in response to the current time reaching the activation time of the downlink data transmission link. When the hardware accelerator is in the active state, the hardware accelerator is used to control the uplink data transmission link and the downlink data transmission link to perform data transmission; A second control unit, configured to control the hardware accelerator to enter a sleep state in response to the activation duration of the hardware accelerator reaching the second duration. When the hardware accelerator is in the sleep state, the hardware accelerator is configured to control the uplink data transmission link and the downlink data transmission link to stop data transmission.
15. A terminal, characterized in that, The terminal includes a processor and a memory; the memory stores at least one program code, and the at least one program code is configured to be executed by the processor to implement the data transmission method according to any one of claims 1 to 7.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one program code, and the at least one program code is configured to be executed by a processor to implement the data transmission method according to any one of claims 1 to 7.
17. A computer program product, characterized in that, The computer program product stores at least one program code, and the at least one program code is configured to be executed by a processor to implement the data transmission method according to any one of claims 1 to 7.
Citation Information
Patent Citations
System, Apparatus And Method For Traffic Shaping Of Data Communication Via An Interconnect
US20190081900A1