201041420 六、發明說明: 【發明所屬之技術領域】 本發明涉及一種發送簡訊的方法,尤其係關於一種於 全球移動通訊系統 (Global System for Mobile Communications,GSM )架構下發送多媒體簡訊的方法。 【先前技術】 多媒體簡訊業務(Multimedia Messaging Service, MMS),係於簡訊業務基礎上發展起來之一種新型簡訊 ◎ 業務。MMS係第3代移動通訊標準化組織(3GPP)制 定之全球簡訊傳送標準,根據該標準用戶可將不同之 MMS簡訊進行發送。使用者藉由手機發送MMS簡訊之 操作與SMS簡訊一樣方便,用戶創建之MMS簡訊能夠 自動、快速地於手機之間傳送。MMS簡訊之傳送仍按 接收方手機號碼進行定位;當接收方關機或暫時未於服 務區之情況下,MMS簡訊將儲存於多媒體簡訊中心 (MMSC),直到能夠正確送達為止。 用戶識別應用工具(SIM Application Toolkit,STK) 為一個指令集,也由3GPP所定義,其獨立於SIM卡之 外,提供SIM卡額外附加之應用功能。然而,STK僅僅 定義 了簡訊(Short Messaging Service,SMS)之發送指 令,因此於GSM下只能發送SMS簡訊而不能發送MMS 簡訊。目前,SMS簡訊與MMS簡訊格式之整合及發送 判別係為STK尚未克服之困難點。 【發明内容】 201041420 鑒於以上内容,有必要提供一種於GSM架構下使用 STK發送多媒體簡訊的方法,藉由STK驅動層與STK介 . 面層之間之資料轉換,讓使用者可選擇性地發送MMS 簡訊還是SMS簡訊至目的手機中。 一種於GSM架構下發送多媒體簡訊的方法,該gsm 架構包括SIM卡、STK驅動層、STK介面層及用戶介面。 所述的方法包括如下步驟:(a)當用戶於用戶介面上輸入 需要發送多媒體簡訊之指令後,STK介面層將該指令透過 〇 STK驅動層傳送給SIM卡,所述之多媒體簡訊包括SMS 簡訊與MMS簡訊;(b)SIM卡發出要求用戶輸入目的地 號碼之輸入指令給STK驅動層;(c) STK驅動層收到所 述輸入指令後,STK介面層透過用戶介面要求用戶輸入發 送多媒體簡訊之目的地號碼;(d)STK介面層判斷用戶 是否輸入發送多媒體簡訊之目的地號碼;(e)若用戶沒有 輸入目的地號碼,則STK驅動層按照SIM卡内之預設號 Λ 碼發送SMS簡訊至對應之手機上;(f)若用戶輸入目的201041420 VI. Description of the Invention: [Technical Field] The present invention relates to a method for transmitting a short message, and more particularly to a method for transmitting a multimedia message under the Global System for Mobile Communications (GSM) architecture. [Prior Art] The Multimedia Messaging Service (MMS) is a new type of newsletter developed on the basis of the newsletter business. MMS is a global SMS delivery standard developed by the 3rd Generation Mobile Communications Standards Organization (3GPP), according to which users can send different MMS messages. The operation of the user to send the MMS message via the mobile phone is as convenient as the SMS message, and the MMS message created by the user can be automatically and quickly transmitted between the phones. The transmission of the MMS message is still located according to the recipient's mobile number; when the receiver is turned off or temporarily not in the service area, the MMS message will be stored in the Multimedia Message Center (MMSC) until it is properly delivered. The SIM Application Toolkit (STK) is an instruction set, also defined by 3GPP. It is independent of the SIM card and provides additional application functions for the SIM card. However, STK only defines the Short Messaging Service (SMS) transmission instructions, so only SMS messages can be sent under GSM and MMS messages cannot be sent. At present, the integration of SMS SMS and MMS SMS format and transmission discrimination are difficult points that STK has not overcome. SUMMARY OF THE INVENTION 201041420 In view of the above, it is necessary to provide a method for transmitting a multimedia message using the STK under the GSM architecture, and the data can be selectively transmitted by the user through the STK driver layer and the STK interface layer. The MMS newsletter is also in the SMS newsletter to the destination phone. A method for transmitting a multimedia message in a GSM architecture, the gsm architecture includes a SIM card, an STK driver layer, an STK interface layer, and a user interface. The method includes the following steps: (a) after the user inputs an instruction to send a multimedia message on the user interface, the STK interface layer transmits the instruction to the SIM card through the STK driver layer, where the multimedia message includes an SMS message. (b) The SIM card issues an input command requesting the user to input the destination number to the STK driver layer; (c) after receiving the input command, the STK driver layer requests the user input to send the multimedia message through the user interface. The destination number; (d) the STK interface layer determines whether the user inputs the destination number for transmitting the multimedia message; (e) if the user does not input the destination number, the STK driver layer sends the SMS according to the preset number in the SIM card. SMS to the corresponding mobile phone; (f) if the user enters the purpose
UU
地號碼,則STK驅動層透過STK介面層判斷用戶發送之 簡訊係SMS簡訊還是MMS簡訊;(g)若用戶需要發送 SMS簡訊,則STK驅動層將用戶所需發送之SMS簡訊按 照目的地號碼發送到對應之手機上;(h)若用戶需要發 送MMS簡訊,則STK驅動層將用戶所需發送之MMS簡 訊按照目的地號碼發送到對應之手機上;(i)當STK驅 動層發送出SMS簡訊或MMS簡訊後’ STK驅動層將發 送結果包入一個響應發送指令之消息包後回傳給SIM 5 201041420 卡;及(g)當SIM卡接收到該回應消息包後發出—個結 束指令給STK驅動層來結束發送多媒體簡訊。 相較於習知技術,本發明藉由提供一種於GSM架構 下發送MMS簡訊的方法,其能夠於GSM架構下發送多媒 體簡訊時,藉由STK驅動層與STk介面層之間之資料轉 換’讓用戶可選擇性地發送MMS簡訊還是SMS簡訊至 目的地手機中。 【實施方式】 如圖1所示,係本發明發送多媒體簡訊之全球移動通 訊糸統(Global System for Mobile Communications,GSM) 之架構圖。該GSM系統包括用戶識別模組(Subscriber Identity Module,簡稱SIM卡)1、用戶識別工具(SIM Toolkit ’簡稱STK) 2及用戶介面3。所述之STK2包括 STK 驅動層(STKDriver)21 及 STK 介面層(STKUI) 22。其中,SIM卡1與STK驅動層21相互連接,用戶介 面3與STK介面層22相互連接,STK驅動層21與STK 介面層22相互連接,其間均可進行雙向資料交互。所述 之多媒體簡訊包括SMS簡訊與MMS簡訊,該SMS簡訊 一般係指純文本簡訊,該MMS簡訊一般係指文本、圖 片、照片、音頻、視頻及其組合之多媒體簡訊。 所述之SIM卡1存儲有可供用戶發送SMS簡訊對應 之指令集,該指令集由可由電信商預先設定,用戶經由既 定之指令集輸入欲發送SMS簡訊之目的地號碼後,SIM卡 1於收到預設指令之響應之後,按對應之指令集發出欲傳 6 201041420 送SMS之指令,例如SendSMS指令。此外’當STK2發 送出SMS簡訊後,SIM卡1内之指令集根據STK2發送 SMS或MMS簡訊之發送結果(例如,發送成功或發送失 敗)發出一個結束發送簡訊之指令,例如EndSession指令’ 以便結束本次短簡訊之發送任務。 所述之STK2為一個指令集,係第3代移動通訊標 準化組織(3GPP )制定之GSM標準,其獨立於SIM卡 1之外,提供SIM卡1額外附加之應用功能。由於STK 〇 2僅僅定義了 SMS簡訊之發送指令,因此於GSM架構 下只能發送SMS簡訊而不能發送MMS簡訊。於本實施 例中,藉由STK驅動層21與STK介面層22之間之資料 轉換,讓用戶可選擇性地發送MMS簡訊還是SMS簡訊 至目的地手機中。 所述之用戶介面3提供一個可供用戶輸入多媒體簡訊 (包括SMS或MMS簡訊)與目的地號碼之圖形操作介 ❹ 面,當用戶輪入目的地號碼後,STK介面層22獲取目的 地號碼’並將該目的地號碼透過STK驅動層21傳送給SIM 卡1。於本實施例中,用戶於發送MMS簡訊之前必須先 輸入目的地號碼,因此SIM卡1必須具有用戶輸入號碼之 功能。當用戶需發送MMS簡訊之前,SIM卡χ必須先發 出一個要求用戶輸入之指令,例如Getlnput指令。當STk 驅動層21收到此指令後’ STK介面層22藉由用戶介面3 要求用戶輸入需發送MMS簡訊之目的地號碼,而後STK 介面層22透過STK驅動層21將用戶輸入之目的地號碼傳 7 201041420 送給SIM卡1。 圖2係本發明於GSM架構下發送多媒體簡訊的方法 較佳實施例之流程圖。步驟S20,當使用者於用戶介面3 輸入需要發送簡訊之選擇指令,例如Selectltem指令,STK 介面層22將該選擇指令透過STK驅動層21傳送給SIM 卡1。 步驟S21 ’ SIM卡1發出一個要求用戶輸入目的地號 碼之輸入指令給STK驅動層21,例如Getlnput指令。步 〇 驟$22,STK驅動層21收到此輸入指令後,STK介面層 22將透過用戶介面3要求用戶輸入發送多媒體簡訊之目 的地號碼。 步驟S23,STK介面層22判斷用戶是否輸入發送多媒 體簡訊之目的地號碼。若用戶輸入目的地號碼,步驟S24, STK介面層22將目的地號碼記錄於STK驅動層21之號碼 記錄表中’並藉由STK驅動層21將該目的地號碼發送給 0 SIM卡1。若用戶沒有輸入目的地號碼,則流程轉向步驟 S34 ° 步驟S25 ’ SIM卡1接收到此目的地號碼後,SIM卡 1根據預設之指令集產生一個傳送SMS之指令,例如 SendSMS指令’並將接收到之目的地號碼包入SendSMS 指令後發送給STK驅動層21。步驟S26,STK驅動層21 接收到SendSMS指令後從該SendSMS指令中分解出目的 地號碼’並將該目的地號碼與所述號碼記錄表中記錄之號 碼進行比對。 8 201041420 步驟S27,STK驅動層21判斷號碼記錄表是否存在目 的地號碼。正常情況下可從電話號碼表中找到對應之號 碼,因為當用戶於用戶介面3上輸入目的地號碼後,STK 介面層22會將用戶輸入之目的地號碼記錄於STK驅動層 21之號碼記錄表中。於本實施例中,若號碼記錄表不存 在目的地號碼,例如當所述號碼記錄表中記錄之目的號碼 發生錯誤時,步驟S28,STK驅動層21藉由用戶介面3 提示用戶輸入之目的地號碼發生錯誤,而後流程返回步驟 〇 S22讓用戶重新輸入目的地號碼。若號碼記錄表存在目的 地號碼,步驟S29,STK驅動層21透過STK介面層22判 斷用戶需要發送之簡訊係MMS簡訊還是SMS簡訊。 若用戶需要發送MMS簡訊,步驟S30,STK驅動層 21將用戶所需發送之MMS簡訊按照目的地號碼發送到對 應之手機上。若用戶需要發送SMS簡訊,步驟S31 ’ STK 驅動層21將用戶所需發送之SMS簡訊按照目的地號碼發 送到對應之手機上。 Ο 步驟S32,當STK驅動層21發送出MMS簡訊或SMS 簡訊後,STK驅動層21將發送結果(例如’發送成功或 發送失敗)包入一個響應SendSMS指令之消息包後傳送回 給SIM卡1。步驟S33,當SIM卡1接收到該響應消息包 後發出一個結束指令給STK驅動層21,例如EndSession 指令,STK驅動層21收到結束指令後清空號碼記錄表中 記錄之目的地號碼,以釋放STK驅動層21内之儲存資源。 於上述步驟S23中,若用戶沒有輸入目的地號碼,步 9 201041420 驟S34,SIM卡1根據預設之指令集產生一個SendSMS指 令,並將SIM卡1内預設之號碼包入SendSMS指令後發 送給STK驅動層21。步驟S35,STK驅動層21收到該 SendSMS指令後從SendSMS指令中分解出預設號碼,而 後流程轉向步驟S31,亦即,STK驅動層21按照預設號碼 發送SMS簡訊到對應之手機上。 由於STK驅動層21僅僅定義了 SMS簡訊之發送指 令’於GSM架構下只能發送SMS簡訊而不能發送MMS ❹ 簡訊。因此’本發明提供了一種GSM架構下利用STK技 術發送多媒體簡訊的方法,其能夠於GSM架構下發送多 媒體簡訊時,藉由STK驅動層21與STK介面層22之間 之資料轉換,可讓用戶選擇性地發送MMS簡訊還是 SMS簡訊至目的地手機令。 以上所述僅為本發明之較佳實施例而已,且已達廣 泛之使用功效,凡其他未脫離本發明所揭示之精神下所 ❹ 完成之均等變化或修飾’均應包含在下述之申請專利範 圍内。 【圖式簡單說明】 圖1係本發明發送多媒體簡訊之GSM較佳實施例之 架構圖。 圖2係本發明於GSM架構下發送多媒體簡訊的方法 較佳實施例之流程圖。 【主要元件符號說明】 戶識別模組(SIM卡) 1 201041420 用戶識別工具(STK) 2 STK驅動層 21 STK介面層 22 用戶介面 3If the user needs to send an SMS message, the STK driver layer sends the SMS message sent by the user according to the destination number. (h) If the user needs to send an MMS message, the STK driver layer sends the MMS message sent by the user to the corresponding mobile phone according to the destination number; (i) when the STK driver layer sends the SMS message Or after the MMS newsletter, the STK driver layer will send the result packet into a message packet that responds to the send command and then return it to the SIM 5 201041420 card; and (g) when the SIM card receives the response message packet, an end command is sent to the STK. The driver layer ends the sending of the multimedia message. Compared with the prior art, the present invention provides a method for transmitting an MMS message in a GSM architecture, which can transmit data between the STK driver layer and the STk interface layer when transmitting a multimedia message in the GSM architecture. The user can selectively send an MMS message or an SMS message to the destination phone. [Embodiment] As shown in FIG. 1, it is an architecture diagram of a Global System for Mobile Communications (GSM) that transmits a multimedia message according to the present invention. The GSM system includes a Subscriber Identity Module (SIM), a User Identification Tool (SIM Toolkit hereinafter referred to as STK) 2, and a User Interface 3. The STK2 includes an STK driver layer (STKDriver) 21 and a STK interface layer (STKUI) 22. The SIM card 1 and the STK driver layer 21 are connected to each other, the user interface 3 and the STK interface layer 22 are connected to each other, and the STK driver layer 21 and the STK interface layer 22 are connected to each other, and bidirectional data interaction can be performed therebetween. The multimedia message includes an SMS message and an MMS message, and the SMS message generally refers to a plain text message, and the MMS message generally refers to a multimedia message of text, picture, photo, audio, video, and a combination thereof. The SIM card 1 stores an instruction set corresponding to the SMS message sent by the user. The instruction set is preset by the telecommunications provider. After the user inputs the destination number of the SMS message to be sent via the established instruction set, the SIM card 1 is After receiving the response of the preset instruction, an instruction to send the SMS, such as the SendSMS instruction, is sent according to the corresponding instruction set. In addition, when the STK2 sends out the SMS message, the instruction set in the SIM card 1 sends an instruction to end the transmission of the message according to the transmission result of the SMS or MMS message sent by the STK2 (for example, the transmission succeeds or the transmission fails), for example, the EndSession instruction 'ends The sending task of this short newsletter. The STK2 is an instruction set, which is a GSM standard developed by the 3rd Generation Mobile Communication Standardization Organization (3GPP). It is independent of the SIM card 1 and provides additional application functions of the SIM card 1. Since STK 〇 2 only defines the sending instructions of the SMS message, only the SMS message can be sent under the GSM architecture and the MMS message cannot be sent. In this embodiment, the data conversion between the STK driver layer 21 and the STK interface layer 22 allows the user to selectively send an MMS message or an SMS message to the destination handset. The user interface 3 provides a graphical operation interface for the user to input a multimedia message (including an SMS or MMS message) and a destination number. When the user turns in the destination number, the STK interface layer 22 obtains the destination number. The destination number is transmitted to the SIM card 1 through the STK driver layer 21. In this embodiment, the user must first enter the destination number before sending the MMS message, so the SIM card 1 must have the function of the user input number. Before the user needs to send an MMS message, the SIM card must first issue an instruction that requires user input, such as the Getlnput command. After the STk driver layer 21 receives the command, the STK interface layer 22 requests the user to input the destination number of the MMS message to be sent through the user interface 3, and then the STK interface layer 22 transmits the destination number entered by the user through the STK driver layer 21. 7 201041420 Send to SIM card 1. 2 is a flow chart of a preferred embodiment of a method for transmitting a multimedia message in the GSM architecture of the present invention. In step S20, when the user inputs a selection instruction, such as a Selectltem instruction, to the user interface 3, the STK interface layer 22 transmits the selection instruction to the SIM card 1 through the STK driver layer 21. Step S21' The SIM card 1 issues an input command requesting the user to input the destination number to the STK driver layer 21, such as the Getlnput command. Step 22 $22, after the STK driver layer 21 receives the input command, the STK interface layer 22 will request the user to input the destination number of the multimedia message through the user interface 3. In step S23, the STK interface layer 22 determines whether the user inputs the destination number for transmitting the multimedia message. If the user inputs the destination number, the step S24, the STK interface layer 22 records the destination number in the number record table of the STK driver layer 21 and transmits the destination number to the 0 SIM card 1 by the STK driver layer 21. If the user does not input the destination number, the flow moves to step S34. Step S25 ' After the SIM card 1 receives the destination number, the SIM card 1 generates an instruction to transmit the SMS according to the preset instruction set, for example, the SendSMS command' The received destination number is sent to the STK driver layer 21 after being included in the SendSMS command. In step S26, the STK driver layer 21 decomposes the destination number ' from the SendSMS command after receiving the SendSMS command and compares the destination number with the number recorded in the number record table. 8 201041420 Step S27, the STK driver layer 21 judges whether or not the number record table has the destination number. The corresponding number can be found in the phone number list under normal circumstances, because when the user inputs the destination number on the user interface 3, the STK interface layer 22 records the destination number entered by the user in the number record table of the STK driver layer 21. in. In this embodiment, if the destination number is not present in the number record table, for example, when the destination number recorded in the number record table is incorrect, the STK driver layer 21 prompts the user to input the destination through the user interface 3 in step S28. An error occurs in the number, and the flow returns to step S22 to let the user re-enter the destination number. If the number record table has the destination number, in step S29, the STK driver layer 21 determines through the STK interface layer 22 whether the user wants to send the SMS MMS message or the SMS message. If the user needs to send an MMS message, in step S30, the STK driver layer 21 sends the MMS message to be sent by the user to the corresponding mobile phone according to the destination number. If the user needs to send an SMS message, step S31 'STK driver layer 21 sends the SMS message to be sent by the user to the corresponding mobile phone according to the destination number. Ο Step S32, after the STK driver layer 21 sends out the MMS message or the SMS message, the STK driver layer 21 encapsulates the transmission result (for example, 'send success or transmission failure') into a message packet in response to the SendSMS command and transmits it back to the SIM card 1 . Step S33, after receiving the response message packet, the SIM card 1 issues an end command to the STK driver layer 21, for example, an EndSession command, and the STK driver layer 21 clears the destination number recorded in the number record table after receiving the end instruction to release. The STK drives the storage resources within the layer 21. In the above step S23, if the user does not input the destination number, step 9 201041420 step S34, the SIM card 1 generates a SendSMS command according to the preset instruction set, and sends the preset number in the SIM card 1 to the SendSMS command and then sends the message. The STK driver layer 21 is provided. In step S35, the STK driver layer 21 decomposes the preset number from the SendSMS command after receiving the SendSMS command, and then the process moves to step S31, that is, the STK driver layer 21 sends the SMS message to the corresponding mobile phone according to the preset number. Since the STK driver layer 21 only defines the sending instruction of the SMS message, 'only the SMS message can be sent under the GSM architecture and the MMS 简 message cannot be sent. Therefore, the present invention provides a method for transmitting a multimedia message by using the STK technology in the GSM architecture, which can enable the user to exchange data between the STK driver layer 21 and the STK interface layer 22 when transmitting the multimedia message in the GSM architecture. Selectively send MMS newsletters or SMS newsletters to destination phone orders. The above is only the preferred embodiment of the present invention, and has been used in a wide range of applications, and all other equivalent changes or modifications that are not included in the spirit of the present invention should be included in the following patent application. Within the scope. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram of a preferred embodiment of GSM for transmitting multimedia messages in accordance with the present invention. 2 is a flow chart of a preferred embodiment of a method for transmitting a multimedia message in the GSM architecture of the present invention. [Main component symbol description] Household identification module (SIM card) 1 201041420 User identification tool (STK) 2 STK driver layer 21 STK interface layer 22 User interface 3
1111