Network switching method and device, electronic equipment, network equipment, medium and product
By receiving measurement requests in electronic devices and measuring whether the network to be tested supports dual-station and dual-pass services, the interruption problem caused by network switching is solved, ensuring the continuity of dual-station and dual-pass functions.
Patent Information
- Application Number
- CN202310500144.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-05
- Publication Date
- 2024-11-05
AI Technical Summary
When the load of the base station connected to the electronic device is too high, network switching may cause network interruption, especially in devices that support dual-station and dual-pass functions. After switching, the frequency band combination does not support dual-station and dual-pass functions, resulting in service interruption.
By receiving measurement requests issued by network equipment, the electronic device measures whether the network to be tested supports dual-station and dual-pass services, and decides whether to switch networks based on the measurement results to ensure that the dual-station and dual-pass function is still supported after the switching.
It avoids service interruption of equipment during network switching, ensures that network switching is carried out when dual-station and dual-pass support is supported, and reduces the risk of network interruption.
Smart Images

Figure CN118900443A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a network switching method, device, electronic device, network equipment and medium, and product. Background Art
[0002] With the rapid development of communication technology and the continuous improvement of user needs, more and more electronic devices support dual-SIM dual-pass function. Dual-SIM dual-pass function means that an electronic device can use two SIM cards (Subscriber Identity Module Card) at the same time to realize the function of call service and data service.
[0003] When the load of the base station to which the electronic device is connected is too large, the base station will switch the network of the electronic device to another network. However, for electronic devices that use dual SIM cards for both call and data services, switching the network of the electronic device may cause network interruption. Summary of the invention
[0004] The embodiments of the present application provide a network switching method, device, electronic device, and computer-readable storage medium, which can avoid network interruption of the electronic device during the network switching process.
[0005] In one aspect, a network switching method is provided, which is applied to an electronic device, and the method includes:
[0006] Receiving a measurement request sent by a network device; the measurement request carries information about the network to be measured;
[0007] In response to the measurement request, measuring whether the electronic device supports a dual-SIM dual-pass service under the network to be tested, and generating a measurement result;
[0008] Based on the measurement result, it is determined whether to perform network switching.
[0009] On the other hand, a network switching method is provided, which is applied to a network device; the method comprises:
[0010] Sending a measurement request to an electronic device; the measurement request carries information about the network to be tested; the measurement request is used to instruct the electronic device to measure whether the electronic device supports dual-SIM dual-pass service under the network to be tested, and generate a measurement result;
[0011] Based on the measurement result, it is determined whether to perform network switching.
[0012] On the other hand, a network switching device is provided, which is applied to an electronic device, and the device includes:
[0013] A measurement request receiving module, used to receive a measurement request sent by a network device;
[0014] A measurement module, configured to measure, in response to the measurement request, whether the electronic device supports a dual-SIM dual-pass service in the network to be tested, and generate a measurement result;
[0015] The network switching module is used to determine whether to perform network switching based on the measurement result.
[0016] In another aspect, an electronic device is provided, the electronic device comprising a transceiver and a processor;
[0017] The transceiver is used to receive a measurement request sent by a network device;
[0018] The processor is used to measure, in response to the measurement request, whether the electronic device supports dual-SIM dual-pass services in the network to be tested, and generate a measurement result; and determine whether to perform network switching based on the measurement result.
[0019] On the other hand, a chip is provided, comprising a processor, wherein the processor is configured to execute the steps of the network switching method as described above.
[0020] On the other hand, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the network switching method as described above.
[0021] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the network switching method described above are implemented.
[0022] On the other hand, a computer program product is provided, comprising a computer program, which implements the steps of the network switching method described above when executed by a processor.
[0023] In the above-mentioned network switching method, device, electronic device, network device and medium, product, the electronic device receives a measurement request issued by the network device; the measurement request carries information about the network to be tested. Then, the electronic device responds to the measurement request, measures whether the electronic device supports dual-card dual-pass service under the network to be tested based on the information of the network to be tested, and generates a measurement result. For electronic devices that support dual-card dual-pass function under some frequency bands, the electronic device responds to the measurement request, and measures whether the electronic device supports dual-card dual-pass service under the network to be tested based on the information of the network to be tested. That is, for electronic devices that support dual-card dual-pass function under some frequency bands, it is actually predicted whether the electronic device supports dual-card dual-pass service under the network to be tested. Finally, the electronic device determines whether to perform network switching based on the measurement results. In this way, it is possible to accurately implement network switching of the electronic device when the electronic device supports dual-card dual-pass service; and when the electronic device does not support dual-card dual-pass service, the electronic device does not perform network switching. In addition, the situation where the electronic device is interrupted during the network switching process is avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 An application environment diagram of a network switching method in an embodiment;
[0026] Figure 2 is a flow chart of a network switching method in one embodiment;
[0027] Figure 3 for Figure 2 A flowchart of a method for generating a measurement result by responding to a measurement request and measuring whether an electronic device supports a dual-SIM dual-pass service under a network to be tested;
[0028] Figure 4 for Figure 3 A flowchart of a method for determining whether an electronic device supports dual-SIM dual-pass services under a network to be tested and generating measurement results according to network measurement information and service measurement information;
[0029] Figure 5 for Figure 4 A flowchart of a method for determining whether an electronic device supports dual-SIM dual-pass services under a network to be tested according to a service type and a service status corresponding to the service type, and generating a measurement result;
[0030] Figure 6It is a schematic diagram of the current frequency band combination of two SIM cards in an electronic device and the frequency band combination to be switched in one embodiment;
[0031] Figure 7 is a flow chart of a network switching method in one embodiment;
[0032] Figure 8 is a flow chart of a network switching method in an exemplary embodiment;
[0033] Fig. 9 is a flow chart of a network switching method in another embodiment;
[0034] Fig.10 is a structural block diagram of a network switching device in one embodiment;
[0035] Fig.11 is a structural block diagram of a network switching device in another embodiment;
[0036] Fig.12 FIG. 1 is a schematic diagram of the internal structure of an electronic device in an embodiment. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with 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.
[0038] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first measurement report may be referred to as a second measurement report, and similarly, a second measurement report may be referred to as a first measurement report. Both the first measurement report and the second measurement report are measurement reports, but they are not the same measurement report.
[0039] With the rapid development of communication technology and the continuous improvement of user needs, more and more electronic devices support dual-SIM dual-pass function. Dual-SIM dual-pass function means that an electronic device can use two SIM cards (Subscriber Identity Module Card) at the same time to realize the function of call service and data service.
[0040] When the load of the base station to which the electronic device is connected is too large, the base station will switch the network of the electronic device to another network. However, for electronic devices that use dual SIM cards for both call and data services, switching the network of the electronic device may cause network interruption.
[0041] For example, when the load of the base station to which the electronic device is connected is too large, the base station will switch the network of one or two SIM cards of the electronic device to other networks. However, electronic devices that support dual-card dual-pass function may be electronic devices that support dual-card dual-pass function in some frequency bands. Therefore, before the network is switched, the electronic device can use dual cards to realize call services and data services at the same time. After the network is switched, the electronic device may not support the dual-card dual-pass function under the switched frequency band combination. At this time, the electronic device will experience network interruption.
[0042] Assume that when the load of the base station to which the electronic device is connected is too large, the base station will switch the network of a SIM card (data card) that supports data services in the electronic device. At this time, the dual-card radio access technology (RAT) mode on the electronic device does not support the dual-card dual-communication function. Based on the premise of giving priority to call services, the data card of the electronic device will be disconnected from the network, resulting in the inability to access the Internet normally.
[0043] Assume that when the load of the base station to which the electronic device is connected is too large, the base station will switch the network of a SIM card (referred to as the call card) of the electronic device that supports the call service. At this time, the dual-card radio access technology (RAT) mode of the electronic device does not support the dual-card dual-communication function. Based on the premise of giving priority to the call service, the data card of the electronic device will be disconnected from the network, resulting in the inability to access the Internet normally.
[0044] Figure 1 FIG. 1 is a schematic diagram of an application environment of a network switching method in an embodiment. Figure 1 As shown, the application environment includes an electronic device 120 and a network device 140. The electronic device 120 receives a measurement request sent by the network device 140. The measurement request carries information about the network to be tested. In response to the measurement request, the electronic device is measured to see whether it supports dual-SIM dual-pass services in the network to be tested, and a measurement result is generated. Based on the measurement result, it is determined whether to switch the network. The electronic device 120 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, smart cars, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc.
[0045] Figure 2 FIG. 1 is a flow chart of a network switching method in an embodiment. The network switching method in this embodiment is to run on Figure 1 The electronic device in the example is used to describe. Figure 2As shown, the network switching method includes steps 220 to 260, wherein:
[0046] Step 220: Receive a measurement request sent by a network device; the measurement request carries information about the network to be measured.
[0047] The electronic device here includes at least two user identification cards, and the electronic device is an electronic device that supports the dual-card dual-channel function in some frequency bands. That is, it can be understood that the electronic device supports the dual-card dual-channel function in some frequency bands, but does not support the dual-card dual-channel function in other frequency bands.
[0048] Therefore, in order to ensure that the electronic device can still support the dual-card dual-pass function after the network device switches the network of the electronic device, when the load of the network device to which the electronic device is connected is too large, if the network device hopes to switch the network of the electronic device, the network device will send a measurement request to the electronic device. Here, the network device may refer to a base station in the network, for example, including an LTE (Long Term Evolution) base station corresponding to 4G and an SA (Standaloner) base station corresponding to 5G, a base station corresponding to a more advanced wireless communication technology, etc. Of course, this application does not limit this. Among them, the SA base station refers to a base station that adopts the 5G networking mode of "independent networking", that is, one core network is equipped with one base station.
[0049] Here, the measurement request carries information about the network to be tested, and the measurement request is used to instruct the electronic device to measure whether it supports dual-SIM dual-pass services under the network to be tested. The information about the network to be tested includes information about the network that the network device instructs the electronic device to measure, for example, including frequency band information of the network to be tested; of course, it can also include frequency band information of the network to be tested and target user identification card information, etc., and of course, this application does not limit this.
[0050] When the load of the network device to which the electronic device is connected is too large, and after the network device sends a measurement request to the electronic device, the electronic device receives the measurement request sent by the network device.
[0051] Step 240: In response to the measurement request, measure whether the electronic device supports the dual-SIM dual-communication service in the network to be tested, and generate a measurement result.
[0052] Since the measurement request is used to instruct the electronic device to measure whether it supports dual-card dual-pass services under the network to be tested, after the electronic device receives the measurement request sent by the network device, the electronic device responds to the measurement request, measures whether the electronic device supports dual-card dual-pass services under the network to be tested, and generates a measurement result. Optionally, the measurement request carries information about the network to be tested, and the information about the network to be tested includes frequency band information of the network to be tested, etc. Therefore, the electronic device can obtain information about the object to be tested (target user identification card information) based on the frequency band information of the network to be tested, and then based on the frequency band information of the network to be tested and the information of the object to be tested (target user identification card information), measure whether the electronic device supports dual-card dual-pass services under the network to be tested.
[0053] Here, it is measured whether the electronic device supports dual-SIM dual-pass service under the network to be tested, that is, it is predicted whether the electronic device supports dual-SIM dual-pass service under the switched frequency band combination after the object to be tested (target user identification card) is switched to the frequency band of the network to be tested. The switched frequency band combination includes the frequency band of the network to be tested.
[0054] Step 260: Determine whether to perform network switching based on the measurement result.
[0055] The electronic device responds to the measurement request, measures whether the electronic device supports dual-card dual-pass service under the network to be tested, and generates a measurement result. Then, the electronic device can determine whether to switch the network based on the measurement result. If the measurement result shows that the electronic device supports dual-card dual-pass service under the network to be tested, the electronic device can determine that the network can be switched based on the measurement result. If the measurement result shows that the electronic device does not support dual-card dual-pass service under the network to be tested, the electronic device can determine that the network cannot be switched based on the measurement result.
[0056] In an embodiment of the present application, an electronic device receives a measurement request sent by a network device; the measurement request carries information about the network to be tested. Then, the electronic device responds to the measurement request, measures whether the electronic device supports dual-card dual-pass services under the network to be tested based on the information of the network to be tested, and generates a measurement result. For electronic devices that support dual-card dual-pass functions under some frequency bands, the electronic device responds to the measurement request, and measures whether the electronic device supports dual-card dual-pass services under the network to be tested based on the information of the network to be tested. That is, for electronic devices that support dual-card dual-pass functions under some frequency bands, it is actually predicted whether the electronic device supports dual-card dual-pass services under the network to be tested. Finally, the electronic device determines whether to switch the network based on the measurement results. In this way, it is possible to accurately implement network switching of the electronic device when the electronic device supports dual-card dual-pass services; and when the electronic device does not support dual-card dual-pass services, the electronic device does not switch the network. In addition, the situation where the electronic device is interrupted during the network switching process is avoided.
[0057] In the previous embodiment, a network switching method is described, in which an electronic device responds to a measurement request, measures whether the electronic device supports dual-SIM dual-pass services under the network to be tested based on information of the network to be tested, and then determines whether to perform network switching based on the measurement result. In this embodiment, the information of the network to be tested includes the identification of the target frequency band; Figure 3 As shown, step 240, in response to the measurement request, measures whether the electronic device supports the dual-SIM dual-pass service in the network to be tested, and generates a measurement result, including:
[0058] Step 242: In response to the measurement request, determine the target frequency band and the target subscriber identity card based on the identifier of the target frequency band.
[0059] The measurement request carries information about the network to be measured, and the information about the network to be measured includes the identifier of the target frequency band, etc. Therefore, after receiving the measurement request sent by the network device, the electronic device can determine the target frequency band and the target user identification card based on the identifier of the target frequency band.
[0060] For example, the measurement request carries information about the network to be measured, which can also be referred to as a reconfiguration message. The reconfiguration message includes the measurement object (target user identification card) and the measurement object frequency band (target frequency band). If the target user identification card includes a SIM card, it is assumed that the identifier of the target user identification card is SIM1, and the identifier of the target frequency band corresponding to the target user identification card is BandY1; or it is assumed that the identifier of the target user identification card is SIM2, and the identifier of the target frequency band corresponding to the target user identification card is BandY2.
[0061] If the target user identification card includes two SIM cards, it is assumed that the identifiers of the target user identification cards are SIM1 and SIM2. For SIM1, the identifier of the target frequency band corresponding to the target user identification card is BandY1; for SIM2, the identifier of the target frequency band corresponding to the target user identification card is BandY2.
[0062] Step 244: Acquire network measurement information of the target subscriber identity card in the target frequency band and service measurement information of the electronic device.
[0063] After the electronic device determines the target frequency band and the target user identification card in response to the measurement request, it further obtains the network measurement information of the target user identification card under the target frequency band and the service measurement information of the electronic device. Here, the network measurement information refers to information related to the network quality; the service measurement information of the electronic device refers to information related to the SIM service running on the electronic device.
[0064] Then, the electronic device can obtain information related to the network quality of the target user identification card in the target frequency band, and obtain information related to the SIM service running on the electronic device.
[0065] Step 246: Determine whether the electronic device supports dual-SIM dual-pass service in the network to be tested based on the network measurement information and the service measurement information, and generate a measurement result.
[0066] Because the measurement request carries the identifier of the target frequency band, the target frequency band and the target user identification card are determined based on the identifier of the target frequency band, so the electronic device can obtain the network measurement information of the target user identification card under the target frequency band and the service measurement information of the electronic device in response to the measurement request. Here, the network measurement information refers to information related to network quality; the service measurement information of the electronic device refers to information related to the SIM service running on the electronic device.
[0067] Generally, the premise for an electronic device to switch networks is that the network quality of the switched network meets the preset network quality conditions. Therefore, the electronic device can first determine whether the electronic device supports dual-card dual-pass services in the network to be tested based on the network measurement information of the target user identification card in the target frequency band, and generate a measurement result. That is, if the network quality of the target user identification card in the target frequency band does not meet the preset network quality conditions, it can be determined that the measurement result is that the electronic device does not support dual-card dual-pass services in the network to be tested.
[0068] If the network quality of the target user identification card in the target frequency band meets the preset network quality condition, then based on the service measurement information of the electronic device, it is further determined whether the electronic device supports the dual-card dual-pass service in the network to be tested, and a measurement result is generated. On the premise that the network quality of the target user identification card in the target frequency band meets the preset network quality condition, if the electronic device is currently running a single-card service, then since it does not need to support the dual-card dual-pass function, it can be determined that the measurement result is that the electronic device supports the dual-card dual-pass service in the network to be tested.
[0069] On the premise that the network quality of the target user identification card in the target frequency band meets the preset network quality conditions, if the dual-card service is currently running on the electronic device, since it may be necessary to support the dual-card dual-pass function at this time, it is possible to further determine whether the electronic device supports the dual-card dual-pass service in the network to be tested based on the service measurement information of the electronic device, and generate a measurement result.
[0070] In the embodiment of the present application, here, the measurement request carries the information of the network to be tested, and the information of the network to be tested includes the identifier of the target frequency band. Then, the electronic device responds to the measurement request and determines the target frequency band and the target user identification card based on the identifier of the target frequency band. Then, the electronic device can obtain the network measurement information of the target user identification card under the target frequency band and the service measurement information of the electronic device. Finally, based on the network measurement information and the service measurement information, it can be determined whether the electronic device supports dual-card dual-pass service under the network to be tested, and a measurement result is generated.
[0071] Compared with the traditional method, the electronic device only generates the measurement result based on the network measurement information, and then determines whether to switch the network of the electronic device according to the measurement result, without considering whether the dual-card dual-pass function of the electronic device will be affected after the switch. Obviously, in this embodiment, the electronic device can accurately determine whether the electronic device supports the dual-card dual-pass service under the network to be tested from the two dimensions of network measurement information and service measurement information. In this way, it is possible to implement the situation that the electronic device does not support the dual-card dual-pass service without switching the network. In addition, the situation that the electronic device is interrupted during the network switching process is avoided.
[0072] In the previous embodiment, it is described that the electronic device can obtain the network measurement information of the target user identification card in the target frequency band and the service measurement information of the electronic device in response to the measurement request. Then, based on the network measurement information and the service measurement information, it is possible to determine whether the electronic device supports the dual-card dual-pass service in the network to be tested, and generate the measurement result. In this embodiment, it is further described that the network measurement information includes the value of the network quality parameter, and the service measurement information includes the service type and the service status corresponding to the service type; step 246, based on the network measurement information and the service measurement information, determines whether the electronic device supports the dual-card dual-pass service in the network to be tested, and generates the measurement result, including:
[0073] If the value of the network quality parameter is greater than the preset network quality threshold, it is determined whether the electronic device supports the dual-card dual-pass service in the network to be tested according to the service type and the service status corresponding to the service type, and a measurement result is generated.
[0074] In response to the measurement request, the electronic device can obtain the network measurement information of the target user identification card in the target frequency band and the service measurement information of the electronic device. Among them, the network measurement information may include the value of the network quality parameter. The network quality parameter includes at least one parameter characterizing the network quality among the reference signal received power (RSRP, Reference Signal Received Power), the reference signal received quality (RSRQ, Reference Signal Receiving Quality) and the interference signal-to-noise ratio (SINR, Signal to Interference & Noise Ratio). Of course, this application does not limit this. It can be understood that the electronic device can obtain the value of at least one parameter among RSRP, RSRQ, and SINR of the target user identification card in the target frequency band in response to the measurement request.
[0075] Among them, the service measurement information of the electronic device may include the service type of the electronic device and the service status corresponding to the service type. Here, the service type of the electronic device may include single-card service or dual-card service, etc., of course, this application does not limit this. Here, the service status corresponding to the service type refers to the connection status between different SIM cards and network devices under the service type. For example, the connection status includes a connected state, an inactive state, and an idle state, etc., of course, this application does not limit this. It can be understood that the electronic device can obtain the service type of the electronic device and the service status corresponding to the service type in response to the measurement request.
[0076] Then, if Figure 4 As shown, when determining whether the electronic device supports the dual-card dual-pass service in the network to be tested according to the network measurement information and the service measurement information, and generating the measurement result, it includes:
[0077] Step 420, determining whether the value of the network quality parameter is greater than a preset network quality threshold;
[0078] Step 440: If the value of the network quality parameter is less than or equal to the preset network quality threshold, it is determined that the measurement result is that the electronic device does not support dual-SIM dual-channel services in the network to be tested;
[0079] Step 460: If the value of the network quality parameter is greater than the preset network quality threshold, determine whether the electronic device supports dual-SIM dual-pass service in the network to be tested according to the service type and the service status corresponding to the service type, and generate a measurement result.
[0080] Optionally, first, the electronic device determines whether the value of the network quality parameter of the target user identification card under the target frequency band is greater than the preset network quality threshold. Wherein, the preset network quality threshold can be a network quality threshold that meets the basic communication requirements of the target user identification card, which can be determined based on an empirical value. Of course, this application does not limit this. Assuming that the value of the network quality parameter is the value of RSRP, the preset network quality threshold can be an RSRP threshold that meets the basic communication requirements of the target user identification card. For example, the RSRP threshold is -110dBm, because the value of RSRP is greater than -110dBm, it means that the signal quality of the target user identification card under the target frequency band is general at this time, and a communication connection can be made; and if the value of RSRP is less than or equal to -110dBm, it means that the signal quality of the target user identification card under the target frequency band is poor at this time, and the electronic device may not be able to establish a communication connection through the target user identification card. That is, the electronic device determines whether the value of RSRP of the target user identification card under the target frequency band is greater than -110dBm. When it is greater than -110dBm, the electronic device can only establish a communication connection under the target frequency band through the target user identification card.
[0081] Then, if the value of the network quality parameter is less than or equal to the preset network quality threshold, the signal quality of the target user identification card in the target frequency band is poor and a communication connection may not be established. Therefore, if the target user identification card may not be able to establish a communication connection in the target frequency band, it can be determined that the measurement result is that the electronic device does not support dual-card dual-pass service in the network to be tested.
[0082] If the value of the network quality parameter is greater than the preset network quality threshold, the target user identification card can establish a communication connection under the target frequency band. Then, the electronic device determines whether the electronic device supports dual-card dual-pass service under the network to be tested based on the service type and the service status corresponding to the service type, and generates a measurement result. That is, if the service type of the electronic device is a single-card service, then based on the service status corresponding to the single-card service, it is determined whether the electronic device supports dual-card dual-pass service under the network to be tested. If the service type of the electronic device is a dual-card service, then based on the service status corresponding to the dual-card service, it is determined whether the electronic device supports dual-card dual-pass service under the network to be tested.
[0083] In an embodiment of the present application, the electronic device can obtain the value of the network quality parameter of the target user identification card in the target frequency band, the service type of the electronic device, and the service status corresponding to the service type in response to the measurement request. Then, the electronic device can determine whether the electronic device supports dual-card dual-pass service under the network to be tested based on the value of the network quality parameter, the service type of the electronic device, and the service status corresponding to the service type, and generate a measurement result. Optionally, first determine whether the value of the network quality parameter is greater than a preset network quality threshold, and determine whether the target user identification card can establish a connection with the network device under the target frequency band based on the judgment result. If the value of the network quality parameter is less than or equal to the preset network quality threshold, the signal quality of the target user identification card under the target frequency band is poor at this time, and a communication connection may not be established, and further, the dual-card dual-pass service cannot be supported. In this case, there is no need to execute the subsequent process of supporting dual-card dual-pass service, which reduces the calculation process to a certain extent.
[0084] If the value of the network quality parameter is greater than the preset network quality threshold, then further according to the service type and the service status corresponding to the service type, determine whether the electronic device supports dual-card dual-pass service under the network to be tested, and generate a measurement result. Compared with the traditional method, when the value of the network quality parameter is greater than the preset network quality threshold, the subsequent network switching is directly performed on the electronic device, which is easy to cause the electronic device to have a network interruption. In this embodiment, not only the value of the network quality parameter is considered, but also the service type of the electronic device and the service status corresponding to the service type are considered. In this way, it is possible to accurately determine whether the electronic device supports dual-card dual-pass service under the network to be tested based on the network quality parameter, combined with the service type of the electronic device and the service status corresponding to the service type. Therefore, in the case where the electronic device does not support dual-card dual-pass service, the network switching of the electronic device may not be performed. In addition, the situation where the electronic device is interrupted during the network switching process is avoided.
[0085] In the previous embodiment, it is described that the electronic device can determine whether the electronic device supports dual-SIM dual-pass service under the network to be tested according to the value of the network quality parameter, the service type of the electronic device and the service status corresponding to the service type, and generate a measurement result. Figure 5 As shown, step 460 is further described, determining whether the electronic device supports dual-card dual-pass service under the network to be tested according to the service type and the service state corresponding to the service type, and generating a measurement result, including:
[0086] Step 462, determine whether the service type is a single card service; if so, proceed to step 464; if not, proceed to step 466;
[0087] Step 464: If the service type is a single-card service and the service state corresponding to the single-card service is a connected state, it is determined that the measurement result is that the electronic device supports dual-card dual-pass service in the network to be tested.
[0088] If the value of the network quality parameter of the target user identification card in the target frequency band is greater than the preset network quality threshold, then according to the service type and the service status corresponding to the service type, it is determined whether the electronic device supports dual-card dual-pass service in the network to be tested, and a measurement result is generated.
[0089] Here, the service type of the electronic device may include single card service or dual card service, etc., of course, this application does not limit this. Among them, single card service refers to that there is a SIM card in the electronic device that is in an on state, for example, only one SIM1 may be inserted in the electronic device, and the SIM1 is in an on state; or two SIMs (SIM1 and SIM2) may be inserted in the electronic device, but only SIM1 or SIM2 is in an on state. Dual card service refers to that two SIMs are inserted in the electronic device, and both SIM cards are in an on state.
[0090] Here, the service status corresponding to the service type refers to the connection status between different SIM cards and network devices under the service type. For example, the connection status includes connected state, inactive state and idle state. The connected state refers to the state in which the SIM card and the network device are connected; the inactive state refers to the state in which the SIM card and the network device are connected, but there is less interaction between the SIM card and the network device; and the idle state refers to the state in which the SIM card and the network device are disconnected.
[0091] If the service type is single-card service, and the service state corresponding to the single-card service is connected, it means that the electronic device is not running dual-card service at this time. Therefore, as long as the value of the network quality parameter of the target user identification card in the target frequency band is greater than the preset network quality threshold, the electronic device will not affect the original single-card service under the network to be tested. That is, it can be considered that the electronic device supports dual-card dual-pass service under the network to be tested.
[0092] Step 466: If the service type is a dual-card service, obtain the service status corresponding to the dual-card service and the frequency band combination to be switched by the electronic device.
[0093] If the service type is a dual-card service, the electronic device obtains the service status corresponding to the dual-card service and the frequency band combination to be switched by the electronic device. The electronic device obtains the service status corresponding to the dual-card service and the frequency band combination to be switched by the electronic device, which means that the electronic device obtains the service status of the two SIM cards in the dual-card service and the frequency band combination to be switched corresponding to the two SIM cards and the network to be tested.
[0094] Assuming that the two SIM cards include SIM1 and SIM2, the service status of the two SIM cards includes at least one of the following situations: the connection status of SIM1 and SIM2 to the network device are both connected; the connection status of SIM1 to the network device is connected, and the connection status of SIM2 to the network device is idle or inactive; the connection status of SIM2 to the network device is connected, and the connection status of SIM1 to the network device is idle or inactive; the connection status of SIM1 to the network device is idle, and the connection status of SIM2 to the network device is inactive; the connection status of SIM2 to the network device is idle, and the connection status of SIM1 to the network device is inactive.
[0095] Among them, the frequency band combination to be switched corresponding to the two SIM cards and the network to be tested refers to the frequency band combination to be switched corresponding to SIM1 and SIM2 and the network to be tested. Among them, the measurement request carries the information of the network to be tested, and the information of the network to be tested includes the identifier of the target frequency band, etc. The target frequency band and the target user identification card can be determined based on the identifier of the target frequency band. If the target user identification card includes a SIM card, it is assumed that the identifier of the target user identification card is SIM1, the identifier of the target frequency band corresponding to the target user identification card is BandY1, and the current frequency band of the other SIM2 is BandX2. Then, in the case where the target user identification card is SIM1, there is no need to switch the current frequency band of SIM2, so the frequency band combination to be switched corresponding to SIM1 and SIM2 and the network to be tested is BandY1 corresponding to SIM1 and the current frequency band BandX2 of SIM2.
[0096] If the target user identification card includes a SIM card, or assuming that the target user identification card is identified as SIM2, the target frequency band corresponding to the target user identification card is identified as BandY2, and the current frequency band of another SIM1 is BandX1. In the case where the target user identification card is SIM2, it is not necessary to switch the current frequency band of SIM1, then the frequency band combination to be switched corresponding to SIM1 and SIM2 and the network to be tested is BandX1 corresponding to SIM1 and the current frequency band BandY2 of SIM2.
[0097] Step 468, determining whether the electronic device supports the dual-SIM dual-pass service in the network to be tested according to the service status corresponding to the dual-SIM service and the frequency band combination to be switched, and generating a measurement result; the frequency band combination to be switched includes the target frequency band.
[0098] If the service type is dual-card service, after obtaining the service status corresponding to the dual-card service and the frequency band combination to be switched by the electronic device, it is possible to determine whether the electronic device supports dual-card dual-pass service under the network to be tested based on the service status corresponding to the dual-card service and the frequency band combination to be switched, and generate measurement results.
[0099] When the value of the network quality parameter of the target user identification card in the target frequency band is greater than the preset network quality threshold, and the service type of the electronic device is a dual-card service, whether the electronic device supports the dual-card dual-pass service in the network to be tested is closely related to the service state corresponding to the dual-card service and the frequency band combination to be switched. Therefore, according to the service state corresponding to the dual-card service and the frequency band combination to be switched, it is possible to determine whether the electronic device supports the dual-card dual-pass service in the network to be tested and generate a measurement result.
[0100] Among them, the measurement result includes a target field that represents whether the electronic device supports dual-card dual-pass services under the network to be tested, such as the target field data_indicator. Of course, this application does not limit this. Finally, if it is determined that the electronic device supports dual-card dual-pass services under the network to be tested, the target field data_indicator is written as 0 in the measurement result; if it is determined that the electronic device does not support dual-card dual-pass services under the network to be tested, the target field data_indicator is written as 1 in the measurement result. In this way, based on the target field data_indicator in the measurement result, it is possible to easily determine whether the electronic device supports dual-card dual-pass services under the network to be tested. Furthermore, the network device can accurately determine whether to switch the network of the electronic device based on the network to be tested based on the measurement results.
[0101] In the embodiment of the present application, when the value of the network quality parameter of the target user identification card in the target frequency band is greater than the preset network quality threshold, if the service type is a single card service and the service state corresponding to the single card service is a connected state, then the measurement result is determined to be that the electronic device supports dual-card dual-pass service in the network to be tested. If the service type is a dual-card service, the service state corresponding to the dual-card service and the frequency band combination to be switched by the electronic device are obtained; then, according to the service state corresponding to the dual-card service and the frequency band combination to be switched, it is determined whether the electronic device supports the dual-card dual-pass service in the network to be tested, and the measurement result is generated.
[0102] When the value of the network quality parameter of the target user identification card in the target frequency band is greater than the preset network quality threshold, the service type of the electronic device is distinguished as a single-card service or a dual-card service. For single-card services, if the service state corresponding to the single-card service is a connected state, it is determined that the electronic device supports dual-card dual-channel services in the network to be tested. For dual-card services, whether the electronic device supports dual-card dual-channel services in the network to be tested needs to be determined based on whether the two SIM cards of the electronic device support dual-card dual-channel services in the frequency band combination to be switched. Therefore, whether the electronic device supports dual-card dual-channel services in the network to be tested is determined based on the service state corresponding to the dual-card service and the frequency band combination to be switched. In this way, regardless of whether the service type of the electronic device is a single-card service or a dual-card service, it can be accurately determined whether the electronic device supports dual-card dual-channel services in the network to be tested.
[0103] In the previous embodiment, when the value of the network quality parameter of the target user identification card in the target frequency band is greater than the preset network quality threshold, and when the service type of the electronic device is distinguished as a single card service or a dual card service, the process of determining whether the electronic device supports the dual card dual pass service in the network to be tested is described. In this embodiment, it is further described that according to the service state corresponding to the dual card service and the frequency band combination to be switched, whether the electronic device supports the dual card dual pass service in the network to be tested is determined, and the measurement result is generated, including:
[0104] If the service state of any identity card in the dual-card service is idle, it is determined that the measurement result is that the electronic device supports the dual-card dual-pass service under the network to be tested;
[0105] If the service status of the identity card in the dual-card service is all connected, then according to the frequency band combination to be switched and the preset dual-card dual-pass frequency band combination, determine whether the electronic device supports the dual-card dual-pass service under the network to be tested, and generate a measurement result.
[0106] If the service type is dual-card service, after obtaining the service status corresponding to the dual-card service and the frequency band combination to be switched by the electronic device, it is possible to determine whether the electronic device supports dual-card dual-pass service under the network to be tested based on the service status corresponding to the dual-card service and the frequency band combination to be switched, and generate measurement results.
[0107] For example, if the service state of any identity card in the dual-card service is idle, it means that the dual-card service is not actually running on the electronic device at this time. Therefore, as long as the value of the network quality parameter of the target user identification card in the target frequency band is greater than the preset network quality threshold, the electronic device will not affect the original service under the network to be tested. That is, it can be considered that the electronic device supports dual-card dual-pass service under the network to be tested. Then, at this time, it is determined that the measurement result is that the electronic device supports dual-card dual-pass service under the network to be tested.
[0108] Assume that the two SIM cards include SIM1 and SIM2. If the target user identification card includes one SIM card, then it is assumed that the identification of the target user identification card is SIM1. At this time, the service status of SIM1 is connected, and the service status of SIM2 is idle. Therefore, it means that the dual-card service is not actually running on the electronic device at this time. As long as the value of the network quality parameter of the target user identification card SIM1 in the target frequency band is greater than the preset network quality threshold, the electronic device will not affect the original service under the network to be tested. That is, it can be considered that the electronic device supports dual-card dual-pass service under the network to be tested. Then, at this time, it is determined that the measurement result is that the electronic device supports dual-card dual-pass service under the network to be tested. That is, the target field data_indicator is written as 0 in the measurement result.
[0109] For example, if the service status of the identity card in the dual-card service is all connected, it means that the dual-card service is actually running on the electronic device. Then, it is necessary to determine whether the electronic device supports the dual-card dual-pass service under the network to be tested based on the frequency band combination to be switched and the preset dual-card dual-pass frequency band combination, and generate a measurement result.
[0110] Combination Figure 6 As shown, it is a schematic diagram of the current frequency band combination of two SIM cards and the frequency band combination to be switched in an electronic device in an embodiment. Assuming that the two SIM cards include SIM1 and SIM2, the service states of SIM1 and SIM2 are both connected, and the current frequency band of the network corresponding to SIM1 is identified as BandX1, and the current frequency band (resident frequency band) of the network corresponding to SIM2 is identified as BandX2. That is, the current frequency band (resident frequency band) combination of SIM1+SIM2 is BandX1+BandX2. Among them, the frequency band combination to be switched corresponding to the two SIM cards and the network to be tested refers to the frequency band combination to be switched corresponding to SIM1 and SIM2 and the network to be tested. Among them, the measurement request carries the information of the network to be tested, and the information of the network to be tested includes the identification of the target frequency band, etc. The target frequency band and the target user identification card can be determined based on the identification of the target frequency band. In the first case, if the target user identification card includes a SIM card, it is assumed that the target user identification card is identified as SIM1, the target frequency band corresponding to the target user identification card is identified as BandY1, and the current frequency band (resident frequency band) of the other SIM2 is BandX2. Then, in the case where the target user identification card is SIM1, it is not necessary to switch the current frequency band of SIM2. Figure 6 As shown in (a), the frequency band combination to be switched corresponding to SIM1 and SIM2 and the network to be tested is BandY1 corresponding to SIM1 and the current frequency band BandX2 of SIM2.
[0111] In the second case, if the target user identification card includes a SIM card, or assuming that the target user identification card is identified as SIM2, the target frequency band corresponding to the target user identification card is identified as BandY2, and the current frequency band (resident frequency band) of another SIM1 is BandX1. In the case that the target user identification card is SIM2, it is not necessary to switch the current frequency band of SIM1. Then, Figure 6 As shown in (b), the frequency band combination to be switched corresponding to SIM1 and SIM2 and the network to be tested is BandX1 corresponding to SIM1 and the current frequency band BandY2 of SIM2.
[0112] In the third case, if the target user identification card includes two SIM cards, that is, the target user identification cards are identified as SIM1 and SIM2, the target frequency band corresponding to SIM1 is identified as BandY1, and the target frequency band corresponding to SIM2 is identified as BandY2. Then, if Figure 6 As shown in (c), the frequency band combination to be switched corresponding to SIM1 and SIM2 and the network to be tested is BandY1 corresponding to SIM1 and the current frequency band BandY2 of SIM2.
[0113] Finally, according to the frequency band combination to be switched and the preset dual-card dual-pass frequency band combination, determine whether the electronic device supports dual-card dual-pass services under the network to be tested, and generate a measurement result. Among them, the preset dual-card dual-pass frequency band combination is a frequency band combination of SIM1+SIM2 stored in the electronic device that supports dual-card dual-pass services, which can be determined by empirical values. Then, compare the frequency band combination BandY1+BandX2 to be switched with the preset dual-card dual-pass frequency band combination to determine whether the frequency band combination to be switched belongs to the preset dual-card dual-pass frequency band combination. If so, it is determined that the measurement result is that the electronic device supports dual-card dual-pass services under the network to be tested; if not, it is determined that the measurement result is that the electronic device does not support dual-card dual-pass services under the network to be tested.
[0114] Then for the first case, that is, SIM1+SIM2 switches from BandX1+BandX2 to BandY1+BandX2, determine whether the frequency band combination BandY1+BandX2 to be switched belongs to the preset dual-card dual-pass frequency band combination. Then, based on the judgment result, determine whether the electronic device supports dual-card dual-pass services under the network to be tested, and generate a measurement result. That is, write the target field data indicator as 0 or 1 in the measurement result. Here, the target field data indicator can be a 1-bit field. Of course, this application does not limit this. If the target field data_indicator can not only represent whether the electronic device supports dual-card dual-pass services under the network to be tested, but also represent more information, for example, more detailed service information of the electronic device, then the target field data_indicator can be a 2-bit or 4-bit or even 8-bit field. Of course, this application does not limit this.
[0115] Similarly, for the second case, that is, SIM1+SIM2 switches from BandX1+BandX2 to BandX1+BandY2, it is determined whether the frequency band combination BandX1+BandY2 to be switched belongs to the preset dual-card dual-pass frequency band combination. Then, based on the judgment result, it is determined whether the electronic device supports dual-card dual-pass services under the network to be tested, and a measurement result is generated. That is, the target field data_indicator is written as 0 or 1 in the measurement result.
[0116] Similarly, for the third case, that is, SIM1+SIM2 switches from BandX1+BandX2 to BandY1+BandY2, it is determined whether the frequency band combination BandY1+BandY2 to be switched belongs to the preset dual-card dual-pass frequency band combination. Then, based on the judgment result, it is determined whether the electronic device supports dual-card dual-pass services under the network to be tested, and a measurement result is generated. That is, the target field data_indicator is written as 0 or 1 in the measurement result.
[0117] In the embodiment of the present application, if the service type is a dual-card service, after obtaining the service status corresponding to the dual-card service and the frequency band combination to be switched by the electronic device, it is possible to determine whether the electronic device supports the dual-card dual-pass service under the network to be tested according to the service status corresponding to the dual-card service and the frequency band combination to be switched, and generate a measurement result. Because in the case where the service type is a dual-card service, the service status corresponding to the dual-card service on the electronic device and the frequency band combination to be switched will affect the measurement result of supporting the dual-card dual-pass service, so for the case where the service type is a dual-card service, it is determined from two dimensions, namely, the service status corresponding to the dual-card service and the frequency band combination to be switched, whether the electronic device supports the dual-card dual-pass service under the network to be tested.
[0118] And by comparing the frequency band combination to be switched with the preset dual-SIM dual-pass frequency band combination, it is determined whether the electronic device supports the dual-SIM dual-pass service in the network to be tested. In this way, the measurement result can be obtained more accurately.
[0119] In the above embodiment, the process of obtaining the network measurement information of the target user identification card in the target frequency band and the service measurement information of the electronic device in response to the measurement request is described. And the process of determining whether the electronic device supports the dual-card dual-pass service in the network to be tested and generating the measurement result is described based on the network measurement information and the service measurement information. In this embodiment, step 260 is further described, and determining whether to perform network switching based on the measurement result includes:
[0120] A measurement report is generated based on the measurement result, and the measurement report is reported to the network device; the measurement report is used to instruct the network device to determine whether to perform a network switch on the electronic device.
[0121] After the electronic device responds to the measurement request, determines whether the electronic device supports dual-card dual-pass services under the network to be tested, and generates a measurement result, a measurement report can be generated based on the measurement result. The electronic device then reports the measurement report to the network device, wherein the electronic device can report the measurement report to the network device in the form of measurement report signaling, and of course, this application does not limit this. Here, the measurement report is used to instruct the network device to determine whether to perform a network switch on the electronic device.
[0122] Optionally, since the target field data_indicator written in the measurement result is 0 or 1, and the target field data_indicator is used to indicate whether the electronic device supports dual-card dual-pass services under the network to be tested. For example, if the target field data_indicator is 0, it means that the electronic device supports dual-card dual-pass services under the network to be tested; if the target field data_indicator is 1, it means that the electronic device does not support dual-card dual-pass services under the network to be tested. Of course, this application does not limit this. Therefore, the electronic device generates a measurement report based on the measurement result, and after reporting the measurement report to the network device, the network device parses the measurement report after receiving the measurement report. If the target field data_indicator is parsed to be 1, it means that the electronic device does not support dual-card dual-pass services under the network to be tested, then it is determined that the electronic device does not switch the network; if the target field data_indicator is 0, it means that the electronic device supports dual-card dual-pass services under the network to be tested, then it is determined that the electronic device can switch the network. In other words, the network device uses the value of the target field data_indicator in the measurement report reported by the electronic device as the basis for switching the network of the electronic device. Of course, the network device can also give priority to network switching for electronic devices that are not currently running dual-card services, for example, give priority to network switching for electronic devices that only run single-card services, or give priority to network switching for electronic devices that have dual-card services turned on but one of the SIM cards is idle or inactive.
[0123] Of course, the network device can also determine whether to switch the network of the electronic device based not only on the factor that the electronic device supports dual-SIM dual-pass services under the network to be tested, but also on other factors. For example, other factors include whether the switching timing is appropriate, whether the application running on the electronic device is an application with high requirements for network quality parameters, etc. Of course, this application does not limit this.
[0124] In an embodiment of the present application, the electronic device responds to the measurement request and obtains the network measurement information of the target user identification card in the target frequency band and the service measurement information of the electronic device. Then, based on the network measurement information and the service measurement information, it is determined whether the electronic device supports dual-card dual-pass service under the network to be tested, and a measurement result is generated. Finally, a measurement report is generated based on the measurement result, and the measurement report is reported to the network device; the measurement report is used to instruct the network device to determine whether to switch the network of the electronic device.
[0125] Since the information of whether the electronic device supports dual-card dual-pass service under the network to be tested is added to the measurement result, in other words, the target field data_indicator is written as 0 or 1 in the measurement result, and the target field data_indicator is used to indicate whether the electronic device supports dual-card dual-pass service under the network to be tested, the electronic device generates a measurement report based on the measurement result, and then reports the measurement report to the network device. In this way, after receiving the measurement report, the network device can determine whether to switch the network of the electronic device in combination with the measurement results in the measurement report. Then, if the network device determines to switch the network of the electronic device, it can ensure that the electronic device supports dual-card dual-pass service under the network to be tested.
[0126] In the previous embodiment, it is described that the electronic device generates a measurement report based on the measurement result, and then reports the measurement report to the network device. In this way, after receiving the measurement report, the network device can determine whether to perform network switching on the electronic device in combination with the measurement result in the measurement report. In this embodiment, it is further described that the measurement report is generated based on the measurement result, and the measurement report is reported to the network device, including:
[0127] If the measurement result shows that the electronic device supports dual-SIM dual-pass services in the network to be tested, a first measurement report is generated based on the measurement result, and the first measurement report is reported to the network device; the first measurement report is used to instruct the network device to perform network switching on the electronic device;
[0128] If the measurement result shows that the electronic device does not support dual-SIM dual-pass services in the network to be tested, a second measurement report is generated based on the measurement result, and the second measurement report is reported to the network device; the second measurement report is used to instruct the network device not to switch the network of the electronic device.
[0129] If the measurement result shows that the electronic device supports dual-card dual-pass services under the network to be tested, in other words, the target field data_indicator is written as 0 in the measurement result, then a first measurement report is generated based on the measurement result, and the first measurement report is reported to the network device. The first measurement report is used to instruct the network device to perform network switching on the electronic device. That is, after receiving the first measurement report, the network device can determine to perform network switching on the electronic device in combination with the measurement result in the first measurement report.
[0130] If the measurement result is that the electronic device does not support dual-card dual-pass services under the network to be tested, in other words, the target field data_indicator is written as 1 in the measurement result, then a second measurement report is generated based on the measurement result, and the second measurement report is reported to the network device. The second measurement report is used to instruct the network device not to perform network switching on the electronic device. That is, after receiving the second measurement report, the network device can determine not to perform network switching on the electronic device in combination with the measurement result in the second measurement report.
[0131] like Figure 7 FIG. 1 is a flow chart of a network switching method in an embodiment. The network switching method in this embodiment is based on running Figure 1 The electronic device in the example is used to describe. Figure 7 As shown, the network switching method includes:
[0132] Step 702, receiving a measurement request sent by a network device; the measurement request includes information about the network to be measured; the information about the network to be measured includes an identifier of a target frequency band;
[0133] Step 704, in response to the measurement request, the target frequency band and the target user identification card may be determined based on the identifier of the target frequency band, and network measurement information of the target user identification card in the target frequency band and service measurement information of the electronic device may be obtained;
[0134] Step 706: Determine whether the electronic device supports dual-SIM dual-pass service in the network to be tested based on the network measurement information and service measurement information, and generate a measurement result. If the measurement result shows that the electronic device supports dual-SIM dual-pass service in the network to be tested, write the target field data_indicator as 0 in the measurement result; if the measurement result shows that the electronic device does not support dual-SIM dual-pass service in the network to be tested, write the target field data_indicator as 1 in the measurement result;
[0135] Step 708, generating a measurement report based on the measurement result, and reporting the measurement report to the network device; including: generating a first measurement report based on the measurement result (the target field data_indicator is 0), and reporting the first measurement report to the network device; and generating a second measurement report based on the measurement result (the target field data_indicator is 1), and reporting the second measurement report to the network device;
[0136] Step 710, the network device parses the first measurement report or the second measurement report, and determines whether the target field data_indicator in the first measurement report or the second measurement report is 0; if so, proceed to 712; if not, proceed to 714;
[0137] Step 712, the network device switches the target user identification card of the electronic device to the target frequency band. In other words, the network device redirects the electronic device (the target user identification card of the electronic device) to another cell (the cell corresponding to the target frequency band);
[0138] Step 714: The network device controls the target subscriber identification card of the electronic device to reside in the original frequency band.
[0139] In an embodiment of the present application, the electronic device generates a measurement report based on the measurement result, and then reports the measurement report to the network device. In this way, after receiving the measurement report, the network device can determine whether to perform a network switch on the electronic device in combination with the measurement result in the measurement report. If the measurement result is that the electronic device supports dual-card dual-pass services in the network to be tested, a first measurement report is generated based on the measurement result, and the first measurement report is reported to the network device; the first measurement report is used to instruct the network device to perform a network switch on the electronic device. If the measurement result is that the electronic device does not support dual-card dual-pass services in the network to be tested, a second measurement report is generated based on the measurement result, and the second measurement report is reported to the network device; the second measurement report is used to instruct the network device not to perform a network switch on the electronic device.
[0140] That is, if the measurement results are different, different measurement reports will be generated. In this way, after the network device parses different measurement reports, based on the value of the target field that represents whether the electronic device supports dual-card dual-pass services under the network to be tested, the target user identification card of the electronic device can be switched to the target frequency band, or the target user identification card that controls the electronic device can be kept in the original frequency band. Then, if the network device determines to switch the network of the electronic device, it can ensure that the electronic device supports dual-card dual-pass services under the network to be tested.
[0141] In the previous embodiment, a process is described in which an electronic device generates a first measurement report or a second measurement report based on a measurement result, and reports the first measurement report or the second measurement report to a network device. In this embodiment, it is further described that a measurement request is used to instruct an electronic device to measure a target user identification card and a target frequency band corresponding to the target user identification card, and the first measurement report is used to instruct the network device to perform a network switch to the target frequency band for the target user identification card of the electronic device.
[0142] If the information of the network to be measured carried in the measurement request includes the identifier of the target frequency band, the target frequency band and the target SIM card can be determined based on the identifier of the target frequency band. Then, the measurement request is used to instruct the electronic device to measure the target SIM card and the target frequency band corresponding to the target SIM card.
[0143] For example, if the target user identification card includes a SIM card, it is assumed that the identifier of the target user identification card is SIM1, and the identifier of the target frequency band corresponding to the target user identification card is BandY1. At this time, the measurement request is used to instruct the electronic device to measure the target frequency band BandY1 corresponding to the target user identification card and the target user identification card SIM1. Optionally, measure whether the electronic device supports dual-card dual-pass service under the network to be tested, and generate a measurement result. If the measurement result is that the electronic device supports dual-card dual-pass service under the network to be tested, a first measurement report is generated based on the measurement result, and the first measurement report is reported to the network device; the first measurement report is used to instruct the network device to switch the target user identification card of the electronic device to the target frequency band. That is, the first measurement report is used to instruct the network device to switch the target user identification card SIM1 of the electronic device to the target frequency band BandY1.
[0144] In the embodiment of the present application, after the network device parses the first measurement report, based on the value of the target field that indicates that the electronic device supports dual-SIM dual-pass services under the network to be tested, the target user identification card of the electronic device can be switched to the target frequency band. Then, if the network device determines to switch the network of the electronic device, it can ensure that the electronic device supports dual-SIM dual-pass services under the network to be tested.
[0145] In the above embodiment, a process is described in which the electronic device generates a first measurement report or a second measurement report based on the measurement result, and reports the first measurement report or the second measurement report to the network device. In this embodiment, determining whether to perform network switching based on the measurement result is further described, including:
[0146] If the measurement result shows that the electronic device does not support the dual-SIM dual-channel service in the network to be tested, the measurement result will not be reported, so that the network device does not perform network switching on the electronic device.
[0147] In an embodiment of the present application, if the measurement result is that the electronic device does not support dual-card dual-pass services in the network to be tested, the measurement result may not be reported. For example, it may refer to not generating a measurement report based on the measurement result, and then not reporting the measurement report to the network device; or, a measurement report may be generated based on the measurement result, but the measurement report is not reported to the network device; of course, the present application does not limit this. Furthermore, it is also possible not to send a measurement report to the network device. In this way, after the network device sends a measurement request to the electronic device, if the measurement report fed back by the electronic device is not received within a preset time period, the network device may default to the measurement result at this time that the electronic device does not support dual-card dual-pass services in the network to be tested. Thus, the network device determines not to perform network switching on the electronic device.
[0148] Since the measurement result shows that the electronic device does not support dual-SIM dual-pass service in the network to be tested, the electronic device may not generate a measurement report, and further, does not need to report the measurement report to the network device. In this way, the power consumption of the electronic device is reduced.
[0149] In an exemplary embodiment, Figure 8 As shown, a network switching method is provided to run on Figure 1 Take the electronic device in as an example to describe, assuming that the number of electronic devices is three, and these three electronic devices all reside in the network (cell) of the same network device. Among them, the three electronic devices include user equipment (UE) A, user equipment B and user equipment C. User equipment A and user equipment B are electronic devices with dual cards in the activated state; user equipment C is an electronic device with a single card in the activated state. For example, dual SIM services are actually running on user equipment A. If user equipment A includes SIM1 and SIM2, SIM1 performs data services on the N41 frequency band, and SIM2 performs call services on the N78 frequency band. Dual SIM services are not actually running on user equipment B. SIM1 performs data services on the N41 frequency band, and SIM2 is in an idle state (idle state) on the N78 frequency band. In user equipment C, only SIM1 performs data services on the N41 frequency band.
[0150] Then, the network switching method includes:
[0151] Step 802, receiving a measurement request sent by a network device; the measurement request carries information about the network to be measured; the information about the network to be measured includes an identifier of a target frequency band;
[0152] At this time, if the cell of the N41 frequency band has a high load, the network device corresponding to the N41 frequency band sends a measurement request for the neighboring cell N79 to the three user devices, and then the three electronic devices (user devices) all receive the measurement request sent by the network device corresponding to the N41 frequency band. The measurement request carries the identifier of the N79 frequency band.
[0153] Step 804, in response to the measurement request, determining a target frequency band and a target user identification card based on an identifier of the target frequency band;
[0154] Since SIM1 of the electronic device is originally connected to the network device corresponding to the N41 frequency band, when the network device corresponding to the N41 frequency band issues a measurement request, it also sends a measurement request to SIM1 of the electronic device. Therefore, in response to the measurement request, in which the measurement request carries the identifier of the N79 frequency band, the target frequency band is determined to be N79 based on the identifier of the N79 frequency band, and the target user identification card is determined to be SIM1.
[0155] Step 806, obtaining the value of the network quality parameter of the target subscriber identity card in the target frequency band and the service type of the electronic device and the service status corresponding to the service type;
[0156] The three electronic devices (user equipment) all obtain the values of the network quality parameters of SIM1 in the N79 frequency band, such as the reference signal received power (RSRP).
[0157] Step 808, determining whether the value of the network quality parameter is greater than a preset network quality threshold; if so, proceeding to step 810; if not, proceeding to step 822;
[0158] It is determined whether the values of the network quality parameters of SIM1 in the N79 frequency band, such as the reference signal received power (RSRP), obtained by the three electronic devices (user equipment) are greater than the preset reference signal received power. If so, the process proceeds to step 810.
[0159] Step 810, determine whether the service type is a single card service; if so, proceed to step 812; if not, proceed to step 814;
[0160] Step 812, when the service state corresponding to the single card service is the connected state, it is determined that the measurement result is that the electronic device supports the dual-card dual-pass service under the network to be tested; and the process proceeds to step 824;
[0161] For user device C, since only SIM1 of user device C performs data service on the N41 frequency band, the service type of user device C is single card service, and the service state corresponding to the single card service is connected state. Then, it can be determined that the measurement result is that the electronic device supports dual-card dual-pass service under the network to be tested, and the target field data_indicator is written as 0 in the measurement result.
[0162] Step 814, obtaining the service status corresponding to the dual-SIM service and the frequency band combination to be switched by the electronic device;
[0163] Step 816, if the service state of any identity card in the dual-card service is idle, it is determined that the measurement result is that the electronic device supports the dual-card dual-pass service under the network to be tested; and step 824 is entered;
[0164] For user equipment B, since the dual SIM service is not actually running on user equipment B, SIM1 performs data services on the N41 frequency band, and SIM2 is in an idle state on the N78 frequency band, it can be determined that the measurement result is that the electronic device supports dual-card dual-pass services under the network to be tested, and the target field data_indicator is written as 0 in the measurement result.
[0165] Step 818, if the service status of the identity card in the dual-card service is both in the connected state, determine whether the frequency band combination to be switched belongs to the preset dual-card dual-pass frequency band combination; if so, proceed to step 820; if not, proceed to step 822;
[0166] For user device A, since dual SIM service is actually running on user device A, and SIM1 performs data service on the N41 frequency band, and SIM2 performs call service on the N78 frequency band, it is determined whether the frequency band combination N79+N78 to be switched belongs to the preset dual-card dual-pass frequency band combination. The dual-card frequency band combination that user device A supports dual-card dual-pass function is N41+N78, and the dual-card dual-pass function is not supported under the N79+N78 frequency band combination. That is, the preset dual-card dual-pass frequency band combination of user device A includes N41+N78, but does not include the N79+N78 frequency band combination. Therefore, it is determined that the frequency band combination N79+N78 to be switched does not belong to the preset dual-card dual-pass frequency band combination.
[0167] Step 820, determining that the measurement result is that the electronic device supports dual-SIM dual-pass service in the network to be tested; proceeding to step 824;
[0168] Step 822, determining that the measurement result is that the electronic device does not support dual-SIM dual-pass service in the network to be tested; proceeding to step 826;
[0169] For user equipment A, since the frequency band combination N79+N78 to be switched does not belong to the preset dual-card dual-pass frequency band combination, it can be determined that user equipment A does not support dual-card dual-pass service in the network to be tested, generate measurement results, and write the target field data_indicator as 1 in the measurement results.
[0170] Step 824: if the measurement result shows that the electronic device supports dual-SIM dual-pass services in the network to be tested, a first measurement report is generated based on the measurement result, and the first measurement report is reported to the network device; the first measurement report is used to instruct the network device to perform network switching on the electronic device;
[0171] For user devices B and C, based on the measurement result in which the target field data_indicator is written as 0, a first measurement report is generated, and the first measurement report is reported to the network device. The first measurement report is used to instruct the network device to give priority to network switching for user devices B and C. Of course, here, the network switching can be given priority to user device C. If the load of the network device is still too high after the switching, the network switching is then performed on user device B in turn.
[0172] Step 826: If the measurement result shows that the electronic device does not support dual-SIM dual-pass service in the network to be tested, a second measurement report is generated based on the measurement result, and the second measurement report is reported to the network device; the second measurement report is used to instruct the network device not to switch the network of the electronic device.
[0173] For user equipment A, based on the measurement result in which the target field data_indicator is written as 1, a second measurement report is generated, and the second measurement report is reported to the network device. The second measurement report is used to instruct the network device not to perform network switching on user equipment A. In this way, the load of the network device is reduced, and the network interruption of the electronic device during the network switching process is avoided.
[0174] In an embodiment of the present application, an electronic device receives a measurement request sent by a network device; the measurement request carries information about the network to be tested. Then, the electronic device responds to the measurement request, measures whether the electronic device supports dual-card dual-pass services under the network to be tested based on the information of the network to be tested, and generates a measurement result. For electronic devices that support dual-card dual-pass functions under some frequency bands, the electronic device responds to the measurement request, and measures whether the electronic device supports dual-card dual-pass services under the network to be tested based on the information of the network to be tested. That is, for electronic devices that support dual-card dual-pass functions under some frequency bands, it is actually predicted whether the electronic device supports dual-card dual-pass services under the network to be tested. Finally, the electronic device determines whether to switch the network based on the measurement results. In this way, it is possible to accurately implement network switching of the electronic device when the electronic device supports dual-card dual-pass services; and when the electronic device does not support dual-card dual-pass services, the electronic device does not switch the network. In addition, the situation where the electronic device is interrupted during the network switching process is avoided.
[0175] In one embodiment, the measurement result is a target field, and the target field is used to characterize whether the electronic device supports dual-SIM dual-pass services in the network to be tested; step 240, measuring whether the electronic device supports dual-SIM dual-pass services in the network to be tested, and generating a measurement result, including:
[0176] Measure whether the electronic device supports dual-SIM dual-pass service in the network under test;
[0177] If the electronic device supports dual-SIM dual-pass services in the network to be tested, determining that the value of the target field in the measurement result is a first value;
[0178] If the electronic device does not support the dual-SIM dual-channel service in the network to be tested, it is determined that the value of the target field in the measurement result is the second value.
[0179] Next, step 260, based on the measurement result, determines whether to perform network switching, including:
[0180] Based on the value of the target field, determine whether to switch networks.
[0181] In an embodiment of the present application, the measurement result is a target field, and the target field is used to characterize whether the electronic device supports dual-card dual-pass services under the network to be tested. For example, the target field is data_indicator, and of course, this application does not limit this. Here, the target field data_indicator can be a 1-bit field, and of course, this application does not limit this. Then, if the electronic device supports dual-card dual-pass services under the network to be tested, the measurement result is determined to be a first value. Here, determining the measurement result as a first value can be understood as the value of the target field data_indicator being a first value (for example, 0). If the electronic device does not support dual-card dual-pass services under the network to be tested, the measurement result is determined to be a second value. Here, determining the measurement result as a second value can be understood as the value of the target field data_indicator being a second value (for example, 1). In this way, based on the measurement results, it is possible to easily determine whether the electronic device supports dual-card dual-pass services under the network to be tested. Furthermore, the network device can accurately determine whether to perform network switching on the electronic device based on the network to be tested based on the measurement results.
[0182] Of course, the measurement result may also include a target field. Then, if the electronic device supports dual-card dual-pass services under the network to be tested, the value of the target field data_indicator in the measurement result is determined to be a first value (e.g., 0); if the electronic device does not support dual-card dual-pass services under the network to be tested, the value of the target field data_indicator in the measurement result is determined to be a second value (e.g., 1). In this way, based on the target field data_indicator in the measurement result, it is possible to easily determine whether the electronic device supports dual-card dual-pass services under the network to be tested. Furthermore, the network device can accurately determine whether to perform network switching on the electronic device based on the network to be tested based on the measurement results.
[0183] Based on the same inventive concept, in this embodiment, Fig. 9 As shown, a network switching method is provided, which is applied to a network device; the method comprises:
[0184] Step 920, a measurement request is sent to the electronic device; the measurement request carries information about the network to be tested; the measurement request is used to instruct the electronic device to measure whether the electronic device supports dual-SIM dual-pass service in the network to be tested, and generate a measurement result.
[0185] When the load of the network device (base station) to which the electronic device is connected is too large, the network device (base station) will switch the network of the electronic device to other networks. However, for electronic devices that use dual cards to implement call services and data services at the same time, network switching of the electronic device may cause network interruption. The electronic device here includes at least two user identification cards, and the electronic device is an electronic device that supports dual-card dual-pass function in some frequency bands. That is, it can be understood that the electronic device supports dual-card dual-pass function in some frequency bands, but does not support dual-card dual-pass function in other frequency bands. Here, the network device can send measurement requests to multiple electronic devices connected to the network device.
[0186] Therefore, in order to ensure that the electronic device can still support the dual-card dual-pass function after the network device switches the network of the electronic device, when the load of the network device to which the electronic device is connected is too large, if the network device wants to switch the network of the electronic device, the network device will send a measurement request to the electronic device. Here, the network device may refer to a base station in the network, for example, including an LTE base station corresponding to 4G and an SA (Standaloner) base station corresponding to 5G, a base station corresponding to a more advanced wireless communication technology, etc. Of course, this application does not limit this. Among them, the SA base station refers to a base station that adopts the 5G networking mode of "independent networking", that is, one core network is equipped with one base station.
[0187] Here, the measurement request carries information about the network to be tested, and the measurement request is used to instruct the electronic device to measure whether it supports dual-SIM dual-pass services under the network to be tested. The information about the network to be tested includes information about the network that the network device instructs the electronic device to measure, for example, including frequency band information of the network to be tested and user identification card information matching the network to be tested, etc. Of course, this application does not limit this.
[0188] At this time, the network device to which the electronic device is connected sends a measurement request to the electronic device. After receiving the measurement request, the electronic device responds to the measurement request, measures whether the electronic device supports dual-card dual-pass services under the network to be tested, and generates a measurement result. Optionally, the measurement request carries information about the network to be tested, and the information about the network to be tested includes frequency band information of the network to be tested, etc. Therefore, the electronic device can obtain information about the object to be tested (target user identification card information) based on the frequency band information of the network to be tested, and then based on the frequency band information of the network to be tested and the information of the object to be tested (target user identification card information), measure whether the electronic device supports dual-card dual-pass services under the network to be tested.
[0189] Here, whether the electronic device supports dual-SIM dual-pass service under the network to be tested is measured, that is, after the user identification card matching the network to be tested is switched to the frequency band of the network to be tested, whether the electronic device supports dual-SIM dual-pass service under the switched frequency band combination. The switched frequency band combination includes the frequency band of the network to be tested.
[0190] Step 940: Determine whether to perform network switching based on the measurement result.
[0191] The electronic device responds to the measurement request, measures whether the electronic device supports dual-card dual-pass service under the network to be tested, and generates a measurement result. The measurement result includes a target field that represents whether the electronic device supports dual-card dual-pass service under the network to be tested, such as the target field data_indicator. Of course, this application does not limit this. Finally, if it is determined that the electronic device supports dual-card dual-pass service under the network to be tested, the value of the target field data_indicator in the measurement result is determined to be a first value (for example, 0); if it is determined that the electronic device does not support dual-card dual-pass service under the network to be tested, the value of the target field data_indicator in the measurement result is determined to be a second value (for example, 1). In this way, based on the target field data_indicator in the measurement result, it is possible to easily determine whether the electronic device supports dual-card dual-pass service under the network to be tested.
[0192] Afterwards, the electronic device generates a measurement report based on the measurement result and reports the measurement report to the network device. Finally, the network device can accurately determine whether to perform network switching on the electronic device based on the network to be tested based on the target field data_indicator in the measurement result.
[0193] For example, if the target field data_indicator in the measurement report reported by some electronic devices is 0, the network device can determine to prioritize network switching for these electronic devices based on the network to be tested based on the target field data_indicator in the measurement result. Alternatively, if the target field data_indicator in the measurement report reported by some electronic devices is 1, the network device can determine not to perform network switching for these electronic devices based on the network to be tested based on the target field data_indicator in the measurement result. In this way, the load on the network device is reduced, and the network interruption of the electronic device during the network switching process is avoided.
[0194] In an embodiment of the present application, the network device sends a measurement request to the electronic device, wherein the measurement request carries information about the network to be tested. The measurement request is used to instruct the electronic device to measure whether it supports dual-card dual-pass services under the network to be tested, and to generate a measurement result. Then, the electronic device generates a measurement report based on the measurement result, and reports the measurement report to the network device. Finally, the network device can determine whether to switch the network based on the measurement result.
[0195] In this way, the network device can accurately switch the network of the electronic device when the electronic device supports the dual-SIM dual-pass service, and not switch the network of the electronic device when the electronic device does not support the dual-SIM dual-pass service. Thus, the network interruption of the electronic device during the network switching process is avoided.
[0196] Based on the same inventive concept, in this embodiment, Fig.10 As shown, a network switching device 1000 is provided, which is applied to an electronic device, and the device includes:
[0197] The measurement request receiving module 1020 is used to receive a measurement request sent by a network device;
[0198] The measuring module 1040 is used to measure, in response to the measurement request, whether the electronic device supports the dual-SIM dual-pass service in the network to be tested, and generate a measurement result;
[0199] The network switching module 1060 is used to determine whether to perform network switching based on the measurement result.
[0200] In one embodiment, the information of the network to be measured includes an identifier of a target frequency band; the measurement module 1040 includes:
[0201] A target frequency band and target user identification card determining unit, configured to determine the target frequency band and the target user identification card based on the identifier of the target frequency band in response to the measurement request;
[0202] A measurement information acquisition unit, used to acquire network measurement information of a target user identification card in a target frequency band and service measurement information of an electronic device;
[0203] The dual-card dual-pass measurement unit is used to determine whether the electronic device supports the dual-card dual-pass service in the network to be tested according to the network measurement information and the service measurement information, and generate a measurement result.
[0204] In one embodiment, the network measurement information includes the value of a network quality parameter, and the service measurement information includes a service type and a service status corresponding to the service type; the dual-card dual-pass measurement unit is also used to determine whether the electronic device supports the dual-card dual-pass service in the network to be tested, and generate a measurement result based on the service type and the service status corresponding to the service type if the value of the network quality parameter is greater than a preset network quality threshold.
[0205] In one embodiment, the dual-card dual-pass measurement unit includes:
[0206] The single card service subunit is used to determine that the measurement result is that the electronic device supports dual-card dual-pass service under the network to be tested if the service type is single card service and the service state corresponding to the single card service is connected;
[0207] The dual-card service subunit is used to obtain the service status corresponding to the dual-card service and the frequency band combination to be switched by the electronic device if the service type is dual-card service; determine whether the electronic device supports the dual-card dual-pass service under the network to be tested according to the service status corresponding to the dual-card service and the frequency band combination to be switched, and generate measurement results; the frequency band combination to be switched includes the target frequency band.
[0208] In one embodiment, the dual-card service subunit is also used to determine, if the service status of any identity card in the dual-card service is idle, that the measurement result is that the electronic device supports the dual-card dual-pass service under the network to be tested; if the service status of the identity cards in the dual-card service are all connected, then determine whether the electronic device supports the dual-card dual-pass service under the network to be tested based on the frequency band combination to be switched and the preset dual-card dual-pass frequency band combination, and generate a measurement result.
[0209] In one embodiment, the dual-card service subunit is also used to determine whether the frequency band combination to be switched belongs to a preset dual-card dual-pass frequency band combination; if so, it is determined that the measurement result is that the electronic device supports dual-card dual-pass service under the network to be tested; if not, it is determined that the measurement result is that the electronic device does not support dual-card dual-pass service under the network to be tested.
[0210] In one embodiment, the network switching module 1060 is further used to generate a measurement report based on the measurement result, and report the measurement report to the network device; the measurement report is used to instruct the network device to determine whether to perform network switching on the electronic device.
[0211] In one embodiment, the network switching module 1060 is further used to generate a first measurement report based on the measurement result if the measurement result shows that the electronic device supports dual-SIM dual-pass services under the network to be tested, and report the first measurement report to the network device; the first measurement report is used to instruct the network device to perform network switching on the electronic device;
[0212] If the measurement result shows that the electronic device does not support dual-SIM dual-pass services in the network to be tested, a second measurement report is generated based on the measurement result, and the second measurement report is reported to the network device; the second measurement report is used to instruct the network device not to switch the network of the electronic device.
[0213] In one embodiment, the measurement request is used to instruct the electronic device to measure the target SIM card and the target frequency band corresponding to the target SIM card, and the first measurement report is used to instruct the network device to perform network switching of the target SIM card of the electronic device to the target frequency band.
[0214] In one embodiment, the network switching module 1060 is further configured to not report the measurement result if the measurement result shows that the electronic device does not support the dual-SIM dual-pass service in the network to be tested, so that the network device does not perform network switching on the electronic device.
[0215] In one embodiment, the measurement result is a target field, and the target field is used to characterize whether the electronic device supports dual-card dual-channel services in the network to be tested; the measurement module 1040 is also used to measure whether the electronic device supports dual-card dual-channel services in the network to be tested; if the electronic device supports dual-card dual-channel services in the network to be tested, the measurement result is determined to be a first value; if the electronic device does not support dual-card dual-channel services in the network to be tested, the measurement result is determined to be a second value.
[0216] In one embodiment, the network switching module 1060 is further configured to determine whether to perform network switching based on the value of the target field.
[0217] In one embodiment, based on the same inventive concept, Fig.11 As shown, a network switching device 1100 is provided, which is applied to a network device; the device includes:
[0218] The measurement request sending module 1120 is used to send a measurement request to the electronic device; the measurement request carries information about the network to be tested; the measurement request is used to instruct the electronic device to measure whether it supports dual-SIM dual-pass service in the network to be tested, and generate a measurement result;
[0219] The network switching module 1140 is used to determine whether to perform network switching based on the measurement result.
[0220] It should be understood that, although the various steps in the above-mentioned flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0221] The division of the various modules in the above-mentioned network switching device is only for illustration. In other embodiments, the network switching device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned network switching device.
[0222] For the specific definition of the network switching device, please refer to the definition of the network switching method above, which will not be repeated here. Each module in the above-mentioned network switching device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0223] Fig.12 Schematic diagram of the internal structure of an electronic device in an embodiment. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, etc. The electronic device includes a transceiver, a processor and a memory connected via a system bus. Among them, the transceiver is used to receive a measurement request sent by a network device; the processor may include one or more processing units. The processor may be a CPU (Central Processing Unit) or a DSP (Digital Signal Processing), etc. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement a network switching method provided in each of the following embodiments. The internal memory provides a cached operating environment for the operating system computer program in the non-volatile storage medium.
[0224] The implementation of each module in the network switching device provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on an electronic device. The program module constituted by the computer program may be stored in a memory of the electronic device. When the computer program is executed by a processor, the steps of the method described in the embodiment of the present application are implemented.
[0225] The embodiment of the present application also provides an electronic device, the electronic device comprising a transceiver and a processor;
[0226] A transceiver, used for receiving a measurement request sent by a network device;
[0227] The processor is used to measure whether the electronic device supports dual-SIM dual-pass services in the network to be tested in response to a measurement request, and generate a measurement result; based on the measurement result, determine whether to perform network switching.
[0228] An embodiment of the present application further provides a network device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the network switching method.
[0229] An embodiment of the present application also provides a chip, including a processor, where the processor is configured to execute the steps of the network switching method.
[0230] The embodiment of the present application also provides a computer-readable storage medium, which includes one or more non-volatile computer-readable storage media containing computer-executable instructions, and when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the network switching method.
[0231] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute a network switching method.
[0232] Any reference to memory, storage, database or other medium used in this application may include non-volatile and / or volatile memory. Non-volatile memory may include ROM (Read-Only Memory), PROM (Programmable Read-only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-only Memory) or flash memory. Volatile memory may include RAM (Random Access Memory), which is used as an external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as SRAM (Static Random Access Memory), DRAM (Dynamic Random Access Memory), SDRAM (Synchronous Dynamic Random Access Memory), Double Data Rate DDRSDRAM (Double Data Rate Synchronous Dynamic Random Access memory), ESDRAM (Enhanced Synchronous Dynamic Random Access memory), SLDRAM (Sync Link Dynamic Random Access Memory), RDRAM (Rambus Dynamic Random Access Memory), and DRDRAM (Direct Rambus Dynamic Random Access Memory).
[0233] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A network switching method, characterized in that: Applied to electronic equipment, the method comprises: Receiving a measurement request sent by a network device; the measurement request carries information about the network to be measured; In response to the measurement request, measuring whether the electronic device supports a dual-SIM dual-pass service under the network to be tested, and generating a measurement result; Based on the measurement result, it is determined whether to perform network switching.
2. The method according to claim 1, characterized in that The information of the network to be tested includes an identifier of a target frequency band; The step of measuring, in response to the measurement request, whether the electronic device supports a dual-SIM dual-pass service in the network to be tested, and generating a measurement result includes: In response to the measurement request, determining a target frequency band and a target user identification card based on the identifier of the target frequency band; Acquire network measurement information of the target user identification card in the target frequency band and service measurement information of the electronic device; According to the network measurement information and the service measurement information, it is determined whether the electronic device supports the dual-SIM dual-pass service in the network to be tested, and a measurement result is generated.
3. The method according to claim 2, characterized in that The network measurement information includes the value of the network quality parameter, and the service measurement information includes the service type and the service status corresponding to the service type; determining whether the electronic device supports the dual-card dual-pass service under the network to be tested according to the network measurement information and the service measurement information, and generating the measurement result, including: If the value of the network quality parameter is greater than the preset network quality threshold, it is determined whether the electronic device supports dual-card dual-pass service in the network to be tested according to the service type and the service status corresponding to the service type, and a measurement result is generated.
4. The method according to claim 3, characterized in that The determining, according to the service type and the service state corresponding to the service type, whether the electronic device supports the dual-SIM dual-pass service in the network to be tested, and generating a measurement result, includes: If the service type is a single card service, and the service state corresponding to the single card service is a connected state, determining that the measurement result is that the electronic device supports a dual-card dual-pass service under the network to be tested; If the service type is a dual-card service, obtaining a service status corresponding to the dual-card service and a frequency band combination to be switched by the electronic device; According to the service status corresponding to the dual-card service and the frequency band combination to be switched, it is determined whether the electronic device supports the dual-card dual-pass service in the network to be tested, and a measurement result is generated; the frequency band combination to be switched includes the target frequency band.
5. The method according to claim 4, characterized in that The determining, according to the service state corresponding to the dual-card service and the frequency band combination to be switched, whether the electronic device supports the dual-card dual-pass service under the network to be tested, and generating a measurement result, includes: If the service state of any identity card in the dual-card service is an idle state, determining that the measurement result is that the electronic device supports the dual-card dual-pass service under the network to be tested; If the service status of the identity card in the dual-card service is all connected, determine whether the electronic device supports the dual-card dual-pass service under the network to be tested according to the frequency band combination to be switched and the preset dual-card dual-pass frequency band combination, and generate the measurement result.
6. The method according to claim 5, characterized in that The determining, according to the frequency band combination to be switched and the preset dual-SIM dual-pass frequency band combination, whether the electronic device supports the dual-SIM dual-pass service in the network to be tested, and generating a measurement result, comprises: Determine whether the frequency band combination to be switched belongs to the preset dual-SIM dual-pass frequency band combination; If yes, determining that the measurement result is that the electronic device supports dual-SIM dual-pass services in the network to be tested; If not, it is determined that the measurement result is that the electronic device does not support the dual-SIM dual-channel service in the network to be tested.
7. The method according to any one of claims 1 to 6, characterized in that: The determining whether to perform network switching based on the measurement result includes: A measurement report is generated based on the measurement result, and the measurement report is reported to the network device; the measurement report is used to instruct the network device to determine whether to perform a network switch on the electronic device.
8. The method according to claim 7, characterized in that The generating a measurement report based on the measurement result, and reporting the measurement report to the network device includes: If the measurement result shows that the electronic device supports dual-SIM dual-pass services in the network to be tested, generating a first measurement report based on the measurement result, and reporting the first measurement report to the network device; the first measurement report is used to instruct the network device to perform network switching on the electronic device; If the measurement result is that the electronic device does not support dual-SIM dual-pass services in the network to be tested, a second measurement report is generated based on the measurement result, and the second measurement report is reported to the network device; the second measurement report is used to instruct the network device not to switch the network of the electronic device.
9. The method according to claim 8, characterized in that The measurement request is used to instruct the electronic device to measure a target frequency band, and the first measurement report is used to instruct the network device to perform a network switch of a target subscriber identification card of the electronic device to the target frequency band.
10. The method according to any one of claims 1 to 6, characterized in that: The determining whether to perform network switching based on the measurement result includes: If the measurement result shows that the electronic device does not support dual-SIM dual-pass service in the network to be tested, the measurement result is not reported, so that the network device does not perform network switching on the electronic device.
11. The method according to any one of claims 1 to 6, characterized in that: The measurement result is a target field, and the target field is used to indicate whether the electronic device supports dual-SIM dual-pass service under the network to be tested; The measuring whether the electronic device supports the dual-SIM dual-pass service under the network to be tested and generating a measurement result includes: Measuring whether the electronic device supports dual-SIM dual-pass service under the network to be tested; If the electronic device supports dual-SIM dual-pass services under the network to be tested, determining that the measurement result is a first value; If the electronic device does not support dual-SIM dual-pass service in the network to be tested, the measurement result is determined to be a second value.
12. The method according to claim 11, characterized in that The determining whether to perform network switching based on the measurement result includes: Based on the value of the target field, it is determined whether to perform network switching.
13. A network switching method, characterized in that: Applied to network equipment; the method comprises: Sending a measurement request to an electronic device; the measurement request carries information about the network to be tested; the measurement request is used to instruct the electronic device to measure whether the electronic device supports dual-SIM dual-pass service under the network to be tested, and generate a measurement result; Based on the measurement result, it is determined whether to perform network switching.
14. A network switching device, characterized in that: Applied to electronic equipment, the device comprises: A measurement request receiving module, used to receive a measurement request sent by a network device; A measurement module, configured to measure, in response to the measurement request, whether the electronic device supports a dual-SIM dual-pass service in the network to be tested, and generate a measurement result; The network switching module is used to determine whether to perform network switching based on the measurement result.
15. An electronic device, characterized in that: The electronic device comprises a transceiver and a processor; The transceiver is used to receive a measurement request sent by a network device; The processor is used to measure, in response to the measurement request, whether the electronic device supports dual-SIM dual-pass services in the network to be tested, and generate a measurement result; and determine whether to perform network switching based on the measurement result.
16. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the network switching method according to any one of claims 1 to 12.
17. A network device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the network switching method according to claim 13.
18. A chip, comprising a processor, characterized in that: The processor is configured to execute the steps of the network switching method according to any one of claims 1 to 12 or claim 13.
19. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the network switching method according to any one of claims 1 to 12 or claim 13 are implemented.
20. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the network switching method according to any one of claims 1 to 12 or any one of claim 13 are implemented.
