CN108377301B - User identity identification card searching method and mobile terminal - Google Patents

User identity identification card searching method and mobile terminal Download PDF

Info

Publication number
CN108377301B
CN108377301B CN201810170825.6A CN201810170825A CN108377301B CN 108377301 B CN108377301 B CN 108377301B CN 201810170825 A CN201810170825 A CN 201810170825A CN 108377301 B CN108377301 B CN 108377301B
Authority
CN
China
Prior art keywords
mobile terminal
identification card
acceleration
user identity
module
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.)
Active
Application number
CN201810170825.6A
Other languages
Chinese (zh)
Other versions
CN108377301A (en
Inventor
郑梓煜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810170825.6A priority Critical patent/CN108377301B/en
Publication of CN108377301A publication Critical patent/CN108377301A/en
Application granted granted Critical
Publication of CN108377301B publication Critical patent/CN108377301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The invention relates to the technical field of communication, and provides a method for searching a user identification card and a mobile terminal, which aim to solve the problem of poor effect of searching the user identification card by the mobile terminal. The method comprises the following steps: detecting a first current acceleration of the mobile terminal; if the first current acceleration of the mobile terminal is larger than a first preset acceleration value, closing a user identity identification card module of the mobile terminal, and executing operation of searching the user identity identification card until the acceleration of the mobile terminal is detected to be smaller than the first preset acceleration. In the implementation of the invention, when the mobile terminal is in a scene that the acceleration is large and the mobile terminal is easy to drop the card, the mobile terminal closes the user identity identification card module without searching the user identity identification card, and when the acceleration of the mobile terminal is small, the user identity identification card is searched, so that the effect of searching the user identity identification card is good.

Description

User identity identification card searching method and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a method for searching a user identity identification card and a mobile terminal.
Background
With the development of mobile terminals, the mobile terminals have become indispensable communication tools in people's work and life. In the communication process, the mobile terminal needs to identify the user identification card storing the user identification information, so as to perform communication. However, in the process of using the mobile terminal, the mobile terminal often cannot detect the user identification card due to the falling or shaking of the mobile terminal, so that the mobile terminal cannot normally communicate. In the prior art, when the mobile terminal detects that the user identification card does not exist, the mobile terminal starts to search the user identification card. However, in the searching process, there are often situations in which it is difficult for the mobile terminal to retrieve the user identification card due to the unstable state of the mobile terminal.
Therefore, the effect of searching the user identification card by the conventional mobile terminal is poor.
Disclosure of Invention
The embodiment of the invention provides a method for searching a user identity identification card and a mobile terminal, which aim to solve the problem of poor effect of searching the user identity identification card by the mobile terminal.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for searching a user identity card, including:
detecting a first current acceleration of the mobile terminal;
if the first current acceleration of the mobile terminal is larger than a first preset acceleration value, closing a user identity identification card module of the mobile terminal, and executing operation of searching the user identity identification card until the acceleration of the mobile terminal is detected to be smaller than the first preset acceleration.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the first detection module is used for detecting a first current acceleration of the mobile terminal;
and the first closing module is used for closing the user identity identification card module of the mobile terminal if the first detection module detects that the first current acceleration of the mobile terminal is greater than a first preset acceleration value, and executing the operation of searching the user identity identification card until the acceleration of the mobile terminal is detected to be less than the first preset acceleration.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including: the device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the searching method of the user identification card.
In a fourth aspect, an embodiment of the present invention further provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps in the method for searching for a user identification card as described above.
In the embodiment of the invention, a first current acceleration of the mobile terminal is detected; if the first current acceleration of the mobile terminal is larger than a first preset acceleration value, closing a user identity identification card module of the mobile terminal, and executing operation of searching the user identity identification card until the acceleration of the mobile terminal is detected to be smaller than the first preset acceleration. In the implementation of the invention, when the mobile terminal is in a scene that the acceleration is large and the mobile terminal is easy to drop the card, the mobile terminal closes the user identity identification card module without searching the user identity identification card, and when the acceleration of the mobile terminal is small, the user identity identification card is searched, so that the effect of searching the user identity identification card is good.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for searching a user identification card according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a method for searching a SIM card according to an embodiment of the present invention;
fig. 2-1 is a third flowchart of a method for searching a user identification card according to an embodiment of the present invention;
FIG. 3 is a fourth flowchart of a method for searching a user identification card according to an embodiment of the present invention;
FIG. 3-1 is a fifth flowchart of a method for searching a user identification card according to an embodiment of the present invention;
fig. 4 is one of the structural diagrams of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a second block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a third block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 7 is a fourth structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 8 is a fifth structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 9 is a sixth structural diagram of a mobile terminal according to an embodiment of the present invention.
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 some, not all, embodiments of the present invention. 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, fig. 1 is a flowchart of a method for searching a user identification card according to an embodiment of the present invention, where the method may be applied to a mobile terminal equipped with a user identification card. As shown in fig. 1, the method comprises the following steps:
step 101, detecting a first current acceleration of the mobile terminal.
Wherein the first current acceleration of the mobile terminal may be understood as an acceleration at which the mobile terminal is moving. The mobile terminal may detect the current acceleration of the mobile terminal by using a gravity sensor, or may obtain the moving state of the mobile terminal by using a state machine register of the gravity sensor, so as to determine the acceleration of the mobile terminal. For example, when the state machine register of the mobile terminal obtains that the current state of the mobile terminal is the free fall state, the acceleration value of the mobile terminal can be determined according to the state.
Step 102, if the first current acceleration of the mobile terminal is greater than a first preset acceleration value, closing a user identification card module of the mobile terminal, and executing an operation of searching for the user identification card until the acceleration of the mobile terminal is detected to be less than the first preset acceleration.
Wherein the first preset acceleration value may be a value for defining whether the mobile terminal is in a more stable acceleration state. The first preset acceleration value may be an acceleration value preset by the mobile terminal or a value set by the mobile terminal to receive a user operation in advance.
In the step, whether the first current acceleration of the mobile terminal is greater than a first preset acceleration value or not is judged, if the first current acceleration of the mobile terminal is greater than the first preset acceleration value, the mobile terminal is in a scene with a larger acceleration, and the mobile terminal closes the user identity card module without searching the user identity card. Specifically, the power of the user identification card in the mobile terminal is turned off, and data including clock data, reset data and other data in the user identification card module of the mobile terminal is cleared.
After the user identification card module is closed, the mobile terminal can continue to detect the current acceleration of the mobile terminal until the acceleration of the mobile terminal is detected to be smaller than the first preset acceleration, and the user identification card is searched. When the acceleration of the mobile terminal is smaller than or equal to the first preset acceleration value, the mobile terminal is in a scene with stable acceleration, and the operation of searching the user identification card can be performed at the moment. Specifically, the mobile terminal firstly turns off the power supply of the user identification card, then powers on the power supply of the user identification card, and resets the user identification card. Therefore, the operation of searching the user identification card is carried out when the acceleration of the mobile terminal is small, and the user identification card is easier to search.
In this embodiment of the present invention, the mobile terminal may be: a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
The searching method of the user identity identification card of the embodiment of the invention detects the first current acceleration of the mobile terminal; if the first current acceleration of the mobile terminal is larger than a first preset acceleration value, closing a user identity identification card module of the mobile terminal, and executing operation of searching the user identity identification card until the acceleration of the mobile terminal is detected to be smaller than the first preset acceleration. In the implementation of the invention, when the mobile terminal is in a scene that the acceleration is large and the mobile terminal is easy to drop the card, the mobile terminal closes the user identity identification card module without searching the user identity identification card.
Referring to fig. 2, the main difference between the present embodiment and the above-mentioned embodiment is that after the mobile terminal detects that no subscriber identity module card exists, the acceleration of the mobile terminal is detected. Fig. 2 is a flowchart of a method for searching a user identification card according to an embodiment of the present invention, as shown in fig. 2, including the following steps:
step 201, detecting whether the mobile terminal has the user identification card.
In this step, the mobile terminal may determine whether the user identification card exists in the mobile terminal by sending an instruction to the user identification card. If the mobile terminal cannot acquire the correct response message of the user identification card, it can be indicated that the mobile terminal does not have the user identification card, that is, the mobile terminal drops the card.
Step 202, detecting a first current acceleration of the mobile terminal if it is detected that the user identification card does not exist in the mobile terminal.
If the mobile terminal does not have the user identification card, the user identification card needs to be retrieved. In this step, a first current acceleration of the mobile terminal may be detected, so that the mobile terminal may search for the user identification card when the acceleration is small.
Wherein the first current acceleration of the mobile terminal may be understood as an acceleration at which the mobile terminal is moving. The mobile terminal may detect the current acceleration of the mobile terminal by using a gravity sensor, or may obtain the moving state of the mobile terminal by using a state machine register of the gravity sensor, so as to determine the current acceleration of the mobile terminal. For example, when the state machine register of the mobile terminal obtains that the current state of the mobile terminal is the free fall state, the acceleration value of the mobile terminal can be determined according to the state.
Step 203, if the first current acceleration of the mobile terminal is greater than a first preset acceleration value, closing the user identification card module of the mobile terminal, and executing an operation of searching the user identification card until the acceleration of the mobile terminal is detected to be less than the first preset acceleration.
The implementation manner of this step may refer to the description in step 102, and is not described herein again to avoid repetition.
Optionally, after the step of detecting the first current acceleration of the mobile terminal if it is detected that the user identification card does not exist in the mobile terminal, the method further includes: if the first current acceleration is smaller than or equal to the first preset acceleration value, the power supply of the user identity identification card is turned off; and resetting the user identification card module.
In this embodiment, if it is detected that the user identification card does not exist in the mobile terminal and the first current acceleration of the mobile terminal is less than or equal to the first preset acceleration value, it indicates that the mobile terminal is in a state where the acceleration is relatively stable, and the operation of searching for the user identification card may be performed. Specifically, the power supply of the user identification card is turned off, then the user identification card module is reset, that is, the user identification card is powered on, and signals such as clock, reset and data are sent to establish communication.
After the mobile terminal is subjected to the operation of searching for the user identification card, the mobile terminal can detect whether the user identification card exists in the mobile terminal again, if the user identification card does not exist in the mobile terminal, the mobile terminal can continue to execute the operation of searching for the user identification card, and then detect whether the user identification card exists in the mobile terminal again. If the mobile terminal still detects that the user identity identification card does not exist in the mobile terminal after the mobile terminal executes the card searching operation for the preset times, prompt information of 'abnormal card falling of the mobile terminal and need to be restarted' can be output, and then the mobile terminal is restarted.
Therefore, the mobile terminal can detect the acceleration of the mobile terminal in real time after the card is dropped, and when the acceleration is larger, the power supply of the user identification card of the mobile terminal is turned off, the data in the user identification card module is cleared, and the card searching is not carried out; when the acceleration of the mobile terminal is small, the user identification card is electrified, and the user identification card is reset to perform card searching operation, so that the reliability of searching the user identification card can be improved.
To facilitate understanding of the present embodiment, the present embodiment is illustrated below with reference to the drawings.
As shown in fig. 2-1, when the mobile terminal is in normal use, if a free fall event occurs, the mobile terminal detects whether a user identification card exists, that is, whether the card falls. If the mobile terminal is detected to be out of the card, the mobile terminal can detect the acceleration of the mobile terminal, and therefore whether the card is searched or not is determined according to the acceleration of the mobile terminal.
If the acceleration of the mobile terminal is smaller than the preset acceleration a, the state of the mobile terminal is stable, and the card searching operation can be performed. Specifically, the power supply of the user identification card is turned off, the power supply of the user identification card is powered on, and the user identification card is reset. And then, further judging whether the mobile terminal drops the card, if so, continuing to perform card searching operation until the user identity identification card is searched.
If the acceleration of the mobile terminal is greater than the preset acceleration a, the mobile terminal may be in an unstable state, and the user identification card module may be turned off, that is, the power supply of the user identification card is turned off, and data in the user identification card module is cleared. Then, the state of the mobile terminal continues to be detected, and the acceleration of the mobile terminal is detected. When the acceleration of the mobile terminal is detected to be smaller than the preset acceleration a, at the moment, the card searching operation can be carried out because the power supply of the user identity identification card is turned off.
According to the method for searching the user identity card, provided by the embodiment of the invention, if the mobile terminal is detected to have no user identity card, the current acceleration of the mobile terminal is detected, and if the current acceleration of the mobile terminal is larger, the user identity card module is closed and the card searching is not carried out. And if the current acceleration of the mobile terminal is smaller than the preset acceleration value, the mobile terminal carries out card searching operation. Therefore, the user identification card can be quickly retrieved, and the card retrieval reliability is improved.
Referring to fig. 3, the present embodiment is mainly different from the above embodiments in that whether a user identification card exists in the mobile terminal is detected when the acceleration of the mobile terminal is detected to be less than or equal to a first preset acceleration value. Fig. 3 is a flowchart of a method for searching a user identification card according to an embodiment of the present invention, as shown in fig. 3, including the following steps:
step 301, detecting a first current acceleration of the mobile terminal.
The implementation manner of this step may refer to the description in step 101, and is not described herein again to avoid repetition.
Step 302, if the first current acceleration of the mobile terminal is less than or equal to the first preset acceleration value, detecting whether the user identity identification card exists in the mobile terminal.
If the acceleration of the mobile terminal is smaller than or equal to the first preset acceleration value, the mobile terminal is in a scene with stable acceleration, and at the moment, whether the user identity identification card exists in the mobile terminal is detected. Specifically, the mobile terminal may determine whether the mobile terminal has the subscriber identity card by sending an instruction to the subscriber identity card. If the mobile terminal cannot acquire the correct response message of the user identification card, it can be indicated that the mobile terminal does not have the user identification card, that is, the mobile terminal drops the card.
Step 303, if the user identification card does not exist in the mobile terminal, turning off a power supply of the user identification card.
If the mobile terminal does not have the user identification card and the acceleration of the mobile terminal is small, the operation of searching the user identification card can be carried out. Specifically, the power of the user id card may be turned off first.
And step 304, resetting the user identity identification card module.
In this step, after the power of the user id card is turned off, the power of the user id card may be powered on, and the clock, the reset, the data line, and the like may be reset. Therefore, when the acceleration of the mobile terminal is small, the card searching operation is carried out, and the user identification card is easier to search.
Optionally, after the step of turning off the user identification card module of the mobile terminal if the first current acceleration of the mobile terminal is greater than the first preset acceleration value, the method further includes: detecting whether a second current acceleration of the mobile terminal is smaller than a second preset acceleration value, wherein the second preset acceleration value is smaller than the first preset acceleration value; and if the second current acceleration of the mobile terminal is smaller than the second preset acceleration value, resetting the user identity identification card module.
In this embodiment, the acceleration of the mobile terminal may continue to be detected after the user identification card module of the mobile terminal is turned off. When the acceleration of the mobile terminal is reduced until the second current acceleration of the mobile terminal is detected to be smaller than the second preset acceleration value, the mobile terminal is in a relatively stable acceleration scene, and at the moment, the card searching operation can be carried out, namely, the user identity identification card module is reset.
After the card searching operation is performed on the mobile terminal, the mobile terminal may detect whether the user identification card exists in the mobile terminal again, and if the user identification card does not exist in the mobile terminal, the card searching may be performed for multiple times until the card is searched, or the mobile terminal is restarted after the card searching is performed for a preset number of times.
Therefore, the mobile terminal can detect the acceleration of the mobile terminal in real time after the card is dropped, and when the acceleration is larger, the power supply of the user identification card of the mobile terminal is turned off, the data in the user identification card module is cleared, and the card searching is not carried out; when the acceleration of the mobile terminal is small, the user identification card is electrified, and the user identification card is reset to perform card searching operation, so that the reliability of searching the user identification card can be improved.
It is to be noted that this embodiment can also be applied to the embodiment corresponding to fig. 1, and the same advantageous effects are achieved.
To facilitate understanding of the present embodiment, the present embodiment is illustrated below with reference to the drawings.
As shown in fig. 3-1, when the mobile terminal is in normal use, if a drop event occurs, the mobile terminal detects an acceleration of the mobile terminal, and if the acceleration of the mobile terminal is greater than a preset acceleration b, the mobile terminal may be in an unstable moving state, the mobile terminal turns off the user identification card module, that is, turns off the power supply of the user identification card, and clears data in the user identification card module. And then, continuously detecting the acceleration of the mobile terminal until the acceleration of the mobile terminal is detected to be smaller than a preset acceleration c, wherein c is a value smaller than b, starting card searching operation, namely electrifying the power supply of the user identity identification card, and resetting the user identity identification card.
In addition, if the acceleration of the mobile terminal is detected to be smaller than or equal to the preset acceleration b, the mobile terminal further detects whether the mobile terminal drops the card, and if the mobile terminal drops the card, the power supply of the user identity identification card is turned off, and the card searching operation is carried out. And if the user identity identification card is not retrieved after the card is retrieved for the preset times N, restarting the mobile terminal.
In this embodiment, when the acceleration of the mobile terminal is detected to be large, the power supply of the user identification card of the mobile terminal is turned off, and the data of the user identification card module is cleared. Therefore, the situation that the mobile terminal searches the card in a state of unstable acceleration and is difficult to search the user identification card can be avoided. When the acceleration of the mobile terminal is detected to be small, if the mobile terminal does not have the user identity identification card, the card is searched, and the card searching effect can be improved.
Referring to fig. 4, fig. 4 is a structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 4, the mobile terminal 400 includes: a first detection module 401 and a first shutdown module 402.
A first detecting module 401, configured to detect a first current acceleration of the mobile terminal;
a first closing module 402, configured to close the user identification card module of the mobile terminal if the first detection module detects that the first current acceleration of the mobile terminal is greater than a first preset acceleration value, and execute an operation of searching for the user identification card until the acceleration of the mobile terminal is detected to be less than the first preset acceleration.
Optionally, as shown in fig. 5, the mobile terminal further includes:
a second detecting module 403, configured to detect whether the mobile terminal has the subscriber identity module card;
the first detecting module 401 is specifically configured to detect a first current acceleration of the mobile terminal if the second detecting module detects that the mobile terminal does not have the subscriber identity module.
Optionally, as shown in fig. 6, the mobile terminal further includes:
a second turning-off module 404, configured to turn off a power supply of the user identification card if the first current acceleration is less than or equal to the first preset acceleration value;
a first resetting module 405, configured to reset the sim card module.
Optionally, as shown in fig. 7, the mobile terminal further includes:
a third detecting module 406, configured to detect whether the user identity card exists in the mobile terminal if a first current acceleration of the mobile terminal is less than or equal to the first preset acceleration value;
a third closing module 407, configured to close a power supply of the user identity card if the third detection module detects that the user identity card does not exist in the mobile terminal;
and a second resetting module 408, configured to reset the sim card module.
Optionally, as shown in fig. 8, the mobile terminal further includes:
a fourth detecting module 409, configured to detect whether a second current acceleration of the mobile terminal is smaller than a second preset acceleration value, where the second preset acceleration value is smaller than the first preset acceleration value;
a third resetting module 410, configured to reset the user identification card module if the fourth detecting module 409 detects that the second current acceleration of the mobile terminal is smaller than the second preset acceleration value.
The mobile terminal 400 can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
According to the mobile terminal 400 of the embodiment of the invention, when the mobile terminal is in a scene that the acceleration is large and the mobile terminal is easy to drop the card, the mobile terminal closes the user identity identification card module without searching the user identity identification card, and when the acceleration of the mobile terminal is small, the user identity identification card is searched, so that the effect of searching the user identity identification card is good.
Fig. 9 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and a power supply 911. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 9 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted mobile terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 910 is configured to detect a first current acceleration of the mobile terminal; if the first current acceleration of the mobile terminal is larger than a first preset acceleration value, closing a user identity identification card module of the mobile terminal, and executing operation of searching the user identity identification card until the acceleration of the mobile terminal is detected to be smaller than the first preset acceleration.
Therefore, when the mobile terminal is in a scene that the acceleration is large and the mobile terminal is easy to drop the card, the mobile terminal closes the user identity identification card module without searching the user identity identification card, and when the acceleration of the mobile terminal is small, the user identity identification card is searched, so that the effect of searching the user identity identification card is good.
Optionally, the processor 910 is further configured to detect whether the mobile terminal has the subscriber identity module card; and if the mobile terminal is detected to be not provided with the user identity identification card, detecting a first current acceleration of the mobile terminal.
Optionally, the processor 910 is further configured to, if the first current acceleration is less than or equal to the first preset acceleration value, turn off a power supply of the user identification card; and resetting the user identification card module.
Optionally, the processor 910 is further configured to, if a first current acceleration of the mobile terminal is smaller than or equal to the first preset acceleration value, detect whether the user identity card exists in the mobile terminal; if the mobile terminal does not have the user identity identification card, the power supply of the user identity identification card is turned off; and resetting the user identification card module.
Optionally, the processor 910 is further configured to detect whether a second current acceleration of the mobile terminal is smaller than a second preset acceleration value, where the second preset acceleration value is smaller than the first preset acceleration value; and if the second current acceleration of the mobile terminal is smaller than the second preset acceleration value, resetting the user identity identification card module.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 901 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 910; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 901 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 901 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 902, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 903 may convert audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output as sound. Also, the audio output unit 903 may also provide audio output related to a specific function performed by the mobile terminal 900 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
The input unit 904 is used to receive audio or video signals. The input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics processor 9041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 906. The image frames processed by the graphic processor 9041 may be stored in the memory 909 (or other storage medium) or transmitted via the radio frequency unit 901 or the network module 902. The microphone 9042 can receive sounds and can process such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 901 in case of the phone call mode.
The mobile terminal 900 also includes at least one sensor 905, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 9061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 9061 and/or backlight when the mobile terminal 900 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 905 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described in detail herein.
The display unit 906 is used to display information input by the user or information provided to the user. The Display unit 906 may include a Display panel 9061, and the Display panel 9061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 907 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 9071 (e.g., operations by a user on or near the touch panel 9071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 9071 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 910, receives a command from the processor 910, and executes the command. In addition, the touch panel 9071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 907 may include other input devices 9072 in addition to the touch panel 9071. Specifically, the other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, and the like), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 9071 may be overlaid on the display panel 9061, and when the touch panel 9071 detects a touch operation on or near the touch panel 9071, the touch panel is transmitted to the processor 910 to determine the type of the touch event, and then the processor 910 provides a corresponding visual output on the display panel 9061 according to the type of the touch event. Although in fig. 9, the touch panel 9071 and the display panel 9061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 9071 and the display panel 9061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 908 is an interface through which an external device is connected to the mobile terminal 900. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 908 may be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within the mobile terminal 900 or may be used to transmit data between the mobile terminal 900 and external devices.
The memory 909 may be used to store software programs as well as various data. The memory 909 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 for 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 909 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 processor 910 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 909 and calling data stored in the memory 909, thereby performing overall monitoring of the mobile terminal. Processor 910 may include one or more processing units; preferably, the processor 910 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The mobile terminal 900 may also include a power supply 911 (e.g., a battery) for powering the various components, and preferably, the power supply 911 is logically connected to the processor 910 through a power management system that provides power management functions to manage charging, discharging, and power consumption.
In addition, the mobile terminal 900 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 910, a memory 909, and a computer program stored in the memory 909 and capable of running on the processor 910, where the computer program, when executed by the processor 910, implements each process in the above-mentioned method for searching for a user identity card, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned method for searching for a user identity card, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a mobile terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A method for searching a user identification card is applied to a mobile terminal provided with the user identification card, and is characterized by comprising the following steps:
detecting a first current acceleration of the mobile terminal;
if the first current acceleration of the mobile terminal is larger than a first preset acceleration value, closing a user identity identification card module of the mobile terminal, and executing operation of searching the user identity identification card until the acceleration of the mobile terminal is detected to be smaller than the first preset acceleration;
before the step of detecting a first current acceleration of the mobile terminal, the method further comprises:
detecting whether the mobile terminal has the user identity identification card or not;
the step of detecting a first current acceleration of the mobile terminal includes:
if the mobile terminal is detected to be not provided with the user identity identification card, detecting a first current acceleration of the mobile terminal;
after the step of detecting the first current acceleration of the mobile terminal if it is detected that the user identification card does not exist in the mobile terminal, the method further includes:
if the first current acceleration is smaller than or equal to the first preset acceleration value, the power supply of the user identity identification card is turned off;
and resetting the user identification card module.
2. The method according to claim 1, characterized in that after the step of detecting a first current acceleration of the mobile terminal, the method further comprises:
if the first current acceleration of the mobile terminal is smaller than or equal to the first preset acceleration value, detecting whether the user identity identification card exists in the mobile terminal;
if the mobile terminal does not have the user identity identification card, the power supply of the user identity identification card is turned off;
and resetting the user identification card module.
3. The method according to claim 1, wherein after the step of turning off the SIM card module of the mobile terminal if the first current acceleration of the mobile terminal is greater than the first preset acceleration value, the method further comprises:
detecting whether a second current acceleration of the mobile terminal is smaller than a second preset acceleration value, wherein the second preset acceleration value is smaller than the first preset acceleration value;
and if the second current acceleration of the mobile terminal is smaller than the second preset acceleration value, resetting the user identity identification card module.
4. A mobile terminal is provided with a user identification card, and is characterized by comprising:
the first detection module is used for detecting a first current acceleration of the mobile terminal;
the first closing module is used for closing the user identity identification card module of the mobile terminal if the first detection module detects that the first current acceleration of the mobile terminal is greater than a first preset acceleration value, and executing the operation of searching the user identity identification card until the acceleration of the mobile terminal is detected to be less than the first preset acceleration;
the second detection module is used for detecting whether the mobile terminal has the user identity identification card or not;
the first detection module is specifically configured to detect a first current acceleration of the mobile terminal if the second detection module detects that the mobile terminal does not have the subscriber identity module;
the second closing module is used for closing the power supply of the user identity identification card if the first current acceleration is smaller than or equal to the first preset acceleration value;
and the first resetting module is used for resetting the user identity identification card module.
5. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
the third detection module is used for detecting whether the user identity identification card exists in the mobile terminal or not if the first current acceleration of the mobile terminal is smaller than or equal to the first preset acceleration value;
a third closing module, configured to close a power supply of the user identification card if the third detection module detects that the user identification card does not exist in the mobile terminal;
and the second resetting module is used for resetting the user identity identification card module.
6. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
the fourth detection module is used for detecting whether a second current acceleration of the mobile terminal is smaller than a second preset acceleration value, wherein the second preset acceleration value is smaller than the first preset acceleration value;
and the third resetting module is used for resetting the user identity identification card module if the fourth detection module detects that the second current acceleration of the mobile terminal is smaller than the second preset acceleration value.
7. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps in the method of finding a subscriber identity card according to any of claims 1 to 3 when executing the computer program.
8. 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 for searching a subscriber identity card according to any one of claims 1 to 3.
CN201810170825.6A 2018-03-01 2018-03-01 User identity identification card searching method and mobile terminal Active CN108377301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810170825.6A CN108377301B (en) 2018-03-01 2018-03-01 User identity identification card searching method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810170825.6A CN108377301B (en) 2018-03-01 2018-03-01 User identity identification card searching method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108377301A CN108377301A (en) 2018-08-07
CN108377301B true CN108377301B (en) 2020-11-17

Family

ID=63018235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810170825.6A Active CN108377301B (en) 2018-03-01 2018-03-01 User identity identification card searching method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108377301B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201123009Y (en) * 2007-12-07 2008-09-24 北京英腾科技开发有限公司 Anti-dropping mobile phone
CN103037546A (en) * 2011-10-10 2013-04-10 希姆通信息技术(上海)有限公司 Mobile terminal and method for setting up communication between mobile terminal and subscribe identity module (SIM) card
CN104580695B (en) * 2014-12-08 2017-02-01 深圳市广和通无线股份有限公司 Card missing recovery method for SIM (subscriber identity module) card

Also Published As

Publication number Publication date
CN108377301A (en) 2018-08-07

Similar Documents

Publication Publication Date Title
CN108845853B (en) Application program starting method and mobile terminal
CN109343759B (en) Screen-turning display control method and terminal
CN109078319B (en) Game interface display method and terminal
CN108279948B (en) Application program starting method and mobile terminal
CN108135033B (en) Bluetooth connection method and mobile terminal
CN109240577B (en) Screen capturing method and terminal
CN108494030B (en) Wireless charging method, terminal and transmitting terminal equipment
CN110072012B (en) Reminding method for screen state switching and mobile terminal
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN108900695B (en) Display processing method, terminal equipment and computer readable storage medium
CN108196753B (en) Interface switching method and mobile terminal
CN110096203B (en) Screenshot method and mobile terminal
CN109523253B (en) Payment method and device
CN112596625A (en) Electronic equipment, display control method and device
CN109544172B (en) Display method and terminal equipment
CN109639738B (en) Voice data transmission method and terminal equipment
CN110825474A (en) Interface display method and device and electronic equipment
CN109067979B (en) Prompting method and mobile terminal
CN108924413B (en) Shooting method and mobile terminal
CN108270928B (en) Voice recognition method and mobile terminal
CN108089935B (en) Application program management method and mobile terminal
CN108462794B (en) Information display method and mobile terminal
CN108307048B (en) Message output method and device and mobile terminal
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN107729100B (en) Interface display control method and 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
GR01 Patent grant
GR01 Patent grant