Resource scheduling method and electronic equipment

By enabling the thermal connection function in the electronic device, scheduling requests and heartbeat messages are periodically sent to network devices, the delay problem caused by waiting for scheduling request cycles in uplink data transmission is solved, and communication efficiency is improved.

CN119316951APending Publication Date: 2025-01-14HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310875974.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-14
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

When sending uplink data, electronic devices need to wait for the preconfigured scheduling request cycle, resulting in the scheduling delay of uplink air interface resources and affecting communication efficiency.

Method used

The electronic device enables the hot connection function, periodically sends scheduling requests to the network device, applies for uplink air interface resources in advance, and directly uses the allocated resources to send when receiving application data, and continuously requests by generating heartbeat messages and buffer status report information. resource.

Benefits of technology

Reduce resource scheduling delay, improve the efficiency of uplink data transmission, and ensure that uplink resources can be obtained in time for data transmission when needed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316951A_ABST
    Figure CN119316951A_ABST
Patent Text Reader

Abstract

The invention provides a resource scheduling method and electronic equipment. In the method, the electronic equipment receives a hot connection request sent by a target application, or starts a hot connection function when detecting that the target application is started. The hot connection function is used for instructing the electronic equipment to periodically send a scheduling request to the network equipment, the scheduling request is used for requesting the network equipment to allocate uplink air interface resources, and the scheduling request comprises a first scheduling request. The electronic equipment receives first uplink scheduling configuration information sent by the network equipment based on the first scheduling request, and the electronic equipment receives first application data of the target application and sends the first application data to the network equipment according to the first uplink scheduling configuration information. Through the scheme, the electronic equipment can periodically apply for the uplink air interface resource from the network equipment for multiple times, and when the electronic equipment receives the application data, the application data can be directly sent by using the uplink air interface resource requested in advance, so that the time delay generated by resource scheduling is reduced, and the communication efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a resource scheduling method and electronic equipment. Background Art

[0002] According to the 3rd Generation Partnership Project (3GPP) regulations, electronic devices need to apply for uplink air interface resources from network devices before sending uplink data to network devices.

[0003] When receiving application data, the electronic device may send an SR to the network device within a preconfigured scheduling request (SR) period to apply for air interface resources for sending uplink data to the network device. After receiving the SR, the network device allocates appropriate air interface resources to the electronic device during the uplink scheduling period, and indicates the allocated uplink resources to the electronic device through the uplink scheduling configuration information. After receiving the uplink scheduling configuration information, the electronic device sends uplink data to the network device according to the uplink scheduling configuration information. If there is still remaining data that has not been sent, the electronic device may send a buffer status report (BSR) information to the network device when sending the uplink data, and the network device may reallocate uplink resources to the electronic device during the uplink scheduling period based on the BSR information.

[0004] In the above scheme, when an electronic device has data to send, it cannot send the data immediately, but needs to wait for the SR cycle. After the SR cycle arrives, it sends an SR to the network device to apply for uplink resources, which causes a delay in uplink air interface resource scheduling and affects communication efficiency. Summary of the invention

[0005] The present application provides a resource scheduling method and an electronic device, which are used to improve the efficiency of uplink data transmission.

[0006] In the first aspect, the present application provides a resource scheduling method, which can be executed by an electronic device. The method includes: the electronic device receives a hot connection request sent by a target application, or detects that the target application is started; the electronic device turns on the hot connection function, and the hot connection function is used to instruct the electronic device to periodically send a scheduling request to a network device, and the scheduling request is used to request the network device to allocate uplink air interface resources, and the scheduling request includes a first scheduling request; the electronic device receives the first uplink scheduling configuration information sent by the network device based on the first scheduling request; the electronic device receives the first application data of the target application, and sends the first application data to the network device according to the first uplink scheduling configuration information.

[0007] In the above method, after turning on the hot connection function, the electronic device can periodically send scheduling requests to the network device, thereby continuously applying for uplink air interface resources from the network device for multiple times. When the electronic device receives application data, it can directly use the uplink air interface resources requested in advance to send it, thereby reducing the delay caused by resource scheduling and improving communication efficiency.

[0008] In one possible design, the hot connection function is turned on, and the hot connection function is used to instruct the electronic device to periodically send a scheduling request to the network device, including: generating a heartbeat message based on a preset heartbeat period, and sending a scheduling request to the network device after generating the heartbeat message.

[0009] Through this design, the electronic device can generate a heartbeat message based on a preset heartbeat period, thereby triggering the electronic device to send a scheduling request to the network device, so that the electronic device can periodically request the network device to allocate uplink air interface resources to maintain the activity of the uplink air interface resources corresponding to the electronic device.

[0010] Optionally, when the electronic device sends the first application data to the network device according to the first uplink scheduling configuration information, the electronic device may send the heartbeat message and the first application data on the uplink air interface resources indicated by the first uplink scheduling configuration information.

[0011] In one possible design, the heartbeat cycle is related to a scheduling cycle for allocating air interface resources by the network device.

[0012] Through this design, when the network device schedules air interface resources, the electronic device can apply for uplink resources from the network device, ensuring that when the electronic device has uplink data to send, it can send uplink data in time through the uplink resources applied in advance.

[0013] In one possible design, sending the first application data of the target application to the network device according to the first uplink scheduling configuration information includes: sending the first application data of the target application and buffer status report information BSR to the network device according to the first uplink scheduling configuration information, the BSR being used to indicate that there is still data to be sent in the buffer of the electronic device after sending the first application data; receiving second uplink scheduling configuration information sent by the network device based on the BSR; and sending the data to be sent in the buffer to the network device according to the second uplink scheduling configuration information.

[0014] Through this design, when there is still data to be sent in the buffer of an electronic device after sending uplink data once, the electronic device can send a BSR to the network device while sending the uplink data, so as to apply for uplink resources from the network device again, and send the data to be sent in the buffer based on the uplink resources re-scheduled by the network device, thereby completing the data transmission.

[0015] In one possible design, the electronic device includes a hot connection module and a modem module; generating a heartbeat message based on a preset heartbeat cycle, and sending a scheduling request to a network device after generating the heartbeat message, includes: generating a heartbeat message based on the preset heartbeat cycle by the hot connection module, and sending the heartbeat message to the modem module; after receiving the heartbeat message by the modem module, sending the scheduling request to the network device.

[0016] Through this design, a hot connection module can be loaded in an electronic device. The hot connection module can generate a heartbeat message based on a preset heartbeat period and send the heartbeat message to the modem module. After receiving the heartbeat message, the modem module can process the heartbeat message as uplink data to be sent, so that the modem module can send a scheduling request to the network device, so that the electronic device can obtain periodic uplink resources.

[0017] In one possible design, the scheduling request is a buffer status report information BSR; the hot connection function is turned on, and the hot connection function is used to instruct the electronic device to periodically send a scheduling request to the network device, including: sending a scheduling request SR to the network device; after receiving the uplink scheduling configuration information sent by the network device, periodically sending the BSR to the network device, and the amount of data in the BSR is a preset value.

[0018] With this design, after receiving the uplink scheduling configuration information of the network device, the electronic device can also send a BSR to the network device regardless of whether there is data to be sent in the buffer, and the amount of data in the BSR can be a preset value. The network device continues to schedule uplink resources for the electronic device according to the received BSR, so that when the electronic device receives application data, it can directly use the uplink resources scheduled by the network device to send it, thereby improving communication efficiency.

[0019] In one possible design, the electronic device includes a modem module, and the hot connection function is turned on, where the hot connection function is used to instruct the electronic device to periodically send a scheduling request to a network device, including: sending an SR to the network device through the modem module, and after receiving the uplink scheduling configuration information sent by the network device, periodically sending a BSR to the network device through the modem module.

[0020] Through this design, the improved modem module of the present application can send a scheduling request SR to the network device when the hot connection function is turned on, regardless of whether there is uplink data to be sent, and after receiving the uplink scheduling configuration information of the network device, it can send a BSR to the network device regardless of whether there is data to be sent in the buffer, thereby maintaining the activity of the uplink resources available to the electronic device.

[0021] In one possible design, the scheduling request also includes a second scheduling request; the method also includes: receiving third uplink scheduling configuration information sent by the network device based on the second scheduling request; receiving second application data of the target application, and sending the second application data to the network device according to the third uplink scheduling configuration information.

[0022] Through this design, when an electronic device receives new application data, it can transmit the application data in a timely manner through the allocated uplink resources, thereby improving communication efficiency.

[0023] In one possible design, after receiving a hot connection request sent by a target application or detecting that the target application is started and before enabling the hot connection function, the method further includes: determining whether to enable the hot connection function based on a network status and business characteristics of the target application.

[0024] In one possible design, determining to enable the hot connection function based on the network status and the service characteristics of the target application includes: determining that the electronic device is connected to the mobile network and that the target application has a network interaction service.

[0025] Through this design, when the electronic device is connected to a mobile network and the target application has network interaction services, it can determine that the electronic device is about to send uplink data. The electronic device can then turn on the hot connection function and request the network device to schedule uplink resources in advance, thereby reducing the delay in resource scheduling.

[0026] In one possible design, determining to enable the hot connection function based on the network status and the service characteristics of the target application also includes: determining that the network status and the service characteristics of the target application satisfy at least one of the following conditions: the signal strength of the mobile network received by the electronic device is greater than a first preset threshold; the network congestion jitter state of the mobile network meets a preset condition; the service of the target application is a continuous service flow; the service of the target application requires a network interaction delay that is less than a second preset threshold.

[0027] Through this design, when the electronic device determines that the signal strength received by the electronic device on the mobile network is greater than the first preset threshold or determines that the network congestion jitter state of the mobile network meets the preset conditions, it is determined that the network state of the electronic device can support the activation of the hot connection function, and then the hot connection function is activated to ensure that the electronic device can smoothly execute the hot connection function. Or when the electronic device determines that the service of the target application is a continuous service flow or the service requirement of the target application is less than the second preset threshold, it is determined that the network interaction service requirement of the target application is high, and the electronic device can activate the hot connection function to reduce the network interaction service delay.

[0028] In one possible design, the method further includes: determining that the network interaction service of the target application is terminated, and shutting down the hot connection function.

[0029] Through this design, the electronic device can turn off the hot connection function after determining that the network interaction service of the target application has ended, thereby preventing waste of resources.

[0030] In a second aspect, the present application provides an electronic device, the electronic device comprising a plurality of functional modules; the plurality of functional modules interact with each other to implement the method performed by the electronic device in the first aspect and its respective embodiments. The plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on specific implementation.

[0031] In a third aspect, the present application provides an electronic device comprising at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes the method executed by the electronic device in the above-mentioned first aspect and each embodiment thereof.

[0032] In a fourth aspect, the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method executed by the electronic device in any of the above aspects and each embodiment thereof.

[0033] In a fifth aspect, the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method executed by the electronic device in any of the above aspects and its various embodiments.

[0034] In a sixth aspect, the present application also provides a chip, which is used to read a computer program stored in a memory and execute the method executed by the electronic device in any of the above aspects and its various embodiments.

[0035] In a seventh aspect, the present application further provides a chip system, which includes a processor for supporting a computer device to implement the method executed by an electronic device in any of the above aspects and its various embodiments. In a possible design, the chip system also includes a memory, which is used to store the necessary programs and data of the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of a communication system provided in an embodiment of the present application;

[0037] Figure 2 is a schematic diagram of an uplink resource scheduling process;

[0038] Figure 3 A schematic diagram of a scenario to which the resource scheduling method provided in an embodiment of the present application is applicable;

[0039] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0040] Figure 5 A software structure block diagram of an electronic device provided in an embodiment of the present application;

[0041] Figure 6 A flowchart of a resource scheduling method provided in an embodiment of the present application;

[0042] Figure 7 A schematic diagram of the format of a heartbeat message provided in an embodiment of the present application;

[0043] Figure 8 A flowchart of a resource scheduling method provided in an embodiment of the present application;

[0044] Fig. 9 A flowchart of a resource scheduling method provided in an embodiment of the present application;

[0045] Fig.10 A schematic diagram of a setting interface provided in an embodiment of the present application;

[0046] Fig.11 A schematic diagram of a format of buffer status report information provided in an embodiment of the present application;

[0047] Fig.12 A flowchart of a resource scheduling method provided in an embodiment of the present application;

[0048] Fig.13 A flowchart of a resource scheduling method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of the present application, the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0050] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.

[0051] The technology provided in the embodiments of the present application can be applied to various communication systems. For example, the communication system can be a third generation (3G) communication system (e.g., evolved universal terrestrial radio access and NR dual connection (evolved universal terrestrial radio access, E-UTRA), universal mobile telecommunication system (UMTS)), fourth generation (4G) communication system (e.g., long term evolution (LTE) system), fifth generation (5G) communication system, worldwide interoperability for microwave access (WiMAX) or wireless local area network (WLAN) system, or a fusion system of multiple systems, or a future communication system, such as a sixth generation (6G) communication system. Among them, the 5G communication system can also be called a new radio (NR) system.

[0052] A network element in a communication system can send a signal to another network element or receive a signal from another network element. The signal may include information or data, etc. The network element may also be referred to as an entity, a network entity, a device, a communication device, a communication module, a node, a communication node, etc. The network element is used as an example to describe the embodiment of the present application. For example, a communication system may include at least one electronic device and at least one network device. The network element that sends the signal may be a network device, and the network element that receives the signal may be an electronic device; or, the network element that sends the signal may be an electronic device, and the network element that receives the signal may be a network device. In addition, it can be understood that if a plurality of electronic devices are included in the communication system, the plurality of electronic devices may also send signals to each other, that is, the network element that sends the signal and the network element that receives the signal may both be electronic devices.

[0053] See also Figure 1 A communication system 100 is illustrated. As an example, the communication system 100 includes a network device 110 and two electronic devices, namely, an electronic device 120 and an electronic device 130. At least one of the electronic devices 120 and 130 can send uplink data to the network device 110, and the network device 110 can receive the uplink data. The network device can send downlink data to at least one of the electronic devices 120 and 130.

[0054] Below Figure 1 The network equipment and electronic equipment involved are described in detail.

[0055] Network equipment can also be called access network equipment, access node (AN), radio access node (RAN). Network equipment can be connected to the core network (such as the core network of LTE or the core network of 5G), and the network equipment can provide wireless access services for terminal devices. Examples of some network devices include, but are not limited to, at least one of the following: a base station (BS), such as a macro base station, a micro base station, a pico base station, a small station, a relay station, or a balloon station, etc.; a next-generation node B (gNB) in 5G, a network device in an open radio access network (O-RAN), 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., home evolved node B, or home node B, HNB), a transmitting and receiving point (TRP), a transmitting point (TP), a base station subsequently evolved by 3GPP, an access node in a WiFi system, a wireless relay node, a wireless backhaul node and / or a mobile switching center, etc.; or, the network device may be a server, a relay station, an access point, a vehicle-mounted device, a wearable device, or a future evolved public land mobile network (public land Mobile network, PLMN) network equipment, etc.

[0056] In the embodiment of the present application, the communication device for realizing the function of the network device may be a network device, or a device having some functions of the network device, or a device capable of supporting the network device to realize the function. For example, a chip system, which may be installed in a network device. In the embodiment of the present application, the chip system may be composed of a chip, or may include a chip and other discrete devices. In the technical solution provided in the embodiment of the present application, the communication device for realizing the function of the network device is a network device as an example for description.

[0057] Electronic equipment, also known as terminal equipment, terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc., is a device that provides voice and / or data connectivity to users. Electronic equipment can communicate with one or more core network devices through network equipment. Electronic equipment includes handheld devices with wireless connection functions, other processing devices connected to wireless modems, or vehicle-mounted devices. Terminal equipment can be portable, pocket-sized, handheld, built-in computer or vehicle-mounted mobile devices. Some examples of electronic devices are: personal communication service (PCS) phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), wireless network cameras, mobile phones, tablet computers, computers with wireless transceiver functions, PDAs, mobile internet devices (MIDs), wearable devices such as smart watches, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, terminals in Internet of Vehicles systems, wireless terminals in self driving, tactile terminal devices, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities such as smart refuelers, terminal devices on high-speed railways, and wireless terminals in smart homes such as smart speakers, smart coffee machines, smart printers, etc.

[0058] In an embodiment of the present application, the communication device for realizing the function of the electronic device may be an electronic device, or a device capable of supporting the electronic device to realize the function, such as a chip system, which may be installed in the electronic device. In an embodiment of the present application, the chip system may be composed of a chip, or may include a chip and other discrete devices. In the technical solution provided in an embodiment of the present application, the communication device for realizing the function of the electronic device is an electronic device or a UE as an example for description.

[0059] based on Figure 1In the communication system shown, according to 3GPP regulations, the electronic device needs to apply for uplink air interface resources from the network device before sending uplink data to the network device. Figure 2 A schematic diagram of an uplink resource scheduling process. Figure 2 When the electronic device receives application data, it needs to wait until the SR period arrives and send an SR to the network device within the SR period to apply for air interface resources for sending uplink data to the network device: physical uplink shared channel (PUSCH). After receiving the SR, the network device allocates appropriate air interface resources to the electronic device during the uplink scheduling period and indicates the allocated air interface resources to the electronic device. The electronic device can send uplink data to the network device through the air interface resources allocated by the network device. If there is still remaining data in the buffer that has not been sent, the electronic device can send a buffer status report (buffer status report, BSR) information to the network device when sending uplink data, and the network device can reallocate air interface resources to the electronic device during the uplink scheduling period based on the BSR information.

[0060] from Figure 2 It can be seen from the uplink resource scheduling process shown that when an electronic device has data to send, it cannot send the data immediately, but needs to wait for the SR cycle. After the SR cycle arrives, it sends an SR to the network device to apply for uplink resources, which causes an uplink air interface resource scheduling delay and affects communication efficiency.

[0061] Based on the above problems, an embodiment of the present application provides a resource scheduling method. Figure 3 A schematic diagram of a scenario in which the resource scheduling method provided in the embodiment of the present application is applicable. Figure 3 , the scenario includes electronic devices and network devices. Multiple applications can be installed in the electronic device, and each application can provide the electronic device with functions or services related to the application. The modem module in the electronic device can receive application data sent by the application, request uplink resources from the network device, and send the application data through the uplink resources allocated by the network device.

[0062] A hot connection module can be loaded in the electronic device of the embodiment of the present application, and the hot connection module can provide a hot connection function for the electronic device. The hot connection function means that the electronic device can request uplink resources from the network device in advance when the application data is not received, and maintain the activity of the uplink resources, so that when the application data is received, the application data can be sent in time through the uplink resources allocated by the network device. In the resource scheduling method provided in the embodiment of the present application, the application in the electronic device can send a hot connection request to the hot connection module, and the hot connection module can send a heartbeat message to the modem module to trigger the modem module to request uplink resources from the network device. When there is a network interaction service in the application in the electronic device, the modem module can receive the application data and send the application data to the network device through the uplink resources allocated by the network device.

[0063] In some embodiments, the modem module in the electronic device may also support a hot connection function, and an application in the electronic device may send a hot connection request to the modem module, or a user may trigger a first operation to enable the hot connection function. After the hot connection function is enabled, the modem module may send a scheduling request to the network device, and regardless of whether there is data to be sent in the buffer, the electronic device, after receiving the uplink scheduling configuration information sent by the network device, sends buffer status report information to the network device, thereby continuously requesting uplink resources from the network device to maintain the activity of the uplink resources.

[0064] Optionally, refer to Figure 3 In an embodiment of the present application, the network device may include a hot connection service, which can receive a heartbeat message sent by an electronic device and send a response message of the heartbeat message to the electronic device.

[0065] exist Figure 3 In the scenario shown, the electronic device can receive a hot connection request sent by the target application, or detect that the target application is started, generate a heartbeat message based on a preset heartbeat period, and send a scheduling request to the network device after generating the heartbeat message, and receive the uplink scheduling configuration information sent by the network device. The electronic device receives the application data, and sends the application data and the heartbeat message to the network device according to the uplink resources indicated by the uplink scheduling configuration information. Through this scheme, the electronic device can send an SR in advance based on a preset heartbeat period, thereby applying for uplink resources from the network device in advance. When the electronic device receives the application data, it can directly use the uplink resources requested in advance to send it, thereby improving communication efficiency.

[0066] In another resource scheduling method provided in an embodiment of the present application, when an electronic device receives a hot connection request sent by a target application, or in response to a first operation of a user, it can actively send an uplink resource scheduling request to a network device and receive uplink scheduling configuration information sent by the network device. Regardless of whether there is data to be sent in the buffer, the electronic device sends buffer status report information to the network device after receiving the uplink scheduling configuration information sent by the network device. The network device continuously schedules uplink resources for the electronic device based on the received buffer status report information, so that when the electronic device receives application data, it can directly use the uplink resources scheduled by the network device to send it, thereby improving communication efficiency.

[0067] The electronic device structure involved in the embodiment of the present application is introduced below:

[0068] Figure 4 FIG. 1 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. Figure 4 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. Optionally, the electronic device may also include a satellite communication module 161.

[0069] 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). Among them, different processing units may be independent devices or integrated into one or more processors. Among them, 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 opcode and the timing signal to complete the control of fetching and executing instructions. A memory may also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.

[0070] In the embodiment of the present application, the modem processor can be used to implement Figure 3 Functions of the modem module in the electronic device shown. The modem processor may have a cellular network air interface hot connection function, and the modem processor may also provide an application programming interface (API) to the hot connection module in the electronic device. The application installed in the electronic device can enable the hot connection function through the API interface provided by the modem. The modem processor can control the communication interface to send an SR request to the network device during the SR period, and regardless of whether there is data to be sent in the buffer, it is necessary to send a BSR request on the PUSCH when the hot connection function is turned on, thereby continuously applying for uplink resources from the network device, and the application can use the uplink resources to send data in a timely manner.

[0071] 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 transmit data between the electronic device 100 and peripheral devices. The charging management module 140 is used to receive charging input from the charger. 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 provides 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.

[0072] The wireless communication function of the electronic device 100 can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the 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 the antenna. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0073] 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.

[0074] 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.

[0075] 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).

[0076] The display screen 194 is used to display the display interface of the application, such as displaying the display page of the application installed on the electronic device 100. 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.

[0077] 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.

[0078] 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 can store an operating system, and software code of at least one application, etc. The data storage area can store data generated during the use of the electronic device 100 (such as captured images, recorded videos, 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.

[0079] 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. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as pictures and videos are stored in the external memory card.

[0080] 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.

[0081] The sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, etc. Optionally, when the electronic device 100 is a touch screen device, the sensor module 180 may further include a touch sensor 180C.

[0082] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .

[0083] The touch sensor 180C is also called a "touch panel". The touch sensor 180C can be set on the display screen 194, and the touch sensor 180C and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180C is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180C can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0084] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The electronic device 100 can receive the button input and generate a key signal input related to the user settings and function control of the electronic device 100. The motor 191 can generate a vibration prompt. The 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. The touch vibration feedback effect can also support customization. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.

[0085] Understandably, Figure 4 The components shown do not constitute a specific limitation on the electronic device 100. The electronic device may also include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. Figure 4 The combination / connection relationship between the components can also be adjusted and modified.

[0086] Figure 5 The software structure block diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the software structure of the electronic device can be a layered architecture, for example, the software can be divided into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer (framework, FWK), the runtime (runtime) and the system library, and the kernel layer.

[0087] The application layer can include a series of application packages. Figure 5 As shown, the application layer may include camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, the third-party applications may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0088] In the embodiment of the present application, the application layer may include a hot connection application, which may be an integrated Figure 3 Application of the function of the hot connection module in the electronic device shown. The hot connection application can provide hot connection capabilities for other applications in the electronic device. Other applications can send a request message to the hot connection application to start the hot connection function, or the hot connection application can monitor the business scenarios of other applications according to a preset application set and actively start the hot connection function. The hot connection application can control the communication interface to send an SR request to the network device during the SR request period to apply for uplink resources from the network device in advance, so that the uplink resources can be used to send data in time when the application has business needs.

[0089] It should be noted that the hot connection application in the embodiment of the present application can be a system-level functional application or a third-party application, such as a software development kit (SDK) in which the hot connection application can be installed in an electronic device.

[0090] In an embodiment of the present application, the hot connection application can cooperate with the modem processor to complete the resource scheduling method provided in the embodiment of the present application. For specific implementation, please refer to the following embodiments of the present application, which will not be repeated here.

[0091] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer may include some predefined functions. Figure 5 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and a Bluetooth framework.

[0092] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0093] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0094] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).

[0095] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0096] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0097] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.

[0098] The core library consists of two parts: one is the function that the Java language needs to call, and the other is the core library of the operating system. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0099] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), image processing library, etc.

[0100] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0101] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0102] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0103] A 2D graphics engine is a drawing engine for 2D drawings.

[0104] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, sensor driver, and Bluetooth driver.

[0105] The hardware layer can include various types of sensors, such as accelerometers, gyroscopes, touch sensors, etc.

[0106] It should be noted that Figure 4 and Figure 5 The structure shown is only an example of the electronic device provided by the embodiment of the present application, and cannot be used to limit the electronic device provided by the embodiment of the present application. In specific implementation, the electronic device may have more Figure 4 or Figure 5 More or fewer devices or modules may be included in the structures shown.

[0107] The following is an introduction to the resource scheduling method provided in the embodiment of the present application.

[0108] Figure 6 A flowchart of a resource scheduling method provided in an embodiment of the present application, the method can be Figure 3The electronic devices and network devices in the scenario shown are implemented. Figure 6 In the illustrated embodiment, the electronic device may be installed with a hot connection application, which may be used to request uplink resources from the network device in advance. Figure 6 , the method comprises the following steps:

[0109] S601: The electronic device receives a hot connection request sent by a target application, or the electronic device detects that a target application is started.

[0110] In an optional implementation, a hot connection application may be installed in the electronic device, and the hot connection application may receive hot connection requests sent by other applications to start the hot connection function; or a preset application set may be stored in the electronic device, and the hot connection application may monitor the applications in the preset application set, and trigger the hot connection function when it is determined that any application in the application set is started. The target application in S601 belongs to the preset application set, and the electronic device may trigger the hot connection function after monitoring the start of the target application.

[0111] It should be noted that the hot connection function in the embodiment of the present application means that after the electronic device turns on the hot connection function, it can trigger the sending of a resource scheduling request to the network device to obtain the uplink resources scheduled by the network device before the application has a request to send data, and the hot connection function can continue to request uplink resources from the network device during the startup process, thereby meeting the data sending needs of the application in a timely manner.

[0112] S602: The electronic device determines to enable the hot connection function according to the network status and the service characteristics of the target application.

[0113] Optionally, the network status may include parameters such as the type of network currently accessed by the electronic device and network conditions. For example, the network status may include whether the currently accessed network is a mobile network, the signal strength of the signal received by the electronic device, the network congestion jitter status, etc. Among them, the mobile network may be, for example, a cellular mobile network. The service characteristics of the target application may include, for example, whether the target application has a network interaction service, whether the service of the target application is a continuous service flow, whether the target application is sensitive to network interaction delay, etc.

[0114] In an embodiment of the present application, the electronic device may determine to enable the hot connection function based on the network status and the service characteristics of the target application. For example, the electronic device may determine to enable the hot connection function when the current access network is a mobile network and the target application has a network interaction service. Furthermore, the electronic device may also judge the following four conditions based on determining that the above two conditions are met: the signal strength of the mobile network received by the electronic device is greater than a first preset threshold; the network congestion jitter state of the mobile network meets the preset conditions; the service of the target application is a continuous service flow; the service of the target application requires the network interaction delay to be less than a second preset threshold. When the electronic device determines that at least one of the above four conditions is also met, the hot connection function can be enabled.

[0115] S603: The electronic device generates a heartbeat message based on a preset heartbeat cycle.

[0116] In the embodiment of the present application, the heartbeat message is a network interaction message, which can be used to trigger the electronic device to send a scheduling request to the network device. After the electronic device generates a heartbeat message, the electronic device needs to send the heartbeat message through the mobile network, and the generation of the heartbeat message can trigger the electronic device to request the network device to allocate an uplink resource.

[0117] In the embodiment of the present application, the heartbeat period can be a preset period of time. For example, when the heartbeat period is 5 ms, the electronic device can generate a heartbeat message every 5 ms, and the electronic device sends a scheduling request to the network device every 5 ms.

[0118] Optionally, the heartbeat period of the electronic device generating the heartbeat message may be related to the scheduling period of the network device allocating air interface resources. For example, when the scheduling period of the network device allocating air interface resources is 5ms, the heartbeat period of the heartbeat message may be set to 5ms, so that each time the network device schedules air interface resources, the electronic device may apply for uplink resources from the network device, ensuring that when there is uplink data to be sent, the electronic device can send uplink data in time through the uplink resources applied in advance.

[0119] The heartbeat message in the embodiment of the present application may adopt a standard ICMP message format, for example, Figure 7 A schematic diagram of the format of a heartbeat message provided in an embodiment of the present application. Figure 7The type field of the heartbeat message indicates the message type, and the type field can be a preset value, for example, the type field can take the value 8. The Code field indicates the encoding type; the Checksum field is the checksum; the Identifier field is the identifier; the Sequence number field is the sequence number; the Data field is the data carried by the message, and the first four fields of Data can be fixed values, such as the first four fields of Data can be fixed to "HBHB", and the subsequent content in Data can be randomly generated.

[0120] Through the above-mentioned design of the present application, the electronic device sends a scheduling request to the network device based on the preset heartbeat message. After receiving the scheduling request, the network device can allocate uplink resources to the electronic device, thereby maintaining the activity of the uplink resources used for the electronic device to send uplink data.

[0121] S604: After generating the heartbeat message, the electronic device sends a scheduling request to the network device.

[0122] The scheduling request is used to request the network device to schedule uplink resources for sending uplink data.

[0123] In an optional implementation, the hot connection module in the electronic device can generate a heartbeat message based on a preset heartbeat period, and send the heartbeat message to the modem module of the electronic device, and the modem module can send a scheduling request to the network device in the SR period after receiving the heartbeat message. In the embodiment of the present application, after receiving the heartbeat message, the modem module can process the heartbeat message as uplink data to be sent, and after receiving the heartbeat message, the modem module can request the network device for uplink resources for sending the heartbeat message.

[0124] S605: The electronic device receives uplink scheduling configuration information sent by the network device.

[0125] After receiving the scheduling request, the network device may allocate uplink resources to the electronic device, and indicate to the electronic device the uplink resources scheduled by the network device for the electronic device through uplink scheduling configuration information.

[0126] S606: The electronic device receives the application data and determines uplink resources according to the uplink configuration information.

[0127] S607: The electronic device sends a heartbeat message and application data to the network device via an uplink resource.

[0128] Since the electronic device in S605 has received the uplink scheduling configuration information sent by the network device, after receiving the application data, the electronic device can directly send the application data according to the uplink resources indicated by the uplink scheduling configuration information, without having to send a scheduling request to the network device again and waiting for the network device to allocate resources, thereby being able to send the application data in a timely manner and improving communication efficiency.

[0129] In an optional implementation, the uplink resource used by the electronic device to send application data may be the uplink resource requested by the electronic device to the network device in S604 for sending heartbeat messages. The electronic device may then send heartbeat messages and application data to the network device via the uplink resource in S607.

[0130] Alternatively, if Figure 3 In the scenario shown, the network device may include a hot connection service, which may be used to receive a heartbeat message sent by an electronic device and send a heartbeat reply message to the electronic device. The heartbeat reply message sent by the hot connection service may also adopt a standard ICMP message format, see Figure 7 The first four fields of Data in the heartbeat response message returned by the hot connection service are also fixed values, and the fixed values ​​are consistent with the fixed values ​​of the first four fields of Data in the heartbeat message. For example, the four fields of Data in the heartbeat response message can be fixed to "HBHB".

[0131] In some implementations, the network device may also discard the heartbeat message after receiving the heartbeat message. Since the heartbeat message in the embodiment of the present application is used to periodically apply for uplink resources from the network device, the network device can allocate uplink resources to the electronic device after receiving the SR, so the network device may also discard the heartbeat message after receiving the heartbeat message, thereby reducing the amount of computation on the network device side and not affecting the resource allocation process of the network device.

[0132] S608: The electronic device turns off the hot connection function.

[0133] Optionally, the electronic device can turn off the hot connection function when determining that the service of the target application is over, and the electronic device stops sending scheduling requests based on the preset heartbeat cycle. Figure 2 The uplink resource scheduling process shown is executed and will not be repeated here.

[0134] The resource scheduling method provided in the embodiment of the present application is further introduced below from the interaction process between the target application, the hot connection module and the modem module in the electronic device. Figure 8 A flowchart of a resource scheduling method provided in an embodiment of the present application. Figure 8 , the method comprises the following steps:

[0135] S801: The target application sends a hot connection request to the hot connection module.

[0136] S802: The hot connection module determines to enable the hot connection function according to the network status and the service characteristics of the target application.

[0137] S803: The hot connection module sends a first heartbeat message to the modem module at a first moment.

[0138] In the embodiment of the present application, after the hot connection function is turned on by the hot connection module, a heartbeat message can be sent to the modem module based on a preset heartbeat cycle, and the first moment can be the moment when the hot connection function is turned on by the hot connection module.

[0139] The first heartbeat message is used to trigger the modem module to send a scheduling request to the network device.

[0140] S804: The modem module sends an SR to the network device within the SR period.

[0141] After receiving the first heartbeat message, the modem module may send an SR to the network device, thereby requesting the network device to allocate uplink resources.

[0142] In an optional implementation, if the time when the modem module receives the first heartbeat message is within the SR cycle, the modem module can directly send an SR to the network device; if the time when the modem module receives the first heartbeat message is not within the SR cycle, the modem module waits for the next SR cycle to arrive and sends an SR to the network device.

[0143] S805: The network device sends first uplink scheduling configuration information to the modem module.

[0144] S806: The target application processes the application data.

[0145] When there is a network interaction service in the target application, the target application can perform data processing on the application data.

[0146] S807: The target application sends the application data to the modulation and demodulation module.

[0147] S808: The modem module sends the first heartbeat message, application data, and BSR through the uplink resources indicated by the first uplink scheduling configuration information.

[0148] Among them, BSR is used to indicate the amount of data waiting to be sent in the buffer. When a data transmission does not complete the transmission of all application data, the modem module can send a BSR to the network device while sending uplink data to request the network device to allocate uplink resources again. The re-allocated uplink resources can be used to send the remaining application data in the buffer.

[0149] S809: The network device sends the second uplink scheduling configuration information to the modem module according to the BSR.

[0150] S810: The modem module sends application data in the buffer through the uplink resources indicated by the second uplink scheduling configuration information.

[0151] S811: The hot connection module sends a second heartbeat message to the modem module at a second moment.

[0152] In the embodiment of the present application, the time difference between the second moment and the first moment is a preset heartbeat cycle.

[0153] S812: The modem module sends an SR to the network device within the SR period.

[0154] S813: The network device sends third uplink scheduling configuration information to the modem module.

[0155] S814: The target application processes the application data.

[0156] When there is a network interaction service in the target application, the target application can perform data processing on the application data.

[0157] S815: The target application sends the application data to the modulation and demodulation module.

[0158] S816: The modem module sends the second heartbeat message and application data through the uplink resources indicated by the third uplink scheduling configuration information.

[0159] S817: The target application sends a hot connection closing request to the hot connection module.

[0160] S818: The hot connection module turns off the hot connection function.

[0161] Fig. 9 A flowchart of a resource scheduling method provided in an embodiment of the present application, the method can be Figure 3 The electronic devices and network devices in the scenario shown are implemented. Fig. 9 In the illustrated embodiment, the modem module in the electronic device may support a hot connection function, which may be used to request uplink resources from the network device in advance. Fig. 9 , the method comprises the following steps:

[0162] S901: In response to a first operation by a user, the electronic device turns on a hot connection function.

[0163] Optionally, the first operation may be an operation in which a user turns on the hot connection function in a setting interface of the electronic device. Fig.10 A schematic diagram of a setting interface provided in an embodiment of the present application. Fig.10 The setting interface of the electronic device may include setting options for the hot connection function, and the user may click a switch button corresponding to the hot connection function to trigger the hot connection function.

[0164] Optionally, when the electronic device receives a hot connection request sent by the target application, or when the electronic device detects that the target application is started, the hot connection function can also be automatically turned on. In a specific implementation, when the modem module in the electronic device supports the hot connection function, the target application can turn on the hot connection function through the modem module. For example, the hot connection module in the electronic device can receive a hot connection request sent by the target application, and turn on the hot connection function through the modem module; or the hot connection module can monitor the applications in a preset application set, and when any application in the preset application set is started, the hot connection function is turned on through the modem module. Before turning on the hot connection function, the electronic device can determine whether to turn on the hot connection function based on the network status and the business characteristics of the target application. For specific implementation, please refer to S602, and the repeated parts will not be repeated.

[0165] In an embodiment of the present application, if the electronic device is not connected to the mobile network before the hot connection function is turned on, the electronic device can connect to the mobile network at the same time when the hot connection function is turned on, or the electronic device can display a reminder message to remind the user to connect to the mobile network, and the user can manually turn on the mobile network of the electronic device.

[0166] S902: The electronic device sends a scheduling request to the network device.

[0167] In an optional implementation, the electronic device turns on the hot connection function through the modem module, and the electronic device can send a scheduling request to the network device through the modem module during the SR period.

[0168] It can be understood that in the resource scheduling method provided in the embodiment of the present application, when the electronic device turns on the hot connection function, the electronic device can send a scheduling request to the network device in advance without waiting for application data.

[0169] For example, the scheduling request in the embodiment of the present application may be referred to as a pseudo SR, that is, a scheduling request for requesting uplink resources from a network device in advance.

[0170] S903: The electronic device receives uplink scheduling configuration information sent by the network device.

[0171] After receiving the scheduling request, the network device may schedule uplink resources, and indicate to the electronic device the uplink resources scheduled by the network device for the electronic device through uplink scheduling configuration information.

[0172] S904: The electronic device sends buffer status report information to the network device.

[0173] In an embodiment of the present application, after receiving the uplink scheduling configuration information sent by the network device, the electronic device sends buffer status report information to the network device regardless of whether there is data to be sent in the buffer.

[0174] Optionally, when the hot connection function is enabled, the electronic device may send a BSR to the network device after receiving the uplink scheduling configuration information to continuously request the network device to allocate uplink resources. In the embodiment of the present application, the amount of data in the buffer status report information is a preset value.

[0175] For example, Fig.11 A schematic diagram of the format of a buffer status report information provided by an embodiment of the present application. Fig.11 , LCG ID is the logical channel group identifier, and Buffer Size is used to indicate the size of the data to be sent in the buffer. In the embodiment of the present application, the Buffer Size in the buffer status report information can be set to a preset value. For example, the Buffer Size can be 16, indicating that there are 107 bytes of data to be sent in the buffer.

[0176] In some embodiments, when there is data to be sent in the buffer and the amount of data to be sent is greater than a preset value, Buffer Size can be set to the actual size of the data to be sent in the buffer; when there is no data to be sent in the buffer, or the amount of data to be sent in the buffer is less than or equal to the preset value, Buffer Size can be the preset value.

[0177] It can be understood that the data amount in the buffer status report information in the embodiment of the present application can be a mark value used to indicate the data amount, or it can be the data amount itself, and the embodiment of the present application is not limited to this.

[0178] Optionally, when there is no data to be sent in the buffer, the buffer status report information sent by the electronic device to the network device may be called a pseudo BSR, that is, used to request the network device to schedule uplink resources before sending application data.

[0179] S905: The electronic device receives uplink scheduling configuration information sent by the network device.

[0180] It is understandable that the uplink scheduling configuration information in S905 is generated by the network device according to the buffer status report information received in S904. For example, when the electronic device sends a pseudo BSR to the network device, the network device can determine that the Buffer Size is 16, indicating that there are about 107 bytes of data to be sent in the buffer. The network device can allocate uplink resources to the electronic device according to the air interface resource status and the resource scheduling algorithm, and send the uplink scheduling configuration information to the electronic device.

[0181] S906: The electronic device receives the application data and determines uplink resources according to the uplink configuration information.

[0182] S907: The electronic device sends application data and buffer status report information to the network device via uplink resources.

[0183] It is understandable that the buffer status report information sent by the electronic device to the network device in S907 can be used to apply to the network device for reallocation of uplink resources. For specific implementation, please refer to S904, and the repeated parts will not be repeated.

[0184] S908: The electronic device turns off the hot connection function.

[0185] Optionally, the electronic device can turn off the hot connection function when it determines that the service of the target application has ended, and the electronic device stops sending scheduling requests or buffer status report information to the network device. Figure 2 The uplink resource scheduling process shown is executed and will not be repeated here.

[0186] The resource scheduling method provided in the embodiment of the present application is further introduced below from the interaction process between the target application and the modem module in the electronic device. Fig.12 A flowchart of a resource scheduling method provided in an embodiment of the present application. Fig.12 , the method comprises the following steps:

[0187] S1201: In response to a first operation by a user, the modem module starts a hot connection function.

[0188] S1202: The modem module sends an SR to the network device within the SR period.

[0189] S1203: The network device sends first uplink scheduling configuration information to the modem module.

[0190] S1204: The modem module sends a BSR through the uplink resources indicated by the first uplink scheduling configuration information.

[0191] Optionally, the BSR sent by the modem module in the uplink resource indicated by the first uplink scheduling configuration information may be a pseudo BSR, which may be used as a scheduling request for uplink resources to the network device before sending application data. The Buffer Size in the BSR may be a preset value, such as a fixed value of 16.

[0192] S1205: The network device sends second uplink scheduling configuration information to the modem module according to the BSR.

[0193] S1206: The target application processes the application data.

[0194] S1207: The target application sends the application data to the modulation and demodulation module.

[0195] S1208: The modem module sends application data and BSR through the uplink resources indicated by the second uplink scheduling configuration information.

[0196] Optionally, when there is data to be sent in the buffer and the amount of the data to be sent is greater than a preset value, the Buffer Size in the BSR sent by the modem module in S1208 is the actual size of the data to be sent in the buffer; when there is no data to be sent in the buffer, or there is data to be sent in the buffer and the amount of the data to be sent is less than or equal to the preset value, the Buffer Size in the BSR sent by the modem module in S1208 may be a preset value, such as the Buffer Size may be a fixed value of 16.

[0197] S1209: The network device sends the third uplink scheduling configuration information to the modem module according to the BSR.

[0198] S1210: The modem module sends a BSR through the uplink resources indicated by the third uplink scheduling configuration information.

[0199] S1211: The target application sends a hot connection closing request to the modem module.

[0200] S1212: The modem module turns off the hot connection function.

[0201] Based on the same concept, an embodiment of the present application also provides a resource scheduling method, which can be executed by an electronic device. Fig.13 A flowchart of a resource scheduling method provided in an embodiment of the present application. Fig.13 , the method comprises the following steps:

[0202] S1301: The electronic device receives a hot connection request sent by a target application, or detects that a target application is started.

[0203] S1302: The electronic device turns on the hot connection function.

[0204] In an embodiment of the present application, the hot connection function is used to instruct the electronic device to periodically send a scheduling request to the network device, the scheduling request is used to request the network device to allocate uplink air interface resources, and the scheduling request includes a first scheduling request.

[0205] S1303: The electronic device receives first uplink scheduling configuration information sent by the network device based on the first scheduling request.

[0206] S1304: The electronic device receives first application data of the target application, and sends the first application data to the network device according to the first uplink scheduling configuration information.

[0207] It should be noted that this application Fig.13 The resource scheduling method shown can be specifically implemented by referring to the above embodiments of the present application, and the repeated parts will not be repeated.

[0208] Based on the above embodiments, the present application further provides an electronic device, the electronic device comprising multiple functional modules; the multiple functional modules interact with each other to implement the functions performed by the electronic device in each method described in the embodiments of the present application. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.

[0209] Based on the above embodiments, the present application also provides an electronic device, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes the functions performed by the electronic device in each method described in the embodiments of the present application.

[0210] Based on the above embodiments, the present application further provides a computer program product comprising instructions, and when the computer program product is run on a computer, the computer is enabled to execute the methods described in the embodiments of the present application.

[0211] Based on the above embodiments, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the methods described in the embodiments of the present application.

[0212] Based on the above embodiments, the present application further provides a chip, which is used to read a computer program stored in a memory to implement the methods described in the embodiments of the present application.

[0213] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a computer device to implement the methods described in the embodiments of the present application. In one possible design, the chip system also includes a memory, which is used to store the necessary programs and data for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0214] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0215] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0216] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0217] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0218] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of protection of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A resource scheduling method, characterized in that: Applied to electronic equipment, the method comprises: Receiving a hot connection request sent by a target application, or detecting that a target application is started; Turning on a hot connection function, where the hot connection function is used to instruct the electronic device to periodically send a scheduling request to a network device, where the scheduling request is used to request the network device to allocate uplink air interface resources, and the scheduling request includes a first scheduling request; Receiving first uplink scheduling configuration information sent by the network device based on the first scheduling request; Receive first application data of the target application, and send the first application data to the network device according to the first uplink scheduling configuration information.

2. The method according to claim 1, characterized in that The enabling of the hot connection function, wherein the hot connection function is used to instruct the electronic device to periodically send a scheduling request to the network device, includes: A heartbeat message is generated based on a preset heartbeat period, and a scheduling request is sent to a network device after the heartbeat message is generated.

3. The method according to claim 1 or 2, characterized in that The heartbeat period is related to a scheduling period for allocating air interface resources by the network device.

4. The method according to any one of claims 1 to 3, characterized in that: The sending the first application data of the target application to the network device according to the first uplink scheduling configuration information includes: Sending first application data of the target application and buffer status report information BSR to the network device according to the first uplink scheduling configuration information, wherein the BSR is used to indicate that there is still data to be sent in the buffer of the electronic device after sending the first application data; Receiving second uplink scheduling configuration information sent by the network device based on the BSR; The data to be sent in the buffer is sent to the network device according to the second uplink scheduling configuration information.

5. The method according to claim 2, characterized in that The electronic device comprises a hot connection module and a modulation and demodulation module; the heartbeat message is generated based on a preset heartbeat cycle, and a scheduling request is sent to a network device after the heartbeat message is generated, comprising: Generate a heartbeat message based on the preset heartbeat cycle through the hot connection module, and send the heartbeat message to the modulation and demodulation module; After receiving the heartbeat message through the modem module, the scheduling request is sent to the network device.

6. The method according to claim 1, characterized in that The scheduling request is a buffer status report information BSR; the hot connection function is enabled, and the hot connection function is used to instruct the electronic device to periodically send a scheduling request to the network device, including: Sending a scheduling request SR to the network device; After receiving the uplink scheduling configuration information sent by the network device, the BSR is periodically sent to the network device, and the amount of data in the BSR is a preset value.

7. The method according to claim 6, characterized in that The electronic device comprises a modem module, and the scheduling request SR is sent to the network device; After receiving the uplink scheduling configuration information sent by the network device, periodically sending the BSR to the network device includes: Sending the SR to the network device through the modem module; After receiving the uplink scheduling configuration information sent by the network device, the BSR is periodically sent to the network device through the modem module.

8. The method according to any one of claims 1 to 7, characterized in that: The scheduling request further includes a second scheduling request; and the method further includes: receiving third uplink scheduling configuration information sent by the network device based on the second scheduling request; Receive second application data of the target application, and send the second application data to the network device according to the third uplink scheduling configuration information.

9. The method according to any one of claims 1 to 8, characterized in that After receiving a hot connection request sent by a target application or detecting that the target application is started, and before enabling the hot connection function, the method further includes: The hot connection function is enabled according to the network status and the service characteristics of the target application.

10. The method according to claim 9, characterized in that The determining to enable the hot connection function according to the network status and the service characteristics of the target application includes: It is determined that the electronic device is connected to a mobile network and that the target application has a network interaction service.

11. The method according to claim 10, characterized in that The step of determining to enable the hot connection function according to the network status and the service characteristics of the target application further includes: Determine that the network state and the service characteristics of the target application meet at least one of the following conditions: The signal strength of the mobile network received by the electronic device is greater than a first preset threshold; The network congestion jitter state of the mobile network meets a preset condition; The business of the target application is a continuous business flow; The service of the target application requires that the network interaction delay is less than a second preset threshold.

12. The method according to any one of claims 1 to 11, characterized in that: The method further comprises: It is determined that the network interaction service of the target application is terminated, and the hot connection function is disabled.

13. An electronic device, characterized in that: It comprises a plurality of functional modules; the plurality of functional modules interact with each other to implement the method as claimed in any one of claims 1 to 12.

14. An electronic device, characterized in that: The system comprises at least one processor, wherein the at least one processor is coupled to at least one memory, and the at least one processor is configured to read a computer program stored in the at least one memory to execute the method according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 12.