Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 shows a schematic implementation flow diagram of a configuration method for a VoLTE switch state, which is provided in an embodiment of the present application, and the method is applied to a mobile terminal and can be executed by a configuration device for a VoLTE switch state configured on the mobile terminal, and the configuration device for a VoLTE switch state can be implemented in a hardware and/or software manner, and is suitable for a situation that a VoLTE switch state needs to be configured conveniently.
The mobile terminal comprises a mobile terminal device which can be inserted with a SIM card and supports VoLTE service, such as a smart phone, a tablet computer, a Personal Digital Assistant (PDA), a learning machine and an electronic watch. The configuration method of the VoLTE switch state may include steps 101 to 103.
Step 101, when receiving an inserting signal of the SIM card, obtaining an international mobile subscriber identity IMSI of the SIM card.
In some embodiments of the present application, when the mobile terminal is powered on, it is detected whether a Subscriber Identity Module (SIM) card, i.e., a Subscriber Identity Module (SIM) card, is currently inserted into the mobile terminal.
For example, after the mobile terminal is powered on, the pin voltage VCC of the SIM card interface device is read, and whether the mobile terminal device is inserted into the SIM card is determined according to the read pin voltage VCC.
When receiving the insertion signal of the SIM card, the terminal obtains an International Mobile Subscriber Identity (IMSI) of the SIM card.
The IMSI is a number that is internationally assigned to uniquely identify a mobile subscriber, is stored in the SIM card, and is composed of MCC, MNC, and MSIN. The MCC is a mobile country number, which is composed of 3 digits and is used to uniquely identify a country to which a mobile subscriber belongs, for example, the mobile country number of china is 460; MNC is a network ID, consisting of 2 digits, for identifying the mobile network to which the mobile subscriber belongs, for example, china mobile is 00, china unicom is 01, and china telecom is 03; MSIN is a mobile subscriber identity used to identify a mobile subscriber in a mobile communications network. Therefore, to distinguish whether the mobile or the connected mobile is needed, only the MNC field in the SIM card needs to be acquired.
And step 102, searching VoLTE switch configuration information corresponding to the SIM card by taking the IMSI as a hash key value.
And 103, if the VoLTE switch configuration information corresponding to the SIM card is found, configuring the VoLTE switch state of the mobile terminal according to the VoLTE switch configuration information.
In practical application, the VoLTE switch configuration information may be associated with a card slot of the SIM card of the mobile terminal, that is, the SIM card inserted into the same card slot, where the VoLTE switch configuration information is prestored VoLTE switch configuration information corresponding to the card slot.
However, in this way, as long as SIM cards of different operators or different types of SIM cards of the same operator are inserted into the same card slot, the configuration of the VoLTE switch is the same, which may cause an unreasonable configuration of the VoLTE switch, and may require the user to manually configure the state of the VoLTE switch in the setting interface.
For example, as shown in fig. 2, when the SIM card inserted into a card slot of the mobile terminal is an SIM card that does not support VoLTE service and the VoLTE switch of the mobile terminal is configured in the off state, if the SIM card in the card slot is taken out and replaced with an SIM card that supports VoLTE service, the mobile terminal still configures the VoLTE switch in the off state, and the VoLTE switch needs to be manually turned on by the user in the setting interface 21 of the VoLTE switch state to configure the VoLTE switch in the on state; the operation is complicated, and especially when the user is not familiar with the setup menu of the mobile phone, the VoLTE on-off state cannot be configured quickly, which has the problem of efficiency of the VoLTE on-off state configuration.
In the embodiment of the application, the VoLTE switch configuration information may be stored in a hash table by using IMSI of an SIM card as a hash key value, when the mobile terminal receives an insertion signal of the SIM card, the international mobile subscriber identity IMSI of the SIM card is acquired, and the VoLTE switch configuration information corresponding to the SIM card is searched by using the IMSI as the hash key value to obtain the VoLTE switch configuration information corresponding to the SIM card, and then, the VoLTE switch state of the mobile terminal is configured according to the VoLTE switch configuration information, so that the VoLTE switch state and the SIM card are associated with each other, unreasonable VoLTE switch configuration is not caused, and meanwhile, the user does not need to manually configure the VoLTE switch state in a setting interface of the VoLTE switch state, so that the VoLTE switch state can be configured quickly and accurately, and the configuration efficiency of the VoLTE switch state is improved.
When the SIM card is inserted into a card slot of a certain mobile terminal for the first time, the hash table of the mobile terminal does not store the VoLTE switch configuration information corresponding to the IMSI of the SIM card, and at this time, the VoLTE switch configuration information corresponding to the SIM card is searched by using the IMSI as a hash key value, and the mobile terminal cannot search the VoLTE switch configuration information corresponding to the SIM card.
Optionally, in some embodiments of the application, as shown in fig. 3, after the step 102 of searching for the VoLTE switch configuration information corresponding to the SIM card by using the IMSI as the hash key value, the method may further include: step 104, if the mobile terminal does not find the VoLTE switch configuration information corresponding to the SIM card, acquiring a public land mobile network number PLMN of the SIM card; and acquiring VoLTE switch default configuration information corresponding to the SIM card by taking PLMN as a hash key value, and configuring the VoLTE switch state of the mobile terminal according to the VoLTE switch default configuration information.
Specifically, the PLMN is composed of MCC and MNC, and can be used to identify the mobile network to which the SIM card belongs. Because some mobile networks of operators do not support the VoLTE service, the mobile terminal may store default configuration information of the VoLTE switch corresponding to different PLMNs in advance, so that when the mobile terminal does not find the configuration information of the VoLTE switch corresponding to the SIM card, the VoLTE switch state of the mobile terminal may be configured according to the prestored default configuration information of the VoLTE switch corresponding to the SIM card PLMN.
For example, the mobile operator is an operator supporting VoLTE service, and an operator such as a trojan is an operator that does not support VoLTE service temporarily, so the VoLTE switch with the PLMN 46000 may be configured to be turned on by default, and the VoLTE switch with the PLMN 46020 may be configured to be turned off by default.
As shown in fig. 3, optionally, after the step 104, the method for configuring the VoLTE switch state may further include: and 105, storing the default configuration information of the VoLTE switch into a hash table by taking the IMSI as a hash key value.
The hash table is also called a hash table, and is a data structure directly accessed according to a hash Key value (Key value), and the hash Key value is mapped to a certain position in the table to access data, so as to accelerate the searching speed.
In the embodiment of the application, when PLMN is used as a hash key value to obtain default configuration information of a VoLTE switch corresponding to the SIM card and configure a VoLTE switch state of the mobile terminal according to the default configuration information of the VoLTE switch, it indicates that the VoLTE switch configuration information corresponding to the SIM card is not found in the process of finding the VoLTE switch configuration information corresponding to the SIM card by using IMSI as a hash key value, so that after obtaining the default configuration information of the VoLTE switch corresponding to the SIM card by using PLMN as a hash key value and configuring the VoLTE switch state of the mobile terminal according to the VoLTE switch default configuration information, the VoLTE switch default configuration information needs to be stored into a hash table by using IMSI as a hash key value so that when the SIM card is reinserted into the mobile terminal, the mobile terminal can accurately find the VoLTE switch configuration information corresponding to the SIM card by using IMSI as a hash key value, and obtaining VoLTE switch configuration information corresponding to the SIM card.
In the above embodiments shown in fig. 1 to 3, after configuring the VoLTE switch state of the mobile terminal, the method may further include: and receiving the change information of the VoLTE switch state, and replacing the data with the IMSI as the hash key value by using the change information.
For example, after the VoLTE switch state of the mobile terminal is configured according to the VoLTE switch configuration information in step 103, or after the VoLTE switch state of the mobile terminal is configured according to the VoLTE switch default configuration information in step 104, the mobile terminal may further receive change information of the VoLTE switch state and replace the data with the IMSI as the hash key value with the change information.
For example, if a certain SIM card does not open the VoLTE service and the VoLTE switch state of the mobile terminal is not closed, at this time, if the user opens the VoLTE service of the SIM card and changes the VoLTE switch state of the mobile terminal to the open state, the mobile terminal will receive the change information of the VoLTE switch state and replace the data with the hash key value as IMSI with the change information, that is, the VoLTE switch state of the SIM card is saved to the open state, so that when the SIM card is reinserted into the mobile terminal, the mobile terminal can automatically set the VoLTE switch to the open state without manual configuration by the user in the setting interface of the VoLTE switch state, the VoLTE switch state can be quickly and accurately configured, and the configuration efficiency of the VoLTE switch state is improved.
Optionally, as shown in fig. 4, in some embodiments of the present application, on the basis of the above-described embodiments, after acquiring the international mobile subscriber identity IMSI of the SIM card in step 101, the method may further include: step 401 to step 402.
Step 401, using the IMSI as a hash key value to search the network system information corresponding to the SIM card.
Step 402, if the network system information corresponding to the SIM card is found, configuring the network system of the mobile terminal according to the network system information.
That is to say, the mobile terminal may store the VoLTE switch configuration information corresponding to the SIM card in the hash table by using the IMSI as the hash key, and may also store the network system information corresponding to the SIM card in the hash table by using the IMSI as the hash key, so as to improve the configuration efficiency of the network system of the mobile terminal.
The network standard is the type of the network, and different operators support different types of network standards, for example, the network standard used by the china mobile has 3 models of GSM (2G), TD-SCDMA (3G) and TD-LTE (4G); and GSM (2G), WCDMA (3G), TD-LTE (4G) and FDD-LTE (4G) are used in China Unicom; china telecom uses CDMA1X (2G), EVDO (3G), TD-LTE (4G) and FDD-LTE (4G). The SIM cards of the same operator also have cards supporting different network formats, so that when the mobile terminal is inserted into the SIM card, the networks of each format need to be scanned and attached one by one. Due to a plurality of network systems, the problem of slow network attachment speed exists in the process of scanning one by one.
For example, for an SIM card supporting only a 4G network, it is not necessary to scan a 2G network and a 3G network, so in this embodiment of the present application, the network system of the mobile terminal is configured according to the found network system information, and the network attachment efficiency can be improved. Moreover, for some SIM cards subscribed to packages with less data traffic, even if the SIM card supports a 4G network, in order to save data traffic, the user may need to close the 4G network, and configure the network system of the terminal as a 2G network/a 3G network. Therefore, in the embodiment of the application, the network system information corresponding to the SIM card is stored in the hash table by using the IMSI as the hash key value, and when the insertion signal of the SIM card is received, the network system information corresponding to the SIM card is searched by using the IMSI as the hash key value, and the network system of the mobile terminal is configured according to the searched network system information, so that after the user replaces the SIM card, the network system of the SIM card does not need to be manually configured again, and the configuration efficiency of the network system of the mobile terminal is improved.
Similarly, after the step 401, the method may further include: step 403, if the network system information corresponding to the SIM card is not found, acquiring a public land mobile network number PLMN of the SIM card; and acquiring preset network system information corresponding to the SIM card by taking the PLMN as a hash key value, and configuring the network system of the mobile terminal according to the preset network system information.
For example, the preset network system information with the PLMN 46000 is set to GSM (2G), TD-SCDMA (3G) and TD-LTE (4G), and the preset network system information with the PLMN 46001 is set to GSM (2G), WCDMA (3G), TD-LTE (4G) and FDD-LTE (4G). The preset network system information may be a network system set according to an actual application scenario, and this is not limited in the embodiments of the present application.
Optionally, after configuring the network type of the mobile terminal, the method may further include receiving change information of the network type, and replacing the data with the hash key as the IMSI with the change information of the network type.
Optionally, in some embodiments of the present application, the searching for the VoLTE switch configuration information corresponding to the SIM card by using the IMSI as the hash key value may further include: and inquiring whether the VoLTE service is opened or not in the SIM card according to the IMSI, and if the VoLTE service is not opened, searching VoLTE switch configuration information corresponding to the SIM card by using the IMSI as a hash key value.
For example, the mobile terminal queries whether the SIM card has a VoLTE service according to the IMSI from a VoLTE service provisioning platform, if the VoLTE service provisioning platform confirms that the SIM card has a VoLTE service, the VoLTE switch of the mobile terminal is turned on, and if the VoLTE service provisioning platform confirms that the SIM card does not have the VoLTE service, it indicates that the SIM card may need to turn on the VoLTE switch for VoLTE service registration, or does not need to turn on the VoLTE switch, so that the VoLTE switch configuration information corresponding to the SIM card needs to be searched by using the IMSI as a hash key value, and the VoLTE switch state of the mobile terminal is configured according to the searched VoLTE switch configuration information corresponding to the SIM card, thereby improving the configuration efficiency of the VoLTE switch.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 5 shows a schematic structural diagram of a configuration apparatus 500 for a VoLTE switch state provided in an embodiment of the present application, which includes a receiving unit 501, a searching unit 502, and a configuration unit 503.
A receiving unit 501, configured to obtain an international mobile subscriber identity IMSI of a SIM card when receiving an insertion signal of the SIM card;
the searching unit 502 is configured to search VoLTE switch configuration information corresponding to the SIM card by using the IMSI as a hash key value;
a configuration unit 503, configured to configure the VoLTE switch state of the mobile terminal according to the VoLTE switch configuration information if the VoLTE switch configuration information corresponding to the SIM card is found.
In some embodiments of the present application, the configuration unit 503 is further configured to, after the VoLTE switch configuration information corresponding to the SIM card is searched by using the IMSI as a hash key value, obtain a public land mobile network number PLMN of the SIM card if the VoLTE switch configuration information corresponding to the SIM card is not searched; and acquiring VoLTE switch default configuration information corresponding to the SIM card by taking PLMN as a hash key value, and configuring the VoLTE switch state of the mobile terminal according to the VoLTE switch default configuration information.
In some embodiments of the present application, the VoLTE switch state configuration apparatus 500 may further include a storage unit, configured to store the VoLTE switch default configuration information into a hash table by using IMSI as a hash key value after the VoLTE switch state of the mobile terminal is configured according to the VoLTE switch default configuration information.
In some embodiments of the present application, the storage unit is further configured to receive change information of a VoLTE switch state, and replace data with a hash key value of IMSI with the change information.
In some embodiments of the present application, the searching unit 502 is further configured to search for the network system information corresponding to the SIM card by using an IMSI as a hash key value; correspondingly, the configuration unit 503 is further configured to configure the network system of the mobile terminal according to the network system information if the network system information corresponding to the SIM card is found.
The configuration unit 503 is further configured to obtain a public land mobile network number PLMN of the SIM card if the network system information corresponding to the SIM card is not found; and acquiring preset network system information corresponding to the SIM card by taking the PLMN as a hash key value, and configuring the network system of the mobile terminal according to the preset network system information.
In some embodiments of the application, the searching unit 502 is further configured to query whether the VoLTE service is enabled on the SIM card according to the IMSI, and if the VoLTE service is not enabled, search VoLTE switch configuration information corresponding to the SIM card by using the IMSI as a hash key value.
It should be noted that, for convenience and simplicity of description, the specific working process of the VoLTE on-off state configuration apparatus 500 described above may refer to the corresponding process of the method described in fig. 1 to fig. 4, and is not described herein again.
As shown in fig. 6, the present application provides a mobile terminal for implementing the configuration method of the VoLTE on-off state, where the mobile terminal may be a mobile terminal such as a smart phone, a tablet computer, a Personal Computer (PC), a Personal Digital Assistant (PDA), a learning machine, and includes: a processor 61, a memory 62, one or more input devices 63 (only one shown in fig. 6), and one or more output devices 64 (only one shown in fig. 6). The processor 61, memory 62, input device 63 and output device 64 are connected by a bus 65.
It should be understood that in the embodiment of the present Application, the Processor 61 may be a Central Processing Unit (CPU), and the Processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 63 may include a keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 64 may include a display, a speaker, etc.
The memory 62 may include a read-only memory and a random access memory, and provides instructions and data to the processor 61. Some or all of the memory 62 may also include non-volatile random access memory. For example, the memory 62 may also store device type information.
The memory 62 stores a computer program that is executable on the processor 61, for example, a program of a configuration method of a VoLTE switch state. The processor 61 implements the steps in the above-mentioned configuration method embodiment of the VoLTE switch state, for example, steps 101 to 103 shown in fig. 1, when executing the computer program. Alternatively, the processor 61, when executing the computer program, implements the functions of each module/unit in the above-mentioned device embodiments, for example, the functions of the units 501 to 503 shown in fig. 5.
The computer program may be divided into one or more modules/units, which are stored in the memory 62 and executed by the processor 61 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the mobile terminal performing the configuration of the VoLTE switch state. For example, the computer program may be divided into a receiving unit, a searching unit and a configuring unit, and each unit may specifically function as follows: the receiving unit is used for acquiring the International Mobile Subscriber Identity (IMSI) of the SIM card when receiving the inserting signal of the SIM card; the searching unit is used for searching VoLTE switch configuration information corresponding to the SIM card by taking the IMSI as a hash key value; and the configuration unit is used for configuring the VoLTE switch state of the mobile terminal according to the VoLTE switch configuration information if the VoLTE switch configuration information corresponding to the SIM card is found.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/mobile terminal and method may be implemented in other ways. For example, the above-described apparatus/mobile terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.