Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
Referring to Fig. 1, the present invention realizes the terminal of multi-mode communication module accesses Subscriber Identity Module.
The terminal comprises: control chip 100, and the Subscriber Identity Module 300 that is connected through interface with control chip 100 respectively and the communication module 200 of two kind of pattern.
Wherein, Control chip 100; Be used to receive the request of current communication module 200 calling party identification cards 300; When definite Subscriber Identity Module 300 is in non-Access status, according to this request Subscriber Identity Module 300 is conducted interviews, and the access result that Subscriber Identity Module 300 returns is sent to current communication module 200.
Non-Access status is that Subscriber Identity Module 300 is in not by the state of communication module 200 visits.
This control chip 100 also is used for when definite Subscriber Identity Module 300 is in Access status, waits for being in non-Access status until Subscriber Identity Module 300.Wherein, Access status is that Subscriber Identity Module 300 is in by the state of communication module 200 visits.
In this enforcement; Coordinate the visit of 200 pairs of Subscriber Identity Modules 300 of each communication module through control chip 100; And by these control chip 100 foundation request calling party identification cards 300; Can omit the simulation switch in the terminal, processing signals does not steadily cause the wild effect that occurs when avoiding analog switch to switch, and reduces the interacting message of 200 of control chip 100 and communication modules.
In a preferred implementation, control chip 100 also is used for when definite Subscriber Identity Module 300 is in Access status, sending wait-for-response to current communication module 200.
Through in that Subscriber Identity Module 300 is current when being Access status, send wait-for-responses to the communication module 200 of the request of sending, can further reduce the interacting message of 200 of control chip 100 and communication modules and the processing of control chip 100 and load.
In a preferred implementation; Control chip 100 when also being used for duration when the request of confirming not receive calling party identification card 300 more than or equal to the first duration threshold value, changes low power consumpting state over to; And after the request that receives calling party identification card 300, change operating state over to.
Through making control chip 100 dormancy during more than or equal to the first duration threshold value of configuration, can reduce power consumption at the duration of the request that does not receive communication module 200.
In a preferred implementation; Control chip 100; When also being used for duration when the request of confirming not receive calling party identification card 300 more than or equal to the second duration threshold value; Stop Subscriber Identity Module 300 input clock signals, and after the request that receives calling party identification card 300, begin Subscriber Identity Module 300 input clock signals.
Through making Subscriber Identity Module 300 dormancy during more than or equal to the second duration threshold value of configuration, can reduce power consumption at the duration of the request that does not receive communication module 200.
Because need control chip 100 and 300 mutual co-ordinations of Subscriber Identity Module when carrying out Subscriber Identity Module 300 visits, therefore, preferably, the above-mentioned first duration threshold value can be configured to equate with the second duration threshold value.Certainly, also can the second duration threshold value greater than the first duration threshold value.
In a preferred implementation; Control chip 100 is in the process that Subscriber Identity Module 300 is conducted interviews according to request; Specifically be used for when confirming when the request that receives comprises access path; Access path in the request is confirmed as with current communication module 200 corresponding backup paths and stored, and Subscriber Identity Module 300 is conducted interviews according to the backup path of storing;
When in confirming the request that is receiving, not comprising access path, Subscriber Identity Module 300 is conducted interviews according to the backup path of storing.
Further; Control chip 100; The backup path corresponding that specifically is used to read storage with current communication module 200; Send to Subscriber Identity Module 300 that to select routing instructions indication Subscriber Identity Module 300 be current path with the backup path, and receive after 300 pairs of Subscriber Identity Modules select the response of routing instruction, Subscriber Identity Module 300 is conducted interviews according to current path.
Further, control chip 100 also is used for after the response that receives 300 pairs of selections of Subscriber Identity Module routing instruction the current path of recording user identification card 300; And,
Control chip 100 also is used for when the backup path that reads is consistent with the current path of record, according to current path Subscriber Identity Module 300 being conducted interviews, otherwise, send the selection routing instruction to Subscriber Identity Module 300.
Access path backup through to request not to be all to comprise in each access request under the situation of access path, guarantees the accurate visit to Subscriber Identity Module 300.
The interface that control chip 100 is connected with Subscriber Identity Module 300 in a preferred implementation is the main interface that meets ISO 7816 agreements;
The corresponding interface that control chip 100 is connected with each communication module 200 respectively be meet ISO 7816 agreements from interface;
The interface that Subscriber Identity Module 300 is connected with control chip 100 be meet ISO 7816 agreements from interface;
The interface that communication module 200 is connected with control chip 100 is the main interface that meets ISO 7816 agreements.
In the above-described embodiments; The communication module that comprises two kinds of patterns in the terminal, but the embodiment of the invention is not limited thereto, and also can comprise the communication module of pattern more than three kinds or three kinds in the terminal; Therefore, the multi-mode communication module comprises the communication module of two or more patterns.
Embodiment is referring to Fig. 3
First communication module 200:2G or 3G module
Second communication module 200:3G or 4G module
Wherein, first communication module 200 is the communication module of different mode with second communication module 200
Interface 1:ISO 7816 main interfaces or other alternative interfaces
Interface 2:ISO 7816 is from interface or other alternative interfaces
Interface 3:ISO 7816 main interfaces or other alternative interfaces
Interface 4:ISO 7816 is from interface or other alternative interfaces
Interface 5:ISO 7816 main interfaces or other alternative interfaces
Control module: control nuclear, the single-chip microcomputer kernel can be 51 or the ARM framework.
Control chip 100 is for comprising two 7816 control chips 100 from interface and 1 7816 main interface or alternative other interfaces.Its major function is to coordinate the visit of 200 pairs of SIM/USIM cards of different communication module.
First communication module 200 and second communication module 200 are respectively the mobile communication module of different mode.First communication module 200 is connected on the interface 2 and interface 4 of control chip 100 through interface 1 and interface 5 respectively with second communication module 200.Be example with two communication modules in the present embodiment, but the invention is not restricted to this, the present invention is suitable for the situation more than two communication modules equally.
The interface 3 of control chip 100 connects Subscriber Identity Module 300.Subscriber Identity Module is the SIM/USIM card in the present embodiment.
The interface 2,3,4 of control chip 100 can be supported 1,2,3,4 agreements of ISO 7816 fully.
In the time of first communication module 200 or second communication module 200 visit SIM/USIM cards, control chip 100 will be coordinated the communication data between this module and the SIM/USIM card.
In the present embodiment, be two communication modules 200, but the invention is not restricted to two.The present invention can realize that plural any amount of communication module provides the calling party identification card.
If in first communication module 200 visit SIM/USIM cards, when promptly the SIM/USIM card was in Access status, second communication module 200 also had requirements for access; After control chip 100 receives request; Can wait for, also can in the wait process, tell second communication module 200 present SIM/USIM cards busy; The message that please wait is for example replied wait-for-response.And wait for when first communication module 200 visit SIM/USIM cards end, after promptly the SIM/USIM card is in non-Access status, just SIM/USIM is sticked into row access, promptly coordinate second communication module 200 visit SIM/USIM cards according to request.Certainly, when first communication module 200 was initiated the request of visit SIM/USIM, second communication module 200 was being visited the SIM/USIM card, and control chip 100 also can be waited for until the SIM/USIM card and be in non-Access status, concrete just no longer tired having stated.
In first communication module 200 or second communication module 200 visit SIM/USIM cards; Control chip 100 meeting analysis request; If when having comprised access path in this request; The access path and the conduct backup path corresponding with this communication module that obtain wherein to comprise are stored, and can stick into row access to SIM/USIM according to the backup path of storage.Let when not comprised access path in this request, then can be directly stick into row access to SIM/USIM according to the backup path of storage.
Like this; When the current APDU instruction of a communication module 200 completion need switch to another communication module 200 visits; The backup path corresponding that control chip 100 can read storage with another communication module 200, and the current path of SIM/USIM card switched to this backup path.And when switching to these communication module 200 visit SIM/USIM cards once more; Then read the corresponding backup path of this communication module of storage earlier by control chip 100; Send the selection routing instruction to the SIM/USIM card; The current path of SIM/USIM card is switched to the backup path corresponding with this communication module 200 again, cause the path entanglement to prevent that module from switching, and dysfunction takes place.
Long-time when first communication module 200 and second communication module 200, for example preset duration is not when visiting the SIM/USIM card; When to be control chip 100 do not receive the request of arbitrary calling party identification card in preset duration; To get into low power consumpting state, when communication module 200 visit SIM/USIM card demands are arranged once more, when promptly control chip 100 receives the request of calling party identification card; To be waken up, and accomplished the communication work of coordinating communication module 200 and SIM/USIM card.
Same; When first communication module 200 and second communication module 200 long-time; For example preset duration is not when visiting the SIM/USIM card, when promptly control chip 100 does not receive the request of arbitrary calling party identification card in preset duration; Control chip 100 stops SIM/USIM card input clock signal, makes the SIM/USIM card get into low power consumpting state; When communication module 200 visit SIM/USIM card demands are arranged once more, when promptly control chip 100 receives the request of calling party identification card, begin SIM/USIM card input clock signal, make the SIM/USIM card get into low power consumpting state.
In the terminal that the foregoing description is described, realize the process of multi-mode communication module accesses Subscriber Identity Module, as shown in Figure 4, specifically comprise:
Step 401, control chip receive the request of current communication module calling party identification card.
Any communication module in the terminal all can be initiated the request of calling party identification card, and sends to control chip through the interface that is connected with control chip.Here, the communication module of just initiating the request of calling party identification card is current communication module.
Step 402: whether control chip judges identification card is in non-Access status, if, execution in step 403, otherwise, step 402 returned.
When control chip received the request of current communication module calling party identification card, if Subscriber Identity Module is not visited by other communication module, promptly this moment, Subscriber Identity Module was in non-Access status, execution in step 403; If just by the visit of other communication module, promptly this moment, Subscriber Identity Module was in Access status to Subscriber Identity Module, then need wait for until Subscriber Identity Module being in non-Access status, promptly need return step 402.
Step 403: control chip conducts interviews to Subscriber Identity Module according to request, and the access result that Subscriber Identity Module returns is sent to current communication module.
Control chip has confirmed that Subscriber Identity Module is in non-Access status, then can conduct interviews to Subscriber Identity Module according to request.And because communication module is not communicated with Subscriber Identity Module, therefore, the access result that Subscriber Identity Module returns also is transmitted to current communication module by control chip.
So far; Through of the visit of each communication module of control chip tunable to Subscriber Identity Module; And by this control chip according to request calling party identification card; Can omit the simulation switch in the terminal, processing signals does not steadily cause the wild effect that occurs when avoiding analog switch to switch, and reduces the interacting message between control chip and communication module.
Preferably, in the embodiment of the invention, when definite Subscriber Identity Module was in Access status, control chip also can send wait-for-response to current communication module in the process of waiting for.
Through in that Subscriber Identity Module is current when being Access status, send wait-for-response to the communication module of the request of sending, interacting message and the processing of control chip that can further reduce between control chip and communication module are loaded.
Preferably, the duration that control chip also can be worked as the request of confirming not receive the calling party identification card changes low power consumpting state over to, and after the request that receives the calling party identification card, changes operating state over to during more than or equal to the first duration threshold value.
Reduce the energy consumption of control chip through said method.
Preferably; The duration that control chip also can be worked as the request of confirming not receive the calling party identification card is during more than or equal to the second duration threshold value; Stop the Subscriber Identity Module input clock signal, and after the request that receives the calling party identification card, begin the Subscriber Identity Module input clock signal.
Reduce the energy consumption of Subscriber Identity Module through said method.
Preferably, according to request Subscriber Identity Module conducted interviews in the above-mentioned steps 403 and specifically comprises:
At first; Judge in the request that receives and whether comprise access path; Then; When in confirming the request that is receiving, comprising access path, the access path in the request is confirmed as the backup path corresponding with current communication module store, and Subscriber Identity Module is conducted interviews according to the backup path of storage.And when confirming in the request of reception, not comprise access path, directly the backup path according to storage conducts interviews to Subscriber Identity Module.
Preferably, the backup path according to storage conducts interviews to Subscriber Identity Module and specifically comprises:
Read the backup path corresponding of storage with current communication module.
Sending selection routing instruction indication Subscriber Identity Module to Subscriber Identity Module is current path with the backup path, and after receiving the response of Subscriber Identity Module to the selection routing instruction, according to current path Subscriber Identity Module is conducted interviews.
In the embodiment of the invention, also after receiving the response of Subscriber Identity Module, comprising: the current path of recording user identification card the selection routing instruction.
Like this; The backup path corresponding with current communication module that reads storage can not send the selection routing instruction earlier afterwards; But earlier the current path of backup path that reads and record is compared; When the backup path that reads is consistent with the current path of record, directly Subscriber Identity Module is conducted interviews according to current path; And when the current path of backup path of getting and record is inconsistent, sends to Subscriber Identity Module again and select routing instruction.
Through access path backup to request, can not all to comprise in each access request under the situation of access path, guarantee accurate visit to Subscriber Identity Module.
In the embodiment of the invention; In the terminal, control chip is connected with the communication module of Subscriber Identity Module and two kinds of patterns respectively through interface at least, like this; Control chip receives the request of current communication module calling party identification card; When definite Subscriber Identity Module is in non-Access status, according to request Subscriber Identity Module is conducted interviews, and the access result that Subscriber Identity Module returns is sent to current communication module; When definite Subscriber Identity Module is in Access status, wait for being in non-Access status until Subscriber Identity Module.Like this; Coordinate of the visit of each communication module through control chip to Subscriber Identity Module; And by this control chip according to request calling party identification card; Can omit the simulation switch in the terminal, processing signals does not steadily cause the wild effect that occurs when avoiding analog switch to switch, and reduces the interacting message between control chip and communication module.
In addition, through making control chip and/or Subscriber Identity Module dormancy during more than or equal to the duration threshold value of configuration, can reduce power consumption at the duration of the request that does not receive communication module.And, through access path backup, can not all to comprise in each access request under the situation of access path to request, guarantee accurate visit to Subscriber Identity Module.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All any modifications of within spirit of the present invention and principle, being done, be equal to replacement, improvement etc., all be included in protection scope of the present invention.