CN105721650B - A kind of realization mobile phone card identification method and terminal - Google Patents

A kind of realization mobile phone card identification method and terminal Download PDF

Info

Publication number
CN105721650B
CN105721650B CN201610057318.2A CN201610057318A CN105721650B CN 105721650 B CN105721650 B CN 105721650B CN 201610057318 A CN201610057318 A CN 201610057318A CN 105721650 B CN105721650 B CN 105721650B
Authority
CN
China
Prior art keywords
mobile phone
phone card
pin
initialization process
identification
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
CN201610057318.2A
Other languages
Chinese (zh)
Other versions
CN105721650A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610057318.2A priority Critical patent/CN105721650B/en
Publication of CN105721650A publication Critical patent/CN105721650A/en
Application granted granted Critical
Publication of CN105721650B publication Critical patent/CN105721650B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed herein is a kind of realization mobile phone cards to know method for distinguishing and terminal, comprising: when mobile phone card recognition failures, determines the pin that do not respond in initialization process;The pop-up adjustment of pin is gradually carried out by preset regulating device to the pin that do not respond in each initialization process;After completion pin pop-up adjustment each time, the initialization process of retriggered mobile phone card stops mobile phone card identification when until the identification of completion mobile phone card or preset times initialization process failing when initialization process success in preset times.Present invention method, by being adjusted to the pin that do not responded in each initialization process using the pop-up that preset regulating device gradually carries out pin, and initialization process is carried out after each pop-up adjustment, card problem is known to mobile phone card hardware and is corrected, the recognition efficiency of mobile phone card is improved.

Description

A kind of realization mobile phone card identification method and terminal
Technical field
The present invention relates to terminal applies field, espespecially a kind of realization mobile phone card knows method for distinguishing and terminal.
Background technique
When carrying out the research and development of communication terminal, the identification problem of mobile phone card is the main problem of R & D design.With mobile phone or For plate, the identification problem of mobile phone card relates generally to software and knows card problem and hardware knowledge card problem;It is main that software knows card problem It is related to that software design is unreasonable or software design mistake causes mobile phone card recognition failures;Hardware knows card problem and specifically includes that card slot Be arranged it is unreasonable caused by mobile phone card merging deck when be easy loosen;Operator is different to mobile phone card design thin degree, causes Relatively thin mobile phone card discrimination is low;When mobile phone card is placed in deck, since implantation mode or malposition cause mobile phone card to know Do not fail.Mobile phone card includes subscriber identification card (SIM card), subscriber identification module (UIM), and thus derivative various types of Card.
Software knows card problem by modification software, carries out problem amendment.And hardware knows card problem, relates generally to and is used to set When entering deck, there are problems for pin and mobile phone card contact on deck, comprising: supply pin, clock Clock foot and Data foot etc., In the terminal for supporting hot plug, it is often additionally provided with Detect foot, Detect foot is mainly used for triggering mobile phone card progress initially Change process.Know in card problem in hardware, most commonly seen situation is: after being powered on successfully to mobile phone card, sending and order to mobile phone card, But before corresponding timer spilling, card does not respond (such as due to the poor contact of Data foot), is preset when by software After the trial of number, when mobile phone card is not still identified, can only think that mobile phone card is not in place or mobile phone card there are mistakes;At this time Software thinks that its mission has been completed, and is no longer attempt to mobile phone card initialization process.
Due to hardware configuration once setting would become hard to change, hardware knows card problem and is difficult to be modified.
Summary of the invention
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of realization mobile phone card and knows method for distinguishing and terminal, Card problem can be known to hardware to be modified.
In order to reach the object of the invention, the embodiment of the invention provides a kind of terminals for realizing mobile phone card identification, comprising: pipe Foot determination unit, adjustment unit and initialization unit;Wherein,
Pin determination unit is used for, and when mobile phone card recognition failures, determines the pin that do not respond in initialization process;
Adjustment unit is used for, and gradually carries out pipe by preset regulating device to the pin that do not respond in each initialization process The pop-up of foot adjusts;
Initialization unit is used for, after completing pin pop-up adjustment each time, the initialization process of retriggered mobile phone card, directly Stop hand when the identification of completion mobile phone card or preset times initialization process fail when initialization process success in preset times The identification of machine card.
Optionally, pin includes at least one of:
Data Data pin, clock CLK pin and ground connection GND pin.
Optionally, which further includes identification determination unit, for being placed in terminal when mobile phone card, passes through the shape of Detect foot State changes to trigger and is powered on to mobile phone card and enter initialization process;
When carrying out initialization process, mobile phone card is not responded before preset timer spilling, and by stipulated number When repeated attempt mobile phone card is not responded, mobile phone card recognition failures are determined.
Optionally, adjustment unit is specifically used for,
The pin that do not respond in each initialization process is gradually adjusted in the following ways by preset regulating device It is whole:
The thickness difference for calculating mobile phone card maximum gauge and minimum thickness, according to preset times be arranged that each pin bounces away from From passing through the pop-up adjustment that regulating device carries out pin according to the distance that each pin of setting bounces.
Optionally, initialization unit is specifically used for, again hard by Detect foot after completing pin pop-up adjustment each time The initialization process of part triggering mobile phone card;Alternatively, using the initialization process of software mode retriggered mobile phone card;
Until the identification of completion mobile phone card or preset times initialization process are lost when initialization process success in preset times Stop mobile phone card identification when losing.
Optionally, which further includes feedback unit, and when for stopping mobile phone card identification, feedback mobile phone card identification is lost Lose information.
On the other hand, the application also provides a kind of realization mobile phone card knowledge method for distinguishing, comprising:
When mobile phone card recognition failures, the pin that do not respond in initialization process is determined;
The pop-up adjustment of pin is gradually carried out by preset regulating device to the pin that do not respond in each initialization process;
After completing pin pop-up adjustment each time, the initialization process of retriggered mobile phone card, until in preset times just Stop mobile phone card identification when the identification of completion mobile phone card or preset times initialization process fail when the success of beginningization process.
Optionally, pin includes at least one of:
Data Data pin, clock CLK pin and ground connection GND pin.
Optionally, before this method further include:
When mobile phone card is placed in terminal, changing to trigger by the state of Detect foot is powered on and is entered to mobile phone card Initialization process;
When carrying out initialization process, mobile phone card is not responded before preset timer spilling, and by stipulated number When repeated attempt mobile phone card is not responded, mobile phone card recognition failures are determined.
Optionally, pin pop-up adjustment is carried out to specifically include:
The thickness difference for calculating mobile phone card maximum gauge and minimum thickness, according to preset times be arranged that each pin bounces away from From passing through the pop-up adjustment that regulating device carries out pin according to the distance that each pin of setting bounces.
Optionally, the initialization process of retriggered mobile phone card includes:
Pass through the initialization process of Detect foot hardware trigger mobile phone card;Alternatively,
Using the initialization process of software mode triggering mobile phone card.
Optionally, when stopping mobile phone card identification, this method further include:
Feed back mobile phone card recognition failures information.
Compared with the relevant technologies, when technical scheme includes: mobile phone card recognition failures, determine in initialization process not The pin of response;The pop-up tune of pin is gradually carried out by preset regulating device to the pin that do not respond in each initialization process It is whole;After completing pin pop-up adjustment each time, the initialization process of retriggered mobile phone card, until initialization flow in preset times Stop mobile phone card identification when the identification of completion mobile phone card or preset times initialization process fail when Cheng Chenggong.The embodiment of the present invention Method, by the pop-up tune for gradually carrying out pin using preset regulating device to the pin that do not respond in each initialization process It is whole, and initialization process is carried out after each pop-up adjustment, card problem is known to mobile phone card hardware and is corrected, mobile phone is improved The recognition efficiency of card.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 to realize the present invention in each embodiment an optional mobile terminal hardware structural diagram;
Fig. 2 is that the embodiment of the present invention realizes that mobile phone card knows the flow chart of method for distinguishing;
Fig. 3 is the pin distribution schematic diagram of existing mobile phone card;
Fig. 4 is the pin distribution schematic diagram of existing another mobile phone card;
Fig. 5 is the structural schematic diagram that the embodiment of the present invention adjusts device;
Fig. 6 is that another embodiment of the present invention realizes that mobile phone card knows the flow chart of method for distinguishing;
Fig. 7 is a kind of structural block diagram for the terminal for realizing mobile phone card identification of the embodiment of the present invention;
Fig. 8 is that the present invention applies exemplary method flow diagram.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention in each embodiment an optional mobile terminal hardware structural diagram.Such as Fig. 1 institute Show,
Mobile terminal 100 may include display unit 151, memory 160, controller 180 and power supply unit 190 etc.. Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all components shown.It can Alternatively to implement more or fewer components.The element of mobile terminal will be discussed in more detail below.
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch Input pressure and touch input position and touch input area.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.Controller 180 can be with execution pattern identifying processing, will be in touch screen The handwriting input of upper execution or picture draw input and are identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any Line and wireless communication system and satellite-based communication system operate.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the method for the present invention is proposed.
Fig. 2 is that the embodiment of the present invention realizes that mobile phone card knows the flow chart of method for distinguishing, as shown in Figure 2, comprising:
When step 200, mobile phone card recognition failures, the pin that do not respond in initialization process is determined;
Optionally, in present invention method, pin includes at least one of:
Data (Data) pin, clock (CLK) pin and ground connection (GND) pin.
It should be noted that type and the title pin according to involved in initialization process of pin can be adjusted, For the ease of stating the content of present invention, necessary example is carried out to the pin type of mobile phone card and distribution below by way of schematic diagram and is said Bright, Fig. 3 is the pin distribution schematic diagram of existing mobile phone card, as shown in figure 3, mobile phone card golden finger is upward, notch towards lower right, Pin be respectively as follows: pin 1 be power pin (VCC), pin 2 be resetting pin (RST), pin 3 be clock pins, pin 4 is Ground pin, pin 5 are programming voltage pin, pin 6 is input and output pin, and input and output pin is also known as data pipe Foot.Fig. 4 is the pin distribution schematic diagram of existing another mobile phone card, as shown in Figure 4, comprising: mobile phone card pin and distribution phase Together, only the Metal Distribution and design of mobile phone card are adjusted.There are also the design of 8 pins, the hands of 8 pins for SIM card In machine card there are two pin be it is idle, 8 pins be respectively as follows: pin 1VCC, pin 2RST, pin 3CLK, pin 4RFU, Pin 5GND, pin 6VPP, pin 7Data, pin 8RFU;Wherein, pin 4 and pin 8 do not work.In the embodiment of the present invention Mobile phone card includes: client identification module (SIM) card, Global Subscriber identification card (USIM) card, nanometer (Nano) SIM card, miniature (Micro) SIM card, subscriber identification module (UIM) card etc., design principle is identical as SIM card.
Whether pin is responded can carry out test realization using the corresponding test command of each pin, such as high pass public affairs The product of department, Qualcomm devise the test command whether pin is responded;Test command can use existing defined Test command realize, realization can also be designed according to the principle of existing test command, realization principle is identical.
Before step 200, before present invention method further include:
When mobile phone card is placed in terminal, changing to trigger by the state of detection (Detect) foot powers on mobile phone card And enter initialization process;
When carrying out initialization process, mobile phone card is not responded before preset timer spilling, and by stipulated number When repeated attempt mobile phone card is not responded, mobile phone card recognition failures are determined.
It should be noted that mobile phone card merging terminal includes the structure and specification one that mobile phone card specification and terminal place mobile phone card It causes, directly merging terminal;When mobile phone card specification and terminal are not inconsistent, mobile phone card is placed into Kato, is placed in terminal by Kato;Eventually The metal spring leaf connecting with each pin is provided on end, according to mobile phone card pin number and the difference of distribution.
Step 201 gradually carries out pin by preset regulating device to the pin that do not respond in each initialization process Pop-up adjustment;
It should be noted that regulating device can be the device with adjustable spring, it is also possible to the dress with adjustable bolt It sets, the device of adjustable spring position or the adjustment device with similar functions.Fig. 5 is that the embodiment of the present invention adjusts device Structural schematic diagram, as shown in figure 5, to being just adjusted in retaining structure 2, passing through detent knot when controlling to adjust the work of switch 1 The height of structure 2 adjusts, and realizes the pop-up adjustment for the pin connecting with retaining structure 2.In addition, adjustment device can also be referring to adjustable Different colours are saved for the working principle of the gel ink pen of core, different colours are adjusted to the detent of different height, this hair for the detent of core Bright embodiment states its realization principle, and the specific adjustment process that pops up can be adjusted dress by analog signal or digital signal The control set.
Optionally, in present invention method, carrying out pin pop-up adjustment includes:
The thickness difference for calculating mobile phone card maximum gauge and minimum thickness, according to preset times be arranged that each pin bounces away from From passing through the pop-up adjustment that regulating device carries out pin according to the distance that each pin of setting bounces.
It should be noted that the distance bounced every time can be thickness difference divided by number of attempt in the embodiment of the present invention Average value is also possible to be arranged according to preset rules and different bounces distance;Such as number of attempt is 3, if every time The distance bounced is average value of the thickness difference divided by number of attempt, then the distance bounced every time is the one third of thickness difference, such as Fruit thickness difference is 0.99 millimeter, then the distance bounced each time is respectively 0.33 millimeter.The distance bounced every time is according in advance The rule setting of setting it is different bounce distance, such as setting first bounce distance is 50 percent, the second of thickness difference The secondary distance bounced is 30 the percent of thickness difference, and thickness difference remaining 20 percent is popped up for the third time;Specifically Percentages size can be analyzed and be arranged according to pin facilities according to those skilled in the art, such as setting First bounce is 20 the percent of thickness difference apart from the distance for being 40 the percent of thickness difference, bouncing for the second time, thickness Difference remaining 40 percent is popped up for the third time.On the other hand, the direction that pin bounces refers to that pin is leaned on to mobile phone card Close direction, i.e., when pin bounces each time, pin is constantly reducing at a distance from mobile phone card.
It is obtained in addition, being counted after mobile phone card thickness can sample by inquiry in the embodiment of the present invention, it can also be used His analysis method obtains.
After step 202, completion pin pop-up adjustment each time, the initialization process of retriggered mobile phone card, until default Stop mobile phone card when the identification of completion mobile phone card or preset times initialization process fail when initialization process success in number to know Not.
It should be noted that the numerical values recited of preset times according to variety classes terminal carry out initialization process trial when Length is configured, in general, not influencing user if duration needed for terminal carries out an initialization process trial is shorter In the case where experience, the numerical value of preset times can be set as accordingly larger;It is tasted if terminal carries out an initialization process Examination needed for duration it is longer, then in the case where not influencing user experience, the numerical value of preset times can be set as accordingly compared with It is small.In various types of scheme, the product of duration needed for preset times and initialization process trial is general equal or close, and approaching can To be positioned as being no more than the half for comparing initialization process in scheme and attempting required duration, the numerical value of specific preset times Size can be set according to the actual situation, for example, initialization process attempt needed for when a length of average value in the industry, then preset The numerical value of number can be set as 3.
Optionally, in present invention method, the initialization process for re-initiating mobile phone card includes:
Pass through the initialization process of Detect foot hardware trigger mobile phone card;Alternatively,
Using the initialization process of software mode triggering mobile phone card.
It should be noted that by the initialization process of Detect foot hardware trigger mobile phone card mainly pass through again to Detect human hair combing waste send pre-set trigger signal, so that Detect feet state changes, triggering powers on mobile phone card And enter initialization process.The initialization process that software mode triggers mobile phone card is this field when processing software knows card problem The conventional techniques of technical staff, details are not described herein.
When stopping mobile phone card identification, present invention method further include:
Feed back mobile phone card recognition failures information.
It should be noted that mobile phone card identifies successfully if successfully completing initialization process, subsequent mobile phone card is at end The work at end is consistent with existing working method, such as display SIM card normally identifies, if the included related industry of mobile phone card It is engaged in, then network signal and signal quality displayed on the terminals etc., particular content belongs to the common knowledge of those skilled in the art, This is repeated no more.
Above-mentioned technical proposal of the embodiment of the present invention, by using preset tune to the pin that do not respond in each initialization process Regulating device gradually carries out the pop-up adjustment of pin, and carries out initialization process after each pop-up adjustment, knows to mobile phone card hardware Card problem is corrected, and improves the recognition efficiency of mobile phone card.
Fig. 6 is that another embodiment of the present invention realizes that mobile phone card knows the flow chart of method for distinguishing, as shown in Figure 6, comprising:
Step 600, when mobile phone card be placed in terminal, by the state of Detect foot change triggering mobile phone card is carried out Electricity simultaneously enters initialization process;
When step 601, progress initialization process, mobile phone card is not responded before preset timer spilling, and by rule When determining the repeated attempt mobile phone card of number and not responding, mobile phone card recognition failures are determined.
It should be noted that mobile phone card merging terminal includes the structure and specification one that mobile phone card specification and terminal place mobile phone card It causes, directly merging terminal;When mobile phone card specification and terminal are not inconsistent, mobile phone card is placed into Kato, is placed in terminal by Kato;Eventually The metal spring leaf connecting with each pin is provided on end, according to mobile phone card pin number and the difference of distribution.
Step 602 determines the pin that do not respond in initialization process;
Optionally, in present invention method, pin includes at least one of:
Data (Data) pin, clock (CLK) pin and ground connection (GND) pin.
It should be noted that type and the title pin according to involved in initialization process of pin can be adjusted, For the ease of stating the content of present invention, necessary example is carried out to the pin type of mobile phone card and distribution below by way of schematic diagram and is said Bright, the mobile phone card in the embodiment of the present invention includes: SIM card, usim card, Nano SIM card, Micro SIM card, UIM card etc., if It is identical as SIM card to count principle.
Whether pin is responded can carry out test realization using the corresponding test command of each pin, such as high pass public affairs The product of department, Qualcomm devise the test command whether pin is responded;Test command can use existing defined Test command realize, realization can also be designed according to the principle of existing test command, realization principle is identical.
Step 603 gradually carries out pin by preset regulating device to the pin that do not respond in each initialization process Pop-up adjustment;
It should be noted that regulating device can be the device with adjustable spring, it is also possible to the dress with adjustable bolt It sets, the device of adjustable spring position or the adjustment device with similar functions.
Optionally, in present invention method, carrying out pin pop-up adjustment includes:
The thickness difference for calculating mobile phone card maximum gauge and minimum thickness, according to preset times be arranged that each pin bounces away from From passing through the pop-up adjustment that regulating device carries out pin according to the distance that each pin of setting bounces.
It should be noted that the distance bounced every time can be thickness difference divided by number of attempt in the embodiment of the present invention Average value is also possible to be arranged according to preset rules and different bounces distance;If such as number of attempt is 3, every time The distance bounced is average value of the thickness difference divided by number of attempt, then the distance bounced every time is the one third of thickness difference, such as Fruit thickness difference is 0.99 millimeter, then the distance bounced each time is respectively 0.33 millimeter.The distance bounced every time is according in advance The rule setting of setting it is different bounce distance, such as setting first bounce distance is 50 percent, the second of thickness difference The secondary distance bounced is 30 the percent of thickness difference, and thickness difference remaining 20 percent is popped up for the third time;Specifically Percentages size can be analyzed and be arranged according to pin facilities according to those skilled in the art, such as setting First bounce is 20 the percent of thickness difference apart from the distance for being 40 the percent of thickness difference, bouncing for the second time, thickness Difference remaining 40 percent is popped up for the third time.On the other hand, the direction that pin bounces refers to that pin is leaned on to mobile phone card Close direction, i.e., when pin bounces each time, pin is constantly reducing at a distance from mobile phone card.
After step 604, completion pin pop-up adjustment each time, the initialization process of retriggered mobile phone card, until default Stop mobile phone card when the identification of completion mobile phone card or preset times initialization process fail when initialization process success in number to know Not.
It should be noted that the numerical values recited of preset times according to variety classes terminal carry out initialization process trial when Length is configured, in general, not influencing user if duration needed for terminal carries out an initialization process trial is shorter In the case where experience, the numerical value of preset times can be set as accordingly larger;It is tasted if terminal carries out an initialization process Examination needed for duration it is longer, then in the case where not influencing user experience, the numerical value of preset times can be set as accordingly compared with It is small.In various types of scheme, the product of duration needed for preset times and initialization process trial is general equal or close, and approaching can To be positioned as being no more than the half for comparing initialization process in scheme and attempting required duration, the numerical value of specific preset times Size can be set according to the actual situation, for example, initialization process attempt needed for when a length of average value in the industry, then preset The numerical value of number can be set as 3.
Optionally, in present invention method, the initialization process for re-initiating mobile phone card includes:
Pass through the initialization process of Detect foot hardware trigger mobile phone card;Alternatively,
Using the initialization process of software mode triggering mobile phone card.
It should be noted that by the initialization process of Detect foot hardware trigger mobile phone card mainly pass through again to Detect human hair combing waste send pre-set trigger signal, so that Detect feet state changes, triggering powers on mobile phone card And enter initialization process.The initialization process that software mode triggers mobile phone card is this field when processing software knows card problem The conventional techniques of technical staff, details are not described herein.
When stopping mobile phone card identification, present invention method further include:
Feed back mobile phone card recognition failures information.
Above-mentioned technical proposal of the embodiment of the present invention, by using preset tune to the pin that do not respond in each initialization process Regulating device gradually carries out the pop-up adjustment of pin, and carries out initialization process after each pop-up adjustment, knows to mobile phone card hardware Card problem is corrected, and improves the recognition efficiency of mobile phone card.
Fig. 7 is a kind of structural block diagram for the terminal for realizing mobile phone card identification of the embodiment of the present invention, as shown in fig. 7, comprises: pipe Foot determination unit, adjustment unit and initialization unit;Wherein,
Pin determination unit is used for, and when mobile phone card recognition failures, determines the pin that do not respond in initialization process;Here, Pin includes at least one of:
Data pins, clock pins and ground pin.
Adjustment unit is used for, and gradually carries out pipe by preset regulating device to the pin that do not respond in each initialization process The pop-up of foot adjusts;
Initialization unit is used for, after completing pin pop-up adjustment each time, the initialization process of retriggered mobile phone card, directly Stop hand when the identification of completion mobile phone card or preset times initialization process fail when initialization process success in preset times The identification of machine card.
The terminal of that embodiment of the invention further includes identification determination unit, for being placed in terminal when mobile phone card, passes through Detect foot State change triggering mobile phone card is powered on and enters initialization process;
When carrying out initialization process, mobile phone card is not responded before preset timer spilling, and by stipulated number When repeated attempt mobile phone card is not responded, mobile phone card recognition failures are determined.
Adjustment unit is specifically used for,
The pin that do not respond in each initialization process is gradually adjusted in the following ways by preset regulating device It is whole:
The thickness difference for calculating mobile phone card maximum gauge and minimum thickness, according to preset times be arranged that each pin bounces away from From passing through the pop-up adjustment that regulating device carries out pin according to the distance that each pin of setting bounces.
Initialization unit is specifically used for, and after completing pin pop-up adjustment each time, passes through Detect foot again hardware trigger The initialization process of mobile phone card;Alternatively, using the initialization process of software mode retriggered mobile phone card;
Until the identification of completion mobile phone card or preset times initialization process are lost when initialization process success in preset times Stop mobile phone card identification when losing.
The terminal of that embodiment of the invention further includes feedback unit, and when for stopping mobile phone card identification, feedback mobile phone card identification is lost Lose information.
A kind of structural block diagram of terminal that realizing mobile phone card identification, comprising: identification determination unit, is adjusted pin determination unit Whole unit, initialization unit and feedback unit;Wherein,
It identifies determination unit, for being placed in terminal when mobile phone card, is changed by the state of Detect foot and trigger opponent Machine card is powered on and enters initialization process;
When carrying out initialization process, mobile phone card is not responded before preset timer spilling, and by stipulated number When repeated attempt mobile phone card is not responded, mobile phone card recognition failures are determined.
Pin determination unit is used for, and when mobile phone card recognition failures, determines the pin that do not respond in initialization process;Here, Pin includes at least one of:
Data pins, clock pins and ground pin.
Adjustment unit is used for, and gradually carries out pipe by preset regulating device to the pin that do not respond in each initialization process The pop-up of foot adjusts;
Adjustment unit is specifically used for,
The pin that do not respond in each initialization process is gradually adjusted in the following ways by preset regulating device It is whole:
The thickness difference for calculating mobile phone card maximum gauge and minimum thickness, according to preset times be arranged that each pin bounces away from From passing through the pop-up adjustment that regulating device carries out pin according to the distance that each pin of setting bounces.
Initialization unit is used for, after completing pin pop-up adjustment each time, the initialization process of retriggered mobile phone card, directly Stop hand when the identification of completion mobile phone card or preset times initialization process fail when initialization process success in preset times The identification of machine card.
Initialization unit is specifically used for, and after completing pin pop-up adjustment each time, passes through Detect foot again hardware trigger The initialization process of mobile phone card;Alternatively, using the initialization process of software mode retriggered mobile phone card;
Until the identification of completion mobile phone card or preset times initialization process are lost when initialization process success in preset times Stop mobile phone card identification when losing.
Feedback unit feeds back mobile phone card recognition failures information when for stopping mobile phone card identification.
The method of the present invention is carried out to understand detailed description below by way of using example, is only used for stating this hair using example It is bright, it is not intended to limit the present invention the protection scope of method.
Using example
The present invention is UIM card using exemplary mobile phone card, and Fig. 8 is that the present invention applies exemplary method flow diagram, such as Fig. 8 institute Show, comprising:
Step 800, user are inserted into UIM card, and Detect pin changes;
Step 801, mobile phone card is not responded before preset timer spilling, and by the repeated attempt hand of stipulated number When machine card is not responded, mobile phone card recognition failures are determined;
It should be noted that present invention application example, terminal starts to carry out initialization process to UIM card, if receiving UIM Block the response of each pin and respond correctly, then continues follow-up processing flow;
Step 802 determines the pin that do not respond in initialization process;
Step 803 gradually carries out pin by preset regulating device to the pin that do not respond in each initialization process Pop-up adjustment;Present invention application example assumes that the pin that do not respond in initialization process is Data pin, and CLK pin is normal, Pop-up adjustment then is carried out to Data pin.
Carrying out pin pop-up adjustment includes:
The thickness difference for calculating mobile phone card maximum gauge and minimum thickness, according to preset times be arranged that each pin bounces away from From passing through the pop-up adjustment that regulating device carries out pin according to the distance that each pin of setting bounces.
It should be noted that the distance bounced every time can be thickness difference divided by number of attempt in present invention application example Average value, be also possible to be arranged according to preset rules and different bounce distance;In addition, hand in present invention application example Machine card minimum thickness and maximum gauge can be the data obtained after statistical analysis.
After step 804, completion pin pop-up adjustment each time, the initialization process of retriggered mobile phone card, until default Stop mobile phone card when the identification of completion mobile phone card or preset times initialization process fail when initialization process success in number to know Not.
It should be noted that this application example, the pop-up adjustment of pin be can be once, is also possible to repeatedly, if only It carries out once, then when popping up initialization process adjusted failure, stops mobile phone card identification;If it is multiple pop-up adjustment, then Carry out initialization process after pop-up adjustment each time, continue pop-up adjustment next time when initialization process fails, when success after Continuous follow-up processing flow.
Present invention application example, if initialization process failure after preset times pop-up adjustment, to user feedback hand Machine card recognition failures information.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.

Claims (10)

1. a kind of terminal for realizing mobile phone card identification characterized by comprising pin determination unit, adjustment unit and initialization Unit;Wherein,
Pin determination unit is used for, and when mobile phone card recognition failures, determines the pin that do not respond in initialization process;
Adjustment unit is used for, and the thickness difference of mobile phone card maximum gauge and minimum thickness is calculated, to not responding in each initialization process Pin, the distance that each pin bounces is set according to preset times, according to the distance that each pin of setting bounces, passes through tune Regulating device carries out the pop-up adjustment of pin;
Initialization unit is used for, after completing pin pop-up adjustment each time, the initialization process of retriggered mobile phone card, until pre- Stop mobile phone card when if the identification of completion mobile phone card or preset times initialization process failing when initialization process success in number Identification.
2. terminal according to claim 1, which is characterized in that the pin includes at least one of:
Data Data pin, clock CLK pin and ground connection GND pin.
3. terminal according to claim 1, which is characterized in that the terminal further includes identification determination unit, for working as mobile phone Holding enters terminal, and changing to trigger by the state of Detect foot powers on mobile phone card and enter initialization process;
When carrying out initialization process, mobile phone card is not responded before preset timer spilling, and by the repetition of stipulated number When trial mobile phone card is not responded, mobile phone card recognition failures are determined.
4. described in any item terminals according to claim 1~3, which is characterized in that the initialization unit is specifically used for, each After secondary completion pin pop-up adjustment, pass through the initialization process of Detect foot again hardware trigger mobile phone card;Alternatively, using The initialization process of software mode retriggered mobile phone card;
Until when the identification of completion mobile phone card or preset times initialization process fail when initialization process success in preset times Stop mobile phone card identification.
5. described in any item terminals according to claim 1~3, which is characterized in that the terminal further includes feedback unit, is used for institute When stating stopping mobile phone card identification, mobile phone card recognition failures information is fed back.
6. a kind of realization mobile phone card knows method for distinguishing characterized by comprising
When mobile phone card recognition failures, the pin that do not respond in initialization process is determined;
The thickness difference for calculating mobile phone card maximum gauge and minimum thickness, to the pin that do not responded in each initialization process, according to pre- If the distance that each pin bounces is arranged in number, according to the distance that each pin of setting bounces, pipe is carried out by regulating device The pop-up of foot adjusts;
After completing pin pop-up adjustment each time, the initialization process of retriggered mobile phone card, until initialization in preset times Stop mobile phone card identification when the identification of completion mobile phone card or preset times initialization process fail when process success.
7. according to the method described in claim 6, it is characterized in that, the pin includes at least one of:
Data Data pin, clock CLK pin and ground connection GND pin.
8. according to the method described in claim 6, it is characterized in that, before this method further include:
When mobile phone card is placed in terminal, changing to trigger by the state of Detect foot powers on mobile phone card and is entered initially Change process;
When carrying out initialization process, mobile phone card is not responded before preset timer spilling, and by the repetition of stipulated number When trial mobile phone card is not responded, mobile phone card recognition failures are determined.
9. according to the described in any item methods of claim 6~8, which is characterized in that the initialization of the retriggered mobile phone card Process includes:
Pass through the initialization process of Detect foot hardware trigger mobile phone card;Alternatively,
Using the initialization process of software mode triggering mobile phone card.
10. according to the described in any item methods of claim 6~8, which is characterized in that when stopping mobile phone card identification, this method is also Include:
Feed back mobile phone card recognition failures information.
CN201610057318.2A 2016-01-27 2016-01-27 A kind of realization mobile phone card identification method and terminal Active CN105721650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610057318.2A CN105721650B (en) 2016-01-27 2016-01-27 A kind of realization mobile phone card identification method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610057318.2A CN105721650B (en) 2016-01-27 2016-01-27 A kind of realization mobile phone card identification method and terminal

Publications (2)

Publication Number Publication Date
CN105721650A CN105721650A (en) 2016-06-29
CN105721650B true CN105721650B (en) 2018-12-04

Family

ID=56155244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610057318.2A Active CN105721650B (en) 2016-01-27 2016-01-27 A kind of realization mobile phone card identification method and terminal

Country Status (1)

Country Link
CN (1) CN105721650B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600779A (en) * 2018-12-30 2019-04-09 Tcl移动通信科技(宁波)有限公司 A kind of SIM card falls card identification method, intelligent terminal and storage medium
CN110445932B (en) * 2019-08-05 2020-11-10 宇龙计算机通信科技(深圳)有限公司 Abnormal card dropping processing method and device, storage medium and terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201150112Y (en) * 2008-01-28 2008-11-12 宇龙计算机通信科技(深圳)有限公司 Multifunctional slot, module recognition and control apparatus as well as mobile communication terminal
CN101833635A (en) * 2010-05-11 2010-09-15 中兴通讯股份有限公司 T-card identification method and device
CN101894246A (en) * 2010-06-07 2010-11-24 北京飞天诚信科技有限公司 Card reader and method capable of judging existence and normality of card
CN102142093A (en) * 2011-03-24 2011-08-03 青岛海信移动通信技术股份有限公司 Operation method and device for memory card
CN105188050A (en) * 2014-05-27 2015-12-23 中兴通讯股份有限公司 Card dynamic bonding method, equipment and system
CN105228125A (en) * 2014-05-27 2016-01-06 中兴通讯股份有限公司 A kind of smart card dynamic binding method, apparatus and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4162166B2 (en) * 1998-08-28 2008-10-08 大日本印刷株式会社 IC card with variable response time
JP2001067303A (en) * 1999-08-24 2001-03-16 Toshiba Corp Card utilizing device and card utilizing method in the same
KR101543582B1 (en) * 2009-03-02 2015-08-11 삼성전자주식회사 Memory card memory card reader and memory card system
US8683090B2 (en) * 2012-04-19 2014-03-25 Apple Inc. Methods, systems and apparatus for determining whether an accessory includes particular circuitry
CN104216850B (en) * 2013-05-31 2018-06-19 鸿富锦精密电子(天津)有限公司 Interface transmission device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201150112Y (en) * 2008-01-28 2008-11-12 宇龙计算机通信科技(深圳)有限公司 Multifunctional slot, module recognition and control apparatus as well as mobile communication terminal
CN101833635A (en) * 2010-05-11 2010-09-15 中兴通讯股份有限公司 T-card identification method and device
CN101894246A (en) * 2010-06-07 2010-11-24 北京飞天诚信科技有限公司 Card reader and method capable of judging existence and normality of card
CN102142093A (en) * 2011-03-24 2011-08-03 青岛海信移动通信技术股份有限公司 Operation method and device for memory card
CN105188050A (en) * 2014-05-27 2015-12-23 中兴通讯股份有限公司 Card dynamic bonding method, equipment and system
CN105228125A (en) * 2014-05-27 2016-01-06 中兴通讯股份有限公司 A kind of smart card dynamic binding method, apparatus and system

Also Published As

Publication number Publication date
CN105721650A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN106210307B (en) Mobile terminal and screen switching
CN107810468B (en) Application program switching method and electronic equipment applying same
CN105893955B (en) Fingerprint identification device and method
CN107390967B (en) Method for displaying application and electronic device thereof
KR102207114B1 (en) Card Interface and Electronic Device, and Operating method including the same
KR20160085190A (en) Bendable User Terminal device and Method for displaying thereof
CN109283996B (en) Display control method and related product
CN103338290A (en) A method for automatically testing performance of an Android handset
WO2021003673A1 (en) Content pushing method and related product
KR102652362B1 (en) Electronic apparatus and controlling method thereof
CN105653160A (en) Text determining method and terminal
CN106528158A (en) Method and device for mounting memory card and mobile terminal
US20160085424A1 (en) Method and apparatus for inputting object in electronic device
CN105721650B (en) A kind of realization mobile phone card identification method and terminal
EP3125101A1 (en) Screen controlling method and electronic device for supporting the same
CN106095477A (en) Application erecting device and method
CN106201295B (en) Message copying method and device and intelligent terminal
US10185724B2 (en) Method for sorting media content and electronic device implementing same
US11182071B2 (en) Apparatus and method for providing function associated with keyboard layout
CN105718356A (en) Device and method for counting electric energy use time
CN105721015A (en) Dual-channel mobile terminal capable of multiplexing Flash ROM
CN106095744B (en) Irregular control icons processing unit and method
CN107766549A (en) Text delet method and device, terminal installation and readable storage medium storing program for executing
CN110796673A (en) Image segmentation method and related product
CN106095164B (en) A kind of method and terminal incuding screen spot

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant