Uplink resource pre-application method and related equipment
By predicting the time it takes to encode data packets and applying for uplink resources in advance, it solves the problems of extended time for electronic devices to send uplink data and increased power consumption, and improves the user experience of services such as real-time media communication and cloud gaming.
Patent Information
- Application Number
- CN202110040647.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-12
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-01-12
AI Technical Summary
Existing technologies have problems such as delays and increased power consumption when electronic devices send uplink data. Especially in businesses with high latency requirements such as real-time media communications and cloud games, the user experience is degraded.
The electronic device predicts the encoding time of the data packet to be sent, starts the timer in advance and sends an uplink scheduling request to the network device, and applies for uplink resources in advance to ensure that the data packet can be sent in time when the encoding is completed.
It reduces the delay for electronic devices to send uplink data, saves the power consumption of electronic devices, and improves the user experience of services with high latency requirements.
Smart Images

Figure CN114765831B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method for pre-application of uplink resources and related equipment. Background Art
[0002] With the development of terminal technology, electronic devices such as smartphones and tablets can support more and more different types of services, such as real-time media communication services, cloud gaming services, cloud VR services, etc. These services have high requirements for end-to-end latency. Large latency may cause a significant decline in user experience.
[0003] At present, when an electronic device has uplink data to send, it needs to apply for uplink resources from the base station. Due to the large number of signaling interactions between the electronic device and the base station, the uplink data transmission delay will increase. Alternatively, the base station can periodically allocate uplink resources to the electronic device within a period of time for the electronic device to send uplink data. In this way, although the uplink data transmission delay is reduced, when the electronic device has no uplink data to send, the electronic device also has to process the uplink resources allocated by the base station, which will increase the power consumption of the electronic device.
[0004] Therefore, how to reduce the delay of electronic devices in sending uplink data while saving the power consumption of electronic devices is a problem that needs to be solved urgently in current research. Summary of the invention
[0005] The embodiments of the present application provide a method for pre-application of uplink resources and related devices, which can reduce the delay of an electronic device in sending uplink data and save the power consumption of the electronic device.
[0006] In a first aspect, an embodiment of the present application provides a communication method, the method comprising: an electronic device encodes data to be sent to generate a data packet to be sent; at a time t0 when the encoding of the data packet to be sent starts, the electronic device predicts a time M for encoding the data packet to be sent, and determines a time t1 when the encoding of the data packet to be sent is completed based on the time M for encoding the data packet to be sent; the electronic device starts a timer, an expiration time t2 of the timer is earlier than a time t1 when the encoding of the data packet to be sent is completed, and a time interval from a time t2 when the timer expires to a time t1 when the first scheduling request SR is sent after a time t1 when the encoding of the data packet to be sent is completed is an SR cycle; at a time t2 when the timer expires, the electronic device sends an SR to a network device; the electronic device receives an uplink authorization information UL Grant sent by the network device; at a time t1 when the encoding of the data packet to be sent is completed, the electronic device sends the data packet to be sent using the uplink resources indicated by the UL Grant.
[0007] According to the method provided in the first aspect of the embodiment of the present application, the electronic device can predict the time consumption of encoding the data packet to be sent in the application (APP), determine the encoding completion time of the data packet to be sent, and send an uplink scheduling request to the network device before the encoding completion time of the data packet to be sent, and apply for uplink resources for the data packet to be sent in advance. In this way, the delay of the electronic device in sending uplink data can be reduced, and the power consumption of the electronic device can be saved.
[0008] In one possible implementation, the expiration time t2 of the timer is equal to the start time t3 of the timer plus the duration T of the timer, and the duration T of the timer is equal to the duration from the start time t3 of the timer to the encoding completion time t1 of the data packet to be sent minus the time interval M3; wherein, the encoding completion time t1 of the data packet to be sent is equal to the encoding start time t0 of the data packet to be sent plus the encoding time M of the data packet to be sent; the time interval M3 is equal to the time interval M1 plus the time interval M2, the time interval M1 is the time interval from the expiration time t2 of the timer until the electronic device receives the uplink authorization information UL Grant, and the time interval M2 is the time interval from the moment the electronic device receives the uplink authorization information UL Grant to the encoding completion time t1 of the data packet to be sent.
[0009] In a possible implementation manner, the time interval M1 is determined by the electronic device according to a first network configuration parameter, wherein the first network configuration parameter is acquired by the electronic device when accessing the network device.
[0010] In a possible implementation manner, the time interval M2 is determined by the electronic device according to a second network configuration parameter, wherein the second network configuration parameter is acquired by the electronic device when accessing the network device.
[0011] In one possible implementation, the electronic device includes: an application layer, an application interface layer and a modem, the application interface layer is used for communication between the application layer and the modem; the application interface layer provides a first interface; the first interface is used by the application layer to transmit the encoding completion time t1 of the data packet to be sent to the application interface layer.
[0012] In one possible implementation, the electronic device includes: an application layer, an application interface layer and a modem, the application interface layer is used for communication between the application layer and the modem; the application interface layer provides a second interface; the application interface layer is used to generate an AT command, the AT command carries the encoding completion time t1 of the data packet to be sent, and the AT command is used to instruct the modem to start the timer; the second interface is used for the application interface layer to transmit the AT command to the modem.
[0013] In a possible implementation manner, the step of the electronic device sending the SR to the network device at the expiration time t2 of the timer is performed under the following conditions:
[0014] The encoding completion time t1 of the data packet to be sent is earlier than the first time, and the first time is equal to the expiration time t2 of the timer plus the time interval M1 and 1 / 2 SR cycle, wherein the time interval M1 is the time interval from the expiration time t2 of the timer until the electronic device receives the uplink authorization information UL Grant.
[0015] In a possible implementation manner, the data to be sent is image data collected by the electronic device.
[0016] In a second aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes any one of the methods described in the first aspect above.
[0017] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed on an electronic device, the electronic device executes any one of the methods described in the first aspect above.
[0018] In a fourth aspect, an embodiment of the present application provides a chip, which is applied to an electronic device. The chip includes one or more processors, and the processor is used to call computer instructions so that the electronic device executes any one of the methods described in the first aspect.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a schematic diagram of signaling interaction for uplink resource scheduling provided in the prior art;
[0021] Figure 2 This is another signaling interaction diagram for uplink resource scheduling provided in the prior art;
[0022] Figure 3 It is a schematic diagram of the architecture of a mobile communication system provided by an embodiment of the present application;
[0023] Figure 4 This is a schematic diagram of a method flow for uplink resource pre-application provided in an embodiment of the present application;
[0024] Figure 5 It is a schematic diagram of a timer duration setting method provided in an embodiment of the present application;
[0025] Figure 6A-6C It is a schematic diagram of the delay benefit of sending uplink data after pre-application of uplink resources in different situations provided by the embodiment of the present application;
[0026] Figure 7 This is a flowchart of another method for pre-application of uplink resources provided in an embodiment of the present application;
[0027] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0028] Fig. 9 is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application;
[0029] Fig.10 It is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0031] It should be understood that the terms "first", "second", etc. in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0032] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0033] Uplink transmission request is a technology commonly used in cellular networks. Data services are often bursty and discontinuous. For uplink data, the base station does not know when the electronic device has data to send, so it is not sure when to schedule the electronic device for uplink transmission and allocate uplink transmission wireless resources (also called uplink resources). The above problem is usually solved in the following two ways:
[0034] Method 1: If Figure 1 As shown, the long term evolution (LTE) protocol and the new radio (NR) protocol support that when an electronic device has uplink data to send, it first sends a scheduling request (SR) to the base station. After receiving the SR, the base station schedules the physical uplink shared channel (PUSCH) for the electronic device, and allocates a small amount of uplink resources to the electronic device through the uplink grant (UL Grant) information. Then, the electronic device can send a buffer status report (BSR) to the base station on the PUSCH, and the BSR can be used to inform the base station how much uplink data needs to be sent on the electronic device. Then, the base station can schedule the PUSCH according to the BSR, and allocate uplink resources to the electronic device through the uplink grant (UL Grant) information. Until all uplink data on the electronic device is sent, the electronic device reports the BSR to notify the base station that the electronic device has no uplink data to send, and the base station stops scheduling the PUSCH.
[0035] Method 2: If Figure 2As shown, a pre-scheduling method is adopted: the base station periodically schedules PUSCH for electronic devices within a period of time, and allocates uplink resources to electronic devices through uplink authorization (UL Grant) information. When the electronic device has uplink data to send, the electronic device can wait until the next scheduling period arrives and send the uplink data to be sent in the PUSCH scheduled by the base station. When the electronic device has no uplink data to send, the electronic device can send a padding packet in the PUSCH scheduled by the base station when the next scheduling period arrives.
[0036] In the above method 1, when the electronic device has uplink data to send, it needs to request the base station to schedule PUSCH by sending SR. In this way, the delay of the electronic device sending uplink data is relatively large. For those services with high latency requirements, such as real-time media communication services, cloud VR services, cloud gaming services, etc., the large delay may cause a significant decline in user experience.
[0037] In the above method 2, when the electronic device has uplink data to send, it does not need to request the base station to schedule PUSCH by sending SR. Therefore, the delay of the electronic device sending uplink data is smaller than the delay of the above method 1. However, if the electronic device does not have uplink data to send, the electronic device still needs to send padding packets in the PUSCH scheduled by the base station, resulting in increased power consumption of the electronic device.
[0038] An embodiment of the present application provides a method for pre-application of uplink resources, and an electronic device can predict the time consumption of encoding a data packet to be sent in an application (APP), determine the moment when the encoding of the data packet to be sent is completed, and send an uplink scheduling request to a network device before the moment when the encoding of the data packet to be sent is completed, so as to apply for uplink resources for the data packet to be sent in advance. In this way, the delay of the electronic device in sending uplink data can be reduced, and the power consumption of the electronic device can be saved.
[0039] It should be noted that, in the embodiment of the present application, "pre-application" means that the electronic device sends an uplink scheduling request to the network device in advance to obtain uplink resources for sending the above-mentioned data packets to be sent.
[0040] It should be understood that the technical solutions of the embodiments of the present application can be applied to various communication systems, for example, long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD) system, code division multiple access (CDMA) system, universal mobile telecommunication system (UMTS), wireless local area network (WLAN) and other communication systems, as well as the 5th Generation mobile communication (5G) system or 5G new radio (NR) system or communication system based on orthogonal frequency division multiplexing (OFDM) technology, etc., without limitation herein.
[0041] Figure 3 The architecture of a mobile communication system provided by an embodiment of the present application is exemplified.
[0042] like Figure 3 As shown, the mobile communication system may include an electronic device 100, a wireless access network device 200 and a core network device 300. The electronic device 100 is connected to the wireless access network device 200 by wireless means, and the wireless access network device 200 is connected to the core network device 300 by wireless or wired means. The core network device 300 and the wireless access network device 200 may be independent and different physical devices, or the functions of the core network device 300 and the logical functions of the wireless access network device 200 may be integrated on the same physical device, or part of the functions of the core network device 300 and part of the functions of the wireless access network device 200 may be integrated on one physical device. The electronic device 100 may be fixed in position or movable.
[0043] The wireless access network device 200 (also referred to as a network device) is an access device for the electronic device 100 to access the mobile communication system in a wireless manner, and has a wireless transceiver function. The device includes but is not limited to: an evolved Node B (eNB), a radio network controller (RNC), a Node B (NB), a base station controller (BSC), a base transceiver station (BTS), a home base station (e.g., a home evolved NodeB, or a home Node B, HNB), a baseband unit (BBU), a next generation Node B (gNB) in a 5G NR network, a transmission point (TRP or TP), or a network node constituting a gNB or a transmission point, such as a baseband unit (BBU), or a distributed unit (DU), etc. The embodiment of the present application does not limit the specific wireless access technology and specific device form adopted by the wireless access network device 200.
[0044] The electronic device 100 may also be referred to as user equipment (UE), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device. The electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a handheld device, a vehicle-mounted device, a wearable device, etc., without limitation herein.
[0045] The wireless access network device 200 and the electronic device 100 can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted, on water, or on airplanes and satellites in the air. The present application embodiment does not limit the application scenario.
[0046] It should be understood that Figure 3This is only a schematic diagram of the architecture of the mobile communication system. The mobile communication system may also include other devices, for example, a wireless relay device and a wireless backhaul device ( Figure 3 The embodiment of the present application does not limit the number of electronic devices, wireless access network devices and core network devices included in the mobile communication system.
[0047] In an embodiment of the present application, the electronic device 100 and the wireless access network device 200 communicate based on the wireless air interface. At present, in a mobile communication system, the communication protocol stack can be divided into a physical layer, a data link layer and a network layer. The data link layer can be divided into a user plane and a control plane. The user plane may include a packet data convergence protocol (PDCP) layer, a radio link control (RLC) layer, and a media access control (MAC) layer. For example, the RLC layer and the MAC layer may be connected by a logical channel (LCH). For another example, the MAC layer provides data transmission on a logical channel, and defines different logical channels according to data of different service types. The main function of the PDCP layer is to perform header compression and decompression for user plane data packets. In addition, the PDCP layer also has security functions, such as encryption and decryption of user plane data and control plane data, and integrity protection and verification of control plane data.
[0048] Scheduling in the protocol stack is one of the core issues in the study of wireless communication systems. Scheduling mainly includes terminal scheduling, logical channel scheduling and packet scheduling. Terminal scheduling is the process by which the wireless access network equipment determines how many resources to allocate to each terminal for sending data. Logical channel scheduling is the process by which the MAC layer determines how many resources to allocate to each logical channel of the RLC layer for sending data. Packet scheduling refers to the process by which the logical channel determines how many control messages, retransmission data or new data to send in one transmission opportunity. The embodiments of the present application relate to logical channel scheduling, which is also called radio link resource scheduling or MAC scheduling.
[0049] Figure 4 The specific process of a method for pre-application of uplink resources provided in an embodiment of the present application is exemplified.
[0050] Application scenario: video call.
[0051] like Figure 4 As shown, the method can be applied to a communication system including an electronic device 100 and a wireless access network device 200. The specific steps of the method are described in detail below:
[0052] S401-S402, the electronic device 100 detects an operation of a user initiating a video call, such as a user clicking a video call control on an application, and the electronic device 100 can turn on the camera to capture video frames.
[0053] S403, the electronic device 100 can start predicting the encoding time M and data volume of the data packet A to be sent at time t0 (the encoding start time of the data packet A to be sent), and determine the encoding completion time t1 of the data packet A to be sent according to the encoding time M.
[0054] Specifically, during the entire video call, the electronic device 100 continuously collects video frames and encodes the collected video frames, so multiple data packets to be sent (such as data packet A to be sent, data packet B to be sent, data packet C to be sent, etc.) may be generated. Taking data packet A to be sent as an example, the electronic device 100 can accurately predict the data volume of data packet A to be sent and the time to complete the encoding of data packet A to be sent, that is, the encoding time M, based on information such as the picture type in the collected video frame at time t0 (the encoding start time of data packet A to be sent), thereby determining the encoding completion time t1 of data packet A to be sent based on the encoding time M. Furthermore, the electronic device 100 can also obtain information such as the data type of data packet A to be sent.
[0055] S404, the electronic device 100 sends information such as the encoding time M, encoding completion time t1, data volume, data type, etc. of the data packet A to be sent to the application interface layer.
[0056] S405-S406, after receiving the encoding time M, encoding completion time t1, data volume, data type and other information of the data packet A to be sent, the application interface layer generates an AT command (attention command) according to the above information. Then, the application interface layer sends the AT command to the modem. The AT command is an interface control command for communication between the application and the modem, and can carry the encoding time M, encoding completion time t1, data volume, data type, protocol data unit (PDU) session ID, quality of service (QoS) flow ID and other information of the data packet A to be sent.
[0057] The application interface layer may provide a standard interface for the application, through which the application and the modem can communicate. For example, the application interface layer may provide a first interface, which may be used for the application to transmit information such as the encoding time M, encoding completion time t1, data volume, and data type of the data packet A to be sent to the application interface layer. For another example, the application interface layer may also provide a second interface, which may be used for the application interface layer to transmit a generated AT command to the modem, and the AT command may be used to instruct the modem to start a timer.
[0058] S407. After receiving the AT command, the modem counts the data volume of the to-be-sent data packet A carried in the AT command into the corresponding logical channel, and starts a timer at the same time. When the timer expires at time t2, the SR of the next scheduling period is triggered to pre-apply for uplink resources.
[0059] Specifically, after receiving the above AT command, the modem can count the data volume of the data packet A to be sent into the corresponding logical channel according to the information carried in the above AT command. At the same time, the modem can start the timer, and trigger the SR of the next scheduling cycle when the timer expires at time t2, and pre-apply for uplink resources. The uplink resources are used by the electronic device 100 to send the above data packet A to be sent to the wireless access network device 200. That is to say, before the encoding completion time t1 of the above data packet A to be sent arrives, the electronic device 100 must pre-apply for uplink resources and apply for uplink resources in advance. In this way, when the encoding completion time t1 of the above data packet A to be sent arrives, the electronic device 100 can use the uplink resources applied in advance to send the above data packet A to be sent to the wireless access network device 200.
[0060] In a possible implementation, the timer duration T can be calculated using the following method: Figure 4 The time from step S403 to step S406 shown in FIG. 1 is that the encoding start time t0 of the data packet A to be sent is equal to the time when the timer is started (the timer start time t3). Then, if Figure 5 As shown, the timer duration T = M-M1-M2, wherein M>(M1+M2), M is the encoding time of the above-mentioned data packet A to be sent, and M1 is the time when the electronic device 100 starts to send SR to the wireless access network device 200 ( Figure 4The time interval from the expiration of the timer (time t2) to the electronic device 100 receiving the uplink grant information UL Grant sent by the wireless access network device 200, M2 is the time interval from the electronic device 100 receiving the above-mentioned uplink grant information UL Grant to the encoding completion time t1 of the data packet A to be sent. Among them, the encoding time M can be accurately predicted, and M1 and M2 need to be further determined based on the comprehensive consideration of multiple network configuration parameters such as SR cycle, scheduling strategy of the wireless access network device 200, channel conditions, TDD / FDD, Numerology, etc. For example, when the wireless access network device 200 is congested, M1 will increase, and when the wireless access network device 200 is idle, M1 will decrease. For another example, the electronic device 100 can determine the priority of each logical channel to send uplink data according to the service type of the uplink data carried by the logical channel. If the priority is high, M2 will decrease, and if the priority is low, M2 will increase. That is to say, the value of M1 needs to be further determined based on multiple network configuration parameters (also referred to as first network configuration parameters), and the value of M2 also needs to be further determined based on multiple network configuration parameters (also referred to as second network configuration parameters) to avoid uplink resource waste as much as possible. The above multiple network configuration parameters can be obtained when the electronic device 100 accesses the wireless access network device 200.
[0061] It should be noted that the above M1 and M2 may increase in some cases, thereby generating some negative delay benefits, but it will not affect the beneficial effects of this solution. For example, when the wireless access network device 200 is congested, M1 will increase, and the time for the wireless access network device 200 to send the uplink authorization information UL Grant to the electronic device 100 will be delayed, so some negative delay benefits may be generated, but since this delay time is very short, from the perspective of the total delay benefit, compared with not performing uplink resource pre-application, the implementation of the uplink resource pre-application method of this solution will still be a positive delay benefit, which will not affect the beneficial effects of this solution.
[0062] In a possible implementation, the timer expiration time t2 can be calculated by the following method: the timer expiration time t2 is equal to the timer start time t3 plus the timer duration T. The timer duration T is equal to the time from the timer start time t3 to the time t1 when the encoding of the data packet A to be sent is completed minus the time interval M3; the time t1 when the encoding of the data packet A to be sent is equal to the time t0 when the encoding of the data packet A to be sent is started plus the encoding time M; the time interval M3 is equal to the time interval M1 plus the time interval M2, the time interval M1 is the time interval from the time when the timer expiration time t2 until the electronic device 100 receives the uplink grant information UL Grant sent by the wireless access network device 200, and the time interval M2 is the time interval from the time when the electronic device 100 receives the uplink grant information UL Grant sent by the wireless access network device 200 to the time t1 when the encoding of the data packet A to be sent is completed.
[0063] Continue to see Figure 5 , BSR can be carried by the media access control (MAC) protocol data unit (PDU), which is used to report to the wireless access network device 200 how much uplink data the electronic device 100 needs to send (based on the amount of data carried in the BSR), and then the wireless access network device 200 allocates uplink resources to the electronic device 100 by sending uplink grant (UL Grant) information. Until all uplink data on the electronic device 100 is sent, the electronic device 100 reports the BSR to notify the wireless access network device 200 that the electronic device 100 has no uplink data to send (that is, the amount of data carried in the BSR Size is 0), and the base station stops uplink resource scheduling.
[0064] S408 . The electronic device 100 may send an SR request to the wireless access network device 200 at time t2 to inform the wireless access network device 200 that the electronic device 100 has uplink data to be sent.
[0065] S409. After receiving the above SR request, the wireless access network device 200 can schedule PUSCH for the electronic device 100 according to the network resource situation, and allocate a small amount of uplink resources to the electronic device 100 by sending UL Grant1, which can be used by the electronic device 100 to send the BSR in step S411 to the wireless access network device 200.
[0066] S410-S413, at the time t1 when the encoding of the data packet A to be sent is completed, the application in the electronic device 100 can send the data packet A to be sent to the modem. The modem can send a BSR to the wireless access network device 200 on the PUSCH, wherein the BSR may include information such as the amount of data of the data packet A to be sent, and is used to notify the wireless access network device 200 how much uplink data on the electronic device 100 needs to be sent. The wireless access network device 200 can schedule the PUSCH according to the BSR, and allocate uplink resources to the electronic device 100 by sending UL Grant2. Among them, steps S411 and S412 can be performed until all uplink data on the electronic device 100 (all data in the data packet A to be sent) are sent, and the electronic device 100 reports the BSR to notify the wireless access network device 200 that there is no uplink data to be sent on the electronic device 100, and the wireless access network device 200 stops scheduling the PUSCH.
[0067] S414-S415, the electronic device 100 detects the user's operation of ending the video call, for example, the user clicks on an operation of ending the video call control on a certain application, and the electronic device 100 can turn off the camera and stop capturing video frames.
[0068] The embodiment of the present application provides a method for pre-application of uplink resources. The electronic device can predict the encoding time, data volume and other information of the data packet to be sent in the application (APP), determine the encoding completion time of the data packet to be sent, and then, the electronic device can send an uplink scheduling request to the wireless access network device before the encoding completion time of the above-mentioned data packet to be sent arrives, and apply for uplink resources for the data packet to be sent in advance, that is, pre-application of uplink resources. In this way, when the encoding completion time of the above-mentioned data packet to be sent arrives, the electronic device can use the uplink resources that have been applied for to send the above-mentioned data packet to be sent to the wireless access network device. In this way, compared with uplink pre-scheduling or semi-static scheduling, the delay of the electronic device in sending uplink data can be reduced, while saving the power consumption of the electronic device, and the application scenario is more flexible. In addition, this method does not change the uplink scheduling process in the existing third generation partnership project (3rd generation partnership project, 3GPP), is easy to implement, and has low development cost.
[0069] It should be noted that the embodiment of the present application only introduces the method of pre-application of uplink resources in detail using the application scenario of video calls as an example. It is not limited to the application scenario of video calls. Other application scenarios (such as audio calls, cloud games, industrial sensor data acquisition and transmission, etc.) are also applicable to the method of pre-application of uplink resources provided in the embodiment of the present application, and are not limited here.
[0070] Figure 6A-6CThe delay benefit of sending uplink data after pre-application of uplink resources in different situations provided by the embodiments of the present application is exemplified. The following is a detailed description:
[0071] Under the condition that the wireless access network device 200 turns off pre-scheduling, assuming that the SR0 sending time is t_SR0, the SR1 sending time is t_SR1 (i.e., the time t2 when the timer expires in the above text), the SR2 sending time is t_SR2 (i.e., the first SR sending time after the encoding of the data packet A to be sent is completed at time t1), the predicted information (including the encoding time M of the data packet A to be sent, the encoding completion time t1, the data volume, the data type and other information) arrives at t_prepacket, the UL GrantⅠ arrives at t_ulgrantⅠ, and the UL GrantⅡ arrives at t_ulgrantⅡ, then, the SR period can be T_SR=t_SR1-t_SR0=t_SR2-t_SR1=t_ulgrantⅡ-t_ulgrantⅠ.
[0072] In the embodiment of the present application, the preset time t' is explained by taking t'=t_ulgrantI-t_SR1+T_SR / 2 as an example, wherein the method for determining the preset time t' (also referred to as the first time) will be described in detail in the subsequent content and will not be expanded here.
[0073] Case 1: The arrival time t1_packet of the data packet A to be sent (the encoding completion time t1 of the data packet A to be sent) is between the SR1 sending time t_SR1 and the UL Grant I arrival time t_ulgrant I.
[0074] Fig. 6A The example shows the delay benefit of sending uplink data after uplink resource pre-application in case 1.
[0075] like Fig. 6AAs shown, if the technical solution in the embodiment of the present application is adopted (pre-application for uplink resources is performed before the arrival time of the above-mentioned data packet A to be sent), that is, the application for uplink resources is started at the time t_SR1, then the electronic device 100 can start sending the above-mentioned data packet A to be sent to the wireless access network device 200 at the time t_ulgrantⅠ. Since the electronic device 100 has uplink data to be sent (the above-mentioned data packet A to be sent) at the time t_ulgrantⅠ, it is not necessary to use the padding data packet to process the uplink resources allocated by the wireless access network device 200. If the baseline solution is adopted (no pre-application for uplink resources is performed before the arrival time of the above-mentioned data packet A to be sent), since the arrival time t1_packet of the data packet A to be sent is later than the SR1 sending time t_SR1, the electronic device 100 can only wait for the arrival of SR2 in the next cycle, that is, it can only wait until the SR2 sending time t_SR2, before starting to apply for uplink resources, then the electronic device 100 can only start sending the above-mentioned data packet A to be sent to the wireless access network device 200 at the time t_ulgrantⅡ.
[0076] from Fig. 6A It can be seen that by adopting the technical solution in the embodiment of the present application, relative to the baseline solution, the delay benefit ΔT=T_SR=t_ulgrantⅡ-t_ulgrantⅠ.
[0077] In the embodiment of the present application, the padding data packet waste rate may be a ratio of the padding data packet filling duration to the SR period T_SR.
[0078] from Fig. 6A It can be seen that in case 1, no padding data packet filling is required, that is, the padding data packet filling duration is 0, so the padding data packet waste rate in case 1 is 0.
[0079] Case 2: the arrival time t2_packet of the data packet A to be sent (the encoding completion time t1 of the data packet A to be sent) is between the arrival time t_ulgrantI of UL Grant I and the preset time t'.
[0080] Figure 6B The example shows the delay benefit of sending uplink data after uplink resource pre-application in case 2.
[0081] like Figure 6BAs shown, if the technical solution in the embodiment of the present application is adopted (pre-application for uplink resources is performed before the arrival time of the above-mentioned data packet A to be sent), the application for uplink resources starts at time t_SR1. Since the data packet A to be sent has not arrived at time t_ulgrantⅠ, the electronic device 100 can report a BSR to the wireless access network device 200, wherein the BSR carries the predicted data volume information of the data packet A to be sent, and the wireless access network 200 can allocate corresponding uplink resources to the electronic device 100 according to the data volume information carried in the BSR. If the data packet A to be sent has not arrived at this time, the electronic device 100 needs to use the padding data packet to process the uplink resources allocated by the wireless access network 200. At the same time, the electronic device 100 can continue to report the BSR to the wireless access network device 200 until the arrival time t2_packet of the data packet A to be sent. The electronic device 100 starts to send the data packet A to be sent to the wireless access network device 200. That is to say, before the data packet A to be sent arrives, the uplink resources obtained by the electronic device 100 by reporting the BSR to the wireless access network device 200 need to be processed by the padding data packet.
[0082] If the baseline solution is adopted (no pre-application for uplink resources is performed before the arrival of the above-mentioned data packet A to be sent), since the arrival time t2_packet of the above-mentioned data packet A to be sent is later than the SR1 sending time t_SR1, the electronic device 100 can only wait for the arrival of SR2 in the next cycle, that is, it can only wait until the SR2 sending time t_SR2 to start applying for uplink resources. Then, the electronic device 100 can only start sending the above-mentioned data packet A to be sent to the wireless access network device 200 at the time t_ulgrantⅡ.
[0083] from Figure 6B It can be seen that, by adopting the technical solution in the embodiment of the present application, relative to the baseline solution, the delay benefit ΔT=T_SR-T_padding, where T_padding is the padding packet filling duration, T_padding=t2_packet-t_ulgrantⅠ. The padding packet waste rate in case 2 is T_padding / T_SR. Since T_padding is greater than 0 and T_SR is greater than 0, the padding packet waste rate in case 2 is greater than 0.
[0084] Case 3: the arrival time t3_packet of the data packet A to be sent (the encoding completion time t1 of the data packet A to be sent) is between the preset time t′ and the SR2 sending time t_SR2.
[0085] like Figure 6CAs shown, if the technical solution in the embodiment of the present application is adopted (pre-application for uplink resources is performed before the arrival time of the above-mentioned data packet A to be sent), the application for uplink resources starts at time t_SR1. Since the data packet A to be sent has not arrived at time t_ulgrantⅠ, the electronic device 100 can report a BSR to the wireless access network device 200, wherein the BSR carries the predicted data volume information of the data packet A to be sent, and the wireless access network 200 can allocate corresponding uplink resources to the electronic device 100 according to the data volume information carried in the BSR. If the data packet A to be sent has not arrived at this time, the electronic device 100 needs to use the padding data packet to process the uplink resources allocated by the wireless access network 200. At the same time, the electronic device 100 can continue to report the BSR to the wireless access network device 200 until the arrival time t3_packet of the data packet A to be sent. The electronic device 100 starts to send the data packet A to be sent to the wireless access network device 200. That is to say, before the data packet A to be sent arrives, the uplink resources obtained by the electronic device 100 by reporting the BSR to the wireless access network device 200 need to be processed by the padding data packet.
[0086] If the baseline solution is adopted (no pre-application for uplink resources is performed before the arrival of the above-mentioned data packet A to be sent), since the arrival time t3_packet of the above-mentioned data packet A to be sent is later than the SR1 sending time t_SR1, the electronic device 100 can only wait for the arrival of SR2 in the next cycle, that is, it can only wait until the SR2 sending time t_SR2 to start applying for uplink resources. Then, the electronic device 100 can only start sending the above-mentioned data packet A to be sent to the wireless access network device 200 at the time t_ulgrantⅡ.
[0087] from Figure 6C It can be seen that, by adopting the technical solution in the embodiment of the present application, relative to the baseline solution, the delay benefit is T_SR-T'_padding, where T'_padding is the padding packet filling duration, T'_padding = t3_packet-t_ulgrantⅠ. The padding packet waste rate in case 3 is T'_padding / T_SR. Since T'_padding is greater than 0 and greater than the above T_padding, T_SR is greater than 0. Therefore, the padding packet waste rate in case 3 is greater than 0 and greater than the padding packet waste rate in case 2.
[0088] from Figure 6A-6C It is easy to see that there is a delay benefit only when the interval between the arrival time of the predicted information and the arrival time of the data packet A to be sent is greater than the SR period, otherwise there is no delay benefit.
[0089]
[0090] Table 1
[0091] from Figure 6A-6C Combined with Table 1, the delay benefit of case 1 is the largest, and no padding data packet filling is required, that is, the padding data packet waste rate is 0; the delay benefit of case 2 is smaller than that of case 1, and padding data packets are required, that is, the padding data packet waste rate is greater than 0, which is higher than that of case 1; the delay benefit of case 3 is the smallest, and padding data packets are required, and the padding data packet filling time T'_padding is greater than the padding data packet filling time T_padding in case 2, that is, the padding data packet waste rate is higher than the padding data packet waste rate in case 2.
[0092] In order to comprehensively consider the delay benefit and padding packet waste, Figure 7 As shown, an embodiment of the present application provides another method for pre-application of uplink resources, which can determine whether to pre-application of uplink resources based on the encoding completion moment of the data packet A to be sent. For example, if the encoding completion moment t1 of the above-mentioned data packet A to be sent is earlier than the above-mentioned preset moment t', uplink resource pre-application is performed; if the encoding completion moment t1 of the above-mentioned data packet A to be sent is later than the above-mentioned preset moment t', uplink resource pre-application is not performed. In this way, while reducing the uplink data transmission delay, the waste of padding data packets can be reduced, thereby saving the power consumption of electronic equipment.
[0093] The method for determining the preset time t' in the embodiment of the present application is as follows: Fig. 6A In case 1, the delay benefit is the largest and no padding packet waste is generated. Figure 6B Case 2 and Figure 6C In case 3 shown in the figure, the delay benefit is reduced and padding packets are wasted. It is easy to understand that the delay benefit in case 1 is equal to the sum of the delay benefit in case 2 or case 3 and the padding packet filling time. That is to say, if the delay benefit is reduced, the padding packet filling time will increase. Therefore, in order to comprehensively consider the delay benefit and padding packet waste, Fig. 6A In the case 1 shown, half of the delay benefit T_SR / 2 is the critical point, and the corresponding preset time t' is t'=t_ulgrantI-t_SR1+T_SR / 2.
[0094] It can be understood that, in the embodiment of the present application, only the preset time t'=t_ulgrantI-t_SR1+T_SR / 2 is taken as an example, and the determination of the preset time t' can also be adaptively adjusted according to different application scenarios or different requirements, which is not limited here.
[0095] Figure 7 This is a specific process of another uplink resource pre-application method provided in an embodiment of the present application.
[0096] Application scenario: video call.
[0097] like Figure 7 As shown, the method can be applied to a communication system including an electronic device 100 and a wireless access network device 200. The specific steps of the method are described in detail below:
[0098] S701-S702, the electronic device 100 detects an operation by a user to start a video call, such as a user clicking on a video call control on an application, and the electronic device 100 may turn on the camera to capture video frames.
[0099] S703, the electronic device 100 can start predicting the encoding time M and data volume of the data packet A to be sent at time t0 (the encoding start time of the data packet A to be sent), and determine the encoding completion time t1 of the data packet A to be sent according to the encoding time M.
[0100] The specific execution process of steps S701-S703 can refer to the aforementioned Figure 4 The relevant contents in steps S401-S403 in the illustrated embodiment are not repeated here.
[0101] S704: The electronic device 100 determines, based on the predicted encoding completion time t1 of the data packet A to be sent, that the encoding completion time t1 of the data packet A to be sent is earlier than the preset time t′.
[0102] Specifically, the electronic device 100 can determine whether the encoding completion time t1 of the above-mentioned data packet A to be sent is earlier than the preset time t' according to the predicted encoding completion time t1 of the above-mentioned data packet A to be sent. If so, the electronic device 100 can continue to perform step S705 and subsequent steps, and at time t2, the electronic device 100 sends SR to the wireless access network device 200, that is, pre-apply for uplink resources; if not, the electronic device 100 can no longer continue to perform step S705 and subsequent steps, or the electronic device 100 can continue to perform steps S705 to S708, but at time t2, the electronic device 100 does not send SR to the wireless access network device 200, that is, does not pre-apply for uplink resources.
[0103] For example, Figure 6C As shown, the encoding completion time of the above-mentioned data packet A to be sent is t1 (i.e., Figure 6C If the arrival time t3_packet of the data packet A to be sent is later than the preset time t', the electronic device 100 can only wait until the SR2 sending time t_SR2 to start applying for uplink resources without pre-applying for uplink resources, thereby reducing the waste of padding data packets.
[0104] The preset time t' can be adaptively adjusted according to different application scenarios or different requirements, which is not limited in the embodiment of the present application.
[0105] S705. The electronic device 100 sends information such as the encoding time M, encoding completion time t1, data volume, and data type of the data packet A to be sent to the application interface layer.
[0106] S706-S707, after receiving the encoding time M, encoding completion time t1, data volume, data type and other information of the data packet A to be sent, the application interface layer generates an AT command (attention command) according to the above information. Then, the application interface layer sends the AT command to the modem. The AT command is an interface control command for communication between the application and the modem, and can carry the encoding time M, encoding completion time t1, data volume, data type, protocol data unit (PDU) session ID, quality of service (QoS) flow ID and other information of the data packet A to be sent.
[0107] S708. After receiving the above AT command, the modem counts the data volume of the to-be-sent data packet A carried in the above AT command into the corresponding logical channel, and starts the timer at the same time. When the timer expires at time t2, the SR arriving in the next scheduling period is triggered to pre-apply for uplink resources.
[0108] The specific execution process of steps S705-S708 can refer to the aforementioned Figure 4 The relevant contents in steps S404-S407 in the illustrated embodiment will not be repeated here.
[0109] S709 , the electronic device 100 may send an SR request to the wireless access network device 200 at time t2 , so as to inform the wireless access network device 200 that the electronic device 100 has uplink data to be sent.
[0110] Specifically, the time t2 can be the aforementioned Figure 6A-6CBefore the encoding completion time t1 of the data packet A to be sent arrives, the modem can send SR1, i.e., an uplink scheduling request, to the wireless access network device 200 at the SR1 sending time T_SR1 to pre-apply for uplink resources, so as to notify the wireless access network device 200 that there is uplink data to be sent on the electronic device 100.
[0111] S710. After receiving the above SR request, the wireless access network device 200 can schedule PUSCH for the electronic device 100 according to the network resource situation, and allocate a small amount of uplink resources to the electronic device 100 by sending UL Grant1, which can be used for the electronic device 100 to send the BSR in step S712 to the wireless access network device 200.
[0112] Specifically, in Fig. 6A In the case shown, the arrival time t1_packet of the data packet A to be sent (i.e., the encoding completion time t1 of the data packet A to be sent) is earlier than the arrival time t_ulgrantⅠ of UL GrantⅠ (i.e., UL Grant1 described in step S710). That is to say, before the wireless access network 200 schedules PUSCH for the electronic device 100 and allocates a small amount of uplink resources to the electronic device 100 by sending UL Grant1, the data packet A to be sent has arrived at the modem. Therefore, the electronic device 100 can use the small amount of uplink resources allocated by the wireless access network device 200 to send the BSR in step S712.
[0113] Optionally, in Figure 6B In the case shown, the arrival time t2_packet of the data packet A to be sent (i.e., the encoding completion time t1 of the data packet A to be sent) is later than the arrival time t_ulgrantⅠ of UL GrantⅠ (i.e., UL Grant1 described in step S810), that is, after the wireless access network 200 schedules PUSCH for the electronic device 100 and allocates a small amount of uplink resources to the electronic device 100 by sending UL Grant1, the data packet A to be sent arrives at the modem. Then, between the time t_ulgrantⅠ and the time t2_packet, the electronic device 100 can use the padding data packet to process the small amount of uplink resources allocated by the wireless access network device 200. At the time t2_packet, the electronic device 100 starts to send the BSR in step S712 again.
[0114] S711-S714, at the time t1 when the encoding of the data packet to be sent is completed, the application in the electronic device 100 can send the data packet to be sent to the modem. The modem can send a BSR to the wireless access network device 200 on the PUSCH, wherein the BSR may include information such as the amount of data of the above-mentioned data packet to be sent, and is used to notify the wireless access network device 200 how much uplink data on the electronic device 100 needs to be sent. The wireless access network device 200 can schedule the PUSCH according to the BSR, and allocate uplink resources to the electronic device 100 by sending UL Grant2. Among them, steps S712 and S713 can be performed until all uplink data on the electronic device 100 (all data in the data packet A to be sent) are sent, and the electronic device 100 reports the BSR to notify the wireless access network device 200 that there is no uplink data to be sent on the electronic device 100, and the wireless access network device 200 stops scheduling the PUSCH.
[0115] S715-S716, the electronic device 100 detects the user's operation of ending the video call, for example, the user clicks on an operation of ending the video call control on an application, and the electronic device 100 can turn off the camera and stop capturing video frames.
[0116] The embodiment of the present application provides a method for pre-application of uplink resources. The electronic device can predict the encoding time, data volume and other information of the data packet to be sent in the application (APP), determine the encoding completion time of the data packet to be sent, and then the electronic device can determine whether the encoding completion time of the above-mentioned data packet to be sent is earlier than the preset time. If so, the electronic device can send an uplink scheduling request to the wireless access network device before the predicted encoding completion time of the above-mentioned data packet to be sent arrives, and apply for uplink resources for the data packet to be sent in advance, that is, pre-application of uplink resources. In this way, when the encoding completion time of the above-mentioned data packet to be sent arrives, the electronic device can use the uplink resources that have been applied for to send the above-mentioned data packet to be sent to the wireless access network device. In this way, while reducing the uplink data transmission delay of the electronic device, the waste of padding data packets can be reduced, thereby saving the power consumption of the electronic device.
[0117] It should be noted that the embodiment of the present application only introduces the method of pre-application of uplink resources in detail using the application scenario of video calls as an example. It is not limited to the application scenario of video calls. Other application scenarios (such as audio calls, cloud games, industrial sensor data acquisition and transmission, etc.) are also applicable to the method of pre-application of uplink resources provided in the embodiment of the present application, and are not limited here.
[0118] Table 2 shows the delay benefits of the baseline solution (no uplink resource pre-application), solution 1 in the embodiment of the present application (uplink resource pre-application, no consideration of padding packet waste), and solution 2 in the embodiment of the present application (uplink resource pre-application, consideration of padding packet waste). Among them, the time deviation Δt of the arrival of the data packet to be sent can be the delay benefits of the baseline solution (no uplink resource pre-application, no consideration of padding packet waste) in the embodiment of the present application. Figure 6B The arrival time of the data packet A to be sent in the text description is t2_packet (or the previous text about Figure 6C The time difference between the arrival time t3_packet of the data packet A to be sent and the arrival time t_ulgrantⅠ of UL GrantⅠ in the text description.
[0119] In the embodiment of the present application, it is assumed that the SR period T_SR is configured to be 80ms. Referring to Table 2, the time deviation Δt of the arrival of the data packet to be sent is in the range of 1ms to 39ms, indicating that the encoding completion time t1 of the data packet to be sent is earlier than the aforementioned preset time t' (for example Figure 6B The time deviation Δt of the arrival of the data packet to be sent is in the range of 41ms to 79ms, indicating that the encoding completion time t1 of the data packet to be sent is later than the aforementioned preset time t' (for example Figure 6C The situation shown in 3).
[0120] When the wireless access network device 200 turns off pre-scheduling and the transmitting end and the receiving end are in the same cellular cell, in the embodiment of the present application, it is assumed that the total time T_BSR for BSR application and transmission of the data packet to be transmitted is 5ms. As shown in Table 2, the following is a detailed description of the baseline delay, the delay of Scheme 1 in the embodiment of the present application, and the delay of Scheme 2 in the embodiment of the present application:
[0121] 1. Baseline solution (no uplink resource pre-application):
[0122] Taking the time deviation Δt=1ms of the arrival of the data packet to be sent as an example, the baseline delay ΔT0=T_SR-Δt+T_BSR=80ms-1ms+5ms=84ms. As can be seen from Table 2, the baseline delay ΔT0 is different when the time deviation Δt of the arrival of the data packet to be sent is different. In general, the total average delay of the baseline solution is 45ms.
[0123] 2. Solution 1 in the embodiment of the present application (pre-application for uplink resources without considering the waste of padding data packets):
[0124] If the waste of padding packets is not considered, the delay ΔT1 of scheme 1 in the embodiment of the present application is T_BSR=5ms, that is, when the time deviation Δt of the arrival of the data packet to be sent is in the range of 1ms to 79ms, no matter the encoding completion time t1 of the data packet to be sent is earlier than the preset time t' or later than the preset time t', uplink resource pre-application is performed, therefore, the delay ΔT1 does not change with the change of the time deviation Δt of the arrival of the data packet to be sent, and is 5ms. Overall, compared with the baseline scheme, the total average delay benefit of scheme 1 in the embodiment of the present application is 40ms.
[0125] 3. Solution 2 in the embodiment of the present application (determining whether to pre-apply for uplink resources, considering the waste of padding data packets):
[0126] If the waste of padding packets is considered, then, when the time deviation Δt of the arrival of the data packet to be sent is in the range of 1ms to 39ms, that is, the encoding completion time t1 of the data packet to be sent is earlier than the aforementioned preset time t' (such as Figure 6B In the case 2 shown in the figure, uplink resource pre-application is performed. The delay ΔT2=T_BSR=5ms in the scheme 2 of the present application embodiment does not change with the change of the time deviation Δt of the arrival of the data packet to be sent, and is 5ms. When the time deviation Δt of the arrival of the data packet to be sent is within the range of 41ms to 79ms, that is, the encoding completion time t1 of the data packet to be sent is later than the aforementioned preset time t' (such as Figure 6C In case 3), no uplink resource pre-application is performed (i.e., the baseline solution is adopted), then the delay of solution 2 in the embodiment of the present application is ΔT2=T_SR-Δt+T_BSR, which is the same as the delay of the baseline solution. Overall, compared with the baseline solution, the total average delay benefit of solution 2 in the embodiment of the present application is 30ms.
[0127] From the above analysis results, compared with the baseline solution, both Scheme 1 and Scheme 2 in the embodiments of the present application reduce the transmission delay of the data packets to be sent. Among them, the delay benefit of Scheme 1 in the embodiments of the present application is relatively large, but it may increase the waste of padding data packets. The delay benefit of Scheme 2 in the embodiments of the present application is reduced relative to Scheme 1, but it will reduce the waste of padding data packets. Therefore, Scheme 1 and Scheme 2 in the embodiments of the present application can be selected according to different needs. For example, if the delay requirement is high, Scheme 1 in the embodiments of the present application can be selected. If the delay and padding data packet waste are comprehensively considered, Scheme 2 in the embodiments of the present application can be selected.
[0128] It should be noted that the specific numerical settings in Table 2 are merely exemplary and should not constitute a limitation to the present application.
[0129]
[0130]
[0131] Table 2
[0132] Figure 8 The structure of an electronic device 100 provided in an embodiment of the present application is exemplarily shown.
[0133] like Figure 8 As shown, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0134] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0135] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0136] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0137] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0138] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0139] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0140] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0141] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0142] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0143] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0144] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0145] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0146] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0147] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device 100 through the power management module 141.
[0148] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0149] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0150] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0151] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0152] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0153] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0154] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0155] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0156] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0157] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0158] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0159] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0160] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0161] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0162] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0163] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0164] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0165] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0166] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0167] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0168] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0169] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0170] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0171] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0172] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0173] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0174] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0175] It should be understood that Figure 8 The electronic device 100 shown is only an example, and the electronic device 100 may have more Figure 8 More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components. Figure 8 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0176] Fig. 9 The structure of another electronic device provided by an embodiment of the present application is exemplified.
[0177] like Fig. 9 As shown, the electronic device 100 may include: an application layer 901 , an application interface layer 902 , and a modem 903 .
[0178] The application layer 901 may include a series of applications, wherein the application (also referred to as application) may include camera, gallery, call, video, music, Bluetooth, short message, calendar, navigation, map, etc. In the methods of various embodiments of the present application, the application in the application layer 901 may provide an audio and video encoding function. For example, the WeChat application may provide a video call function, may capture video frames, and encode the captured video frames to generate data packets to be sent.
[0179] The application interface layer 902 may provide a standard interface for the application layer 901, which may be used for communication between the application layer 901 and the modem 903. For example, in the methods of the embodiments of the present application, the application interface layer 902 may provide a first interface, which may be used for the application layer 901 to transmit information such as the encoding time M of the data packet A to be sent as described in the previous embodiments to the application interface layer 902. For another example, in the methods of the embodiments of the present application, the application interface layer 902 may also provide a second interface, which may be used for the application interface layer 902 to transmit the generated AT command to the modem 903.
[0180] The modem 903 may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. In the method of each embodiment of the present application, the modem 903 can receive an AT command through the second interface provided by the application interface layer 902, and then start the timer, and send an uplink scheduling request to the network device to pre-apply for uplink resources when the timer expires. The modem 903 can also use the uplink resources allocated by the network device to send the data packet to be sent generated by the application 901.
[0181] Fig.10 The structure of another electronic device provided by an embodiment of the present application is exemplified.
[0182] like Fig.10 As shown, the electronic device 100 may include: a processor 1001, a receiver 1002, a transmitter 1003, a memory 1004 and a bus 1005. The processor 1001 includes one or more processing cores, and the processor 1001 executes various functional applications and information processing by running software programs and modules. The receiver 1002 and the transmitter 1003 can be implemented as a communication component, which can be a baseband chip. The memory 1004 is connected to the processor 1001 via the bus 1005. The memory 1004 can be used to store at least one program instruction, and the processor 1001 is used to execute at least one program instruction to implement the technical solution of the above embodiment. Its implementation principle and technical effect are similar to those of the above method related embodiments, and will not be repeated here.
[0183] In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0184] In the embodiments of the present application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SS), or a volatile memory (volatile memory), such as a random-access memory (RAM). The memory is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0185] The memory in the embodiment of the present application can also be a circuit or any other device capable of realizing a storage function, for storing program instructions and / or data. In the methods provided in the embodiments of the present application, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (DWD), or a semiconductor medium (e.g., an SSD), etc.
[0186] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A communication method, characterized in that: The method comprises: The electronic device encodes the data to be sent to generate a data packet to be sent; At the encoding start time t0 of the data packet to be sent, the electronic device predicts the encoding time M of the data packet to be sent, and determines the encoding completion time t1 of the data packet to be sent according to the encoding time M of the data packet to be sent; The electronic device starts a timer, the expiration time t2 of the timer is earlier than the encoding completion time t1 of the data packet to be sent, and the time interval from the expiration time t2 of the timer to the first scheduling request SR sending time after the encoding completion time t1 of the data packet to be sent is one SR cycle; At the expiration time t2 of the timer, the electronic device sends an SR to the network device; The electronic device receives uplink grant information UL Grant sent by the network device; At time t1 when the encoding of the data packet to be sent is completed, the electronic device sends the data packet to be sent using the uplink resources indicated by the UL Grant.
2. The method according to claim 1, characterized in that The expiration time t2 of the timer is equal to the start time t3 of the timer plus the duration T of the timer, and the duration T of the timer is equal to the duration from the start time t3 of the timer to the encoding completion time t1 of the data packet to be sent minus the time interval M3; Among them, the encoding completion time t1 of the data packet to be sent is equal to the encoding start time t0 of the data packet to be sent plus the encoding time M of the data packet to be sent; the time interval M3 is equal to the time interval M1 plus the time interval M2, the time interval M1 is the time interval from the expiration time t2 of the timer until the electronic device receives the uplink authorization information UL Grant, and the time interval M2 is the time interval from the moment when the electronic device receives the uplink authorization information UL Grant to the encoding completion time t1 of the data packet to be sent.
3. The method according to claim 2, characterized in that The time interval M1 is determined by the electronic device according to a first network configuration parameter, wherein the first network configuration parameter is acquired by the electronic device when accessing the network device.
4. The method according to claim 2 or 3, characterized in that: The time interval M2 is determined by the electronic device according to a second network configuration parameter, wherein the second network configuration parameter is acquired by the electronic device when accessing the network device.
5. The method according to any one of claims 1 to 3, characterized in that: The electronic device comprises: an application layer, an application interface layer and a modem, wherein the application interface layer is used for communication between the application layer and the modem; the application interface layer provides a first interface; the first interface is used for the application layer to transmit to the application interface layer the encoding completion time t1 of the data packet to be sent.
6. The method according to claim 4, characterized in that The electronic device comprises: an application layer, an application interface layer and a modem, wherein the application interface layer is used for communication between the application layer and the modem; the application interface layer provides a first interface; the first interface is used for the application layer to transmit to the application interface layer the encoding completion time t1 of the data packet to be sent.
7. The method according to any one of claims 1 to 3, characterized in that: The electronic device includes: an application layer, an application interface layer and a modem, wherein the application interface layer is used for communication between the application layer and the modem; the application interface layer provides a second interface; the application interface layer is used to generate an AT command, the AT command carries the encoding completion time t1 of the data packet to be sent, and the AT command is used to instruct the modem to start the timer; the second interface is used for the application interface layer to transmit the AT command to the modem.
8. The method according to claim 4, characterized in that The electronic device includes: an application layer, an application interface layer and a modem, wherein the application interface layer is used for communication between the application layer and the modem; the application interface layer provides a second interface; the application interface layer is used to generate an AT command, the AT command carries the encoding completion time t1 of the data packet to be sent, and the AT command is used to instruct the modem to start the timer; the second interface is used for the application interface layer to transmit the AT command to the modem.
9. The method according to claim 5, characterized in that The electronic device includes: an application layer, an application interface layer and a modem, wherein the application interface layer is used for communication between the application layer and the modem; the application interface layer provides a second interface; the application interface layer is used to generate an AT command, the AT command carries the encoding completion time t1 of the data packet to be sent, and the AT command is used to instruct the modem to start the timer; the second interface is used for the application interface layer to transmit the AT command to the modem.
10. The method according to claim 6, characterized in that The electronic device includes: an application layer, an application interface layer and a modem, wherein the application interface layer is used for communication between the application layer and the modem; the application interface layer provides a second interface; the application interface layer is used to generate an AT command, the AT command carries the encoding completion time t1 of the data packet to be sent, and the AT command is used to instruct the modem to start the timer; the second interface is used for the application interface layer to transmit the AT command to the modem.
11. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: The step of sending the SR to the network device by the electronic device at the time t2 when the timer expires is performed under the following conditions: The encoding completion time t1 of the data packet to be sent is earlier than the first time, and the first time is equal to the expiration time t2 of the timer plus the time interval M1 and 1 / 2 SR cycle, wherein the time interval M1 is the time interval from the expiration time t2 of the timer until the electronic device receives the uplink authorization information UL Grant.
12. The method according to claim 4, characterized in that The method further comprises: The step of sending the SR to the network device by the electronic device at the time t2 when the timer expires is performed under the following conditions: The encoding completion time t1 of the data packet to be sent is earlier than the first time, and the first time is equal to the expiration time t2 of the timer plus the time interval M1 and 1 / 2 SR cycle, wherein the time interval M1 is the time interval from the expiration time t2 of the timer until the electronic device receives the uplink authorization information UL Grant.
13. The method according to claim 5, characterized in that The method further comprises: The step of sending the SR to the network device by the electronic device at the time t2 when the timer expires is performed under the following conditions: The encoding completion time t1 of the data packet to be sent is earlier than the first time, and the first time is equal to the expiration time t2 of the timer plus the time interval M1 and 1 / 2 SR cycle, wherein the time interval M1 is the time interval from the expiration time t2 of the timer until the electronic device receives the uplink authorization information UL Grant.
14. The method according to any one of claims 6, 8-10, characterized in that: The method further comprises: The step of sending the SR to the network device by the electronic device at the time t2 when the timer expires is performed under the following conditions: The encoding completion time t1 of the data packet to be sent is earlier than the first time, and the first time is equal to the expiration time t2 of the timer plus the time interval M1 and 1 / 2 SR cycle, wherein the time interval M1 is the time interval from the expiration time t2 of the timer until the electronic device receives the uplink authorization information UL Grant.
15. The method according to claim 7, characterized in that The method further comprises: The step of sending the SR to the network device by the electronic device at the time t2 when the timer expires is performed under the following conditions: The encoding completion time t1 of the data packet to be sent is earlier than the first time, and the first time is equal to the expiration time t2 of the timer plus the time interval M1 and 1 / 2 SR cycle, wherein the time interval M1 is the time interval from the expiration time t2 of the timer until the electronic device receives the uplink authorization information UL Grant.
16. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: The data to be sent is image data collected by the electronic device.
17. The method according to claim 4, characterized in that The method further comprises: The data to be sent is image data collected by the electronic device.
18. The method according to claim 5, characterized in that The method further comprises: The data to be sent is image data collected by the electronic device.
19. The method according to any one of claims 6, 8-10, 12-13, 15, characterized in that: The method further comprises: The data to be sent is image data collected by the electronic device.
20. The method according to claim 7, characterized in that The method further comprises: The data to be sent is image data collected by the electronic device.
21. The method according to claim 11, characterized in that The method further comprises: The data to be sent is image data collected by the electronic device.
22. The method according to claim 14, characterized in that The method further comprises: The data to be sent is image data collected by the electronic device.
23. An electronic device, characterized in that: include: One or more processors, one or more memories; wherein the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method as described in any one of claims 1-22.
24. A computer storage medium, characterized in that The computer storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 22.
25. A chip, applied to an electronic device, the chip comprising one or more processors, the processors being used to call computer instructions so that the electronic device executes the method as claimed in any one of claims 1 to 22.
Citation Information
Cited By
Uplink resource pre-application method and related device
WO2022151878A1
