TW200901733A - Method for mobile phone with GSM and PHS modes to control two GSM subscriber identify modules - Google Patents

Method for mobile phone with GSM and PHS modes to control two GSM subscriber identify modules Download PDF

Info

Publication number
TW200901733A
TW200901733A TW96122389A TW96122389A TW200901733A TW 200901733 A TW200901733 A TW 200901733A TW 96122389 A TW96122389 A TW 96122389A TW 96122389 A TW96122389 A TW 96122389A TW 200901733 A TW200901733 A TW 200901733A
Authority
TW
Taiwan
Prior art keywords
gsm
module
phs
subscriber identity
control
Prior art date
Application number
TW96122389A
Other languages
Chinese (zh)
Inventor
Xiao-Long Fan
Xing-Jun Zhang
Original Assignee
Inventec Appliances Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inventec Appliances Corp filed Critical Inventec Appliances Corp
Priority to TW96122389A priority Critical patent/TW200901733A/en
Publication of TW200901733A publication Critical patent/TW200901733A/en

Links

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method for a mobile phone with GSM and PHS modes to control two GSM subscriber identity modules (SIMs) is provided. Without changing the hardware of the mobile phone, the method is utilized that a GSM control module is used to operate a first GSM SIM, or a PHS UART driving module and a SIM and USIM driving module connected with each other are built in the PHS control module. The PHS UART driving module is connected to a GSM device driving layer of the GSM control module through UART standards, so that the GSM control module is able to control a second GSM SIM connected with the SIM and USIM driving module. Therefore, the mobile phone with GSM and PHS modes is able to control two GSM SIMs, so as to satisfy needs and demands for businessmen and lovers in personal style.

Description

200901733 九、發明說明: 【發明所屬之技術領域】 本發明是有關於一種控制雙GSM用戶識別模組之方 法,且特別是有關於一種GSM與PHS雙模手機控制雙GSM 用戶識別模組之方法。 【先前技術】 目前無線通訊技術已發展許多規範標準,常見無線通 訊系統有 GSM (Global System for Mobile Communication ,全球行動通訊系統)、CDMA (Code Division Multiple Access’ 分碼多工系統)、PHS( Personal Handy-phone System ,個人手持式電話系統)等,而為了滿足使用者手機需能 切換不同規範標準系統之需求,各家手機通訊業者紛紛發 展出具有雙模系統之手機,如在一手機中同時存在GSM與 PHS系統即是其中代表之一。 請參照第1圖,係為先前技術之GSM與PHS雙模系 統架構。此架構之運作方式中,GSM控制模組110係能控 制GSM用戶識別模組130,此GSM用戶識別模組130係 可電性轉接一 SIM ( Subscriber Identification Module,用戶 識別模組)卡。此外,GSM控制模組110還能透過PHS 控制模組120以控制PHS用戶識別模組140。其係利用GSM 應用層(GSM Application Layer) 111發送一控制命令,此 控制命令係通過GSM協議棧(GSM Protocol Stack) 112 6 200901733 而傳送至 GSM 裝置驅動層(GSM Device Driver Layer ) 113 。GSM裝置驅動層113再透過一異步收發(Universal Asynchronous Receiver/Transmitter,UART)規範以輸出控 制命令至PHS控制模組120的PHS裝置驅動層(PHS Device Driver Layer) 123,最後通過 PHS 協議棧(PHS Protocol Stack ) /PIM協議122傳遞此控制命令至PHS控制 模組 120 的 PHS 應用層(PHS Application Layer ) 121。200901733 IX. Description of the Invention: [Technical Field] The present invention relates to a method for controlling a dual GSM subscriber identity module, and more particularly to a method for controlling a dual GSM subscriber identity module for a GSM and PHS dual mode handset . [Prior Art] At present, wireless communication technology has developed many normative standards. Common wireless communication systems include GSM (Global System for Mobile Communication), CDMA (Code Division Multiple Access), and PHS (Personal Handy-phone System, personal hand-held telephone system, etc., in order to meet the needs of users' mobile phones to switch to different standard systems, mobile phone carriers have developed mobile phones with dual-mode systems, such as in a mobile phone. The existence of GSM and PHS systems is one of the representatives. Please refer to Figure 1 for the prior art GSM and PHS dual-mode system architecture. In the operation mode of the architecture, the GSM control module 110 can control the GSM subscriber identity module 130. The GSM subscriber identity module 130 can electrically transfer a SIM (Subscriber Identification Module) card. In addition, the GSM control module 110 can also control the PHS subscriber identity module 140 through the PHS control module 120. It transmits a control command using the GSM Application Layer 111, and the control command is transmitted to the GSM Device Driver Layer 113 through the GSM Protocol Stack 112 6 200901733. The GSM device driver layer 113 further transmits a control command to the PHS Device Driver Layer 123 of the PHS control module 120 through a Universal Asynchronous Receiver/Transmitter (UART) specification, and finally passes the PHS protocol stack (PHS). The Protocol Stack) /PIM protocol 122 passes this control command to the PHS Application Layer 121 of the PHS control module 120.

此PHS應用層121係進一步解析控制命令是否有效, 於判斷此控制命令為有效命令時,透過PHS協議棧/PIM協 議122為中介將控制命令傳送至Phs裝置驅動層123並讀 取PHS用戶識別模組140的原始數據(Raw Data),此pHS 用戶識別模組140係電性耦接一 piM (Pers〇nal Identky Module’個人識別模組)卡。然後將pHS用戶識別模組14〇 的原始數據透過PHS控制模組12〇的piM協議(piMThe PHS application layer 121 further analyzes whether the control command is valid. When determining that the control command is a valid command, the PHS protocol stack/PIM protocol 122 is used as an intermediary to transmit the control command to the Phs device driver layer 123 and read the PHS user identification mode. The Raw Data of the group 140 is electrically coupled to a piM (Pers〇nal Identky Module) card. The raw data of the pHS subscriber identity module 14A is then transmitted through the piM protocol of the PHS control module 12 (piM).

Protocol)傳遞回PHS應用層121,藉此作為對此控制命令 的響應。 最後PHS應用層121再調用pHS裝置驅動層123透過異 步收發(UART)規範將原始數據傳送至⑶乂裝置驅動層 113,並通過GSM協議棧112將原始數據傳回gsm應用層 in ’由GSM應關1U處理所回傳之原始數據。 但先前技術係具有無法避免之缺失,即為此種gsm與 PHS雙模手機並無法如於具錢⑵則戶識職組之使 7 200901733 用者,即是指擁有雙SIM卡之用戶。因GSM與PHS雙模手機 使用雙模功能之必備條件為此使用者必須是具有個別對應 GSM號碼與PHS號碼之各一 SIM卡與PIM卡(包含内建於手 機中之晶片或1C )。若使用者想使用兩張對應GSM號碼之 SIM卡時,還是需要額外買一個可插入SIM卡的手機。相同 的,此GSM與PHS雙模手機所具有PHS控制模組與連接之 PHS用戶識別模組則完全派不上用場,故無法滿足未申請 PHS號碼而具有雙GSM號碼的使用者之需求,進而降低此 GSM與PHS雙模手機的實用性。 【發明内容】Protocol) is passed back to the PHS application layer 121 as a response to this control command. Finally, the PHS application layer 121 calls the pHS device driver layer 123 to transmit the original data to the (3) device driver layer 113 through the asynchronous transceiver (UART) specification, and transmits the original data back to the gsm application layer through the GSM protocol stack 112. Off 1U processes the raw data returned. However, the prior art system has an inevitable deficiency, that is, such gsm and PHS dual-mode mobile phones cannot be as good as money (2), and the households use the group. 7 200901733 Users refer to users who have dual SIM cards. For GSM and PHS dual-mode phones, the prerequisite for using the dual-mode function is that the user must have a SIM card and a PIM card (including the chip or 1C built into the phone) with individual GSM numbers and PHS numbers. If the user wants to use two SIM cards corresponding to the GSM number, they still need to buy an additional mobile phone with a SIM card. Similarly, the PHS control module and the connected PHS user identification module of the GSM and PHS dual-mode mobile phones are completely useless, and thus cannot meet the needs of users who have dual GSM numbers without applying for a PHS number. In turn, the utility of this GSM and PHS dual-mode mobile phone is reduced. [Summary of the Invention]

有鑑於此’為解決上述問題,本發明係提出一種GSM (Global System for Mobile Communication,全球行動通% 系統)與PHS ( Personal Handy-phone System,個人手持式 電話系統)雙模手機控制雙GSM用戶識別模組之方法,以 使GSM與PHS雙模手機在不更動硬體的情形之下即可使用 兩不同號碼之雙GSM用戶識別模組。 本發明揭露一種GSM與PHS雙模手機控制雙〇SM用戶 識別模組之方法,此GSM與PHS雙模手機具有一 GSM控制In view of the above, in order to solve the above problems, the present invention proposes a GSM (Global System for Mobile Communication) system and a PHS (Personal Handy-phone System) dual-mode mobile phone to control dual GSM users. The method of identifying the module is such that the GSM and PHS dual-mode mobile phones can use the dual GSM subscriber identity modules of two different numbers without changing the hardware. The invention discloses a method for controlling a dual SIM mobile subscriber identity module for a GSM and PHS dual mode mobile phone, the GSM and PHS dual mode mobile phone having a GSM control

模組與一 PHS控制模組。GSM與PHS雙模手機於執行系統初 始化後,即判斷是否由PHS控制模組所連接之一第二GSM 用戶識別模組待機。如果判斷結果為是,則由第二GSM用 戶識別模組待機,此雙模手機於—PHS裝置㈣層(pHS 8 200901733Module and a PHS control module. After the GSM and PHS dual-mode mobile phones are initialized, it is determined whether one of the second GSM subscriber identity modules connected by the PHS control module is on standby. If the judgment result is yes, the second GSM user identification module stands by, and the dual-mode mobile phone is on the PHS 8 (2009) layer.

Device Driver Layer )建立相互連接之一 phs異步收發驅動 才吴組(PHS Universal Asynchronous Receiver/Transmitter Driver,PHS UART Driver)與一SIM與PIM驅動模組,且 PHS異步收發驅動模組以異步收發(UART)規範與GSM控 制模組之一 GSM裝置驅動層連通,以控制與sim與PIM驅動 模組連接之第二GSM用戶識別模組。如果判斷結果為否, 則由一第一 GSM用戶識別模組待機,此雙模手機利用gsm 控制模組控制其連接之一第一GSM用戶識別模組。 此外,當GSM與PHS雙模手機處於第一 GSM用戶識別 模組或第二GSM用戶識別模組之待機模式時,係可獲取並 圯錄以第一 GSM用戶識別模組或以第二GSM用戶識別模組 待機之控制命令或設定資訊。之後再重置系統以執行系統 初始化步驟。而儲存第一GSM用戶識別模組或第二(38]^用 戶識別模組乃是利用一快閃記憶體、一 EEPR0M或一 ; EPROM進行儲存。 d而,如述所說的第一 GSM用戶識別模組係供電性耦 接第一 SIM ( Subscriber Identification Module,用戶識別 模組)卡,以供讀取第一SIM卡之數據。而第二GSM用戶 識別換組係供電性祕-第二SIM卡’以供讀取第二SIM卡 之數據。 本發明具有先前技術無法達到 之功效,即可於GSM與 PHS雙模手機上配置兩不同號碼之gs顧戶識別模組,即 9 200901733 是可電性耦接兩個對應GSM號碼的SIM卡。而GSM控制模 組除可對電性耦接於第一 GSM用戶識別模組之第一 SIM卡 進行控制與數據之傳輸外,更能透過PHS異步收發驅動模 組與SIM與ΠΜ驅動模組之配合’以對電性搞接於第二gsm 用戶識別模組之第二SIM卡進行控制與數據傳輸。因此對 於擁有雙SIM卡的使用者’也能輕易實現對雙gsm號碼的 控制並自由選擇以不同之GSM用戶識別模組別待機,且無 需作硬體架構重大變更。此外,PHS控制模組僅相當於中 轉數據之功能,而不需要PHS協議棧與PIM協議之介入,故 能降低控制程序的複雜度與間接提昇其效能。不但降低手 機廠商研發時間和成本也滿足現代人求新求變之心理,同 時也可最大程度滿足商務人士及個性化愛好者之需求。 【實施方式】 有關本發明的特徵與實作,茲配合圖示作最佳實施例 詳細說明如下。 請參照第2圖,其為本發明之控制第一及第二GSM用 戶識別模組實施例之系統架構圖。此系統包含一 GSM ( Global System for Mobile Communication,全球行動通訊系 統)控制模組 210、一 PHS ( Personal Handy-phone System ,個人手持式電話系統)控制模組220、一第一 GSM用戶 識別模組230與一第二GSM用戶識別模組240。此GSM 控制模組210係包含一 GSM應用層(GSM Application 10 200901733Device Driver Layer) establishes a PHS Universal Asynchronous Receiver/Transmitter Driver (PHS UART Driver) and a SIM and PIM driver module, and the PHS asynchronous transceiver driver module asynchronously transmits and receives (UART). The specification communicates with the GSM device driver layer of one of the GSM control modules to control the second GSM user identification module connected to the sim and PIM driver modules. If the judgment result is no, the first GSM subscriber identity module is standby, and the dual mode handset controls one of the first GSM subscriber identity modules connected by the gsm control module. In addition, when the GSM and PHS dual-mode mobile phones are in the standby mode of the first GSM subscriber identity module or the second GSM subscriber identity module, the first GSM subscriber identity module or the second GSM subscriber can be obtained and recorded. Identify control commands or setting information for module standby. Then reset the system to perform the system initialization steps. The first GSM user identification module or the second (38) user identification module is stored by using a flash memory, an EEPROM or an EPROM. d, as described in the first GSM user. The identification module is electrically coupled to the first SIM (Subscriber Identification Module) card for reading data of the first SIM card, and the second GSM user identifies the replacement system for the power supply secret - the second SIM The card 'is for reading the data of the second SIM card. The invention has the effect that the prior art cannot achieve, that is, the gs family identification module of two different numbers can be configured on the GSM and PHS dual-mode mobile phones, that is, 9 200901733 is available Two SIM cards corresponding to the GSM number are electrically coupled, and the GSM control module can pass the PHS in addition to the control and data transmission of the first SIM card electrically coupled to the first GSM subscriber identity module. The asynchronous transceiver driver module cooperates with the SIM and the ΠΜ drive module to control and transmit data to the second SIM card electrically connected to the second gsm subscriber identity module. Therefore, for a user with dual SIM cards Can also easily implement double gsm numbers The system is free to choose different GSM user identification modules to stand by, and does not need to make major changes to the hardware architecture. In addition, the PHS control module is only equivalent to the function of transferring data, without the intervention of PHS protocol stack and PIM protocol. Therefore, it can reduce the complexity of the control program and indirectly improve its performance. Not only reduce the development time and cost of mobile phone manufacturers, but also meet the modern people's desire for new changes, but also to meet the needs of business people and personalized enthusiasts. [Embodiment] The features and implementations of the present invention are described in detail below with reference to the preferred embodiments. Referring to Figure 2, it is an embodiment of controlling the first and second GSM subscriber identity modules of the present invention. System architecture diagram. The system includes a GSM (Global System for Mobile Communication) control module 210, a PHS (Personal Handy-phone System) control module 220, and a first The GSM subscriber identity module 230 and a second GSM subscriber identity module 240. The GSM control module 210 includes a GSM application layer (GSM Applica) Tion 10 200901733

Layer) 21 卜一 GSM 協議棧(GSM Protocol Stack) 212 與 一 GSM 裝置驅動層(GSM Device Driver Layer) 213,而 PHS控制模組220則包含一 PHS應用層(PHS Application Layer) 221、一 PHS 協議機(PHS Protocol Stack) /PIM 協 議 222 與一 PHS 裝置驅動層(PHS Device Driver Layer) 223,並於PHS裝置驅動層223中建立一 PHS異步收發驅 動才吴組(PHS Universal Asynchronous Receiver/Transmitter Driver,PHS UART Driver) 2231 以及一 SIM (Subscriber Identification Module,用戶識別模組)與 piM (Personal Identity Module ’個人識別模組)驅動模組2232。 其中,GSM裝置驅動層213係電性麵接第一 GSM用 戶識別模組230; PHS異步收發驅動模組2231係與SIM與 PIM驅動模組2232相互連接並連通GSM裝置驅動層213 ,及第二GSM用戶識別模組240係電性輕接sim與PIM 驅動模組2232。 此系統係依據儲存於雙模手機之以第一 Gsm用戶識別 模組230或以第二GSM用戶識別模組240待機之設定資訊 ,以令GSM控制模組210之GSM應用層211發送相對應之 控制命令,經由GSM裝置驅動層213來控制第—GSM用戶 識別模組230之作動與資料傳遞。或者,GSM控制模組21〇 經由GSM裝置驅動層213與PHS異步收發驅動模組2231, 以將控制命令傳送至SIM與PIM驅動模組2232,以控制第 11 200901733 二GSM用戶識別模組240之作動與資料傳遞。當GSM控制 模組210控制第二GSM用戶識別模組240時,乃是透過PHS 異步收發驅動模組2231控制SIM與PIM驅動模組2232進行 單工之串口操作’因此PHS異步收發驅動模組2231可取代 PHS應用層221與PHS協議棧/PIM協議222之部分功能,故 無需利用到PHS應用層221、PHS協議棧/PIM協議222。 此例中’第一GSM用戶識別模組230係供電性連接一 第一 SIM卡(未繪示)。第二GSM用戶識別模組240係供電 性連接一第二SIM卡(未繪示)。其次,GSM裝置驅動層213 與PHS異步收發驅動模組2231之間的傳遞訊息係透過一異 步收發(Universal Asynchronous Receiver/Transmitter, UART)規範進行控制命令及數據之匯整與傳遞。 5月參照第3圖’其為本發明之糸統流程圖,請同時參 考第2圖進行了解。此控制方法之流程係包含下列步驟: 執行系統初始化(步驟S310),於此GSM與PHS雙模手 機進行開機或系統重置時,執行此系統的初始化作業。 判斷是否由一PHS控制模組220所連接之一第二GSM 用戶識別模組240待機(步驟S320)。系統擷取待機用的設 定資訊’以判斷是否由第二GSM用戶識別模組240進行待 機工作。而待機用的設定資訊係儲存於GSM與PHS雙模手 機既有的記憶體(未繪示)上,係指記憶體儲存以那—個 GSM用戶識別模組進行待機之設定資訊。記憶體本身可為 12 200901733 快閃記憶體(Flash Memory )、電子抹除式唯讀記憶體( Electrically Erasable Programmable Read-Only Memory 5 EEPROM )或可抹除可程式唯讀存儲器(Erasable Programmable Read- Only Memory, EPROM) ° 如果判斷的結果為否,則由一第一GSM用戶識別模組 待機230 ’係利用一 GSM控制模組210控制其連接之第一 GSM用戶識別模組230 (步驟S330)。 反之’若於步驟S320中的判斷結果為是時,則由第二 GSM用戶識別模組240待機’係於一PHS裝置驅動層223 建立相互連接之一 PHS異步收發驅動模組2231與一 SIM與 PIM驅動模組2232,且PHS異步收發驅動模組2231以異步 收發(UART)規範與GSM控制模組210之一GSM裝置驅 動層213連通’以控制與SIM與PIM驅動模組2232連接之 第二GSM用戶識別模組240 (步驟S340)。 請參照第4圖,其為第3圖之第一 GSM用戶識別模組 待機之細部流程圖。系統乃經由GSM控制模組210之GSM 應用層(GSM Application Layer) 211輸出一控制命令至 GSM裝置驅動層213 (步驟S331)。當GSM控制模組210經 由GSM應用層211發送控制命令時,係利用GSM協議棧( GSM Protocol Stack) 212處理控制命令並輸出經過處理之 控制命令至GSM裝置驅動層213。根據此控制命令以利用 GSM裝置驅動層213取得第一GSM用戶識別模組230之原 13 200901733 始數據(Raw Data)(步驟S332)。之後,GSM裝置驅動層 213再回傳原始數據至GSM協議棧212,並經由GSM協議棧 212處理此原始數據(步驟S333 )。最後再回傳經過處理之 原始數據至GSM應用層211 (步驟S334)。藉此完成GSM控 制模組210對第一GSM用戶識別模組230之控制與數據讀 取’同時進入以第一GSM用戶識別模組230為主之待機模 式。 請參照第5圖,其為第3圖之第二GSM用戶識別模組Layer 2) GSM Protocol Stack 212 and a GSM Device Driver Layer 213, and the PHS Control Module 220 includes a PHS Application Layer 221 and a PHS protocol. PHS Protocol Stack / PIM Protocol 222 and a PHS Device Driver Layer 223, and a PHS Universal Asynchronous Receiver/Transmitter Driver (PHS) is built in the PHS device driver layer 223. PHS UART Driver 2231 and a SIM (Subscriber Identification Module) and piM (Personal Identity Module) driver module 2232. The GSM device driver layer 213 is electrically connected to the first GSM subscriber identity module 230; the PHS asynchronous transceiver driver module 2231 is interconnected with the SIM and PIM driver module 2232 and connected to the GSM device driver layer 213, and the second The GSM subscriber identity module 240 is electrically connected to the sim and PIM driver module 2232. The system is based on the setting information of the first Gsm user identification module 230 or the second GSM user identification module 240 stored in the dual-mode mobile phone, so that the GSM application layer 211 of the GSM control module 210 sends the corresponding information. The control command controls the actuation and data transfer of the first GSM subscriber identity module 230 via the GSM device driver layer 213. Alternatively, the GSM control module 21 transmits the control command to the SIM and PIM driver module 2232 via the GSM device driver layer 213 and the PHS asynchronous transceiver driver module 2231 to control the 11th 200901733 second GSM subscriber identity module 240. Actuation and data transfer. When the GSM control module 210 controls the second GSM subscriber identity module 240, the PHS asynchronous transceiver driver module 2231 controls the SIM and PIM driver module 2232 to perform a simple serial port operation. Therefore, the PHS asynchronous transceiver driver module 2231 It can replace some functions of the PHS application layer 221 and the PHS protocol stack/PIM protocol 222, so it is not necessary to utilize the PHS application layer 221, the PHS protocol stack/PIM protocol 222. In this example, the first GSM subscriber identity module 230 is electrically connected to a first SIM card (not shown). The second GSM subscriber identity module 240 is electrically coupled to a second SIM card (not shown). Next, the communication message between the GSM device driver layer 213 and the PHS asynchronous transceiver driver module 2231 is used to perform control commands and data aggregation and transmission through a Universal Asynchronous Receiver/Transmitter (UART) specification. Refer to Figure 3 in May for the flow chart of the invention. Please refer to Figure 2 for understanding. The flow of the control method includes the following steps: Perform system initialization (step S310), and perform initialization of the system when the GSM and PHS dual-mode phones are powered on or reset. It is determined whether one of the second GSM subscriber identity modules 240 connected by a PHS control module 220 is on standby (step S320). The system retrieves the setting information for standby to determine whether the second GSM subscriber identity module 240 is performing the standby operation. The setting information for standby is stored in the existing memory (not shown) of the GSM and PHS dual-mode mobile phones, which means that the memory stores the setting information of the standby operation of the GSM user identification module. The memory itself can be 12 200901733 Flash Memory, Electrically Erasable Programmable Read-Only Memory 5 EEPROM or Erasable Programmable Read-Only Memory, EPROM) ° If the result of the determination is no, then the first GSM subscriber identity module standby 230' controls the first GSM subscriber identity module 230 to which it is connected using a GSM control module 210 (step S330). On the other hand, if the result of the determination in step S320 is YES, the second GSM subscriber identity module 240 is in standby of a PHS device driver layer 223 to establish a PHS asynchronous transceiver driver module 2231 and a SIM. The PIM driver module 2232, and the PHS asynchronous transceiver driver module 2231 communicates with the GSM device driver layer 213 of the GSM control module 210 by an asynchronous transceiver (UART) specification to control the second connection with the SIM and PIM driver module 2232. The GSM subscriber identity module 240 (step S340). Please refer to FIG. 4, which is a detailed flowchart of the standby operation of the first GSM subscriber identity module in FIG. The system outputs a control command to the GSM device driver layer 213 via the GSM Application Layer 211 of the GSM control module 210 (step S331). When the GSM control module 210 transmits a control command via the GSM application layer 211, the control command is processed by the GSM protocol stack 212 and the processed control command is output to the GSM device driver layer 213. According to the control command, the original data of the first GSM subscriber identity module 230 is obtained by the GSM device driver layer 213 (Raw Data) (step S332). Thereafter, the GSM device driver layer 213 returns the original data to the GSM protocol stack 212 and processes the original data via the GSM protocol stack 212 (step S333). Finally, the processed raw data is returned to the GSM application layer 211 (step S334). Thereby, the control and data reading of the first GSM subscriber identity module 230 by the GSM control module 210 is completed, and the standby mode based on the first GSM subscriber identity module 230 is entered. Please refer to FIG. 5, which is the second GSM subscriber identity module of FIG.

待機之細部流程圖。系統係經由GSM控制模組210之GSM 應用層211輸出一控制命令至PHS異步收發驅動模組2231 (步驟S341 )。當系統經由GSM控制模組210之GSM應用Detailed flow chart of standby. The system outputs a control command to the PHS asynchronous transceiver driver module 2231 via the GSM application layer 211 of the GSM control module 210 (step S341). When the system is connected to the GSM application via the GSM control module 210

層211輸出一控制命令時,係利用GSM控制模組210之GSM 協議棧212處理控制命令並輸出,再利用GSM裝置驅動層 213轉送控制命令至PHS異步收發驅動模組2231。此控制 命令自GSM裝置驅動層213輸出時,係經由異步收發( UART )規範進行控制命令之傳送。之後再利用ppjs異步收 發驅動模組2231解析控制命令並判斷控制命令是否為有 效的命令,若判斷為有效命令,則利用SIM與pIM驅動模組 2232控制並取得第二GSM用戶識別模組240之原始數據, 透過PHS異步收發驅動模組2231與GSM裝置驅動層213回 傳原始數據至GSM控制模組210之GSM協議棧212 (步驟 S342) 〇 14 200901733 在此之前,PHS控制模組220係依據此控制命令將其 運作時脈與操作電壓配置成符合第二GSM用戶識別模組 240的電器特性規範,並將第二GSM用戶識別模組240初 始化’以便於控制第二GSM用戶識別模組240與進行數據 之傳輸。然而’由於PHS協議棧/PIM協議222操作第二用 戶識別模組240即是單工的串口操作,因此PHS異步收發 驅動模組2231可部分取代PHS協議棧/PIM協議222與PHS 應用層221以透過SIM與ΠΜ驅動模組2232來控制第二用 戶識別模組240。 而回傳原始數據之過程中,SIM與PIM驅動模組2232When the layer 211 outputs a control command, the GSM protocol stack 212 of the GSM control module 210 processes the control command and outputs the signal, and then uses the GSM device driver layer 213 to forward the control command to the PHS asynchronous transceiver driver module 2231. When the control command is output from the GSM device driver layer 213, the control command is transmitted via the asynchronous transceiver (UART) specification. Then, the ppjs asynchronous transceiver driver module 2231 is used to parse the control command and determine whether the control command is a valid command. If it is determined to be a valid command, the SIM and pIM driver module 2232 are used to control and obtain the second GSM subscriber identity module 240. The original data is transmitted back to the GSM protocol stack 212 of the GSM control module 210 through the PHS asynchronous transceiver driver module 2231 and the GSM device driver layer 213 (step S342). 〇14 200901733 Prior to this, the PHS control module 220 is based on The control command configures its operating clock and operating voltage to conform to the electrical characteristics specification of the second GSM subscriber identity module 240 and initializes the second GSM subscriber identity module 240 to facilitate control of the second GSM subscriber identity module 240. And the transmission of data. However, since the PHS protocol stack/PIM protocol 222 operates the second subscriber identity module 240, which is a simplex serial port operation, the PHS asynchronous transceiver driver module 2231 can partially replace the PHS protocol stack/PIM protocol 222 and the PHS application layer 221. The second user identification module 240 is controlled by the SIM and ΠΜ drive module 2232. In the process of returning the original data, SIM and PIM driver module 2232

先將原始數據傳送至PHS異步收發驅動模組2231,此PHS 異步收發驅動模組2231經由異步收發(UART)規範以通 過一定的波特率將原始數據傳送至GSM裝置驅動層213, 這時PHS控制模組220的作動即是起到中轉數據的作用。 之後GSM裝置驅動層213再將原始數據傳送至GSM協議棧 212。 最後’經由GSM協議棧212處理原始數據並將經過處 理的原始數據回傳至GSM應用層211 (步驟S343),GSM應 用層211係處理回傳之原始數據,進而完成GSm應用層211 對弟一GSM用戶識別模組240之初步控制,同時進入以第 二GSM用戶識別模組240為主的待機模式。而使用者即可 透過GSM應用層211來控制第二gsm用戶識別模組240並 15 200901733 進行數據之傳遞。 請參照第6圖,其為本發明一實施例之選擇並記錄第 一或第二GSM用戶識別模組待機實施例之流程圖,係包含 下列之流程: 獲取並§己錄以弟一GSM用戶識別模組23〇或以第二 GSM用戶識別模組240待機(步驟S410)。此步驟係具有複 數個不同之作法’最常見的作法有記錄旗標數據與儲存待 機設定資訊。 當用戶利用GSM與PHS雙模手機下達切換或選擇以第 一GSM用戶識別模組230或以第二GSM用戶識別模組24〇 待機之控制命令時’系統會擷取到此控制命令並依據控制 命令包含之資訊以寫入一旗標數據或是將用戶想要使用的 第一 GSM用戶識別模組或第二GSM用戶識別模組之待機設 定資訊儲存於記憶體中。 重置系統(步驟S420 ),當系統重置後(或是將GSM 與PHS雙模手重新開機),會讀取記憶體中儲存的旗標數據 或是待機設定資訊,以判斷並驅動(^厘控制模組21〇讀取 第一 GSM用戶識別模組230或第二GSM用戶識別模組240 之原始數據,以進入第一 GSM用戶識別模組230或第二 GSM用戶識別模組240之待機模式。 知上所述,本發明所提供之運用Gsm與PHS雙模手機 控制雙GSM用戶識別模組之系統及其方法,可在不變更硬 16 200901733 體之丽提下,透過GSM控制模組、PHS異步收發驅動模組 與SIM與PIM驅動模組之間的配合以對第二GSM用戶識別 模組進行控制,故使用者能對兩不同GSM號碼之SIM卡進 行控制與切換待機模式,進而提供此GSM與pHS雙模手機 的實用性。 雖然本發明以前述之較佳實施例揭露如上,然其並非 用以限定本發明’任何熟f相像技藝者,在不脫離本發明 之精神和範_ ’所作更動與潤飾之等效替換,仍為本發 明之專利保護範圍内。 【圖式簡單說明】 第1圖繪示先前技術之GSM與PHS雙模手機之系統架構 圖; 第2圖綠示本發明之控制第—及第二GSM用戶識別模組實 施例之系統架構圖; 第3圖繪示本發明之控制第一及第二GSM用戶識別模組待 機實施例之流程圖; 第4圖繪示第3圖之第—GSM用戶識別模組待機之細部流 程圖; 第5圖繪示第3圖之第二G s M用戶識別模組待機之細部流 程圖;以及 第6圖繪示本發明之選擇並記錄第一或第二gsm用戶識別 模組待機實施例之流程圖。 17 200901733 主要元件符號說明 110 GSM控制模組 111 GSM應用層 112 GSM協議棧 113 GSM裝置驅動層 120 PHS控制模組 121 PHS應用層 122 PHS協議棧/PIM協議 123 PHS裝置驅動層 130 GSM用戶識別模組 140 PHS用戶識別模組 210 GSM控制模組 211 GSM應用層 212 GSM協議棧 213 GSM裝置驅動層 220 PHS控制模組 221 PHS應用層 222 PHS協議棧/PIM協議 223 PHS裝置驅動層 2231 PHS異步收發驅動模組 2232 SIM與PIM驅動模組 230 第一 GSM用戶識別模組 18 200901733 240 第二GSM用戶識別模組 步驟S310 執行系統初始化 步驟S320 判斷是否由一 PHS控制模組所連接之一第二 GSM用戶識別模組待機 步驟S330 利用一 GSM控制模組控制其連接之第一 GSM 用戶識別模組 • 步驟S331 經由GSM控制模組之GSM應用層輸出一控制 #’ 命令至GSM裝置驅動層。 步驟S332 利用GSM裝置驅動層取得第一 GSM用戶識別 模組之原始數據 步驟S333 回傳原始數據至GSM協議棧,並經由GSM協 議棧處理此原始數據 步驟S334 回傳經過處理之原始數據至GSM應用層 步驟S340 K. 一 PHS裝置驅動層建立相互連接之一 PHS異 步收發驅動模組與一 SIM與PIM驅動模組, 且PHS異步收發驅動模組以異步收發規範與 GSM控制模組之一 GSM裝置驅動層連通,以 控制與SIM與PIM驅動模組連接之第二GSM 用戶識別模組 步驟S341 步驟S342 經由GSM控制模組之GSM應用層輸出一控制 命令至PHS異步收發驅動模組。 利用PHS異步收發驅動模組解析控制命令並 步驟S342 19 200901733 步驟S343 判斷控制命令是否為有效的命令,若判斷為有 效命令,則利用SIM與PIM驅動模組控制並 取得第二GSM用戶識別模組之原始數據,透 過PHS異步收發驅動模組與GSM裝置驅動層 回傳原始數據至GSM控制模組之GSM協議 擾。 經由GSM協議棧處理原始數據並將經過處理 的原始數據回傳至GSM應用層 步驟S410 獲取並記錄以第一 GSM用戶識別模組或以第 二GSM用戶識別模組待機 步驟S420 重置系統 20The raw data is first transmitted to the PHS asynchronous transceiver driver module 2231. The PHS asynchronous transceiver driver module 2231 transmits the original data to the GSM device driver layer 213 via a synchronous baud rate via a synchronous transceiver (UART) specification, at which time the PHS control The operation of the module 220 acts as a relay data. The GSM device driver layer 213 then transmits the raw data to the GSM protocol stack 212. Finally, the original data is processed via the GSM protocol stack 212 and the processed original data is transmitted back to the GSM application layer 211 (step S343). The GSM application layer 211 processes the original data returned, thereby completing the GSm application layer 211. The initial control of the GSM subscriber identity module 240 simultaneously enters a standby mode based on the second GSM subscriber identity module 240. The user can control the second gsm user identification module 240 and 15 200901733 to transmit data through the GSM application layer 211. Please refer to FIG. 6 , which is a flowchart of selecting and recording a standby embodiment of a first or second GSM subscriber identity module according to an embodiment of the present invention, which includes the following processes: acquiring and § recording a GSM subscriber The identification module 23 is either in standby or in the second GSM subscriber identity module 240 (step S410). This step has a number of different practices. The most common practice is to record flag data and store standby settings. When the user uses the GSM and PHS dual-mode mobile phone to make a handover or select a control command with the first GSM subscriber identity module 230 or the second GSM subscriber identity module 24, the system will retrieve the control command and control it according to the control. The command includes information to write a flag data or store the standby setting information of the first GSM subscriber identity module or the second GSM subscriber identity module that the user wants to use in the memory. Reset the system (step S420), when the system is reset (or the GSM and PHS dual-mode hands are restarted), the flag data stored in the memory or the standby setting information will be read to judge and drive (^ The control module 21 reads the original data of the first GSM subscriber identity module 230 or the second GSM subscriber identity module 240 to enter the standby of the first GSM subscriber identity module 230 or the second GSM subscriber identity module 240. In view of the above, the system and method for controlling dual GSM subscriber identity modules using Gsm and PHS dual-mode mobile phones provided by the present invention can be transmitted through the GSM control module without changing the hard 16 200901733 The PHS asynchronous transceiver driver module cooperates with the SIM and PIM driver module to control the second GSM subscriber identity module, so that the user can control and switch the standby mode of the SIM card with two different GSM numbers, and then The utility model provides the utility of the GSM and pHS dual-mode mobile phone. Although the present invention has been disclosed above in the above preferred embodiments, it is not intended to limit the invention to any skilled person, without departing from the spirit and scope of the present invention. '所The equivalent replacement of the modification and retouching is still within the scope of patent protection of the present invention. [Simplified description of the drawing] FIG. 1 is a schematic diagram showing the system architecture of the prior art GSM and PHS dual-mode mobile phones; The system architecture diagram of the embodiment of the invention and the second GSM subscriber identity module; FIG. 3 is a flow chart of the standby embodiment of the first and second GSM subscriber identity modules of the present invention; 3 is a detailed flow chart of the standby of the GSM subscriber identity module; FIG. 5 is a detailed flow chart of the standby of the second G s M subscriber identity module of FIG. 3; and FIG. 6 is a diagram showing the present invention. Select and record the flow chart of the standby embodiment of the first or second gsm subscriber identity module. 17 200901733 Main component symbol description 110 GSM control module 111 GSM application layer 112 GSM protocol stack 113 GSM device driver layer 120 PHS control module 121 PHS application layer 122 PHS protocol stack/PIM protocol 123 PHS device driver layer 130 GSM subscriber identity module 140 PHS subscriber identity module 210 GSM control module 211 GSM application layer 212 GSM protocol stack 213 GSM device driver layer 220 PHS control module 221 PHS application layer 222 PHS protocol stack / PIM protocol 223 PHS device driver layer 2231 PHS asynchronous transceiver driver module 2232 SIM and PIM driver module 230 First GSM subscriber identity module 18 200901733 240 Second GSM subscriber identity The module step S310 performs a system initialization step S320 to determine whether a second GSM subscriber identity module is connected by a PHS control module. The standby step S330 controls the first GSM subscriber identity module connected by using a GSM control module. S331 outputs a control #' command to the GSM device driver layer via the GSM application layer of the GSM control module. Step S332: Acquire the original data of the first GSM subscriber identity module by using the GSM device driver layer. Step S333: Return the original data to the GSM protocol stack, and process the original data via the GSM protocol stack. Step S334: Return the processed original data to the GSM application. Step S340 K. A PHS device driver layer establishes one PHS asynchronous transceiver driver module and a SIM and PIM driver module, and the PHS asynchronous transceiver driver module uses an asynchronous transceiver specification and one GSM control module GSM device. The driving layer is connected to control the second GSM subscriber identity module connected to the SIM and the PIM driver module. Step S341 Step S342: Output a control command to the PHS asynchronous transceiver driver module via the GSM application layer of the GSM control module. The PHS asynchronous transceiver driver module parses the control command and steps S342 19 200901733 step S343 determines whether the control command is a valid command. If it is determined to be a valid command, the SIM and PIM driver module are used to control and obtain the second GSM user identification module. The original data is transmitted through the PHS asynchronous transceiver driver module and the GSM device driver layer to transmit the original data to the GSM protocol module for GSM protocol interference. Processing the original data via the GSM protocol stack and transmitting the processed original data back to the GSM application layer. Step S410 Obtaining and recording the first GSM subscriber identity module or the second GSM subscriber identity module standby step S420 resetting the system 20

Claims (1)

200901733 十、申請專利範圍:200901733 X. Patent application scope: -種GSM與PHS雙模手機控制雙 之方法,該方法至少包含下列步驟: GSM用戶識別模組 執行系統初始化;以及 判斷疋否由-PHS控制模組所連接之—第二gsm 用戶識別&組待機,若為否則由—第—GSM用戶識別 才、、、待機係'利用一 GSM控制模組控制其連接之該第 GSM用戶蠘關組,若為是則由該第二用戶識 別模組待機,係於一哪褒置驅動層建立相互連接之一 PHS異步收發驅動模組與-SIM與PIM驅動模組,且 該刪異步收發驅動模組以異步收發規範與該GSM控 制模、,,之GSM裝置驅動層連通,以控制與該sim與 PIM驅動;^組連接之該第:gsm用戶識別模組。 2.如申印專利範圍第丨項所述之控制雙〇sM用戶識別模 組之方法,其中更包含: 、 獲取並記錄以該第—GSM用戶識別模組或以該第 二GSM用戶識別模組待機;以及 重置該系統。 3.如申請專利範圍第2項所述之控制雙 GSM用戶識別模 組之方法,其中該儲存該第一 qsm用戶識別模組或該 第二GSM用戶識別模組係利用一快閃記憶體、一 EEPROM 或一 EPR0M 儲存。 21 200901733 4. 如申請專利範圍第1項所述之控制雙gSm用 識別振 、、且之方法,其中由該第一 GSM用戶識別模叙待 、 係更包含下列步驟: ^驟 經由該GSM控制模組之一 GSM應用層輪出〜处 命令至該GSM裝置驅動層; 工 利用該GSM裝置驅動層取得該第一 GSM用百 尸硪別 杈組之原始數據; 回傳該原始數據至該GSM控制模組之—Gsm協議 棧,並經由該GSM協議桡處理該原始數據;以及 回傳經過處理之該原始數據至該GSM應用;。 5. 如申請專利範圍第4項所述之控制雙GSM用戶識別模 組之方法,其中經由該GSM控制模組之該GSM應用層 輪出該控制命令至該GSM裝置驅動層之步驟更包含利 用該GS1V[協議棧處理該控制命令並輸出經過處理之該 控制命令至該GSM裝置驅動層。 6,如申請專利範圍第1項所述之控制雙GSM用戶識別模 組之方法,其中該第二GSM用戶識別模組待機步驟更 包含下列步驟: 經由該GSM控制模組之一 GSM應用層輸出一控制 命令至該PHS異步收發驅動模組; 利用該PHS異步收發驅動模組解析該控制命令並 判斷該控制命令是否為有效命令,若判斷為有效,則利 22 200901733 用该SIM與PIM驅動模組控制並取得該第二GSM用戶 識別模組之原始數據’並透過該pHS異步收發驅動模組 與該GSM裝置驅動層回傳該原始數據至該gsm控制模 組之一 GSM協議機;以及 經由該GSM協議棧處理該原始數據並將經過處理 之該原始數據回傳至該GSM應用層。 7. 如申請專利範圍第6項所述之控制雙GSM用戶識別模 組之方法,其中經由該GSM控制模組之該GSM應用層 輸出該控制命令至該PHS異步收發驅動模組步驟至少 包含下列步驟: 經由該GSM控制模組之該GSM應用層輸出該控制 命令; 利用該GSM控制模組之該GSM協議棧處理該控制 命令並輸出;以及 利用該GSM裝置驅動層擷取並轉送該控制命令至 該PHS異步收發驅動模組。 8. 如申請專利範圍第1項所述之控制雙GSM用戶識別模 組之方法,其中該第一 GSM用戶識別模組係供電性輕 接一第一 SIM卡,以供讀取5亥弟一 SIM卡之數據。 9. 如申請專利範圍第1項所述之控制雙GSM用戶識別模 組之方法,其中該第二用戶識別模組係供電性粞 接一第二SIM卡,以供讀取該第二SIM卡之數據。 23- A method for controlling dual-mode GSM and PHS dual-mode mobile phones, the method comprising at least the following steps: GSM user identification module performs system initialization; and determines whether or not the -gsm control module is connected - second gsm user identification & The group is standby, if it is otherwise identified by the - GSM user, the standby system uses a GSM control module to control the connection of the GSM user-critical group, and if so, the second user identification module Standby, in which the driver layer establishes a PHS asynchronous transceiver driver module and a SIM and PIM driver module, and the asynchronous transceiver module is asynchronously transmitted and received with the GSM control module, The GSM device driver layer is connected to control the first: gsm user identification module connected to the sim and PIM driver; 2. The method for controlling a dual sm user identification module according to the scope of the patent application scope, wherein the method further comprises: acquiring and recording the first GSM subscriber identity module or the second GSM subscriber identity module; Group standby; and reset the system. 3. The method for controlling a dual GSM subscriber identity module according to claim 2, wherein the storing the first qsm subscriber identity module or the second GSM subscriber identity module utilizes a flash memory, An EEPROM or an EPR0M is stored. 21 200901733 4. The method for controlling dual gsm for identifying a vibration according to claim 1 of the patent scope, wherein the first GSM user identifies the mode, and the method further comprises the following steps: One of the modules GSM application layer rotates the command to the GSM device driver layer; the GSM device driver layer uses the GSM device driver layer to obtain the original data of the first GSM corpse group; and returns the original data to the GSM Controlling the Gsm protocol stack of the module, and processing the original data via the GSM protocol; and returning the processed raw data to the GSM application; 5. The method of controlling a dual GSM subscriber identity module according to claim 4, wherein the step of rotating the control command to the GSM device driver layer via the GSM application layer of the GSM control module further comprises utilizing The GS1V [protocol stack processes the control command and outputs the processed control command to the GSM device driver layer. 6. The method for controlling a dual GSM subscriber identity module according to claim 1, wherein the second GSM subscriber identity module standby step further comprises the following steps: outputting through a GSM application layer of the GSM control module. A control command is sent to the PHS asynchronous transceiver driver module; the PHS asynchronous transceiver driver module is used to parse the control command and determine whether the control command is a valid command, and if it is determined to be valid, then the SIM and PIM driver modules are used by the 22200901733 Controlling and obtaining the original data of the second GSM subscriber identity module and transmitting back the original data to the GSM protocol machine of the gsm control module through the pHS asynchronous transceiver driver module and the GSM device driver layer; The GSM protocol stack processes the raw data and passes the processed raw data back to the GSM application layer. 7. The method for controlling a dual GSM subscriber identity module according to claim 6, wherein the step of outputting the control command to the PHS asynchronous transceiver driver module via the GSM control module of the GSM control module comprises at least the following Step: outputting the control command by using the GSM application layer of the GSM control module; processing the control command by using the GSM protocol stack of the GSM control module, and outputting; and using the GSM device driver layer to retrieve and forward the control command To the PHS asynchronous transceiver driver module. 8. The method for controlling a dual GSM subscriber identity module according to claim 1, wherein the first GSM subscriber identity module is powered by a first SIM card for reading 5 Haidi 1 SIM card data. 9. The method for controlling a dual GSM subscriber identity module according to claim 1, wherein the second subscriber identity module is powered by a second SIM card for reading the second SIM card. Data. twenty three
TW96122389A 2007-06-20 2007-06-20 Method for mobile phone with GSM and PHS modes to control two GSM subscriber identify modules TW200901733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW96122389A TW200901733A (en) 2007-06-20 2007-06-20 Method for mobile phone with GSM and PHS modes to control two GSM subscriber identify modules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW96122389A TW200901733A (en) 2007-06-20 2007-06-20 Method for mobile phone with GSM and PHS modes to control two GSM subscriber identify modules

Publications (1)

Publication Number Publication Date
TW200901733A true TW200901733A (en) 2009-01-01

Family

ID=44721718

Family Applications (1)

Application Number Title Priority Date Filing Date
TW96122389A TW200901733A (en) 2007-06-20 2007-06-20 Method for mobile phone with GSM and PHS modes to control two GSM subscriber identify modules

Country Status (1)

Country Link
TW (1) TW200901733A (en)

Similar Documents

Publication Publication Date Title
TWI386012B (en) Method for mobile phone with gsm and cdma modes to control two gsm subscriber identify modules
CN101765243B (en) CDMA and GSM bimodule digital mobile communication terminal
US8554276B2 (en) Apparatus and method for controlling subscriber identity module card
US8023998B2 (en) Wireless enabled memory module
EP2306264A2 (en) Memory card supplemented with wireless communication module, terminal for using same, memory card including wpan communication module, and wpan communication method using same
CN103431872B (en) Heart sound transmission and management system based on NFC (Near Field Communication) and Bluetooth
TW201025971A (en) Subscriber identity module with an incorporated radio
WO2011103733A1 (en) Mobile terminal for supporting near field communication and near field communication method thereof
EP3079330A1 (en) Method for wireless access of memory device, and mobile hotspot device
US20180247299A1 (en) Watch with SIM and Web browser
JP5225160B2 (en) Communication terminal device
CN104394279A (en) Communication terminal and terminal interface equipment for SIM card wireless data transmission
JP4738139B2 (en) Mobile communication system, mobile communication system control method, and mobile radio terminal apparatus
KR100576523B1 (en) Apparatus and method for changing of mode in dual mode terminal
CN110692090A (en) BluetoothTMLow power consumption data transmission communication system and method
CN101095124A (en) Mobile terminal device and data acquisition method using the same
CN105808496A (en) Personal work system capable of being dynamically combined and regulated
US8494578B2 (en) Method for display of dual standby portable terminal and apparatus thereof
TWI379575B (en) Method for mobile phone with gsm and td-scdma modes to control two gsm subscriber identify modules
WO2012155497A1 (en) Multimode terminal and method for implementing multimode multi-waiting
TW200901733A (en) Method for mobile phone with GSM and PHS modes to control two GSM subscriber identify modules
JP2000332642A (en) Radio communication device
TWI386013B (en) Method for mobile phone with cdma and gsm modes to control two cdma subscriber identify modules
CN113170215A (en) Video live broadcast method, system and computer storage medium
TWI376931B (en) Method for mobile phone with tdscdma and gsm modes to control two tdscdma subscriber identify modules