Communication method and apparatus
By introducing SR request counters and measurement timers in terminal devices, adjusting resource allocation strategies and adaptive adjustment of signal quality, the problem of low communication success rate of low priority service cards is solved, and the communication success rate and user experience are improved.
Patent Information
- Application Number
- PCT/CN2023/131386
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-29
- Filing Date
- 2023-11-14
- Publication Date
- 2024-12-05
AI Technical Summary
In terminal devices, SIM cards running low-priority services cannot communicate because high-priority services occupy RF channel resources, resulting in disconnection and user experience impacts, and the prior art is difficult to effectively improve the communication success rate.
By introducing an SR request counter and measurement timer in the terminal device, adjusting the resource allocation strategy of the SIM card in the case of time slot overlap, extending the number of SR requests, avoiding the premature triggering of the random access process, and based on the signal quality of the communication path, the signal quality of the communication path is determined by the communication path Adaptively adjust the sending SR request process.
It improves the communication success rate of running low-priority service cards, reduces the risk of network link disconnection, avoids the interruption time of high-priority service cards, and saves RF channel resources and time.
Smart Images

Figure CN2023131386_05122024_PF_FP_ABST
Abstract
Description
Communication method and device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 29, 2023, with application number 202310360032.1 and invention name “Communication Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to a communication method and device. Background Art
[0003] With the development of communication technology, many terminal devices can support the simultaneous operation of multiple subscriber identity modules (SIMs). Taking a terminal device that supports two SIM cards as an example, dual SIM and dual access (DSDA) can be used for communication. Taking cost and efficiency into consideration, the SIM cards in the terminal device can share the terminal device's radio frequency channel resources. Using time division multiplexing, the same radio frequency transmission channel is used to transmit signals to the base station for communication at different time periods. In this mode, the terminal device allocates resources to the two SIM cards separately, and prioritizes allocating resources to the SIM card running a high-priority service. When a SIM card running a low-priority service is unable to communicate because the SIM card running a high-priority service occupies the terminal device's radio frequency channel resources, there is a risk of disconnection from the access network device, thereby affecting the user experience.
[0004] Summary of the Invention
[0005] In view of this, the present application provides a communication method and apparatus to improve the communication success rate of running low-priority service cards.
[0006] In a first aspect, an embodiment of the present application provides a communication method, which may be applicable to a terminal device, wherein the terminal device supports at least two SIM cards, where the at least two SIM cards include SIM card 1 and SIM card 2, and the method includes:
[0007] SIM card 1, running a high-priority service in the terminal device, sends uplink data in the first time slot. SIM card 2, running a low-priority service, sends an SR request to the access network device in the second time slot. The terminal device initializes the SR request counter, resetting the SR request counter value M to its initial value. In one possible scenario, if the terminal device fails to send an SR request before sending this SR request, indicating an ongoing SR, the SR request counter is not initialized and maintains its current value M.
[0008] If the measurement timer is running, the following steps are not performed until the measurement timer is turned off to confirm whether the SR request timer is running. If the measurement timer is running, the terminal device is in the measurement gap period, and the terminal device performs inter-frequency measurements. During the measurement gap period, the terminal device stops sending and receiving data and performs cell signal measurements. Therefore, the terminal device cannot send all uplink data, including SR requests, until the measurement timer is turned off.
[0009] When the SR request timer is running, the following steps are not performed until the SR request timer is turned off to confirm whether the value of the SR request counter is less than the first threshold. When the SR request timer is running, the time interval between the current SR request and the previous SR request is too short and does not reach the minimum time interval between two consecutive SR requests sent by the terminal device. The terminal device cannot send an SR request again until the SR request timer is turned off.
[0010] When the value M of the SR request counter is less than the first threshold, it is determined whether the first time slot and the second time slot overlap. When the value M of the SR request counter is greater than or equal to the first threshold, the SIM card 2 disconnects from the access network device, triggering a random access process.
[0011] When the first and second time slots overlap, the SR request counter value M is maintained, the SR request is abandoned, and the SR request timer is started. When the time periods of the first and second time slots overlap, since UE30 is only configured with one RF transmit channel, RF channel resources are allocated based on the service priority of the SIM cards. UE30 prioritizes allocating uplink RF channel resources to SIM card 1, which is running a high-priority service. That is, if SIM card 1 occupies the uplink channel during this time, SIM card 2, which is running a low-priority service, cannot use the uplink channel. Consequently, uplink data including the SR request cannot be sent, and the SR request fails.
[0012] When the number of SR request transmissions reaches the maximum number of failures, SIM card 2 initiates a random access process. By using the above method, the number of SR request transmission failures due to time slot overlap is not recorded, and the number of SR request transmissions is increased.
[0013] Since time domain resources are distributed according to a first time domain resource period, and the SIM card sends an SR request based on the first time domain resource period, the time elapsed from when the SIM card first sends an SR request after receiving a data packet from the MAC layer buffer to initiating a random access procedure is equal to the maximum number of failed SR request transmissions times the first time domain resource period. Through the above embodiment, in the event of time slot overlap, this method effectively extends the time elapsed from when the data packet is received in the MAC layer buffer to when the random access procedure is initiating by not recording the number of failed SR request transmissions due to time slot overlap. That is, the time elapsed is longer than the maximum number of failed SR request transmissions times the first time domain resource period.
[0014] The above method prevents SIM card 2 from occupying the UE 30 radio channel and triggering the random access process prematurely, thus preventing SIM card 1 from experiencing a prolonged interruption in its service, which would affect the normal operation of SIM card 1 and increase the risk of network disconnection. At the same time, the success rate of SIM card 2 sending an SR request is increased, and the risk of SIM card 2 being disconnected during the random access process is avoided.
[0015] In another method provided by the present application, when the first time slot coincides with the second time slot, it is further determined whether the first indication information is less than a second threshold. The first indication information is used to indicate the signal quality of the communication path between the current SIM card 2 and the access network device, which is the communication path loss between the SIM card 2 and the access network device.
[0016] When the first indication information is less than or equal to the second threshold, it can be considered that the communication path loss between SIM card 2 and the access network device is less than the second threshold, and the current communication path signal quality is good. At this time, the value M of the SR request counter is maintained, the SR request is abandoned, and the SR request timer is started.
[0017] When the first indication information is greater than or equal to the second threshold, it is considered that the signal quality of the current communication path is poor. At this time, if the value M of the SR request counter is less than the third threshold, and the third threshold is less than the first threshold, the SR request counter value M is incremented in steps of 1, the SR request is abandoned, and the SR request timer is started. When the value M of the SR request counter reaches the third threshold, SIM card 2 disconnects from the access network device, triggering the random access procedure.
[0018] Through the above method, when the communication path signal quality is good, the number of failed SR requests due to time slot overlap is not recorded. Since time domain resources are distributed according to the first time domain resource period, the SIM card sends SR requests based on the first time domain resource period. Therefore, the time elapsed between the SIM card's first SR request after receiving a data packet from the MAC layer buffer and initiating the random access procedure is equal to the maximum number of failed SR requests times the first time domain resource period. Through the above scheme, in the event of time slot overlap, this embodiment effectively extends the time from receiving a data packet from the MAC layer buffer to initiating the random access procedure by not recording the number of failed SR requests due to time slot overlap. This time elapses to a value longer than the maximum number of failed SR requests times the first time domain resource period. This prevents SIM card 2 from prematurely triggering the random access procedure due to occupying the terminal's RF channel, improves the probability of SIM card 2 successfully sending an SR request, avoids prolonged service interruptions on SIM card 1, and increases the risk of network connection disconnection. Furthermore, the risk of SIM card 2 experiencing a network connection disconnection during the random access procedure is avoided.
[0019] In the case of poor communication path signal quality, the maximum number of failures to send an SR request is reduced, shortening the time from receiving a data packet in the MAC layer buffer corresponding to SIM card 2 to initiating a random access procedure. In other words, the time taken is shorter than the maximum number of failures to send an SR request multiplied by the first time domain resource period. In the case of poor communication path signal quality, there is a high possibility that base station 20 will not receive the SR request sent by SIM card 2. In this case, triggering the random access procedure in advance and reconnecting with the base station can improve the success rate of SIM card 2 sending uplink data and save radio frequency channel resources and time.
[0020] During the time period when the high-priority service card occupies the uplink channel, the SR request sending process is adaptively adjusted based on the communication signal quality between the low-priority service card and the access network equipment, thereby saving time domain resources and radio frequency channel resources while improving the data transmission success rate between the low-priority service card and the access network equipment.
[0021] When the time periods of the first time slot and the second time slot do not overlap, that is, the time periods of the first time slot and the second time slot do not overlap at all, the SIM card 2 may send an SR request to the access network device.
[0022] In a second aspect, the present application provides a system chip applied to a terminal device, including: an application processor and a baseband processor, an SR request timer, a measurement timer, and an SR request counter, so that the system chip supports at least two SIM cards running simultaneously, the at least two SIM cards including SIM card 1 and SIM card 2, and executes any method of the first aspect.
[0023] In a third aspect, the present application provides a terminal device comprising one or more processors and a computer storage medium; wherein the computer storage medium stores computer instructions, and when the one or more processors execute the computer instructions, the terminal device supports at least two SIM cards, wherein the at least two SIM cards include SIM card 1 and SIM card 2, and executes any one of the methods of the first aspect.
[0024] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes any one of the methods of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] FIG1 is a schematic diagram of a communication system provided in an embodiment of the present application;
[0026] FIG2 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0027] FIG3 is a schematic diagram of a specific implementation of a communication process between a terminal device and a base station provided in an embodiment of the present application;
[0028] FIG4 is a schematic diagram of a specific flow chart of a communication method provided in an embodiment of the present application;
[0029] 5A-5C are schematic diagrams of time slot resources configured by a base station according to an embodiment of the present application;
[0030] FIG6 is a schematic diagram of a specific flow chart of a resource allocation decision-making method provided in an embodiment of the present application;
[0031] 7A-7D are schematic diagrams of a desktop of a terminal device provided in an embodiment of the present application;
[0032] FIG8 is a schematic diagram of a specific flow chart of a communication method provided in an embodiment of the present application;
[0033] FIG9 is a schematic diagram of a specific flow chart of a communication method provided in an embodiment of the present application;
[0034] FIG10 is a schematic structural diagram of a system chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and claims of this application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in this application refers to any or all possible combinations including one or more of the listed features. In the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise stated, the meaning of "multiple" is two or more.
[0036] First, a communication system 100 provided in an embodiment of the present application is introduced.
[0037] Please refer to FIG1 , which exemplarily shows an architectural diagram of a communication system 100 provided in an embodiment of the present application.
[0038] As shown in Figure 1, the communication system 100 may include one or more access network devices and one or more terminal devices connected to the access network devices. Figure 1 exemplarily shows two access network devices (e.g., base station 10 and base station 20) and a terminal device (e.g., UE 30). It will be understood that Figure 1 is merely a schematic diagram and does not limit the applicable scenarios of the technical solutions provided in this application.
[0039] The access network device may be a transmission reception point (TRP), a base station, a relay station, a node or an access point, etc. The access network device may be an access network device in a 5G communication system or an access network device in a future evolution network. The access network device may be a base transceiver station (BTS) in a global system for mobile communication (GSM) or a code division multiple access (CDMA) network, or a base station (NodeB, NB) in a wideband code division multiple access (WCDMA), or an evolutionary NodeB (eNB) in a long term evolution (LTE), or a base station (gNodeB, gNB) in a new radio (NR). The access network device may also be a wireless controller in a cloud radio access network (CRAN) scenario. The embodiments of the present application will subsequently illustrate the technical solutions provided by the present application using base stations (e.g., base station 10, base station 20) as an example.
[0040] The terminal device may be user equipment (UE), an access terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a UE terminal, a wireless communication device, a UE agent, or a UE apparatus, etc. The access terminal may be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a wearable device, a terminal in a 5G network, or a terminal in a future evolved public land mobile network (PLMN) network, etc. The embodiments of the present application will subsequently illustrate the technical solutions provided by the present application using a user equipment UE (e.g., UE30) as an example.
[0041] In an embodiment of the present application, the base station shown in Figure 1 can be a base station in an LTE / NR communication system. The base station may include a carrier in a low-frequency band, such as a carrier in the B28 / n28 band; the base station may also include a carrier in a high-frequency band, such as a carrier in the n41 band. UE30 can use a carrier in the B28 / n28 band or a carrier in the n41 band to perform uplink transmission with the base station (that is, UE30 transmits a signal to the base station). At the same time, UE30 can also use a carrier in the B28 / n28 band or a carrier in the n41 band to perform downlink transmission with the base station (that is, the base station transmits a signal to UE30). Among them, the link used for uplink transmission between UE30 and the base station can be called an uplink (uplink, UL), and the link used for downlink transmission between UE30 and the base station can be called a downlink (downlink, DL).
[0042] In an embodiment of the present application, the UE30 shown in Figure 1 can be provided with two subscriber identity modules (SIMs), namely SIM card 1 and SIM card 2. In some embodiments, the UE30 can support eSIM cards. SIM card 1 and SIM card 2 are connected to different access network devices. This application takes SIM card 1 connected to base station 10 and SIM card 2 connected to base station 20 as an example. In one possible scenario, UE30 using SIM card 1 and SIM card 2 can communicate using dual SIM and dual access (DSDA) mode. In this communication mode, the two SIM cards can perform communication services at the same time. When the UE30 is configured with only one RF transmission channel (also called an uplink channel), the two SIM cards can use time division multiplexing to use the same RF transmission channel to transmit signals to the base station at different time periods. At this time, the mode in which the two SIM cards are located can be called time division duplex mode. The above-mentioned mode of sharing a set of RF transmission channels through time division multiplexing technology is also called RF sharing mode.
[0043] Referring to FIG. 2 , FIG. 2 shows a schematic structural diagram of an exemplary UE 30 provided in an embodiment of the present application.
[0044] UE30 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 194, and a subscriber identification module (SIM) card interface 195, etc.
[0045] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on UE 30. In other embodiments of the present application, UE 30 may include more or fewer components than illustrated, or may combine or separate certain components, or may have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0046] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, an uplink scheduling request timer (SR request timer), an uplink scheduling request counter (SR request counter), a measurement timer, a graphics processing unit (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). Different processing units may be independent devices or integrated into one or more processors.
[0047] The controller can be the nerve center and command center of the UE 30. The controller can generate operation control signals based on instruction operation codes and timing signals to complete the control of instruction fetching and execution.
[0048] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0049] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only for illustrative purposes and does not constitute a structural limitation on UE 30. In other embodiments of the present application, UE 30 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0050] The wireless communication function of UE 30 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0051] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in UE 30 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0052] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G, etc., applied to the UE 30. The mobile communication module 150 may include a radio frequency channel 205, which includes at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The radio frequency channel 205 only includes a transmit path TX and at least one receive path RX. The mobile communication module 150 can receive electromagnetic waves from the antenna 1 and transmit them to the modem processor for demodulation through the RX path of the radio frequency channel 205. The signal modulated by the modem processor can also be coupled to the antenna 1 through the TX path of the radio frequency channel 205, and the antenna 1 converts the signal into electromagnetic waves and radiates them out. 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.
[0053] The modem processor 201 may include a modulator and a demodulator. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
[0054] 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. applied on UE30. 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 antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through antenna 2.
[0055] In some embodiments, antenna 1 of UE 30 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that UE 30 can communicate with a network and other devices via wireless communication technologies. The wireless communication technologies 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 global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0056] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and disconnected from the UE30 by inserting or removing it from the SIM card interface 195. The UE30 can support one or N SIM card interfaces, where N is a positive integer greater than one. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. In an embodiment of the present application, the UE30 can support at least two SIM card interfaces, such as SIM card 1 and SIM card 2. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The UE30 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the UE30 uses an eSIM, i.e., an embedded SIM card, which can be embedded in the UE30.
[0057] For example, taking SIM card 1 as an example, the terminal device obtains the identification code of SIM card 1, selects a network with the user identity corresponding to SIM card 1 (such as the first user identity), and registers with the selected network (which can also be simply referred to as SIM card 1 registering with the network). After successful registration, SIM card 1 can initiate a random access procedure (RACH) and access the cell of the access network device (such as base station 10) in the selected network, enter the connected state, and then send uplink data packets of the service to base station 10, and receive downlink data packets sent by base station 10. Taking SIM card 2 as an example, the terminal device obtains the identification code of SIM card 2, selects a network with the user identity corresponding to SIM card 2 (such as the second user identity), and registers with the selected network. After successful registration, SIM card 2 can initiate a random access procedure and access the cell of the access network device (such as base station 20) in the selected network, enter the connected state, and then send uplink data packets of the service to base station 20, and receive downlink data packets sent by base station 20.
[0058] FIG3 shows a specific implementation of the communication process between the SIM card in UE 30 and the base station, taking the establishment of a connection between SIM card 2 and base station 20 as an example.
[0059] As shown in Figure 3, SIM card 2 in UE 30 connects to base station 20 through a random access process. The base station sends configuration information to the SIM card in the cell, and the configuration information includes the time slot ratio. SIM card 2 sends a radio resource control (RRC) connection establishment request to base station 20. After receiving the RRC connection establishment request, base station 20 sends an RRC connection establishment message to SIM card 2. The RRC connection establishment message includes resource information configured for the UE, and the resource information includes uplink control channel (physical uplink control channel, PUCCH) resource information. The PUCCH channel can be used to send an uplink scheduling request (SR) (hereinafter referred to as an SR request); time domain resources for uplink and downlink transmissions, and the time domain resources are distributed in a first time domain resource period. Optionally, the first time domain resource period can be 10ms, 40ms, etc. Taking a first time domain resource period of 10ms as an example, the SIM card can send an SR request via the PUCCH every 10ms. Information on the maximum number of scheduling request failures indicates the maximum number of times an electronic device can send an SR request to the base station while sending the same uplink data, as well as information on the minimum time interval between two SR requests. Based on the time slot allocation and time domain resources, SIM card 2 can send an SR request to base station 20 via the PUCCH during the designated time slot. UE 30 configures itself accordingly based on the configuration information and resource information, and sends an RRC connection establishment complete message to the base station. When the MADC layer buffer corresponding to SIM card 2 receives designated uplink data that needs to be sent to base station 20 (the designated uplink data can be voice data, video data, game data, etc.), control information containing an SR request is sent to base station 20 via the physical uplink control channel (PUCCH) in a designated time slot, triggering base station 20 to send an UL grant message. This UL grant message can be used to indicate the uplink physical shared channel (PUSCH) resource allocated by base station 20 to SIM card 2 in UE 30 and the designated time slot for UE 30 to send the designated uplink data through SIM card 2. After receiving the UL grant message, the SIM card can send the designated uplink data (data) and a buffer status report (BSR) in the designated time slot.The BSR is used to indicate to the base station 20 how much designated uplink data in the SIM card needs to be sent. The designated uplink data is located in a medium access control (MAC) layer buffer (hereinafter referred to as a MAC layer buffer) in the UE 30 .
[0060] In a possible scenario, the SIM card 2 is disconnected from the base station 20 , triggering a random access process to reconnect with the base station 20 .
[0061] In one possible scenario, UE 30 includes SIM card 1 and SIM card 2. SIM card 1 establishes a radio resource control (RRC) connection with base station 10. When SIM card 1 receives downlink data sent by base station 10 or sends uplink data, if SIM card 2 needs to trigger a random access process, since the terminal device has only one radio frequency receiving path, the terminal device needs to interrupt the related services running on SIM card 1 to use the radio frequency receiving path to receive data sent by base station 20 and perform the random access process. It can be seen that during the random access process initiated by SIM card 2, the radio frequency receiving path of the terminal device needs to receive data in the network to which SIM card 2 belongs, resulting in a long interruption of the services related to SIM card 1.
[0062] FIG4 shows a specific implementation of UE 30 sending an SR request.
[0063] To prevent the SIM card from frequently sending SR requests, which could result in excessive PUCCH channel load, UE30 uses an SR request timer to indicate the minimum time interval between two consecutive SR requests. When the SIM card sends an SR request to the base station, the SR request timer starts. During the SR request timer start time, the SIM card cannot send an SR request to the base station until the SR request timer is turned off. Optionally, the SR request timer can run for 2ms, 5ms, 10ms, 20ms, 50ms, etc. After the SR request timer starts and the aforementioned time expires, the SR request timer is turned off, and the SIM card can send an SR request to the base station after the SR request timer is turned off.
[0064] Among them, the SR request counter is used to indicate the number of times the SIM card fails to send an SR request. When the MAC layer buffer area corresponding to the SIM card receives designated uplink data that needs to be sent to the base station, the SIM card sends an SR request to the base station, and UE30 can reset the SR request counter to the initial value. Optionally, the initial value can be 0. Every time the SIM card sends an SR request, the SR request counter value gradually increases with a step size of 1. When the SIM card receives the UL grant information sent by the base station within the preset time after sending the SR request, the sending is successful. After the sending is successful, the next time the SIM card sends designated uplink data to the base station, UE30 initializes the SR request counter and resets the SR request counter to the initial value. When the SIM card does not receive the UL grant information sent by the base station within the preset time, the sending fails. The reason for the failure may be insufficient UE30 radio frequency channel resources, large transmission path loss, and inability to complete the data transmission. When the SIM card fails to send an SR request, the SIM card will send an SR request to the base station again. The value of the SR request counter will gradually increase in steps of 1 until the SIM card receives the UL grant information sent by the base station within a preset time, that is, the transmission is successful, or the value of the SR request counter is greater than or equal to the maximum number of failures of the electronic device to send an SR request, that is, the first threshold, and UE30 triggers a random access procedure (RACH). Optionally, the first threshold can be 32. The first threshold is configured by the base station and sent to UE30 through an RCC connection establishment message. UE30 performs corresponding configuration according to the RCC connection establishment message.
[0065] The SR request timer and the SR request counter are related to the SIM card running a low-priority service. When SIM card 1 in UE30 runs a high-priority service and SIM card 2 runs a low-priority service, the SR request timer is used to indicate the minimum time interval between two consecutive SR requests sent by SIM card 2, and the SR request counter is used to indicate the number of times SIM card 2 sends an SR request. When the value of the SR request counter reaches the first threshold, SIM card 2 disconnects from the base station 20, triggering a random access procedure. When SIM card 2 in UE30 runs a high-priority service and SIM card 1 runs a low-priority service, the SR request timer is used to indicate the minimum time interval between two consecutive SR requests sent by SIM card 1, and the SR request counter is used to indicate the number of times SIM card 1 sends an SR request. When the value of the SR request counter reaches the first threshold, SIM card 1 disconnects from the base station 10, triggering a random access procedure.
[0066] The measurement timer indicates the duration of the measurement gap (GAP) used by UE30 for inter-frequency measurements. During the GAP, UE30 stops sending and receiving data and performs cell signal measurements. If the measurement timer starts and the UE30 is unable to send uplink data while the measurement timer is running, it cannot send an SR request to the base station. UE30 resumes sending and receiving data until the measurement timer expires.
[0067] When the MAC layer buffer area corresponding to the SIM card in UE30 receives designated uplink data that needs to be transmitted to the base station, taking the transmission of designated uplink data by SIM card 2 to base station 20 as an example, the designated time slot that can be used to upload the SR request is determined based on the time slot ratio and time domain resources configured by base station 20 for SIM card 2. UE30 initializes the value M of the SR request counter and resets the value of the SR request counter to the initial value. Optionally, the initial value can be 0. As mentioned above, in one possible scenario, if SIM card 2 fails to send an SR request before sending this SR request, it is said that there is an ongoing SR, and the SR request counter does not perform the initialization operation, and maintains the current value M of the SR request counter.
[0068] S61: If the measurement timer is running, the following steps will not be executed until the measurement timer is turned off, and then step S62 will be executed.
[0069] If the measurement timer is running, the SR request is sent within the measurement gap period, and UE30 performs inter-frequency measurement. During the measurement gap period, UE30 stops sending and receiving data and performs cell signal measurement. Therefore, UE30 cannot send any uplink data, including the SR request, until the measurement timer expires and step S62 is executed.
[0070] S62: If the SR request timer is running, the following steps will not be executed until the SR request timer is closed, and then step S63 will be executed.
[0071] The SR request timer indicates the minimum time interval between two consecutive SR requests sent by the terminal device. When SIM card 2 sends an SR request, the SR request timer starts. While the SR request timer is running, SIM card 2 cannot send an SR request until the SR request timer is deactivated. Optionally, the SR request timer can run for 2ms, 5ms, 10ms, 20ms, 50ms, or other time periods. After the SR request timer starts and expires after any of these time periods, the SR request timer is deactivated and step S63 is executed.
[0072] S63: When the value M of the SR request counter is less than the first threshold, execute step S64; when the value M of the SR request counter is greater than or equal to the first threshold, execute step S65.
[0073] The value of the SR request counter is M. During the process of SIM card 2 sending uplink data specified by the same content, SIM card 2 sends an SR request to the base station 20. In one possible scenario, during the process of SIM card 2 sending uplink data specified by the same content, it has not yet sent an SR request to the base station 20, and the SR request counter is initialized so that the value M of the SR request counter is reset to an initial value. Optionally, the initial value may be 0, and M=0. In another possible scenario, if SIM card 2 does not receive the UL grant information sent by the base station 20 within a preset time, the SR request fails to be sent, and the SIM card will send the SR request again. If SIM card 2 fails to send the SR request N times, the SR request counter records the number of times SIM card 2 sends the SR request, and M=N.
[0074] The first threshold value indicates the maximum number of failures of the SIM card in UE30 to send an SR request to the base station during the transmission of the same specified uplink data. Optionally, the first threshold value may be 32. The first threshold value is configured by the base station and sent to UE30 via an RCC connection establishment message. UE30 performs corresponding configuration based on the RCC connection establishment message. The above steps S61 to S63 can be interchanged in order, and this application does not impose any restrictions on this.
[0075] S64: The SR request counter value M is incremented in steps of 1. Step S66 is executed. Steps S64 and S66 can be performed in an interchangeable order or simultaneously, which is not limited in this application.
[0076] The SR request counter indicates the number of times SIM card 2 sends an SR request. When SIM card 2 prepares to send an SR request, as previously described, in one possible scenario, if the SR request counter value M = 0 during this SR request, then M = 0 + 1. In another possible scenario, if the SR request counter value M = N during this SR request, then M = N + 1.
[0077] S65 . The SIM card 2 in the UE 30 disconnects from the base station 20 , triggering a random access process.
[0078] When the value M of the SR request counter is equal to the first threshold, the SIM card 2 sends an SR request to the base station 20 at least the first threshold number of times, but the sending fails and the specified uplink data cannot be sent to the base station 20. The connection with the base station 20 is disconnected, the random access process is triggered, and the base station 20 is reconnected.
[0079] S66: SIM card 2 sends an SR request to base station 20. Execute step S67.
[0080] According to the time slot ratio and time domain resources configured by the base station 20 for the SIM card 2, it is determined that the designated time slot that can be used to upload the SR request is the second time slot. Then, the SIM card 2 can send control information including the SR request to the base station 20 in the second time slot.
[0081] UE 30 allocates radio frequency channel resources to SIM card 2 and sends an SR request to base station 20 in the second time slot.
[0082] S67: Start the SR request timer.
[0083] The SR request timer is used to indicate the minimum time interval between two consecutive SR requests sent by SIM card 2. When SIM card 2 sends an SR request, the timer needs to be started to control the time when SIM card 2 sends the next SR request. Until the SR request timer is turned off, the SIM card can send an SR request.
[0084] The base station to which the SIM card in UE30 is connected configures time domain resources for uplink transmission for the SIM card. These time domain resources can include uplink time slots, downlink time slots, and flexible time slots. For example, Figure 5A shows the time domain resources configured by base station 10 for SIM card 1, including the first time slot; and the time domain resources configured by base station 20 for SIM card 2, including the second time slot. In this example of time domain resources, the period can be 5ms, and the arrangement of the various time slot types in each period of SIM card 1 can be "DDDSUDDSUU," where D represents a downlink time slot, U represents an uplink time slot, and S represents a flexible time slot. All OFDM (Orthogonal Frequency Division Multiplexing) symbols in the downlink time slot are used for downlink transmission. All OFDM symbols in the uplink time slot are used for uplink transmission. OFDM symbols in the flexible time slot can be used for both uplink and downlink transmission. The arrangement of the various time slot types in each period of SIM card 2 can be "DDDDDDDDSU." Based on the time slot allocation and time domain resources configured by the base station for the SIM card, the SIM card can send an SR request to the base station in a specified time slot. Taking a 10ms period for the first time domain resource as an example, the base station configures PUCCH channel resources for the SIM card every 10ms. At this time, there is a second time slot available for uplink data transmission, such as an uplink time slot or a flexible time slot. The SIM card can use the PUCCH channel to send an SR request in the second time slot. The following embodiment uses the example of the base station configuring time domain resources for SIM card 2 in the second time slot, and the second time slot is used for uplink data transmission. In this case, SIM card 2 can send an SR request in the second time slot.
[0085] For example, when SIM card 1 needs to send uplink data to base station 10 in the first time slot, SIM card 2 needs to send uplink data to base station 20 in the second time slot. In scenario one, the first time slot is an uplink time slot; the second time slot is a flexible time slot. During the time period between the first and second time slots, both SIM card 1 and SIM card 2 need to use the UE30 radio frequency transmission channel to transmit data to the base station. In scenario two, the first time slot is an uplink time slot, and the second time slot is an uplink time slot. During the time period between the first and second time slots, both SIM card 1 and SIM card 2 need to use the UE30 radio frequency transmission channel to transmit data to the base station. In scenario three (not shown in the figure), the first time slot is a flexible time slot, and the second time slot is an uplink time slot. During the time period between the first and second time slots, both SIM card 1 and SIM card 2 need to use the UE30 radio frequency transmission channel to transmit data to the base station. The time periods of the first time slot and the second time slot overlap, and the overlap of the time periods may be complete, as shown in FIG5A ; or partial, and optionally, the partial overlap may be an overlap of 1 microsecond, as shown in FIG5B and FIG5C .
[0086] In the above three situations, since UE30 is only configured with one RF transmission channel and is in RF sharing mode, UE30 needs to decide the priority of RF transmission channel resource configuration, that is, to prioritize the configuration of RF transmission channel resources for SIM card 1 or SIM card 2. In the above RF sharing mode, before each time slot for sending uplink data of SIM card 1 and SIM card 2 arrives, UE30 detects whether the time slot overlaps with other time slots for sending uplink data. When SIM card 1 in UE30 needs to send uplink data in the first time slot, UE30 detects the first time slot before the arrival of the first time slot to determine whether the first time slot overlaps with other time slots for transmitting uplink data. When SIM card 2 in UE30 needs to send uplink data in the second time slot, UE30 detects the first time slot before the start time of the second time slot to determine whether the second time slot overlaps with other time slots for transmitting uplink data. In one possible scenario, when SIM card 1 in UE30 needs to send uplink data in the first time slot and SIM card 2 needs to send uplink data in the second time slot, before the first time slot or the second time slot arrives, UE30 confirms that the time periods of the first time slot and the second time slot coincide.
[0087] UE30 can allocate radio frequency transmission resources to each SIM card based on the priority of the SIM card's running service, and give priority to allocating resources to SIM cards running high-priority services. Figure 6 shows the specific implementation of the resource allocation decision-making scheme based on service priority. As shown in Figure 6, UE30 can pre-set the priority of each service, for example, setting services with higher real-time requirements (such as voice calls, etc.) as high-priority services, and setting services with lower real-time requirements (such as video browsing, web browsing, etc.) as low-priority services. Or, instead of pre-setting, the real-time requirements of each service can be determined in real time, and this application does not impose any restrictions on this. SIM card 1 in UE30 sends the first uplink data in the first time slot. Optionally, the first uplink data can be voice call service data, video call service data, video browsing service data or web browsing service data, signaling, etc. SIM card 2 in UE30 sends the second uplink data in the second time slot. Optionally, the second uplink data can be voice call service data, video call service data, video browsing service data or web browsing service data, signaling, etc.
[0088] The time periods of the first time slot and the second time slot overlap, and the overlap of the time periods may be complete overlap or partial overlap. Optionally, the partial overlap may be an overlap of 1 microsecond.
[0089] UE30 determines service priority based on the first and second uplink data. For example, if the first uplink data is voice call service data and the second uplink data is an SR request, the first uplink data has a higher priority than the second uplink data, and the first uplink data is determined to be high-priority service data. UE30 prioritizes allocating resources to SIM card 1, which is running a high-priority service. SIM card 1 occupies the RF transmission channel to send high-priority service data to base station 10, while SIM card 2 cannot use the RF transmission channel to send an SR request. In another possible scenario, if the first uplink data is a web browsing request and the second uplink data is a voice call request, the second uplink data has a higher priority than the first uplink data, and the second uplink data is determined to be high-priority service data. UE30 prioritizes allocating resources to SIM card 2, which is running a high-priority service. SIM card 2 occupies the RF transmission channel to send high-priority service data to base station 20, while SIM card 1 cannot use the RF transmission channel to send data. In this embodiment of the application, SIM card 1 is running a high-priority service and SIM card 2 is running a low-priority service. In this case, the first uplink data has a higher priority than the second uplink data.
[0090] For example, Figures 7A to 7D show a schematic diagram of a UE30 desktop. As shown in Figure 7A, the desktop displayed by UE30 includes a status bar 711, wherein the status bar 711 may include one or more signal strength indicators of two mobile communication signals (also referred to as cellular signals), such as signal strength indicator 711A (indicating the signal strength of SIM card 1) and signal strength indicator 711B (indicating the signal strength of SIM card 2). Taking the example of UE30 using the network data traffic of SIM card 2 by default, there is a network data traffic mark 711C next to the signal strength indicator 711B. When there is a voice call service request for SIM card 1, the UE30 desktop is as shown in Figure 7B. At this time, SIM card 2 can run the service, and at this time, there is still a network data traffic mark 711C next to the signal strength indicator 711B. As shown in Figure 7C, when SIM card 1 is performing a voice call service, the signal strength indicator 711A changes to a call indication mark 711D; SIM card 2 can run a web browsing service, and there is still a network data flow mark 711C next to the signal strength indicator 711B. In another possible interface, the signal strength indicator 711A and the signal strength indicator 711B are not displayed in the interface, and are changed to a call time mark 711E, as shown in Figure 7D.
[0091] For example, in UE30, SIM card 1 has data in the first time slot that needs to be transmitted to base station 10, and SIM card 2 has data in the second time slot that needs to be transmitted to base station 20. The time periods of the first time slot and the second time slot overlap. The overlap of the time periods can be complete overlap or partial overlap. Optionally, the partial overlap can be an overlap of 1 microsecond. Since UE30 is only configured with one RF transmission channel, RF channel resources are allocated based on the priority of the SIM card's service. UE30 preferentially allocates uplink RF channel resources to SIM card 1 running a high-priority service, that is, SIM card 1 occupies the uplink channel during this time, and SIM card 2 running a low-priority service cannot use the uplink channel, and therefore cannot send uplink data including the SR request. When SIM card 2 sends an SR request to base station 20, steps S61 to S65 described above can be executed. However, since SIM card 1 is occupying the uplink radio frequency channel to run a high-priority service, SIM card 2 cannot execute step S66 and send an SR request to base station 20. At this time, the SR request counter is still counting up in steps of 1. When the SR request counter reaches the second threshold, SIM card 2 triggers a random access process. Since UE 30 only has one radio frequency transmission channel, UE 30 needs to interrupt the service related to SIM card 1 to use the radio frequency transmission channel to send data to base station 20, so that SIM card 2 performs a random access process. In the process of completing the random access initiated by SIM card 2, the radio frequency transmission channel of the terminal device needs to be sent in the network to which SIM card 2 belongs, which causes the service of SIM card 1 to be interrupted for a long time, affecting the normal operation of SIM card 1. In addition, there is a risk of disconnection between SIM card 1 and base station 10. At the same time, SIM card 2 enters the random access process and reconnects to base station 20, which takes a long time. If the connection between SIM card 2 and base station 20 is stable at this time and the signal quality is good, it can meet the data transmission and reception between SIM card 2 and base station 20. However, the SR request sent by SIM card 2 fails only because it is in the second time slot, which coincides with the first time slot. In this case, the random access process is triggered, which not only takes a long time, but also may cause the network connection to be disconnected during the process of reconnecting to base station 20. At the same time, the SR request counter quickly reaches the maximum number of transmissions, and SIM card 2 triggers the random access process, affecting the user experience of SIM card 2 running a low-priority service card.
[0092] To solve the above problem, an embodiment of the present application provides a specific process for sending an SR request.
[0093] Please refer to Figure 8, which exemplifies a specific flow chart of sending an SR request provided by an embodiment of the present application. Take the case where the MAC layer buffer area corresponding to the SIM card 2 in the UE30 receives designated uplink data and needs to send an SR request to the base station 20 in the second time slot as an example. In one possible scenario, in the process of sending the designated uplink data, an SR request is sent to the base station 20 for the first time, and the UE30 initializes the SR request counter value and resets the SR request counter value M to the initial value. Optionally, the initial value can be 0. In one possible scenario, the UE30 fails to send an SR request before sending this SR request, that is, it does not receive the UL grant information sent by the base station 20 within the preset time, which is called an ongoing SR. At this time, the initialization step is not performed, and the SR request counter and the coincidence counter do not perform the initialization operation, and the current value M of the SR request counter is maintained.
[0094] As shown in FIG8 , the specific process of the method may include:
[0095] S901: If the measurement timer is running, the following steps will not be executed until the measurement timer is turned off, and then step S902 will be executed.
[0096] If the measurement timer is running, the SR request is sent within the measurement gap period, and UE30 performs inter-frequency measurement. During the measurement gap period, the terminal device stops sending and receiving data and performs cell signal measurement. Therefore, the UE30 device cannot send all uplink data, including the SR request, until the measurement timer is turned off and step S902 is executed.
[0097] S902: If the SR request timer is running, the following steps will not be executed until the SR request timer is closed, and then step S903 will be executed.
[0098] The SR request timer indicates the minimum interval between two consecutive SR requests from SIM card 2. When SIM card 2 sends an SR request, the SR request timer starts. While the SR request timer is running, SIM card 2 cannot send another SR request until the SR request timer expires. Optionally, the SR request timer can run for 2ms, 5ms, 10ms, 20ms, 50ms, or other time periods. After the SR request timer starts and expires after any of these time periods, the SR request timer is deactivated and step S903 is executed.
[0099] S903 : When the value M of the SR request counter is less than the first threshold, execute step S904 ; when the value M of the SR request counter is greater than or equal to the first threshold, execute step S905 .
[0100] The value of the SR request counter is M. During the process of SIM card 2 sending uplink data specified by the same content, SIM card 2 sends an SR request to the base station 20. In one possible scenario, during the process of SIM card 2 sending uplink data specified by the same content, it has not yet sent an SR request to the base station 20, and the SR request counter is initialized so that the value M of the SR request counter is reset to an initial value. Optionally, the initial value may be 0, and M=0. In another possible scenario, if SIM card 2 does not receive the UL grant information sent by the base station 20 within a preset time, the SR request fails to be sent, and SIM card 2 will send the SR request again. SIM card 2 fails to send the SR request N times, and the SR request counter records the number of times SIM card 2 fails to send the SR request, and M=N.
[0101] The first threshold is used to indicate the maximum number of failures of SIM card 2 in UE30 to send an SR request to the base station during the process of sending the same specified uplink data. Optionally, the first threshold can be 32. The first threshold is configured by the base station and sent to UE30 through an RCC connection establishment message. UE30 performs corresponding configuration according to the RCC connection establishment message.
[0102] The order of the above steps S901 to S903 can be interchanged, and this application does not impose any restrictions on this.
[0103] S904: SIM card 2 disconnects from base station 20, triggering a random access process.
[0104] When the value M of the SR request counter is greater than or equal to the first threshold, the SIM card 2 sends the first threshold number of SR requests to the base station 20, but does not receive the UL grant information sent by the base station 20. The sending fails, and the connection with the base station 20 is disconnected, triggering the random access process, and the SIM card 2 reconnects with the base station 20.
[0105] S905: If the first time slot and the second time slot overlap, execute step S906; if the first time slot and the second time slot do not overlap, execute step S908.
[0106] SIM card 1 sends uplink data in the first time slot, and SIM card 2 sends an SR request to base station 20 in the second time slot. The time periods of the first time slot and the second time slot overlap. The overlap in the time periods may be complete or partial. Optionally, the partial overlap may be an overlap of 1 microsecond.
[0107] When the time periods of the first time slot and the second time slot coincide, since UE30 is only configured with one RF transmission channel, RF channel resources are allocated based on the priority of the SIM card's services. UE30 prioritizes allocating uplink RF channel resources to SIM card 1, which is running a high-priority service. That is, if SIM card 1 occupies the uplink channel during this time, SIM card 2, which is running a low-priority service, cannot use the uplink channel and cannot send uplink data including the SR request, resulting in a failure to send the SR request. When the time periods of the first time slot and the second time slot do not coincide, the time periods of the first time slot and the second time slot do not coincide at all, and SIM card 2 can send an SR request to base station 20.
[0108] S906: Maintain the value of the SR request counter M. Execute step S907.
[0109] The SR request counter indicates the number of times SIM card 2 has failed to send an SR request. The SR request counter maintains its current value, meaning that the current SR request is not recorded and the number of failed SR requests is maintained at the current value. As previously described, in one possible scenario, the number of failed SR requests prior to the current SR request is zero, and the SR request counter value M = 0, so M is maintained at 0. In another possible scenario, the number of failed SR requests prior to the current SR request is N, and the SR request counter value M = N, so M is maintained at N.
[0110] S907: Give up sending the SR request and execute step S910.
[0111] Since the first time slot coincides with the second time slot, SIM card 1 occupies the uplink channel during this period, and SIM card 2 cannot send an SR request. Therefore, it abandons sending the SR request. At the same time, the SR request counter does not record the sending of the SR request, and maintains the SR request counter value M=N or M=0.
[0112] In one possible scenario, the base station 20 allocates time slots for sending uplink data to the SIM card 2, but never receives uplink data sent from the SIM card 2. When the number of allocated time slots reaches a preset threshold, the base station 20 reconnects with the SIM card 2.
[0113] In another possible scenario, the terminal device UE30 includes a monitoring counter, which monitors the number of times the SIM card gives up sending the SR request. When the value of the monitoring counter reaches a fifth threshold, which is greater than the first threshold, the SIM card reconnects to the base station.
[0114] Steps S906 and S907 can be performed in interchangeable orders or simultaneously, and this application does not impose any restrictions on this.
[0115] S908: The SR request counter value M is incremented in steps of 1. Step S909 is executed. Steps S908 and S909 can be interchanged in order, which is not limited in this application.
[0116] The SR request counter indicates the number of failed SR requests by SIM card 2. When SIM card 2 prepares to send an SR request, as previously described, in one possible scenario, if the SR request counter value M = 0 during this SR request, then M = 0 + 1. In another possible scenario, if the SR request counter value M = N during this SR request, then M = N + 1.
[0117] S909: SIM card 2 sends an SR request to base station 20. Execute step S910.
[0118] The base station 20 configures PUCCH resources for the SIM card 2 in the second time slot, and the SIM card 2 can send control information including an SR request to the base station in the second time slot.
[0119] UE 30 allocates radio frequency channel resources to SIM card 2 and sends an SR request to base station 20 in the second time slot.
[0120] S910: Start the SR request timer.
[0121] The SR request timer indicates the minimum time interval between two consecutive SR requests sent by SIM card 2. When SIM card 2 sends an SR request, the SR request timer is started. The SR request timer controls the time when SIM card 2 sends the next SR request. When the SR request timer ends, SIM card 2 can send an SR request again.
[0122] When the number of SR request transmissions reaches the maximum number of failed SR request transmissions, the SIM card initiates a random access procedure. The above embodiment does not record the number of failed SR request transmissions due to time slot overlap, effectively breaking the maximum number of failed SR request transmissions and increasing the number of SR request transmissions.
[0123] Since time domain resources are distributed according to a first time domain resource period, and the SIM card sends an SR request based on the first time domain resource period, the time elapsed from when the SIM card first sends an SR request after receiving a data packet from the MAC layer buffer to initiating a random access procedure is equal to the maximum number of failed SR request transmissions times the first time domain resource period. Through the above embodiment, in the event of time slot overlap, this embodiment does not record the number of failed SR request transmissions due to time slot overlap, thereby effectively extending the time elapsed from when the data packet is received in the MAC layer buffer to initiating a random access procedure. That is, the time elapsed is longer than the maximum number of failed SR request transmissions times the first time domain resource period.
[0124] The above embodiment prevents SIM card 2 from occupying the UE 30 radio frequency channel and triggering the random access process prematurely, thereby preventing SIM card 1 from causing a long interruption in its service and increasing the risk of network disconnection. At the same time, the success rate of SIM card 2 sending an SR request is increased, and the risk of SIM card 2 being disconnected from the network during the random access process is avoided.
[0125] This embodiment of the present application provides another specific process for sending an SR request.
[0126] Please refer to Figure 9, which exemplifies a specific flow chart of sending an SR request provided by an embodiment of the present application. Taking the case where the MAC layer buffer area corresponding to the SIM card 2 in the UE30 receives the specified uplink data and needs to send an SR request to the base station 20 in the second time slot as an example, the UE30 initializes the SR request counter value and resets the SR request counter value M to the initial value. Optionally, the initial value can be 0. As mentioned above, in one possible scenario, the UE30 fails to send the SR request before sending this SR request, that is, it does not receive the UL grant information sent by the base station 20 within the preset time, which is called an ongoing SR. At this time, the initialization step is not performed, and the SR request counter does not perform the initialization operation, and the current value M of the SR request counter is maintained.
[0127] Steps S1001 to S1004 are the same as the above-mentioned steps S901 to S904 and will not be repeated here.
[0128] S1005: If the first time slot and the second time slot overlap, execute step S1006; if the first time slot and the second time slot do not overlap, execute step S1009.
[0129] SIM card 1 sends uplink data in the first time slot, and SIM card 2 sends an SR request to base station 20 in the second time slot. The time periods of the first time slot and the second time slot overlap. The overlap in the time periods may be complete or partial. Optionally, the partial overlap may be an overlap of 1 microsecond.
[0130] When the time periods of the first time slot and the second time slot coincide, since UE30 is only configured with one RF transmission channel, RF channel resources are allocated based on the priority of the SIM card's services. UE30 prioritizes allocating uplink RF channel resources to SIM card 1, which is running a high-priority service. That is, if SIM card 1 occupies the uplink channel during this time, SIM card 2, which is running a low-priority service, cannot use the uplink channel and cannot send uplink data including the SR request, resulting in a failure to send the SR request. When the time periods of the first time slot and the second time slot do not coincide, the time periods of the first time slot and the second time slot do not coincide at all, and SIM card 2 can send an SR request to base station 20.
[0131] S1006: If the first indication information is less than the second threshold, execute step S1007. If the first indication information is greater than or equal to the second threshold, execute step S1012.
[0132] The first indication information is used to indicate the signal quality of the current communication path between the SIM card 2 and the base station 20 , which is the communication path loss between the SIM card 2 and the base station 20 .
[0133] When the first indication information is less than or equal to the second threshold, it can be considered that the communication path loss between SIM card 2 and base station 20 is less than the second threshold, and the current communication path signal quality is good and can meet the requirements for sending and receiving data between SIM card 2 and base station 20. Optionally, the second threshold can be 100dB.
[0134] In another implementation, the first indication information may also be a reference signal receiving power (RSRP), a received signal strength (RSSI), a signal-to-noise ratio (SNR or S / N), a channel quality indication (CQI), etc. In this implementation, when the first indication information is greater than the fourth threshold, optionally, the fourth threshold may be -80dB. It may be considered that the signal quality of the current communication path is good and can meet the requirements for sending and receiving data between the SIM card 2 and the base station 20, and then step S1007 is executed.
[0135] When the first indication information is greater than or equal to the second threshold, it can be considered that the signal quality of the current communication path is poor and cannot meet the requirements for sending and receiving data between SIM card 2 and base station 20. In this case, base station 20 is likely unable to receive uplink data sent by SIM card 2, including the SR request. Optionally, the second threshold can be 100dB.
[0136] In another implementation, the first indication information may also be Reference Signal Receiving Power (RSRP), Received Signal Strength Indicator (RSSI), Signal-Noise Radio (SNR or S / N), Channel Quality Indication (CQI), etc. In this implementation, when the first indication information is less than or equal to the fourth threshold, it can be considered that the signal quality of the current communication path is poor and cannot meet the requirements for sending and receiving data between SIM card 2 and base station 20. In this case, base station 20 is likely unable to receive uplink data including the SR request from SIM card 2, and step S1012 is executed.
[0137] S1007: Maintain the value M of the SR request counter. Execute step S1008.
[0138] The SR request counter indicates the number of times SIM card 2 has failed to send an SR request. The SR request counter maintains its current value, meaning that the current SR request is not recorded, and the number of failed SR requests is maintained at the current value. As previously described, in one possible scenario, the number of failed SR requests prior to the current SR request is zero, and the SR request counter value M = 0, so M is maintained at 0. In another possible scenario, the number of failed SR requests prior to the current SR request is N, and the SR request counter value M = N, so M is maintained at N.
[0139] S1008. Give up sending the SR request and execute step S1011.
[0140] When the communication signal quality between SIM card 2 and base station 20 is good, since the first time slot and the second time slot coincide with each other, SIM card 1 occupies the uplink channel and SIM card 2 cannot send an SR request. Therefore, SIM card 2 abandons sending the SR request and the SR request counter does not record the sending of the SR request, maintaining the SR request counter value M=N or M=N.
[0141] Through the above scheme, when the signal quality of the communication path is good, the number of failed SR requests due to time slot overlap is not recorded. Since the time domain resources are distributed according to the first time domain resource period, the SIM card sends the SR request based on the first time domain resource period. Then, the time elapsed from the first SR request sent by the SIM card after receiving the data packet from the MAC layer buffer to the initiation of the random access process is the maximum number of failed SR requests times the first time domain resource period. Through the above scheme, in the case of time slot overlap, this embodiment does not record the number of failed SR requests due to time slot overlap, thereby actually extending the time taken from the receipt of the data packet in the MAC layer buffer to the initiation of the random access process, that is, the time taken is longer than the maximum number of failed SR requests times the first time domain resource period.
[0142] This prevents SIM card 2 from occupying the UE30 radio channel and triggering the random access process prematurely, improves the success rate of SIM card 2 sending the SR request, avoids a long interruption of SIM card 1's service operation, and increases the risk of network disconnection. At the same time, it also avoids the risk of network disconnection during the random access process of SIM card 2.
[0143] In one possible scenario, the base station 20 allocates uplink time slots to the SIM card 2 but never receives uplink data from the SIM card 2. When the number of allocated uplink time slots reaches a preset threshold, the base station 20 reconnects with the SIM card 2.
[0144] In another possible scenario, the terminal device UE30 includes a monitoring counter, which monitors the number of times the SIM card gives up sending the SR request. When the value of the monitoring counter reaches a fifth threshold, which is greater than the first threshold, the SIM card reconnects to the base station.
[0145] Steps S1009 to S1011 are the same as the above-mentioned steps S908 to S910 and will not be repeated here.
[0146] S1012: If the value M of the SR request counter is less than the third threshold, execute step S1013. If the value M of the SR request counter is greater than or equal to the third threshold, return to execute step S1004 to trigger the random access process.
[0147] The third threshold is used to indicate the number of times the SIM card 2 fails to send an SR request to the base station 20 , and the third threshold is smaller than the first threshold.
[0148] When the value M of the SR request counter is greater than or equal to the third threshold, SIM card 2 in UE 30 is disconnected from base station 20, triggering a random access process and reconnecting to base station 20. Since the third threshold is less than the first threshold, SIM card 2 can trigger the random access process in advance when the signal quality of the current communication path is poor, which reduces the maximum number of failures in sending SR requests and shortens the time from receiving a data packet in the MAC layer buffer corresponding to SIM card 2 to initiating the random access process. In other words, the time taken is shorter than the maximum number of failures in sending SR requests times the time taken for the first time domain resource period. In the case of poor communication path signal quality, there is a high possibility that base station 20 will not receive the SR request sent by SIM card 2. In this case, triggering the random access process in advance and reconnecting to the base station can improve the success rate of SIM card 2 in sending uplink data and save radio frequency channel resources and time.
[0149] S1013: The SR request counter value M is incremented in steps of 1. Execute step S1008.
[0150] The SR request counter indicates the number of failed SR requests by SIM card 2. When SIM card 2 prepares to send an SR request, as previously described, in one possible scenario, if the SR request counter value M = 0 during this SR request, then M = 0 + 1. In another possible scenario, if the SR request counter value M = N during this SR request, then M = N + 1.
[0151] S1008. Give up sending the SR request and execute step S1011.
[0152] If the communication signal quality between SIM card 2 and base station 20 is poor and cannot meet the data transmission and reception requirements between SIM card 2 and base station 20, there is a high possibility that base station 20 will not receive the SR request sent by SIM card 2. In this case, sending SR requests multiple times not only wastes radio frequency channel resources but also increases the time required to send the specified uplink data. Therefore, the SR request is abandoned.
[0153] S1011. Start the SR request timer.
[0154] The SR request timer indicates the minimum time interval between two consecutive SR requests sent by SIM card 2. When SIM card 2 sends an SR request, the SR request timer is started. The SR request timer controls the time when SIM card 2 sends the next SR request. When the SR request timer ends, SIM card 2 can send an SR request again.
[0155] In the embodiment of the present application, during the time period when the high-priority service card occupies the uplink channel, the SR request sending process is adaptively adjusted based on the communication signal quality between the low-priority service card and the access network device, thereby saving time domain resources and radio frequency channel resources while improving the data transmission success rate between the low-priority service card and the access network device.
[0156] Based on the relevant explanations in the above embodiments, the following describes relevant products applicable to this application, such as chips and devices. Please refer to Figure 10, which is a structural diagram of a system chip provided by an embodiment of the present invention. The system chip 300 shown in Figure 10 includes an application processor 301 (application processor, AP) and a baseband processor 302 (baseband processor, BP).
[0157] The full name of the application processor is multimedia application processor (MAP), which refers to a very large-scale integrated circuit that expands audio and video functions and dedicated interfaces on the basis of a low-power central processing unit (CPU). Application processors are mainly divided into three categories, including full-scale processors, multimedia processors and single-media processors. Full-scale processors must have the functions of a multimedia application processor and can also run complex operating systems such as Linux. Multimedia processors refer to processors that process more than two media, such as images, sounds, videos, and 3D graphics. Single-media processors refer to processors that process one type of media, usually only used to process images or sounds.
[0158] The baseband processor is a key component in the system-on-chip (SoC), acting as a protocol processor responsible for data processing and storage. It primarily consists of a digital signal processor (DSP), a microcontroller unit (MCU), and memory (such as flash memory). Its primary functions include baseband encoding and decoding, sound encoding, and voice encoding. Currently, baseband processors not only support multiple communication standards (such as GSM, LTE, CDMA, and 5G NR), but also provide multimedia capabilities and communication interfaces for multimedia displays, image sensors, and audio devices.
[0159] In practice, the application processor (AP) typically supports software running including operating systems, user interfaces, and applications. The baseband processor (BP) can be considered a wireless modem module, responsible for coordinating and controlling communications between the BP and base stations and APs. Software supported by the BP includes baseband modem communication control software.
[0160] The application processor (AP) and the baseband processor (BP) support mutual communication using a preset interface technology. This interface technology can be customized by the system and includes, for example, but not limited to, the serial peripheral interface (SPI), universal asynchronous receiver / transmitter (UART), universal serial bus (USB), and general purpose input / output (GPIO). Specifically, the application processor and the baseband processor can communicate with each other via control commands in the form of messages to facilitate functions such as calls, short messages, and mobile Internet access. Such control commands may include traditional AT (attention) commands, mobile broadband interface model (MBIM) commands, or other protocol commands that support communication between the AP and BP.
[0161] Optionally, as shown in FIG10 , the baseband processor BP supports running protocol software related to the physical layer and the RRC layer. In actual applications, the application processor AP supports communication with the RRC layer in the baseband processor BP. For example, in the present application, the application processor AP can use traditional AT commands to send corresponding signaling messages to the RRC layer to notify the RRC layer of information such as the application status currently known by the AP (for example, UE30 is turned on, UE30 turns off the flight mode), thereby triggering the RRC layer to execute the network search process.
[0162] Optionally, the physical layer in the baseband processor BP supports the execution of the method steps described in any of the method embodiments described in Figures 3 to 9 above with the physical layer as the execution subject, and / or other technical contents described herein. The RRC layer in the baseband processor BP supports the execution of the method steps described in any of the method embodiments described in Figures 3 to 9 above with the RRC layer as the execution subject, and / or other technical contents described herein.
[0163] In actual applications, the system chip 300 generally refers to a highly complex system chip, such as an SOC chip. In actual deployment, it can be deployed inside the device or outside the device, and the control of the device can be achieved through a wired connection or a wireless connection. The device includes but is not limited to UE30 or terminal devices, for example, it may specifically include smart phones, mobile Internet devices (MIDs), wearable smart devices or other devices that support network communication. Specifically, when the system chip 1000 is deployed inside the terminal device, the system chip 300 is directly used to implement the method described in any of the method embodiments described in Figures 3 to 9 above. When the system chip 300 is deployed outside the terminal device and supports establishing communication between the system chip 300 and the terminal device through a wired or wireless connection, the terminal device implements the method described in any of the method embodiments described in Figures 3 to 9 above by calling or controlling the system chip 300.
[0164] The present application also provides a computer-readable storage medium. The methods described in the above method embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any available medium that can be accessed by a computer.
[0165] As an optional design, the computer-readable storage medium may include RAM, ROM, EEPROM, CD-ROM or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by the computer. Moreover, any connection is properly referred to as a computer-readable medium.
[0166] The present application also provides a computer program product. The methods described in the above method embodiments can be implemented in whole or in part through software, hardware, firmware, or any combination thereof. If implemented in software, they can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, the processes or functions described in the above method embodiments are generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable device.
[0167] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A communication method, applied to an electronic device, wherein the electronic device supports two identity recognition modules and is configured with only one radio frequency transmission channel, characterized in that: The method comprises: The electronic device is connected to the first access network device via the first identity recognition module, and the electronic device is connected to the second access network device via the second identity recognition module; Receiving first configuration information sent by the first access network device, where the first configuration information includes one or more time slots allocated by the first access network device to the electronic device; receiving second configuration information sent by the second access network device, where the second configuration information includes one or more time slots allocated by the second access network device to the electronic device; Receive a maximum number of failures for the electronic device to send a scheduling request sent by the second access network, where the maximum number of failures is X; receiving a first time domain resource sent by the second access network, where the first time domain resource is distributed in a first time domain resource period, and the first time domain resource is used by the electronic device to send the scheduling request; receiving a data packet in a media access control layer buffer area corresponding to the second identity recognition module, and sending first uplink data to the first access network device in at least one first time slot, wherein the at least one first time slot overlaps with at least one second time slot, and the at least one second time slot is used by the electronic device to send the scheduling request to the second access network device; Initiating a random access process to the second access network device; The time from receiving the data packet in the media access control layer buffer to initiating the random access process is shorter than a preset threshold, and the preset threshold is the time taken to experience X first time domain resource cycles.
2. The method according to claim 1, characterized in that: The overlap between the at least one first time slot and the at least one second time slot includes that the time periods of the at least one first time slot and the at least one second time slot partially overlap, or that the time periods of the at least one first time slot and the at least one second time slot completely overlap.
3. The method according to claim 2, characterized in that: The first uplink data priority is higher than the scheduling request priority.
4. The method according to claim 3, characterized in that When the number of scheduling requests sent is equal to a third threshold, the random access process is initiated to the second access network device, the third threshold is less than the first threshold, the first threshold is X, and the number of scheduling requests sent is the number of times the electronic device fails to send the scheduling request.
5. The method according to claim 4, characterized in that: When the number of times the scheduling request is sent is less than a third threshold, the electronic device stops sending the scheduling request.
6. The method according to claim 5, characterized in that: When the at least one first time slot coincides with the at least one second time slot, it is determined that the first indication information is greater than or equal to a second threshold, and the first indication information is a communication path loss between the second identity recognition module and the second access network device.
7. The method according to claim 5, characterized in that: When the at least one first time slot coincides with the at least one second time slot, it is determined that the first indication information is less than or equal to the second threshold, and the first indication information is one or more of the reference signal receiving power, received signal strength, and channel quality indication between the second identity identification module and the second access network device.
8. The method according to any one of claims 1 to 7, characterized in that The electronic device is connected to the second access network device through the second identity recognition module until a random access process is initiated to the second access network device.
9. A communication method, applied to an electronic device, the electronic device supports two identity recognition modules, and the electronic device is only configured with one radio frequency transmission channel, characterized in that: The method comprises: The electronic device is connected to the first access network device via the first identity recognition module, and the electronic device is connected to the second access network device via the second identity recognition module; Receiving first configuration information sent by the first access network device, where the first configuration information includes one or more time slots allocated by the first access network device to the electronic device; receiving second configuration information sent by the second access network device, where the second configuration information includes one or more time slots allocated by the second access network device to the electronic device; Receive a maximum number of failures for the electronic device to send a scheduling request sent by the second access network, where the maximum number of failures is X; receiving a first time domain resource sent by the second access network, where the first time domain resource is distributed in a first time domain resource period, and the first time domain resource is used by the electronic device to send the scheduling request; After the media medium access control layer buffer area corresponding to the second identity recognition module receives the data packet, the first uplink data is sent to the first access network device in at least one first time slot, the at least one first time slot coincides with at least one second time slot, and the at least one second time slot is used by the electronic device to send the scheduling request to the second access network device; Initiating a random access process to the second access network device; The time from receiving a data packet in the media access control layer buffer area corresponding to the second identity recognition module to initiating the random access process is longer than a preset threshold, and the preset threshold of time domain resources is the time taken to go through X periods of the first time domain resources.
10. The method according to claim 9, characterized in that The at least one first time slot is Y first time slots, and the at least one second time slot is Y second time slots, where Y is greater than X.
11. The method according to claim 10, characterized in that: The at least one first time slot coincides with the at least one second time slot, including: The time period of the at least one first time slot partially overlaps with the time period of the at least one second time slot, or the time period of the at least one first time slot completely overlaps with the time period of the at least one second time slot.
12. The method according to claim 11, characterized in that: The first uplink data priority is higher than the scheduling request priority.
13. The method according to claim 11, characterized in that: The first uplink data is voice call data.
14. The method according to claim 12, characterized in that: When the at least one first time slot coincides with the at least one second time slot, the electronic device stops sending the scheduling request and maintains the number of times the scheduling request is sent as a current value, where the number of times the scheduling request is sent is the number of times the electronic device fails to send the scheduling request; When the number of scheduling requests reaches a first threshold, where the first threshold is X, the electronic device initiates the random access process to the second access network device.
15. The method according to claim 14, characterized in that: When the at least one first time slot coincides with the at least one second time slot, the electronic device stops sending the scheduling request, further comprising: The first indication information is less than a second threshold, and the first indication information is a communication path loss between the second identity recognition module and the second access network device.
16. The method according to claim 14, characterized in that: When the Y first time slots coincide with the Y second time slots, the electronic device stops sending the scheduling request, further comprising: The first indication information is greater than a third threshold, and the first indication information is one or more of a reference signal receiving power, a received signal strength, and a channel quality indication between the second identity identification module and the second access network device.
17. A chip, characterized in that: The method comprises a baseband processor and an application processor, and is capable of executing the method according to any one of claims 1 to 16.
18. A terminal device, characterized in that: include: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 16.
19. A computer storage medium, characterized in that: The method comprises computer instructions, which, when executed on a terminal device, cause the terminal device to execute the method according to any one of claims 1 to 16.
