
Abstract: GSM and CDMA both are common feature of mobile phone. A method for a GSM/CDMA dual-mode mobile phone to control two GSM subscriber identification modules is provided. Without changing hardware of the GSM/CDMA dual-mode mobile phone, the method use a GSM control module to operate a first GSM subscriber identification module, or a CDMA UART driver module and a SIM/UIM driver module connected with each other are built in the CDMA control module. The CDMA URAT driver module is communicated with a GSM device driver layer of the GSM control module through a UART standard, such that the GSM control module is able to control a second GSM subscriber identification module connected to the SIM/UIM driver module. Thus, the GSM/CDMA dual-mode mobile phone is able to control two GSM subscriber identification modules so as to satisfy needs and demands for businessmen and lovers in personal style.
Claims:1. A method for a GSM (global system for mobile telecommunication) and CDMA (code division multiple access) dual-mode mobile phone to control two GSM subscriber identification modules which are of a first GSM subscriber identification module and a second GSM subscriber identification module, comprising:initializing an operation system of the mobile phone;determining whether a standby mode is going to be entered by the second GSM subscriber identification module of a CDMA control module; when the standby mode is not going to be entered by the second GSM subscriber identification module, the first GSM subscriber identification module entering the standby mode and a GSM control module being used to control the first GSM subscriber identification module connected therein; when the standby mode is going to be entered by the second GSM subscriber identification module, the second GSM subscriber identification module entering the standby mode accordingly, a CDMA UART (universal asynchronous receiver/transmitter) driver module and a SIM (subscriber identification module) and UIM (user identity module) driver module connected with each other being built in a CDMA device driver layer; and the CDMA UART driver module in communication with a GSM device driver layer of the GSM control module through a UART standard being used to control the second GSM subscriber identification module in connection with the SIM and UIM driver module. 2. The method for controlling two GSM subscriber identification modules as claimed in claim 1, further comprising:after finishing the step of determining whether a standby mode is going to be entered by the second GSM subscriber identification module of a CDMA control module, obtaining and recording an information about the standby mode is entered by the first GSM subscriber identification module or by the second GSM subscriber identification module; andresetting the operation system. 3. The method for controlling two GSM subscriber identification modules as claimed in claim 2, wherein the information are stored in a flash memory, an EEPROM, or an EPROM. 4. The method for controlling two GSM subscriber identification modules as claimed in claim 1, wherein the step of the first GSM subscriber identification module entering the standby mode further comprises:outputting a control command to the GSM device driver layer through a GSM application layer of the GSM control module;obtaining a raw data of the first GSM subscriber identification module by the GSM device driver layer;transmitting the raw data to a GSM protocol stack of the GSM control module to process the raw data; andreturning the processed raw data back to the GSM application layer. 5. The method for controlling two GSM subscriber identification modules as claimed in claim 4, wherein the step of outputting the control command to the GSM device driver layer through the GSM application layer of the GSM control module further comprises:processing the control command by the GSM protocol stack; andoutputting the processed control command to the GSM device driver layer. 6. The method for controlling two GSM subscriber identification modules as claimed in claim 1, wherein the step of the second GSM subscriber identification module entering the standby mode further comprises:outputting a control command to the CDMA UART driver module through a GSM application layer of the GSM control module;analyzing the control command by the CDMA UART driver module to determine whether the control command is valid;when the control command is valid, using the SIM and UIM driver module to control the second GSM subscriber identification module to obtain the raw data of the second GSM subscriber identification module;returning the raw data back to a GSM protocol stack of the GSM control module through the CDMA UART driver module and the GSM device driver layer; andprocessing the raw data through the GSM protocol stack, and returning the processed raw data back to the GSM application layer. 7. The method for controlling two GSM subscriber identification modules as claimed in claim 6, wherein the step of outputting the control command to the CDMA UART driver module through the GSM application layer of the GSM control module at least comprises:outputting the control command through the GSM application layer of the GSM control module;processing the control command by the GSM protocol stack of the GSM control module, and outputting the control command; andretrieving by the GSM device driver layer and transmitting the control command to the CDMA UART driver module. 8. The method for controlling two GSM subscriber identification modules as claimed in claim 1, wherein the first GSM subscriber identification module is electrically coupled to a first SIM card for reading a data of the first SIM card. 9. The method for controlling two GSM subscriber identification modules as claimed in claim 1, wherein the second GSM subscriber identification module is electrically coupled to a second SIM card for reading a data of the second SIM card.BACKGROUND OF THE INVENTION [0002]1. Field of Invention [0003]The present invention relates to a method for controlling two GSM subscriber identification modules, and more particularly to a method for a GSM/CDMA dual-mode mobile phone to control two GSM subscriber identification modules. [0004]2. Related Art [0005]Currently, many specifications and standards are developed for wireless telecommunications. Common wireless telecommunications systems include global system for mobile communication (GSM), code division multiple access (CDMA), and personal handy-phone system (PHS). To cater users' requirements for a mobile phone capable of switching between different specification and standard systems, the mobile phone manufacturers have developed dual-mode mobile phones, for example, mobile phones with both GSM and CDMA systems. [0006]FIG. 1 shows architecture of a GSM/CDMA dual-mode system of the prior art. Referring to FIG. 1, regarding the operating manner of this architecture, a GSM control module 110 may control a GSM subscriber identification module 130 that is electrically connected to a subscriber identification module (SIM) card. In addition, the GSM control module 110 may control a CDMA subscriber identification module 140 through a CDMA control module 120. The GSM control module 110 uses a GSM application layer 111 to provide a control command to a GSM device driver layer 113 through a GSM protocol stack 112. The GSM device driver layer 113 then outputs the control command to a CDMA device driver layer 123 of the CDMA control module 120 through a universal asynchronous receiver/transmitter (UART) standard. Then, the control command is transmitted to a CDMA application layer 121 of the CDMA control module 120 through a CDMA protocol stack/UIM protocol 122. [0007]The CDMA application layer 121 further determines whether the control command is valid. If the control command is determined to be valid, the CDMA application layer 121 transmits the control command to the CDMA device driver layer 123 through the media of the CDMA protocol stack/UIM protocol 122 and the CDMA device driver layer 123 read the raw data of the CDMA subscriber identification module 140. The CDMA subscriber identification module 140 is electrically coupled to a user identity module (UIM) card. Then, the raw data of the CDMA subscriber identification module 140 is returned to the CDMA application layer 121 through the UIM protocol of the CDMA control module 120 in response to the control command. [0008]Finally, the CDMA application layer 121 invokes the CDMA device driver layer 123 again to transmit the raw data to the GSM device driver layer 113 through the UART standard, and returns the raw data to the GSM application layer 111 through the GSM protocol stack 112. The GSM application layer 111 processes the returned raw data. [0009]However, the prior art has the following unavoidable disadvantage. The GSM/CDMA dual-mode mobile phone is not adapted for a user having two GSM subscriber identification modules, that is, a user having two SIM cards. To use the dual-mode function of the GSM/CDMA dual-mode mobile phone, the user is required have a SIM card and a UIM card respectively corresponding to a GSM number and a CDMA number. To use two SIM cards corresponding to two GSM numbers, the user must buy another mobile phone for inserting the SIM card. Therefore, the mobile phone cannot meet the requirements of a user who does not have a CDMA number but has two GSM numbers. Therefore, the practicability of the GSM/CDMA dual-mode mobile phone is reduced.
Claims:1. A method for a GSM (global system for mobile telecommunication) and CDMA (code division multiple access) dual-mode mobile phone to control two GSM subscriber identification modules which are of a first GSM subscriber identification module and a second GSM subscriber identification module, comprising:initializing an operation system of the mobile phone;determining whether a standby mode is going to be entered by the second GSM subscriber identification module of a CDMA control module; when the standby mode is not going to be entered by the second GSM subscriber identification module, the first GSM subscriber identification module entering the standby mode and a GSM control module being used to control the first GSM subscriber identification module connected therein; when the standby mode is going to be entered by the second GSM subscriber identification module, the second GSM subscriber identification module entering the standby mode accordingly, a CDMA UART (universal asynchronous receiver/transmitter) driver module and a SIM (subscriber identification module) and UIM (user identity module) driver module connected with each other being built in a CDMA device driver layer; and the CDMA UART driver module in communication with a GSM device driver layer of the GSM control module through a UART standard being used to control the second GSM subscriber identification module in connection with the SIM and UIM driver module. 2. The method for controlling two GSM subscriber identification modules as claimed in claim 1, further comprising:after finishing the step of determining whether a standby mode is going to be entered by the second GSM subscriber identification module of a CDMA control module, obtaining and recording an information about the standby mode is entered by the first GSM subscriber identification module or by the second GSM subscriber identification module; andresetting the operation system. 3. The method for controlling two GSM subscriber identification modules as claimed in claim 2, wherein the information are stored in a flash memory, an EEPROM, or an EPROM. 4. The method for controlling two GSM subscriber identification modules as claimed in claim 1, wherein the step of the first GSM subscriber identification module entering the standby mode further comprises:outputting a control command to the GSM device driver layer through a GSM application layer of the GSM control module;obtaining a raw data of the first GSM subscriber identification module by the GSM device driver layer;transmitting the raw data to a GSM protocol stack of the GSM control module to process the raw data; andreturning the processed raw data back to the GSM application layer. 5. The method for controlling two GSM subscriber identification modules as claimed in claim 4, wherein the step of outputting the control command to the GSM device driver layer through the GSM application layer of the GSM control module further comprises:processing the control command by the GSM protocol stack; andoutputting the processed control command to the GSM device driver layer. 6. The method for controlling two GSM subscriber identification modules as claimed in claim 1, wherein the step of the second GSM subscriber identification module entering the standby mode further comprises:outputting a control command to the CDMA UART driver module through a GSM application layer of the GSM control module;analyzing the control command by the CDMA UART driver module to determine whether the control command is valid;when the control command is valid, using the SIM and UIM driver module to control the second GSM subscriber identification module to obtain the raw data of the second GSM subscriber identification module;returning the raw data back to a GSM protocol stack of the GSM control module through the CDMA UART driver module and the GSM device driver layer; andprocessing the raw data through the GSM protocol stack, and returning the processed raw data back to the GSM application layer. 7. The method for controlling two GSM subscriber identification modules as claimed in claim 6, wherein the step of outputting the control command to the CDMA UART driver module through the GSM application layer of the GSM control module at least comprises:outputting the control command through the GSM application layer of the GSM control module;processing the control command by the GSM protocol stack of the GSM control module, and outputting the control command; andretrieving by the GSM device driver layer and transmitting the control command to the CDMA UART driver module. 8. The method for controlling two GSM subscriber identification modules as claimed in claim 1, wherein the first GSM subscriber identification module is electrically coupled to a first SIM card for reading a data of the first SIM card. 9. The method for controlling two GSM subscriber identification modules as claimed in claim 1, wherein the second GSM subscriber identification module is electrically coupled to a second SIM card for reading a data of the second SIM card.BACKGROUND OF THE INVENTION [0002]1. Field of Invention [0003]The present invention relates to a method for controlling two GSM subscriber identification modules, and more particularly to a method for a GSM/CDMA dual-mode mobile phone to control two GSM subscriber identification modules. [0004]2. Related Art [0005]Currently, many specifications and standards are developed for wireless telecommunications. Common wireless telecommunications systems include global system for mobile communication (GSM), code division multiple access (CDMA), and personal handy-phone system (PHS). To cater users' requirements for a mobile phone capable of switching between different specification and standard systems, the mobile phone manufacturers have developed dual-mode mobile phones, for example, mobile phones with both GSM and CDMA systems. [0006]FIG. 1 shows architecture of a GSM/CDMA dual-mode system of the prior art. Referring to FIG. 1, regarding the operating manner of this architecture, a GSM control module 110 may control a GSM subscriber identification module 130 that is electrically connected to a subscriber identification module (SIM) card. In addition, the GSM control module 110 may control a CDMA subscriber identification module 140 through a CDMA control module 120. The GSM control module 110 uses a GSM application layer 111 to provide a control command to a GSM device driver layer 113 through a GSM protocol stack 112. The GSM device driver layer 113 then outputs the control command to a CDMA device driver layer 123 of the CDMA control module 120 through a universal asynchronous receiver/transmitter (UART) standard. Then, the control command is transmitted to a CDMA application layer 121 of the CDMA control module 120 through a CDMA protocol stack/UIM protocol 122. [0007]The CDMA application layer 121 further determines whether the control command is valid. If the control command is determined to be valid, the CDMA application layer 121 transmits the control command to the CDMA device driver layer 123 through the media of the CDMA protocol stack/UIM protocol 122 and the CDMA device driver layer 123 read the raw data of the CDMA subscriber identification module 140. The CDMA subscriber identification module 140 is electrically coupled to a user identity module (UIM) card. Then, the raw data of the CDMA subscriber identification module 140 is returned to the CDMA application layer 121 through the UIM protocol of the CDMA control module 120 in response to the control command. [0008]Finally, the CDMA application layer 121 invokes the CDMA device driver layer 123 again to transmit the raw data to the GSM device driver layer 113 through the UART standard, and returns the raw data to the GSM application layer 111 through the GSM protocol stack 112. The GSM application layer 111 processes the returned raw data. [0009]However, the prior art has the following unavoidable disadvantage. The GSM/CDMA dual-mode mobile phone is not adapted for a user having two GSM subscriber identification modules, that is, a user having two SIM cards. To use the dual-mode function of the GSM/CDMA dual-mode mobile phone, the user is required have a SIM card and a UIM card respectively corresponding to a GSM number and a CDMA number. To use two SIM cards corresponding to two GSM numbers, the user must buy another mobile phone for inserting the SIM card. Therefore, the mobile phone cannot meet the requirements of a user who does not have a CDMA number but has two GSM numbers. Therefore, the practicability of the GSM/CDMA dual-mode mobile phone is reduced.
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন