CN111050309A - Mobile terminal, network registration method thereof and storage medium - Google Patents
Mobile terminal, network registration method thereof and storage medium Download PDFInfo
- Publication number
- CN111050309A CN111050309A CN201811190907.3A CN201811190907A CN111050309A CN 111050309 A CN111050309 A CN 111050309A CN 201811190907 A CN201811190907 A CN 201811190907A CN 111050309 A CN111050309 A CN 111050309A
- Authority
- CN
- China
- Prior art keywords
- card
- preset
- sim
- card slot
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W60/00—Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/183—Processing at user equipment or user record carrier
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a mobile terminal, a network registration method and a storage medium thereof, which are applied to a double-card mobile terminal with two card slots and two inserted SIM cards, wherein after the two SIM cards are pulled out and then are inserted into the two card slots again, the method comprises the following steps: judging whether the two SIM cards are subjected to position exchange after being pulled out and then are reinserted into the two card slots; if the SIM cards are subjected to position exchange and then are inserted into the two card slots again, judging whether the two SIM cards complete network attachment or not; if the network attachment is not completed, the card cutting instruction is not sent; and if the network attachment is finished, sending a card cutting instruction, setting the SIM card in the preset main card slot as a main card, and setting the SIM card in the preset auxiliary card slot as an auxiliary card. The invention avoids conflict between the card-cutting instruction and the starting network attachment of the SIM card, thereby avoiding the network-up delay caused by abnormal network attachment, leading the network registration to be orderly carried out and accelerating the speed of cutting the card and network-up.
Description
Technical Field
The invention relates to the technical field of electronic information, in particular to a mobile terminal, a network registration method and a storage medium thereof.
Background
With the development of economy, more and more people use a plurality of mobile phone numbers, and different mobile phone numbers are used in different places, different groups of people and the like. The consumer groups of the dual-card dual-standby mobile phones are getting bigger and bigger. At present, a dual-card dual-standby mobile phone generally uses a single-pass mode, namely a main card and an auxiliary card share the same set of antenna radio frequency resource, and the communication function support of the two cards is realized through time division multiplexing of bottom layer software and a control chip. In the existing dual-card dual-standby mobile phone, a data main card and a data auxiliary card are generally arranged, the main card and the auxiliary card can be in standby state at the same time, the main card can be connected with the internet at any time and any place, and the auxiliary card only calls. When a user needs to switch the main card and the auxiliary card, the main card and the auxiliary card can be switched in a physical card switching mode, namely the main card and the auxiliary card are taken out of the card slot and are placed into the card slot after the positions are alternated. By adopting the physical card changing mode, the main card and the auxiliary card are started again for initialization, when the wireless state is synchronous, the mobile terminal sends a network-up instruction, the main card and the auxiliary card carry out network attachment, but at the moment, the mobile terminal also sends a card-switching instruction due to card changing, and the synchronous execution of the two instructions can cause the SIM card to repeatedly carry out network attachment and network detachment, thereby causing abnormal network attachment, lengthening the network registration process and causing overlong time for switching the card and re-registering the network.
Disclosure of Invention
The invention mainly aims to provide a mobile terminal, a network registration method and a storage medium thereof, aiming at solving the problem of network attachment abnormity caused by synchronous operation of a network-up instruction and a card-switching instruction when a main card and an auxiliary card are switched in a physical card-switching mode in the prior art.
The invention provides a network registration method, which is applied to a double-card mobile terminal with two card slots and two SIM cards inserted into the two card slots, wherein the two card slots comprise a preset main card slot and a preset auxiliary card slot, and the method comprises the following steps of:
judging whether the two SIM cards are subjected to position exchange after being pulled out and then are reinserted into the two card slots;
if the SIM cards are subjected to position exchange and then are inserted into the two card slots again, judging whether the two SIM cards complete network attachment or not;
if the network attachment is not completed, the card cutting instruction is not sent; and if the network attachment is finished, sending a card cutting instruction, setting the SIM card in the preset main card slot as a main card, and setting the SIM card in the preset auxiliary card slot as an auxiliary card.
Further, the step of judging whether the two SIM cards are switched in position after being pulled out and then reinserted into the two card slots includes:
judging whether the ICCID of the SIM card in the preset main card slot is a preset main card ICCID and/or judging whether the ICCID of the SIM card in the preset auxiliary card slot is a preset auxiliary card ICCID, wherein the preset main card refers to the SIM card in the preset main card slot which is set at the nearest moment from the current time, and the preset auxiliary card refers to the SIM card in the preset auxiliary card slot which is set at the nearest moment from the current time;
if yes, judging that position exchange is not carried out and then reinserting the two card slots;
if not, the position exchange is judged to be carried out and then the two card slots are inserted again.
Further, before the step of determining whether the ICCID of the SIM card in the preset primary card slot is the preset primary card ICCID and/or determining whether the ICCID of the SIM card in the preset secondary card slot is the preset secondary card ICCID, the method includes:
and acquiring the preset primary card ICCID and/or acquiring the preset secondary card ICCID.
Further, before the step of determining whether the two SIM cards are pulled out, and then are subjected to position exchange and reinserted into the two card slots, the method includes:
and under a preset condition, supplying power to the preset main card slot and the preset auxiliary card slot, and starting up initialization of the SIM card in the preset main card slot and the SIM card in the preset auxiliary card slot.
Further, the step of starting the power-on initialization of the SIM card in the preset primary card slot and the SIM card in the preset secondary card slot includes:
starting network attachment for the SIM card in the preset main card slot and the SIM card in the preset auxiliary card slot;
acquiring the latest main/auxiliary card state of the SIM card in the preset main card slot, and correspondingly setting the SIM card in the preset main card slot as a main/auxiliary card; and acquiring the latest main/auxiliary card state of the SIM card in the preset auxiliary card slot, and correspondingly setting the SIM card in the preset auxiliary card slot as the main/auxiliary card.
Further, the preset condition includes that the mobile terminal is restarted after shutdown, or the SIM card is hot-plugged without shutdown.
Further, the step of setting the SIM card in the preset primary card slot as a primary card and setting the SIM card in the preset secondary card slot as a secondary card includes:
network detachment is carried out on the SIM card in the preset main card slot, and network detachment is carried out on the SIM card in the preset auxiliary card slot;
setting the SIM card in the preset main card slot as a main card, and carrying out secondary network attachment on the SIM card in the preset main card slot; and setting the SIM card in the preset auxiliary card slot as an auxiliary card, and carrying out secondary network attachment on the SIM card in the preset auxiliary card slot.
Further, the type of the network includes LTE, WCDMA, TD-SCDMA, GSM, CDMA, EVDO.
The invention further provides a mobile terminal, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of any one of the methods when executing the computer program.
The invention also proposes a computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the method of any one of the preceding claims.
The invention has the beneficial effects that:
according to the mobile terminal and the network registration method, after the position exchange of the SIM card in the preset main card slot and the position exchange of the SIM card in the preset auxiliary card slot are detected, the card cutting instruction is issued after the network attachment of the SIM card in the preset main card slot and the SIM card in the preset auxiliary card slot is finished, so that the conflict between the card cutting instruction and the network attachment of the SIM card can be avoided, the network pickup delay caused by abnormal network attachment is avoided, the network registration is orderly carried out, and the speed of cutting and picking up the network is accelerated.
Drawings
Fig. 1 is a flowchart illustrating a network registration method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating step S1 of FIG. 1 according to the present invention;
FIG. 3 is a schematic flow chart illustrating step S3 of FIG. 1 according to the present invention;
fig. 4 is a block diagram illustrating a structure of a mobile terminal according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a network registration method, which is applied to a dual-card mobile terminal having two card slots and two inserted SIM cards, where the two card slots include a preset primary card slot and a preset secondary card slot, and after two SIM cards are pulled out and then inserted into the two card slots again, the method includes the following steps:
s1, judging whether the two SIM cards are subjected to position exchange after being pulled out and then are reinserted into the two card slots;
s2, if the position is exchanged and then the SIM cards are inserted into the two card slots again, judging whether the two SIM cards finish network attachment;
s3, if the network attachment is not completed, no card cutting instruction is sent; and if the network attachment is finished, sending a card cutting instruction, setting the SIM card in the preset main card slot as a main card, and setting the SIM card in the preset auxiliary card slot as an auxiliary card.
In this embodiment, the mobile terminal stores that the card slot corresponding to the most recently set main card is the preset main card slot, and the card slot corresponding to the most recently set sub-card is the preset sub-card slot. For example, the user sets the primary card and the secondary card through the human-computer interaction interface of the mobile terminal for the last time, at this time, the card slot corresponding to the primary card is the preset primary card slot, and the card slot corresponding to the secondary card is the preset secondary card slot.
In step S1, the user pulls out the two SIM cards and then inserts them into the two card slots again, and first determines whether the user has performed physical exchange with the original main and auxiliary card positions. If position exchange is not carried out, the setting of the card slot is consistent with the setting of the SIM card about the main card and the auxiliary card, the main card and the auxiliary card do not need to be switched, and the two SIM cards directly carry out startup network attachment according to the originally set main card/auxiliary card. If the position is exchanged, the main card and the auxiliary card need to be switched for the two SIM cards.
In step S2, the network attach refers to the SIM card performing network attach during the power-on and network-finding of the mobile terminal. If step S1 determines that the two SIM cards have exchanged positions, the card-cutting command is generated but the execution of the card-cutting command is not urgently issued. After the card-cutting instruction is issued, the SIM card can obtain an instruction for performing network detachment. At this time, if the SIM card has not completed network attachment, and the SIM card receives a network detachment instruction, the SIM card interacts with the network repeatedly, and network attachment and network detachment are performed repeatedly, which results in an abnormal network attachment process, prolongs the time for cutting the card and registering the network again, and causes extra time consumption of tens of seconds, and the speed for cutting the card and starting the network is slow. Therefore, step S2 first determines whether the two SIM cards have completed network attachment, and the card-cutting instruction is not issued for the moment, so as to separately execute the network attachment and the card-cutting process of the SIM cards.
In step S3, the above-mentioned case where network attachment is not completed means that network attachment is not completed for both cards, and there is a case where network attachment is not completed for one card. When the two SIM cards do not finish the network attachment, the card cutting instruction is not sent down firstly, so as to avoid causing the abnormity of the network attachment process. If step S2 determines that both cards complete the network attach procedure, a card-cutting instruction is issued, and the SIM card in the current preset primary card slot is set as the primary card and the SIM card in the current preset secondary card slot is set as the secondary card. At the moment, the card cutting instruction is executed again, so that the conflict between the card cutting instruction and the network attachment of the SIM card is avoided, the network registration is performed orderly, the network-up delay caused by abnormal network attachment is avoided, and the card cutting and network-up speed is accelerated.
Referring to fig. 2, the step S1 of determining whether the two SIM cards are pulled out, exchanged in position, and reinserted into the two card slots further includes:
s101, judging whether the ICCID of the SIM card in the preset main card slot is a preset main card ICCID and/or judging whether the ICCID of the SIM card in the preset auxiliary card slot is a preset auxiliary card ICCID, wherein the preset main card refers to the SIM card in the preset main card slot which is set at the moment closest to the current time, and the preset auxiliary card refers to the SIM card in the preset auxiliary card slot which is set at the moment closest to the current time;
s102, if yes, judging that position exchange is not carried out and then reinserting the two card slots;
s103, if not, judging that the position is exchanged and reinserting the two card slots.
In this embodiment, in step S101, the mobile terminal may read the ICCID of the SIM card inserted into the card slot, and the reading method is the prior art and is not described here again. The ic id (integrated circuit card identity) is an integrated circuit card identification code, i.e. a SIM card number, which is a unique identification code of the SIM card, and is composed of 20 digits, and its encoding format is XXXXXX0MFSS YYGXX XXXX. And the information of the operator, province and the like corresponding to the SIM card can be read through different data of each position in the ICCID.
In the step S102, by comparing the ICCID of the SIM card in the preset main card slot with the ICCID of the preset main card, if the two SIM cards are the same, it indicates that the two SIM cards are not exchanged after being pulled out, or are inserted into the card slot according to the original sequence, that is, the SIM card in the preset main card slot is the main card in the mobile phone last time, and the newly inserted main card slot is still the main card slot, so that the subsequent card cutting operation is not required.
In step S103, by comparing the ICCID of the SIM card in the preset main card slot with the ICCID of the preset main card, if they are different, it indicates that the two SIM cards are exchanged after being pulled out, that is, the SIM card in the preset main card slot is the secondary card in the mobile phone last time, and the secondary card is the main card slot, and at this time, the card slot of the mobile terminal and the SIM card are not consistent with each other regarding the setting of the main card/secondary card, and then subsequent card cutting operation is required.
In step S103, after determining that the position is changed and the mobile terminal is reinserted into the two card slots, the mobile terminal generates a card-cutting instruction, but does not issue the card-cutting instruction once. And further updating the ICCID of the SIM card currently inserted into the preset main card slot to the latest preset main card ICCID, and updating the ICCID of the SIM card currently inserted into the preset auxiliary card slot to the latest preset auxiliary card ICCID. In this embodiment, because two SIM cards are targeted, it can be determined whether two SIM cards are exchanged or inserted in the original order only by determining whether the SIM card in one card slot is the original SIM card. Of course, the effect of this embodiment can also be achieved by determining whether the SIM cards in the main card slot and the auxiliary card slot are the original SIM cards.
Referring to fig. 2, before step S101 of determining whether the ICCID of the SIM card in the preset primary card slot is the preset primary card ICCID and/or determining whether the ICCID of the SIM card in the preset secondary card slot is the preset secondary card ICCID, the method further includes:
s100, obtaining the preset primary card ICCID and/or obtaining the preset secondary card ICCID.
In this embodiment, the preset main card refers to a SIM card in the preset main card slot set at the time closest to the current time, the mobile terminal obtains and stores the ICCID of the preset main card, and compares the ICCID of the SIM card newly inserted into the preset main card slot with the ICCID of the preset main card, if the two ICCIDs are the same, it indicates that the SIM card in the preset main card slot is in the preset main card slot before being pulled out, and if the two ICCIDs are different, it indicates that the SIM card in the preset main card slot is in the preset auxiliary card slot before being pulled out. Similarly, the preset secondary card refers to a SIM card in the preset secondary card slot set at the time closest to the current time, the mobile terminal obtains and stores the ICCID of the preset secondary card, and the ICCID of the SIM card newly inserted into the preset secondary card slot is compared with the ICCID of the preset secondary card, if the two ICCIDs are the same, it indicates that the SIM card in the preset secondary card slot is in the preset secondary card slot before being pulled out; if the SIM card is different from the preset primary card slot, the SIM card in the preset secondary card slot is indicated to be in the preset primary card slot before being pulled out.
Further, before the step S1 of determining whether the two SIM cards are pulled out, and then are subjected to position exchange and reinserted into the two card slots, the method further includes:
and S01, under a preset condition, supplying power to the preset main card slot and the preset auxiliary card slot, and starting startup initialization of the SIM card in the preset main card slot and the SIM card in the preset auxiliary card slot.
In this embodiment, after the two SIM cards are reinserted, the mobile terminal supplies power to the two card slots again, and each PIN of the card slot interface contacts with each PIN of the SIM card to detect that the SIM card is inserted, query the PIN locking states of the SIM cards of the two card slots, obtain the states from the card slots through the driver layer, and then transmit the message to the message processing layer for receiving and processing. In addition to identifying the PIN lock state of the SMI card, the system state information, summary and comprehensive processing information, loading a graphical interface portion, and the like need to be acquired and cached in the boot initialization stage, and the boot initialization needs to be performed for several seconds to tens of seconds.
Further, the step S01 of starting the power-on initialization for the SIM card in the preset primary card slot and the SIM card in the preset secondary card slot includes:
s011, starting network attachment for the SIM card in the preset main card slot and the SIM card in the preset auxiliary card slot;
s012, acquiring the latest main/auxiliary card state of the SIM card in the preset main card slot, and correspondingly setting the SIM card in the preset main card slot as a main/auxiliary card; and acquiring the latest main/auxiliary card state of the SIM card in the preset auxiliary card slot, and correspondingly setting the SIM card in the preset auxiliary card slot as the main/auxiliary card.
In this embodiment, in step S011, after the two SIM cards are reinserted, the mobile terminal starts to check the cards, and when the wireless states are synchronized, the mobile terminal sends a network start instruction, and the two SIM cards start network attachment. For a one-way authenticated GSM network, the network attach procedure is as follows: the Mobile terminal sends a network access request to the network, the network replies a string of random character strings, the Mobile terminal receives and transmits the string of random character strings to the SIM card, the SIM card calculates according to a preset algorithm and returns a calculation result to the Mobile terminal, the Mobile terminal sends the calculation result, IMEI (International Mobile Equipment Identity) and ICCID back to the network, the network reads the ICCID and analyzes whether the number is a local number or not, and the network returns a legal message to finish the network attachment process. For the bidirectional authentication network, not only the network needs to identify whether the user is legal or not in the network attachment process, but also the user needs to identify whether the network is legal or not, and after the bidirectional authentication is legal, the network attachment process is completed, and specific steps are not described herein again.
In step S012, the latest primary/secondary card status of the SIM card in the preset primary card slot and the latest primary/secondary card status of the SIM card in the preset secondary card slot are obtained, and in the power-on initialization step, the obtained card statuses are summarized and processed by the preset primary card logic, so as to determine which of the two SIM cards is set as the primary card most recently. If the SIM card in the preset main card slot is set as the main card for the last time, the SIM card in the preset main card slot is set as the main card in the starting initialization stage, otherwise, the SIM card is set as the auxiliary card. The primary/secondary card setting step of the SIM card in the preset secondary card slot is the same as the setting step of the SIM card in the preset primary card slot, and is not described here again.
Further, the preset condition includes that the mobile terminal is restarted after shutdown, or the SIM card is hot-plugged without shutdown.
In this embodiment, hot plugging, that is, hot plugging, allows a user to take out and insert an SIM card without closing the mobile terminal system.
Referring to fig. 3, further, the step S3 of setting the SIM card in the preset primary card slot as the primary card and setting the SIM card in the preset secondary card slot as the secondary card includes:
s301, performing network detachment on the SIM card in the preset main card slot, and performing network detachment on the SIM card in the preset auxiliary card slot;
s302, setting the SIM card in the preset main card slot as a main card, and performing secondary network attachment on the SIM card in the preset main card slot; and setting the SIM card in the preset auxiliary card slot as an auxiliary card, and carrying out secondary network attachment on the SIM card in the preset auxiliary card slot.
In this embodiment, in step S301, network detachment is performed on the two SIM cards, and the mobile terminal resets the two SIM cards, so that all the functional modules of the mobile terminal return to the state before network attachment of the startup initialization.
In step S302, the secondary network attach refers to the SIM card re-attaching after detaching from the network, as compared with the network attach in step S2. The mobile terminal sets the SIM card in the preset main card slot as a main card and carries out the processes of starting up initialization and secondary network attachment again; and setting the SIM card in the preset auxiliary card slot as an auxiliary card, and performing the processes of starting up initialization and secondary network attachment again. For the one-way authenticated GSM network, the secondary network attachment process is as follows: the Mobile terminal sends a network access request to the network, the network replies a string of random character strings, the Mobile terminal receives and transmits the string of random character strings to the SIM card, the SIM card calculates according to a preset algorithm and returns a calculation result to the Mobile terminal, the Mobile terminal sends the calculation result, IMEI (International Mobile Equipment Identity) and ICCID back to the network, the network reads the ICCID and analyzes whether the number is a local number or not, and the network returns a legal message to finish the network attachment process. For the bidirectional authentication network, in the secondary network attachment process, not only the network needs to identify whether the user is legal, but also the user needs to identify whether the network is legal, and after the bidirectional authentication is legal, the network attachment process is completed, and specific steps are not described herein again.
The network registration process of cutting cards and re-attaching the cards to the two SIM cards is carried out orderly, so that the disorder of the mobile terminal and the network protocol is avoided, and the network start time of re-network registration after cutting the cards is effectively shortened.
Further, the types of the network include LTE, WCDMA, TDS, GSM, CDMA, EVDO.
In the embodiment of the present invention, the type of the network of the SIM card refers to an Access type used when an operator that a Mobile terminal accesses to the SIM card through the SIM card says that the network is provided, and includes various 2G, 3G, and 4G Access types such as lte (long Term Evolution), wcdma (wideband Code Division Multiple Access), TD-SCDMA (Time Division-synchronized Code Division Multiple Access), gsm (global System for Mobile communication), cdma (Code Division Multiple Access), EVDO (Evolution-Data Optimized), and the like.
According to the network registration method, after the position exchange of the SIM card in the preset main card slot and the SIM card in the preset auxiliary card slot is detected, the card cutting instruction is issued after the network attachment of the SIM card in the preset main card slot and the SIM card in the preset auxiliary card slot is finished, so that the conflict between the card cutting instruction and the network attachment of the SIM card can be avoided, the network-up delay caused by abnormal network attachment is avoided, the network registration is orderly carried out, and the speed of cutting and network-up is increased.
Referring to fig. 4, an embodiment of the present invention further provides a mobile terminal, including a processor 1080 and a memory 1020, where the memory 1020 is used to store a program for a network registration apparatus to execute the network registration method; the processor 1080 is configured to execute programs stored in the memory.
For convenience of explanation, only the parts related to the embodiments of the present invention are shown, and details of the specific techniques are not disclosed. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and the like, taking the mobile terminal as the mobile phone as an example:
fig. 4 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 4, the handset includes: radio Frequency (RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, audio circuit 1060, wireless fidelity (WiFi) module 1070, processor 1080, and power source 1090. Those skilled in the art will appreciate that the handset configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 4:
The memory 1020 can be used for storing software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1020 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1030 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also referred to as a touch screen, may collect touch operations by a user (e.g., operations by a user on or near the touch panel 1031 using any suitable object or accessory such as a finger, a stylus, etc.) and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1031 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1030 may include other input devices 1032 in addition to the touch panel 1031. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, or the like.
The display unit 1040 may be used to display information input by a user or information provided to the user and various menus of the cellular phone. The Display unit 1040 may include a Display panel 1041, and optionally, the Display panel 1041 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1031 can cover the display panel 1041, and when the touch panel 1031 detects a touch operation on or near the touch panel 1031, the touch operation is transmitted to the processor 1080 to determine the type of the touch event, and then the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of the touch event. Although in fig. 4, the touch panel 1031 and the display panel 1041 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1050, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1041 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 1070, which provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 1070, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1080 is a control center of the mobile phone, connects various parts of the whole mobile phone by using various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1020 and calling data stored in the memory 1020, thereby integrally monitoring the mobile phone. Optionally, processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor, which handles primarily the operating system, user interfaces, applications, etc., and a modem processor, which handles primarily the wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1080.
The handset also includes a power source 1090 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1080 via a power management system to manage charging, discharging, and power consumption via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
Referring to fig. 4, in the embodiment of the present invention, the processor 1080 included in the mobile terminal further has the following functions:
judging whether the two SIM cards are subjected to position exchange after being pulled out and then are reinserted into the two card slots;
if the SIM cards are subjected to position exchange and then are inserted into the two card slots again, judging whether the two SIM cards complete network attachment or not;
if the network attachment is not completed, the card cutting instruction is not sent; and if the network attachment is finished, sending a card cutting instruction, setting the SIM card in the preset main card slot as a main card, and setting the SIM card in the preset auxiliary card slot as an auxiliary card.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of 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.
In addition, functional units in the embodiments of the present invention 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.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware that is instructed to implement by a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A network registration method is applied to a double-card mobile terminal which is provided with two card slots and is inserted with two SIM cards, wherein the two card slots comprise a preset main card slot and a preset auxiliary card slot, and after the two SIM cards are pulled out and then are inserted into the two card slots again, the network registration method is characterized by comprising the following steps:
judging whether the two SIM cards are subjected to position exchange after being pulled out and then are reinserted into the two card slots;
if the SIM cards are subjected to position exchange and then are inserted into the two card slots again, judging whether the two SIM cards complete network attachment or not;
if the network attachment is not completed, the card cutting instruction is not sent; and if the network attachment is finished, sending a card cutting instruction, setting the SIM card in the preset main card slot as a main card, and setting the SIM card in the preset auxiliary card slot as an auxiliary card.
2. The network registration method of claim 1, wherein the step of determining whether the two SIM cards are re-inserted into the two card slots after being removed and exchanged in place comprises:
judging whether the ICCID of the SIM card in the preset main card slot is a preset main card ICCID and/or judging whether the ICCID of the SIM card in the preset auxiliary card slot is a preset auxiliary card ICCID, wherein the preset main card refers to the SIM card in the preset main card slot which is set at the nearest moment from the current time, and the preset auxiliary card refers to the SIM card in the preset auxiliary card slot which is set at the nearest moment from the current time;
if yes, judging that position exchange is not carried out and then reinserting the two card slots;
if not, the position exchange is judged to be carried out and then the two card slots are inserted again.
3. The network registration method of claim 2, wherein before the step of determining whether the ICCID of the SIM card in the preset primary card slot is the preset primary card ICCID and/or determining whether the ICCID of the SIM card in the preset secondary card slot is the preset secondary card ICCID, the method comprises:
and acquiring the preset primary card ICCID and/or acquiring the preset secondary card ICCID.
4. The network registration method of claim 1, wherein before the step of determining whether the two SIM cards are re-inserted into the two card slots after being pulled out and performing the position exchange, the method comprises:
and under a preset condition, supplying power to the preset main card slot and the preset auxiliary card slot, and starting up initialization of the SIM card in the preset main card slot and the SIM card in the preset auxiliary card slot.
5. The method of claim 4, wherein the step of starting power-on initialization for the SIM card in the preset primary card slot and the SIM card in the preset secondary card slot comprises:
starting network attachment for the SIM card in the preset main card slot and the SIM card in the preset auxiliary card slot;
acquiring the latest main/auxiliary card state of the SIM card in the preset main card slot, and correspondingly setting the SIM card in the preset main card slot as a main/auxiliary card; and acquiring the latest main/auxiliary card state of the SIM card in the preset auxiliary card slot, and correspondingly setting the SIM card in the preset auxiliary card slot as the main/auxiliary card.
6. The network registration method of claim 4, wherein the preset condition comprises restarting the mobile terminal after power off, or performing hot plug of the SIM card without power off.
7. The method of network registration according to claim 1, wherein the step of setting the SIM card in the preset primary card slot as a primary card and setting the SIM card in the preset secondary card slot as a secondary card comprises:
network detachment is carried out on the SIM card in the preset main card slot, and network detachment is carried out on the SIM card in the preset auxiliary card slot;
setting the SIM card in the preset main card slot as a main card, and carrying out secondary network attachment on the SIM card in the preset main card slot; and setting the SIM card in the preset auxiliary card slot as an auxiliary card, and carrying out secondary network attachment on the SIM card in the preset auxiliary card slot.
8. The network registration method of claim 1, wherein the type of the network comprises LTE, WCDMA, TD-SCDMA, GSM, CDMA, EVDO.
9. A mobile terminal comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 1 to 8.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811190907.3A CN111050309A (en) | 2018-10-12 | 2018-10-12 | Mobile terminal, network registration method thereof and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811190907.3A CN111050309A (en) | 2018-10-12 | 2018-10-12 | Mobile terminal, network registration method thereof and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111050309A true CN111050309A (en) | 2020-04-21 |
Family
ID=70229751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811190907.3A Withdrawn CN111050309A (en) | 2018-10-12 | 2018-10-12 | Mobile terminal, network registration method thereof and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111050309A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115102807A (en) * | 2022-05-27 | 2022-09-23 | 深圳技术大学 | Method, device, server, client and storage medium for data transmission of internet of things gateway |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105657644A (en) * | 2016-01-28 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Main data card setting method and terminal |
CN106302952A (en) * | 2015-05-20 | 2017-01-04 | 中兴通讯股份有限公司 | The method and device of double card switching |
CN106604259A (en) * | 2016-12-27 | 2017-04-26 | 努比亚技术有限公司 | Terminal and main card setting method |
CN106658470A (en) * | 2016-12-27 | 2017-05-10 | 努比亚技术有限公司 | Master card setting device and method |
-
2018
- 2018-10-12 CN CN201811190907.3A patent/CN111050309A/en not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302952A (en) * | 2015-05-20 | 2017-01-04 | 中兴通讯股份有限公司 | The method and device of double card switching |
CN105657644A (en) * | 2016-01-28 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Main data card setting method and terminal |
CN106604259A (en) * | 2016-12-27 | 2017-04-26 | 努比亚技术有限公司 | Terminal and main card setting method |
CN106658470A (en) * | 2016-12-27 | 2017-05-10 | 努比亚技术有限公司 | Master card setting device and method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115102807A (en) * | 2022-05-27 | 2022-09-23 | 深圳技术大学 | Method, device, server, client and storage medium for data transmission of internet of things gateway |
CN115102807B (en) * | 2022-05-27 | 2023-11-28 | 深圳技术大学 | Method, device, server, client and storage medium for gateway data transmission of Internet of things |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107094294B (en) | Network connection method and device | |
CN106293308B (en) | Screen unlocking method and device | |
KR20200140555A (en) | Electronic device for switching between a dual standby mode and a single standby mode and method for the same | |
US20220255639A1 (en) | Radio frequency parameter processing method and device, and mobile terminal and storage medium | |
US20210051144A1 (en) | Authentication Window Display Method and Apparatus | |
CN111277991B (en) | Operator name display method and device, mobile terminal and storage medium | |
CN111273955B (en) | Thermal restoration plug-in optimization method and device, storage medium and electronic equipment | |
CN111399874A (en) | System upgrading method and device, storage medium and intelligent wearable device | |
CN105871910B (en) | eSIM joint registration method and related equipment and system | |
CN113039517B (en) | Audio resource calling method and device and electronic equipment | |
CN108712281B (en) | Method, device, storage medium and terminal for triggering detection management application update | |
CN111050309A (en) | Mobile terminal, network registration method thereof and storage medium | |
CN110944318A (en) | Lock card setting method and device, storage medium and terminal | |
CN113923005B (en) | Method and system for writing data | |
CN106445594B (en) | System application installation method and device and terminal equipment | |
CN106817370B (en) | Method and device for transmitting network data | |
CN111858182B (en) | Data reading method and device, storage medium and mobile terminal | |
CN111026457B (en) | Hardware configuration method and device, storage medium and terminal equipment | |
CN111565388B (en) | Network registration method and electronic equipment | |
CN112286849A (en) | Wireless charging base data switching method and system, storage medium and terminal equipment | |
CN106879046B (en) | Network scanning method and terminal equipment | |
CN112130928A (en) | Automatic searching method, device, equipment and storage medium for Linux system sound card | |
CN112214699A (en) | Page processing method and related device | |
CN111093173B (en) | Method and device for limiting starting of STK application | |
CN105278967B (en) | System updating method, device and system of mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200421 |