WO2023241026A1 - Data transmission method and apparatus, and terminal and storage medium - Google Patents

Data transmission method and apparatus, and terminal and storage medium Download PDF

Info

Publication number
WO2023241026A1
WO2023241026A1 PCT/CN2023/070080 CN2023070080W WO2023241026A1 WO 2023241026 A1 WO2023241026 A1 WO 2023241026A1 CN 2023070080 W CN2023070080 W CN 2023070080W WO 2023241026 A1 WO2023241026 A1 WO 2023241026A1
Authority
WO
WIPO (PCT)
Prior art keywords
data transmission
duration
data
transmission link
link
Prior art date
Application number
PCT/CN2023/070080
Other languages
French (fr)
Chinese (zh)
Inventor
胡培金
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023241026A1 publication Critical patent/WO2023241026A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/20Negotiating bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • 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

Definitions

  • the embodiments of the present application relate to the field of communication technology, and in particular to a data transmission method, device, terminal and storage medium.
  • DRX discontinuous reception
  • the DDR bandwidth of the data transmission system is the sum of the uplink DDR bandwidth and the downlink DDR bandwidth. Therefore, the DRX cycle After alignment, the requirements for DDR bandwidth are too high, resulting in data transmission failure.
  • Embodiments of the present application provide a data transmission method, device, terminal and storage medium, which can reduce bandwidth requirements during data transmission.
  • the technical solutions are as follows:
  • a data transmission method is provided, the method is executed by a terminal, the method includes:
  • the target data amount is the amount of data transmitted by the uplink data transmission link within a first duration
  • the first duration is the activation time period in the first data transmission cycle of the uplink data transmission link corresponding duration
  • the data to be transmitted is transmitted through the uplink data transmission link during the activation period in the second data transmission cycle.
  • a data transmission device includes:
  • the first determination module is used to determine the target data amount.
  • the target data amount is the data amount transmitted by the uplink data transmission link within a first duration
  • the first duration is the first data of the uplink data transmission link. The duration corresponding to the activation period in the transmission cycle;
  • the second determination module is used to determine the second duration of the downlink data transmission link, where the second duration is the duration corresponding to the activation time 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 amount and the second duration to obtain a second data transmission bandwidth
  • a data transmission module configured to transmit data to be transmitted through the uplink data transmission link within the activation time period in the second data transmission cycle based on the second data transmission bandwidth.
  • a 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 above aspect. data transmission method.
  • a 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 data transmission as described in the above aspect. method.
  • a 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.
  • the data transmitted by the uplink transmission link is averaged into the second duration corresponding to the downlink data transmission link, thereby avoiding the problem of uplink data transmission in the initial stage of data transmission during data transmission.
  • the bandwidth of the link and the downlink data transmission link is relatively large, resulting in data impact, resulting in insufficient bandwidth, which in turn leads to data transmission failure.
  • Figure 1 shows a schematic diagram of the implementation environment involved in the data transmission method provided by an exemplary embodiment of the present application
  • Figure 2 shows a flow chart of a data transmission method according to an exemplary embodiment of the present application
  • Figure 3 shows a schematic diagram of data transmission bandwidth according to an exemplary embodiment of the present application
  • Figure 4 shows a flow chart of a data transmission method according to an exemplary embodiment of the present application
  • Figure 5 shows a flow chart of a data transmission method according to an exemplary embodiment of the present application
  • Figure 6 shows a schematic diagram of the activation time of a hardware accelerator according to an exemplary embodiment of the present application
  • Figure 7 shows a block diagram of a data transmission device according to an exemplary embodiment of the present application.
  • Figure 8 shows a block diagram of a terminal according to an exemplary embodiment of the present application.
  • the "plurality” mentioned in this article means two or more than two.
  • “And/or” describes the relationship between related objects, indicating that there can be three relationships.
  • a and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone.
  • the character “/” generally indicates that the related objects are in an "or” relationship.
  • the relevant data involved in this application can be data authorized by the user or fully authorized by all parties.
  • the information including but not limited to user equipment information, user personal information, etc.
  • data including but not limited to data used for analysis, stored data, displayed data, etc.
  • signals involved in this application All are authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
  • the target data volume, first data transmission period and second data transmission period involved in this application are all obtained with full authorization.
  • FIG. 1 shows a schematic diagram of the implementation environment involved in the data transmission method provided by an exemplary embodiment of the present application.
  • the implementation environment includes a sending end 10 and a receiving end 20 .
  • the sending end 10 and the receiving end 20 communicate through the network.
  • the sending end 10 and the receiving end 20 perform data transmission according to the data transmission cycle.
  • the data transmission period includes a first data transmission period of the uplink data transmission link and a second data transmission period of the downlink data transmission link. Both the first data transmission period and the second data transmission period include an activation period and a sleep period. During the activation period, the data transmission link is powered on and can transmit data. During the sleep period, the data transmission link is powered off. During this period, the data transmission link does not transmit data. Therefore, during the data transmission process, the data transmission link does not need to be powered on all the time, thereby reducing power consumption.
  • the data transmitted during the uplink data transmission and downlink data transmission processes are transmitted through double data rate memory (Double Data Rate, DDR), where DDR is used to cache the data to be transmitted. Therefore, the bandwidth of DDR will limit the efficiency and transmission results of data transmission.
  • DDR Double Data Rate
  • the receiving end 20 and the sending end 10 are terminals with wireless communication functions.
  • both the receiving end 20 and the sending end 10 can be mobile terminals, such as mobile phones (or "cellular" phones) and computers with mobile terminals.
  • mobile phones or "cellular" phones
  • computers with mobile terminals For example, they can be portable, pocket-sized, handheld, built-in in a computer, or Vehicle-mounted mobile device.
  • the receiving end 20 and the sending end 10 can also be mobile phones, tablet computers, computers with wireless communication functions, or wearable devices. In the embodiment of the present application, there is no specific limitation on this.
  • FIG. 2 shows a flow chart of a data transmission method according to an exemplary embodiment of the present application.
  • the method includes:
  • Step S201 The terminal determines a target data amount.
  • the target data amount is the data amount transmitted by the uplink data transmission link within a first duration.
  • the first duration is the activation time in the first data transmission cycle of the uplink data transmission link. The corresponding duration of the segment.
  • the target data amount is the amount of data transmitted by the uplink data transmission link during the activation period of a first data transmission cycle.
  • each time the terminal performs data transmission it predicts the amount of data that needs to be transmitted by the uplink data transmission link of this data transmission.
  • the terminal provides the bandwidth for the uplink data transmission link based on the first duration corresponding to the activation period in the first data transmission cycle of the uplink data transmission link and the bandwidth of the uplink data transmission link provided by the DDR, To determine the maximum amount of data that the uplink data transmission link can transmit in each data transmission cycle.
  • the terminal reads the data amount of data cached in the memory to obtain the target data amount, and the memory is used to cache the data transmitted by the uplink data transmission link within the first duration.
  • the terminal first caches the data to be transmitted in the memory.
  • the terminal passes the data cached in the memory through the uplink data. Transmission link for data transmission.
  • the terminal determines the target data volume of this data transmission before the activation time period of each data transmission cycle, so that the data transmission bandwidth corresponding to the target data volume can be adjusted more accurately.
  • the terminal determines the target data amount based on the first data transmission bandwidth and the first duration.
  • the transmission rate of data transmitted in 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 this embodiment of the present application, the first data transmission bandwidth is used as the data transmission rate, and the product of the first data parameter bandwidth and the first duration is used as the maximum transmission rate that the uplink data transmission link can transmit within the first duration.
  • the uplink data transmission link can also transmit the original data after adjusting the data transmission bandwidth.
  • the maximum amount of data transmitted by the data transmission bandwidth and there is no need to determine the target data amount for this data transmission during this data transmission, thereby improving the efficiency of data transmission.
  • the terminal can be a receiving end or a sending end. In the embodiment of the present application, this is not specifically limited.
  • Step S202 The terminal determines the second duration of the downlink data transmission link, where the second duration is the duration corresponding to the activation time period in the second data transmission cycle of the downlink data transmission link.
  • 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 period and the first data transmission period are the same.
  • the lengths of the first data transmission period and the second data transmission period are set as needed, and are not specifically limited in this embodiment of the present application.
  • the second duration is a duration corresponding to the activation 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. In the embodiment of the present application, the second duration is not specifically limited.
  • relevant information of the currently used second data transmission cycle is cached in the terminal.
  • the relevant information includes the duration of the second data transmission cycle and the duration corresponding to the activation time period in the second data transmission cycle.
  • the terminal reads the cached relevant information and obtains the second duration from the relevant information.
  • the terminal records the duration corresponding to the activation period in the second data transmission cycle through a timer, and stores the activation period locally. When it is necessary to obtain the second duration, the second duration is read from the local storage, or the timing result of the timer is determined as the second duration.
  • Step S203 Based on the target data amount and the second duration, the terminal adjusts the first data transmission bandwidth of the uplink data transmission link to obtain a second data transmission bandwidth.
  • the second data transmission bandwidth is smaller than the first data transmission bandwidth.
  • the terminal adjusts the duration of the activation 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 amount can be within the second duration. Transmission is performed, thus reducing the demand for bandwidth per unit time, thereby adjusting the first data transmission bandwidth to the second data transmission bandwidth, thereby reducing the demand for bandwidth and ensuring the throughput of the data transmission system.
  • Step S204 Based on the second data transmission bandwidth, the terminal transmits the data to be transmitted through the uplink data transmission link within the activation time period in the second data transmission cycle.
  • the terminal sends the data that needs to be transmitted by the uplink data transmission link to other terminals based on the adjusted second data transmission bandwidth and the activation time period in the second data transmission cycle.
  • the terminal uses the second data transmission bandwidth as the transmission rate and the second duration corresponding to the activation period in the second data transmission cycle as the transmission duration to transmit the data to be transmitted.
  • the first data transmission bandwidth of the terminal's uplink data transmission link is Before the first data bandwidth of the road, the data transmission bandwidth of the terminal in 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 The data transmission bandwidth is adjusted from the first data transmission bandwidth to the second data transmission bandwidth Z, and the second data transmission bandwidth Z is smaller than the first data transmission bandwidth X.
  • the data transmission bandwidth of the terminal in the t2 time period is Z+Y
  • the terminal transmits data based on the adjusted data transmission bandwidth and data transmission duration.
  • the data transmitted by the uplink transmission link is averaged into the second duration corresponding to the downlink data transmission link, thereby avoiding the problem of uplink data transmission in the initial stage of data transmission during data transmission.
  • the bandwidth of the link and the downlink data transmission link is relatively large, resulting in data impact, resulting in insufficient bandwidth, which in turn leads to data transmission failure.
  • FIG. 4 shows a flow chart of a data transmission method according to an exemplary embodiment of the present application.
  • the method includes:
  • Step S401 The terminal determines a target data amount.
  • the target data amount is the data amount transmitted by the uplink data transmission link within a first duration.
  • the first duration is the activation time in the first data transmission cycle of the uplink data transmission link. The corresponding duration of the segment.
  • step S201 The principle of this step is the same as that of step S201 and will not be described again.
  • Step S402 The terminal determines the second duration of the downlink data transmission link, where the second duration is the duration corresponding to the activation time period in the second data transmission cycle of the downlink data transmission link.
  • step S202 The principle of this step is the same as that of step S202 and will not be described again.
  • Step S403 The terminal determines the target data transmission rate based on the second duration and the target data amount.
  • the data transmission rate is the ratio of the amount of data transmitted and the transmission duration. Accordingly, in the embodiment of the present application, the terminal determines the quotient of the target data amount and the second duration as the target data transmission rate. In this way, the quotient of the target data amount and the second duration is determined as the target transmission rate. Since the target data amount is the maximum amount of data that the uplink data transmission link can transmit, the quotient of the target data amount and the second duration is determined as data transfer rate, thereby ensuring that data throughput is not affected.
  • Step S404 The terminal determines the data transmission bandwidth that matches the target data transmission rate as the second data transmission bandwidth.
  • the data transmission rate is positively related to the data transmission bandwidth.
  • the value of the terminal target data transmission rate is used as the value of the data transmission bandwidth that matches the target data transmission rate to obtain the second data transmission bandwidth.
  • the terminal based on the target data transmission rate, determines a second data transmission bandwidth that matches the target data transmission rate according to the corresponding relationship between the data transmission rate and the data transmission bandwidth.
  • the corresponding relationship between the data transmission rate and the data transmission bandwidth can be determined based on any relationship algorithm between the data transmission rate and the data transmission bandwidth. In the embodiment of the present application, this is not specifically limited.
  • Step S405 Based on the second data transmission bandwidth, the terminal transmits the data to be transmitted through the uplink data transmission link within the activation time period in the second data transmission cycle.
  • step S204 The principle of this step is the same as that of step S204 and will not be described again.
  • the data transmitted by the uplink transmission link is averaged into the second duration corresponding to the downlink data transmission link, thereby avoiding the problem of uplink data transmission in the initial stage of data transmission during data transmission.
  • the bandwidth of the link and the downlink data transmission link is relatively large, resulting in data impact, resulting in insufficient bandwidth, which in turn leads to data transmission failure.
  • the terminal adopts the structure of a modem and a wireless network access point (Access Point, AP).
  • the modem and AP are connected through a high-speed serial computer expansion bus (Peripheral Component Interconnect Express, PCIE) interface, and the PCIE is powered on through a hardware accelerator to control the activation and sleep of the modem and AP.
  • PCIE serial computer expansion bus
  • This 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 flow chart of a data transmission method according to an exemplary embodiment of the present application. The method includes:
  • Step S501 The terminal determines a target data amount.
  • the target data amount is the data amount transmitted by the uplink data transmission link within a first duration.
  • the first duration is the activation time in the first data transmission cycle of the uplink data transmission link. The corresponding duration of the segment.
  • step S201 The principle of this step is the same as that of step S201 and will not be described again.
  • Step S502 The terminal determines the second duration of the downlink data transmission link, where the second duration is the duration corresponding to the activation time period in the second data transmission cycle of the downlink data transmission link.
  • step S202 The principle of this step is the same as that of step S202 and will not be described again.
  • Step S503 Based on the target data amount and the second duration, the terminal adjusts the first data transmission bandwidth of the uplink data transmission link to obtain a second data transmission bandwidth.
  • step S203 The principle of this step is the same as that of step S203 and will not be described again.
  • 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 downlink data transmission link and the uplink data transmission link based on the operating state. data transmission.
  • the duration of the power-on state of the hardware accelerator is consistent with the second data transmission cycle.
  • the terminal wakes up the hardware accelerator to make the hardware accelerator work.
  • the terminal control hardware accelerator also enters the sleep state.
  • the terminal controls the hardware accelerator to enter the activation state.
  • the hardware accelerator When the hardware accelerator is in the activation state, the hardware accelerator is used to control the uplink data transmission link and the The downlink data transmission link performs data transmission; in response to the activation duration of the hardware accelerator reaching the second duration, the terminal controls the hardware accelerator to enter a sleep state, and while the hardware accelerator is in a sleep state, the hardware accelerator is used to control the uplink data The transmission link and the downlink data transmission link stop transmitting data.
  • this step can also be executed before step S201.
  • the execution order of this step is not specifically limited.
  • 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 within the activation period in the second data transmission cycle.
  • step S204 The principle of this step is the same as that of step S204 and will not be described again.
  • the terminal wakes up the hardware accelerator before entering the activation period and causes the hardware accelerator to work during the sleep 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 period of the data transmission cycle, thereby saving the terminal's power consumption and further increasing the battery life.
  • FIG. 7 shows a structural block diagram of a data transmission device provided by an embodiment of the present application.
  • the data transmission device can be implemented as all or part of the processor through software, hardware, or a combination of both.
  • the device includes:
  • the first determination module 701 is used to determine the target data amount.
  • the target data amount is the data amount transmitted by the uplink data transmission link within a first duration.
  • the first duration is the first data transmission period of the uplink data transmission link. The duration corresponding to the activation period in ;
  • the second determination module 702 is used to determine the second duration of the downlink data transmission link, where the second duration corresponds to the activation time period in the second data transmission cycle of the downlink data transmission link;
  • the adjustment module 703 is configured to adjust the first data transmission bandwidth of the uplink data transmission link based on the target data amount and the second duration to obtain a second data transmission bandwidth;
  • the data transmission module 704 is configured to transmit 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.
  • the adjustment module 703 includes:
  • a first determining unit configured to determine a target data transmission rate based on the second duration and the target data amount
  • the second determination unit is configured to determine the data transmission bandwidth that matches the target data transmission rate as the second data transmission bandwidth.
  • the first determining unit is configured to determine the target data transmission rate as a quotient of the target data amount and the second duration.
  • the first determination module 701 includes:
  • the reading unit is used to read the data amount of data cached in the memory to obtain the target data amount.
  • the memory is used to cache the data transmitted by the uplink data transmission link within the first duration; or,
  • a third determination unit is configured to determine the target data amount based on the first data transmission bandwidth and the first duration.
  • the third determining unit is configured to determine a maximum data transmission rate based on the first data transmission bandwidth; and determine the target data amount by multiplying the maximum data transmission rate and the first duration.
  • the data transmission module 704 is configured to use the second data transmission bandwidth as the transmission rate, and use the second duration corresponding to the activation period in the second data transmission cycle as the transmission duration to transmit the to-be-transmitted data.
  • the data is configured to use the second data transmission bandwidth as the transmission rate, and use the second duration corresponding to the activation period in the second data transmission cycle as the transmission duration to transmit the to-be-transmitted data.
  • the device further includes:
  • 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.
  • the hardware accelerator is used to control the downlink data transmission link and the uplink data transmission link based on the operating state. data transmission.
  • control module includes:
  • the first control unit is configured to control the hardware accelerator to enter the activation state in response to the current time reaching the activation time of the downlink data transmission link.
  • the hardware accelerator is used to control the uplink data transmission link. and the downlink data transmission link for data transmission;
  • the second control unit is configured to control the hardware accelerator to enter a sleep state in response to the activation time of the hardware accelerator reaching the second time period.
  • the hardware accelerator is used to control the uplink data transmission link. and the downlink data transmission link stops data transmission.
  • the data transmitted by the uplink transmission link is averaged into the second duration corresponding to the downlink data transmission link, thereby avoiding the problem of uplink data transmission in the initial stage of data transmission during data transmission.
  • the bandwidth of the link and the downlink data transmission link is relatively large, resulting in data impact, resulting in insufficient bandwidth, which in turn leads to data transmission failure.
  • the electronic device is provided as a terminal.
  • FIG. 8 shows a structural block diagram of a terminal 800 provided by an exemplary embodiment of the present application.
  • the terminal 800 may be a smartphone, a tablet, or other terminal with an image processing function.
  • the terminal 800 in this application may include one or more of the following components: a processor 810, a memory 820, and a communication module 830.
  • Processor 810 may include one or more processing cores.
  • the processor 810 uses various interfaces and lines to connect various parts of the entire terminal 800, and executes the terminal by running or executing instructions, programs, code sets or instruction sets stored in the memory 820, and calling data stored in the memory 820. 800's various functions and processing data.
  • the processor 810 may use at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in hardware form.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA programmable logic array
  • the processor 810 can integrate one or more of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU), a modem, etc.
  • a central processing unit Central Processing Unit, CPU
  • a graphics processor Graphics Processing Unit, GPU
  • a neural network processor Neural-network Processing Unit, NPU
  • the CPU mainly handles the operating system, user interface and applications
  • the GPU is used to render and draw the content that needs to be displayed on the display
  • the NPU is used to implement artificial intelligence (Artificial Intelligence, AI) functions
  • the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 810 and may be implemented by a separate chip.
  • the memory 820 may include random access memory (RAM) or read-only memory (Read-Only Memory, ROM). Optionally, the memory 820 includes non-transitory computer-readable storage medium. Memory 820 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 820 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions, etc., used to implement each of the following method embodiments; the storage data area can store data created according to the use of the terminal 800 (such as audio data, phone book), etc.
  • the communication module 830 is used to transmit and receive signals.
  • the communication module can be a wireless fidelity (Wireless Fidelity, WIFI) module or the like.
  • the communication module 830 adopts the structure of a modem and a wireless network access point (Access Point, AP). Among them, the modem and AP are connected through a high-speed serial computer expansion bus (Peripheral Component Interconnect Express, PCIE) interface, and the PCIE is powered on through a hardware accelerator to control the activation and sleep of the modem and AP.
  • PCIE serial computer expansion bus
  • the terminal 800 may also include a display screen, which is a display component used to display a user interface.
  • the display screen is a display screen with a touch control function. Through the touch control function, the user can use any suitable object such as a finger or a touch pen to perform touch operations on the display screen.
  • the display screen is usually provided on the front panel of terminal 800.
  • the display screen can be designed as a full screen, curved screen, special-shaped screen, double-sided screen or 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. This embodiment is not limited to this.
  • the structure of the terminal 800 shown in the above figures does not constitute a limitation on the terminal 800.
  • the terminal 800 may include more or fewer components than those shown in the figures, or a combination of certain components. components, or different component arrangements.
  • 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 again here.
  • Embodiments of the present application also provide a computer-readable storage medium that stores at least one program code.
  • the at least one program code is used to be executed by a processor to implement the data transmission method as described above. .
  • Embodiments of the present application also provide 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 above.
  • Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • Storage media can be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

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

Abstract

A data transmission method and apparatus, and a terminal and a storage medium, which belong to the technical field of communications. The method comprises: determining a target volume of data (S201), wherein the target volume of data is a volume of data that is transmitted by means of an uplink data transmission link within a first duration, and the first duration is a duration that corresponds to an activation time period in a first data transmission cycle of the uplink data transmission link; determining a second duration of a downlink data transmission link (S202), wherein the second duration is a duration that corresponds to an activation time period in a second data transmission cycle of the downlink data transmission link; on the basis of the target volume of data and the second duration, adjusting a first data transmission bandwidth of the uplink data transmission link, so as to obtain a second data transmission bandwidth (S203); and on the basis of the second data transmission bandwidth, transmitting, within the activation time period in the second data transmission cycle and by means of the uplink data transmission link, data to be transmitted (S204).

Description

数据传输方法、装置、终端及存储介质Data transmission method, device, terminal and storage medium
本申请要求于2022年06月16日提交的、申请号为202210684389.0、发明名称为“数据传输方法、装置、终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application with application number 202210684389.0 and the invention title "Data transmission method, device, terminal and storage medium" submitted on June 16, 2022, the entire content of which is incorporated into this application by reference. middle.
技术领域Technical field
本申请实施例涉及通信技术领域,特别涉及一种数据传输方法、装置、终端及存储介质。The embodiments of the present application relate to the field of communication technology, and in particular to a data transmission method, device, terminal and storage medium.
背景技术Background technique
在通信过程中,电子设备间的数据传输是突发性的,在一段时间内有数据传输,但在接下来的一段时间内没有数据传输。因此,常采用非连续接收(Discontinuous Reception,DRX)的方式来进行数据传输。即在没有数据传输的时候,可以通过停止接收物理专用控制信道(Physical Downlink Control Channel,PDCCH)来降低功耗,从而提高电子设备的电池的使用时间。During the communication process, data transmission between electronic devices is sudden. There is data transmission for a period of time, but there is no data transmission for the next period of time. Therefore, discontinuous reception (DRX) is often used for data transmission. That is, when there is no data transmission, power consumption can be reduced by stopping receiving the Physical Downlink Control Channel (PDCCH), thereby increasing the battery life of the electronic device.
相关技术中,通常为了节省功耗,在数据传输时,都会采用上下行并列进行传输的方式来进行数据传输,即发送端积攒一定数量的数据包之后再发往接收端,从而避免接收端为了能够接收到数据而频繁地启动和休眠而导致接收端处理器的负载加剧,同时为了方便实现上下行并列进行数据传输,会将上下行的DRX周期的起始时间对齐。In related technologies, in order to save power consumption, data is usually transmitted in parallel uplink and downlink transmission, that is, the sender accumulates a certain number of data packets and then sends them to the receiver, thereby avoiding the need for the receiver to Being able to receive data and frequently start and sleep will increase the load on the receiving end processor. At the same time, in order to facilitate upstream and downstream data transmission in parallel, the starting times of the upstream and downstream DRX cycles will be aligned.
上述相关技术中,尽管同时进行数据传输的方式能够带来功耗方面的收益,但是上下行数据并发时,数据传输系统的DDR带宽就是上行DDR带宽和下行DDR带宽的和,因此,导致DRX周期对齐后,造成对DDR带宽的要求过高,进而造成数据传输失败。In the above related technologies, although 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, the DRX cycle After alignment, the requirements for DDR bandwidth are too high, resulting in data transmission failure.
发明内容Contents of the invention
本申请实施例提供了一种数据传输方法、装置、终端及存储介质,能够降低数据传输过程中对带宽的要求。所述技术方案如下:Embodiments of the present application provide a data transmission method, device, terminal and storage medium, which can reduce bandwidth requirements during data transmission. The technical solutions are as follows:
一方面,提供了一种数据传输方法,所述方法由终端执行,所述方法包括:On the one hand, a data transmission method is provided, the method is executed by a terminal, the method includes:
确定目标数据量,所述目标数据量为上行数据传输链路在第一时长内传输的数据量,所述第一时长为所述上行数据传输链路的第一数据传输周期中的激活时间段对应的时长;Determine a target data amount, the target data amount is the amount of data transmitted by the uplink data transmission link within a first duration, and the first duration is the activation time period in the first data transmission cycle of the uplink data transmission link corresponding duration;
确定下行数据传输链路的第二时长,所述第二时长为所述下行数据传输链路的第二数据传输周期中激活时间段对应的时长;Determine a second duration of the downlink data transmission link, where the second duration is the duration corresponding to the activation time period in the second data transmission cycle of the downlink data transmission link;
基于所述目标数据量和所述第二时长,调整所述上行数据传输链路的第一数据传输带宽,得到第二数据传输带宽;Based on the target data amount 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 bandwidth, the data to be transmitted is transmitted through the uplink data transmission link during the activation period in the second data transmission cycle.
另一方面,提供了一种数据传输装置,所述装置包括:On the other hand, a data transmission device is provided, and the device includes:
第一确定模块,用于确定目标数据量,所述目标数据量为上行数据传输链路在第一时长内传输的数据量,所述第一时长为所述上行数据传输链路的第一数据传输周期中的激活时间段对应的时长;The first determination module is used to determine the target data amount. The target data amount is the data amount transmitted by the uplink data transmission link within a first duration, and the first duration is the first data of the uplink data transmission link. The duration corresponding to the activation period in the transmission cycle;
第二确定模块,用于确定下行数据传输链路的第二时长,所述第二时长为所述下行数据传输链路的第二数据传输周期中激活时间段对应的时长;The second determination module is used to determine the second duration of the downlink data transmission link, where the second duration is the duration corresponding to the activation time 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 amount and the second duration to obtain a second data transmission bandwidth;
数据传输模块,用于基于所述第二数据传输带宽,在所述第二数据传输周期中的激活时间段内通过所述上行数据传输链路传输待传输的数据。A data transmission module, configured to transmit data to be transmitted through the uplink data transmission link within the activation time period in the second data transmission cycle based on the second data transmission bandwidth.
另一方面,提供了一种终端,所述终端包括处理器和存储器;所述存储器存储有至少一条程序代码,所述至少一条程序代码用于被所述处理器执行以实现如上述方面所述的数据传输方法。On the other hand, a terminal is provided, 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 above aspect. data transmission method.
另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有至少一条程序代码,所述至少一条程序代码用于被处理器执行以实现如上述方面所述的数据传输方法。On the other hand, a computer-readable storage medium is provided, 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 data transmission as described in the above aspect. method.
另一方面,提供了一种计算机程序产品,所述计算机程序产品存储有至少 一条程序代码,所述至少一条程序代码用于被处理器执行以实现如上述方面所述的数据传输方法。On the other hand, a computer program product is provided, 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.
在本申请实施例中,通过将上行传输链路传输的数据平均到下行数据传输链路对应的第二时长内,从而避免了在进行数据传输时,在数据传输的初始阶段,由于上行数据传输链路和下行数据传输链路的带宽较大,产生数据冲击,造成带宽不足,进而导致数据传输失败的问题。In the embodiment of the present application, the data transmitted by the uplink transmission link is averaged into the second duration corresponding to the downlink data transmission link, thereby avoiding the problem of uplink data transmission in the initial stage of data transmission during data transmission. The bandwidth of the link and the downlink data transmission link is relatively large, resulting in data impact, resulting in insufficient bandwidth, which in turn leads to data transmission failure.
附图说明Description of the drawings
图1示出了本申请一个示例性实施例所提供的数据传输方法所涉及的实施环境的示意图;Figure 1 shows a schematic diagram of the implementation environment involved in the data transmission method provided by an exemplary embodiment of the present application;
图2示出了本申请一个示例性实施例示出的数据传输方法的流程图;Figure 2 shows a flow chart of a data transmission method according to an exemplary embodiment of the present application;
图3示出了本申请一个示例性实施例示出的数据传输带宽的示意图;Figure 3 shows a schematic diagram of data transmission bandwidth according to an exemplary embodiment of the present application;
图4示出了本申请一个示例性实施例示出的数据传输方法的流程图;Figure 4 shows a flow chart of a data transmission method according to an exemplary embodiment of the present application;
图5示出了本申请一个示例性实施例示出的数据传输方法的流程图;Figure 5 shows a flow chart of a data transmission method according to an exemplary embodiment of the present application;
图6示出了本申请一个示例性实施例示出的硬件加速器的激活时间的示意图;Figure 6 shows a schematic diagram of the activation time of a hardware accelerator according to an exemplary embodiment of the present application;
图7示出了本申请一个示例性实施例示出的数据传输装置的框图;Figure 7 shows a block diagram of a data transmission device according to an exemplary embodiment of the present application;
图8示出了本申请一个示例性实施例示出的终端的框图。Figure 8 shows a block diagram of a terminal according to an exemplary embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。另外,本申请所涉及的相关数据可以为经用户授权或者经各方充分授权的数据。The "plurality" mentioned in this article means two or more than two. "And/or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the related objects are in an "or" relationship. In addition, the relevant data involved in this application can be data authorized by the user or fully authorized by all parties.
需要说明的是,本申请所涉及的信息(包括但不限于用户设备信息、用户个人信息等)、数据(包括但不限于用于分析的数据、存储的数据、显示的数据等)以及信号,均为经用户授权或者经过各方充分授权的,且相关数据的收集、 使用和处理需要遵守相关国家和地区的相关法律法规和标准。例如,本申请中涉及到的目标数据量、第一数据传输周期和第二数据传输周期等都是在充分授权的情况下获取的。It should be noted that the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application, All are authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, the target data volume, first data transmission period and second data transmission period involved in this application are all obtained with full authorization.
请参考图1,其示出了本申请一个示例性实施例提供的数据传输方法所涉及的实施环境的示意图。该实施环境包括发送端10和接收端20。发送端10和接收端20之间通过网络通信。Please refer to FIG. 1 , which shows a schematic diagram of the implementation environment involved in the data transmission method provided by an exemplary embodiment of the present application. The implementation environment includes a sending end 10 and a receiving end 20 . The sending end 10 and the receiving end 20 communicate through the network.
为了减少功耗,发送端10和接收端20按照数据传输周期进行数据传输。数据传输周期包括上行数据传输链路的第一数据传输周期和下行数据传输链路的第二数据传输周期。第一数据传输周期和第二数据传输周期均包括激活时间段和休眠时间段。在激活时间段内,数据传输链路为上电状态,能够进行数据传输,在休眠时间段内,数据传输链路为断电状态,在这段时间内,数据传输链路不进行数据传输。从而在数据传输的过程中,数据传输链路无需一直处于上电状态,进而降低了功耗。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 period includes a first data transmission period of the uplink data transmission link and a second data transmission period of the downlink data transmission link. Both the first data transmission period and the second data transmission period include an activation period and a sleep period. During the activation period, the data transmission link is powered on and can transmit data. During the sleep period, the data transmission link is powered off. During this period, the data transmission link does not transmit data. Therefore, during the data transmission process, the data transmission link does not need to be powered on all the time, thereby reducing power consumption.
在数据传输的过程中,上行数据传输和下行数据传输过程中传输的数据均通过双数据速率存储器(Double Data Rate,DDR)进行数据传输,其中,DDR用于缓存待传输的数据。因此,DDR的带宽会限制数据传输的效率和传输结果。During the data transmission process, the data transmitted during the uplink data transmission and downlink data transmission processes are transmitted through double data rate memory (Double Data Rate, DDR), where DDR is used to cache the data to be transmitted. Therefore, the bandwidth of DDR will limit the efficiency and transmission results of data transmission.
在一些实施例中,该接收端20和发送端10为具有无线通信功能的终端。其中,接收端20和发送端10均可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置。该接收端20和发送端10还均可以为手机、平板电脑、具备无线通信功能的电脑或可穿戴设备等。在本申请实施例中,对此不作具体限定。In some embodiments, the receiving end 20 and the sending end 10 are terminals with wireless communication functions. Wherein, both the receiving end 20 and the sending end 10 can be mobile terminals, such as mobile phones (or "cellular" phones) and computers with mobile terminals. For example, they can be portable, pocket-sized, handheld, built-in in a computer, or Vehicle-mounted mobile device. The receiving end 20 and the sending end 10 can also be mobile phones, tablet computers, computers with wireless communication functions, or wearable devices. In the embodiment of the present application, there is no specific limitation on this.
请参考图2,其示出了本申请一个示例性实施例示出的数据传输方法的流程图。该方法包括:Please refer to FIG. 2 , which shows a flow chart of a data transmission method according to an exemplary embodiment of the present application. The method includes:
步骤S201:终端确定目标数据量,该目标数据量为上行数据传输链路在第一时长内传输的数据量,该第一时长为该上行数据传输链路的第一数据传输周期中的激活时间段对应的时长。Step S201: The terminal determines a target data amount. The target data amount is the data amount transmitted by the uplink data transmission link within a first duration. The first duration is the activation time in the first data transmission cycle of the uplink data transmission link. The corresponding duration of the segment.
该目标数据量为一个第一数据传输周期的激活时间段内,上行数据传输链 路传输的数据的数据量。在一些实施例中,终端每次进行数据传输时,预测本次数据传输的上行数据传输链路需要传输的数据量。在一些实施例中,终端根据上行数据传输链路的第一数据传输周期中的激活时间段对应的第一时长和DDR提供的上行数据传输链路的带宽为上行数据传输链路提供的带宽,来确定上行数据传输链路每个数据传输周期能够传输的最大数据量。The target data amount is the amount of data transmitted by the uplink data transmission link during the activation period of a first data transmission cycle. In some embodiments, each time the terminal performs data transmission, it predicts the amount of data that needs to be transmitted by the uplink data transmission link of this data transmission. In some embodiments, the terminal provides the bandwidth for the uplink data transmission link based on the first duration corresponding to the activation period in the first data transmission cycle of the uplink data transmission link and the bandwidth of the uplink data transmission link provided by the DDR, To determine the maximum amount of data that the uplink data transmission link can transmit in each data transmission cycle.
相应地,在一些实施例中,终端读取存储器中缓存的数据的数据量,得到该目标数据量,该存储器用于缓存该上行数据传输链路在第一时长内传输的数据。终端在通过上行链路传输数据时,先将需要传输的数据缓存在存储器中,当时间达到第一数据传输周期的激活时间段的起始时间时,终端将缓存在存储器中的数据通过上行数据传输链路进行数据传输。在本实现方式中,终端在每个数据传输周期的激活时间段之前先确定本次数据传输的目标数据量,从而能够更加准确的调整该目标数据量对应的数据传输带宽。Correspondingly, in some embodiments, the terminal reads the data amount of data cached in the memory to obtain the target data amount, and the memory is used to cache the data transmitted by the uplink data transmission link within the first duration. When transmitting data through the uplink, the terminal first caches the data to be transmitted in the memory. When the time reaches the start time of the activation period of the first data transmission cycle, the terminal passes the data cached in the memory through the uplink data. Transmission link for data transmission. In this implementation, the terminal determines the target data volume of this data transmission before the activation time period of each data transmission cycle, so that the data transmission bandwidth corresponding to the target data volume can be adjusted more accurately.
在一些实施例中,终端基于该第一数据传输带宽和该第一时长,确定该目标数据量。数据在上下行数据传输链路中传输的传输速率,受到数据传输链路带宽的影响,即最大传输速率不超过数据传输链路的最大带宽。因此,在本申请实施例中,将该第一数据传输带宽作为数据传输速率,将该第一数据参数带宽和第一时长的乘积作为该上行数据传输链路在第一时长内能够传输的最大数据量,将该最大数据量作为目标数据量。在本申请实施例中,将上行数据传输链路在第一时长内能够传输的最大数据量作为该目标数据量,这样既保证了上行数据传输链路在调整数据传输带宽后,也能够传输原数据传输带宽传输的最大数据量,并且,无需在本次进行数据传输时,都确定本次进行数据传输的目标数据量,进而提高了数据传输的效率。In some embodiments, the terminal determines the target data amount based on the first data transmission bandwidth and the first duration. The transmission rate of data transmitted in 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 this embodiment of the present application, the first data transmission bandwidth is used as the data transmission rate, and the product of the first data parameter bandwidth and the first duration is used as the maximum transmission rate that the uplink data transmission link can transmit within the first duration. Data volume, and use the maximum data volume as the target data volume. In the embodiment of this application, the maximum amount of data that the uplink data transmission link can transmit within the first duration is used as the target data amount. This not only ensures that the uplink data transmission link can also transmit the original data after adjusting the data transmission bandwidth. The maximum amount of data transmitted by the data transmission bandwidth, and there is no need to determine the target data amount for this data transmission during this data transmission, thereby improving the efficiency of data transmission.
需要说明的一点是,终端可以为接收端也可以为发送端,在本申请实施例中,对此不作具体限定。It should be noted that the terminal can be a receiving end or a sending end. In the embodiment of the present application, this is not specifically limited.
步骤S202:终端确定下行数据传输链路的第二时长,该第二时长为该下行数据传输链路的第二数据传输周期中激活时间段对应的时长。Step S202: The terminal determines the second duration of the downlink data transmission link, where the second duration is the duration corresponding to the activation time period in the second data transmission cycle of the downlink data transmission link.
该下行数据传输链路为与终端的上行数据传输链路绑定的数据传输链路。该第二数据传输周期和第一数据传输周期的时长相同。该第一数据传输周期和第二数据传输周期的时长根据需要进行设置,在本申请实施例中,对此不作具体限定。该第二时长为该第二数据传输周期中激活时间段对应的时长。该第二 时长小于第二数据传输周期的时长,且,该第二时长根据需要进行设置,在本申请实施例中,对该第二时长不作具体限定。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 period and the first data transmission period are the same. The lengths of the first data transmission period and the second data transmission period are set as needed, and are not specifically limited in this embodiment of the present application. The second duration is a duration corresponding to the activation 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. In the embodiment of the present application, the second duration is not specifically limited.
在一些实施例中,终端中缓存有当前使用的第二数据传输周期的相关信息,该相关信息包括第二数据传输周期的时长、第二数据传输周期中激活时间段对应的时长。相应地,终端读取缓存的相关信息,从相关信息中获取该第二时长。在一些实施例中,终端通过计时器记录第二数据传输周期中激活时间段对应的时长,将该激活时间段存储在本地。当需要获取该第二时长时,从本地存储中读取该第二时长,或者,将计时器的计时结果确定为第二时长。In some embodiments, relevant information of the currently used second data transmission cycle is cached in the terminal. The relevant information includes the duration of the second data transmission cycle and the duration corresponding to the activation time period in the second data transmission cycle. Correspondingly, 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 activation period in the second data transmission cycle through a timer, and stores the activation period locally. When it is necessary to obtain the second duration, the second duration is read from the local storage, or the timing result of the timer is determined as the second duration.
步骤S203:终端基于该目标数据量和该第二时长,调整该上行数据传输链路的第一数据传输带宽,得到第二数据传输带宽。Step S203: Based on the target data amount and the second duration, the terminal adjusts the first data transmission bandwidth of the uplink data transmission link to obtain a second data transmission bandwidth.
该第二数据传输带宽小于第一数据传输带宽。在本步骤中,终端将第一数据传输周期中,用于进行数据传输的激活时间段的时长由第一时长调整为第二时长,从而使得该目标数据量对应的数据可以在第二时长内进行传输,这样减少了单位时间内对带宽的需求,从而将该第一数据传输带宽调整为第二数据传输带宽,即降低了对带宽的需求,还保证了数据传输系统的吞吐量。The second data transmission bandwidth is smaller than the first data transmission bandwidth. In this step, the terminal adjusts the duration of the activation 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 amount can be within the second duration. Transmission is performed, thus reducing the demand for bandwidth per unit time, thereby adjusting the first data transmission bandwidth to the second data transmission bandwidth, thereby reducing the demand for bandwidth and ensuring the throughput of the data transmission system.
步骤S204:终端基于该第二数据传输带宽,在该第二数据传输周期中的激活时间段内通过该上行数据传输链路传输待传输的数据。Step S204: Based on the second data transmission bandwidth, the terminal transmits the data to be transmitted through the uplink data transmission link within the activation time period in the second data transmission cycle.
在本步骤中,终端基于调整后的第二数据传输带宽和该第二数据传输周期中的激活时间段,将上行数据传输链路需要传输的数据发送给其他终端。相应地,终端以该第二数据传输带宽为传输速率,以该第二数据传输周期中的激活时间段对应的第二时长为传输时长,传输该待传输的数据。In this step, the terminal sends the data that needs to be transmitted by the uplink data transmission link to other terminals based on the adjusted second data transmission bandwidth and the activation time period in the second data transmission cycle. Correspondingly, the terminal uses the second data transmission bandwidth as the transmission rate and the second duration corresponding to the activation period in the second data transmission cycle as the transmission duration to transmit the data to be transmitted.
参见图3,终端上行数据传输链路的第一数据传输带宽为X,第一时长为t1,下行数据传输链路的第三数据传输带宽为Y,第二时长为t2,调整上行数据传输链路的第一数据带宽前,终端在t1时间段内的数据传输带宽为X+Y;终端将上行数据传输链路的数据传输时长有第一时长调整为第二时长,将上行数据传输链路的数据传输带宽由第一数据传输带宽调整为第二数据传输带宽Z,第二数据传输带宽Z小于第一数据传输带宽X,调整后,终端在t2时间段内的数据传输带宽为Z+Y,终端基于调整后的数据传输带宽和数据传输时长进行数据传输。Referring to Figure 3, the first data transmission bandwidth of the terminal's uplink data transmission link is Before the first data bandwidth of the road, the data transmission bandwidth of the terminal in 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 The data transmission bandwidth is adjusted from the first data transmission bandwidth to the second data transmission bandwidth Z, and the second data transmission bandwidth Z is smaller than the first data transmission bandwidth X. After adjustment, the data transmission bandwidth of the terminal in the t2 time period is Z+Y , the terminal transmits data based on the adjusted data transmission bandwidth and data transmission duration.
在本申请实施例中,通过将上行传输链路传输的数据平均到下行数据传输链路对应的第二时长内,从而避免了在进行数据传输时,在数据传输的初始阶 段,由于上行数据传输链路和下行数据传输链路的带宽较大,产生数据冲击,造成带宽不足,进而导致数据传输失败的问题。In the embodiment of the present application, the data transmitted by the uplink transmission link is averaged into the second duration corresponding to the downlink data transmission link, thereby avoiding the problem of uplink data transmission in the initial stage of data transmission during data transmission. The bandwidth of the link and the downlink data transmission link is relatively large, resulting in data impact, resulting in insufficient bandwidth, which in turn leads to data transmission failure.
请参考图4,其示出了本申请一个示例性实施例示出的数据传输方法的流程图。该方法包括:Please refer to FIG. 4 , which shows a flow chart of a data transmission method according to an exemplary embodiment of the present application. The method includes:
步骤S401:终端确定目标数据量,该目标数据量为上行数据传输链路在第一时长内传输的数据量,该第一时长为该上行数据传输链路的第一数据传输周期中的激活时间段对应的时长。Step S401: The terminal determines a target data amount. The target data amount is the data amount transmitted by the uplink data transmission link within a first duration. The first duration is the activation time in the first data transmission cycle of the uplink data transmission link. The corresponding duration of the segment.
本步骤与步骤S201的原理相同,在此不再赘述。The principle of this step is the same as that of step S201 and will not be described again.
步骤S402:终端确定下行数据传输链路的第二时长,该第二时长为该下行数据传输链路的第二数据传输周期中激活时间段对应的时长。Step S402: The terminal determines the second duration of the downlink data transmission link, where the second duration is the duration corresponding to the activation time period in the second data transmission cycle of the downlink data transmission link.
本步骤与步骤S202的原理相同,在此不再赘述。The principle of this step is the same as that of step S202 and will not be described again.
步骤S403:终端基于该第二时长和该目标数据量,确定目标数据传输速率。Step S403: The terminal determines the target data transmission rate based on the second duration and the target data amount.
数据传输速率为传输的数据量和传输时长的比值,相应地,在本申请实施例中,终端将该目标数据量和该第二时长的商确定为该目标数据传输速率。这样通过将目标数据量和第二时长的商确定为目标传输速率,由于目标数据量为上行数据传输链路能够传输的最大数据量,因此,将该目标数据量与第二时长的商确定为数据传输速率,从而保证数据的吞吐量不受到影响。The data transmission rate is the ratio of the amount of data transmitted and the transmission duration. Accordingly, in the embodiment of the present application, the terminal determines the quotient of the target data amount and the second duration as the target data transmission rate. In this way, the quotient of the target data amount and the second duration is determined as the target transmission rate. Since the target data amount is the maximum amount of data that the uplink data transmission link can transmit, the quotient of the target data amount and the second duration is determined as data transfer rate, thereby ensuring that data throughput is not affected.
步骤S404:终端将与该目标数据传输速率匹配的数据传输带宽确定为该第二数据传输带宽。Step S404: The terminal determines the data transmission bandwidth that matches the target data transmission rate as the second data transmission bandwidth.
数据的传输速率与数据的传输带宽正相关。在一些实施例中,终端目标数据传输速率的值作为与该目标数据传输速率匹配的数据传输带宽的值,得到第二数据传输带宽。在一些实施例中,终端基于该目标数据传输速率,根据数据传输速率与数据传输带宽的对应关系,确定与该目标数据传输速率匹配的第二数据传输带宽。其中,该数据传输速率和数据传输带宽的对应关系可以根据数据传输速率和数据传输带宽的任一关系算法确定,在本申请实施例中,对此不作具体限定。The data transmission rate is positively related to 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 that matches the target data transmission rate to obtain the second data transmission bandwidth. In some embodiments, based on the target data transmission rate, the terminal determines a second data transmission bandwidth that matches the target data transmission rate according to the corresponding relationship between the data transmission rate and the data transmission bandwidth. The corresponding relationship between the data transmission rate and the data transmission bandwidth can be determined based on any relationship algorithm between the data transmission rate and the data transmission bandwidth. In the embodiment of the present application, this is not specifically limited.
步骤S405:终端基于该第二数据传输带宽,在该第二数据传输周期中的激活时间段内通过该上行数据传输链路传输待传输的数据。Step S405: Based on the second data transmission bandwidth, the terminal transmits the data to be transmitted through the uplink data transmission link within the activation time period in the second data transmission cycle.
本步骤与步骤S204的原理相同,在此不再赘述。The principle of this step is the same as that of step S204 and will not be described again.
在本申请实施例中,通过将上行传输链路传输的数据平均到下行数据传输链路对应的第二时长内,从而避免了在进行数据传输时,在数据传输的初始阶段,由于上行数据传输链路和下行数据传输链路的带宽较大,产生数据冲击,造成带宽不足,进而导致数据传输失败的问题。In the embodiment of the present application, the data transmitted by the uplink transmission link is averaged into the second duration corresponding to the downlink data transmission link, thereby avoiding the problem of uplink data transmission in the initial stage of data transmission during data transmission. The bandwidth of the link and the downlink data transmission link is relatively large, resulting in data impact, resulting in insufficient bandwidth, which in turn leads to data transmission failure.
在一些实施例中,终端是采用调制解调器(modem)和无线网络接入点(Access Point,AP)的结构。其中,modem和AP之间通过高速串行计算机扩展总线(Peripheral Component Interconnect Express,PCIE)接口连接,通过硬件加速器为PCIE上电,进而实现控制modem和AP的激活和休眠。为了防止在数据传输周期的休眠时间内硬件加速器保持对PCIE的上电状态,造成的功耗浪费。本申请实施例提出,基于下行数据传输链路的数据传输周期调整该硬件加速器的上电状态,参见图5,其示出了本申请一个示例性实施例示出的数据传输方法的流程图。该方法包括:In some embodiments, the terminal adopts the structure of a modem and a wireless network access point (Access Point, AP). Among them, the modem and AP are connected through a high-speed serial computer expansion bus (Peripheral Component Interconnect Express, PCIE) interface, and the PCIE is powered on through a hardware accelerator to control the activation and sleep of the modem and AP. In order to prevent the waste of power consumption caused by the hardware accelerator keeping the PCIE powered on during the sleep time of the data transmission cycle. This 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 flow chart of a data transmission method according to an exemplary embodiment of the present application. The method includes:
步骤S501:终端确定目标数据量,该目标数据量为上行数据传输链路在第一时长内传输的数据量,该第一时长为该上行数据传输链路的第一数据传输周期中的激活时间段对应的时长。Step S501: The terminal determines a target data amount. The target data amount is the data amount transmitted by the uplink data transmission link within a first duration. The first duration is the activation time in the first data transmission cycle of the uplink data transmission link. The corresponding duration of the segment.
本步骤与步骤S201的原理相同,在此不再赘述。The principle of this step is the same as that of step S201 and will not be described again.
步骤S502:终端确定下行数据传输链路的第二时长,该第二时长为该下行数据传输链路的第二数据传输周期中激活时间段对应的时长。Step S502: The terminal determines the second duration of the downlink data transmission link, where the second duration is the duration corresponding to the activation time period in the second data transmission cycle of the downlink data transmission link.
本步骤与步骤S202的原理相同,在此不再赘述。The principle of this step is the same as that of step S202 and will not be described again.
步骤S503:终端基于该目标数据量和该第二时长,调整该上行数据传输链路的第一数据传输带宽,得到第二数据传输带宽。Step S503: Based on the target data amount and the second duration, the terminal adjusts the first data transmission bandwidth of the uplink data transmission link to obtain a second data transmission bandwidth.
本步骤与步骤S203的原理相同,在此不再赘述。The principle of this step is the same as that of step S203 and will not be described again.
步骤S504:终端基于该下行数据传输链路的第二数据传输周期,控制硬件加速器的运行状态,该硬件加速器用于基于该运行状态,控制该下行数据传输链路和该上行数据传输链路的数据传输。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 downlink data transmission link and the uplink data transmission link based on the operating state. data transmission.
参见图6,在本申请实施例中,将硬件加速器的上电状态的持续时间与第二数据传输周期保持一致,在进入激活时间段之前,终端将硬件加速器唤醒,使硬件加速器工作,在休眠时间段内,终端控制硬件加速器也进入休眠状态。相应地,响应于当前时间达到该下行数据传输链路的激活时间,终端控制该硬件 加速器进入激活状态,在该硬件加速器处于激活状态下,该硬件加速器用于控制该上行数据传输链路和该下行数据传输链路进行数据传输;响应于该硬件加速器的激活时长达到该第二时长,终端控制该硬件加速器进入休眠状态,在该硬件加速器处于休眠状态下,该硬件加速器用于控制该上行数据传输链路和该下行数据传输链路停止进行数据传输。Referring to Figure 6, in this embodiment of the present application, the duration of the power-on state of the hardware accelerator is consistent with the second data transmission cycle. Before entering the activation period, the terminal wakes up the hardware accelerator to make the hardware accelerator work. During sleep, During this period, the terminal control hardware accelerator also enters 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 The downlink data transmission link performs data transmission; in response to the activation duration of the hardware accelerator reaching the second duration, the terminal controls the hardware accelerator to enter a sleep state, and while the hardware accelerator is in a sleep state, the hardware accelerator is used to control the uplink data The transmission link and the downlink data transmission link stop transmitting data.
需要说明的一点是,本步骤还可以在步骤S201之前执行,在本申请实施例中,对本步骤的执行顺序不作具体限定。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.
步骤S505:终端通过硬件加速器控制上行数据传输链路,基于该第二数据传输带宽,在该第二数据传输周期中的激活时间段内通过该上行数据传输链路传输待传输的数据。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 within the activation period in the second data transmission cycle.
本步骤与步骤S204的原理相同,在此不再赘述。The principle of this step is the same as that of step S204 and will not be described again.
在本申请实施例中,通过将硬件加速器的上电状态的持续时间与第二数据传输周期保持一致,在进入激活时间段之前,终端将硬件加速器唤醒,使硬件加速器工作,在休眠时间段内,终端控制硬件加速器也进入休眠状态,从而防止了在数据传输周期的休眠时间段内对上下行数据传输链路进行上电,进而节省了终端的功耗,从而进一步提高了电池的使用时长。In the embodiment of the present application, by keeping the duration of the power-on state of the hardware accelerator consistent with the second data transmission cycle, the terminal wakes up the hardware accelerator before entering the activation period and causes the hardware accelerator to work during the sleep 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 period of the data transmission cycle, thereby saving the terminal's power consumption and further increasing the battery life.
请参考图7,其示出了本申请一个实施例提供的数据传输装置的结构框图。该数据传输装置可以通过软件、硬件或者两者的结合实现成为处理器的全部或一部分。该装置包括:Please refer to FIG. 7 , which shows a structural block diagram of a data transmission device provided by an embodiment of the present application. The data transmission device can be implemented as all or part of the processor through software, hardware, or a combination of both. The device includes:
第一确定模块701,用于确定目标数据量,该目标数据量为上行数据传输链路在第一时长内传输的数据量,该第一时长为该上行数据传输链路的第一数据传输周期中的激活时间段对应的时长;The first determination module 701 is used to determine the target data amount. The target data amount is the data amount transmitted by the uplink data transmission link within a first duration. The first duration is the first data transmission period of the uplink data transmission link. The duration corresponding to the activation period in ;
第二确定模块702,用于确定下行数据传输链路的第二时长,该第二时长为该下行数据传输链路的第二数据传输周期中激活时间段对应的时长;The second determination module 702 is used to determine the second duration of the downlink data transmission link, where the second duration corresponds to the activation time period in the second data transmission cycle of the downlink data transmission link;
调整模块703,用于基于该目标数据量和该第二时长,调整该上行数据传输链路的第一数据传输带宽,得到第二数据传输带宽;The adjustment module 703 is configured to adjust the first data transmission bandwidth of the uplink data transmission link based on the target data amount and the second duration to obtain a second data transmission bandwidth;
数据传输模块704,用于基于该第二数据传输带宽,在该第二数据传输周期中的激活时间段内通过该上行数据传输链路传输待传输的数据。The data transmission module 704 is configured to transmit 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.
在一些实施例中,该调整模块703,包括:In some embodiments, the adjustment module 703 includes:
第一确定单元,用于基于该第二时长和该目标数据量,确定目标数据传输速率;A first determining unit configured to determine a target data transmission rate based on the second duration and the target data amount;
第二确定单元,用于将与该目标数据传输速率匹配的数据传输带宽确定为该第二数据传输带宽。The second determination unit is configured to determine the data transmission bandwidth that matches the target data transmission rate as the second data transmission bandwidth.
在一些实施例中,该第一确定单元,用于将该目标数据量和该第二时长的商确定为该目标数据传输速率。In some embodiments, the first determining unit is configured to determine the target data transmission rate as a quotient of the target data amount and the second duration.
在一些实施例中,该第一确定模块701,包括:In some embodiments, the first determination module 701 includes:
读取单元,用于读取存储器中缓存的数据的数据量,得到该目标数据量,该存储器用于缓存该上行数据传输链路在第一时长内传输的数据;或者,The reading unit is used to read the data amount of data cached in the memory to obtain the target data amount. The memory is used to cache the data transmitted by the uplink data transmission link within the first duration; or,
第三确定单元,用于基于该第一数据传输带宽和该第一时长,确定该目标数据量。A third determination unit is configured to determine the target data amount based on the first data transmission bandwidth and the first duration.
在一些实施例中,该第三确定单元,用于基于该第一数据传输带宽,确定最大数据传输速率;将该最大数据传输速率和该第一时长的乘积确定为该目标数据量。In some embodiments, the third determining unit is configured to determine a maximum data transmission rate based on the first data transmission bandwidth; and determine the target data amount by multiplying the maximum data transmission rate and the first duration.
在一些实施例中,该数据传输模块704,用于以该第二数据传输带宽为传输速率,以该第二数据传输周期中的激活时间段对应的第二时长为传输时长,传输该待传输的数据。In some embodiments, the data transmission module 704 is configured to use the second data transmission bandwidth as the transmission rate, and use the second duration corresponding to the activation period in the second data transmission cycle as the transmission duration to transmit the to-be-transmitted data. The data.
在一些实施例中,该装置还包括:In some embodiments, the device further includes:
控制模块,用于基于该下行数据传输链路的第二数据传输周期,控制硬件加速器的运行状态,该硬件加速器用于基于该运行状态,控制该下行数据传输链路和该上行数据传输链路的数据传输。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. The hardware accelerator is used to control the downlink data transmission link and the uplink data transmission link based on the operating state. data transmission.
在一些实施例中,该控制模块,包括:In some embodiments, the control module includes:
第一控制单元,用于响应于当前时间达到该下行数据传输链路的激活时间,控制该硬件加速器进入激活状态,在该硬件加速器处于激活状态下,该硬件加速器用于控制该上行数据传输链路和该下行数据传输链路进行数据传输;The first control unit is configured to control the hardware accelerator to enter the activation state in response to the current time reaching the activation time of the downlink data transmission link. 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 for data transmission;
第二控制单元,用于响应于该硬件加速器的激活时长达到该第二时长,控制该硬件加速器进入休眠状态,在该硬件加速器处于休眠状态下,该硬件加速器用于控制该上行数据传输链路和该下行数据传输链路停止进行数据传输。The second control unit is configured to control the hardware accelerator to enter a sleep state in response to the activation time of the hardware accelerator reaching the second time period. 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 stops data transmission.
在本申请实施例中,通过将上行传输链路传输的数据平均到下行数据传输链路对应的第二时长内,从而避免了在进行数据传输时,在数据传输的初始阶 段,由于上行数据传输链路和下行数据传输链路的带宽较大,产生数据冲击,造成带宽不足,进而导致数据传输失败的问题。In the embodiment of the present application, the data transmitted by the uplink transmission link is averaged into the second duration corresponding to the downlink data transmission link, thereby avoiding the problem of uplink data transmission in the initial stage of data transmission during data transmission. The bandwidth of the link and the downlink data transmission link is relatively large, resulting in data impact, resulting in insufficient bandwidth, which in turn leads to data transmission failure.
在一些实施例中,电子设备提供为终端,请参考图8,其示出了本申请一个示例性实施例提供的终端800的结构方框图。终端800可以是智能手机、平板电脑等具有图像处理功能的终端。本申请中的终端800可以包括一个或多个如下部件:处理器810、存储器820、通信模块830。In some embodiments, the electronic device is provided as a terminal. Please refer to FIG. 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 smartphone, a tablet, or other terminal with an image processing function. The terminal 800 in this application may include one or more of the following components: a processor 810, a memory 820, and a communication module 830.
处理器810可以包括一个或者多个处理核心。处理器810利用各种接口和线路连接整个终端800内的各个部分,通过运行或执行存储在存储器820内的指令、程序、代码集或指令集,以及调用存储在存储器820内的数据,执行终端800的各种功能和处理数据。可选地,处理器810可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器810可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器810中,单独通过一块芯片进行实现。Processor 810 may include one or more processing cores. The processor 810 uses various interfaces and lines to connect various parts of the entire terminal 800, and executes the terminal by running or executing instructions, programs, code sets or instruction sets stored in the memory 820, and calling data stored in the memory 820. 800's various functions and processing data. Optionally, the processor 810 may use at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in hardware form. The processor 810 can integrate one or more of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU), a modem, etc. The combination. Among them, the CPU mainly handles the operating system, user interface and applications; the GPU is used to render and draw the content that needs to be displayed on the display; the NPU is used to implement artificial intelligence (Artificial Intelligence, AI) functions; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 810 and may be implemented by a separate chip.
存储器820可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器820包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器820可用于存储指令、程序、代码、代码集或指令集。存储器820可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储根据终端800的使用所创建的数据(比如音频数据、电话本)等。The memory 820 may include random access memory (RAM) or read-only memory (Read-Only Memory, ROM). Optionally, the memory 820 includes non-transitory computer-readable storage medium. Memory 820 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 820 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions, etc., used to implement each of the following method embodiments; the storage data area can store data created according to the use of the terminal 800 (such as audio data, phone book), etc.
通信模块830用于发射和接收信号,该通信模块可以为无线保真(Wireless Fidelity,WIFI)模块等。通信模块830采用调制解调器(modem)和无线网络 接入点(Access Point,AP)的结构。其中,modem和AP之间通过高速串行计算机扩展总线(Peripheral Component Interconnect Express,PCIE)接口连接,通过硬件加速器为PCIE上电,进而实现控制modem和AP的激活和休眠。The communication module 830 is used to transmit and receive signals. The communication module can be a wireless fidelity (Wireless Fidelity, WIFI) module or the like. The communication module 830 adopts the structure of a modem and a wireless network access point (Access Point, AP). Among them, the modem and AP are connected through a high-speed serial computer expansion bus (Peripheral Component Interconnect Express, PCIE) interface, and the PCIE is powered on through a hardware accelerator to control the activation and sleep of the modem and AP.
该终端800还可以包括显示屏,显示屏是用于显示用户界面的显示组件。可选的,该显示屏为具有触控功能的显示屏,通过触控功能,用户可以使用手指、触摸笔等任何适合的物体在显示屏上进行触控操作。The terminal 800 may also include a display screen, which is a display component used to display a user interface. Optionally, the display screen is a display screen with a touch control function. Through the touch control function, the user can use any suitable object such as a finger or a touch pen to perform touch operations on the display screen.
显示屏通常设置在终端800的前面板。显示屏可被设计成为全面屏、曲面屏、异型屏、双面屏或折叠屏。显示屏还可被设计成为全面屏与曲面屏的结合,异型屏与曲面屏的结合等,本实施例对此不加以限定。The display screen is usually provided on the front panel of terminal 800. The display screen can be designed as a full screen, curved screen, special-shaped screen, double-sided screen or 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. This embodiment is not limited to this.
除此之外,本领域技术人员可以理解,上述附图所示出的终端800的结构并不构成对终端800的限定,终端800可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端800中还包括麦克风、扬声器、射频电路、输入单元、传感器、音频电路、电源、蓝牙模块等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the terminal 800 shown in the above figures does not constitute a limitation on the terminal 800. The terminal 800 may include more or fewer components than those shown in the figures, or a combination of certain components. components, or different component arrangements. 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 again here.
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有至少一条程序代码,该至少一条程序代码用于被处理器执行以实现如上述方面所述的数据传输方法。Embodiments of the present application also provide a computer-readable storage medium that stores at least one program code. The at least one program code is used to be executed by a processor to implement the data transmission method as described above. .
本申请实施例还提供了一种计算机程序产品,该计算机程序产品存储有至少一条程序代码,该至少一条程序代码用于被处理器执行以实现如上述方面所述的数据传输方法。Embodiments of the present application also provide 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 above.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should realize that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. Storage media can be any available media that can be accessed by a general purpose or special purpose computer.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.

Claims (12)

  1. 一种数据传输方法,其特征在于,所述方法由终端执行,所述方法包括:A data transmission method, characterized in that the method is executed by a terminal, and the method includes:
    确定目标数据量,所述目标数据量为上行数据传输链路在第一时长内传输的数据量,所述第一时长为所述上行数据传输链路的第一数据传输周期中的激活时间段对应的时长;Determine a target data amount, the target data amount is the amount of data transmitted by the uplink data transmission link within a first duration, and the first duration is the activation time period in the first data transmission cycle of the uplink data transmission link corresponding duration;
    确定下行数据传输链路的第二时长,所述第二时长为所述下行数据传输链路的第二数据传输周期中激活时间段对应的时长;Determine a second duration of the downlink data transmission link, where the second duration is the duration corresponding to the activation time period in the second data transmission cycle of the downlink data transmission link;
    基于所述目标数据量和所述第二时长,调整所述上行数据传输链路的第一数据传输带宽,得到第二数据传输带宽;Based on the target data amount 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 bandwidth, the data to be transmitted is transmitted through the uplink data transmission link during the activation period in the second data transmission cycle.
  2. 根据权利要求1所述的方法,其特征在于,所述基于所述目标数据量和所述第二时长,调整所述上行数据传输链路的第一数据传输带宽,得到第二数据传输带宽,包括:The method according to claim 1, characterized in that, based on the target data amount and the second duration, the first data transmission bandwidth of the uplink data transmission link is adjusted to obtain a second data transmission bandwidth, include:
    基于所述第二时长和所述目标数据量,确定目标数据传输速率;Determine a target data transmission rate based on the second duration and the target data amount;
    将与所述目标数据传输速率匹配的数据传输带宽确定为所述第二数据传输带宽。A data transmission bandwidth matching the target data transmission rate is determined as the second data transmission bandwidth.
  3. 根据权利要求2所述的方法,其特征在于,所述基于所述第二时长和所述目标数据量,确定目标数据传输速率,包括:The method of claim 2, wherein determining the target data transmission rate based on the second duration and the target data amount includes:
    将所述目标数据量和所述第二时长的商确定为所述目标数据传输速率。The quotient of the target data amount and the second duration is determined as the target data transmission rate.
  4. 根据权利要求1所述的方法,其特征在于,所述确定目标数据量,包括:The method according to claim 1, characterized in that determining the target data amount includes:
    读取存储器中缓存的数据的数据量,得到所述目标数据量,所述存储器用于缓存所述上行数据传输链路在第一时长内传输的数据;或者,Read the data amount of data cached in the memory to obtain the target data amount, and the memory is used to cache the data transmitted by the uplink data transmission link within the first duration; or,
    基于所述第一数据传输带宽和所述第一时长,确定所述目标数据量。The target data amount is determined based on the first data transmission bandwidth and the first duration.
  5. 根据权利要求4所述的方法,其特征在于,所述基于所述第一数据传输带宽和所述第一时长,确定所述目标数据量,包括:The method of claim 4, wherein determining the target data amount based on the first data transmission bandwidth and the first duration includes:
    基于所述第一数据传输带宽,确定最大数据传输速率;Based on the first data transmission bandwidth, determine a maximum data transmission rate;
    将所述最大数据传输速率和所述第一时长的乘积确定为所述目标数据量。The product of the maximum data transmission rate and the first duration is determined as the target data amount.
  6. 根据权利要求1所述的方法,其特征在于,所述基于所述第二数据传输带宽,在所述第二数据传输周期中的激活时间段内通过所述上行数据传输链路传输待传输的数据,包括:The method according to claim 1, characterized in that, based on the second data transmission bandwidth, the to-be-transmitted data is transmitted through the uplink data transmission link during the activation time period in the second data transmission cycle. Data, including:
    以所述第二数据传输带宽为传输速率,以所述第二数据传输周期中的激活时间段对应的第二时长为传输时长,传输所述待传输的数据。The data to be transmitted is transmitted using the second data transmission bandwidth as the transmission rate and the second duration corresponding to the activation period in the second data transmission cycle as the transmission duration.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-6, characterized in that the method further includes:
    基于所述下行数据传输链路的第二数据传输周期,控制硬件加速器的运行状态,所述硬件加速器用于基于所述运行状态,控制所述下行数据传输链路和所述上行数据传输链路的数据传输。Based on the second data transmission cycle of the downlink data transmission link, the operating state of the hardware accelerator is controlled. The hardware accelerator is used to control the downlink data transmission link and the uplink data transmission link based on the operating state. data transmission.
  8. 根据权利要求7所述的方法,其特征在于,所述基于所述下行数据传输链路的第二数据传输周期,控制硬件加速器的运行状态,包括:The method of claim 7, wherein 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, the hardware accelerator is controlled to enter an 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 performs data transmission;
    响应于所述硬件加速器的激活时长达到所述第二时长,控制所述硬件加速器进入休眠状态,在所述硬件加速器处于休眠状态下,所述硬件加速器用于控制所述上行数据传输链路和所述下行数据传输链路停止进行数据传输。In response to the activation duration of the hardware accelerator reaching the second duration, the hardware accelerator is controlled 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 stops transmitting data.
  9. 一种数据传输装置,其特征在于,所述装置包括:A data transmission device, characterized in that the device includes:
    第一确定模块,用于确定目标数据量,所述目标数据量为上行数据传输链路在第一时长内传输的数据量,所述第一时长为所述上行数据传输链路的第一数据传输周期中的激活时间段对应的时长;The first determination module is used to determine the target data amount. The target data amount is the data amount transmitted by the uplink data transmission link within a first duration, and the first duration is the first data of the uplink data transmission link. The duration corresponding to the activation period in the transmission cycle;
    第二确定模块,用于确定下行数据传输链路的第二时长,所述第二时长为所述下行数据传输链路的第二数据传输周期中激活时间段对应的时长;The second determination module is used to determine the second duration of the downlink data transmission link, where the second duration is the duration corresponding to the activation time 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 amount and the second duration to obtain a second data transmission bandwidth;
    数据传输模块,用于基于所述第二数据传输带宽,在所述第二数据传输周期中的激活时间段内通过所述上行数据传输链路传输待传输的数据。A data transmission module, configured to transmit data to be transmitted through the uplink data transmission link within the activation time period in the second data transmission cycle based on the second data transmission bandwidth.
  10. 一种终端,其特征在于,所述终端包括处理器和存储器;所述存储器存储有至少一条程序代码,所述至少一条程序代码用于被所述处理器执行以实现如权利要求1至8任一项所述的数据传输方法。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 used to be executed by the processor to implement any of claims 1 to 8. The data transmission method described in one item.
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有至少一条程序代码,所述至少一条程序代码用于被终端的处理器执行,以使得所述终端实现如权利要求1至8任一项所述的数据传输方法。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 used to be executed by a processor of a terminal, so that the terminal implements the claims The data transmission method described in any one of 1 to 8.
  12. 一种计算机程序产品,其特征在于,所述计算机程序产品存储有至少一条程序代码,所述至少一条程序代码用于被终端的处理器执行,以使得所述终端实现如权利要求1至8任一项所述的数据传输方法。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 used to be executed by a processor of a terminal, so that the terminal implements any of claims 1 to 8. The data transmission method described in one item.
PCT/CN2023/070080 2022-06-16 2023-01-03 Data transmission method and apparatus, and terminal and storage medium WO2023241026A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210684389.0 2022-06-16
CN202210684389.0A CN114980219A (en) 2022-06-16 2022-06-16 Data transmission method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
WO2023241026A1 true WO2023241026A1 (en) 2023-12-21

Family

ID=82963200

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/070080 WO2023241026A1 (en) 2022-06-16 2023-01-03 Data transmission method and apparatus, and terminal and storage medium

Country Status (2)

Country Link
CN (1) CN114980219A (en)
WO (1) WO2023241026A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114980219A (en) * 2022-06-16 2022-08-30 Oppo广东移动通信有限公司 Data transmission method, device, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102742203A (en) * 2012-03-20 2012-10-17 华为技术有限公司 Method, device and system for transmitting data in coaxial network
CN107251634A (en) * 2015-08-04 2017-10-13 华为技术有限公司 The method and apparatus for controlling schedules message
CN110636554A (en) * 2019-09-17 2019-12-31 华为技术有限公司 Data transmission method and device
US20210392720A1 (en) * 2018-10-22 2021-12-16 Huawei Technologies Co., Ltd. Data Transmission Method, Apparatus, and Device in Wi-Fi Network
CN114980219A (en) * 2022-06-16 2022-08-30 Oppo广东移动通信有限公司 Data transmission method, device, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102742203A (en) * 2012-03-20 2012-10-17 华为技术有限公司 Method, device and system for transmitting data in coaxial network
CN107251634A (en) * 2015-08-04 2017-10-13 华为技术有限公司 The method and apparatus for controlling schedules message
US20210392720A1 (en) * 2018-10-22 2021-12-16 Huawei Technologies Co., Ltd. Data Transmission Method, Apparatus, and Device in Wi-Fi Network
CN110636554A (en) * 2019-09-17 2019-12-31 华为技术有限公司 Data transmission method and device
CN114980219A (en) * 2022-06-16 2022-08-30 Oppo广东移动通信有限公司 Data transmission method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN114980219A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
JP7194201B2 (en) DCI transmission method, terminal and base station
JP7462657B2 (en) Method for transmitting indication signal, terminal and network device
WO2021083256A1 (en) Touch-control response method and electronic device
WO2020253612A1 (en) Pdcch monitoring method and terminal
WO2018126409A1 (en) Signaling transmission method and device
US20220264462A1 (en) Wake-up signal configuration method, wake-up signal processing method, and related device
WO2023241026A1 (en) Data transmission method and apparatus, and terminal and storage medium
WO2021063260A1 (en) Energy-saving signal receiving method and energy-saving signal sending method, terminal and network device
WO2019242567A1 (en) Bandwidth adjustment method, mobile terminal, network side device and medium
WO2023246516A1 (en) Method and apparatus for generating visit report of clinical research project
WO2021027713A1 (en) Uplink transmission method, uplink transmission control method, and related device
WO2022166877A1 (en) Wifi uplink data sending method and apparatus, and electronic device and storage medium
WO2015103951A1 (en) Instant application message processing method and modem
WO2021027716A1 (en) Capability negotiation method, terminal and network device
JP7278397B2 (en) Transmission resource indication method, transmission method, network equipment and terminal
WO2018103378A1 (en) Method for sending data, and mobile terminal
TW201826843A (en) Method for data transmission and apparatus
CN111132355B (en) Semi-persistent scheduling transmission method, terminal and network equipment
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
JP2022501969A (en) Reception method, transmission method, terminal and network side equipment
WO2022077993A1 (en) Transmission parameter determination method and apparatus and terminal device
US20210219325A1 (en) Information indicating method, indication receiving method, terminal, and network-side device
WO2021139627A1 (en) Parameter reporting method and uplink scheduling method, device and medium
CN112543082B (en) Monitoring method, sending method, terminal and network equipment
CN109739641B (en) Self-adaptive CPU frequency modulation acceleration method and device, mobile terminal and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23822598

Country of ref document: EP

Kind code of ref document: A1