A kind of mobile terminal application subsystem accesses the method for Subscriber Identity Module file
Technical field
The present invention relates to moving communicating field, particularly to the method that mobile terminal application subsystem accesses Subscriber Identity Module (SIM or usim card or UIM card, be collectively expressed as U/SIM card) file.
Background technology
In the overall architecture system of mobile terminal, generally, there is the subsystem that application subsystem, baseband subsystems and U/SIM Card subsystem these three are important and independent, application subsystem primary responsibility provides the user people-machine operation interface, the Business Processing of the whole mobile terminal of baseband subsystems primary responsibility, U/SIM Card subsystem then primary responsibility provides the file system realized needed for mobile terminal service function.
After mobile terminal-opening powers on, in order to realize mobile terminal service function, baseband subsystems needs to obtain the initialization information of U/SIM card associated documents, and information is stored in the data BUFFER being more suitable for baseband subsystems management; Simultaneously as the speed that baseband subsystems accesses data BUFFER is more a lot of soon than the speed accessing U/SIM card file system, when needs use these fileinfos, baseband subsystems tends not to visit again U/SIM card file system, but accesses data BUFFER. Mobile terminal U/SIM card file initialization procedure is not related to application subsystem, in the process realizing business function, application subsystem has the demand of file access, but application subsystem can not directly access U/SIM card file system, according to 3GPP agreement 27.007 requirement, application subsystem is by sending file access request instruction to baseband subsystems, and baseband subsystems transparent transmission file access request is to U/SIM Card subsystem, and returns the access result of U/SIM Card subsystem to application subsystem. When after the fileinfo that application subsystem is revised in U/SIM card file system, due to baseband subsystems transparent transmission access request, the characteristic accessing result, make access content and result that baseband subsystems cannot know between application subsystem and U/SIM Card subsystem, if the fileinfo in baseband subsystems data BUFFER is inconsistent with the fileinfo content in U/SIM card file system, will cause that subsequent treatment occurs abnormal.
Summary of the invention
The solved technical problem of the present invention is in that to overcome owing to application subsystem revises U/SIM card file information, cause the situation that the fileinfo in baseband subsystems data BUFFER is inconsistent with the fileinfo content in U/SIM card file system, the present invention proposes a kind of method that mobile terminal application subsystem accesses Subscriber Identity Module file, by the identification of the AT instruction that application subsystem is sent by baseband subsystems, access U/SIM card file.
For solving problem above, the present invention proposes a kind of method that mobile terminal application subsystem accesses Subscriber Identity Module file, the self-defined AT instruction that baseband subsystems provides one at least to be identified by file association to application subsystem and two parameters of file access type are constituted, application subsystem is stored in the fileinfo in data BUFFER by the valued combinations of above parameter in self-defined AT instruction, inquiry or amendment baseband subsystems;
Further, when the fileinfo in data BUFFER changes, baseband subsystems the fileinfo after updating in data BUFFER being write back U/SIM card file system, fileinfo writes back after successfully, then to application subsystem backward reference result;
Preferably, when baseband subsystems judges that fileinfo is not pre-stored in data BUFFER, baseband subsystems accesses U/SIM card file system, and access result is directly returned back to application subsystem;
Preferably, when baseband subsystems judges that fileinfo is not pre-stored in data BUFFER, baseband subsystems reads associated documents information from U/SIM Card subsystem and supplements and be stored in data BUFFER, and according to the access type of application subsystem, the fileinfo in data BUFFER is conducted interviews;
According to file association mark, baseband subsystems judges whether fileinfo is pre-stored in data BUFFER.
Compared with prior art, the self-defined AT instruction that baseband subsystems of the present invention provides one at least to be identified by file association to application subsystem and two parameters of file access type are constituted, application subsystem is by the valued combinations of above parameter in self-defined AT instruction, inquiry or amendment baseband subsystems are stored in the fileinfo in data BUFFER, by the control that U/SIM card file is accessed by baseband subsystems, effectively prevent the fileinfo in baseband subsystems data BUFFER inconsistent with the fileinfo content in U/SIM card file system, cause that abnormal problem occurs in subsequent treatment.
Accompanying drawing explanation
Fig. 1 is prior art U/SIM card file browsing process figure;
Fig. 2 is that mobile terminal application subsystem of the present invention accesses U/SIM card file flow chart;
Fig. 3 is that mobile terminal application subsystem of the present invention accesses U/SIM card file preferred embodiment flow chart;
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the method that mobile terminal application subsystem of the present invention accesses Subscriber Identity Module file is described in further detail.
Application subsystem of the present invention accesses the method for Subscriber Identity Module file and comprises the following steps, as shown in Figure 2:
(1) user starting up mobile terminal, application subsystem issues opening initialization instruction to baseband subsystems and starts opening initialization flow process, and baseband subsystems accesses U/SIM card file system and file initialization information is stored in data BUFFER;
(2) when application subsystem needs obtain or revise U/SIM card file, using self-defined AT instruction to initiate to access the request of data BUFFER file information to baseband subsystems, self-defined AT instruction is including at least file association mark and two parameters of file access type;
(3) according to the access type of application subsystem, the fileinfo in data BUFFER is conducted interviews, backward reference result.
Preferably, when the fileinfo in data BUFFER changes, baseband subsystems the fileinfo after renewal in data BUFFER is write back U/SIM card file system immediately; Fileinfo writes back after successfully, then to application subsystem backward reference result.
This programme makes when application subsystem needs obtain or revise U/SIM card file, the information in the data BUFFER of baseband subsystems is accessed by self-defined AT instruction, directly do not access U/SIM card file, avoid the fileinfo in baseband subsystems data BUFFER inconsistent with the fileinfo content in U/SIM card file system, thus causing that abnormal problem occurs in subsequent treatment; And when ensure that powered-off fault as much as possible, remain to when mobile terminal is started shooting next time use correct fileinfo.
Especially, when application subsystem needs the U/SIM card file information obtaining or revising not to be pre-stored in baseband subsystems data BUFFER, as shown in Figure 3, baseband subsystems will according to file access mark and file access type, access U/SIM card file system, and access result is directly returned back to application subsystem, or read after associated documents information supplements and be stored in data BUFFER from U/SIM card file system, visit again the fileinfo in data BUFFER. Owing to baseband subsystems only obtains wherein necessary partial document information when initializing U/SIM card file, so the fileinfo that application subsystem expectation obtains is not very likely in the pre-reading scope of baseband subsystems, simultaneously, baseband subsystems is indifferent in business procession and is pre-read extraneous fileinfo, application subsystem is admissible with regard to being made directly access between this partial document information and U/SIM card file system alternately, occurs abnormal when above operation can avoid this situation to occur.
Baseband subsystems is responsible for initialization U/SIM card file when starting up of terminal powers on, and initialization information is stored in data BUFFER; Application subsystem, by the combination of file access self-defined AT instruction file association identification, two parameters of file access type, accesses U/SIM card file from data BUFFER;
When the fileinfo of application subsystem expectation acquisition is not in the pre-reading scope of baseband subsystems, baseband subsystems accesses U/SIM card file system, and access result is returned back to application subsystem,
Or
After reading associated documents information is supplemented and is stored in data BUFFER from U/SIM card file system, visit again the fileinfo in data BUFFER and follow-up all access this documents from data BUFFER.
Further, when application subsystem have modified the fileinfo in data BUFFER, the fileinfo after renewal is write back U/SIM Card subsystem in the very first time by baseband subsystems.
The present invention utilizes baseband subsystems to provide custom instruction unified management U/SIM card file to access and operation, effectively simplify application subsystem and access the process of U/SIM card file, and ensure that concordance and the reliability of fileinfo that mobile terminal uses in business realizing process.
It will be apparent to those skilled in the art that and understand, the above example that the inventive method is lifted is merely to illustrate the present invention, and is not limited to the present invention. Although effectively describing the present invention by embodiment; those skilled in the art will know that; there is the much spirit being varied without departing from the present invention in the present invention; when without departing substantially from the spirit of the present invention and essence thereof; those skilled in the art are when can make various corresponding change or deformation according to the inventive method, but these change accordingly or deform the claims belonging to the present invention.