CN108322905A - A kind of method for reading data and mobile terminal - Google Patents
A kind of method for reading data and mobile terminal Download PDFInfo
- Publication number
- CN108322905A CN108322905A CN201810053824.3A CN201810053824A CN108322905A CN 108322905 A CN108322905 A CN 108322905A CN 201810053824 A CN201810053824 A CN 201810053824A CN 108322905 A CN108322905 A CN 108322905A
- Authority
- CN
- China
- Prior art keywords
- data
- sim card
- card
- mobile terminal
- storage unit
- 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
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004590 computer program Methods 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 5
- 230000003993 interaction Effects 0.000 abstract description 3
- 230000006854 communication Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 11
- 238000012545 processing Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000033001 locomotion Effects 0.000 description 4
- 238000011084 recovery Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 210000004027 cell Anatomy 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000009849 deactivation Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 210000000352 storage cell Anatomy 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72436—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
-
- 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/20—Transfer of user or subscriber data
- H04W8/205—Transfer to or from user equipment or user record carrier
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
Abstract
A kind of method for reading data of present invention offer and mobile terminal, this method include:Mobile terminal is provided with user identification module SIM card and data buffer storage unit, and the data buffer storage unit is cached with the data of SIM card, first data read request of the acquisition for mobile terminal for the first data of SIM card in advance;In the case of having cached first data in the data buffer storage unit, first data are read from the data buffer storage unit.In this way, even if SIM card is in card-like state, mobile terminal can also directly read first data from data buffer storage unit, reduce mobile terminal and the frequency of interaction of SIM card, so as to improve mobile terminal accessing SIM card data success rate.
Description
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of method for reading data and mobile terminal.
Background technology
With the fast development of the communication technology, mobile terminal is put into use as means of communication more and more widely.It moves
Dynamic terminal inner is commonly configured with communication module to realize the transmitting and reception of wireless signal, and passes through SIM (Subscriber
Identification Module, user identification module) card stores subscriber identity information and encryption key etc., with
User identity identification is carried out for network and user's communication information is encrypted.
During the use of mobile terminal, mobile terminal can be accessed when SIM card is in available mode in SIM card
Data, and SIM card once occur and fall card, mobile terminal will be unable to access the data of SIM card, lead to mobile terminal accessing SIM card
Data success rate it is relatively low.
Invention content
A kind of method for reading data of offer of the embodiment of the present invention and mobile terminal, to solve existing mobile terminal accessing SIM
The relatively low problem of the success rates of the data of card.
In a first aspect, an embodiment of the present invention provides a kind of method for reading data, applied to being provided with user identity identification
The mobile terminal of Module SIM card, the mobile terminal is additionally provided with data buffer storage unit, and the data buffer storage unit delays in advance
There are the data of SIM card, the method for reading data includes:
Obtain the first data read request of the first data for SIM card;
In the case of having cached first data in the data buffer storage unit, read from the data buffer storage unit
Take first data;
Wherein, first data include in user ID data, mark data, contact data and note data
At least one of.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, and the mobile terminal is provided with user identity knowledge
Other Module SIM card and data buffer storage unit, and the data buffer storage unit is cached with the data of SIM card in advance, it is described mobile whole
End includes:
First acquisition module, the first data read request for obtaining the first data for SIM card;
First read module, in the case of for having cached first data in the data buffer storage unit, from institute
It states and reads first data in data buffer storage unit;
Wherein, first data include in user ID data, mark data, contact data and note data
At least one of.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, the mobile terminal include processor, memory and
It is stored in the computer program that can be run on the memory and on the processor, the computer program is by the processing
Device realizes method for reading data as described above when executing.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, the computer-readable storage medium
Computer program is stored in matter, the computer program realizes method for reading data as described above when being executed by processor.
In the embodiment of the present invention, mobile terminal is provided with user identification module SIM card and data buffer storage unit, and institute
State the data that data buffer storage unit is cached with SIM card in advance, first data of the acquisition for mobile terminal for the first data of SIM card
Read requests;In the case of having cached first data in the data buffer storage unit, from the data buffer storage unit
Read first data.In this way, even if the SIM card of mobile terminal is in card-like state, mobile terminal can also be directly from number
According to first data are read in buffer unit, mobile terminal and the frequency of interaction of SIM card are reduced, so as to improve movement
The success rate of the data of terminal access SIM card.
Description of the drawings
Fig. 1 is the flow chart of method for reading data provided in an embodiment of the present invention;
Fig. 2 is one of the structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 3 is the two of the structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 4 is the three of the structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is the four of the structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 6 is the five of the structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 7 is the six of the structure chart of mobile terminal provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
The SIM card method for reading data of the embodiment of the present invention can be applied to be equipped with SIM (Subscriber
Identification Module, user identification module) card, and it is provided with the mobile terminal of data buffer storage unit.Its
In, data buffer storage unit is used to cache the data of SIM card.
In the embodiment of the present invention, mobile terminal can be mobile phone, tablet computer (Tablet Personal Computer),
Laptop computer (Laptop Computer), personal digital assistant (personal digital assistant, abbreviation PDA),
Mobile Internet access device (Mobile Internet Device, MID) or wearable device (Wearable Device) etc..Number
Can be integrated circuit or integrated chip etc. according to storage unit.
Referring to Fig. 1, Fig. 1 is the flow chart for the method for reading data that one embodiment of the invention provides, as shown in Figure 1, this
The method for reading data of embodiment includes the following steps:
Step 101, the first data read request for obtaining the first data for being directed to SIM card.
It, can be with when some data of the application program of mobile terminal or operating system demand SIM card in the present embodiment
Send the data read request of the data for SIM card.In this step, the data of the SIM card of mobile terminal demand are regarded
For the first data of SIM card, to read first data.
It can be stored in SIM card and carry out the subscriber identity information of authentication, the identification information of SIM card for network, such as
ICCID (Integrate circuit card identity integrated circuits card identification code), associated person information, short message etc.
Data information.Hence, it will be appreciated that, the first data include but are not limited to user ID data, mark data, contact data
At least one of and in note data.
Step 102, in the case of cached first data in the data buffer storage unit, from the data buffer storage
First data are read in unit.
In the present embodiment, data buffer storage unit is provided on mobile terminal, and data buffer storage unit is cached with SIM card in advance
Data, i.e. mobile terminal can in the data store back up the data of SIM.In practical applications, mobile whole
End can be during being switched on or changing SIM card, will be in the data buffer storage to data buffer storage unit of SIM card.
Specifically, data buffer storage unit can cache all data in SIM card, can also only cache the portion in SIM card
Divided data.In addition, for the nonessential data in SIM card, if mobile terminal detects SIM card, there are data corruptions, move
Terminal can build a virtual default data in data buffer storage unit.
It is to be understood that data buffer storage unit can directly be accessed for the application program or operating system of mobile terminal, read
Its data cached.
Therefore, in the case of having cached first data in the data buffer storage unit, the application journey of mobile terminal
Sequence or operating system can send the data read request of first data for SIM card to data buffer storage unit, with
Notification data buffer unit is that the reading of first data is prepared, in this way, sending the data of the first data for SIM card
The application program or operating system of read requests can directly read first data from the data buffer storage unit, be not necessarily to
SIM card is accessed, to improve the success rate for the data for accessing SIM card when SIM card is in card-like state.
For convenience of understanding, illustrated so that the first data are the short message A being stored in SIM card as an example.It should be understood that working as
When the short message A of user's touch-control short message application program, illustrate that user thinks that browsing takes short message A.Therefore, mobile terminal is detecting user
For short message A touch control operation when, the case where short message application program can cache short message A in the data storage cell
Under, the data read request for short message A is sent to data buffer storage unit, with the short message reading A directly from data buffer storage unit
Data, and show the content of short message A on the screen, short message A taken for user's browsing.
The method for reading data of the present embodiment obtains the first data read request of the first data for SIM card;Institute
It states in the case of having cached first data in data buffer storage unit, first number is read from the data buffer storage unit
According to.In this way, even if the SIM card of mobile terminal is in card-like state, mobile terminal can also directly be read from data buffer storage unit
First data are taken, mobile terminal and the frequency of interaction of SIM card are reduced, so as to improve mobile terminal accessing SIM card
Data success rate.
It should be understood that in the data buffer storage unit in the case of uncached first data, mobile terminal can
To attempt to read first data from SIM card, alternatively, mobile terminal can stop reading first data, but not only
It is limited to this.
Optionally, after first data read request for obtaining the first data for being directed to SIM card, further include:
In the data buffer storage unit in the case of uncached first data, described first is read from SIM card
Data.
In this step, first data of uncached mobile terminal demand in data buffer storage unit, then mobile terminal
Application program or operating system can send the data read request of first data for SIM card to SIM card, with logical
Know that SIM card is that the reading of first data is prepared, in this way, sending the data read request of the first data for SIM card
Application program or operating system first data can be read from SIM card.
It is to be understood that whether mobile terminal can read first data from SIM card, it is also necessary to according to mobile terminal
Actual conditions determine.Specifically, if first data in SIM card are normal, and mobile terminal communicates normally with SIM card,
Then mobile terminal can succeed reads first data from SIM card.However, if first data in SIM card are deposited
In exception, the first data are destroyed as described in SIM card;Alternatively, mobile terminal and SIM card communication abnormality, such as mobile whole
End and SIM card poor contact or the failure of mobile terminal and the communication line of SIM card etc., cause mobile terminal not when default
It is interior to receive first data, then it can determine that mobile terminal does not read first data from SIM card.
Therefore, further, described after reading first data in SIM card, further include:
If not reading first data, the SIM card state of the mobile terminal is obtained;
In the case where the SIM card is in card-like state, execution, which powers on, looks for card to operate.
In this step, if sent in mobile terminal the first digital independent data application program or operating system not from SIM
In read first data, then mobile terminal can look for card operation by executing to power on for most c time, to obtain mobile terminal
SIM card state.Wherein, c is the natural number more than or equal to 1;It powers on the upper piezoelectric voltage for looking for card to operate and powers on the duration
It can be configured according to the electrical characteristic of SIM card, if the upper piezoelectric voltage of SIM card is configurable to 1.8v or 3.0v, power on and hold
The continuous time is not less than 960ms.
In some embodiments, for SIM card of the duration not less than 960ms is powered on, mobile terminal can be to SIM
Card, which power on for most one second primary c time, looks for card operation.If mobile terminal powers on the process for looking for card to operate most c times in execution
In, the data of SIM card return are received, illustrate to power on and looks for card to operate successfully giving SIM card for change, it may be determined that SIM card is in can be used
State, in this state, when mobile terminal is to SIM card transmission data read requests, it is most likely that read the data of request;If
It executes after powering on for c time card being looked for operate, does not receive the data that SIM card returns yet, illustrate to power on and card is looked for operate to fail and give for change
SIM card, it may be determined that SIM card is in card-like state, in this state, when mobile terminal is to SIM card transmission data read requests,
The data of request cannot very likely be read.
It is different from the prior art after determining that SIM card is in card-like state, mobile terminal initiates the stream of network attachment removal
Journey leads to not realize network communication.In this step when determining that SIM card is in card-like state, mobile terminal can be held again
Row, which powers on, looks for card to operate.Wherein, mobile terminal can pass through different triggerings when determining that the SIM card is in card-like state
Condition triggering powers on the execution for looking for card to operate.The different trigger conditions for looking for card to operate are powered on to triggering below to be illustrated below.
Mode one, in the case where the SIM card is in card-like state and gets the second data read request, execute
It powers on and card is looked for operate.
In the embodiment, it is acquisition for mobile terminal to the second data read request to power on the trigger condition for looking for card to operate,
I.e. mobile terminal could be triggered and be powered on only when getting the second data read request that application program or operating system are sent
The execution for looking for card to operate.
It should be noted that the first data read request and the second data read request, which can be mobile terminals, is directed to SIM
The data read request that the different data of card is sent, such as:First data read request can be the talk application of mobile terminal
The data read request that program pin sends the data information of the A contact persons of SIM card, the second data read request can be mobile
The data read information that the short message application program of terminal is sent for the data information of the B short messages of SIM card.
Mode two is in card-like state in the SIM card, and starts timer, and reaches and set in the timer
In the case of time, execution, which powers on, looks for card to operate.
In the embodiment, powers on the timer that the trigger condition for looking for card to operate is mobile terminal and be activated, and timer
The predetermined time is reached, i.e. for mobile terminal in the case where detecting that timer reaches setting time, triggering, which powers on, looks for card operation
It executes.Wherein, timer can power on interval timer, i.e., in the case where timer reaches setting time, notice movement
Terminal execution, which powers on, looks for card to operate.
During timer is not up to the predetermined time, mobile terminal shielding, which may terminate to power on, looks for card to operate or power on again
The process for looking for card to operate avoids electrical interface called such as the hot plug interrupt of SIM card, and guarantee, which powers on, looks for card operation can be smoothly
It carries out.
In addition, in certain specific embodiments, start timer in mode two, and powers on the execution for looking for card to operate
Main body can be arranged in mobile terminal card recovery unit.Specifically, when pawning card recovery unit and being in enabled state, fall
Card recovery unit can start timer, and in the case where the timer reaches setting time, and execution, which powers on, looks for card to operate;
If falling card recovery unit to be closed, mobile terminal can carry out deactivation processing to SIM card, that is, delete mobile terminal
The related data of the SIM card of middle data buffer storage unit caching, SIM card are in card-like state.
In this way, being different from the prior art, the embodiment of the present invention can also be performed and power in the case where SIM card is in card-like state
It looks for card to operate, further increases the success rate of the data of mobile terminal accessing SIM card.
In addition, compared with the passive triggering of mode one powers on the execution for looking for card to operate, the active triggering of mode two, which powers on, looks for
The execution of card operation other business can not be influenced by mobile terminal, and practicability is stronger.
It is to be understood that after SIM card is in card-like state, mobile terminal, which can execute most n times and power on, looks for card to operate,
In, n is the natural number more than or equal to 1, and when n is more than 1, mobile terminal execution poll, which powers on, looks for card to operate, i.e., cycle executes
It powers on and card is looked for operate, until mobile terminal powers on to look in n times receives the data or reach n times that SIM card returns in card operation
It powers on and card is looked for operate.In addition, powering on the process for looking for card to operate and the above-mentioned process for determining the state of the SIM card of mobile terminal
It is identical, foregoing description is specifically referred to, to avoid repeating, details are not described herein.
Optionally, the execution, which powers on, looks for after card operation, further includes:
In the case where getting the second data of SIM card return, determine that the SIM card is in available mode;It is not obtaining
In the case of the second data for getting SIM card return, determine that the SIM card is in card-like state.
Wherein, second data are to power on that card is looked for operate described in the SIM card response in available mode, the SIM of return
Card mark data.ICCID can specifically be shown as, and (Integrate circuit card identity integrated circuit cards identify
Code), IMSI (International Mobile Subscriber Identity, international mobile subscriber identity) etc..Certainly,
In certain embodiments, the second data can also be other data, and the embodiment of the present invention is not construed as limiting this.
Optionally, it is described get SIM card return the second data in the case of after, further include:
The data cached in advance in the data buffer storage unit are not erased entirely, and second data are delayed with described
In the case of the corresponding SIM card mark of the data that are cached in advance in memory cell is unmatched, delete in the data buffer storage unit
All data of caching.
In the present embodiment, after SIM card is in card-like state, mobile terminal can clear data it is all in buffer unit or
The data for the SIM card that part caches in advance, can specifically determine, the embodiment of the present invention is not construed as limiting this according to actual needs.
In addition, there are correspondences for the data cached and SIM card mark in data buffer storage unit, in this way, mobile terminal can
To identify the corresponding SIM card mark of the data in data buffer storage unit, and then the SIM card being currently installed on by judging mobile terminal
Identify whether the mark matching of corresponding with the data in data buffer storage unit SIM card, to judge whether mobile terminal replaces card.
Therefore, if detecting, the data of the SIM card cached in advance in data buffer storage unit are not erased entirely, are being obtained
To power on look for card operate after SIM card return the second data when, mobile terminal needs further to judge that second data are
No corresponding with data that are being cached in advance in buffer unit SIM card mark matching, with determine mobile terminal SIM card whether
It has replaced.
Specifically, if second data SIM card mark corresponding with the data cached in advance in the data buffer storage unit
Know matching, then illustrates that mobile terminal does not replace SIM card, and SIM card restores normal work;If second data and the caching
The corresponding SIM card mark of data cached in advance in unit mismatches, then illustrates that the SIM card of mobile terminal has been replaced, mobile whole
End can delete all data of the caching in the data buffer storage unit, and the data to cache current SIM card are prepared.
It further, can be by the SIM card being currently installed on when mobile terminal executes power on operation or booting again
In data backup to data buffer storage unit.So as to improve the SIM card that data buffer storage unit caching mobile terminal is currently installed on
Data capacity.
The embodiment of the present invention also provides a kind of mobile terminal, and the mobile terminal is provided with user identification module SIM
Card and data buffer storage unit, and the data buffer storage unit is cached with the data of SIM card in advance.Fig. 2 is referred to, Fig. 2 is this hair
The structure chart for the mobile terminal that a bright embodiment provides, as shown in Fig. 2, the mobile terminal 200 of the present embodiment includes:First obtains
Module 201 and the first read module 202.
Wherein, the first acquisition module 201, the first data read request for obtaining the first data for SIM card;
First read module 202, in the case of for having cached first data in the data buffer storage unit, from
First data are read in the data buffer storage unit;
Wherein, first data include in user ID data, mark data, contact data and note data
At least one of.
Optionally, as shown in figure 3, mobile terminal 200 further includes:
Second read module 203 is used in the data buffer storage unit in the case of uncached first data, from
First data are read in SIM card.
Optionally, as shown in figure 4, mobile terminal 200 further includes:
Second acquisition module 204, for after reading first data in SIM card, not reading described
In the case of one data, the SIM card state of the mobile terminal is obtained;
Execution module 205 looks for card to operate in the case where the SIM card is in card-like state, executing to power on.
Optionally, execution module 205 are specifically used for:
In the case where the SIM card is in card-like state and gets the second data read request, execution, which powers on, looks for card
Operation;
Alternatively, being in card-like state in the SIM card, and start timer, and when the timer reaches default
Between in the case of, execution power on looks for card operation.
Optionally, as shown in figure 5, mobile terminal 200 further includes:
First determining module 206, after powering on and card is looked for operate in execution, if getting the second number of SIM card return
According to, it is determined that the SIM card is in available mode;
Second determining module 207, after powering on and card is looked for operate in execution, if the second of SIM card return has not been obtained
Data, it is determined that the SIM card is in card-like state;
Wherein, second data are to power on that card is looked for operate described in the SIM card response in available mode, the SIM of return
Card mark data.
Optionally, as shown in fig. 6, mobile terminal 200 further includes:
Removing module 208, the data for being cached in advance in the data buffer storage unit are not erased entirely, and described
In the case of second data SIM card mark corresponding with the data cached in advance in the data buffer storage unit is unmatched, delete
All data of caching in the data buffer storage unit.
Mobile terminal 200 can realize each process in the method for the present invention embodiment, and reach identical beneficial to effect
Fruit, to avoid repeating, which is not described herein again.
Referring to FIG. 7, Fig. 7 is the structure chart for the mobile terminal that further embodiment of this invention provides, which can be with
The hardware architecture diagram of a kind of mobile terminal of each embodiment to realize the present invention.As shown in fig. 7, mobile terminal 700 wraps
It includes but is not limited to:Radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display
The components such as unit 706, user input unit 707, interface unit 708, memory 709, processor 710 and power supply 711.This
Field technology personnel are appreciated that mobile terminal structure shown in Fig. 7 does not constitute the restriction to mobile terminal, mobile terminal
May include either combining certain components or different components arrangement than illustrating more or fewer components.Of the invention real
It applies in example, mobile terminal is provided with user identification module SIM card and data buffer storage unit, and the data buffer storage unit is pre-
First it is cached with the data of SIM card, wherein data buffer storage unit can be one in the storage data field that memory 709 includes
Unit.Mobile terminal includes but not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable sets
Standby and pedometer etc..
Wherein, processor 710 are used for:
Obtain the first data read request of the first data for SIM card;
In the case of having cached first data in the data buffer storage unit, read from the data buffer storage unit
Take first data;
Wherein, first data include in user ID data, mark data, contact data and note data
At least one of.
Optionally, processor 710 are additionally operable to:
In the data buffer storage unit in the case of uncached first data, described first is read from SIM card
Data.
Optionally, processor 710 are additionally operable to:
In the case where not reading first data, the SIM card state of the mobile terminal is obtained;
In the case where the SIM card state is in card-like state, execution, which powers on, looks for card to operate.
Optionally, processor 710 are additionally operable to:
In the case where getting the second data read request, execution, which powers on, looks for card to operate;
Alternatively, start timer, and in the case where the timer reaches setting time, execution, which powers on, looks for card to operate.
Optionally, processor 710 are additionally operable to:
In the case where getting the second data of SIM card return, determine that the SIM card is in available mode;
In the case where the second data of SIM card return have not been obtained, determine that the SIM card is in card-like state;
Wherein, second data are to power on that card is looked for operate described in the SIM card response in available mode, the SIM of return
Card mark data.
Optionally, processor 710 are additionally operable to:
The data cached in advance in the data buffer storage unit are not erased entirely, and second data are delayed with described
In the case of the corresponding SIM card mark of the data that are cached in advance in memory cell is unmatched, delete in the data buffer storage unit
All data of caching.
It should be noted that method implementation in the embodiment of the present invention may be implemented in above-mentioned mobile terminal 700 in the present embodiment
Each process in example, and reach identical advantageous effect, to avoid repeating, details are not described herein again.
It should be understood that the embodiment of the present invention in, radio frequency unit 701 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 710 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 701 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 701 can also by radio communication system and network and other set
Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 702 and has accessed, and such as user is helped to receive
Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 703 can receive radio frequency unit 701 or network module 702 or in memory 709
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 703 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 700 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 703 includes loud speaker, buzzer and receiver etc..
Input unit 704 is for receiving audio or video signal.Input unit 704 may include graphics processor
(Graphics Processing Unit, GPU) 7041 and microphone 7042, graphics processor 7041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 706.Through graphics processor 7041, treated that picture frame can be deposited
Storage is sent in memory 709 (or other storage mediums) or via radio frequency unit 701 or network module 702.Mike
Wind 7042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output of mobile communication base station can be sent to via radio frequency unit 701 by being converted in the case of telephone calling model.
Mobile terminal 700 further includes at least one sensor 705, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 7061, and proximity sensor can close when mobile terminal 700 is moved in one's ear
Display panel 7061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 705 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 706 is for showing information input by user or being supplied to the information of user.Display unit 706 can wrap
Display panel 7061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 7061.
User input unit 707 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family is arranged and the related key signals input of function control.Specifically, user input unit 707 include touch panel 7071 and
Other input equipments 7072.Touch panel 7071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 7071 or in touch panel 7071
Neighbouring operation).Touch panel 7071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 710, receiving area
It manages the order that device 710 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch panel 7071.In addition to touch panel 7071, user input unit 707 can also include other input equipments
7072.Specifically, other input equipments 7072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 7071 can be covered on display panel 7061, when touch panel 7071 is detected at it
On or near touch operation after, send processor 710 to determine the type of touch event, be followed by subsequent processing device 710 according to touch
The type for touching event provides corresponding visual output on display panel 7061.Although in the figure 7, touch panel 7071 and display
Panel 7061 is to realize the function that outputs and inputs of mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 7071 and display panel 7061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place does not limit.
Interface unit 708 is the interface that external device (ED) is connect with mobile terminal 700.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 708 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 700 or can be used in 700 He of mobile terminal
Transmission data between external device (ED).
Memory 709 can be used for storing software program and various data.Memory 709 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 709 may include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 710 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 709, and calls and is stored in storage
Data in device 709 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Reason device 710 may include one or more processing units;Preferably, processor 710 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 710.
Mobile terminal 700 can also include the power supply 711 (such as battery) powered to all parts, it is preferred that power supply 711
Can be logically contiguous by power-supply management system and processor 710, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 700 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 710, and memory 709 is stored in
On memory 709 and the computer program that can be run on the processor 710, the computer program are executed by processor 710
Each process of the above-mentioned image processing method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here
It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned method for reading data embodiment, and energy when being executed by processor
Reach identical technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only
Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within the protection of the present invention.
Claims (14)
1. a kind of SIM card method for reading data, special applied to the mobile terminal for being equipped with user identification module SIM card
Sign is that the mobile terminal is additionally provided with data buffer storage unit, and the data buffer storage unit is cached with the number of SIM card in advance
According to the method for reading data includes:
Obtain the first data read request of the first data for SIM card;
In the case of having cached first data in the data buffer storage unit, institute is read from the data buffer storage unit
State the first data;
Wherein, first data include in user ID data, mark data, contact data and note data at least
One.
2. method for reading data according to claim 1, which is characterized in that first data obtained for SIM card
The first data read request after, further include:
In the data buffer storage unit in the case of uncached first data, first data are read from SIM card.
3. method for reading data according to claim 2, which is characterized in that described to read first number from SIM card
According to later, further include:
In the case where not reading first data, the SIM card state of the mobile terminal is obtained;
In the case where the SIM card state is in card-like state, execution, which powers on, looks for card to operate.
4. method for reading data according to claim 3, which is characterized in that the execution, which powers on, looks for card to operate, including:
In the case where getting the second data read request, execution, which powers on, looks for card to operate;
Alternatively, start timer, and in the case where the timer reaches setting time, execution, which powers on, looks for card to operate.
5. method for reading data according to claim 3 or 4, which is characterized in that the execution, which powers on, looks for after card operation,
Further include:
In the case where getting the second data of SIM card return, determine that the SIM card is in available mode;
In the case where the second data of SIM card return have not been obtained, determine that the SIM card is in card-like state;
Wherein, second data are to power on that card is looked for operate described in the SIM card response in available mode, the SIM card mark of return
Know data.
6. method for reading data according to claim 5, which is characterized in that described to get the second of SIM card return
After in the case of data, further include:
The data cached in advance in the data buffer storage unit are not erased entirely, and second data and the caching are single
In the case of the corresponding SIM card mark of the data that are cached in advance in member is unmatched, the caching in the data buffer storage unit is deleted
All data.
7. a kind of mobile terminal, which is characterized in that the mobile terminal is provided with user identification module SIM card and data are slow
Memory cell, and the data buffer storage unit is cached with the data of SIM card in advance, the mobile terminal includes:
First acquisition module, the first data read request for obtaining the first data for SIM card;
First read module, in the case of for having cached first data in the data buffer storage unit, from the number
According to reading first data in buffer unit;
Wherein, first data include in user ID data, mark data, contact data and note data at least
One.
8. mobile terminal according to claim 7, which is characterized in that further include:
Second read module, in the case that uncached first data make in the data buffer storage unit, from SIM card
It is middle to read first data.
9. mobile terminal according to claim 8, which is characterized in that further include:
Second acquisition module, for after reading first data in SIM card, not reading first data
In the case of, obtain the SIM card state of the mobile terminal;
Execution module looks for card to operate in the case where the SIM card is in card-like state, executing to power on.
10. mobile terminal according to claim 9, which is characterized in that the execution module is specifically used for:
In the case where the SIM card is in card-like state and gets the second data read request, execution, which powers on, looks for card to grasp
Make;
Alternatively, being in card-like state in the SIM card, and start timer, and preset time is reached in the timer
In the case of, execution, which powers on, looks for card to operate.
11. mobile terminal according to claim 9 or 10, which is characterized in that further include:
First determining module, after powering on and card is looked for operate in execution, if getting the second data of SIM card return, really
The fixed SIM card is in available mode;
Second determining module, after powering on and card looked for operate in execution, if the second data of SIM card return have not been obtained,
Determine that the SIM card is in card-like state;
Wherein, second data are to power on that card is looked for operate described in the SIM card response in available mode, the SIM card mark of return
Know data.
12. mobile terminal according to claim 11, which is characterized in that further include:
Removing module, the data for being cached in advance in the data buffer storage unit are not erased entirely, and second number
According to SIM card corresponding with the data cached in advance in the data buffer storage unit mark it is unmatched in the case of, delete the number
According to all data of the caching in buffer unit.
13. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 6 is realized when the computer program is executed by the processor
Any one of described in method for reading data.
14. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes such as digital independent side according to any one of claims 1 to 6 when the computer program is executed by processor
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810053824.3A CN108322905A (en) | 2018-01-19 | 2018-01-19 | A kind of method for reading data and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810053824.3A CN108322905A (en) | 2018-01-19 | 2018-01-19 | A kind of method for reading data and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108322905A true CN108322905A (en) | 2018-07-24 |
Family
ID=62894106
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810053824.3A Pending CN108322905A (en) | 2018-01-19 | 2018-01-19 | A kind of method for reading data and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108322905A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109640313A (en) * | 2018-11-29 | 2019-04-16 | Tcl移动通信科技(宁波)有限公司 | Processing method, mobile terminal and storage medium is arranged in mobile terminal LTE open loop |
CN111182143A (en) * | 2019-12-27 | 2020-05-19 | 宇龙计算机通信科技(深圳)有限公司 | Card holder taking-out method, device, storage medium and terminal |
CN116483737A (en) * | 2023-04-18 | 2023-07-25 | 深圳市金玺智控技术有限公司 | Data processing method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102098390A (en) * | 2011-03-15 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Method for recovering subscriber identity module (SIM) of mobile phone in case of data transmission error and mobile phone |
CN102236530A (en) * | 2010-04-23 | 2011-11-09 | 广州盛华信息技术有限公司 | System for realizing mobile phone buffer memory mechanism and method for loading mobile phone operation system |
CN104079724A (en) * | 2014-06-27 | 2014-10-01 | 广东欧珀移动通信有限公司 | Mobile phone card losing recovery method and mobile terminal applying mobile phone card |
CN104580695A (en) * | 2014-12-08 | 2015-04-29 | 深圳市广和通实业发展有限公司 | Card missing recovery method for SIM (subscriber identity module) card |
CN105072606A (en) * | 2015-09-01 | 2015-11-18 | 上海斐讯数据通信技术有限公司 | A mobile terminal SIM card information rapid reading method and device |
US20160105540A1 (en) * | 2014-10-02 | 2016-04-14 | Samsung Electronics Co., Ltd. | Apparatus and method for displaying user interface |
CN107506154A (en) * | 2017-09-26 | 2017-12-22 | 郑州云海信息技术有限公司 | A kind of read method of metadata, device and computer-readable recording medium |
-
2018
- 2018-01-19 CN CN201810053824.3A patent/CN108322905A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102236530A (en) * | 2010-04-23 | 2011-11-09 | 广州盛华信息技术有限公司 | System for realizing mobile phone buffer memory mechanism and method for loading mobile phone operation system |
CN102098390A (en) * | 2011-03-15 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Method for recovering subscriber identity module (SIM) of mobile phone in case of data transmission error and mobile phone |
CN104079724A (en) * | 2014-06-27 | 2014-10-01 | 广东欧珀移动通信有限公司 | Mobile phone card losing recovery method and mobile terminal applying mobile phone card |
US20160105540A1 (en) * | 2014-10-02 | 2016-04-14 | Samsung Electronics Co., Ltd. | Apparatus and method for displaying user interface |
CN104580695A (en) * | 2014-12-08 | 2015-04-29 | 深圳市广和通实业发展有限公司 | Card missing recovery method for SIM (subscriber identity module) card |
CN105072606A (en) * | 2015-09-01 | 2015-11-18 | 上海斐讯数据通信技术有限公司 | A mobile terminal SIM card information rapid reading method and device |
CN107506154A (en) * | 2017-09-26 | 2017-12-22 | 郑州云海信息技术有限公司 | A kind of read method of metadata, device and computer-readable recording medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109640313A (en) * | 2018-11-29 | 2019-04-16 | Tcl移动通信科技(宁波)有限公司 | Processing method, mobile terminal and storage medium is arranged in mobile terminal LTE open loop |
CN111182143A (en) * | 2019-12-27 | 2020-05-19 | 宇龙计算机通信科技(深圳)有限公司 | Card holder taking-out method, device, storage medium and terminal |
CN116483737A (en) * | 2023-04-18 | 2023-07-25 | 深圳市金玺智控技术有限公司 | Data processing method and device, electronic equipment and storage medium |
CN116483737B (en) * | 2023-04-18 | 2024-03-15 | 深圳市金玺智控技术有限公司 | Data processing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108446085A (en) | A kind of throwing screen display methods and mobile terminal | |
CN108108007B (en) | A kind of processing method and mobile terminal reducing power consumption | |
CN108924817A (en) | A kind of SIM card state switching method and mobile terminal | |
CN109271121A (en) | A kind of application display method and mobile terminal | |
CN108803963A (en) | A kind of screenshotss method and mobile terminal | |
CN109697494A (en) | A kind of graphic code display methods and terminal device | |
CN108491123A (en) | A kind of adjusting application program image target method and mobile terminal | |
CN108924037A (en) | A kind of display methods and mobile terminal of rich media communications RCS message | |
CN110427239A (en) | A kind of event-handling method, terminal device and computer readable storage medium | |
CN109547054A (en) | Signal control circuit, terminal device and signal control method | |
CN110018805A (en) | A kind of display control method and mobile terminal | |
CN108322905A (en) | A kind of method for reading data and mobile terminal | |
CN109831359A (en) | A kind of detection method and its terminal device of data network connection state | |
CN109033912A (en) | A kind of recognition methods of identification code and mobile terminal | |
CN109542572A (en) | A kind of interface display method and mobile terminal | |
CN107979385B (en) | A kind of radio-frequency front-end data processing method and mobile terminal | |
CN110138963A (en) | A kind of message treatment method and mobile terminal | |
CN109976844A (en) | A kind of message display method and mobile terminal | |
CN109745699A (en) | A kind of method and terminal device responding touch control operation | |
CN108632535A (en) | A kind of image processing method and mobile terminal | |
CN108540951A (en) | A kind of recharge method and mobile terminal | |
CN108419283A (en) | A kind of method and mobile terminal of WIFI hot spot scanning | |
CN109582174A (en) | A kind of touch-control input response method and terminal device | |
CN109164951A (en) | Mobile terminal operating method and mobile terminal | |
CN108184014A (en) | The based reminding method and mobile terminal of a kind of notification message |
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: 20180724 |
|
RJ01 | Rejection of invention patent application after publication |