Dual-card bi-pass control method, electronic equipment, readable storage medium and chip
By implementing the dual-SIM dual-pass control method in electronic devices, the DSDA function is only activated within the preset geofence, which solves the problem of wasting traffic resources in high-speed communication scenarios with the dual-SIM dual-pass function and improves the user experience.
Patent Information
- Application Number
- CN202410801098.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-07-19
- Filing Date
- 2024-06-20
- Publication Date
- 2025-01-21
AI Technical Summary
In the prior art, dual-station dual-pass (DSDA) function is prone to waste of traffic resources in high-speed communication scenarios.
By implementing a dual-card dual-pass control method in an electronic device, the DSDA function is only activated within a preset geofence, and two business flows are established using the first SIM card and the second SIM card to simultaneously transmit business data.
This method can meet users' needs for quick business processing, avoid the waste of traffic resources caused by turning on the DSDA function for a long time, and improve user experience.
Smart Images

Figure CN119342626A_ABST
Abstract
Description
[0001] This application claims priority to a Chinese patent application filed with the State Intellectual Property Office on July 19, 2023, with application number 202310889783.2 and application name “Dual-card dual-pass control method, electronic device, readable storage medium and chip”, the entire contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of wireless communication technology, and in particular to a dual-SIM dual-communication control method, an electronic device, a readable storage medium, and a chip. Background Art
[0003] Dual sim dual active (DSDA) refers to a technology that allows electronic devices to communicate simultaneously using two subscriber identity modules (SIM) cards. For example, while an electronic device is using SIM card 1 to surf the Internet or make a call, it can also use SIM card 2 to perform services such as making calls, being called, or surfing the Internet. At present, in high-speed communication scenarios such as large file downloads and live broadcasts, electronic devices can use two SIM cards based on DSDA technology to establish two service flows and simultaneously transmit service data, thereby increasing the communication rate. However, the DSDA function consumes a lot of SIM card traffic, which can easily cause a waste of traffic resources. Summary of the invention
[0004] The present application provides a dual-card dual-channel control method, an electronic device, a readable storage medium and a chip, which are used to solve the problem in the prior art that the DSDA function easily causes waste of traffic resources of the electronic device.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a dual-card dual-pass control method, which is applied to an electronic device that supports setting a first SIM card and a second SIM card. The method includes: determining a location of the electronic device; when the location of the electronic device is within a preset geographic fence and when processing a target service, starting a DSDA function to use the first SIM card and the second SIM card to establish two service flows and simultaneously transmit service data of the target service.
[0007] In this embodiment, the electronic device configures the DSDA function to take effect within a preset geographic fence, and establishes two service flows based on the DSDA function to process the target service. This can not only meet the user's needs for quickly processing the target service to a certain extent, but also avoid the waste of traffic resources caused by turning on the DSDA function for a long time, improve the user experience, and have a better overall usage experience.
[0008] In some embodiments, when the location of the electronic device is within a preset geographic fence and when processing a target service, the DSDA function is activated to use the first SIM card and the second SIM card to establish two service flows and simultaneously transmit service data of the target service, including: when the location of the electronic device is within a preset geographic fence and when executing the target service, obtaining wireless network information within the geographic fence, the wireless network information is used to represent the historical communication status of multiple other electronic devices; and, when the wireless network information meets preset network conditions, activating the DSDA function to use the first SIM card and the second SIM card to establish two service flows and simultaneously transmit service data of the target service.
[0009] In this embodiment, the electronic device uses the wireless network information within the geographic fence as a prerequisite for starting the DSDA function. The DSDA function is started only when the wireless network information meets the preset network conditions to ensure the communication quality of the electronic device in the DSDA mode.
[0010] In some embodiments, the wireless network information includes at least one of: operator information, frequency band number, signal strength, uplink and downlink congestion, delay, jitter, and packet loss rate.
[0011] In some embodiments, the preset network condition includes: the frequency band number in the wireless network information includes the frequency band number in the DSDA frequency band combination supported by the electronic device.
[0012] In some embodiments, the preset network conditions also include: signal strength greater than a signal strength threshold; and / or, delay less than a delay threshold; and / or, jitter time less than a jitter time threshold; and / or, packet loss rate less than a packet loss rate threshold.
[0013] In some embodiments, the geo-fence includes multiple sub-areas. Accordingly, obtaining wireless network information within the geo-fence includes: sending location information of the current location of the electronic device to the network side device; and receiving wireless network information of the first sub-area where the electronic device is located returned by the network side device, where the first sub-area is determined by the network side device in the geo-fence according to the location information. Based on the communication map, the wireless network information determined by the electronic device is more accurate.
[0014] In some embodiments, the sub-area is a grid of a preset shape, or a cell, etc. It should be noted that the smaller the sub-area, the higher the accuracy of the communication map.
[0015] In some embodiments, starting the DSDA function includes: determining the device state of the electronic device; when the device state satisfies the device state condition, starting the DSDA function. Exemplary. The device state condition includes: the temperature of the electronic device is less than a temperature threshold; and / or, the remaining power of the electronic device is greater than a power threshold. This method can avoid overheating of the device and ensure safe operation of the device; or, it can avoid excessive consumption of power of the electronic device, causing the electronic device to shut down.
[0016] In some embodiments, starting the DSDA function includes: determining the data volume of the service data of the target service; when the data volume is greater than the data volume threshold, starting the DSDA function. Through the method provided in this embodiment, the electronic device can turn on the DSDA function when transmitting larger files to speed up the transmission rate and improve the user experience; and when transmitting smaller files, use the data traffic of the default SIM card to reduce the consumption of the traffic of another SIM card.
[0017] In some embodiments, starting the DSDA function includes: determining the data transmission rate when the electronic device is currently transmitting the service data of the target service; when the data transmission rate is less than the rate threshold, starting the DSDA function. This method can reduce the power consumption of the device.
[0018] In some embodiments, the setting interface of the electronic device includes a first control, and the first control is used to control turning on or off the DSDA function.
[0019] In some embodiments, when the location of the electronic device is within a preset geographic fence and when processing a target service, the DSDA function is started to use the first SIM card and the second SIM card to establish two service streams and simultaneously transmit service data of the target service, including: when the location of the electronic device is within a preset geographic fence and when processing the target service, a first prompt box is displayed, the first prompt box includes an inquiry message and a confirmation control, the inquiry message is used to ask the user whether to enable the dual-card dual-pass function; and, in response to a selection operation of the confirmation control, the electronic device starts the DSDA function to use the first SIM card and the second SIM card to establish two service streams and simultaneously transmit service data of the target service.
[0020] In some embodiments, the method further includes: during the process of establishing two service flows using the first SIM card and the second SIM card and transmitting service data of the target service at the same time, displaying a second control for controlling the DSDA function of the electronic device to be turned off.
[0021] In some embodiments, after starting the DSDA function, when the frequency band numbers of the current communication between the first SIM card and the second SIM card cannot form a DSDA combination supported by the electronic device, the method further includes: when the first SIM card is in a radio resource control RRC connected state and the second SIM card is in an RRC idle state, performing cell reselection on the cell where the second SIM card resides; wherein the frequency band number of the target cell where the reselection resides can form a DSDA combination with the frequency band number of the current communication between the first SIM card and the first SIM card.
[0022] In some embodiments, after enabling the DSDA mode, when the frequency band numbers of the current communication of the first SIM card and the second SIM card cannot form a DSDA combination supported by the electronic device, the method further includes: when both the first SIM card and the second SIM card are in an RRC connected state, if the first SIM card disconnects from the current serving cell, then controlling the second SIM card to determine and establish an RRC connection with the target cell through the RRC reconstruction process; wherein the frequency band number of the target cell can form a DSDA combination with the frequency band number of the current communication of the second SIM card.
[0023] In some embodiments, the method further includes: after detecting that the electronic device leaves a preset geo-fence, turning off the DSDA function.
[0024] In a second aspect, an embodiment of the present application provides an electronic device that supports the setting of a first user identification module SIM card and a second SIM card, and includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the dual-card dual-pass control method as shown in the first aspect above is implemented.
[0025] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the dual-card dual-pass control method as shown in the first aspect above.
[0026] In a fourth aspect, an embodiment of the present application provides a chip, which includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the dual-card dual-pass control method as shown in the first aspect above is implemented.
[0027] In a fifth aspect, an embodiment of the present application provides a computer program product, in which a computer program is stored. When the computer program is executed by a processor, the dual-card dual-pass control method as shown in the first aspect above can be implemented.
[0028] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a structural diagram of a DSDA communication system provided in an embodiment of the present application;
[0030] Figure 2 This is a schematic diagram of a DSDA communication scenario provided by an embodiment of the present application;
[0031] Figure 3 is a schematic flow chart of a dual-SIM dual-pass control method provided by an embodiment of the present application;
[0032] Figure 4 is a schematic diagram of a geo-fence provided by an embodiment of the present application;
[0033] Figure 5 is a schematic flow chart of a DSDA control method provided by another embodiment of the present application;
[0034] Figure 6 is a schematic diagram of a communication map provided in an embodiment of the present application;
[0035] Figure 7 is a schematic diagram of a communication map determination process provided by an embodiment of the present application;
[0036] Figure 8 is a schematic flow chart of an electronic device acquiring wireless network information provided by an embodiment of the present application;
[0037] Fig. 9 is a display schematic diagram of a first control provided in an embodiment of the present application;
[0038] Fig.10 is a display schematic diagram of the first prompt box provided in an embodiment of the present application;
[0039] Fig.11A is a schematic diagram of a second prompt box provided in an embodiment of the present application;
[0040] Fig. 11B is a schematic diagram of a third prompt box provided in an embodiment of the present application;
[0041] Fig.12 is a schematic flowchart of cell reselection performed by an electronic device provided in an embodiment of the present application;
[0042] Fig.13 It is a schematic diagram of the structure of the chip provided in the embodiment of the present application. DETAILED DESCRIPTION
[0043] The technical solution provided in the embodiments of the present application is described below with reference to the accompanying drawings.
[0044] It should be understood that in the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a way to describe the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0045] In this embodiment, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0046] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, fifth generation (5G) system or new radio (NR), new radio (NR), global system for mobile communications (GSM), code division multiple access (CDMA) communication system, time division-synchronous CDMA (TD-SCDMA) communication system, etc.
[0047] With the development of communication technology, many electronic devices support dual SIM Dual Active (DSDA) technology, that is, support the use of two subscriber identity modules (SIM) cards to communicate simultaneously and realize dual card service concurrency. For example, when an electronic device uses SIM card 1 to surf the Internet or make a call, it can also use SIM card 2 to perform services such as calling, being called or surfing the Internet, which provides a better user experience.
[0048] Figure 1 Schematic diagram of the structure of the DSDA communication system provided in the embodiment of the present application. Figure 1 As shown, the communication system includes an electronic device and one or more network side devices, and each network side device and the electronic device support communication through cellular communication technologies such as LTE and NR. Among them, LTE can be replaced by 4G, and NR can be replaced by 5G.
[0049] The network side device may be a device capable of providing a random access function for an electronic device or a chip that may be set in the device. The device includes but is not limited to: an evolved Node B (eNB), a radio network controller (RNC), a Node B (NB), a base station controller (BSC), a base transceiver station (BTS), a home base station (e.g., home evolved NodeB, or home Node B, HNB), a baseband unit (BBU), and may also be a gNB in a 5G, such as NR, system, or a transmission point (TRP or TP), one or a group (including multiple) of antenna panels of a base station in a 5G system, or a network node constituting a gNB or a transmission point, such as a baseband unit (BBU), or a distributed unit (DU), a network side device in a future 5G network, or a network side device in a future evolved public land mobile network (PLMN) network, etc., and the embodiments of the present application are not limited thereto.
[0050] The electronic device may be a mobile phone, a tablet computer, a wearable device (such as a smart watch), an in-vehicle device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The specific type of the electronic device is not limited in the embodiments of the present application.
[0051] In this embodiment, the electronic device supports the setting of two SIM cards and includes two radio frequency modules. In this embodiment, the two SIM cards are respectively referred to as a first SIM card and a second SIM card, and the two radio frequency modules are respectively referred to as a first radio frequency module and a second radio frequency module. Of course, in some other embodiments, more SIM cards or more radio frequency modules may be further provided in the electronic device.
[0052] A SIM card can be a physical SIM card, an embedded SIM card (i.e., an e-SIM card), a virtual SIM card, etc., wherein a physical SIM card can be a SIM card of different sizes, such as a regular SIM card, a Micro SIM card, a Nano SIM card, etc. Electronic devices can interact with network-side devices through SIM cards to implement functions such as cellular calls and Internet access. The SIM card stores an international mobile subscriber identification number (IMSI), which is a unique user identifier for user devices to access cellular networks. When a user device accesses a network-side device, it needs to be authenticated through the IMSI so that the network-side device can recognize the identity of the user device.
[0053] It should be noted that the first SIM card and the second SIM card of the electronic device can be SIM cards of the same operator or SIM cards of different operators, which is not limited in this embodiment. Since different operators usually support different communication frequency bands, the communication frequency bands of SIM cards of different operators are usually different.
[0054] In addition, the network types supported by the first SIM card and the second SIM card of the electronic device may be the same or different, and the network type may be an LTE network, an NR network, etc. For example, the first SIM card supports the LTE network but does not support the NR network, while the second SIM card supports both the LTE network and the NR network. For another example, the first SIM card and the second SIM card both support the LTE network and the NR network. The communication frequency bands supported by different types of networks are usually different.
[0055] In this embodiment, the frequency band refers to the frequency range of the wireless signal, such as 1920MHz~1980MHz, 2110MHz~2170MHz, etc. The frequency band of the wireless signal includes but is not limited to the frequency band of the LTE signal and the frequency band of the NR signal. Different frequency bands can be represented by different frequency band numbers. For example, different frequency bands of LTE signals can be represented by LTE frequency band numbers such as B1, B2, B3, ... B41; the frequency bands of NR signals can be represented by NR frequency band numbers such as n1, n2, n3... n87.
[0056] The RF module is used to send uplink signals and receive downlink signals during the communication process. Specifically, during the uplink communication process, the RF module converts the binary signal into a radio electromagnetic wave signal and sends it to the network side device. During the downlink communication process, the RF module receives the electromagnetic wave signal sent by the network side device and converts it into a binary signal.
[0057] In some embodiments, the RF module includes an RF front end and an antenna. The RF front end includes a transmitting path and a receiving path, and the antenna includes a transmitting antenna (i.e., a Tx antenna) and a receiving antenna (i.e., an Rx antenna). Among them, the transmitting path is arranged between the baseband processor and the transmitting antenna, and it generally includes a mixer, a RF transceiver, a power amplifier, a filter and other devices along the signal transmission path. The receiving path is arranged between the baseband processor and the receiving antenna, and it generally includes a filter, a low noise amplifier, a demodulator and other devices along the signal reception path. The RF module transmits signals through the transmitting path and the transmitting antenna, and receives signals through the receiving path and the receiving antenna.
[0058] It should be noted that, depending on the specific hardware settings of the RF module, such as the working frequency band of the antenna, the filtering frequency band of the filter, etc., the frequency bands supported by the first RF module and the second RF module may be the same or different. In one example, the first RF module supports some LTE bands but does not support the NR band; the second RF module supports some NR bands and LTE bands at the same time. Alternatively, the first RF module and the second RF module both support some LTE bands and some NR bands.
[0059] It can be understood that for electronic devices equipped with SIM cards, since the frequency bands supported by their radio frequency modules and SIM cards are determined, the frequency bands supported by the electronic device are also determined. When accessing a cellular network, the electronic device can only reside on the frequency bands it supports. Similarly, due to the hardware settings of the network-side devices, the frequency bands supported by the network-side devices are usually determined. For example, LTE base stations usually only support operation on part or all of the LTE frequency bands, and NR base stations usually only support operation on part or all of the NR frequency bands. When an electronic device is connected to a network-side device, it needs to establish a connection through the frequency bands that are jointly supported by it and the network-side device.
[0060] For an electronic device with two SIM cards installed, during the communication process, the first SIM card and the second SIM card can usually search for a cell with a suitable frequency band to reside in, thus entering the dual sim dual standby (DSDS) mode. Unlike the DSDA mode, in the DSDS mode, the electronic device does not support the concurrency of dual card services. For example, while the first SIM card is processing the call service, the second SIM card cannot process the cellular data service; or, while the first SIM card is processing the cellular data service, if the second SIM card receives an incoming call, it will interrupt the data service of the first SIM card.
[0061] To switch to the DSDA mode, on the one hand, the electronic device needs to activate the DSDA function, and on the other hand, the frequency bands of the cells where the first SIM card and the second SIM card currently reside need to constitute a DSDA combination supported by the electronic device.
[0062] During cellular communication, electronic devices usually support one or more DSDA combinations, and the supported DSDA combinations are determined. For ease of description, this embodiment uses "band number 1 + band number 2" to represent a DSDA combination, where band number 1 is the band number of the communication band of the first SIM card, and band number 2 is the band number of the communication band of the second SIM card. For example, the DSDA combination "n41+B1" is used to indicate that the first SIM card resides in the n41 band of the NR network, and the second SIM card resides in the B1 band of the LTE network. Alternatively, the DSDA combination "n1+n41" is used to indicate that the first SIM card resides in the n1 band of the NR network, and the second SIM card resides in the n41 band of the NR network.
[0063] When an electronic device enters a certain area, if the electronic device activates the DSDA function and the wireless network in the area satisfies any DSDA combination of the electronic device, then the electronic device can enter the DSDA working mode in the area. Among them, the wireless network in a certain area satisfies a certain DSDA combination means that the frequency band of the wireless network in the area includes all the frequency bands in the DSDA combination. Taking the DSDA combination n1+B41 as an example, when the frequency band of the wireless network in area A includes both the n1 band and the B41 band, the wireless network in area A satisfies the DSDA combination n1+B41.
[0064] It should be noted that although the network types that currently support the DSDA mode include LTE networks and NR networks, other network types that may be included in the future (such as 6G networks) are also within the scope of the embodiments of the present application, as long as the DSDA mode can be formed between the two cards.
[0065] Figure 2FIG. 1 is a schematic diagram of a DSDA communication scenario provided by an embodiment of the present application. Figure 2 As shown, the electronic device uses DSDA technology to communicate, including using a first SIM card to access the cellular network through a first radio frequency module, and establishing a first Socket connection (i.e., Socket1) with a service server of a first service to transmit a first service flow of the first service; and using a second SIM card to access the cellular network through a second radio frequency module, and establishing a second Socket connection (i.e., Socket2) with a service server of a second service to transmit a second service flow of the second service, thereby realizing dual-card service concurrency, improving the transmission rate of service data, and thereby improving user experience.
[0066] It should be noted that the first service and the second service may be the same service or different services. For example, when the first service is a call service, the second service is a data service; or, when the first service and the second service are both data services. The data service may be a video download service, a web browsing service, etc. In addition, when the first service and the second service are the same service, they usually correspond to the same service server; and when the first service and the second service are different services, they usually correspond to different service servers.
[0067] In some embodiments, in high-speed communication scenarios such as large file downloads and live broadcasts, electronic devices can use two SIM cards simultaneously based on DSDA technology to establish two service flows to simultaneously transmit service data to increase the communication rate. However, the DSDA function consumes a large amount of SIM card traffic, which can easily cause a waste of traffic resources. In addition, when the traffic of the two SIM cards is unbalanced, and the primary card (such as the first SIM card) has more traffic, but the secondary card (such as the second SIM card) has less traffic, the DSDA function can easily quickly exhaust the traffic of the secondary card, resulting in a poor user experience.
[0068] To this end, an embodiment of the present application provides a dual-SIM dual-pass control method. Based on this method, the electronic device uses the DSDA function to transmit service data of the target service only within a preset geographic fence, and this method can reduce the waste of electronic device traffic resources.
[0069] Figure 3 is a schematic flow chart of a dual-card dual-pass control method provided by an embodiment of the present application. Figure 3 As shown, the method includes the following steps S301-S302.
[0070] S301, the electronic device determines its own position.
[0071] In some embodiments, the electronic device can determine its own location through the global positioning system (GPS) or the Beidou navigation satellite system (BDS). The location can be determined or represented by location information, and the location information can be longitude and latitude information, etc.
[0072] In other embodiments, the electronic device can determine its own position by means of cellular positioning. For example, due to the high density of base station settings and the wide coverage, electronic devices can usually receive signals from multiple base stations at the same location. Based on this, when there is a need for cellular positioning, the electronic device can broadcast a cellular positioning request to the base station and receive positioning information sent by each base station in response to the request. The positioning information may include the location information of the base station itself, the location feature information of the electronic device, etc. The electronic device can determine the location of the electronic device based on the positioning information sent by each base station.
[0073] S302, when the electronic device is located within a preset geographic fence and is processing a target service, the DSDA function is started to use the first SIM card and the second SIM card to establish two service flows and simultaneously transmit service data of the target service.
[0074] A geofence is a virtual geographic boundary, which can be understood as a virtual fence through which a geographic area (e.g. Figure 4 The geo-fence can be applied to various location-based service (LBS) applications, such as entertainment applications, office applications, drone control applications, terminal positioning applications, etc. The geo-fence can be in various shapes, such as circular, elliptical, square or other regular or irregular shapes, etc., which are not limited in this embodiment.
[0075] In this embodiment, the coverage area of the status fence is the effective range of the DSDA function of the electronic device, such as airports, live broadcast areas, train stations, stadiums and other areas where high-speed communication scenarios usually exist. For example, in order to ensure the flight safety of the aircraft, electronic devices are usually not allowed to turn on the cellular communication function during the flight. Therefore, users may quickly download some video resources in advance at the airport so that they can watch them during the flight. Therefore, the airport is an area where high-speed communication scenarios exist. For another example, in a live broadcast gathering place, in order to ensure that the live broadcast picture is clear and not stuck, the electronic device has a higher requirement for the communication rate. Therefore, the live broadcast gathering place is also an area where high-speed communication scenarios exist. Of course, the preset area can also be other areas, and this embodiment does not impose specific restrictions on this.
[0076] The target service refers to a service that supports the use of DSDA technology. For example, the target service may be an audio and video download service of some audio and video playback applications (such as Huawei Video, Huawei Education, and Huawei Music), a data upload / download service of some backup storage applications, and some live broadcast services. This embodiment does not specifically limit the type of the target service.
[0077] In S302, the electronic device can determine whether it is within a preset geographic fence by the latitude and longitude information of its location. If the electronic device is within the preset geographic fence, the electronic device uses DSDA technology to transmit the service data of the target service in the process of processing the target service. Specifically, the electronic device uses the first SIM card to establish a first service flow with the service server through the first radio frequency module, and uses the second SIM card to establish a second service flow with the service server through the second radio frequency module, and transmits the service data of the target service through the first service flow and the second service flow at the same time to improve the communication rate, thereby improving the user experience.
[0078] Through the method provided in the embodiment of the present application, the electronic device configures the DSDA function to be effective within a preset geographic fence, which not only avoids the waste of traffic resources caused by long-term activation of the DSDA function, but also improves the user experience and has a better overall usage experience.
[0079] In this embodiment, the geo-fence can be a default geo-fence, or a geo-fence set by the electronic device according to user operation. For example, the electronic device can select one or more target areas on the electronic map according to the user's touch control, and generate corresponding geo-fences according to these target areas. When selecting the target area, the user can draw the boundary of the target area on the electronic map through touch operation to determine the target area; or the center point of the target area can be determined first, and then a circle with a target radius based on the center can be drawn to determine a circular target area. Alternatively, the electronic device can recommend some alternative areas (such as nearby airports, hospitals, stadiums, etc.) to the user according to the user's location, and the user can select a target area from these alternative areas so that the electronic device generates a geo-fence according to the target area. The embodiment of the present application does not limit the determination process of the geo-fence.
[0080] The DSDA control method provided in the embodiment of the present application is further described below in conjunction with specific embodiments.
[0081] Figure 5 It is a schematic flow chart of a DSDA control method provided in another embodiment of the present application, including the following steps S501 to S505.
[0082] S501, the electronic device determines the location information of the current location. Please refer to S301, which will not be described in detail in this embodiment.
[0083] S502: The electronic device determines whether the electronic device is within a preset geographic fence based on the location information.
[0084] In one example, the geo-fence is a latitude and longitude range, and the location information of the electronic device is the latitude and longitude information. Based on this, if the latitude and longitude information is within the latitude and longitude range corresponding to the geo-fence, it is considered that the electronic device is located inside the geo-fence.
[0085] S503, when the electronic device is in a preset geographic fence and is processing a target service, obtaining wireless network information of the coverage area of the geographic fence.
[0086] In this embodiment, the wireless network information of an area is used to indicate the historical communication status of each electronic device in the area. Exemplarily, the wireless network information includes at least one of operator information, frequency band number, signal strength, uplink and downlink congestion, delay, jitter and packet loss rate.
[0087] In some embodiments, the management server may establish a communication map for the coverage area of the geo-fence, so that electronic devices located within the geo-fence may determine the wireless network information of their location based on the communication map.
[0088] The communication map is used to represent the communication conditions of various locations in a geographical area. Figure 6 As shown, the communication map includes multiple sub-areas and wireless network information of each sub-area. The sub-area can be a grid of a preset shape or a cell. The embodiment of the present application does not limit the shape and type of the sub-area. The size of the sub-area reflects the area size of the corresponding geographical area. The smaller the area of the sub-area, the better the accuracy of the communication map; conversely, the larger the area of the sub-area, the worse the accuracy of the communication map.
[0089] The communication map is usually determined based on the map information of the target area and the communication crowdsourcing data. For example, see Figure 7 As shown, in the daily communication process, each electronic device (such as electronic device 1 to electronic device n, etc.) within a certain geographic fence can report the location information and communication crowdsourcing data of its location to the management server during cellular communication, wherein the communication crowdsourcing data includes the operator information and frequency band number used by the electronic device in the current communication process, as well as the signal strength, uplink and downlink congestion, delay, jitter and packet loss rate detected in the current communication process. The management server can generate a communication map based on the communication crowdsourcing data reported by each of the above electronic devices at each location.
[0090] In the communication map, the wireless network information of each sub-area is used to indicate the wireless communication situation in the sub-area. It can be understood that due to the different distribution of base stations and the different hardware and software settings of base stations, the wireless network information of different sub-areas is usually different. In addition, since there may be multiple base stations of different operators covering the same sub-area, the wireless network information of a sub-area may include information of multiple operators. In addition, since a base station usually supports multiple frequency bands, there are usually multiple frequency band numbers in the wireless network information of a sub-area. The signal strength in the wireless network information of a sub-area can be the average signal strength of each electronic device in the sub-area during the communication process, the uplink and downlink congestion situation can be the average uplink and downlink congestion situation of each electronic device in the sub-area during the communication process, and the delay, jitter and packet loss rate can also be the average delay, average jitter and average packet loss rate of each electronic device in the sub-area during the communication process.
[0091] In this embodiment, the electronic device obtains wireless network information in the following manners: manner 1 and manner 2.
[0092] Method 1: Obtain wireless network information from the management server.
[0093] In some embodiments, see Figure 8 As shown, if the electronic device is within the preset geographic fence and is processing the target business, it sends an information acquisition request to the management server, and the information acquisition request carries its location information. After receiving the information acquisition request, the management server searches for the wireless network information of the corresponding sub-area according to the location information therein, and returns the wireless network information to the electronic device. It can be understood that the wireless network information obtained by the electronic device through this method has high real-time and accuracy.
[0094] Method 2: Get wireless network information locally.
[0095] In some embodiments, the electronic device can download or update the communication map of each geo-fence from the management server in advance, and save the communication map locally in the electronic device. Based on this, when the electronic device determines that it is within the preset geo-fence, it can directly search for the wireless network information of its location from the local communication map. It can be understood that the electronic device can quickly obtain the wireless network information of its location through this method, which has a better user experience.
[0096] Optionally, the electronic device can also detect the amount of data to be transmitted for the target service. If the amount of data to be transmitted is greater than the data volume threshold, S503 is executed, otherwise the DSDA control process is terminated. Exemplarily, the amount of data to be transmitted can be the size of the file to be downloaded (such as a video file), or the size of the file to be uploaded, etc. In addition, the data volume threshold can be 300M, 500M, 1G, etc., and this embodiment does not specifically limit this. It can be understood that at the same transmission speed, the transmission process of large files usually takes a long time, while the transmission process of small files usually takes a short time. Therefore, through the method provided in this embodiment, the electronic device can turn on the DSDA function when it needs to transmit larger files to speed up the transmission rate and improve the user experience; when transmitting smaller files, the data traffic of the default SIM card is used to reduce the consumption of the traffic of another SIM card.
[0097] Optionally, the electronic device can also determine its own device status, and when the device status meets the device status condition, execute S503, otherwise end the DSDA control process. Exemplarily, the device status includes: device temperature, device remaining power, etc. Correspondingly, the device status condition includes: the device temperature is less than the temperature threshold, and / or the device remaining power is greater than the power threshold. The temperature threshold can be 37°C, 40°C, etc., and the remaining power can be 20%, 30%, 40% or 50% of the full charge of the electronic device, etc., and this embodiment does not limit this.
[0098] Optionally, the electronic device may also detect the current transmission speed of the service data of the target service. If the current transmission speed is less than the speed threshold, it indicates that the electronic device processes the target service slowly. At this time, the electronic device executes S503 to enable the DSDA function in the future to improve the processing rate of the target service. If the current transmission speed is greater than or equal to the speed threshold, it indicates that the electronic device processes the target service quickly. Therefore, there is no need to obtain the wireless network information within the geographic fence to enable the DSDA function.
[0099] S504: The electronic device determines whether the wireless network information meets a preset network condition.
[0100] In this embodiment, the preset network condition includes at least one of the following items (1) to (7):
[0101] (1) The operator information in the wireless network information includes operator information corresponding to a SIM card used by the electronic device, where the SIM card includes a first SIM card and a second SIM card.
[0102] (2) The frequency band numbers in the wireless network information include all frequency band numbers in any DSDA combination supported by the electronic device.
[0103] (3) The signal strength of the cell corresponding to the DSDA combination is greater than a signal strength threshold. For example, the signal strength threshold may be -90 dBm, -95 dBm or -100 dBm, etc., which is not limited in this embodiment.
[0104] (4) The uplink and downlink congestion of the cell corresponding to the DSDA combination meets the conditions. For example, the uplink and downlink retransmission rate is less than the retransmission rate threshold, the round-trip time (RTT) is less than the RTT threshold, the average buffer time is less than the buffer time threshold, and the signal-to-noise ratio is greater than the signal-to-noise ratio threshold.
[0105] (5) The delay of the cell corresponding to the DSDA combination is less than the delay threshold. Delay is used to refer to the time required for data to be transmitted from one end of the network to the other end. It can be understood that the smaller the delay, the higher the data transmission rate. In this embodiment, the delay threshold can be 100ms, 120ms, etc., and this embodiment does not limit this.
[0106] (6) The jitter time of the cell corresponding to the DSDA combination is less than the jitter time threshold. The jitter time is used to indicate the time difference between the maximum delay and the minimum delay during the communication process. It can be understood that the smaller the jitter time, the more stable the delay during data transmission. In this embodiment, the jitter time threshold can be 15ms, 20ms, etc., and this embodiment does not limit this.
[0107] (7) The packet loss rate of the cell corresponding to the DSDA combination is less than the packet loss rate threshold. The packet loss rate refers to the ratio of the number of lost data packets to the total number of sent data packets. It can be understood that the higher the packet loss rate, the worse the communication quality. In this embodiment, the packet loss rate threshold can be 0.01%, 0.05% or 0.1%, etc., and this embodiment does not limit this.
[0108] S505: If the wireless network information meets the preset network conditions, the DSDA technology is used to access the cellular network to transmit the service data of the target service.
[0109] In this embodiment, the electronic device uses DSDA technology to communicate, including using a first SIM card to access the cellular network through a first radio frequency module, and establishing a first Socket connection (i.e., Socket1) with a service server of a target service to transmit a first service flow of the target service; and using a second SIM card to access the cellular network through a second radio frequency module, and establishing a second Socket connection (i.e., Socket2) with a service server of the target service to transmit a second service flow of the target service. In other words, the electronic device uses two SIM cards to establish two service flows and simultaneously transmit service data of the target service, thereby increasing the transmission rate.
[0110] Optionally, when the electronic device leaves the coverage area of the geo-fence, the electronic device automatically turns off the DSDA function to reduce the traffic consumption of the electronic device. In one example, the electronic device usually sets the card with more traffic as the default traffic card, such as the first SIM card. Based on this, when the electronic device turns off the DSDA function, it usually chooses to keep the first service flow of the first SIM card and disconnect the second service flow of the second SIM card to give priority to the data traffic of the traffic card and reduce the traffic consumption of the other SIM card.
[0111] In order to enhance the user's control experience of the DSDA function, the electronic device may display relevant controls and further turn on / off the DSDA function in combination with the user's control operations.
[0112] In some embodiments, see Fig. 9 As shown, the mobile data setting interface of the electronic device includes a first control, which is used to control the DSDA function of the electronic device to be turned on or off. Based on this, the user can manually turn on / off the DSDA function of the electronic device through the first control. When the DSDA function is turned on, the electronic device communicates through the method provided in the above embodiment (such as S301~S302 or S501~S505). When the DSDA function is turned off, the electronic device does not execute the method provided in the above embodiment.
[0113] In some other embodiments, when the electronic device is in a preset geographic fence and processing a target service, a first prompt box is displayed, and the first prompt box includes an inquiry message, a confirmation control, and a cancel control. The inquiry message is used to ask the user whether to enable the dual-card dual-pass function. For example, see Fig.10 As shown, the inquiry information may be: the DSDA dual-card function will be turned on, and after turning it on, card 1 and card 2 will use mobile data at the same time. The confirmation control is used to confirm the activation of the DSDA function, and the cancel control is used to cancel the display of the first prompt box. In response to the user's selection operation on the confirmation control, the electronic device enables the DSDA function when processing the target service, establishes two service flows through two SIM cards, and transmits the service data of the target service at the same time, thereby increasing the transmission rate. Through the first prompt box, when the electronic device is in the effective range of DSDA, the user can independently choose whether to enable the DSDA function according to needs.
[0114] In some other embodiments, see Fig.11A As shown, in the process of processing the target service through the DSDA function, the electronic device can display a second prompt box, which includes prompt information and a function shutdown control. The prompt information is used to prompt the user: the electronic device is currently using the DSDA function to process the target service, and the function shutdown control is used to shut down the DSDA function. The user can shut down the DSDA function by operating the shutdown control.
[0115] When the DSDA function is turned off, see Fig. 11B As shown, the electronic device cancels the display of the second prompt box and displays the third prompt box. The third prompt box includes prompt information and a function activation control. The prompt information is used to prompt the user that the electronic device has turned off the DSDA function. The function activation control is used to control the activation of the DSDA function. The user can restart the DSDA function of the electronic device to process the target business by operating the function activation control.
[0116] Alternatively, when the electronic device is within a preset geographic fence and meets preset network conditions and device status conditions, the electronic device may automatically display the third prompt box while processing the target business, so that the user can independently decide in the third prompt box whether to use the DSDA function to process the target business.
[0117] It can be seen that through the method provided in this embodiment, the user can independently control whether the electronic device uses the DSDA function to process the target business, which has a higher user control experience.
[0118] Based on the foregoing description, before the DSDA function of the electronic device is turned on, its first SIM card and second SIM card usually reside in a suitable cell in DSDS mode. After the DSDA function of the electronic device is turned on, the two cells where the first SIM card and the second SIM card originally reside in the DSDS mode may not support the electronic device to enter the DSDA mode. In other words, the frequency band of the cell where the first SIM card and the second SIM card reside in the DSDS mode may not meet the DSDA combination supported by the electronic device. At this time, the electronic device needs to optimize the connection so that the first SIM card and the second SIM card enter the DSDA mode.
[0119] In some embodiments, when the frequency bands where the first SIM card and the second SIM card reside cannot form a DSDA combination, the electronic device can optimize the connection of the wireless network according to the service status of the two cards, so that the electronic device enters the DSDA mode. Among them, the service status specifically refers to the state of the radio resource control (RRC) layer of the control plane protocol stack of the electronic device and the network side device. Among them, the RRC layer is used to control the connection between the electronic device and the network side device. The state of the RRC layer includes an RRC idle state (ie, RRC_IDLE) and an RRC connected state (ie, RRC_CONNECTED). Specifically, if the electronic device does not establish an RRC connection with the network device, the electronic device is in an RRC idle state. In the RRC idle state, the electronic device can select a public land mobile network (PLMN), receive system messages broadcast by the network device, perform cell reselection, receive paging messages, or receive indication information for the electronic device to be paged. In addition, if the electronic device establishes an RRC connection with the network device, the electronic device is in an RRC connected state. In the RRC connected state, the electronic device can establish a user plane and a control plane connection with the network device to transmit user plane data and control plane signaling.
[0120] The optimized connection method provided in the embodiment of the present application is exemplarily described below for the cases where the first SIM card and the second SIM card are in different service states.
[0121] (1) The first SIM card is in the RRC connected state, and the second SIM card is in the RRC idle state.
[0122] It can be understood that when the first SIM card is in the RRC connection state during the process of the electronic device processing the target service, it means that it is transmitting the service data of the target service. At this time, in order to avoid interrupting the processing of the target service, the electronic device can reselect the cell of the second SIM card and select a target cell that supports the electronic device to enter the DSDA mode. Specifically, the frequency band number of the communication frequency band of the target cell needs to be able to form a DSDA combination with the frequency band number of the current communication frequency band of the first SIM card.
[0123] Fig.12 is a schematic flow chart of cell reselection performed by an electronic device provided in an embodiment of the present application. Fig.12 As shown, the process includes the following steps S1201 to S1203.
[0124] S1201: The electronic device starts neighboring cell measurement.
[0125] In a mobile communication system, the signal coverage area of a network side device or a part of a network side device (such as a sector antenna) is called a cell. In this embodiment, the cell where the electronic device currently resides is called a primary cell or a serving cell, and the cell that the electronic device can currently search but is not residing in is called a neighboring cell, an adjacent cell, or a neighboring area.
[0126] Normally, in order to ensure that electronic devices at the edge of a cell can search for the cell, the cells are usually distributed in an overlapping manner. Therefore, electronic devices can search for multiple cells in some locations. At present, after searching for multiple cells, the electronic device selects a cell with the highest priority from the multiple cells by default to reside. After successfully residing in the cell, the electronic device can communicate with the network side device corresponding to the cell. Exemplarily, the electronic device can determine its priority based on the reference signal receiving power (RSRP) of the cell, or the reference signal receiving quality (RSRP). The larger the RSRP or RSRQ, the higher the priority.
[0127] After the electronic device resides in a suitable cell and stays there for a suitable time (such as 1 second), the cell reselection can be performed to ensure that the electronic device in the RRC idle state resides in the most suitable cell to the greatest extent.
[0128] Taking the electronic device residing in an NR cell as an example, the electronic device can start neighboring cell measurement in case 1 or case 2 as shown below to perform cell reselection.
[0129] Case 1:
[0130] 1) The neighboring cell with a higher priority NR frequency point meets the following conditions during the NR cell reselection timer (i.e. TreselectionNR): qual >Thresh X,HighQ Among them, S qual is the RSRQ value of the neighboring cell, Thresh X,HighP Indicates the high priority reselection RSRQ threshold.
[0131] 2) The electronic device stays in the current serving cell for more than 1 second.
[0132] Case 2:
[0133] 1) The neighboring cell with a higher priority NR frequency point meets the following conditions during the TreselectionNR timing period: S rxlev >Thresh X,HighP Among them, S rxlev is the RSRP value of the neighboring cell, ThreshX,HighP RSRP threshold for high priority reselection.
[0134] It should be noted that the NR frequency point is the number of the fixed frequency in the NR frequency band, and an NR frequency band usually includes multiple NR frequency points. During the communication process, the electronic device specifically uses the NR frequency point in the NR frequency band to communicate.
[0135] 2) The electronic device stays in the current serving cell for more than 1 second.
[0136] In this embodiment, since the electronic device usually selects the cell with the highest priority to camp on, the electronic device can start the neighboring cell measurement by lowering the priority of the serving cell.
[0137] S1202, the electronic device reselects and evaluates neighboring cells to determine a target cell.
[0138] After searching for multiple neighboring cells, the electronic device first needs to determine some candidate cells whose frequency bands can form a DSDA combination with the frequency band of the current communication of the first SIM card according to the frequency bands of these neighboring cells, and then further determine a target cell from these candidate cells for connection.
[0139] Specifically, if there is only one candidate cell, the electronic device determines the candidate cell as the target cell. If there are multiple candidate cells, the electronic device may determine a candidate cell with the highest signal quality level Rn as the target cell.
[0140] R n =Q meas,n -Q offset -Q offsettemp
[0141] Among them, Q meas,n is the RSRP of the candidate cell, Q offset is the neighboring cell reselection bias of the candidate cell, Q offsettemp It is a penalty factor introduced for a cell where the timer T300 times out multiple times, that is, a penalty factor when an electronic device sends an RRC setup request message RRCSetupRequest multiple times on the cell but does not receive an RRC setup message RRCSetup.
[0142] S1203: The electronic device uses the second SIM card to connect to the target cell.
[0143] In summary, through the above steps S1201 to S1203, after the electronic device uses the second SIM card to connect to the target cell, it can enter the DSDA mode and establish two service flows through two SIM cards to simultaneously transmit service data of the target service.
[0144] (2) Both the first SIM card and the second SIM card are in RRC connected state.
[0145] When the first SIM card and the second SIM card cannot form a DSDA and are both in an RRC connection state, if the first SIM card undergoes RRC reconstruction, the electronic device can re-search the target cell for the first SIM card through the RRC reconstruction process and establish an RRC connection with the network side device corresponding to the target cell. The frequency band number of the communication frequency band supported by the target cell can form a DSDA combination with the frequency band number of the communication frequency band currently used by the second SIM card.
[0146] In this embodiment, the process of the electronic device connecting the first SIM card to the target cell through RRC reestablishment includes the following contents (1) to (10):
[0147] (1) If timer T310 is running, stop T310 and start timer T311.
[0148] Among them, timer T310 is a timer for the electronic device to monitor the failure of the wireless link. When the electronic device detects that there is a problem with the physical layer of the service cell, the timer T310 is started; and the electronic device can stop timer T310 when initiating the RRC connection reconstruction process. Timer T311 is a timer for the waiting time for the electronic device to enter the RRC_IDLE state after monitoring the failure of the wireless link. When the electronic device initiates the initial RRC connection reconstruction, the T311 timer is started; when the electronic device reselects a suitable NR cell, the T311 timer is stopped; when the timer times out, the electronic device enters the RRC_IDLE state.
[0149] (2) Except for the signaling radio bearer SRB0, all other radio bearers (RBs) are controlled to be suspended.
[0150] (3) Reset the medium access control (MAC) layer.
[0151] (4) Configure the default physical channel and semi-static scheduling configuration of the physical (physics, PHY) layer.
[0152] (5) Configure the default MAC configuration of the MAC layer.
[0153] (6) Perform cell search process.
[0154] (7) After the target cell is searched, stop T311 and start timer T301. The frequency band number of the communication frequency band supported by the target cell can form a DSDA combination with the frequency band number of the communication frequency band currently used by the second SIM card.
[0155] Among them, timer T301 is a timer for the electronic device to wait for the RRC reestablishment response. When the electronic device sends an RRC reestablishment request message RRC Reestablishmnent Request, the T301 timer is started. When the electronic device receives an RRC connection reestablishment message RRC Reestablishmnen or an RRC connection reestablishment rejection message RRC Reestablishmnent Reject, the T301 timer is stopped. When timer T301 times out, the electronic device enters the RRC_IDLE state.
[0156] (8) Send an RRC reestablishment request message RRCReestablishmnent Request to the network side device corresponding to the target cell to trigger the random access process.
[0157] (9) Receive the RRC Reestablishment message RRC Reestablishmnent sent by the network side device.
[0158] (10) An RRC reestablishment completion message RRC Reestablishmnent Complete is sent to the network side device to complete the RRC reestablishment with the network side device.
[0159] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. 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 embodiments of the present application.
[0160] An embodiment of the present application also provides an electronic device that supports setting a first SIM card and a second SIM card, and includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the DSDA control method shown in the above embodiments is implemented.
[0161] The present application also provides a chip, see Fig.13 As shown, the chip includes a processor and a memory, in which a computer program is stored. When the computer program is executed by the processor, the DSDA control method shown in the above embodiments is implemented.
[0162] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the DSDA control method shown in the above embodiments is implemented.
[0163] An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is executed by an electronic device, the electronic device implements the DSDA control method shown in the above embodiments.
[0164] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0165] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0166] In the embodiments provided in the present application, the division of each framework or module is only a logical function division. There may be other division methods in actual implementation. For example, multiple frameworks or modules can be combined or integrated into another system, or some features can be ignored or not executed.
[0167] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0168] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0169] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0170] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A dual-card dual-pass control method, characterized in that: Applied to an electronic device, the electronic device supports setting a first user identification module SIM card and a second SIM card, the method comprising: determining a location of the electronic device; When the electronic device is located within a preset geographic fence and is processing a target service, a dual-card dual-access (DSDA) function is activated to use the first SIM card and the second SIM card to establish two service flows and simultaneously transmit service data of the target service.
2. The method according to claim 1, characterized in that When the location of the electronic device is within a preset geographic fence and when processing a target service, starting the DSDA function to use the first SIM card and the second SIM card to establish two service flows and simultaneously transmit service data of the target service, including: When the location of the electronic device is within a preset geographic fence and when executing the target service, wireless network information within the geographic fence is obtained, where the wireless network information is used to represent historical communication conditions of multiple other electronic devices; When the wireless network information meets the preset network condition, the DSDA function is started to use the first SIM card and the second SIM card to establish two service flows and simultaneously transmit the service data of the target service.
3. The method according to claim 2, characterized in that The wireless network information includes: at least one of: operator information, frequency band number, signal strength, uplink and downlink congestion, delay, jitter and packet loss rate.
4. The method according to claim 3, characterized in that: The preset network condition includes: the frequency band number in the wireless network information includes the frequency band number in the DSDA combination supported by the electronic device.
5. The method according to claim 4, characterized in that The preset network conditions also include: The signal strength is greater than a signal strength threshold; and / or, The delay is less than the delay threshold; and / or, The jitter time is less than a jitter time threshold; and / or, The packet loss rate is less than a packet loss rate threshold.
6. The method according to any one of claims 2 to 5, characterized in that: The geo-fence includes a plurality of sub-areas. Accordingly, the step of obtaining the wireless network information within the geo-fence includes: Sending location information of the current location of the electronic device to a network side device; The wireless network information of a first sub-area where the electronic device is located is received, which is returned by the network side device. The first sub-area is determined by the network side device in the geographic fence according to the location information.
7. The method according to claim 6, characterized in that The sub-area is a grid or a cell of a preset shape.
8. The method according to any one of claims 1 to 7, characterized in that: The starting of the DSDA function includes: determining a device state of the electronic device; When the device state meets the device state condition, starting the DSDA function; and / or, Determine the data volume of the business data of the target business; When the data volume is greater than the data volume threshold, starting the DSDA function; and / or, Determine the data transmission rate when the electronic device is currently transmitting the service data of the target service; When the data transmission rate is less than the rate threshold, the DSDA function is started.
9. The method according to claim 8, characterized in that The device status conditions include: The temperature of the electronic device is less than a temperature threshold; and / or, The remaining power of the electronic device is greater than a power threshold.
10. The method according to any one of claims 1 to 9, characterized in that: The setting interface of the electronic device includes a first control, and the first control is used to control turning on or off the DSDA function.
11. The method according to any one of claims 1 to 10, characterized in that: When the location of the electronic device is within a preset geographic fence and when processing a target service, starting the DSDA function to use the first SIM card and the second SIM card to establish two service flows and simultaneously transmit service data of the target service, including: When the location of the electronic device is within a preset geographic fence and when processing a target service, a first prompt box is displayed, wherein the first prompt box includes inquiry information and a confirmation control, and the inquiry information is used to inquire the user whether to enable the dual-SIM dual-pass function; In response to the selection operation of the confirmation control, the electronic device starts the DSDA function to establish two service flows using the first SIM card and the second SIM card to simultaneously transmit the service data of the target service.
12. The method according to any one of claims 1 to 11, characterized in that: The method further comprises: In the process of using the first SIM card and the second SIM card to establish two service flows and simultaneously transmit service data of the target service, a second control is displayed, where the second control is used to control the DSDA function of the electronic device to be turned off.
13. The method according to any one of claims 1 to 12, characterized in that: After the DSDA function is started, when the frequency band numbers of the current communication between the first SIM card and the second SIM card cannot form a DSDA combination supported by the electronic device, the method further includes: When the first SIM card is in a radio resource control RRC connected state and the second SIM card is in an RRC idle state, a cell reselection is performed on the cell where the second SIM card resides; wherein the frequency band number of the target cell where the second SIM card resides after the reselection can form the DSDA combination with the frequency band number of the current communication of the first SIM card.
14. The method according to any one of claims 1 to 13, characterized in that: After the DSDA mode is enabled, when the frequency band numbers of the current communication between the first SIM card and the second SIM card cannot form a DSDA combination supported by the electronic device, the method further includes: When both the first SIM card and the second SIM card are in an RRC connection state, if the first SIM card disconnects from the current serving cell, the second SIM card is controlled to determine and establish an RRC connection with the target cell through an RRC reestablishment process; wherein the frequency band number of the target cell can form the DSDA combination with the frequency band number of the current communication of the second SIM card.
15. The method according to any one of claims 1 to 14, characterized in that: The method further comprises: After detecting that the electronic device leaves the preset geo-fence, the DSDA function is turned off.
16. An electronic device, characterized in that: The electronic device supports setting a first user identification module SIM card and a second SIM card, and includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method according to any one of claims 1 to 15 is implemented.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.
18. A chip, characterized in that: The chip includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method according to any one of claims 1 to 15 is implemented.