CN108055377B - T card detection method and mobile terminal - Google Patents

T card detection method and mobile terminal Download PDF

Info

Publication number
CN108055377B
CN108055377B CN201711116127.XA CN201711116127A CN108055377B CN 108055377 B CN108055377 B CN 108055377B CN 201711116127 A CN201711116127 A CN 201711116127A CN 108055377 B CN108055377 B CN 108055377B
Authority
CN
China
Prior art keywords
card
subsystem
sim card
sim
response
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
CN201711116127.XA
Other languages
Chinese (zh)
Other versions
CN108055377A (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 CN201711116127.XA priority Critical patent/CN108055377B/en
Publication of CN108055377A publication Critical patent/CN108055377A/en
Application granted granted Critical
Publication of CN108055377B publication Critical patent/CN108055377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3816Mechanical arrangements for accommodating identification devices, e.g. cards or chips; with connectors for programming identification devices

Abstract

The embodiment of the invention provides a T card detection method and a mobile terminal, and relates to the technical field of mobile terminals. The embodiment of the invention obtains the diagnosis signal sent by the SIM card subsystem, wherein the diagnosis signal is sent when the SIM card subsystem does not receive the card reading response; detecting the T card according to the diagnosis signal; and determining to display the existence of the T card or display that the T card is removed according to the detection result of the T card. Therefore, the information of whether the T card exists or not can be displayed more accurately, and the use experience effect of a user is improved.

Description

T card detection method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a T card detection method and a mobile terminal.
Background
With the development of mobile terminal technology, a T-Flash card (also called microSD) is widely used in terminal devices such as mobile phones as a storage device. However, the T-card seat of the intermediate connector for communication between the T-card and the mobile phone occupies a large space, which seriously affects the layout of a PCB (Printed Circuit Board) motherboard of the mobile phone, so the industry generally integrates the T-card seat and the SIM-card seat together, designs to share the same card seat, and integrates the SIM-card (subscriber identity Module) and the T-card into one, which becomes a structural form of one-to-three, three-to-three, and the like.
Because the T-card and the SIM card are plug-in peripheral configuration components that can be replaced by the user, the system needs to detect whether the card is inserted in the mobile phone, and starts working when detecting that the card is present, and stops working when the card is absent.
At present, a detection mechanism for detecting whether a card exists is shown in fig. 1, because the T card and the SIM card have different working mechanisms, and T card detection consumes very much power, the T card does not perform polling detection in the industry, and only relies on data of an interrupt pin as a basis for determining whether the T card exists, however, when an interrupt is not triggered due to a mechanical fault, the T card cannot obtain a signal prompt of the interrupt pin, so that a problem that the T card still displays a working state (shown by a dotted line in fig. 1) occurs.
Therefore, in the conventional T card detection scheme, if a failure occurs during card pulling to cause a failure in triggering interruption, the T card is already pulled out, but the system still falsely displays the problem of the T card, so that the T card is inconvenient to use by a user, and the user experience is very poor.
Disclosure of Invention
The embodiment of the invention provides a T card detection method and a mobile terminal, and aims to solve the problem that in the prior art, a T card is displayed wrongly due to mechanical failure.
In order to solve the technical problem, the invention is realized as follows: a T card detection method is applied to a mobile terminal, and comprises the following steps:
acquiring a diagnosis signal sent by an SIM card subsystem, wherein the diagnosis signal is sent when the SIM card subsystem does not receive a card reading response;
detecting the T card according to the diagnosis signal;
and determining to display the existence of the T card or display the removal of the T card according to the detection result of the T card.
In a first aspect, an embodiment of the present invention provides a mobile terminal, including:
the SIM card subsystem is used for reading a card and sending a diagnosis signal to the SIM card subsystem;
the T card detection module is used for detecting the T card according to the diagnosis signal;
and the display module is used for determining and displaying the existence or removal of the T card according to the detection result of the T card.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the detection method according to the present invention.
In a third aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the detection method according to the present invention.
In the embodiment of the invention, the diagnosis signal of the SIM card is sent to the T card system to detect whether the T card exists or not, so that the false alarm caused by mechanical faults is avoided, the accuracy and reliability of the display information of the T card are ensured, and the use experience effect of a user is improved.
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 labor.
Fig. 1 shows a flow chart of a conventional T-card and SIM card detection method;
fig. 2 is a flowchart illustrating a T-card detection method according to a first embodiment of the present invention;
FIG. 3 is a flow chart of another T-card detection method according to the first embodiment of the invention;
fig. 4 shows a flowchart of a T-card and SIM card detection method according to a second embodiment of the present invention;
fig. 5 is a block diagram illustrating a mobile terminal according to a third embodiment of the present invention;
fig. 6 is a block diagram showing another mobile terminal according to a third embodiment of the present invention;
fig. 7 is a schematic diagram showing a hardware configuration of a mobile terminal according to a fourth 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.
Example one
Referring to fig. 2, a flowchart of a T card detection method according to a first embodiment of the present invention is shown, which may specifically include the following steps:
s201, obtaining a diagnosis signal sent by the SIM card subsystem, wherein the diagnosis signal is sent when the SIM card subsystem does not receive a card reading response.
In the embodiment of the invention, the diagnostic signal from the SIM card subsystem is acquired through the T card subsystem. In order to ensure that the SIM card is held on line continuously, real-time information interaction can be carried out between the SIM card and the SIM card clip system. When the SIM card is disconnected, the SIM card system sends a card reading request to the SIM card, and if the card reading response is not received, the T card subsystem receives a corresponding diagnosis signal.
S202, detecting the T card according to the diagnosis signal.
In the embodiment of the invention, the T card subsystem can know that the SIM card system can not read the data in the SIM card according to the received diagnosis signal, so that the T card subsystem is triggered to detect the T card according to the diagnosis signal.
S203, determining to display the existence of the T card or display the removal of the T card according to the detection result of the T card.
In the embodiment of the invention, after the T card is detected by the T card subsystem, a corresponding detection result is generated, and different detection results correspond to the information of the existence of different T cards. According to the detection result, the T-card subsystem can judge whether the T-card is removed or not and correspondingly display that the T-card exists or that the T-card is removed.
In the embodiment of the invention, the diagnosis signal of the SIM card is sent to the T card subsystem, so that the misinformation caused by mechanical faults is avoided, the accuracy and reliability of the display information of the T card are ensured, and the use experience effect of a user is improved.
Example two
Referring to fig. 3, a flowchart of a T card detection method according to a second embodiment of the present invention is shown, which specifically includes the following steps:
s301, determining whether information interaction between the SIM card subsystem and the SIM card is invalid or not through the SIM card subsystem according to a first time interval. If not, go to step S302; if it is invalid, the process proceeds to step S303.
In the embodiment of the invention, before the diagnostic signal sent by the SIM card subsystem is acquired, the SIM card subsystem determines whether the real-time information interaction between the SIM card subsystem and the SIM card is still effective according to the first time interval of once interaction every 28 seconds.
For a more clear description of the embodiments of the present invention, reference is made to fig. 4 for a detailed description. For the SIM card in work, when the SIM card needs to be pulled out, under the normal condition, the card support triggers the interrupt pin, the level of the interrupt pin is changed from low to high (or from high to low), and the system repeatedly reads data of about 2 seconds for the SIM card so as to judge that the SIM card is powered off. When the fault causes no trigger interrupt, step S401 is performed, and the SIM card first recognizes that the information interaction is invalid due to the card pulling action (because the SIM card always performs data interaction in real time, the card pulling causes the SIM card to be disconnected from the system, and the information interaction cannot be performed).
S302, if the information interaction between the SIM card subsystem and the SIM card is not invalid, no processing is carried out, and the normal communication between the SIM card subsystem and the SIM card is kept.
And S303, if the information interaction between the SIM card subsystem and the SIM card is invalid, sending a second card reading request to the SIM card through the SIM card subsystem according to a second time interval.
In the embodiment of the invention, if the real-time information interaction between the SIM card subsystem and the SIM card fails, the terminal operating system considers that the SIM card is disconnected, but cannot accurately judge whether the SIM card is still in the card slot, because the card is possibly pulled out and the interruption is not successfully triggered due to mechanical failure, or the card is not pulled out at all when the card is blocked and the interruption is not triggered. Therefore, the SIM card subsystem sends a second card reading request to the SIM card according to a second time interval of reading the card once in 1 second, and confirms whether the SIM card still exists according to whether a second response is received or not. Referring to fig. 4, when the SIM card real-time information interaction fails, step S402 is performed, the system performs the card searching again, the specific process of the card searching is as described in step S303, and step S304 is performed after the second card reading request is sent.
S304, if the number of times that the SIM card subsystem does not receive the second response reaches a set threshold, sending a diagnosis signal to the T card subsystem, and not sending the diagnosis signal until the SIM card subsystem receives the second response next time.
In the embodiment of the invention, when the SIM card subsystem does not receive the second response, the SIM card is considered to be pulled out, and in order to confirm whether the T card still exists, a diagnostic signal corresponding to the card reading failure result needs to be sent to the T card subsystem to detect the T card. If the diagnostic signal is not sent to the T-card system, the T-card presence may still be falsely indicated if the card holder has indeed been pulled out but the T-card system does not know this information. When the SIM card subsystem sends the second card reading request, a corresponding threshold may be set for the number of times of receiving the second response, and the threshold is determined according to the hardware parameters, performance, and the like of the terminal, which is not limited in the present invention. When the number of times that the SIM card subsystem does not receive the second response reaches the set threshold, the SIM card is considered to be actually absent, and the information indicated by the diagnosis signal at the moment is the information that the SIM card is absent. The diagnostic signal is not sent until the SIM card subsystem receives the second response next time, because for the T card subsystem, the diagnostic signal does not need to be continuously received, unnecessary power consumption is increased, and the T card needs to be detected as long as the SIM card does not exist after the diagnostic signal is received once. Thus, it can be ensured that the detection of the T-card is completed with lower power consumption.
With reference to fig. 4, the detection mechanism for the SIM card and the T card when they are inserted is as follows: when the terminal does not have the SIM card, after a user executes card inserting operation, the card support triggers an interrupt pin, the level of the interrupt pin is changed from high to low and reported to the system, and at the moment, for the T card, if the system can read the T card information and judges that the T card is electrified to work, the existence of the T card is displayed; if the system cannot read the T card information, judging that the T card is not electrified and is not effectively inserted, and displaying that the T card is removed; for the SIM card, the system carries out repeated polling on the interrupt pin for about 2 seconds, if the interrupt is pulled up all the time, namely, the high level state is kept, the SIM card is not electrified, and the SIM card is not effectively inserted; if the interruption is pulled down all the time, namely the original high level is changed into the low level, the power-on work of the SIM card is indicated, and further, if the system can not read the data of the SIM card in 960 milliseconds, the power-off work of the SIM card is indicated, and the SIM card does not work. For the SIM card in work, when the SIM card needs to be pulled out, under normal conditions, the card support triggers an interrupt pin, the level of the interrupt pin is changed from low to high, and the system carries out repeated data reading on the SIM card for about 2 seconds so as to judge that the SIM card is powered off;
when no trigger interrupt occurs due to a mechanical failure, as in step S401, the SIM real-time information interaction fails (because the SIM card always performs data interaction in real time, and the SIM card is disconnected from the system due to card pulling, so that information interaction cannot be performed), and then as in step S402, the system searches for the card again. After the system finishes finding the card, if data is returned in step S403, a conclusion that the SIM card is powered off is obtained; it is also possible that if no data is returned as in step S404, not only the SIM card is not present, but also step S405 is executed, where a diagnostic signal sent by the SIM card subsystem is received by the T card subsystem. After the SIM card subsystem sends the diagnostic signal, step S304 is performed, and the process proceeds to step S305.
S305, obtaining a diagnosis signal sent by the SIM card subsystem, wherein the diagnosis signal is sent when the SIM card subsystem does not receive a card reading response.
In the embodiment of the invention, the diagnostic signal from the SIM card subsystem is acquired through the T card subsystem. In order to ensure that the SIM card is held on line continuously, real-time information interaction can be carried out between the SIM card and the SIM card clip system. When the SIM card is disconnected, the SIM card system sends a card reading request to the SIM card, and if the card reading response is not received, the T card subsystem receives a corresponding diagnosis signal. Step S306 is further performed according to the diagnosis signal.
S306, sending a first card reading request to the T card through the T card sub-system according to the diagnosis signal.
In the embodiment of the invention, the T card subsystem can know that the SIM card system can not read the data in the SIM card according to the received diagnosis signal, so that the T card subsystem is triggered to send a first card reading request to the T card according to the diagnosis signal to read the data of the T card so as to detect the T card.
With reference to fig. 4, after receiving the diagnostic signal, the T-card subsystem proceeds to step S306, and performs information interaction on the T-card, where the specific information interaction process is referred to as S306, and according to the result of the information interaction, the contents of step S307 or step S308 are respectively executed.
S307, if the T card subsystem receives a first response corresponding to the first card reading request, the T card is displayed to exist.
S308, if the T card sub-system does not receive the first response corresponding to the first card reading request, the T card is removed.
In the embodiment of the invention, after the T card system detects the T card, a corresponding detection result is generated, and according to the detection result, the T card system can judge whether the T card is removed and display correspondingly. And if the T card subsystem receives a first response corresponding to the first card reading request, the T card is considered to exist, response data can be returned, and at the moment, the existence of the T card is displayed. If the T-card subsystem does not receive the first response, the T-card is not considered to exist, and response data cannot be returned, and at the moment, the information that the T-card is removed is displayed.
Referring to fig. 4, in step S407, if the T card data is normal, it indicates that the T card reading by the T card subsystem is successful, and accordingly, in step S408, the system displays that the T card exists; in step S409, if no data is returned from the T-card, it indicates that the T-card reading by the T-card subsystem failed, and accordingly, in step S410, the system displays that the T-card is removed.
In the T card detection process, the SIM card system and the T card system are subsystems belonging to an operating system of the mobile terminal, and the SIM card system and the T card system are uniformly coordinated and managed by the operating system, so that when the information interaction of the SIM card fails, a corresponding diagnosis signal is transmitted to the T card system to detect the T card, the system resource is effectively saved, and the power consumption of the T card detection is further reduced.
In the embodiment of the invention, the diagnosis signal of the SIM card is sent to the T-card holder system, the diagnosis signal triggers the T-card holder system to read the card at one time instead of frequently detecting the SIM card by using a polling means, so that the T-card is detected with low power consumption, in addition, false alarm caused by mechanical failure is avoided, the accuracy and reliability of the T-card display information are ensured, and the use experience effect of a user is improved.
EXAMPLE III
Referring to fig. 5, a block diagram of a mobile terminal according to a third embodiment of the present invention is shown.
The mobile terminal 400 includes: a signal acquisition module 401, a T-card detection module 402 and a display module 403.
The signal acquisition module 401 is configured to acquire a diagnostic signal sent by the SIM card holding system, where the diagnostic signal is sent when the SIM card holding system does not receive a card reading response;
a T card detection module 402, configured to detect a T card according to the diagnostic signal;
a display module 403, configured to determine to display that the T card exists or to display that the T card is removed according to a detection result of the T card.
Referring to fig. 6, a block diagram of another mobile terminal according to a third embodiment of the present invention is shown.
On the basis of fig. 5, optionally, the T-card detecting module 402 may include: and the first card reading request sub-module 4021 is configured to control the T-card subsystem to send a first card reading request to the T-card according to the diagnosis signal.
Optionally, the display module 403 may include: a first display sub-module 4031, configured to display that the T card exists if the T card subsystem receives a first response corresponding to the first card reading request; a second display sub-module 4032, configured to display that the T-card is removed if the T-card subsystem does not receive the first response corresponding to the first card reading request.
Optionally, the mobile terminal 400 further includes: a SIM card information interaction detection module 404, a second card reading request module 405 and a signal sending module 406.
The SIM card information interaction detecting module 404 is configured to determine, by the SIM card holding system, whether information interaction between the SIM card holding system and the SIM card is invalid according to a first time interval;
a second card reading request module 405, configured to send a second card reading request to the SIM card through the SIM card subsystem according to a second time interval if information interaction between the SIM card subsystem and the SIM card is invalid;
a signal sending module 406, configured to send a diagnostic signal to the T-card subsystem if the SIM-card subsystem does not receive the second response corresponding to the second card reading request.
Optionally, the signal sending module 406 may include: a threshold detection sub-module 4061, configured to send a diagnostic signal to the T-card subsystem if the number of times that the SIM-card subsystem does not receive the second response reaches a set threshold, and no longer send the diagnostic signal until the next time that the SIM-card subsystem receives the second response.
The mobile terminal provided in the embodiment of the present invention can implement each process of the method steps in fig. 2 to fig. 4, and is not described again to avoid repetition.
In the embodiment of the invention, the diagnosis signal of the SIM card is sent to the T-card subsystem, instead of detecting the T-card by using a polling means, so that the T-card is detected with low power consumption, the false alarm caused by mechanical failure is avoided, the accuracy and reliability of the information displayed by the T-card are ensured, and the use experience effect of a user is improved.
Example four
Referring to fig. 7, a hardware configuration diagram of a mobile terminal according to a fourth embodiment of the present invention is shown.
The mobile terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 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 terminal, a wearable device, a pedometer, and the like.
The processor 610 is configured to acquire a diagnostic signal sent by the SIM card subsystem, where the diagnostic signal is sent when the SIM card subsystem does not receive a card reading response; detecting the T card according to the diagnosis signal; and determining to display the existence of the T card or display the removal of the T card according to the detection result of the T card.
In the embodiment of the invention, the diagnosis signal of the SIM card is sent to the T-card subsystem, instead of detecting the T-card by using a polling means, so that the T-card is detected with low power consumption, the false alarm caused by mechanical failure is avoided, the accuracy and reliability of the information displayed by the T-card are ensured, and the use experience effect of a user is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 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. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the mobile terminal 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (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 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound 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 601 in case of the phone call mode.
The mobile terminal 600 also includes at least one sensor 605, 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 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the mobile terminal 600 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 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 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 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of 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 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 608 is an interface through which an external device is connected to the mobile terminal 600. 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 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 600 or may be used to transmit data between the mobile terminal 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage 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 609 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 610 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 operating or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby integrally monitoring the mobile terminal. Processor 610 may include one or more processing units; preferably, the processor 610 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 will be appreciated that the modem processor described above may not be integrated into the processor 610.
The mobile terminal 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 is logically connected to the processor 610 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 600 includes some functional modules that are not shown, and are not described in detail herein.
EXAMPLE five
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement each process of the foregoing detection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
EXAMPLE six
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 the processes of the detection method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. 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 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 (10)

1. A T card detection method is applied to a mobile terminal, and is characterized by comprising the following steps:
acquiring a diagnosis signal sent by an SIM card subsystem, wherein the diagnosis signal is sent when the SIM card subsystem does not receive a card reading response;
detecting the T card according to the diagnosis signal;
determining to display the existence of the T card or display the removal of the T card according to the detection result of the T card;
before the step of acquiring the diagnostic signal sent by the SIM card subsystem, the method further includes:
determining whether information interaction between the SIM card subsystem and the SIM card is invalid or not through the SIM card subsystem according to a first time interval;
if the information interaction between the SIM card subsystem and the SIM card is invalid, sending a second card reading request to the SIM card through the SIM card subsystem according to a second time interval;
and if the SIM card subsystem does not receive a second response corresponding to the second card reading request, sending a diagnosis signal to the T card subsystem, wherein the card reading response is the second response.
2. The T-card detection method of claim 1, wherein the step of detecting the T-card according to the diagnostic signal comprises:
and controlling the T card subsystem to send a first card reading request to the T card according to the diagnosis signal.
3. The T-card detection method according to claim 2, wherein the step of determining to display the presence of the T-card or to display the removal of the T-card according to the detection result of the T-card comprises:
if the T card subsystem receives a first response corresponding to the first card reading request, displaying that the T card exists;
and if the T-card subsystem does not receive a first response corresponding to the first card reading request, displaying that the T-card is removed.
4. The T-card detecting method according to claim 1, wherein the step of sending a diagnostic signal to the T-card subsystem if the SIM-card subsystem does not receive a second response corresponding to the second card reading request comprises:
and if the number of times that the SIM card subsystem does not receive the second response reaches a set threshold value, sending a diagnosis signal to the T card subsystem, and not sending the diagnosis signal until the SIM card subsystem receives the second response next time.
5. A mobile terminal, comprising:
the SIM card subsystem is used for reading a card and sending a diagnosis signal to the SIM card subsystem;
the T card detection module is used for detecting the T card according to the diagnosis signal;
the display module is used for determining and displaying the existence of the T card or displaying the removal of the T card according to the detection result of the T card;
the mobile terminal further includes:
the SIM card information interaction detection module is used for determining whether the information interaction between the SIM card subsystem and the SIM card is invalid or not according to a first time interval by the SIM card subsystem;
the second card reading request module is used for sending a second card reading request to the SIM card through the SIM card subsystem according to a second time interval if the information interaction between the SIM card subsystem and the SIM card is invalid;
and the signal sending module is used for sending a diagnosis signal to the T card sub-system if the SIM card sub-system does not receive a second response corresponding to the second card reading request, wherein the card reading response is the second response.
6. The mobile terminal of claim 5, wherein the T-card detection module comprises:
and the first card reading request submodule is used for controlling the T card subsystem to send a first card reading request to the T card according to the diagnosis signal.
7. The mobile terminal of claim 6, wherein the display module comprises:
the first display submodule is used for displaying that the T card exists if the T card subsystem receives a first response corresponding to the first card reading request;
and the second display sub-module is used for displaying that the T card is removed if the T card subsystem does not receive the first response corresponding to the first card reading request.
8. The mobile terminal of claim 5, wherein the signal transmission module comprises:
and the threshold detection submodule is used for sending a diagnosis signal to the T-card subsystem if the number of times that the SIM card subsystem does not receive the second response reaches a set threshold, and not sending the diagnosis signal until the SIM card subsystem receives the second response next time.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the detection method according to any one of claims 1 to 4.
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 detection method according to any one of claims 1 to 4.
CN201711116127.XA 2017-11-13 2017-11-13 T card detection method and mobile terminal Active CN108055377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711116127.XA CN108055377B (en) 2017-11-13 2017-11-13 T card detection method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711116127.XA CN108055377B (en) 2017-11-13 2017-11-13 T card detection method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108055377A CN108055377A (en) 2018-05-18
CN108055377B true CN108055377B (en) 2019-12-24

Family

ID=62120144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711116127.XA Active CN108055377B (en) 2017-11-13 2017-11-13 T card detection method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108055377B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103943985A (en) * 2014-04-21 2014-07-23 惠州Tcl移动通信有限公司 Plug-in SIM card connector
CN104270740A (en) * 2014-09-16 2015-01-07 广东欧珀移动通信有限公司 Slot-sharing T card and SIM card detection method
CN204795235U (en) * 2015-07-27 2015-11-18 东莞华贝电子科技有限公司 Mobile terminal's T card, plug device of SIM card
CN105573884A (en) * 2015-12-28 2016-05-11 惠州Tcl移动通信有限公司 Multi-TF-card plugging and unplugging detection method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3197059B1 (en) * 2016-01-21 2018-07-18 Samsung Electronics Co., Ltd Method for controlling sim card and sd card and electronic device implementing the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103943985A (en) * 2014-04-21 2014-07-23 惠州Tcl移动通信有限公司 Plug-in SIM card connector
CN104270740A (en) * 2014-09-16 2015-01-07 广东欧珀移动通信有限公司 Slot-sharing T card and SIM card detection method
CN204795235U (en) * 2015-07-27 2015-11-18 东莞华贝电子科技有限公司 Mobile terminal's T card, plug device of SIM card
CN105573884A (en) * 2015-12-28 2016-05-11 惠州Tcl移动通信有限公司 Multi-TF-card plugging and unplugging detection method and system

Also Published As

Publication number Publication date
CN108055377A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
CN108459797B (en) Control method of folding screen and mobile terminal
CN107580147B (en) Management method of notification message and mobile terminal
CN110109593B (en) Screen capturing method and terminal equipment
CN107835286B (en) Method for preventing mistaken unlocking and mobile terminal
CN109739429B (en) Screen switching processing method and mobile terminal equipment
CN109560591B (en) Charging method, device and terminal
CN110096203B (en) Screenshot method and mobile terminal
CN107977113B (en) Control method and mobile terminal
CN109831359B (en) Method for detecting connection state of data network and terminal equipment thereof
CN109523253B (en) Payment method and device
CN109144393B (en) Image display method and mobile terminal
CN111651387B (en) Interface circuit and electronic equipment
CN111597540B (en) Login method of application program, electronic device and readable storage medium
CN108196781B (en) Interface display method and mobile terminal
CN110069407B (en) Function test method and device for application program
CN108089935B (en) Application program management method and mobile terminal
CN111310165B (en) Account switching or registering method and electronic equipment
CN111427644B (en) Target behavior identification method and electronic equipment
CN109491572B (en) Screen capturing method of mobile terminal and mobile terminal
CN111309390A (en) Method for acquiring configuration information and electronic equipment
CN109327605B (en) Display control method and device and mobile terminal
CN111443847A (en) Push message processing method and electronic equipment
CN110764650A (en) Key trigger detection method and electronic equipment
CN108055377B (en) T card detection method and mobile terminal
CN110784571B (en) Electronic equipment and image display method

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