Data transmission method and device, terminal, chip and storage medium
By staggering the uplink data transmission times of the SIM cards, the problem of SIM cards preempting uplink resources in mobile terminals is solved, achieving efficient resource utilization and improved data transmission efficiency.
Patent Information
- Application Number
- CN202310524074.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-10
- Publication Date
- 2024-11-12
AI Technical Summary
In mobile terminals, when two SIM cards need to send uplink data at the same time, there is a problem of contention for uplink resources, resulting in data transmission delays and resource waste.
By staggering the uplink data transmission times of the two SIM cards, and requesting and using uplink resources in different time periods, it is ensured that each SIM card transmits data during non-conflicting times.
By effectively utilizing uplink resources, resource contention is avoided, data transmission efficiency and speed are improved, and latency is reduced.
Smart Images

Figure CN118945840A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to electronic communication technology, and is related to but not limited to data transmission methods and devices, terminals, chips, and storage media. Background Art
[0002] When the SIM card in the mobile terminal has uplink data that needs to be sent, it can apply for uplink resources from the network to send the uplink data of the SIM card based on the applied uplink resources; however, when the mobile terminal has dual SIM cards enabled and both cards have uplink data to send, the mobile terminal can only support the sending of uplink data of one card at the same time, so the two cards may compete for uplink resources. Summary of the invention
[0003] In view of this, the data transmission method and device, terminal, chip, and storage medium provided in the present application stagger the sending time of uplink data of multiple SIM cards, and there will be no situation of occupying uplink resources, so that each card can effectively utilize uplink resources.
[0004] According to one aspect of an embodiment of the present application, a data transmission method is provided, which is applied to a terminal, and the method includes:
[0005] Applying for a first uplink resource from a network device in a first time period, and sending uplink data of a first SIM card based on the first uplink resource in the first time period;
[0006] After the first time period ends, apply for a second uplink resource from the network device in a second time period, and send uplink data of the second SIM card based on the second uplink resource in the second time period.
[0007] According to one aspect of an embodiment of the present application, there is provided a data transmission device, including:
[0008] A first sending module, configured to apply for a first uplink resource from a network device in a first time period, and to send uplink data of a first SIM card based on the first uplink resource in the first time period;
[0009] The second sending module is configured to apply for a second uplink resource from the network device in a second time period after the first time period ends, and to send uplink data of the second SIM card based on the second uplink resource in the second time period.
[0010] According to one aspect of an embodiment of the present application, a terminal is provided, including a first memory, a first processor and a first transceiver, wherein the first memory stores a computer program that can be run on the first processor, and the first processor implements the method described in the embodiment of the present application when executing the program, and the first transceiver is used to communicate with a network device under the control of the first processor.
[0011] According to one aspect of an embodiment of the present application, a chip is provided, including a second memory, a second processor, and a second transceiver, wherein the second memory stores a computer program that can be run on the second processor, and the second processor implements the method described in the embodiment of the present application when executing the program, and the second transceiver is used to communicate with a network device under the control of the second processor.
[0012] According to one aspect of an embodiment of the present application, a non-volatile readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in the embodiment of the present application is implemented.
[0013] In the embodiment of the present application, a first uplink resource is applied to a network device in a first time period, and uplink data of a first SIM card is sent based on the first uplink resource in the first time period; after the first time period ends, a second uplink resource is applied to a network device in a second time period, and uplink data of a second SIM card is sent based on the second uplink resource in the second time period; in this way, uplink data of different SIM cards are sent in different time periods, and the sending time of uplink data of multiple SIM cards is staggered, so that there will be no situation of preemption of uplink resources, so that each card can effectively utilize the uplink resources.
[0014] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0016] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0017] Figure 1 A schematic diagram of implementing the dual-SIM switching with additional overhead provided in an embodiment of the present application;
[0018] Figure 2 A schematic diagram of the implementation flow of the data transmission method provided in the embodiment of the present application;
[0019] Figure 3 A schematic diagram of the implementation flow of the data transmission method provided in the embodiment of the present application;
[0020] Figure 4 A schematic diagram of the implementation flow of the data transmission method provided in the embodiment of the present application;
[0021] Figure 5 A schematic diagram of implementing dual-SIM switching without additional overhead provided in an embodiment of the present application;
[0022] Figure 6 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;
[0023] Figure 7 A schematic diagram of the hardware entity of the terminal provided in the embodiment of the present application;
[0024] Figure 8 A schematic diagram of the structure of the chip provided in the embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0027] In the following description, reference is made to “some embodiments”, “this embodiment”, “embodiments of the present application” and examples, etc., which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0028] The descriptions of “first, second, third” etc. that appear in the embodiments of the present application are only for illustration and distinction of the description objects. There is no distinction of order, nor do they indicate any special limitation on the number of devices in the embodiments of the present application, and cannot constitute any limitation on the embodiments of the present application.
[0029] The problem with the existing technology is that if the network allocates time for the original card to send uplink data, and the mobile terminal needs to allocate it to another card for sending due to resource scheduling, after returning to the original card, it needs to send a buffer status report (BSR) to the network to apply for more resources from the network to send the cached data; after sending the BSR, it still needs to wait for the network to allocate uplink resources, and the network may not immediately provide enough resources. What's worse, because the original card did not transmit data during the time when the network allocated uplink resources, the network may mistakenly believe that the original card no longer needs to transmit and cancel the originally allocated resources. The mobile terminal needs to reapply for uplink scheduling to the network by sending an SR (Scheduling Request) request message. The mobile terminal may still need to send a BSR to apply for more uplink resources to ensure that the cached data is sent. For example, Figure 1 A schematic diagram showing the extra overhead of dual card switching, such as Figure 1 As shown in the figure, SIM1 card needs to transmit 6M data in total, but after transmitting 3M data, due to the resource scheduling of the mobile terminal, the uplink data of SIM2 card needs to be sent first. Then, after returning to SIM1 card, the uplink resource of IM previously allocated by the network to SIM1 card has been cancelled because no data has been transmitted. At this time, SIM1 needs to resend the SR request message to reapply for uplink scheduling. The above switching requires additional overhead, resulting in delays in data transmission for each card in dual or multiple cards.
[0030] Based on the above problems, the present invention provides a data transmission method. Figure 2 A schematic diagram of the implementation flow of the data transmission method provided in the embodiment of the present application is shown in FIG. Figure 2 As shown, the method may include the following steps 201 to 202:
[0031] Step 201, applying for a first uplink resource from a network device in a first time period, and sending uplink data of a first SIM card based on the first uplink resource in the first time period;
[0032] Step 202: After the first time period ends, apply for a second uplink resource from the network device in a second time period, and send uplink data of the second SIM card based on the second uplink resource in the second time period.
[0033] It can be understood that after the first time period ends, the second uplink resource is applied for in the second time period and the uplink data of the second SIM card is sent based on the second uplink resource. It can be seen that the first time period and the second time period are two completely different time periods, and the two time periods do not overlap; then, applying for the first uplink resource in the first time period to send the uplink data of the first SIM card, and applying for the second application resource in the second time period to send the uplink data of the second SIM card, is to send the uplink data of different SIM cards in different time periods, that is, the sending time of the uplink data of the two SIM cards is different and does not overlap, so that the sending time of the uplink data of the two SIM cards is staggered, and there will be no situation of preemption of uplink resources, so that each card can effectively use the uplink resources.
[0034] It should be noted that the embodiment of the present application takes the case where the terminal includes two SIM cards, the first SIM card and the second SIM card, as an example to illustrate the above data transmission method. However, it should be understood that the above data transmission method is also applicable to the scenario where the terminal includes more than two SIM cards; the processing operation of the above data transmission method applied to the scenario of two SIM cards is similar to the processing operation applied to the scenario of more than two SIM cards; illustratively, the processing operation of the above data transmission method applied to the scenario of more than two SIM cards can be: determining the transmission time of uplink data of each of the multiple SIM cards, and the transmission time of uplink data of the multiple SIM cards is different and does not overlap; applying for uplink resources from the network device within the transmission time of each SIM card, so as to send the uplink data of each SIM card based on the applied uplink resources within the transmission time of each SIM card; in this way, the transmission time of uplink data of multiple SIM cards is staggered, so that only the transmission of uplink data of one SIM card is processed in a time period, and there is no situation of preempting uplink resources, so that each card can effectively use uplink resources.
[0035] The following describes further optional implementations and related terms of each of the above steps.
[0036] In step 201, a first uplink resource is applied to a network device in a first time period, and uplink data of a first SIM card is sent based on the first uplink resource in the first time period.
[0037] Among them, the first SIM card and the second SIM card are any two SIM cards in the terminal. The network device is used to allocate uplink resources to the SIM card. Exemplarily, the terminal can be a mobile phone and the network device can be a base station. The first time period is the time when the uplink data of the first SIM card is sent. The first uplink resource is the uplink resource allocated to the first SIM card by the network device, which is used to send the uplink data of the first SIM card. The uplink data of the first SIM card is the data transmitted by the first SIM card to the network; in a feasible implementation method, the uplink data of the first SIM card can be data transmitted to the network by the first SIM card, or it can be data transmitted to the network by the first SIM card itself, and the embodiment of the present application is not limited to this.
[0038] During implementation, before sending the uplink data of the SIM card, it is necessary to determine the sending time of the uplink data of each SIM card, that is, determine the sending time of the first SIM card (ie the first time period) and the sending time of the second SIM card (ie the second time period).
[0039] In some embodiments, the first time period and the second time period can be determined as follows: receiving a first SR cycle assigned by the network device to the first SIM card and a second SR cycle assigned to the second SIM card; and determining the first time period and the second time period based on the first SR cycle and the second SR cycle.
[0040] Among them, the first SR cycle is the SR cycle of the first SIM card, and the second SR cycle is the SR cycle of the second SIM card. The SR cycle refers to the period for sending SR request messages, and the SR request message is used to apply for uplink resources from the network; the SR cycle is allocated by the network (i.e., the network device). For example, the network can allocate the same SR cycle to the first SIM card and the second SIM card, and the first SR cycle and the second SR cycle are the same; or, the network can allocate different SR cycles to the first SIM card and the second SIM card, and the first SR cycle and the second SR cycle are different, and this application does not limit this.
[0041] It can be understood that before sending the uplink data of the first SIM card and the uplink data of the second SIM card, the first time period and the second time period are determined in order to reasonably arrange the sending time of the uplink data of the first SIM card and the sending time of the uplink data of the second SIM card so that the sending times of the two SIM cards are staggered, so that there will be no situation of occupying resources.
[0042] Specifically, the first time period and the second time period may be determined in the following manner: determining the least common multiple of the first SR cycle and the second SR cycle; and determining the first time period and the second time period according to the least common multiple.
[0043] It can be understood that by determining the first time period and the second time period according to the least common multiple, the start time of the uplink data of the first SIM card and the start time of the uplink data of the second SIM card can be at a time point at which the SR request message can be sent, so that the uplink data of the first SIM card can be sent normally within the first time period, and the uplink data of the second SIM card can be sent normally within the second time period, thereby ensuring the normal sending of the uplink data of the SIM cards.
[0044] In a feasible implementation, the first time period and the second time period can be directly determined according to the least common multiple; illustratively, if the first SR cycle is 10 ms (milliseconds) and the second SR cycle is 20 ms, then the least common multiple of the first SR cycle and the second SR cycle is 20 ms. At this time, if the time for sending the SR request message is i, then the first time period can be determined as [i, i+20), and the second time period can be determined as [i+20, i+40). The first time period and the second time period are directly determined according to the least common multiple, that is, the duration of the first time period and the second time period is the least common multiple of the first SR cycle and the second SR cycle, that is, the sending duration of each SIM card is the least common multiple of the first SR cycle and the second SR cycle.
[0045] In another feasible implementation, the first time period and the second time period may be determined according to a multiple relationship of the least common multiple; illustratively, if the first SR cycle is 10 ms (milliseconds) and the second SR cycle is 20 ms, then the least common multiple of the first SR cycle and the second SR cycle is 20 ms. At this time, if the time for sending the SR request message is i and the multiple relationship is 2, then the first time period may be determined as [i, i+40), and the second time period may be determined as [i+40, i+80). The first time period and the second time period are determined according to a multiple relationship of the least common multiple, that is, the duration of the first time period and the second time period is the least common multiple of the first SR cycle and the second SR cycle*the multiple relationship, that is, the sending duration of each SIM card is a multiple relationship of the least common multiple of the first SR cycle and the second SR cycle.
[0046] It should be noted that the first time period and the second time period are determined according to the first SR cycle and the second SR cycle in order to stagger the sending time of the uplink data of the first SIM card and the second SIM card, and the implementation method of staggering the sending time of the uplink data of the first SIM card and the second SIM card is not limited to the SR cycle, and the sending time of the uplink data of the first SIM card and the second SIM card can also be staggered by other methods, which is not limited in the embodiment of the present application; for example, the sending time of the SIM card can also be determined according to the amount of uplink data of the SIM card. Specifically, if the amount of uplink data of the first SIM card is the same as that of the second SIM card, the sending time of the first SIM card and the second SIM card can be staggered. The ratio of the data volume of the uplink data of the two SIM cards is 2:1. Therefore, when the least common multiple of the first SR cycle and the second SR cycle is 20ms and the time for sending the SR request message is i, the first time period can be determined as [i, i+40), and the second time period can be determined as [i+40, i+60); at this time, the ratio of the length of the first time period to the length of the second time period is 2:1; in this way, by reasonably arranging the sending time of the uplink data of multiple SIM cards, the number of uploads can be reduced and the transmission volume of a single SIM card can be increased. What's more, the power saving effect can be achieved while reducing the number of uploads.
[0047] In some embodiments, the first uplink resource can be applied for from the network device as follows: when the terminal does not have RB resources, send an SR request message to the network device within the first time period; receive a first message returned by the network device based on the SR request message, the first message carrying the uplink resource initially allocated by the network device; and determine the first uplink resource based on the initially allocated uplink resource.
[0048] The first message is a message returned by the network device based on the SR request message, and the first message carries the uplink resources initially allocated by the network device to the first SIM card.
[0049] It should be noted that, since the SR request message does not carry the amount of uplink data of the first SIM card, the uplink resources initially allocated by the network device based on the SR request message are random; there are two situations at this time: one is that the uplink data of the first SIM card can be transmitted through the initially allocated uplink resources; the other is that the uplink data of the first SIM card cannot be transmitted through the initially allocated uplink resources. If the uplink data of the first SIM card can be transmitted through the initially allocated uplink resources, then the initially allocated uplink resources can be directly used as the first uplink resources to transmit the uplink data of the first SIM card; if the uplink data of the first SIM card cannot be transmitted through the initially allocated uplink resources, then at this time, on the basis of obtaining the initially allocated uplink resources, it is necessary to apply for uplink resources from the network device again to obtain a sufficient amount of uplink resources, and transmit the uplink data of the first SIM card based on the initially allocated uplink resources and the re-allocated uplink resources.
[0050] Specifically, in one implementable manner, the first uplink resource may be determined as follows: when the amount of data transmittable by the initially allocated uplink resource in the first time period is greater than or equal to the amount of uplink data of the first SIM card, the initially allocated uplink resource is used as the first uplink resource.
[0051] It can be understood that the amount of data that can be transmitted by the initially allocated uplink resources in the first time period refers to the total amount of data that can be transmitted by the initially allocated uplink resources in the first time period. The amount of uplink data of the first SIM card refers to the total amount of uplink data currently to be transmitted by the first SIM card. The amount of data that can be transmitted by the initially allocated uplink resources in the first time period is greater than or equal to the amount of uplink data of the first SIM card, indicating that the uplink data of the first SIM card can be transmitted completely through the initially allocated uplink resources in the first time period; in this case, the initially allocated uplink resources are directly used as the first uplink resources to send the uplink data of the first SIM card.
[0052] Specifically, in another feasible method, the first uplink resource can also be determined as follows: when the amount of data that can be transmitted by the initially allocated uplink resources in the first time period is less than the amount of uplink data of the first SIM card, a first cache status report is sent to the network device, and the first cache status report is used to request a message to reallocate a specific number of uplink resources; a second message returned by the network device based on the first cache status report is received, and the second message carries the uplink resources reallocated by the network device; and the initially allocated uplink resources and the reallocated uplink resources are used as the first uplink resources.
[0053] The amount of data that can be transmitted by the initially allocated uplink resources in the first time period is less than the amount of uplink data of the first SIM card, indicating that the uplink data of the first SIM card cannot be completely transmitted based on the initially allocated uplink resources in the first time period, and there is still uplink data of the first SIM card that has not been transmitted; in this case, it is necessary to send a BSR (i.e., a first buffer status report) to the network device to apply for uplink resources again, so that the initially allocated uplink resources and the re-allocated uplink resources are used as the first uplink resources to send the uplink data of the first SIM card; and the BSR may carry the amount of uplink data of the first SIM card that is not currently transmitted, so as to request the network device to allocate sufficient uplink resources; wherein the specific amount of uplink resources refers to the uplink resources required for transmitting the difference between the amount of uplink data of the first SIM card and the amount of data that can be transmitted by the initially allocated uplink resources in the first time period, that is, the uplink resources required for sending the uplink data of the first SIM card that cannot be transmitted through the initially allocated uplink resources.
[0054] In other embodiments, the first uplink resource can also be applied for from the network device in this way: when the terminal has RB resources, a second cache status report is sent to the network device within the first time period, and the second cache status report carries the data volume of the uplink data of the first SIM card; and a third message returned by the network device based on the second cache status report is received, and the third message carries the first uplink resource allocated by the network device.
[0055] It can be understood that the BSR can be sent directly only when the terminal has RB resources. The second cache status report is a BSR sent to the network device when the terminal has RB resources; the second cache status report may carry the data volume of the uplink data of the first SIM card, so that the network device can allocate sufficient uplink resources to the first SIM card through the data volume of the uplink data of the first SIM card carried in the second cache status report to complete the transmission of the uplink data of the first SIM card. The third message is a message returned by the network device based on the second cache status report; since the second cache status report carries the uplink data of the first SIM card, the first uplink resource carried in the third message at this time is capable of transmitting the uplink data of the first SIM card, so that the uplink data of the first SIM card can be directly transmitted based on the first uplink resource.
[0056] Further, in some embodiments, after sending the uplink data of the first SIM card based on the first uplink resource within the first time period, it can also be performed: before the end of the first time period, sending a second cache status report to the network device, the second cache status report is used to inform the first SIM card that there is no uplink data to be transmitted.
[0057] It can be understood that sending the third cache status report to the network device before the end of the first time period means that no matter whether the uplink data of the first SIM card has been completely transmitted or not, the third cache status report needs to be sent to the network device before the end of the first time period, so that the network device can be informed through the third cache status report that the first SIM card has no uplink data to be transmitted, thereby avoiding the network penalty mechanism triggered by not using the uplink resources allocated by the network; wherein the network penalty mechanism can be not allocating uplink resources to the SIM card that does not use the uplink resources, or allocating smaller uplink resources to the SIM card that does not use the uplink resources. In addition, after receiving the third cache status report, the network device can also release the uplink resources allocated to the first SIM card and use them for other purposes, thereby improving the utilization rate of uplink resources and reducing the waste of uplink resources.
[0058] It should be noted that sending the third cache status report to the network device for informing the first SIM card that there is no uplink data to be transmitted is only to avoid the network penalty mechanism, but does not mean that the uplink data of the first SIM card has been completely transmitted within the first time period; if the uplink data of the first SIM card has not been completely transmitted within the first time period, the next transmission time of the uplink data of the first SIM card can be determined, and the uplink data of the first SIM card that has not been transmitted within the first time period can be continuously transmitted within the next transmission time. If the uplink data of the first SIM card has been completely transmitted in advance before the end of the first time period, after sending the second cache status report to the network device, when other SIM cards have uplink data to be transmitted, it is also possible to quickly switch to other SIM cards to transmit the uplink data to be transmitted by other SIM cards, so as to make full use of the uplink resources, reduce resource waste, and improve the transmission rate.
[0059] Furthermore, the data transmission method provided in the embodiment of the present application may further include: within the first time period, storing the uplink data to be transmitted of the second SIM card in the first buffer area.
[0060] Accordingly, in step 202, after the first time period ends, a second uplink resource is applied to the network device in a second time period, and uplink data of the second SIM card in the first buffer area is sent based on the second uplink resource in the second time period.
[0061] The first buffer area is used to store the uplink data to be transmitted of the SIM card. It should be noted that the buffer areas corresponding to the first SIM card and the second SIM card can be the same or different; that is, the uplink data to be transmitted of different SIM cards can be stored in the same buffer area or in different buffer areas, which is not limited in the embodiment of the present application.
[0062] It can be understood that the purpose of storing the uplink data to be transmitted of the second SIM card in the first buffer area within the first time period is to cache the uplink data of the second SIM card when it is not the sending time of the uplink data of the second SIM card, so as to concentrate the uplink data with a smaller data volume originally to be sent by the second SIM card, gradually cache them as uplink data with a larger data volume, and then facilitate the subsequent transmission together within the sending time of the uplink data of the second SIM card (i.e., the second time period); in this way, the transmission volume and transmission efficiency of a single SIM card can be increased through dynamic caching, thereby improving the overall transmission volume and transmission efficiency, and can also effectively use uplink resources and improve the utilization rate of uplink resources.
[0063] It should be noted that the operation of applying for the second uplink resource from the network device in the second time period is similar to the operation of applying for the first uplink resource from the network device in the first time period, and this embodiment of the present application will not be described in detail.
[0064] Exemplarily, in a feasible implementation, the operation of applying for the second uplink resource from the network device in the second time period may be: when the terminal does not have RB resources, sending an SR request message to the network device in the second time period; receiving a fourth message returned by the network device based on the SR request message, the fourth message carrying the uplink resource initially allocated by the network device to the second SIM card; when the amount of data that can be transmitted by the initially allocated uplink resource in the second time period is greater than or equal to the amount of uplink data of the second SIM card, using the uplink resource initially allocated to the second SIM card as the second uplink resource;
[0065] When the amount of data that can be transmitted by the initially allocated uplink resources in the second time period is less than the amount of uplink data of the second SIM card, a fourth cache status report is sent to the network device, where the fourth cache status report is used to request reallocation of a specific number of uplink resources; a fifth message returned by the network device based on the fourth cache status report is received, where the fifth message carries the uplink resources that the network device reallocates to the second SIM card; and the uplink resources initially allocated to the second SIM card and the uplink resources reallocated to the second SIM card are used as second uplink resources.
[0066] In another feasible implementation, the operation of applying for the second uplink resource from the network device in the second time period may be: when the terminal has RB resources, sending a fifth cache status report to the network device in the second time period, the fifth cache status report carrying the data volume of the uplink data of the second SIM card; receiving a sixth message returned by the network device based on the fifth cache status report, the sixth message carrying the second uplink resource allocated by the network device to the second SIM card.
[0067] It can be understood that if the mobile terminal includes multiple SIM cards, in the process of sending uplink data of at least two SIM cards at the same time, there will be a situation of occupying uplink resources, which will cause additional overhead and cause delays in SIM card transmission and slow transmission rate; while staggering the sending time of uplink data of multiple SIM cards will not cause the situation of occupying uplink resources, and reasonably arranging the sending time of uplink data of multiple SIM cards can also improve the utilization rate of resources.
[0068] The embodiment of the present application further provides a data transmission method, which can be applied to a scenario where a terminal does not have RB resources; Figure 3 A schematic diagram of the implementation flow of the data transmission method provided in the embodiment of the present application is shown in FIG. Figure 3 As shown, the method includes the following steps 301 to 310:
[0069] Step 301: determine a first time period and a second time period, where the first time period and the second time period are two staggered time periods.
[0070] In a feasible implementation, the terminal may implement step 301 as follows: receiving a first SR cycle assigned to a first SIM card and a second SR cycle assigned to a second SIM card by a network device; determining the least common multiple of the first SR cycle and the second SR cycle; and determining a first time period and a second time period based on the least common multiple.
[0071] Step 302: When the terminal does not have RB resources, send an SR request message to the network device within a first time period.
[0072] Step 303: Receive a first message returned by the network device based on the SR request message, where the first message carries uplink resources initially allocated by the network device.
[0073] Step 304 , determining whether the amount of data that can be transmitted by the third uplink resource in the first time period is less than the amount of uplink data of the first SIM card; if so, executing step 305 ; otherwise, executing step 306 .
[0074] Step 305 , taking the initially allocated uplink resource as the first uplink resource, and then proceeding to step 309 .
[0075] Step 306: Send a first buffer status report to the network device, where the first buffer status report is used to request reallocation of a specific amount of uplink resources.
[0076] Step 307: Receive a second message returned by the network device based on the first buffer status report, where the second message carries the uplink resources reallocated by the network device.
[0077] Step 308 , use the initially allocated uplink resources and the re-allocated uplink resources as the first uplink resources, and then proceed to step 309 .
[0078] Step 309: sending uplink data of the first SIM card based on the first uplink resource within the first time period, and storing uplink data to be transmitted of the second SIM card in the first buffer area within the first time period.
[0079] In other embodiments, the method further includes: before the first time period ends, sending a third buffer status report to the network device, the third buffer status report being used to inform the first SIM card that there is no uplink data to be transmitted.
[0080] Step 310: after the first time period ends, apply for a second uplink resource from the network device in a second time period, and send uplink data of the second SIM card in the first buffer area based on the second uplink resource in the second time period.
[0081] The embodiment of the present application further provides a data transmission method, which can be applied to a scenario where a terminal does not have RB resources; Figure 4 A schematic diagram of a data transmission method according to an embodiment of the present invention is shown in FIG. Figure 4 As shown, the method includes the following steps 401 to 405:
[0082] Step 401: determine a first time period and a second time period, where the first time period and the second time period are two staggered time periods.
[0083] In a feasible implementation, the terminal may implement step 401 as follows: receiving a first SR cycle assigned to a first SIM card and a second SR cycle assigned to a second SIM card by a network device; determining the least common multiple of the first SR cycle and the second SR cycle; and determining a first time period and a second time period based on the least common multiple.
[0084] Step 402: When the terminal has RB resources, a second buffer status report is sent to the network device within a first time period.
[0085] Step 403: Receive a third message returned by the network device based on the second buffer status report, where the third message carries the first uplink resource allocated by the network device.
[0086] Step 404: sending uplink data of the first SIM card based on the first uplink resource within the first time period, and storing uplink data to be transmitted of the second SIM card in the first buffer area within the first time period.
[0087] In other embodiments, the method further includes: before the first time period ends, sending a second buffer status report to the network device, the second buffer status report being used to inform the first SIM card that there is no uplink data to be transmitted.
[0088] Step 405 , after the first time period ends, apply for a second uplink resource from the network device in a second time period, and send the uplink data of the second SIM card in the first buffer area based on the second uplink resource in the second time period.
[0089] The following describes an exemplary application of the embodiments of the present application in a practical application scenario.
[0090] 1. First, allocate the uplink data transmission time of each card according to the least common multiple of the SR cycle allocated by the network.
[0091] 2. Each card buffers multiple small data originally intended to be sent into a larger data block (ie, uplink data) within its own sending time.
[0092] a) Send an SR request message to request uplink scheduling from the network.
[0093] b) If the uplink resource allocation is insufficient to transmit the data block, the mobile terminal requests more uplink resources by sending a BSR.
[0094] c) Before its own transmission time ends, regardless of whether all data blocks have been transmitted, the mobile terminal uses BSR to tell the network that it has no data to send (ie, BSR = 0) to avoid the occurrence of a penalty mechanism caused by the network providing resources but the mobile device not transmitting.
[0095] Figure 5 A schematic diagram of dual card switching without additional overhead provided in an embodiment of the present application, such as Figure 5As shown in the figure, 4M uplink data of SIM1 card is sent within the sending time of uplink data of SIM1 card. Since the uplink resources applied for by SIM1 card can transmit 4M uplink data, there is no need to send BSR to continue to apply for more uplink resources. After sending, BSR=0 can be sent to the network to inform the network that there is no data to be sent now; then, switch to SIM2 card, and send 6M uplink data of SIM2 within the sending time of uplink data of SIM2 card. Since the uplink resources applied for by SIM2 for the first time can only transmit 2M uplink data, there is 4M uplink data that has not been transmitted, and it is necessary to send Send BSR to continue to apply for uplink resources from the network. The second uplink resources applied for can only transmit 2M uplink data. There is still 2M uplink data that has not been transmitted. Therefore, it is necessary to continue to send BSR to continue to apply for uplink resources from the network. Continue to send the untransmitted 2M uplink data based on the applied uplink resources. After sending 6M uplink data, send BSR=0 to the network to inform the network that there is no data to send. At this time, SIM1 card has cached 4M uplink data to be transmitted during the sending time of SIM2 card. In this case, switch to SIM1 card and send 4M uplink data of SIM1 card, and so on. Figure 5 It can be seen that the uplink data of each card is sent in the bold black frame, so there will be no waste of resources due to too little data, and the transmission volume of a single SIM card can be increased. It should be noted that the uplink resources that each SIM card can apply for are determined by the network, so different SIM cards apply for different uplink resources.
[0096] This technology avoids the generation of network penalty mechanisms (such as not providing uplink resources or providing very small resources) by actively informing the network of the current status of the mobile device (for example, there is no data to be transmitted). At the same time, each card can convert small data into larger data quickly by using dynamic allocation buffer within the allocated time, thereby effectively improving the overall transmission volume. The data transmission method provided by the embodiment of the present application can enable dual cards or multiple cards to effectively utilize uplink resources, and overall produce better transmission performance than a single card, effectively overcoming the current technical bottlenecks and limitations.
[0097] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.; or, steps in different embodiments may be combined into a new technical solution.
[0098] Based on the foregoing embodiments, an embodiment of the present application provides a data transmission device, which includes the modules included and the units included in the modules, which can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be an AI acceleration engine (such as NPU, etc.), GPU, central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA), etc.
[0099] Figure 6 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the data transmission device 60 includes:
[0100] A first sending module 601 is configured to apply for a first uplink resource from a network device in a first time period, and to send uplink data of a first SIM card based on the first uplink resource in the first time period;
[0101] The second sending module 602 is configured to apply for a second uplink resource from the network device in a second time period after the first time period ends, and to send uplink data of the second SIM card based on the second uplink resource in the second time period.
[0102] In some embodiments, the first sending module 601 is configured to: receive a first SR cycle allocated to the first SIM card and a second SR cycle allocated to the second SIM card by the network device; and determine a first time period and a second time period according to the first SR cycle and the second SR cycle.
[0103] Further, in some embodiments, the first sending module 601 is configured to: determine the least common multiple of the first SR cycle and the second SR cycle; and determine the first time period and the second time period according to the least common multiple.
[0104] In some embodiments, the first sending module 601 is configured to: store the uplink data to be transmitted of the second SIM card in the first buffer area within the first time period;
[0105] The second sending module 602 is configured to send the uplink data of the second SIM card in the first buffer area based on the second uplink resource within the second time period.
[0106] In some embodiments, the first sending module 601 is configured to: send an SR request message to a network device within a first time period when the terminal does not have RB resources; receive a first message returned by the network device based on the SR request message, the first message carrying the first uplink resource initially allocated by the network device; and determine the first uplink resource based on the initially allocated uplink resource.
[0107] In some embodiments, the first sending module 601 is configured to use the initially allocated uplink resources as the first uplink resources when the amount of data transmittable by the initially allocated uplink resources in the first time period is greater than or equal to the amount of uplink data of the first SIM card.
[0108] In some embodiments, the first sending module 601 is configured to: send a first cache status report to the network device when the amount of data that can be transmitted by the initially allocated uplink resources within the first time period is less than the amount of uplink data of the first SIM card, the first cache status report being used to request reallocation of a specific number of uplink resources; receive a second message returned by the network device based on the first cache status report, the second message carrying the uplink resources reallocated by the network device; and use the initially allocated uplink resources and the reallocated uplink resources as the first uplink resources.
[0109] In some embodiments, the first sending module 601 is configured to: send a second cache status report to the network device within a first time period when the terminal has RB resources; the second cache status report carries the amount of uplink data of the first SIM card; and receive a third message returned by the network device based on the second cache status report, the third message carrying the first uplink resource allocated by the network device.
[0110] In some embodiments, the first sending module 601 is configured to: send a third buffer status report to the network device before the first time period ends, where the third buffer status report is used to inform the first SIM card that there is no uplink data to be transmitted.
[0111] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0112] It should be noted that in the embodiments of this application Figure 6 The division of modules in the data transmission device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.
[0113] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a non-volatile readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable the terminal to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0114] The embodiment of the present application provides a terminal, Figure 7 A schematic diagram of the hardware entity of the terminal provided in the embodiment of the present application is shown in FIG. Figure 7 As shown, the terminal 70 includes a first memory 701, a first processor 702 and a first transceiver 703. The first memory 701 stores a computer program that can be run on the first processor 702. When the first processor 702 executes the program, the method described in the embodiment of the present application is implemented. The first transceiver 703 is used to communicate with the network device under the control of the first processor 702.
[0115] It should be noted that the first memory 701 is configured to store instructions and applications executable by the first processor 702, and can also cache data to be processed or processed by various modules in the first processor 702 and the terminal 70 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0116] In the embodiment of the present application, the terminal 70 may be various types of devices with information processing capabilities during the implementation of the data transmission method described in the embodiment of the present application. For example, the terminal 70 may include a mobile phone, a tablet computer, a desktop computer, a laptop computer, a host computer, etc.
[0117] The embodiment of the present application provides a chip, Figure 8 A schematic diagram of the structure of the chip provided in the embodiment of the present application, such as Figure 8 As shown, the chip 80 includes a second memory 801, a second processor 802, and a second transceiver 803. The second memory 801 stores a computer program that can be run on the second processor 802. When the second processor 802 executes the program, the method described in the embodiment of the present application is implemented. The second transceiver 803 is used to communicate with the network device under the control of the second processor 802.
[0118] An embodiment of the present application provides a non-volatile readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.
[0119] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0120] It should be noted here that the description of the above storage medium, chip embodiment and device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiment of this application for understanding.
[0121] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0122] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0123] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0124] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0125] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0126] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0127] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a non-volatile readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a magnetic disk or an optical disk, and other media that can store program codes.
[0128] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a non-volatile readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling the terminal to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0129] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0130] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0131] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0132] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data transmission method, characterized in that: Applied to a terminal, the method comprises: Applying for a first uplink resource from a network device in a first time period, and sending uplink data of a first SIM card based on the first uplink resource in the first time period; After the first time period ends, apply for a second uplink resource from the network device in a second time period, and send uplink data of the second SIM card based on the second uplink resource in the second time period.
2. The method according to claim 1, characterized in that Before applying for the first uplink resource from the network device in the first time period, the method further includes: Receiving a first SR cycle allocated by the network device to the first SIM card and a second SR cycle allocated to the second SIM card; The first time period and the second time period are determined according to the first SR cycle and the second SR cycle.
3. The method according to claim 2, characterized in that The determining the first time period and the second time period according to the first SR cycle and the second SR cycle includes: Determining a least common multiple of the first SR period and the second SR period; The first time period and the second time period are determined according to the least common multiple.
4. The method according to claim 1, characterized in that: The method further comprises: Within the first time period, storing the uplink data to be transmitted of the second SIM card in the first buffer area; The sending the uplink data of the second SIM card based on the second uplink resource within the second time period includes: In the second time period, uplink data of the second SIM card in the first buffer area is sent based on the second uplink resource.
5. The method according to claim 1, characterized in that The applying for a first uplink resource from the network device in the first time period includes: In a case where the terminal does not have RB resources, sending an SR request message to the network device within the first time period; Receiving a first message returned by the network device based on the SR request message, where the first message carries uplink resources initially allocated by the network device; The first uplink resource is determined based on the initially allocated uplink resource.
6. The method according to claim 5, characterized in that The determining, based on the initially allocated uplink resource, the first uplink resource comprises: When the amount of data that can be transmitted by the initially allocated uplink resources in the first time period is greater than or equal to the amount of uplink data of the first SIM card, the initially allocated uplink resources are used as the first uplink resources.
7. The method according to claim 5, characterized in that The determining, based on the initially allocated uplink resource, the first uplink resource comprises: When the amount of data that can be transmitted by the initially allocated uplink resources in the first time period is less than the amount of uplink data of the first SIM card, sending a first buffer status report to the network device, wherein the first buffer status report is used to request reallocation of a specific amount of uplink resources; receiving a second message returned by the network device based on the first cache status report, where the second message carries uplink resources reallocated by the network device; The initially allocated uplink resources and the reallocated uplink resources are used as the first uplink resources.
8. The method according to claim 1, characterized in that The applying for a first uplink resource from the network device in the first time period includes: In the case where the terminal has RB resources, sending a second buffer status report to the network device within the first time period, wherein the second buffer status report carries a data volume of uplink data of the first SIM card; A third message returned by the network device based on the second cache status report is received, where the third message carries the first uplink resource allocated by the network device.
9. The method according to claim 1, characterized in that: The method further comprises: Before the first time period ends, a third buffer status report is sent to the network device, where the third buffer status report is used to inform the first SIM card that there is no uplink data to be transmitted.
10. A data transmission device, characterized in that: include: A first sending module, configured to apply for a first uplink resource from a network device in a first time period, and to send uplink data of a first SIM card based on the first uplink resource in the first time period; The second sending module is configured to apply for a second uplink resource from the network device in a second time period after the first time period ends, and to send uplink data of the second SIM card based on the second uplink resource in the second time period.
11. A terminal comprising a first memory, a first processor and a first transceiver, wherein the first memory stores a computer program that can be run on the first processor, characterized in that: The first processor implements the method described in any one of claims 1 to 9 when executing the program, and the first transceiver is used to communicate with a network device under the control of the first processor.
12. A chip comprising a second memory, a second processor and a second transceiver, wherein the second memory stores a computer program that can be run on the second processor, characterized in that: The second processor implements the method according to any one of claims 1 to 9 when executing the program, and the second transceiver is used to communicate with the network device under the control of the second processor.
13. A non-volatile readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
