Background technology
In the overall architecture system of portable terminal; Generally speaking; Exist these three important and independent subsystem of application subsystem, baseband subsystems and U/SIM clamp system; Application subsystem mainly is responsible for the user people-machine operation interface is provided, and baseband subsystems mainly is responsible for the business processing of whole portable terminal, and U/SIM clamp system then mainly is responsible for providing realization mobile terminal service function required file system.
After mobile terminal-opening powered on, in order to realize the mobile terminal service function, baseband subsystems need obtain the initialization information of U/SIM card associated documents, and with information stores in the data BUFFER that is more suitable for baseband subsystems management; Simultaneously, because the speed of baseband subsystems visit data BUFFER is more a lot of soon than the speed of visit U/SIM Cavan part system, when needs used these fileinfos, baseband subsystems often can not visit again U/SIM Cavan part system, but visit data BUFFER.Portable terminal U/SIM Cavan part initialization procedure does not relate to application subsystem; In the process that realizes business function, application subsystem has the demand of file access, but application subsystem can not directly be visited U/SIM Cavan part system; According to 27.007 requirements of 3GPP agreement; Application subsystem is through sending the file access request instruction to baseband subsystems, and baseband subsystems transparent transmission file access request is to U/SIM clamp system, and returns the access result of U/SIM clamp system to application subsystem.After application subsystem is revised the fileinfo in the part system of U/SIM Cavan; Because the characteristic of baseband subsystems transparent transmission access request, access result; Make baseband subsystems can't know accessed content and the result between application subsystem and U/SIM clamp system; If fileinfo and the fileinfo content in the part system of U/SIM Cavan among the baseband subsystems data BUFFER are inconsistent, it is unusual to cause subsequent treatment to occur.
Summary of the invention
Institute of the present invention technical solution problem is to overcome because application subsystem is revised U/SIM Cavan part information; Cause fileinfo and the inconsistent situation of fileinfo content in the part system of U/SIM Cavan among the baseband subsystems data BUFFER; The present invention proposes a kind of method of portable terminal application subsystem calling party identification card file; Through the identification that baseband subsystems instructs to the AT that uses the subsystem transmission, visit U/SIM Cavan part.
For overcoming the above problems; The present invention proposes a kind of method of portable terminal application subsystem calling party identification card file; Baseband subsystems provides a self-defined AT instruction that is made up of file association sign and two parameters of file access type at least to application subsystem; Application subsystem is through above values of parameters combination in the self-defined AT instruction, and inquiry or modification baseband subsystems are stored in the fileinfo among the data BUFFER;
Further, when the fileinfo among the data BUFFER changes, by baseband subsystems the fileinfo after upgrading among the data BUFFER is write back U/SIM Cavan part system, after fileinfo writes back successfully, again to application subsystem backward reference result;
Preferably, when baseband subsystems judged that fileinfo is not pre-stored among the data BUFFER, baseband subsystems was visited U/SIM Cavan part system, and access result is directly returned back to application subsystem;
Preferably; When baseband subsystems judges that fileinfo is not pre-stored among the data BUFFER; Baseband subsystems is read associated documents information and is replenished and to be stored in data BUFFER from U/SIM clamp system, and according to the access type of application subsystem the fileinfo among the data BUFFER is conducted interviews;
Baseband subsystems judges according to the file association sign whether fileinfo is pre-stored among the data BUFFER.
Compared with prior art; Baseband subsystems of the present invention provides a self-defined AT instruction that is made up of file association sign and two parameters of file access type at least to application subsystem; Application subsystem is through above values of parameters combination in the self-defined AT instruction; Inquiry or modification baseband subsystems are stored in the fileinfo among the data BUFFER; Through the control of baseband subsystems to the visit of U/SIM Cavan part, effectively avoided fileinfo and the fileinfo content in the part system of U/SIM Cavan among the baseband subsystems data BUFFER inconsistent, cause subsequent treatment unusual problem to occur.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the method for portable terminal application subsystem calling party identification card file of the present invention is done further explain below in conjunction with accompanying drawing and embodiment.
The method of application subsystem calling party identification card file of the present invention may further comprise the steps, and is as shown in Figure 2:
(1) user starting up portable terminal, application subsystem issue the opening initialization instruction to baseband subsystems and start the opening initialization flow process, and baseband subsystems is visited U/SIM Cavan part system and deposited the file initialization information in data BUFFER;
(2) when U/SIM Cavan part need obtained or revise to application subsystem; Use self-defined AT instruction to initiate the request of visit data BUFFER file information to baseband subsystems, self-defined AT instructs include file association identification and two parameters of file access type at least;
(3) according to the access type of application subsystem, the fileinfo among the data BUFFER is conducted interviews the backward reference result.
Preferably, when the fileinfo among the data BUFFER changes, the fileinfo after upgrading among the data BUFFER is write back U/SIM Cavan part system immediately by baseband subsystems; After fileinfo writes back successfully, again to application subsystem backward reference result.
This programme makes when U/SIM Cavan part need obtained or revise to application subsystem; Through the information among the data BUFFER of self-defined AT instruction access baseband subsystems; Directly do not visit U/SIM Cavan part; Avoid fileinfo and the fileinfo content in the part system of U/SIM Cavan among the baseband subsystems data BUFFER inconsistent, thereby caused subsequent treatment unusual problem to occur; And guaranteed as much as possible under the situation of powered-off fault, still can use correct fileinfo during portable terminal start next time.
Especially; When U/SIM Cavan part information that application subsystem need be obtained or revise was not pre-stored in baseband subsystems data BUFFER, as shown in Figure 3, baseband subsystems will be according to file access sign and file access type; Visit U/SIM Cavan part system; And access result directly returned back to application subsystem, perhaps from the part system of U/SIM Cavan, read associated documents information replenish be stored in data BUFFER after, visit again the fileinfo among the data BUFFER.Because baseband subsystems only obtains wherein necessary partial document information during part in initialization U/SIM Cavan; So the fileinfo that the application subsystem expectation is obtained is not very likely in the preparatory reading scope of baseband subsystems; Simultaneously; Baseband subsystems is indifferent to the fileinfo outside the preparatory reading scope in the business processing process; Application subsystem is admissible with regard to directly conducting interviews between this part fileinfo and the U/SIM Cavan part system alternately, takes place unusual when more than operation can avoid this situation to occur.
Initialization U/SIM Cavan part when baseband subsystems is responsible for starting up of terminal and is powered on, and deposit initialization information in data BUFFER; Application subsystem is visited U/SIM Cavan part through the self-defined AT instruction of file access file association identification, two combinations of parameters of file access type from data BUFFER;
When fileinfo that application subsystem expectation is obtained not in the preparatory reading scope at baseband subsystems, baseband subsystems visit U/SIM Cavan part system, and access result returned back to application subsystem,
Perhaps
From the part system of U/SIM Cavan, read associated documents information replenish be stored in data BUFFER after, visit again the fileinfo among the data BUFFER, and follow-uply all from data BUFFER, visit this document.
Further, when application subsystem has been revised the fileinfo among the data BUFFER, the fileinfo after baseband subsystems will upgrade writes back U/SIM clamp system in the very first time.
The present invention utilizes baseband subsystems that custom instruction and visit of unified management U/SIM Cavan part and operation are provided; Effective simplification the processing of application subsystem visit U/SIM Cavan part, and guaranteed the consistance and the reliability of the fileinfo that portable terminal uses in the business realizing process.
It will be apparent to those skilled in the art that and understand that the above embodiment that the inventive method is lifted only is used to explain the present invention, and is not limited to the present invention.Though effectively described the present invention through embodiment; Those skilled in the art will know that; There are many variations in the present invention and do not break away from spirit of the present invention; Under the situation that does not deviate from spirit of the present invention and essence thereof, those skilled in the art work as can make various corresponding changes or distortion according to the inventive method, but these corresponding changes or distortion all belong to claim protection domain of the present invention.