CN106851615A - A kind of method and terminal of smart card abnormality processing - Google Patents
A kind of method and terminal of smart card abnormality processing Download PDFInfo
- Publication number
- CN106851615A CN106851615A CN201710013649.0A CN201710013649A CN106851615A CN 106851615 A CN106851615 A CN 106851615A CN 201710013649 A CN201710013649 A CN 201710013649A CN 106851615 A CN106851615 A CN 106851615A
- Authority
- CN
- China
- Prior art keywords
- card
- state
- smart card
- smart
- inspection
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/183—Processing at user equipment or user record carrier
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
A kind of method and terminal of smart card abnormality processing are the embodiment of the invention provides, wherein, methods described includes:When the state for detecting smart card occurs abnormal, judge whether the state of the smart card is in card-like state;If so, then performing reset instruction, card is examined again with to the smart card;When it is described inspection block successfully again after, normally show the smart card, or the display smart card current state in presence.Using the present invention, can automatically, intelligently carry out smart card abnormality detection and reparation, improve the convenient and swift property and practicality of smart card abnormality processing.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of method and terminal of smart card abnormality processing.
Background technology
With continuing to develop for terminal technology, the mobile terminal such as mobile phone has turned into indispensable logical in people's daily life
News instrument.SIM will be installed in current mobile terminal to dial or receive calls, send short message etc., and in address list
Telephone number also is stored in SIM.But during user's use, the mobile terminal of user often occurs and collides with or it
His problem causes SIM loose contacts, or because the reasons such as software anomaly lead to not detect SIM.Prior art is at end
End be when cannot detect SIM, can display terminal be in without card-like state, it is necessary to user restarts terminal manually, to detect SIM again
Card;The not easy, poor user experience of such operation.
The content of the invention
Embodiment of the present invention technical problem to be solved is, there is provided a kind of method of smart card abnormality processing and end
End, can lift the convenient and swift property and practicality of smart card abnormality processing.
In a first aspect, the embodiment of the present invention is disclosed there is provided a kind of method of smart card abnormality processing, methods described includes:
When the state for detecting smart card occurs abnormal, judge whether the state of the smart card is in card-like state;
If so, then performing reset instruction, card is examined again with to the smart card;
When it is described inspection block successfully again after, normally show the smart card, or at the current state of the display smart card
In presence.
Wherein alternatively, methods described also includes:
After the card crash of inspection again, determine that the current state of the smart card is in without card-like state, and generate correspondence
Prompt message, it is abnormal to point out the smart card to occur.
Wherein alternatively, the corresponding prompt message of the generation is specifically included:
By ccf layer Framework to telephone service Teleservice broadcast card abnormal state information, the card-like state
Abnormal information carries the current state of the smart card;
After the Teleservice receives the card-like state abnormal information, parse the card-like state abnormal information to obtain
The current state of the smart card;
The Teleservice is added according to the current state of the smart card and is shown corresponding prompt message.
Wherein alternatively, whether the state for judging the smart card is in card-like state and specifically includes:
Judge whether to receive inspection card response message, or, judge whether the inspection card response message for receiving is overtime;
If the inspection card response message is not received by, or the inspection card response message time-out for receiving, then determine the intelligence
The state that can block is in card-like state.
Wherein alternatively, after the execution reset instruction, also include:
Reporting radio frequency disarmed state, corresponding predetermined registration operation is performed with according to the state of the smart card;It is specifically included:
When the state of the smart card is when falling card-like state, retain the intelligent card object and the smart card falls card-like
State;Or,
When the state of the smart card is without card-like state, destroys the intelligent card object and empty the smart card
Status information.
Second aspect, the embodiment of the present invention is also disclosed there is provided a kind of terminal, and the terminal includes:
Judge module, for when the state for detecting smart card occurs abnormal, judge the smart card state whether
It is in card-like state;
Reseting module, if being yes for the judged result of the judge module, performs reset instruction, with to the intelligence
Card is examined card again;
Display module, for after inspection blocks successfully again described in, normally showing the smart card, or show the smart card
Current state be in presence.
Wherein alternatively, the terminal also includes:
Reminding module, after for examining card crash again described in, determines that the current state of the smart card is in without card-like
State, and corresponding prompt message is generated, it is abnormal to point out the smart card to occur.
Wherein alternatively,
The reminding module, specifically for broadcasting card-like to telephone service Teleservice by ccf layer Framework
State abnormal information, the card-like state abnormal information carries the current state of the smart card;The Teleservice receives institute
After stating card-like state abnormal information, parse the card-like state abnormal information to obtain the current state of the smart card;It is described
Teleservice is added according to the current state of the smart card and is shown corresponding prompt message.
Wherein alternatively,
The judge module, specifically for judging whether to receive inspection card response message, or, judge that the inspection card for receiving rings
Answer message whether overtime;If the inspection card response message is not received by, or the inspection card response message time-out for receiving, then determine
The state of the smart card is in card-like state.
Wherein alternatively, the terminal also includes:
Processing module, for reporting radio frequency disarmed state, corresponding default behaviour is performed with according to the state of the smart card
Make;Wherein,
The processing module, specifically for when the state of the smart card be to retain the smart card pair when falling card-like state
As falling card-like state with the smart card;Or,
The processing module, specifically for when the state of the smart card is without card-like state, destroying the smart card pair
As and empty the status information of the smart card.
The third aspect, the embodiment of the present invention is also disclosed there is provided a kind of terminal, and the terminal includes:Processor, memory,
Communication interface and bus;The processor, the memory and the communication interface are connected by the bus and completed mutually
Between communication;The memory storage executable program code;The processor by read store in the memory can
Configuration processor code runs program corresponding with the executable program code, for performing a kind of smart card abnormality processing
Method;Wherein, methods described is the method described in any one of first aspect.
Fourth aspect, the embodiment of the present invention is also disclosed there is provided a kind of computer-readable recording medium, and the computer can
Reading storage medium stores the program code for smart card abnormality processing performed by computing device.Described program code includes
Instruction for performing the method for any one in the first aspect.
The embodiment of the present invention is by the way that when the state for detecting smart card occurs abnormal, judging the state of the smart card is
It is no to be in card-like state, if so, then performing reset instruction, card is examined again with to the smart card, when the inspection card again
After success, the smart card is normally shown, or show that the current state of the smart card is in presence;So go out in terminal
In the case of now falling card, automatically, intelligently can be examined card again to recover the presence of smart card, it is to avoid prior art
Card is examined by cycle power again, the convenient and swift property and practicality of smart card abnormality processing is improved.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of smart card abnormality eliminating method of the embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of bullet frame display reminding information of the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another smart card abnormality eliminating method of the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of another smart card abnormality eliminating method of the embodiment of the present invention;
Fig. 5 is a kind of structural representation of terminal of the embodiment of the present invention;
Fig. 6 is the structural representation of another terminal of the embodiment of the present invention;
Fig. 7 is the structural representation of another terminal of the embodiment of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model of present invention protection
Enclose.
Term " first ", " second " and " the 3rd " in description and claims of this specification and above-mentioned accompanying drawing is (such as
Fruit exist) etc. be for distinguishing different objects, not for description particular order.Additionally, term " including " and they are any
Deformation, it is intended that covering is non-exclusive to be included.For example contain process, method, system, the product of series of steps or unit
Or equipment is not limited to the step of having listed or unit, but alternatively also include the step of not listing or unit, or can
Selection of land also includes for these processes, method, product or other intrinsic steps of equipment or unit.
Fig. 1 is referred to, is a kind of schematic flow sheet of smart card abnormality eliminating method of the embodiment of the present invention, the present invention is real
Applying the methods described of example can apply in band communications network functionalities such as smart mobile phone, panel computer, intelligent wearable devices
Terminal in, can specifically be realized by the processor of these terminals.The methods described of the embodiment of the present invention also comprises the following steps.
S101, when the state for detecting smart card occurs abnormal, judge whether the state of the smart card is in card
State.
In the embodiment of the present invention, the smart card installed in the terminal generally there are following three kinds of states and be respectively:Online
Present states, fall card error states and without card absent states.When the module layer (i.e. Modem layers) of terminal is in detection
When there is abnormal (card error occur) to the state of the smart card in the terminal, Modem layers may determine that it is described
Whether the state of smart card is to fall card-like state, if so, then continuing executing with step S102;Otherwise, Modem layers can be by the intelligence
The state (card error) of card reports radio interface layer (Radio Interface Layer, RIL), so as to RIL layers normally
Related handling process is performed, the unavailable information of the smart card, sign off is such as shown.
Wherein alternatively, whether the state for judging the smart card is in card-like state and specifically includes:
Judge whether to receive inspection card response message, or, judge whether the inspection card response message for receiving is overtime;
If the inspection card response message is not received by, or the inspection card response message time-out for receiving, then determine the intelligence
The state that can block is in card-like state.
In implementing, Modem is detected after card error report, that is, detect the smart card state occur it is different
Chang Hou, whether the state that the smart card can be judged by the concrete reason value of card error is to fall card-like state.In reality
In, modem is generally acknowledged that the following two error reason values of appearance:MMGSDI_CARD_ERR_NO_ATR_RCVD_AFTER_
RESET (not receiving inspection card response message) and MMGSDI_CARD_ERR_INT_CMD_TIMED_OUT_AFTER_PPS (are received
Inspection card response message time-out) belong to it is abnormal fall card situation, that is to say do not received when Modem layer examine card response message or
During the inspection card response message time-out that person receives, Modem layers it is considered that the state (card error) of/judgement smart card
It is in card error states.
After determining that the state to the smart card is in card error states at Modem layers, Modem can also be to high pass
The reason for radio interface layer (Qualcomm RIL, QCRIL) reports card error value is that UNKNOWN_REMOVED is (i.e. unknown
Fall card-like state), the handling process of correlation is normally performed so as to QCRIL, QCRIL can also be former by UNKNOWN_REMOVED in addition
Fall card error states because what value was converted into the smart card, and report FW, with the state that the smart card is recorded in FW
In card error states are fallen, subsequently to use.
The smart card can include integrated circuit card (Integrated Circuit Card, IC-card), identification card
(Identification Card, ID card), client identification module (Subscriber Identification Module, SIM
Card) or others be integrated with chip card, the embodiment of the present invention is not restricted;Preferably, the intelligence in the embodiment of the present invention
Card preferentially selects SIM.
The terminal can including smart mobile phone (such as Android phone, IOS mobile phones), PC, panel computer,
The internets such as palm PC, mobile internet device (MID, Mobile Internet Devices) or wearable intelligent equipment
Equipment, the embodiment of the present invention is not construed as limiting.
S102, execution reset instruction, card is examined with to the smart card again.
In the embodiment of the present invention, when the Modem layers of state for detecting the smart card of terminal is in card error states
Afterwards, Modem can also issue reset instruction (i.e. reset orders) to restart Modem, and Modem can also report the intelligence to FW
The state (Card state) that can block is to fall card error states.After Modem reset are restarted, the terminal can be again
To electricity on the smart card to carry out inspection card operation to the smart card again, if inspection blocks successfully again, step is continued executing with
Rapid S103;Otherwise, card crash is examined again, Modem layers of terminal value the reason for will receive Card_error events is
MMGSDI_CARD_ERR_NO_ATR_RCVD_AT_MAX_VOLT, that is to say the smart card when upper piezoelectric voltage is maximum not yet
Detect, now Modem will determine that to the current state (i.e. new Card state) of the smart card be without card absent shapes
State, and by the current state new Card state of the smart card be absent state reportings to FW, so that FW is recorded.
It should be noted that before modem performs reset instruction (reset orders), the state of the smart card can be with
Used as old Card state, the state of above-mentioned smart card is to fall card error states, that is to say that old Card state are
Error states.
Wherein alternatively, after the execution reset instruction, also include:
Reporting radio frequency disarmed state, corresponding predetermined registration operation is performed with according to the state of the smart card;It is specifically included:
When the state of the smart card is when falling card-like state, retain the intelligent card object and the smart card falls card-like
State;Or,
When the state of the smart card is without card-like state, destroys the intelligent card object and empty the smart card
Status information.
Modem layers of the terminal performing after reset orders restart Modem, Modem can also to FW reporting radio frequencies without
Effect state, i.e. RADIO_UNAVAILABLE, can carry out destroying card object in the event, now can be by old Card state
The error states of the smart card for preserving are disposed, and the state for causing terminal to cannot be distinguished by the smart card belongs to fall card also
It is without card-like state.Therefore, in the UiccController functions of FW, when RADIO_UNAVAILABLE is received, FW can sentence
Whether the state (i.e. old Card state) of the disconnected smart card is error states, if it is then FW is not with regard to being destroyed
The operation of dispose card objects, so as to retain the card-like state (i.e. old Card state) before modem resets reset be
Error states are constant.Due to treatment herein just for old Card state for error states just do not go to destroy card object,
Therefore normal flow is not influenceed.When it is not error states that FW determines old Card state, FW can enter marketing
Card object is ruined, and empties card status information, that is to say that FW can destroy the intelligent card object of record in terminal and empty institute
The information of all about described smart card recorded in terminal is stated, such as the status information of the smart card, in absent states etc..
S103, when it is described inspection block successfully again after, normally show the smart card, or the display smart card current shape
State is in presence.
In the embodiment of the present invention, after the Modem of the terminal examines card success again, Modem can to upper strata RIL or
It is online present states that QCRIL reports the current state of the now smart card, described after that is to say that Modem is restarted in reset
Smart card is successfully recovered can normally be used, and upper strata RIL or QCRIL can report the now smart card to recover normal/success
Normally show that the smart card or the display smart card are currently at present states with the interface of the terminal.
Wherein alternatively, methods described also includes:
After the card crash of inspection again, determine that the current state of the smart card is in without card-like state, and generate correspondence
Prompt message, it is abnormal to point out the smart card to occur.
After Modem resets reset is restarted unsuccessfully, that is to say that the smart card recovers unsuccessful, Modem will determine/recognize
For the current state new Card state of the smart card are, without card absent states, and to be by new Card state
Absent state reportings are to FW.FW can also the old Card state and new Card state that recorded of the FW to judge
Whether the current state (absent states) for stating smart card is to fall the state restarted after card after Modem, that is to say and judges old
Whether Card state and new Card state meet following condition:Old Card state states are error states, and
New Card state states are absent states;If meeting above-mentioned condition, then FW will be considered to/determine the smart card and works as
Before belong to fall card and recover unsuccessful situation, now FW will add/the corresponding prompt message of generation to point out user, it is exemplary
Ground will send out broadcast such as FW and notify that related service or the current state appearance of smart card as described in are abnormal, and then these correlation clothes
Business or application will point out user using modes such as voice, word, picture, bullet frame, vibrations.
Wherein alternatively, the corresponding prompt message of the generation is specifically included:
By ccf layer Framework to telephone service Teleservice broadcast card abnormal state information, the card-like state
Abnormal information carries the current state of the smart card;
After the Teleservice receives the card-like state abnormal information, parse the card-like state abnormal information to obtain
The current state of the smart card;
The Teleservice is added according to the current state of the smart card and is shown corresponding prompt message.
In implementing, when FW determines the previous state of the smart card for error states, and the smart card is worked as
Preceding state determines old Card state states for error states after absent states, to that is to say FW, and new Card
State states are for after absent shapes, FW will send the broadcast of card-like state abnormal information, such as
Android.intent.action.SIM_STATE_CHANGED is broadcasted, and wherein the card-like state abnormal information carries the intelligence
The current state that can block, the current state value for such as carrying the smart card is " error ";And then, in the terminal
After Teleservice service/applications receive the card-like state abnormal information of FW broadcast, the Teleservice can parse the card
, to obtain the current state or state value error of the smart card, then the Teleservice can be with root for abnormal state information
Different prompt messages are shown according to current state or the state value correspondence of the smart card.Exemplarily as Teleservice connects
After receiving the broadcast of the current state value for carrying the smart card, Teleservice can parse current intent, and (i.e. parsing is taken
The broadcast of the current state value with the smart card), to obtain the current state value of the smart card of carrying, then basis
The difference of state value shows corresponding bullet frame, and processing procedure here will be related to/need Teleservice to add bullet inframe appearance money
Source file, play frame display format can specify that it is as follows:
Title " SIM exception "
" SIM contact is abnormal, it is impossible to detect available SIM, and you need to insert effective SIM and open again again for content
Machine "
User clicking on " it is determined that " play frame afterwards and disappear, for details, reference can be made to provided shown in Fig. 2 a kind of and play frame display reminding letter
The schematic diagram of breath.
As can be seen that the embodiment of the present invention can solve the problems, such as part smart card extremely it is caused fall card, cannot process
User is pointed out by way of playing frame when falling card exception, the inventive embodiments can help user to find and solve smart card in time
Exception leads to not the problem for using, and greatly improves Consumer's Experience.
Fig. 3 is referred to, is the schematic flow sheet of another smart card abnormality eliminating method of the embodiment of the present invention, the present invention
The methods described of embodiment can be applied in band communication network work(such as smart mobile phone, panel computer, intelligent wearable devices
In the terminal of energy, can specifically be realized by the processor of these terminals.The methods described of the embodiment of the present invention also includes following step
Suddenly.
S201, when the state for detecting smart card occurs abnormal, judge whether the state of the smart card is in card
State.
In the embodiment of the present invention, when the state that terminal detects the smart card in this terminal occurs abnormal, institute
State terminal and receive inspection card response message by judging whether, or, it is whether overtime by the inspection card response message for judging to receive
Whether the state to judge the smart card is in card-like state;When the terminal is not received by the inspection card response message,
Or the inspection card response message of reception is overtime, then the state for determining the smart card is in card-like state, continues executing with step
S202;Otherwise, flow is terminated.
S202, execution reset instruction, card is examined with to the smart card again.
Whether inspection card succeeds again described in S203, judgement.
In the embodiment of the present invention, when terminal judges are blocked successfully to the inspection again, then step S204 is continued executing with;Otherwise,
Perform step S205.
S204, the smart card is normally shown, or show that the current state of the smart card is in presence.
S205, determine the smart card current state be in without card-like state.
S206, by ccf layer Framework to telephone service Teleservice broadcast card abnormal state information, it is described
Card-like state abnormal information carries the current state of the smart card.
After S207, the Teleservice receive the card-like state abnormal information, parse the card-like state abnormal information with
Obtain the current state of the smart card.
S208, the Teleservice are added according to the current state of the smart card and are shown corresponding prompt message.
The embodiment of the present invention is by the way that when the state for detecting smart card occurs abnormal, judging the state of the smart card is
It is no to be in card-like state, if so, then performing reset instruction, card is examined again with to the smart card, when the inspection card again
After success, the smart card is normally shown, or show that the current state of the smart card is in presence;So go out in terminal
In the case of now falling card, automatically, intelligently can be examined card again to recover the presence of smart card, it is to avoid prior art
Card is examined by cycle power again, the convenient and swift property and practicality of smart card abnormality processing is improved.
It is the schematic flow sheet of another smart card abnormality eliminating method of the embodiment of the present invention please also refer to Fig. 4, this
The methods described of inventive embodiments can include as above step S201- steps S208, wherein after step S202, can also wrap
Include following steps.
S301, reporting radio frequency disarmed state, and judge whether the state of the smart card is to fall card-like state.
In the embodiment of the present invention, when terminal judges to the state of the smart card are when falling card-like state, to continue executing with step
S302;Otherwise, step S303 is continued executing with.
S302, retain the intelligent card object and the smart card fall card-like state.
S303, the destruction intelligent card object, and empty the status information of the smart card.
The embodiment of the present invention is by the way that when the state for detecting smart card occurs abnormal, judging the state of the smart card is
It is no to be in card-like state, if so, then performing reset instruction, card is examined again with to the smart card, when the inspection card again
After success, the smart card is normally shown, or show that the current state of the smart card is in presence;So go out in terminal
In the case of now falling card, automatically, intelligently can be examined card again to recover the presence of smart card, it is to avoid prior art
Card is examined by cycle power again, the convenient and swift property and practicality of smart card abnormality processing is improved.
Fig. 5 is referred to, is a kind of structural representation of terminal of the embodiment of the present invention, the terminal of the embodiment of the present invention
5 can include:
Judge module 50, for when the state for detecting smart card occurs abnormal, judging the state of the smart card to be
It is no to be in card-like state;
Reseting module 51, if being yes for the judged result of the judge module 50, performs reset instruction, with to described
Smart card is examined card again;
Display module 52, for after inspection blocks successfully again described in, normally showing the smart card, or show the intelligence
The current state of card is in presence.
Implementing for the modules being related in the embodiment of the present invention refers to correlation in Fig. 1 to Fig. 4 correspondence embodiments
The description of functional module or implementation steps, will not be described here.
The embodiment of the present invention is by the way that when the state for detecting smart card occurs abnormal, judging the state of the smart card is
It is no to be in card-like state, if so, then performing reset instruction, card is examined again with to the smart card, when the inspection card again
After success, the smart card is normally shown, or show that the current state of the smart card is in presence;So go out in terminal
In the case of now falling card, automatically, intelligently can be examined card again to recover the presence of smart card, it is to avoid prior art
Card is examined by cycle power again, the convenient and swift property and practicality of smart card abnormality processing is improved.
It is the structural representation of another terminal of the embodiment of the present invention, the institute of the embodiment of the present invention please also refer to Fig. 6
Stating terminal 5 can include:Above-mentioned judge module 50, reseting module 51, display module 52, wherein, the terminal also includes:
Reminding module 53, after for examining card crash again described in, determines that the current state of the smart card is in without card
State, and corresponding prompt message is generated, it is abnormal to point out the smart card to occur.
Wherein alternatively,
The reminding module 53, specifically for by ccf layer Framework to telephone service Teleservice broadcast cards
Abnormal state information, the card-like state abnormal information carries the current state of the smart card;The Teleservice is received
After the card-like state abnormal information, parse the card-like state abnormal information to obtain the current state of the smart card;It is described
Teleservice is added according to the current state of the smart card and is shown corresponding prompt message.
Wherein alternatively,
The judge module 50, specifically for judging whether to receive inspection card response message, or, judge the inspection card for receiving
Whether response message is overtime;If the inspection card response message is not received by, or the inspection card response message time-out for receiving, then judge
State to the smart card is in card-like state.
Wherein alternatively, the terminal also includes:
Processing module 54, for reporting radio frequency disarmed state, corresponding presetting is performed with according to the state of the smart card
Operation;Wherein,
The processing module 54, specifically for when the state of the smart card be to retain the smart card when falling card-like state
Object and the smart card fall card-like state;Or,
The processing module 54, specifically for when the state of the smart card is without card-like state, destroying the smart card
Object simultaneously empties the status information of the smart card.
Implementing for the modules being related in the embodiment of the present invention refers to correlation in Fig. 1 to Fig. 5 correspondence embodiments
The description of functional module or implementation steps, will not be described here.
The embodiment of the present invention is by the way that when the state for detecting smart card occurs abnormal, judging the state of the smart card is
It is no to be in card-like state, if so, then performing reset instruction, card is examined again with to the smart card, when the inspection card again
After success, the smart card is normally shown, or show that the current state of the smart card is in presence;So go out in terminal
In the case of now falling card, automatically, intelligently can be examined card again to recover the presence of smart card, it is to avoid prior art
Card is examined by cycle power again, the convenient and swift property and practicality of smart card abnormality processing is improved.
Fig. 7 is referred to, Fig. 7 is the structural representation of another terminal disclosed in the embodiment of the present invention.The end of the present embodiment
End includes:At least one processor 601, communication interface 602, user interface 603 and memory 604, processor 601, communication connect
Mouth 602, user interface 603 and memory 604 can be connected by bus or other manner, and the embodiment of the present invention is with by bus
As a example by 605 connections.Wherein,
Processor 601 can be general processor, for example central processing unit (Central Processing Unit,
CPU)。
Communication interface 602 can be wireline interface (such as Ethernet interface) or wave point (such as cellular network interface
Or use wireless lan interfaces), for being communicated with other-end or website.In the embodiment of the present invention, communication interface 602
User specifically for target recommended to be recommended terminal.
The concretely contact panel of user interface 603, including touch-screen and touch screen, for detecting the behaviour on contact panel
Instruct, user interface 603 can also be physical button or mouse.User interface 603 can also be display screen, for defeated
Go out, display image or data.
Memory 604 can include volatile memory (Volatile Memory), such as random access memory
(Random Access Memory, RAM);Memory can also include nonvolatile memory (Non-Volatile
Memory), such as read-only storage (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk
(Hard Disk Drive, HDD) or solid state hard disc (Solid-State Drive, SSD);Memory 604 can also include upper
State the combination of the memory of species.Memory 604 is used to store batch processing code, and processor 601 is used to call memory 604
The program code of middle storage, performs following operation:
When the state for detecting smart card occurs abnormal, judge whether the state of the smart card is in card-like state;
If so, then performing reset instruction, card is examined again with to the smart card;
When it is described inspection block successfully again after, normally show the smart card, or at the current state of the display smart card
In presence.
Wherein alternatively, the processor 601 is additionally operable to perform following operation:
After the card crash of inspection again, determine that the current state of the smart card is in without card-like state, and generate correspondence
Prompt message, it is abnormal to point out the smart card to occur.
Wherein alternatively, the processor 601 is also particularly useful for the following operation of execution:
By ccf layer Framework to telephone service Teleservice broadcast card abnormal state information, the card-like state
Abnormal information carries the current state of the smart card;
After the Teleservice receives the card-like state abnormal information, parse the card-like state abnormal information to obtain
The current state of the smart card;
The Teleservice is added according to the current state of the smart card and is shown corresponding prompt message.
Wherein alternatively, the processor 601 is also particularly useful for the following operation of execution:
Judge whether to receive inspection card response message, or, judge whether the inspection card response message for receiving is overtime;
If the inspection card response message is not received by, or the inspection card response message time-out for receiving, then determine the intelligence
The state that can block is in card-like state.
Wherein alternatively, after the execution reset instruction, the processor 601 is additionally operable to perform following operation:
Reporting radio frequency disarmed state, corresponding predetermined registration operation is performed with according to the state of the smart card;It is specifically included:
When the state of the smart card is when falling card-like state, retain the intelligent card object and the smart card falls card-like
State;Or,
When the state of the smart card is without card-like state, destroys the intelligent card object and empty the smart card
Status information.
The embodiment of the present invention is by the way that when the state for detecting smart card occurs abnormal, judging the state of the smart card is
It is no to be in card-like state, if so, then performing reset instruction, card is examined again with to the smart card, when the inspection card again
After success, the smart card is normally shown, or show that the current state of the smart card is in presence;So go out in terminal
In the case of now falling card, automatically, intelligently can be examined card again to recover the presence of smart card, it is to avoid prior art
Card is examined by cycle power again, the convenient and swift property and practicality of smart card abnormality processing is improved.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can be stored with journey
Sequence, the part or all of step including the smart card abnormality eliminating method described in the above method embodiment when program is performed.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention not by described by sequence of movement limited because
According to the present invention, some steps can sequentially or simultaneously be carried out using other.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, involved action and module is not necessarily of the invention
It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment
Point, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way
Realize.For example, device embodiment described above is only schematical, such as the division of described unit is only one kind
Division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other
Coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication connection of device or unit by some interfaces,
Can be electrical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in various embodiments of the present invention can be integrated in a processing unit, also may be used
Being that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is to realize in the form of SFU software functional unit and as independent production marketing or use
When, can store in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part for being contributed to prior art in other words or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are used to so that a computer
Equipment (can be personal computer, server or network equipment etc.) perform each embodiment methods described of the invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to preceding
Embodiment is stated to be described in detail the present invention, it will be understood by those within the art that:It still can be to preceding
State the technical scheme described in each embodiment to modify, or equivalent is carried out to which part technical characteristic;And these
Modification is replaced, and does not make the scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution.
Claims (10)
1. a kind of method of smart card abnormality processing, it is characterised in that methods described includes:
When the state for detecting smart card occurs abnormal, judge whether the state of the smart card is in card-like state;
If so, then performing reset instruction, card is examined again with to the smart card;
When it is described inspection block successfully again after, normally show the smart card, or the display smart card current state in
Wire state.
2. the method for claim 1, it is characterised in that methods described also includes:
After the card crash of inspection again, determine that the current state of the smart card is in without card-like state, and generate corresponding carrying
Show information, it is abnormal to point out the smart card to occur.
3. method as claimed in claim 2, it is characterised in that the corresponding prompt message of the generation is specifically included:
By ccf layer Framework to telephone service Teleservice broadcast card abnormal state information, the card abnormal state
Information carries the current state of the smart card;
After the Teleservice receives the card-like state abnormal information, it is described to obtain to parse the card-like state abnormal information
The current state of smart card;
The Teleservice is added according to the current state of the smart card and is shown corresponding prompt message.
4. the method for claim 1, it is characterised in that whether the state for judging the smart card is in card-like
State is specifically included:
Judge whether to receive inspection card response message, or, judge whether the inspection card response message for receiving is overtime;
If the inspection card response message is not received by, or the inspection card response message time-out for receiving, then determine the smart card
State be in card-like state.
5. the method as described in any one in claim 1-4, it is characterised in that after the execution reset instruction, also wrap
Include:
Reporting radio frequency disarmed state, corresponding predetermined registration operation is performed with according to the state of the smart card;It is specifically included:
When the state of the smart card is when falling card-like state, retain the intelligent card object and the smart card falls card-like state;
Or,
When the state of the smart card is without card-like state, destroys the intelligent card object and empty the state of the smart card
Information.
6. a kind of terminal, it is characterised in that the terminal includes:
Judge module, for when the state for detecting smart card occurs abnormal, judging whether the state of the smart card is in
Fall card-like state;
Reseting module, if being yes for the judged result of the judge module, performs reset instruction, is sticked into to the intelligence
Again inspection blocks row;
Display module, for after inspection blocks successfully again described in, normally showing the smart card, or shows working as the smart card
Preceding state is in presence.
7. terminal as claimed in claim 6, it is characterised in that the terminal also includes:
Reminding module, after for examining card crash again described in, determines that the current state of the smart card is in without card-like state, and
Corresponding prompt message is generated, it is abnormal to point out the smart card to occur.
8. terminal as claimed in claim 7, it is characterised in that
The reminding module, specifically for different to telephone service Teleservice broadcast card states by ccf layer Framework
Normal information, the card-like state abnormal information carries the current state of the smart card;The Teleservice receives the card
After abnormal state information, parse the card-like state abnormal information to obtain the current state of the smart card;It is described
Teleservice is added according to the current state of the smart card and is shown corresponding prompt message.
9. terminal as claimed in claim 6, it is characterised in that
The judge module, specifically for judging whether to receive inspection card response message, or, judge that the inspection card response for receiving disappears
Whether breath is overtime;If the inspection card response message is not received by, or the inspection card response message time-out for receiving, then determine described
The state of smart card is in card-like state.
10. the terminal as described in any one in claim 6-9, it is characterised in that the terminal also includes:
Processing module, for reporting radio frequency disarmed state, corresponding predetermined registration operation is performed with according to the state of the smart card;Its
In,
The processing module, specifically for when the state of the smart card be when falling card-like state retain the intelligent card object and
The smart card falls card-like state;Or,
The processing module, specifically for when the state of the smart card is without card-like state, destroy the intelligent card object and
Empty the status information of the smart card.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710013649.0A CN106851615A (en) | 2017-01-09 | 2017-01-09 | A kind of method and terminal of smart card abnormality processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710013649.0A CN106851615A (en) | 2017-01-09 | 2017-01-09 | A kind of method and terminal of smart card abnormality processing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106851615A true CN106851615A (en) | 2017-06-13 |
Family
ID=59118154
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710013649.0A Pending CN106851615A (en) | 2017-01-09 | 2017-01-09 | A kind of method and terminal of smart card abnormality processing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106851615A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107743164A (en) * | 2017-11-30 | 2018-02-27 | 宇龙计算机通信科技(深圳)有限公司 | A kind of exception falls the processing method and terminal of card |
CN108989862A (en) * | 2018-08-02 | 2018-12-11 | 深圳市茁壮网络股份有限公司 | A kind of processing method and processing device when smart card is operating abnormally |
CN109433780A (en) * | 2018-09-10 | 2019-03-08 | 武汉天喻信息产业股份有限公司 | A kind of self-service device and method for nullifying card |
CN110233773A (en) * | 2019-04-28 | 2019-09-13 | 深圳市元征科技股份有限公司 | A kind of SIM card hot plug method, apparatus, terminal device and storage medium |
CN110445932A (en) * | 2019-08-05 | 2019-11-12 | 宇龙计算机通信科技(深圳)有限公司 | Exception falls card processing method, device, storage medium and terminal |
CN110730472A (en) * | 2019-09-18 | 2020-01-24 | 深圳市优克联新技术有限公司 | Communication certificate state detection method and server |
CN114338908A (en) * | 2021-12-23 | 2022-04-12 | 展讯通信(上海)有限公司 | SIM card recovery method, device, chip and module equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102421117A (en) * | 2011-12-15 | 2012-04-18 | 广东步步高电子工业有限公司 | Method for detecting subscriber identity module |
CN104079724A (en) * | 2014-06-27 | 2014-10-01 | 广东欧珀移动通信有限公司 | Mobile phone card losing recovery method and mobile terminal applying mobile phone card |
-
2017
- 2017-01-09 CN CN201710013649.0A patent/CN106851615A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102421117A (en) * | 2011-12-15 | 2012-04-18 | 广东步步高电子工业有限公司 | Method for detecting subscriber identity module |
CN104079724A (en) * | 2014-06-27 | 2014-10-01 | 广东欧珀移动通信有限公司 | Mobile phone card losing recovery method and mobile terminal applying mobile phone card |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107743164A (en) * | 2017-11-30 | 2018-02-27 | 宇龙计算机通信科技(深圳)有限公司 | A kind of exception falls the processing method and terminal of card |
CN108989862A (en) * | 2018-08-02 | 2018-12-11 | 深圳市茁壮网络股份有限公司 | A kind of processing method and processing device when smart card is operating abnormally |
CN108989862B (en) * | 2018-08-02 | 2021-02-26 | 深圳市茁壮网络股份有限公司 | Processing method and device for abnormal operation of smart card |
CN109433780A (en) * | 2018-09-10 | 2019-03-08 | 武汉天喻信息产业股份有限公司 | A kind of self-service device and method for nullifying card |
CN110233773A (en) * | 2019-04-28 | 2019-09-13 | 深圳市元征科技股份有限公司 | A kind of SIM card hot plug method, apparatus, terminal device and storage medium |
CN110445932A (en) * | 2019-08-05 | 2019-11-12 | 宇龙计算机通信科技(深圳)有限公司 | Exception falls card processing method, device, storage medium and terminal |
CN110730472A (en) * | 2019-09-18 | 2020-01-24 | 深圳市优克联新技术有限公司 | Communication certificate state detection method and server |
CN110730472B (en) * | 2019-09-18 | 2023-01-13 | 深圳市优克联新技术有限公司 | Communication certificate state detection method and server |
CN114338908A (en) * | 2021-12-23 | 2022-04-12 | 展讯通信(上海)有限公司 | SIM card recovery method, device, chip and module equipment |
CN114338908B (en) * | 2021-12-23 | 2023-01-10 | 展讯通信(上海)有限公司 | SIM card recovery method, device, chip and module equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106851615A (en) | A kind of method and terminal of smart card abnormality processing | |
CN104079724B (en) | A kind of Mobile phone card falls card restoration methods and the mobile terminal of application Mobile phone card | |
CN105426761B (en) | A kind of recognition methods of illegal application and mobile terminal | |
CN109992453B (en) | System recovery method and related product | |
CN103841261B (en) | A kind of method and communication terminal extracting communication information | |
CN104992096A (en) | Data protection method and mobile terminal | |
CN107783849A (en) | Event-handling method and client | |
CN109800098A (en) | Service exception node positioning method, device, computer equipment and storage medium | |
CN107147724A (en) | A kind of information push method, server and computer-readable recording medium | |
CN104601683A (en) | File download management method, mobile terminal and communication system | |
CN104572348A (en) | Terminal | |
CN102421117A (en) | Method for detecting subscriber identity module | |
CN105117650A (en) | Method and apparatus for protecting system security of mobile terminal | |
CN103702115A (en) | Method and device for reporting TV fault information | |
CN107743164A (en) | A kind of exception falls the processing method and terminal of card | |
CN105488678A (en) | Payment behavior information acquisition method and system | |
CN105978802B (en) | A kind of method and device of Message Processing | |
CN106776908A (en) | Data clearing method, device and terminal | |
CN112487838B (en) | Information prompting method, device, electronic equipment and storage medium | |
CN104580731B (en) | Display methods, device and the mobile terminal of call interface | |
CN108509322A (en) | Avoid the method excessively paid a return visit, electronic device and computer readable storage medium | |
EP3468261B1 (en) | Control method and apparatus for smart card, terminal device, and smart card | |
CN108986428A (en) | The fire alarm method and Related product in warehouse | |
CN107957899B (en) | Screen recording method and device, computer readable storage medium and mobile terminal | |
CN108989298A (en) | A kind of equipment safety monitoring method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170613 |
|
RJ01 | Rejection of invention patent application after publication |