Data Transmission Method, Apparatus, Electronic Device, and Storage Medium
By confirming whether the current data service is a target data service in the electronic device and controlling the target user identification card to transmit data through multiple data transmission channels, the problem of insufficient data transmission capability in the prior art is solved, and a more efficient data transmission rate is achieved.
Patent Information
- Application Number
- CN202210620305.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-02
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2042-06-02
AI Technical Summary
The data transmission capability of existing electronic devices is poor, especially when processing target data services with large data transmission volumes, it is impossible to effectively improve the data transmission rate.
By confirming in the electronic device whether the current data service is a target data service and making judgments based on the data transmission amount threshold, the target user identification card controls to transmit target data through at least two of the multiple data transmission channels.
The data transmission rate of electronic devices when processing data services with large data transmission volumes has been improved, and the overall data transmission capability has been improved.
Smart Images

Figure CN115103457B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless communication technologies, and particularly to a data transmission method, apparatus, electronic device, and storage medium. Background Art
[0002] With the development of wireless communication technologies, electronic devices that can insert two user identification cards simultaneously have emerged. An electronic device can transmit data through one of the two inserted user identification cards.
[0003] However, the current data transmission capabilities of electronic devices are poor. Summary of the Invention
[0004] Embodiments of this application provide a data transmission method, apparatus, electronic device, and storage medium, which can improve the data transmission capabilities of an electronic device.
[0005] In a first aspect, this application provides a data transmission method applied to an electronic device. The electronic device includes multiple user identification cards and multiple data transmission paths, and the number of data transmission paths is greater than or equal to the number of user identification cards. The method includes:
[0006] Confirming whether a current data service processed by the electronic device is a target data service, where the data transmission volume corresponding to the target data service is greater than a transmission volume threshold;
[0007] If the current data service is the target data service, controlling a target user identification card to transmit target data corresponding to the current data service through at least two of the multiple data transmission paths, where the target user identification card is one of the multiple user identification cards.
[0008] In a second aspect, this application provides a data transmission apparatus applied to an electronic device. The electronic device includes multiple user identification cards and multiple data transmission paths, and the number of data transmission paths is greater than or equal to the number of user identification cards. The apparatus includes:
[0009] A confirmation module, configured to confirm whether a current data service processed by the electronic device is a target data service, where the data transmission volume corresponding to the target data service is greater than a transmission volume threshold;
[0010] A data transmission module, configured to, if the current data service is the target data service, control a target user identification card to transmit target data corresponding to the current data service through at least two of the multiple data transmission paths, where the target user identification card is one of the multiple user identification cards.
[0011] In a third aspect, the present application provides an electronic device, including a memory and a processor. A computer program is stored in the memory. When the computer program is executed by the processor, the processor is caused to execute the steps of the data transmission method as in the first aspect.
[0012] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data transmission method as in the first aspect are implemented.
[0013] The above data transmission method, device, electronic device and storage medium are applied to an electronic device, which includes multiple user identification cards and multiple data transmission paths. The number of the data transmission paths is greater than or equal to the number of the user identification cards. The method includes: confirming whether the current data service processed by the electronic device is a target data service, where the data transmission volume corresponding to the target data service is greater than a transmission volume threshold; if the current data service is the target data service, controlling a target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission paths, where the target user identification card is one of the multiple user identification cards; since when the current data service processed by the electronic device is a target data service with a large data transmission volume, the target user identification card can be enabled to transmit the target data corresponding to the current data service through at least two data transmission paths. Compared with the solution of transmitting the target data through only one data transmission path, the data transmission capability of the electronic device can be improved. Description of the Drawings
[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0015] Figure 1 It is a schematic diagram of a related art scenario provided by an embodiment of the present application;
[0016] Figure 2 It is another schematic diagram of an application scenario provided by an embodiment of the present application;
[0017] Figure 3 It is a schematic flowchart of a data transmission method provided by an embodiment of the present application;
[0018] Figure 4 It is a hardware topology diagram of a user identification card configured with a radio frequency interface provided by an embodiment of the present application;
[0019] Figure 5 A refined flowchart for confirming whether the current data service processed by the electronic device is the target data service provided by an embodiment of the present application;
[0020] Figure 6 A schematic flowchart of another data transmission method provided by an embodiment of the present application;
[0021] Figure 7 A schematic flowchart of another data transmission method provided by an embodiment of the present application;
[0022] Figure 8 A schematic flowchart of another data transmission method provided by an embodiment of the application;
[0023] Figure 9 A schematic structural diagram of a data transmission device provided by an embodiment of the present application;
[0024] Figure 10 An internal structure diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0025] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. The term "multiple" mentioned in the present application means more than two. Similarly, "multiple sheets" means more than two sheets.
[0026] Refer to Figure 1 , Figure 1 A schematic diagram of a related art scenario provided by an embodiment of the present application. As Figure 1 shown, the electronic device includes multiple subscriber identity modules (SIM cards) 110 and multiple data transmission paths 120. The number of data transmission paths 120 is equal to the number of subscriber identity modules 110, and the multiple subscriber identity modules 110 and the multiple data transmission paths 120 are in one-to-one correspondence.
[0027] Specifically, in the related art, each subscriber identity module 110 uses the cellular data service through its respective configured data transmission path. However, since the number of data transmission paths 120 is equal to the number of subscriber identity modules 110, and it is necessary to ensure that each subscriber identity module 110 can use the cellular data service, each subscriber identity module 110 is only configured with one data transmission path 120. When facing some target data services with a relatively large data transmission volume, the target subscriber identity module 110 among the multiple subscriber identity modules 110 can also only transmit the data corresponding to the target data service through one data transmission path 120, resulting in poor data transmission capabilities of the electronic device and being unable to better meet the needs of users.
[0028] Therefore, there is an urgent need for a solution that can improve the data transmission capacity of electronic devices to meet the data transmission requirements of some data services with large data transmission volumes.
[0029] Optionally, each user identification card 110 can use cellular data services through its respective configured data transmission channels, such as using basic data services like calls. The target data services with large data transmission volumes can be some Internet services, etc., which are not limited in this embodiment.
[0030] Reference Figure 2 , Figure 2 is another schematic diagram of an application scenario provided by an embodiment of the present application. As Figure 2 shown, the electronic device includes multiple user identification cards 110 and multiple data transmission channels 120, and the number of data transmission channels 120 is greater than the number of user identification cards 110.
[0031] Among them, the sum of the data transmission channels 120 configured for all user identification cards 110 can be equal to the number of multiple data transmission channels 120. Specifically, each user identification card 110 is configured with at least one data transmission channel 120, and at least one of the multiple user identification cards 110 is configured with more than two data transmission channels 120. In this embodiment, the target user identification card 110 among the multiple user identification cards 110 can be configured with at least two data transmission channels 120, so that the target user identification card 110 can transmit data corresponding to the target data service through at least two data transmission channels 120.
[0032] In Figure 1 and Figure 2 the schematic diagrams of the scenarios shown, it can be that the data transmission channels 120 configured for each user identification card 110 remain unchanged, or it can be that the data transmission channels 120 configured for each user identification card 110 are adjustable, which is not limited in this embodiment, as long as the target user identification card 110 can transmit data corresponding to the target data service through at least two data transmission channels 120.
[0033] It should be noted that the data transmission methods, devices, electronic devices, storage media, and program products provided by the embodiments of the present application can all be used in the Figure 1 and Figure 2 application scenarios shown, which are not limited in this embodiment.
[0034] The following embodiments will describe the data transmission methods, devices, electronic devices, storage media, and program products provided by the embodiments of the present application on the basis of any of the above embodiments.
[0035] Reference Figure 3 , Figure 3The flowchart of a data transmission method provided by an embodiment of this application. In one embodiment, as Figure 3 shown, the data transmission method includes:
[0036] Step 310: Confirm whether the current data service processed by the electronic device is a target data service, and the data transmission volume corresponding to the target data service is greater than the transmission volume threshold.
[0037] Herein, the electronic device refers to a device that can insert multiple user identification cards. Optionally, the electronic device includes but is not limited to various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The current data service can refer to the data service being processed by the electronic device or the data service that the electronic device is about to process. The data transmission volume corresponding to the target data service is greater than the transmission volume threshold, indicating that the data service being processed or about to be processed by the electronic device is a data service with a large data transmission volume. Therefore, it is necessary to ensure the data transmission ability of the electronic device. The target data service can be, for example, the live video data for live broadcast and the game video data for games, or the data for downloading the OTA (Over-the-Air Technology) upgrade package.
[0038] It should be noted that when multiple user identification cards are used simultaneously, the multiple user identification cards can use the same network mode or different network modes, which is determined according to the actual situation. For example, one of the user identification cards can use the 5G network, and another user identification card can use the 4G network; or one of the user identification cards can use the 4G network, and another user identification card can also use the 4G network; or one of the user identification cards can use the 5G network, and another user identification card can also use the 5G network.
[0039] Specifically, the user identification card using the 5G network can transmit 5G cellular data, and the user identification card using the 4G network can transmit 4G cellular data. If multiple identification cards all use the 5G network, each user identification card can concurrently transmit 5G cellular data.
[0040] In this embodiment, if the current data service processed by the electronic device is a target data service, then step 320 is executed.
[0041] Step 320: Control the target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission paths, where the target user identification card is one of the multiple user identification cards.
[0042] Among them, the target data refers to the data corresponding to the current data service. Exemplarily, if the target data service is to transmit the live video data of a live broadcast, the target data is the live video data.
[0043] In this embodiment, if the current data service is the target data service, the target user identification card is controlled to transmit the target data corresponding to the current data service through at least two of the multiple data transmission channels.
[0044] Specifically, if the number of data transmission channels configured for the target user identification card is one, the number of data transmission channels configured for the target user identification card is adjusted to at least two; if the number of data transmission channels configured for the target user identification card is at least two, the number of data transmission channels configured for the target user identification is kept unchanged.
[0045] That is to say, the embodiments of the present application can dynamically adjust the data transmission channels configured for the target user identification card, so as to ensure that the target user identification card can transmit the target data through at least two data transmission channels.
[0046] In the technical solution of this embodiment, when the current data service processed by the electronic device is a target data service with a large data transmission volume, the target user identification card can transmit the target data corresponding to the current data service through at least two data transmission channels. Compared with the solution of transmitting the target data through only one data transmission channel, the data transmission rate can be increased, and the data transmission ability of the electronic device can be improved.
[0047] It should be noted that the data transmission ability mentioned in the embodiments of the present application includes, but is not limited to, data uplink ability and data downlink ability, etc. Specifically, the data uplink ability refers to the ability to send data. Generally, it is reflected by the data uplink rate. The larger the data uplink rate, the stronger the data uplink ability. The data downlink ability refers to the ability to receive data. Generally, it is reflected by the data downlink rate.
[0048] It can be understood that if the current data service processed by the electronic device is a data uplink service, the technical solution of the embodiments of the present application can improve the data uplink ability of the target user identification card; if the current data service processed by the electronic device is a data downlink service, the technical solution of the embodiments of the present application can improve the data downlink ability of the target user identification card.
[0049] In one embodiment, technologies such as uplink MIMO (multiple-in multiple-out, MIMO) and CA (Carrier Aggregation) can be used to adjust the data transmission channels of the target user identification card.
[0050] In one embodiment, the target user identification card can be selected by the user, or the electronic device can select it according to the actual situation, etc., and this embodiment does not limit it.
[0051] In one embodiment, the target user identification card is a user identification card that meets a preset condition, and the preset condition includes at least one of the following:
[0052] The highest network mode;
[0053] The highest signal strength;
[0054] The largest number of currently configured data transmission paths;
[0055] The largest remaining cellular data traffic;
[0056] User selection.
[0057] Among them, the network mode is the type of network. Currently, the network modes of electronic devices include, but are not limited to, CDMA 1X occupied by CDMA electronic devices in the 800MHZ band; 900 / 1800 / 1900MHZ bands occupied by GSM electronic devices; 900 / 1800MHZ bands occupied by GSM 1X dual-mode (i.e., WCDMA) in the past two years; 900 / 1800 / 1900 / 2100MHz bands occupied by 3G; 1920--2170MHZ bands occupied by 4G. The 2555-2575MHz and 2300-2320MHz bands (for indoor use only) occupied by China Unicom's 4G TD LTE, etc. The signal strength is the strength of the signal used by the user identification card in the electronic device.
[0058] Generally speaking, for the technical solution of this embodiment, since the higher the network mode, the stronger the data transmission ability. If the user identification card with the highest network mode is used as the target user identification card, the data transmission ability of the electronic device can be further improved. In addition, generally speaking, since the higher the signal strength, the stronger the data transmission ability. If the user identification card with the highest signal strength is used as the target user identification card, the data transmission ability of the electronic device can be further improved. In addition, using the user identification card with the largest number of currently configured data transmission paths as the target user identification card can avoid frequent switching of data transmission paths. In addition, using the user identification card with the largest remaining cellular data traffic as the target user identification card can avoid the problem of high costs caused by overuse of cellular data traffic. In addition, using the user identification card selected by the user as the target user identification card can be selected according to the user's needs, improving the user experience.
[0059] It can be understood that before the electronic device processes data services, the user may have selected the target user identification card from multiple user identification cards.
[0060] Reference Figure 4 , Figure 4 is a hardware topology diagram for configuring a radio frequency interface 130 for a user identification card 110 provided in an embodiment of the present application. In one embodiment, as Figure 4 shown, each of the user identification cards 110 is configured with a plurality of radio frequency interfaces 130, and the number of radio frequency interfaces 130 configured for each of the user identification cards 110 is greater than or equal to the number of data transmission paths 120.
[0061] In this embodiment, controlling the target user identification card 110 to transmit the target data corresponding to the current data service through at least two of the plurality of data transmission paths 120 includes:
[0062] Controlling the plurality of radio frequency interfaces 130 configured for the target user identification card 110 to be respectively connected to at least two of the data transmission paths 120, so that the target user identification card 110 transmits the target data corresponding to the current data service through at least two of the data transmission paths 120.
[0063] It can be understood that, since the number of radio frequency interfaces 130 configured for each user identification card 110 is greater than or equal to the number of data transmission paths 120, it can be ensured that each user identification card 110 has the ability to use all the data transmission paths 120, thereby maximizing the improvement of the data transmission ability.
[0064] Exemplarily, there are two user identification cards, namely SIM card 1 and SIM card 2. Each user identification card is configured with M radio frequency interfaces, and the data transmission paths are N, where 2 ≤ N ≤ M.
[0065] Specifically, if SIM card 1 is the target user card, control the M radio frequency interfaces configured for SIM card 1 to be connected to at least two data transmission paths, so that SIM card 1 can transmit the target data corresponding to the target data service through at least two data transmission paths; if SIM card 2 is the target user card, control the M radio frequency interfaces configured for SIM card 2 to be connected to at least two data transmission paths, so that SIM card 2 can transmit the target data corresponding to the target data service through at least two data transmission paths.
[0066] In the technical solution of this embodiment, since each user identification card is configured with a plurality of radio frequency interfaces, no matter how the multiple user identification cards are installed, it can be ensured that when any one of the user identification cards is used as the target user identification card, the target user identification card can transmit the target data through at least two data transmission paths, improving the convenience of installing the user identification card.
[0067] In the above embodiments, the number of the data transmission channels is greater than or equal to the number of the user identification cards. However, for different cases where the number of the data transmission channels is greater than the number of the user identification cards and the number of the data transmission channels is equal to the number of the user identification cards, the manner of enabling the target user identification card to transmit the target data corresponding to the current data service through at least two data transmission channels may be different. Therefore, the following will take Figure 1 and Figure 2 the schematic diagram of the scenario shown as an example, and illustrate how to enable the target user identification card to transmit the target data corresponding to the current data service through at least two data transmission channels in combination with the number of the data transmission channels and the number of the user identification cards.
[0068] First, the case where the number of the data transmission channels is equal to the number of the user identification cards will be described.
[0069] In one embodiment, the number of the data transmission channels is equal to the number of the user identification cards. Controlling the target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission channels includes:
[0070] Disabling at least one non-target user identification card, and controlling the target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission channels.
[0071] Among them, the non-target user identification card refers to the user identification cards other than the target user identification card among the multiple user identification cards. Specifically, since the number of the data transmission channels is equal to the number of the user identification cards, and in order to ensure that the target user identification card can transmit the target data through at least two data transmission channels, it is necessary to disable at least one non-target user identification card, so as to configure the data transmission channels of the disabled non-target user identification card as the data transmission channels of the target user identification card. At this time, the requirement that the target user identification card needs at least two data transmission channels can be met.
[0072] It should be noted that the number of the disabled non-target user identification cards can be adjusted as needed. In a possible implementation manner, if there are two user identification cards, one non-target user identification card is disabled; if there are L user identification cards, n non-target user identification cards can be disabled. Correspondingly, the target user identification card can transmit the target data through n + 1 data transmission channels, where 1 ≤ n < L.
[0073] It can be understood that the larger the data transmission volume corresponding to the target data service, the larger n is. If n = L - 1, all non-target user identification cards are disabled. At this time, the target user identification card can transmit the target data through all data transmission channels, thereby maximizing the improvement of the data transmission capacity of the electronic device.
[0074] Combined with Figure 1 the schematic diagram of the scenario is used for illustration. Exemplarily, there are two user identification cards, namely SIM card 1 and SIM card 2, and there are two data transmission channels, namely data transmission channel 1 and data transmission channel 2; SIM card 1 is configured with data transmission channel 1, and SIM card 2 is configured with data transmission channel 2. Assume that SIM card 1 is the data main card, that is, SIM card 1 is the target user identification card. Then, when facing some target data services with a relatively large data transmission volume, the data transmission channel 2 configured by SIM card 2 can be adjusted to the data transmission channel configured by SIM card 1. At this time, SIM card 1 is configured with both data transmission channel 1 and data transmission channel 2, so SIM card 1 can transmit the target data corresponding to the target data service through data transmission channel 1 and data transmission channel 2. If the data main card is switched to SIM card 2, then when facing some target data services with a relatively large data transmission volume, data transmission channel 1 and data transmission channel 2 can be configured as the data transmission channels of SIM card 2. At this time, SIM card 2 can transmit the target data corresponding to the target data service through data transmission channel 1 and data transmission channel 2.
[0075] The technical solution of this embodiment, when the number of data transmission channels is the same as the number of user identification cards, disables one or more non-target user identification cards, so as to ensure that the target user identification card can transmit the target data through at least two data transmission channels.
[0076] Secondly, the situation where the number of data transmission channels is greater than the number of user identification cards is described.
[0077] In one embodiment, the number of data transmission channels is greater than the number of user identification cards. Controlling the target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission channels includes:
[0078] Controlling each non-target user identification card to transmit cellular data through at least one of the data transmission channels, and controlling the target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission channels.
[0079] Specifically, since the number of data transmission paths is greater than the number of user identification cards, it is possible to ensure that the target user identification card can transmit target data through at least two data transmission paths, and at the same time ensure that each non-target user identification card transmits cellular data through at least one data transmission path, so that the non-target user identification card can still maintain basic data services.
[0080] It should be noted that the number of data transmission paths used by the target user identification card to transmit target data can be adjusted as needed. In a possible implementation, if there are L user identification cards and N data transmission paths, and L < N, then first each non-target user identification card is configured with one data transmission path. At this time, there are N - L + 1 remaining data transmission paths. Then, at least two data transmission paths can be selected from the remaining N - L + 1 data transmission paths as the paths for the target user identification card to transmit target data.
[0081] It can be understood that the larger the data transmission volume corresponding to the target data service, the more data transmission paths are configured for the target user identification card among the remaining N - L + 1 data transmission paths. At this time, it is possible to maximize the improvement of the data transmission capacity of the electronic device while ensuring that each non-target user identification card can use basic data services.
[0082] Combined with Figure 2 the scenario schematic diagram for an example. Exemplarily, there are two user identification cards, namely SIM card 1 and SIM card 2, and three data transmission paths, namely data transmission path 1, data transmission path 2, and data transmission path 3. SIM card 1 is configured with data transmission path 1 and data transmission path 2, and SIM card 2 is configured with data transmission path 3. Assuming SIM card 1 is the data master card, when facing some target data services with a relatively large data transmission volume, SIM card 1 can transmit the target data corresponding to the target data service through data transmission path 1 and data transmission path 2, while keeping SIM card 2 transmitting cellular data through data transmission path 3. Additionally, if the data master card is switched to SIM card 2, when facing some target data services with a relatively large data transmission volume, data transmission path 2 and data transmission path 3 can be configured as the data transmission paths of SIM card 2. At this time, SIM card 2 can transmit the target data corresponding to the target data service through data transmission path 2 and data transmission path 3, while keeping SIM card 1 transmitting cellular data through data transmission path 1.
[0083] In addition, if there are four data paths, namely data transmission path 1, data transmission path 2, data transmission path 3, and data transmission path 4, assuming that SIM card 2 is the primary data card, then first configure data transmission path 1 for SIM card 1, so that SIM card 1 can use basic data services; secondly, configure at least two of the data transmission paths among data transmission path 2, data transmission path 3, and data transmission path 4 for SIM card 2, so that SIM card 2 can use target data services through at least two data transmission paths.
[0084] In the technical solution of this embodiment, the number of data transmission paths set by the electronic device is greater than the number of user identification cards, so as to improve the data transmission ability of the electronic device while ensuring that each non-target user identification card can use basic data services. That is to say, it not only ensures that each non-target user identification card can use basic data services, but also improves the data transmission ability of the electronic device.
[0085] Reference Figure 5 , Figure 5 FIG. is a detailed flowchart for confirming whether the current data service processed by the electronic device is a target data service provided by an embodiment of the present application. In one embodiment, confirming whether the current data service processed by the electronic device is a target data service includes:
[0086] Step 510, monitor the foreground application program running on the electronic device.
[0087] Among them, the foreground application software refers to the application program that is visible and running on the desktop task bar, such as a running game software, etc. Specifically, the foreground application program is relative to the background application program. The background application program running in the background refers to the application program that can still continue to slightly run related services after the application program is closed. For example, some software can notify the user in time after obtaining user messages in the background.
[0088] Step 520, confirm whether the foreground application program is a target application program.
[0089] Among them, the target application program refers to an application program whose data transmission volume is greater than the transmission volume threshold. For example, the target application program may include, but is not limited to, live broadcast application programs and game application programs, etc. In this embodiment, if the foreground application program is a target application program, then execute step 530.
[0090] In a possible implementation manner, confirming whether the foreground application program is a target application program includes:
[0091] Obtain the application program identifier of the foreground application program;
[0092] Pair the application identifier with a preset whitelist to obtain a pairing result, where the preset whitelist includes the target application identifier of the target application;
[0093] If the pairing result is that the application identifier is the same as one of the target application identifiers in the preset whitelist, then the foreground application is the target application.
[0094] If the pairing result is that the application identifier is not the same as any of the target application identifiers in the preset whitelist, then the foreground application is not the target application.
[0095] Among them, the target application identifier in the preset whitelist can be determined by the electronic device itself or selected by the user, and this embodiment does not make any restrictions.
[0096] In this embodiment, by comparing the application identifier with the target application identifier in the preset whitelist, it can be determined whether the foreground application is the target application, which is convenient and fast.
[0097] Step 530: Confirm that the current data service processed by the electronic device is the target data service.
[0098] In this embodiment, if the foreground application is the target application, then confirm that the current data service processed by the electronic device is the target data service.
[0099] In the technical solution of this embodiment, if the foreground application running on the electronic device is the target application, and the target application is an application with a data transmission volume greater than the transmission volume threshold, it indicates that the current data transmission volume of the electronic device is relatively large. Therefore, it is necessary to improve the data transmission ability of the electronic device. At this time, the target data to be transmitted by the electronic device is the data of the foreground application.
[0100] In one embodiment, if the foreground application is not the target application, then perform step 540: Confirm that the current data service processed by the electronic device is not the target data service. If it is confirmed that the current data service processed by the electronic device is not the target data service, then control each user identification card to transmit cellular data through at least one of the data transmission channels.
[0101] In the above embodiments, the case where the current data service is the target data service is described. On the basis of any of the above embodiments, this embodiment describes the case where the current data service is not the target data service.
[0102] Reference Figure 6 , Figure 6The flowchart of another data transmission method provided by an embodiment of this application. In one embodiment, as Figure 6 shown, the data transmission method includes:
[0103] Step 610: Confirm whether the current data service processed by the electronic device is a target data service, and the data transmission volume corresponding to the target data service is greater than the transmission volume threshold.
[0104] Step 620: Control the target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission channels, and the target user identification card is one of the multiple user identification cards.
[0105] Step 630: Control each user identification card to transmit cellular data through at least one of the data transmission channels, where the cellular data transmitted by one of the multiple user identification cards includes the target data.
[0106] In this embodiment, if the current data service is not the target data service, then control each user identification card to transmit cellular data through at least one of the data transmission channels, where the cellular data transmitted by one of the multiple user identification cards includes the target data.
[0107] The cases where the number of the data transmission channels is greater than the number of the user identification cards and the case where the number of the data transmission channels is equal to the number of the user identification cards are described below respectively.
[0108] Assume that there are two user identification cards, namely SIM card 1 and SIM card 2, and there are two data transmission channels, namely data transmission channel 1 and data transmission channel 2. At this time, each SIM card is configured with one data transmission channel, and the data master card in SIM card 1 and SIM card 2 transmits the target data through the configured data transmission channel.
[0109] Assume that there are two user identification cards, namely SIM card 1 and SIM card 2, and there are multiple data transmission channels, namely data transmission channel 1, data transmission channel 2, and data transmission channel 3. At this time, each SIM card is configured with one data transmission channel, and one of the SIM cards is configured with one or more data transmission channels, etc. This embodiment does not make any restrictions.
[0110] For the technical solution of this embodiment, if the current data service is not the target data service, it indicates that the data transmission volume of the current data service processed by the electronic device is not very large. At this time, control each of the user identification cards to transmit cellular data through at least one of the data transmission paths, so that each user identification card can camp on the network to retain the basic data service. At the same time, transmit the target data through one of the user identification cards. That is to say, the technical solution of this embodiment can ensure that each user identification card can camp on the network and also achieve the transmission of the target data.
[0111] In some cases of the example, when there are multiple data transmission paths configured for the target user identification card, the data transmission capacity can be improved, but this situation may be different from the expectation of the base station, and there may be abnormal network disconnection. Therefore, an abnormal scheduling function and an autonomous recovery mechanism are also required to ensure that the electronic device does not disconnect from the network.
[0112] Refer to Figure 7 , FIG. 7 is a schematic flowchart of another data transmission method provided by an embodiment of the present application. In one embodiment, as Figure 7 shown, the data transmission method includes:
[0113] Step 710, confirm whether the current data service processed by the electronic device is the target data service, and the data transmission volume corresponding to the target data service is greater than the transmission volume threshold.
[0114] In this embodiment, if the current data service is the target data service, then execute step 720.
[0115] Step 720, control the target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission paths, and the target user identification card is one of the multiple user identification cards.
[0116] Step 730, receive the channel number indication information sent by the base station, and the channel number indication information is used to indicate the number of data transmission paths expected by the base station to be configured for the target user identification card.
[0117] In this embodiment, the electronic device can send the channel number indication information in the DCI manner.
[0118] Optionally, the channel number indication information may carry a data transmission path number identifier, such as data transmission path number identifiers such as 1, 2, 3, etc.
[0119] Step 740, confirm whether the number of data transmission paths currently configured for the target user identification card is consistent with the number indicated by the channel number indication information.
[0120] In this embodiment, if the number of data transmission channels currently configured for the target user identification card is the same as the number indicated by the channel number indication information, step 750 is executed; if the number of data transmission channels currently configured for the target user identification card is different from the number indicated by the channel number indication information, step 760 is executed.
[0121] Step 750: Maintain the data transmission channels currently configured for the target user identification card, so that the target user identification card transmits the target data through the currently configured data transmission channels.
[0122] Step 760: Adjust the number of data transmission channels configured for the target user identification card to be the same as the number indicated by the channel number indication information, so that the target user identification card transmits the target data through the adjusted data transmission channels.
[0123] Exemplarily, assume that the number indicated by the channel number indication information is 2. If the number of data transmission channels configured for the target user identification card is 1, then adjust the number of data transmission channels configured for the target user identification card to 2; if the number of data transmission channels configured for the target user identification card is 2, then maintain the data transmission channels currently configured for the target user identification card. Another example, assume that the number indicated by the channel number indication information is 1. If the number of data transmission channels configured for the target user identification card is 2, then adjust the number of data transmission channels configured for the target user identification card to 1; if the number of data transmission channels configured for the target user identification card is 1, then maintain the data transmission channels currently configured for the target user identification card.
[0124] The technical solution of this embodiment provides an abnormal scheduling function and an autonomous recovery mechanism to ensure that the electronic device does not lose network connection by maintaining the data transmission channels currently configured for the target user identification card if the number of data transmission channels currently configured for the target user identification card is the same as the number indicated by the channel number indication information, so that the target user identification card transmits the target data through the currently configured data transmission channels; and adjusting the number of data transmission channels configured for the target user identification card to be the same as the number indicated by the channel number indication information if the number of data transmission channels currently configured for the target user identification card is different from the number indicated by the channel number indication information, so that the target user identification card transmits the target data through the adjusted data transmission channels.
[0125] It should be noted that in the above embodiment, if the number of data transmission channels configured for one of the user identification cards changes, the RI information needs to be reported again. Optionally, the electronic device measures through CSI-RS (Cell-specific Reference Signals) to obtain the RI information (1:1Tx, 2:2Tx), and reports it to the base station in the CRI (China Radio International).
[0126] Reference Figure 8 , Figure 8 is a schematic flowchart of another data transmission method provided for the application example. In this example, two user identity cards are taken as an example for illustration. In one example, as Figure 8 shown, the data transmission method includes:
[0127] Step 810, determine whether the number of data transmission paths is 2 or more.
[0128] In this step, if so, execute step 820; if not, execute step 830 or step 860.
[0129] Step 820, control the target user identity card to transmit the target data corresponding to the current data service processed by the electronic device through at least two data transmission paths, and control the non-target user identity card to transmit cellular data through one data transmission path.
[0130] Step 830, confirm whether the current data service processed by the electronic device is a target data service.
[0131] In this step, if so, execute step 840; if not, execute step 850.
[0132] Step 840, control the target user identity card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission paths.
[0133] Step 850, control each user identity card to transmit cellular data through at least one of the data transmission paths, where the cellular data transmitted by one of the multiple user identity cards includes the target data.
[0134] Step 860, receive the channel number indication information sent by the base station, where the channel number indication information is used to indicate the number of data transmission paths expected to be configured by the target user identity card.
[0135] Step 870, confirm whether the number of currently configured data transmission paths of the target user identity card is consistent with the number indicated by the channel number indication information.
[0136] In this example, if the number of currently configured data transmission paths of the target user identity card is consistent with the number indicated by the channel number indication information, execute step 880; if the number of currently configured data transmission paths of the target user identity card is inconsistent with the number indicated by the channel number indication information, execute step 890.
[0137] Step 880: Maintain the data transmission path currently configured for the target user identification card, so that the target user identification card transmits the target data through the currently configured data transmission path.
[0138] Step 890: Adjust the number of data transmission paths configured for the target user identification card to be the same as the number indicated by the channel quantity indication information, so that the target user identification card transmits the target data through the adjusted data transmission path.
[0139] Step 900: If the number of data transmission paths configured for one of the user identification cards changes, report the RI information again.
[0140] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or steps or stages in other steps.
[0141] Based on the same inventive concept, an embodiment of the present application further provides a data transmission device for implementing the data transmission method described above. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the data transmission device provided below can refer to the limitations on the data transmission method in the above text, and will not be repeated here.
[0142] Reference Figure 9 , Figure 9 is a schematic structural diagram of a data transmission device provided by an embodiment of the present application. In one embodiment, as Figure 9 shown, the data transmission device includes a confirmation module 910 and a data transmission module 920, where:
[0143] The confirmation module 910 is used to confirm whether the current data service processed by the electronic device is a target data service, and the data transmission volume corresponding to the target data service is greater than the transmission volume threshold;
[0144] A data transmission module 920, configured to, if the current data service is the target data service, control a target user identification card to transmit target data corresponding to the current data service through at least two of the multiple data transmission paths, where the target user identification card is one of the multiple user identification cards.
[0145] In one embodiment, the data transmission module 920 is further configured to, if the current data service is not the target data service, control each of the user identification cards to transmit cellular data through at least one of the data transmission paths, where the cellular data transmitted by one of the multiple user identification cards includes the target data.
[0146] In one embodiment, the confirmation module 910 includes:
[0147] A monitoring unit, configured to monitor a foreground application program running on the electronic device;
[0148] A confirmation unit, configured to confirm whether the foreground application program is a target application program;
[0149] If the foreground application program is the target application program, confirm that the current data service processed by the electronic device is the target data service.
[0150] In one embodiment, the number of the data transmission paths is equal to the number of the user identification cards, and the data transmission module 920 includes:
[0151] A first data transmission unit, configured to disable at least one non-target user identification card, and control the target user identification card to transmit target data corresponding to the current data service through at least two of the multiple data transmission paths.
[0152] In one embodiment, the number of the data transmission paths is greater than the number of the user identification cards, and the data transmission module 920 includes:
[0153] A second data transmission unit, configured to control each non-target user identification card to transmit cellular data through at least one of the data transmission paths, and control the target user identification card to transmit target data corresponding to the current data service through at least two of the multiple data transmission paths.
[0154] In one embodiment, the target user identification card is a user identification card that meets a preset condition, and the preset condition includes at least one of the following:
[0155] The highest network mode;
[0156] The highest signal strength;
[0157] The largest number of currently configured data transmission paths;
[0158] The remaining cellular data traffic is the largest;
[0159] User selection.
[0160] In one embodiment, each of the user identification cards is configured with a plurality of radio frequency interfaces, and the number of radio frequency interfaces configured for each of the user identification cards is greater than or equal to the number of data transmission paths. The data transmission module 920 is specifically configured to control the plurality of radio frequency interfaces configured for the target user identification card to be respectively connected to at least two of the data transmission paths, so that the target user identification card transmits the target data corresponding to the current data service through at least two of the data transmission paths.
[0161] In one embodiment, the data transmission module 920 is further configured to receive channel number indication information sent by a base station, where the channel number indication information is used to indicate the number of data transmission paths that the base station expects the target user identification card to be configured with;
[0162] If the number of currently configured data transmission paths of the target user identification card is consistent with the number indicated by the channel number indication information, the currently configured data transmission paths of the target user identification card are maintained, so that the target user identification card transmits the target data through the currently configured data transmission paths;
[0163] If the number of currently configured data transmission paths of the target user identification card is inconsistent with the number indicated by the channel number indication information, the number of data transmission paths configured for the target user identification card is adjusted to be consistent with the number indicated by the channel number indication information, so that the target user identification card transmits the target data through the adjusted data transmission paths.
[0164] Each module in the above data transmission device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0165] Refer to Figure 10 , Figure 10 is the internal structure diagram of an electronic device provided in an embodiment of the present application. In one embodiment, an electronic device is provided, and its internal structure diagram can be as Figure 10As shown in the figure. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external electronic devices in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a data transmission method. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, a trackball, or a touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse, etc.
[0166] Those skilled in the art can understand that Figure 10 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0167] The embodiment of this application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, cause the processors to execute the steps of the above-mentioned various methods.
[0168] The embodiment of this application also provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the steps of the above-mentioned various methods.
[0169] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions.
[0170] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0171] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0172] The above-described embodiments merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A data transmission method, characterized in that, applied to an electronic device, the electronic device includes multiple user identification cards and multiple data transmission channels, the number of data transmission channels is greater than or equal to the number of user identification cards, and the method includes: confirming whether the current data service processed by the electronic device is a target data service, and the data transmission volume corresponding to the target data service is greater than a transmission volume threshold; if the current data service is the target data service, controlling a target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission channels, and the target user identification card is one of the multiple user identification cards; receiving channel number indication information sent by a base station, where the channel number indication information is used to indicate the number of data transmission channels that the base station expects the target user identification card to configure; if the number of currently configured data transmission channels of the target user identification card is inconsistent with the number indicated by the channel number indication information, adjusting the number of configured data transmission channels of the target user identification card to be consistent with the number indicated by the channel number indication information, so that the target user identification card transmits the target data through the adjusted data transmission channels.
2. The data transmission method according to claim 1, characterized in that, the method further includes: if the current data service is not the target data service, controlling each user identification card to transmit cellular data through at least one of the data transmission channels, where the cellular data transmitted by one of the multiple user identification cards includes the target data.
3. The data transmission method according to claim 1, characterized in that, the confirmation of whether the current data service processed by the electronic device is a target data service includes: monitoring a foreground application program running on the electronic device; confirming whether the foreground application program is a target application program; if the foreground application program is the target application program, confirming that the current data service processed by the electronic device is the target data service.
4. The data transmission method according to claim 1, characterized in that, the number of data transmission channels is equal to the number of user identification cards, and the control of the target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission channels includes: disabling at least one non-target user identification card, and controlling the target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission channels.
5. The data transmission method according to claim 1, characterized in that, the number of data transmission channels is greater than the number of user identification cards, and the control of the target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission channels includes: Controlling each non-target user identification card to transmit cellular data through at least one of the data transmission paths, and controlling the target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission paths.
6. The data transmission method according to claim 1, wherein, the target user identification card is a user identification card that meets a preset condition, and the preset condition includes at least one of the following: The highest network mode; The highest signal strength; The largest number of currently configured data transmission paths; The largest remaining cellular data traffic; User selection.
7. The data transmission method according to claim 1, wherein, each of the user identification cards is configured with multiple radio frequency interfaces, and the number of radio frequency interfaces configured for each user identification card is greater than or equal to the number of data transmission paths. The controlling the target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission paths includes: Controlling the multiple radio frequency interfaces configured for the target user identification card to be respectively connected to at least two of the data transmission paths, so that the target user identification card transmits the target data corresponding to the current data service through at least two of the data transmission paths.
8. The data transmission method according to any one of claims 1-7, wherein, the method further includes: If the number of currently configured data transmission paths of the target user identification card is the same as the number indicated by the channel number indication information, then maintaining the currently configured data transmission paths of the target user identification card, so that the target user identification card transmits the target data through the currently configured data transmission paths.
9. A data transmission device, wherein, applied to an electronic device, the electronic device includes multiple user identification cards and multiple data transmission paths, and the number of data transmission paths is greater than or equal to the number of user identification cards. The device includes: A confirmation module, configured to confirm whether the current data service processed by the electronic device is a target data service, and the data transmission volume corresponding to the target data service is greater than a transmission volume threshold; A data transmission module, configured to, if the current data service is the target data service, control the target user identification card to transmit the target data corresponding to the current data service through at least two of the multiple data transmission paths, and the target user identification card is one of the multiple user identification cards; The data transmission module is further configured to receive channel number indication information sent by a base station, and the channel number indication information is used to indicate the number of data transmission paths that the base station expects the target user identification card to configure; If the number of currently configured data transmission paths of the target user identification card is inconsistent with the number indicated by the channel number indication information, then adjusting the number of data transmission paths configured for the target user identification card to be the same as the number indicated by the channel number indication information, so that the target user identification card transmits the target data through the adjusted data transmission paths.
10. An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that, when the computer program is executed by the processor, the processor is caused to execute the steps of the data transmission method according to any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Radio frequency circuit, electronic device and signal transmission method
CN110234158A
Communication method and device, electronic equipment and readable storage medium
CN113316103A