TW201717596A - Method and device for pairing bluetooth devices - Google Patents

Method and device for pairing bluetooth devices Download PDF

Info

Publication number
TW201717596A
TW201717596A TW105135511A TW105135511A TW201717596A TW 201717596 A TW201717596 A TW 201717596A TW 105135511 A TW105135511 A TW 105135511A TW 105135511 A TW105135511 A TW 105135511A TW 201717596 A TW201717596 A TW 201717596A
Authority
TW
Taiwan
Prior art keywords
bluetooth
pairing
smart card
mobile terminal
parameter
Prior art date
Application number
TW105135511A
Other languages
Chinese (zh)
Other versions
TWI632795B (en
Inventor
楊賢偉
Original Assignee
國民技術股份有限公司
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 國民技術股份有限公司 filed Critical 國民技術股份有限公司
Publication of TW201717596A publication Critical patent/TW201717596A/en
Application granted granted Critical
Publication of TWI632795B publication Critical patent/TWI632795B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a method and a device for pairing Bluetooth devices. The method comprises the following steps: a mobile terminal pops up or is controlled by a smart card to pop up an STK menu so as to prompt to enter pairing parameter information needed by Bluetooth connection, or prompt to confirm pairing parameter information that is automatically generated by a system; and obtain Bluetooth pairing parameters according to the pairing parameter information. The device is used for setting Bluetooth pairing parameters. The method and the device for pairing Bluetooth devices are capable of more safely setting Bluetooth pairing parameters, thereby improving the security of Bluetooth connection.

Description

藍牙設備進行配對的方法及裝置 Method and device for pairing Bluetooth devices

本發明係關於藍牙通訊領域,尤其關於一種藍牙設備進行配對的方法和用於藍牙配對參數設置的裝置。 The present invention relates to the field of Bluetooth communication, and more particularly to a method for pairing a Bluetooth device and a device for setting Bluetooth pairing parameters.

藍牙設備之間在建立藍牙連接時,首先需要設置藍牙地址、配對密碼等參數,即進行藍牙“配對”,未經“配對”的兩個藍牙設備之間無法建立物理層的連接關係,也就無法進行後續認證連接及操作。 When establishing a Bluetooth connection between Bluetooth devices, you first need to set parameters such as Bluetooth address and pairing password, that is, Bluetooth “pairing”. The connection between the two Bluetooth devices without “pairing” cannot establish the physical layer connection. Subsequent authentication connections and operations are not possible.

隨著技術的不斷演進,藍牙(Bluetooth)通訊等許多無線通訊技術被整合到SIM、USIM等智慧卡中,使得手機等行動終端不僅可以通過7816介面與智慧卡通訊,還可以用藍牙連接與智慧卡通訊,從而打通了行動終端與智慧卡之間的機卡高速資料通道,使得智慧卡不僅提供電信功能,還可通過藍牙通道支持各種新的應用程式下載和運行。 With the continuous evolution of technology, many wireless communication technologies such as Bluetooth communication are integrated into smart cards such as SIM and USIM, so that mobile terminals such as mobile phones can communicate with smart cards through the 7816 interface, and can also use Bluetooth connection and wisdom. Card communication, which opens up the high-speed data channel between the mobile terminal and the smart card, so that the smart card not only provides telecom functions, but also supports various new applications to download and run through the Bluetooth channel.

任何藍牙連接建立之前均需要設置雙方的藍牙配對參數,對於藍牙SIM卡應用場景而言,由於藍牙SIM卡本身不提供使用者輸入介面,因此對於藍牙配對參數設置的常見做法是,在手機等裝置的應用程式(APP)中生成和設置藍牙配對參數:即在APP介面中提示使用者輸入配對參數或手機APP根據使用者輸入自動生成配對參數(例如手機APP對使用者輸入資訊加密後再作為配對參數),然後 通過7816介面或資料短訊方式將配對參數發送給SIM卡,以達到藍牙配對的目的;但該方式在安全上存在一定的隱患:如果手機上存在病毒、木馬或駭客程式等惡意代碼,則有可能截獲使用者在APP介面上輸入的資料,因此藍牙配對參數存在暴露的潛在風險。 Before any Bluetooth connection is established, the Bluetooth pairing parameters of both parties need to be set. For the Bluetooth SIM application scenario, since the Bluetooth SIM card itself does not provide a user input interface, a common practice for setting Bluetooth pairing parameters is in a mobile phone or the like. The application (APP) generates and sets the Bluetooth pairing parameters: the user interface is prompted to input the pairing parameter in the APP interface or the mobile phone APP automatically generates the pairing parameter according to the user input (for example, the mobile phone APP encrypts the user input information and then pairs Parameter), then The pairing parameters are sent to the SIM card through the 7816 interface or data short message to achieve the purpose of Bluetooth pairing; however, there is a certain safety hazard in this way: if there is a malicious code such as a virus, a Trojan or a hacker on the mobile phone, It is possible to intercept the data entered by the user on the APP interface, so there is a potential risk of exposure to the Bluetooth pairing parameters.

本發明期望提供一種藍牙設備進行配對的方法和用於藍牙配對參數設置的裝置,能更安全的設置藍牙配對參數,增加藍牙連接的安全性。 The present invention is intended to provide a method for pairing a Bluetooth device and a device for setting Bluetooth pairing parameters, which can more securely set Bluetooth pairing parameters and increase the security of the Bluetooth connection.

本發明實施例藍牙設備配對方法的技術方案實現如下。 The technical solution of the Bluetooth device pairing method in the embodiment of the present invention is implemented as follows.

步驟A、所述行動終端或通過智慧卡控制行動終端彈出STK選單,所述行動終端和智慧卡通過所述STK選單獲取配對參數資訊,通過所述配對參數資訊獲得藍牙配對參數。 Step A: The mobile terminal or the smart terminal controls the mobile terminal to pop up the STK menu, and the mobile terminal and the smart card acquire pairing parameter information through the STK menu, and obtain the Bluetooth pairing parameter by using the pairing parameter information.

上述步驟A的一個較佳的方案為:由所述彈出的STK選單提示輸入藍牙連接所需的配對參數資訊;所述行動終端和智慧卡均採用通過STK選單獲取到的配對參數資訊,或者使用所述行動終端和智慧卡預設算法對通過STK選單獲取到的配對參數資訊進行計算或變換後,得到藍牙配對參數。 A preferred solution of the foregoing step A is: prompting to input the pairing parameter information required for the Bluetooth connection by using the pop-up STK menu; the mobile terminal and the smart card adopt the pairing parameter information acquired through the STK menu, or use The mobile terminal and the smart card preset algorithm calculate or transform the pairing parameter information acquired through the STK menu to obtain a Bluetooth pairing parameter.

上述步驟A另一較佳的技術方案為:由所述彈出的STK選單提示確認由所述系統自動生成的配對參數資訊;所述行動終端和智慧卡在確認後,採用所述系統自動生成 的配對參數資訊或使用預設算法對所述系統自動生成的配對參數資訊進行計算或變換而得到藍牙配對參數。 Another preferred technical solution of the above step A is: confirming the pairing parameter information automatically generated by the system by the pop-up STK menu prompt; the mobile terminal and the smart card are automatically generated by the system after confirmation Pairing parameter information or using a preset algorithm to calculate or transform the pairing parameter information automatically generated by the system to obtain a Bluetooth pairing parameter.

這裏,系統是指由行動終端和智慧卡共同組成的通訊系統,實際應用中,系統可以是智慧行動終端的操作系統,也可以是智慧卡的COS,COS即Chip Operating System(片內操作系統)。 Here, the system refers to a communication system composed of a mobile terminal and a smart card. In actual application, the system can be an operating system of a smart mobile terminal, or a COS of a smart card, COS is a Chip Operating System (on-chip operating system). .

在步驟A之前包括步驟:步驟B、檢查所述行動終端和智慧卡是否完成了藍牙配對。 Steps are included before step A: Step B: Check if the mobile terminal and the smart card have completed Bluetooth pairing.

具體的,所述系統在通電、初始化後,即開始檢查系統中的行動終端和智慧卡是否完成了藍牙配對。若之前行動終端和智慧卡已完成過藍牙配對,在系統通電時根據藍牙協議的要求,使用所述藍牙配對參數自動與對方建立物理通道和進行後續認證連接及操作。 Specifically, after the system is powered on and initialized, the system checks whether the mobile terminal and the smart card in the system complete the Bluetooth pairing. If the mobile terminal and the smart card have completed the Bluetooth pairing, the Bluetooth pairing parameter is automatically used to establish a physical channel and perform subsequent authentication connection and operation according to the requirements of the Bluetooth protocol when the system is powered on.

更進一步的,作為較佳的方案,在所述行動終端和/或智慧卡中設置配對標誌,所述檢查所述行動終端和智慧卡是否完成了藍牙配對包括:檢查所述配對標誌的值。 Further, as a preferred solution, a pairing flag is set in the mobile terminal and/or the smart card, and the checking whether the mobile terminal and the smart card complete the Bluetooth pairing comprises: checking a value of the pairing flag.

作為本發明實施例較佳的方案,步驟A之後還包括步驟:步驟C、所述行動終端和智慧卡分別將所述藍牙配對參數保存為自身的藍牙配對參數,以便行動終端和智慧卡再次完成藍牙連接。 As a preferred solution of the embodiment of the present invention, after step A, the method further includes the following steps: Step C: The mobile terminal and the smart card respectively save the Bluetooth pairing parameters as their own Bluetooth pairing parameters, so that the mobile terminal and the smart card are completed again. Bluetooth connection.

藍牙配對參數確定後,需在行動終端和智慧卡之間傳輸。具體的,所述行動終端或智慧卡之一確定了所述藍牙配對參數後,需將所述藍牙配對參數傳輸至另一方。 After the Bluetooth pairing parameter is determined, it needs to be transmitted between the mobile terminal and the smart card. Specifically, after one of the mobile terminal or the smart card determines the Bluetooth pairing parameter, the Bluetooth pairing parameter needs to be transmitted to the other party.

本發明實施例的另一目的是提供一種用於藍牙配對參 數設置的裝置,包括:系統STK模組,用於彈出STK選單,提示輸入或確認藍牙配對參數資訊。 Another object of embodiments of the present invention is to provide a Bluetooth pairing parameter. The number setting device includes: a system STK module for popping up the STK menu, prompting for input or confirming Bluetooth pairing parameter information.

參數確定模組,用於根據在STK選單中輸入或確認的藍牙配對參數資訊,確定行動終端和智慧卡的藍牙配對參數。 The parameter determination module is configured to determine Bluetooth pairing parameters of the mobile terminal and the smart card according to the Bluetooth pairing parameter information input or confirmed in the STK menu.

參數傳輸模組,用於將確定的藍牙配對參數在行動終端和智慧卡之間傳輸。 A parameter transmission module is configured to transmit the determined Bluetooth pairing parameters between the mobile terminal and the smart card.

參數設置模組,用於行動終端和智慧卡分別將所述確定的藍牙配對參數設置並保存為自身的藍牙配對參數。 The parameter setting module is configured to set and save the determined Bluetooth pairing parameter as the Bluetooth pairing parameter of the mobile terminal and the smart card respectively.

本發明實施例所提供的藍牙設備配對的方法及裝置,通過讓使用者使用STK選單設置藍牙連接所需的配對參數,由於惡意程式無法介入STK選單的輸入和輸出,可更好的防止藍牙配對參數被惡意截取,如此,能使得行動終端與智慧卡方便的確定藍牙配對參數,為實現藍牙連接的快速建立,增強行動終端與智慧卡藍牙連接的安全性奠定良好基礎。 The method and device for pairing Bluetooth devices provided by the embodiments of the present invention can better prevent Bluetooth pairing by allowing the user to set the pairing parameters required for the Bluetooth connection by using the STK menu, because the malicious program cannot intervene in the input and output of the STK menu. The parameters are maliciously intercepted. In this way, the mobile terminal and the smart card can conveniently determine the Bluetooth pairing parameters, which provides a good foundation for realizing the rapid establishment of the Bluetooth connection and enhancing the security of the Bluetooth connection of the mobile terminal and the smart card.

201-204‧‧‧步驟 201-204‧‧‧Steps

301‧‧‧系統STK模組 301‧‧‧System STK Module

302‧‧‧參數確定模組 302‧‧‧Parameter determination module

303‧‧‧參數傳輸模 303‧‧‧Parameter transfer mode

304‧‧‧參數設置模組 304‧‧‧ parameter setting module

圖1為藍牙SIM卡與藍牙手機採用本發明提供的方法工作流程示意圖。 FIG. 1 is a schematic diagram showing the workflow of a Bluetooth SIM card and a Bluetooth mobile phone using the method provided by the present invention.

圖2為本發明提供的藍牙設備配對的方法的流程示意圖。 FIG. 2 is a schematic flowchart diagram of a method for pairing Bluetooth devices according to the present invention.

圖3是本發明提供的藍牙配對參數設置的裝置的示意圖。 3 is a schematic diagram of an apparatus for setting Bluetooth pairing parameters provided by the present invention.

為了更清楚地說明本發明實施例和技術方案,下面將結合圖式及實施例對本發明的技術方案進行更詳細的說明,顯然,所描述的實施例是本發明的一部分實施例,而不是全部實施例。基於本發明的實施例,所屬技術領域中具有通常知識者在不逸離本發明精神的前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。 In order to more clearly illustrate the embodiments and technical solutions of the present invention, the technical solutions of the present invention will be described in more detail below with reference to the drawings and embodiments. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all Example. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without departing from the spirit of the invention are within the scope of the invention.

本發明中,智慧卡可以是SIM(Subscriber Identity Module客戶識別模組)卡、USIM(Universal Subscriber Identity Module,全球使用者識別)卡、UIM(User Identify Module,使用者識別模組)卡和SD卡(Secure Digital Memory Card,安全數位記憶卡)等各種智慧卡,而行動終端之間的介面可以是ISO7816,也可以是SICO。 In the present invention, the smart card may be a SIM (Subscriber Identity Module) card, a USIM (Universal Subscriber Identity Module) card, a UIM (User Identify Module) card, and an SD card. (Secure Digital Memory Card, etc.) Various smart cards, and the interface between mobile terminals can be ISO7816 or SICO.

為便於說明在本發明的技術方案,在實施例1中,行動終端以藍牙手機為例,智慧卡以藍牙SIM卡為例,所謂藍牙手機即支持藍牙通訊的手機;而藍牙SIM卡為帶有藍牙模組的SIM卡。然而,行動終端並不限於藍牙手機,也可以是支持藍牙通訊的其他行動終端,例如:藍牙筆記本電腦、藍牙平板電腦等,只要能夠支持藍牙通訊同時能提供智慧卡的卡槽即可;智慧卡也不限於藍牙SIM卡,也可以是藍牙UIM卡,藍牙USIM卡,藍牙SD卡等。 In order to facilitate the description of the technical solution of the present invention, in the first embodiment, the mobile terminal takes a Bluetooth mobile phone as an example, and the smart card takes a Bluetooth SIM card as an example. The so-called Bluetooth mobile phone is a mobile phone supporting Bluetooth communication; and the Bluetooth SIM card has a SIM card of the Bluetooth module. However, the mobile terminal is not limited to a Bluetooth mobile phone, and may be other mobile terminals that support Bluetooth communication, such as a Bluetooth laptop computer, a Bluetooth tablet computer, etc., as long as it can support Bluetooth communication while providing a smart card slot; smart card It is not limited to a Bluetooth SIM card, but also a Bluetooth UIM card, a Bluetooth USIM card, a Bluetooth SD card, and the like.

實施例1 Example 1

圖1為藍牙SIM卡與藍牙手機採用本發明提供的方法工作流程示意圖。具體工作流程說明如下。 FIG. 1 is a schematic diagram showing the workflow of a Bluetooth SIM card and a Bluetooth mobile phone using the method provided by the present invention. The specific workflow is described below.

1.系統通電完成初始化後,檢查藍牙手機和藍 牙SIM卡是否完成了配對;這裏,系統是指由所述藍牙手機和藍牙SIM卡共同組成的通訊系統,也可以指智慧終端的操作系統,也可以是智慧卡的COS。 1. After the system is powered on and initialized, check the Bluetooth phone and blue. Whether the dental SIM card is completed or not; here, the system refers to a communication system composed of the Bluetooth mobile phone and the Bluetooth SIM card, and may also refer to the operating system of the smart terminal or the COS of the smart card.

2.若已經完成配對,則使用成功配對的藍牙配對參數建立藍牙手機和藍牙SIM卡之間的藍牙連接。 2. If the pairing has been completed, the Bluetooth pairing parameter of the successful pairing is used to establish a Bluetooth connection between the Bluetooth phone and the Bluetooth SIM card.

否則,3.系統彈出STK選單,提示使用者輸入配對參數資訊,比如輸入配對密碼等;或者提示使用者確認是否由系統自動生成配對參數資訊,以便進行藍牙手機和藍牙SIM卡的藍牙配對。 Otherwise, 3. The system pops up the STK menu, prompting the user to input pairing parameter information, such as entering a pairing password, etc.; or prompting the user to confirm whether the pairing parameter information is automatically generated by the system for Bluetooth pairing of the Bluetooth mobile phone and the Bluetooth SIM card.

4.接受使用者在STK選單中輸入的配對參數資訊;或者接收使用者的“確認”資訊後,由系統自動生成配對參數資訊;接著,使用者輸入的配對參數資訊或由手機端生成的配對參數資訊通過7816命令傳遞給卡端,或由卡端生成的配對參數資訊由手機端通過7816命令讀取。 4. Accept the pairing parameter information input by the user in the STK menu; or receive the pairing parameter information automatically after receiving the user's “confirmation” information; then, the pairing parameter information input by the user or the pairing generated by the mobile terminal The parameter information is transmitted to the card terminal through the 7816 command, or the pairing parameter information generated by the card terminal is read by the mobile terminal through the 7816 command.

5.藍牙手機和藍牙SIM卡雙方直接使用使用者輸入的配對參數資訊或系統自動生成的配對參數資訊作為藍牙配對參數;或者,使用預設算法對使用者輸入的配對參數資訊或系統自動生成的配對參數資訊進行計算或變換而得到藍牙配對參數,例如,用預設算法對使用者輸入的配對參數資訊或系統自動生成的配對參數資訊進行加密,將加密後的資訊作為藍牙配對參數。 5. Both the Bluetooth mobile phone and the Bluetooth SIM card directly use the pairing parameter information input by the user or the pairing parameter information automatically generated by the system as the Bluetooth pairing parameter; or, using the preset algorithm, the pairing parameter information input by the user or the system automatically generated The pairing parameter information is calculated or transformed to obtain a Bluetooth pairing parameter. For example, the pairing parameter information input by the user or the pairing parameter information automatically generated by the system is encrypted by a preset algorithm, and the encrypted information is used as a Bluetooth pairing parameter.

6.藍牙手機和藍牙SIM卡雙方將所述藍牙配對參數、機卡標識等資料保存到安全的儲存區域,並設置藍牙手機和藍牙SIM卡已配對標誌。 6. Both the Bluetooth mobile phone and the Bluetooth SIM card save the Bluetooth pairing parameters, the machine card identification and other data to a secure storage area, and set the paired logo of the Bluetooth mobile phone and the Bluetooth SIM card.

7.藍牙手機和藍牙SIM卡雙方使用所述藍牙配對參數建立藍牙連接,並進行後續藍牙通訊。 7. Both the Bluetooth mobile phone and the Bluetooth SIM card use the Bluetooth pairing parameters to establish a Bluetooth connection and perform subsequent Bluetooth communication.

上述藍牙配對參數的設置過程是在開機階段由系統彈出STK選單完成,安全性更好,並且一旦設置完成以後,藍牙手機開機後,藍牙手機和藍牙SIM卡即可自動建立藍牙連接,十分方便快捷。 The setting process of the above Bluetooth pairing parameter is completed by the system popping up the STK menu during the booting phase, and the security is better, and once the setting is completed, the Bluetooth mobile phone and the Bluetooth SIM card can automatically establish a Bluetooth connection after the Bluetooth mobile phone is turned on, which is very convenient and fast. .

實施例2 Example 2

本發明實施例提供一種藍牙設備配對的方法,如圖2所示,其包括以下步驟。 An embodiment of the present invention provides a method for pairing Bluetooth devices, as shown in FIG. 2, which includes the following steps.

步驟201,彈出STK選單,提示使用者輸入/確認配對參數資訊。 In step 201, the STK menu is popped up, prompting the user to input/confirm the pairing parameter information.

這裏,系統是指由所述行動終端和智慧卡共同組成的通訊系統,也可以指智慧終端的操作系統,也可以是智慧卡的COS;而配對參數資訊可以是配對密碼等資訊,可以由使用者直接在STK選單中輸入,或者由系統自動生成(例如,系統產生隨機數)後顯示給使用者,待使用者確認。 Here, the system refers to a communication system composed of the mobile terminal and the smart card, and may also refer to an operating system of the smart terminal or a COS of the smart card; and the pairing parameter information may be information such as a pairing password, which may be used by The input is directly entered in the STK menu, or automatically generated by the system (for example, the system generates a random number) and displayed to the user for confirmation by the user.

進一步的,在系統彈出STK選單之前,該方法還包括:檢查行動終端和智慧卡是否完成了藍牙配對。 Further, before the system pops up the STK menu, the method further includes: checking whether the mobile terminal and the smart card complete the Bluetooth pairing.

更進一步的,系統在通電完成初始化後,開始檢查系統中的行動終端和智慧卡是否完成了藍牙配對。 Further, after the power is initialized, the system starts to check whether the mobile terminal and the smart card in the system complete the Bluetooth pairing.

具體的,可在行動終端和/或智慧卡中設置配對標誌,當行動終端和智慧卡完成了配對後,系統設置所述標誌為已配對標誌(例如,置為有效),否則,系統設置所述標 誌為非配對標誌(例如,置為無效);故檢查行動終端和智慧卡是否完成了藍牙配對包括:檢查所述配對標誌的值。 Specifically, the pairing flag may be set in the mobile terminal and/or the smart card. After the mobile terminal and the smart card complete the pairing, the system sets the flag to the paired flag (for example, is set to be valid), otherwise, the system setting office Narrative It is considered to be an unpaired flag (for example, set to be invalid); therefore, checking whether the mobile terminal and the smart card have completed the Bluetooth pairing includes: checking the value of the pairing flag.

當行動終端和智慧卡未完成藍牙配對(例如,配對標誌為無效)時,才執行步驟201;否則,使用系統所保存的藍牙配對參數建立行動終端和智慧卡之間的藍牙連接。 Step 201 is performed when the mobile terminal and the smart card do not complete the Bluetooth pairing (for example, the pairing flag is invalid); otherwise, the Bluetooth connection between the mobile terminal and the smart card is established using the Bluetooth pairing parameter saved by the system.

步驟202,根據在STK選單中使用者輸入/確認配對參數資訊,確定行動終端和智慧卡的藍牙配對參數。 Step 202: Determine Bluetooth pairing parameters of the mobile terminal and the smart card according to the user input/confirm pairing parameter information in the STK menu.

具體的,可直接將通過STK選單接收到的使用者輸入/確認配對參數資訊作為行動終端和智慧卡的藍牙配對參數,或者,使用預設算法對使用者輸入的配對參數資訊或系統自動生成的配對參數資訊進行計算或變換而得到藍牙配對參數,例如,用預設算法對使用者輸入的配對參數資訊或系統自動生成的配對參數資訊進行加密,將加密後的資訊作為藍牙配對參數。這裏,確定藍牙配對參數的操作可以由行動終端的操作系統執行,也可以由智慧卡的COS執行。 Specifically, the user input/confirmation pairing parameter information received through the STK menu can be directly used as the Bluetooth pairing parameter of the mobile terminal and the smart card, or the pairing parameter information or the system automatically generated by the user using a preset algorithm. The pairing parameter information is calculated or transformed to obtain a Bluetooth pairing parameter. For example, the pairing parameter information input by the user or the pairing parameter information automatically generated by the system is encrypted by a preset algorithm, and the encrypted information is used as a Bluetooth pairing parameter. Here, the operation of determining the Bluetooth pairing parameter may be performed by the operating system of the mobile terminal or by the COS of the smart card.

步驟203,將確定的藍牙配對參數在行動終端和智慧卡之間傳輸。 Step 203: Transfer the determined Bluetooth pairing parameters between the mobile terminal and the smart card.

具體的,當由行動終端和智慧卡之一方確定了藍牙配對參數後,需將該藍牙配對參數傳輸至另一方,例如,手機端生成的藍牙配對參數通過7816命令傳遞給智慧卡,或者,智慧卡生成的藍牙配對參數由手機端通過7816命令讀取。 Specifically, after the Bluetooth pairing parameter is determined by one of the mobile terminal and the smart card, the Bluetooth pairing parameter needs to be transmitted to the other party. For example, the Bluetooth pairing parameter generated by the mobile terminal is transmitted to the smart card through the 7816 command, or The Bluetooth pairing parameters generated by the card are read by the mobile terminal through the 7816 command.

步驟204,行動終端和智慧卡分別將所述確定的藍牙 配對參數設置並保存為自身的藍牙配對參數。 Step 204: The mobile terminal and the smart card respectively determine the determined Bluetooth The pairing parameters are set and saved as their own Bluetooth pairing parameters.

進一步的,行動終端和/或智慧卡將所述藍牙配對參數保存到安全的儲存區域。 Further, the mobile terminal and/or the smart card save the Bluetooth pairing parameters to a secure storage area.

此外,在一些實施例中,行動終端和/或智慧卡還需將自身的所述配對標誌設置為已配對標誌。 Moreover, in some embodiments, the mobile terminal and/or smart card also needs to set its own pairing flag as a paired flag.

實施例3 Example 3

本發明實施例還提供一種用於行動終端和智慧卡的藍牙配對參數設置的裝置,如圖3所示,所述裝置包括以下模組。 The embodiment of the invention further provides a device for setting the Bluetooth pairing parameters of the mobile terminal and the smart card. As shown in FIG. 3, the device includes the following modules.

系統STK模組301,用於彈出STK選單,提示使用者輸入/確認藍牙配對參數資訊。 The system STK module 301 is configured to pop up the STK menu and prompt the user to input/confirm the Bluetooth pairing parameter information.

參數確定模組302,用於根據在STK選單中使用者輸入/確認藍牙配對參數資訊,確定行動終端和智慧卡的藍牙配對參數。 The parameter determining module 302 is configured to determine Bluetooth pairing parameters of the mobile terminal and the smart card according to the user input/confirm Bluetooth pairing parameter information in the STK menu.

參數傳輸模組303,用於將確定的藍牙配對參數在行動終端和智慧卡之間傳輸。 The parameter transmission module 303 is configured to transmit the determined Bluetooth pairing parameter between the mobile terminal and the smart card.

參數設置模組304,用於行動終端和智慧卡分別將所述確定的藍牙配對參數設置並保存為自身的藍牙配對參數。 The parameter setting module 304 is configured to the mobile terminal and the smart card respectively set and save the determined Bluetooth pairing parameter as its own Bluetooth pairing parameter.

本實施例的通訊系統的各個模組對應執行上述通訊方法實施例所描述的步驟,因此具有相同的有益效果。另外,應該理解到,以上所描述的通訊系統的實施方式僅僅是示意性的,所描述模組的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。另外,模組相互之間 的耦合或通訊連接可以是通過一些介面,也可以是電性或其它的形式。 Each module of the communication system of this embodiment corresponds to the steps described in the foregoing embodiment of the communication method, and thus has the same beneficial effects. In addition, it should be understood that the implementation of the communication system described above is merely illustrative, and the division of the described modules is only a logical function division, and may be further divided in actual implementation. In addition, the modules are between each other The coupling or communication connection may be through some interface, or in electrical or other form.

上述各個功能模組作為通訊系統的組成部分,可以是或者也可以不是物理框,既可以位於一個地方,也可以分布到多個網路單元上,既可以採用硬體的形式實現,也可以採用軟體功能框的形式實現。可以根據實際的需要選擇其中的部分或者全部模組來實現本發明方案的目的。 Each of the above functional modules may or may not be a physical frame, and may be located in one place or on multiple network units, and may be implemented in a hardware form or in a hardware form. The form of the software function box is implemented. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solution of the present invention.

所述技術領域中具有通常知識者應明白,本發明的實施例可提供為方法、系統、或電腦程式產品。因此,本發明可採用硬體實施例、軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本發明可採用在一個或多個其中包含有電腦可用程式代碼的電腦可用儲存介質(包括但不限於磁碟儲存器和光學儲存器等)上實施的電腦程式產品的形式。 Those of ordinary skill in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Thus, the invention may take the form of a hardware embodiment, a software embodiment, or an embodiment incorporating a software and a hardware. Moreover, the present invention can take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.).

本發明是參照根據本發明實施例的方法、設備(系統)、和電腦程式產品的流程圖和/或方框圖來描述的。應理解可由電腦程式指令實現流程圖和/或方框圖中的每一流程和/或方框、以及流程圖和/或方框圖中的流程和/或方框的結合。可提供這些電腦程式指令到通用電腦、專用電腦、嵌入式處理機或其他可編程資料處理設備的處理器以產生一個機器,使得通過電腦或其他可編程資料處理設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方框圖一個方框或多個方框中指定的功能的裝置。 The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, a special purpose computer, an embedded processor or other programmable data processing device to produce a machine for generating instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.

這些電腦程式指令也可儲存在能引導電腦或其他可編程資料處理設備以特定方式工作的電腦可讀儲存器中,使得儲存在該電腦可讀儲存器中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方框圖一個方框或多個方框中指定的功能。 The computer program instructions can also be stored in a computer readable storage that can direct a computer or other programmable data processing device to operate in a particular manner, such that instructions stored in the computer readable storage produce an article of manufacture including the instruction device. The instruction means implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.

這些電腦程式指令也可裝載到電腦或其他可編程資料處理設備上,使得在電腦或其他可編程設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可編程設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方框圖一個方框或多個方框中指定的功能的步驟。 These computer program instructions can also be loaded onto a computer or other programmable data processing device to perform a series of operational steps on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

再次說明,以上所述僅為本發明的實施例,並非因此限制本發明的申請專利範圍,凡是利用本發明說明書及圖式內容所作的等效結構或等效流程變換,例如各實施例之間技術特徵的相互結合,或直接或間接運用在其他相關的技術領域,均同理包括在本發明的專利保護範圍內。 It is to be understood that the above description is only an embodiment of the present invention, and is not intended to limit the scope of the claims of the present invention. The equivalent structure or equivalent flow transformations made by the description of the present invention and the contents of the drawings, for example, between the embodiments The combination of technical features, or directly or indirectly, in other related technical fields is included in the scope of patent protection of the present invention.

Claims (9)

一種藍牙設備進行配對的方法,用於在行動終端和智慧卡組成的系統中生成和設置藍牙配對參數後建立藍牙連接,包括:步驟A、該行動終端或通過該智慧卡控制該行動終端彈出STK選單,該行動終端和該智慧卡通過該STK選單獲取配對參數資訊,通過該配對參數資訊獲得藍牙配對參數。 A method for pairing a Bluetooth device, configured to establish a Bluetooth connection after generating and setting a Bluetooth pairing parameter in a system consisting of a mobile terminal and a smart card, comprising: Step A, the mobile terminal, or controlling the mobile terminal to pop up the STK by using the smart card The action terminal and the smart card obtain pairing parameter information through the STK menu, and obtain the Bluetooth pairing parameter through the pairing parameter information. 如請求項1所記載的方法,其中該步驟A包括:該STK選單提示輸入藍牙連接所需的配對參數資訊;該行動終端和該智慧卡均採用通過該STK選單獲取到的配對參數資訊,或者使用該行動終端和該智慧卡預設算法對通過該STK選單獲取到的配對參數資訊進行計算或變換後,得到藍牙配對參數。 The method of claim 1, wherein the step A includes: the STK menu prompting to input pairing parameter information required for the Bluetooth connection; the mobile terminal and the smart card adopt the pairing parameter information obtained through the STK menu, or Using the mobile terminal and the smart card preset algorithm to calculate or transform the pairing parameter information acquired through the STK menu, the Bluetooth pairing parameter is obtained. 如請求項1所記載的方法,其中該步驟A包括:該STK選單提示確認由該系統自動生成的配對參數資訊;該行動終端和該智慧卡在確認後,採用該系統自動生成的配對參數資訊或使用預設算法對該系統自動生成的配對參數資訊進行計算或變換而得到藍牙配對參數。 The method of claim 1, wherein the step A comprises: the STK menu prompting to confirm pairing parameter information automatically generated by the system; and the action terminal and the smart card confirming, using the pairing parameter information automatically generated by the system Or use a preset algorithm to calculate or transform the pairing parameter information automatically generated by the system to obtain a Bluetooth pairing parameter. 如請求項1所記載的方法,其中在步驟A之前包括: 步驟B、檢查該行動終端和智慧卡是否完成了藍牙配對。 The method of claim 1, wherein before step A, Step B: Check if the mobile terminal and the smart card complete the Bluetooth pairing. 如請求項4所記載的方法,其中在該行動終端和/或智慧卡中設置配對標誌,該檢查該行動終端和智慧卡是否完成了藍牙配對包括:檢查該配對標誌的值。 The method of claim 4, wherein a pairing flag is set in the mobile terminal and/or the smart card, and checking whether the mobile terminal and the smart card complete the Bluetooth pairing comprises: checking a value of the pairing flag. 如請求項4所記載的方法,其中該系統在通電、初始化後,即開始檢查系統中的行動終端和智慧卡是否完成了藍牙配對。 The method of claim 4, wherein after the system is powered on and initialized, the system checks whether the mobile terminal and the smart card in the system complete the Bluetooth pairing. 如請求項1所記載的方法,其中步驟A之後包括:步驟C、該行動終端和智慧卡分別將該藍牙配對參數保存為自身的藍牙配對參數。 The method of claim 1, wherein the step A comprises: step C, the mobile terminal and the smart card respectively saving the Bluetooth pairing parameter as their own Bluetooth pairing parameter. 如請求項1所記載的方法,其中該行動終端或智慧卡之一確定了該藍牙配對參數後,需將該藍牙配對參數傳輸至另一方。 The method of claim 1, wherein the one of the mobile terminal or the smart card determines the Bluetooth pairing parameter, and the Bluetooth pairing parameter is transmitted to the other party. 一種用於藍牙配對參數設置的裝置,包括:系統STK模組,用於彈出STK選單,提示輸入或確認藍牙配對參數資訊;參數確定模組,用於根據在STK選單中輸入或確認的藍牙配對參數資訊,確定行動終端和智慧卡的藍牙配對參數;參數傳輸模組,用於將確定的藍牙配對參數在行動終端和智慧卡之間傳輸; 參數設置模組,用於行動終端和智慧卡分別將該確定的藍牙配對參數設置並保存為自身的藍牙配對參數。 A device for setting Bluetooth pairing parameters, comprising: a system STK module for popping up an STK menu, prompting for input or confirming Bluetooth pairing parameter information; and a parameter determining module for Bluetooth pairing input or confirmed according to an STK menu Parameter information, determining a Bluetooth pairing parameter of the mobile terminal and the smart card; and a parameter transmission module, configured to transmit the determined Bluetooth pairing parameter between the mobile terminal and the smart card; The parameter setting module is configured to set and save the determined Bluetooth pairing parameter as the Bluetooth pairing parameter of the mobile terminal and the smart card respectively.
TW105135511A 2015-11-03 2016-11-02 Method and device for pairing Bluetooth devices TWI632795B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
??201510737613.8 2015-11-03
CN201510737613 2015-11-03

Publications (2)

Publication Number Publication Date
TW201717596A true TW201717596A (en) 2017-05-16
TWI632795B TWI632795B (en) 2018-08-11

Family

ID=58661686

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105135511A TWI632795B (en) 2015-11-03 2016-11-02 Method and device for pairing Bluetooth devices

Country Status (3)

Country Link
CN (1) CN107113533A (en)
TW (1) TWI632795B (en)
WO (1) WO2017076287A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111836242B (en) * 2020-06-18 2024-05-14 李世煌 Bluetooth quick connection method and Bluetooth input device
CN112996140B (en) * 2021-02-02 2023-04-14 亚信科技(成都)有限公司 Connection method, device, equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2310938A4 (en) * 2008-06-29 2014-08-27 Oceans Edge Inc Mobile telephone firewall and compliance enforcement system and method
US8213990B2 (en) * 2009-06-05 2012-07-03 Mediatek Inc. System for providing remote subscriber identity card to mobile station and methods thereof
CN102663477A (en) * 2012-03-09 2012-09-12 武汉天喻信息产业股份有限公司 Bluetooth-technology-based radiofrequency SIM card and application system thereof
CN203630806U (en) * 2013-12-11 2014-06-04 上海斐讯数据通信技术有限公司 SD card with Bluetooth function
CN103888177A (en) * 2014-02-25 2014-06-25 南京邮电大学 Method for quickly establishing Bluetooth connection
CN104732265A (en) * 2015-03-31 2015-06-24 苏州海博智能系统有限公司 Bluetooth intelligent card chip, Bluetooth intelligent card and Bluetooth connection activation method thereof

Also Published As

Publication number Publication date
WO2017076287A1 (en) 2017-05-11
CN107113533A (en) 2017-08-29
TWI632795B (en) 2018-08-11

Similar Documents

Publication Publication Date Title
US11748737B2 (en) Bank card adding method, and apparatus
JP7352008B2 (en) First element contactless card authentication system and method
KR102242218B1 (en) User authentication method and apparatus, and wearable device registration method and apparatus
US9918226B2 (en) Spoofing protection for secure-element identifiers
CA2972895C (en) Security for mobile payment applications
US9779401B2 (en) Network access authentication using a point-of-sale device
US20150172255A1 (en) Updating software on a secure element
WO2020062784A1 (en) Secure payment method and apparatus, and server and storage medium
US20150142659A1 (en) Method, apparatus and system for mobile payment
US10080139B2 (en) Information sending method and apparatus, terminal device, and system
WO2016101774A1 (en) Wireless communication method and apparatus and application system and device thereof
TWI632795B (en) Method and device for pairing Bluetooth devices
WO2015186072A1 (en) Encryption and decryption of data between a communications device and smart card with near field communication function
Ju et al. Implementation of a hardware security chip for mobile devices
US11076282B2 (en) Telecommunications apparatus with a radio-linked smart card
TW202123051A (en) Security authentication method, apparatus, and electronic device
EP3021603A1 (en) Method of managing pairing with a wireless device
CN107277935B (en) Bluetooth communication method, device and application system and equipment thereof
WO2015131585A1 (en) Method and device for ensuring sd card security
TWI650722B (en) Communication card network silver key and its working method
TWI656771B (en) Bluetooth communication method, device and device thereof
CN103905443A (en) Verification device and system and registering and verification method
CN114679287B (en) Data processing method, system, electronic device and storage medium
KR102671176B1 (en) First factor contactless card authentication system and method
WO2018201429A1 (en) Bluetooth communication method and apparatus, application system and device therefor

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees