[go: up one dir, main page]

TWI699095B - Bluetooth pairing method and electronic system - Google Patents

Bluetooth pairing method and electronic system Download PDF

Info

Publication number
TWI699095B
TWI699095B TW108114954A TW108114954A TWI699095B TW I699095 B TWI699095 B TW I699095B TW 108114954 A TW108114954 A TW 108114954A TW 108114954 A TW108114954 A TW 108114954A TW I699095 B TWI699095 B TW I699095B
Authority
TW
Taiwan
Prior art keywords
bluetooth
electronic device
bluetooth device
key
pairing
Prior art date
Application number
TW108114954A
Other languages
Chinese (zh)
Other versions
TW202040947A (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 宏碁股份有限公司
Priority to TW108114954A priority Critical patent/TWI699095B/en
Application granted granted Critical
Publication of TWI699095B publication Critical patent/TWI699095B/en
Publication of TW202040947A publication Critical patent/TW202040947A/en

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure provides a Bluetooth pairing method and an electronic system. The electronic system includes an electronic device and a Bluetooth device. The method includes: transmitting, by the Bluetooth device, a first pairing request to the electronic device during a pairing process in which the Bluetooth device is paired with the electronic device, wherein the first pairing request includes a serial number of the Bluetooth device; and in response to the electronic device determining the first pairing request is encrypted by a first key, the electronic device and the Bluetooth device cooperate to perform a re-pairing operation to re-establish a Bluetooth connection between the electronic device and the Bluetooth device, wherein the first key is previously assigned by the electronic device to the Bluetooth device based on other pairing request from the Bluetooth device.

Description

藍牙配對方法及電子系統Bluetooth pairing method and electronic system

本發明是有關於一種藍牙通訊技術,且特別是有關於一種藍牙配對方法及電子系統。The present invention relates to a Bluetooth communication technology, and particularly relates to a Bluetooth pairing method and electronic system.

在現有技術中,當兩個彼此之間存在藍牙連線的裝置離開對方的傳輸範圍之後,此二裝置之間的藍牙配對關係將會失效,直至雙方再次回到對方的傳輸範圍內時,方能重新進行藍牙配對。然而,在上述裝置重新進行藍牙配對的過程中,除了需要重新進行設定之外,之前中斷的工作也無法再接續進行(例如無法自動播放音樂等)。In the prior art, when two devices with Bluetooth connections between each other leave the transmission range of the other, the Bluetooth pairing relationship between the two devices will become invalid until the two devices return to the transmission range of the other. Can perform Bluetooth pairing again. However, in the process of re-pairing the Bluetooth of the above-mentioned device, in addition to the need to reset the settings, the previously interrupted work cannot be continued (for example, it cannot automatically play music, etc.).

有鑑於此,本發明提供一種藍牙配對方法及電子系統,其可用以解決上述技術問題。In view of this, the present invention provides a Bluetooth pairing method and electronic system, which can be used to solve the above technical problems.

本發明提供一種藍牙配對方法,適於包括一電子裝置及一藍牙裝置的一電子系統。所述方法包括:在藍牙裝置與電子裝置配對的一配對過程中,由藍牙裝置發送一第一配對請求至電子裝置,其中第一配對請求包括藍牙裝置的一序號;以及反應於電子裝置判定第一配對請求係經一第一金鑰加密,由電子裝置及藍牙裝置協同執行一重新配對操作,以在電子裝置及藍牙裝置之間重新建立一藍牙連線,其中第一金鑰係由電子裝置先前基於來自藍牙裝置的其他配對請求而指派予藍牙裝置。The invention provides a Bluetooth pairing method suitable for an electronic system including an electronic device and a Bluetooth device. The method includes: in a pairing process of the Bluetooth device and the electronic device, sending a first pairing request from the Bluetooth device to the electronic device, wherein the first pairing request includes a serial number of the Bluetooth device; A pairing request is encrypted by a first key, and the electronic device and the Bluetooth device perform a re-pairing operation in cooperation to re-establish a Bluetooth connection between the electronic device and the Bluetooth device, wherein the first key is from the electronic device Previously assigned to Bluetooth devices based on other pairing requests from Bluetooth devices.

本發明提供一種電子系統,包括藍牙裝置以及電子裝置。在藍牙裝置與電子裝置配對的一配對過程中,藍牙裝置發送一第一配對請求至電子裝置,其中第一配對請求包括藍牙裝置的一序號。反應於電子裝置判定第一配對請求係經一第一金鑰加密,電子裝置及藍牙裝置協同執行一重新配對操作,以在電子裝置及藍牙裝置之間重新建立一藍牙連線,其中第一金鑰係由電子裝置先前基於來自藍牙裝置的其他配對請求而指派予藍牙裝置。The invention provides an electronic system including a Bluetooth device and an electronic device. During a pairing process of the Bluetooth device and the electronic device, the Bluetooth device sends a first pairing request to the electronic device, where the first pairing request includes a serial number of the Bluetooth device. In response to the electronic device determining that the first pairing request is encrypted by a first key, the electronic device and the Bluetooth device cooperate to perform a re-pairing operation to re-establish a Bluetooth connection between the electronic device and the Bluetooth device. The key is previously assigned to the Bluetooth device by the electronic device based on other pairing requests from the Bluetooth device.

基於上述,本發明提出的方法可由電子裝置判斷來自藍牙裝置的第一配對請求是否經過加密,以得知電子裝置是否曾經與藍牙裝置進行過藍牙配對。若電子裝置判定第一配對請求係經以先前指派予藍牙裝置的第一金鑰加密,則電子裝置可相應地協同藍牙裝置自動執行重新配對操作,不需使用者另行進行設定。Based on the above, the method proposed by the present invention allows the electronic device to determine whether the first pairing request from the Bluetooth device is encrypted, so as to know whether the electronic device has ever been paired with the Bluetooth device. If the electronic device determines that the first pairing request is encrypted with the first key previously assigned to the Bluetooth device, the electronic device can correspondingly cooperate with the Bluetooth device to automatically perform a re-pairing operation without the need for the user to make additional settings.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail in conjunction with the accompanying drawings.

請參照圖1,其是依據本發明之一實施例繪示的電子系統示意圖。在本實施例中,電子系統100可包括藍牙裝置110及電子裝置120。在不同的實施例中,藍牙裝置110可以是藍牙耳機、智慧手錶、藍牙鍵盤、藍牙喇叭、藍牙滑鼠或其他可與電子裝置120進行配對以建立藍牙連線的裝置。另外,電子裝置120可以是智慧型手機、平板電腦、筆記型電腦、個人電腦或其他可用以與藍牙裝置110進行配對以建立藍牙連線的裝置。Please refer to FIG. 1, which is a schematic diagram of an electronic system according to an embodiment of the present invention. In this embodiment, the electronic system 100 may include a Bluetooth device 110 and an electronic device 120. In different embodiments, the Bluetooth device 110 may be a Bluetooth headset, a smart watch, a Bluetooth keyboard, a Bluetooth speaker, a Bluetooth mouse, or other devices that can be paired with the electronic device 120 to establish a Bluetooth connection. In addition, the electronic device 120 may be a smart phone, a tablet computer, a notebook computer, a personal computer, or other devices that can be paired with the Bluetooth device 110 to establish a Bluetooth connection.

在本發明的實施例中,藍牙裝置110及電子裝置120皆可包括諸如通訊單元、儲存電路及處理器等元件,其中通訊單元例如是藍牙通訊模組,其可用以在藍牙裝置110及電子裝置120之間進行藍牙通訊。儲存電路例如是記憶體、硬碟或是其他任何可用於儲存資料的元件,而可用以記錄多個程式碼或模組。In the embodiment of the present invention, both the Bluetooth device 110 and the electronic device 120 may include components such as a communication unit, a storage circuit, and a processor. The communication unit is, for example, a Bluetooth communication module, which can be used in the Bluetooth device 110 and the electronic device. Bluetooth communication between 120. The storage circuit is, for example, a memory, a hard disk, or any other component that can be used to store data, and can be used to record multiple codes or modules.

處理器可耦接儲存電路,並可為一般用途處理器、特殊用途處理器、傳統的處理器、數位訊號處理器、多個微處理器(microprocessor)、一個或多個結合數位訊號處理器核心的微處理器、控制器、微控制器、特殊應用集成電路(Application Specific Integrated Circuit,ASIC)、場可程式閘陣列電路(Field Programmable Gate Array,FPGA)、任何其他種類的積體電路、狀態機、基於進階精簡指令集機器(Advanced RISC Machine,ARM)的處理器以及類似品。The processor can be coupled to the storage circuit, and can be a general purpose processor, a special purpose processor, a traditional processor, a digital signal processor, multiple microprocessors, one or more combined digital signal processor cores Microprocessors, controllers, microcontrollers, Application Specific Integrated Circuits (ASIC), Field Programmable Gate Array (FPGA), any other types of integrated circuits, state machines , Processors based on Advanced RISC Machine (ARM) and similar products.

在本發明的實施例中,藍牙裝置110與電子裝置120可協同執行本發明實施例提出的藍牙配對方法,以下將進行詳細說明。In the embodiment of the present invention, the Bluetooth device 110 and the electronic device 120 can cooperate to execute the Bluetooth pairing method proposed in the embodiment of the present invention, which will be described in detail below.

請參照圖2,其是依據本發明之一實施例繪示的藍牙配對方法流程圖。本實施例的方法可由圖1的電子系統100執行,以下即搭配圖1所示的元件說明各步驟的細節。Please refer to FIG. 2, which is a flowchart of a Bluetooth pairing method according to an embodiment of the present invention. The method of this embodiment can be executed by the electronic system 100 in FIG. 1. The details of each step are described below in conjunction with the components shown in FIG.

首先,在步驟S210中,在藍牙裝置110與電子裝置120配對的配對過程中,藍牙裝置110可發送第一配對請求PR至電子裝置120,其中第一配對請求PR可包括藍牙裝置110的序號。具體而言,在現有技術中,當兩個裝置欲進行藍牙配對時,其中一裝置可發送一配對請求至另一裝置,而前述配對請求一般將包括以下欄位:訊框控制(frame control)、接收端媒體存取控制(medium access control,MAC)位址、發送端MAC位址、存取點MAC位址、序列控制(sequence control)、訊框本體(frame body)、訊框檢查序列(frame check sequence,FCS)等,但並未包括藍牙裝置110的序號。First, in step S210, during the pairing process of the Bluetooth device 110 and the electronic device 120, the Bluetooth device 110 may send a first pairing request PR to the electronic device 120, where the first pairing request PR may include the serial number of the Bluetooth device 110. Specifically, in the prior art, when two devices want to perform Bluetooth pairing, one of the devices can send a pairing request to the other device, and the aforementioned pairing request will generally include the following fields: frame control , Receiver media access control (MAC) address, sender MAC address, access point MAC address, sequence control (sequence control), frame body, frame check sequence ( frame check sequence, FCS), etc., but does not include the serial number of the Bluetooth device 110.

然而,在本發明的實施例中,藍牙裝置110可將其序號新增至第一配對請求PR中,以與上述欄位等資訊一同發送至電子裝置120,從而將第一配對請求PR作為藍牙憑證使用。However, in the embodiment of the present invention, the Bluetooth device 110 may add its serial number to the first pairing request PR, and send it to the electronic device 120 together with the above-mentioned fields and other information, so as to use the first pairing request PR as the Bluetooth device. Voucher use.

在一實施例中,若電子裝置120係初次從藍牙裝置110收到第一配對請求PR(即,藍牙裝置110係初次嘗試與電子裝置120進行藍牙配對),則電子裝置120可相應地對藍牙裝置110指派一第一金鑰,以讓藍牙裝置110日後可利用此第一金鑰加密後續傳輸的藍牙資料/封包,例如藍牙裝置110在重新嘗試與電子裝置110進行藍牙配對時所發送的配對請求(即,藍牙憑證)。藉此,可降低這些藍牙資料/封包被攔截或竊取的機率。In one embodiment, if the electronic device 120 receives the first pairing request PR from the Bluetooth device 110 for the first time (that is, the Bluetooth device 110 is trying to perform Bluetooth pairing with the electronic device 120 for the first time), the electronic device 120 can correspondingly pair the Bluetooth The device 110 assigns a first key so that the Bluetooth device 110 can use the first key to encrypt subsequent Bluetooth data/packets, such as the pairing sent by the Bluetooth device 110 when it retrying to pair with the electronic device 110. Request (ie, Bluetooth credentials). In this way, the probability of these Bluetooth data/packets being intercepted or stolen can be reduced.

換言之,電子裝置120可藉由判斷第一配對請求PR是否被加密來判斷藍牙裝置110是否曾經與電子裝置120進行過藍牙配對。In other words, the electronic device 120 can determine whether the Bluetooth device 110 has been paired with the electronic device 120 by Bluetooth by determining whether the first pairing request PR is encrypted.

因此,在步驟S220中,電子裝置120可判斷第一配對請求PR是否被加密。在一實施例中,電子裝置120可在判斷第一配對請求PR被加密之後,具體地判斷電子裝置120是否第一金鑰所加密。若是,即代表藍牙裝置110及電子裝置120曾經進行過藍牙配對。因此,在步驟S230中,電子裝置110及藍牙裝置120可協同執行重新配對操作,以在電子裝置120及藍牙裝置110之間重新建立藍牙連線,而上述重新配對操作的細節將在之後詳述。Therefore, in step S220, the electronic device 120 may determine whether the first pairing request PR is encrypted. In an embodiment, the electronic device 120 may specifically determine whether the electronic device 120 is encrypted by the first key after determining that the first pairing request PR is encrypted. If so, it means that the Bluetooth device 110 and the electronic device 120 have been paired with Bluetooth. Therefore, in step S230, the electronic device 110 and the Bluetooth device 120 can perform a re-pairing operation in cooperation to re-establish a Bluetooth connection between the electronic device 120 and the Bluetooth device 110, and the details of the re-pairing operation will be described later. .

另一方面,若電子裝置120判定第一配對請求PR未被加密,則代表藍牙裝置110可能是初次嘗試與電子裝置120進行藍牙配對,或是曾經進行過藍牙配對,但相關此藍牙配對的記錄因故(例如曾經損害過電子裝置120)而被刪除。因此,在步驟S240中,電子裝置120可判斷是否存在關聯於藍牙裝置110的不良記錄。在不同的實施例中,前述不良記錄例如可包括藍牙裝置110曾經對電子裝置120進行的損害行為,例如是否曾讓電子裝置120中毒、當機等,但可不限於此。On the other hand, if the electronic device 120 determines that the first pairing request PR is not encrypted, it means that the Bluetooth device 110 may have attempted to perform Bluetooth pairing with the electronic device 120 for the first time, or has performed Bluetooth pairing, but related to this Bluetooth pairing record It is deleted for some reason (for example, the electronic device 120 has been damaged). Therefore, in step S240, the electronic device 120 can determine whether there is a bad record associated with the Bluetooth device 110. In different embodiments, the aforementioned bad record may include, for example, the damage done by the Bluetooth device 110 to the electronic device 120, such as whether the electronic device 120 was poisoned or crashed, but it is not limited to this.

若電子裝置120判定存在關聯於藍牙裝置110的不良記錄,則在步驟S280中,電子裝置120可提供拒絕配對訊息,並中止配對過程。在一實施例中,電子裝置120例如可向使用者顯示上述拒絕配對訊息,並將藍牙裝置110的相關不良記錄提供予使用者參考,但可不限於此。If the electronic device 120 determines that there is a bad record associated with the Bluetooth device 110, then in step S280, the electronic device 120 may provide a pairing rejection message and stop the pairing process. In one embodiment, the electronic device 120 may display the aforementioned pairing rejection message to the user, and provide the related bad record of the Bluetooth device 110 for the user's reference, but it is not limited to this.

另一方面,若電子裝置120判定不存在關聯於藍牙裝置110的不良記錄,則在步驟S250中,電子裝置120可建立用於與藍牙裝置110進行藍牙傳輸的特定容器。在不同的實施例中,上述特定容器例如是電子裝置120對藍牙裝置110分配的適當硬體及作業系統資源,其可實現為虛擬機器、實際儲存空間、Docker或Snapshot,但可不限於此。On the other hand, if the electronic device 120 determines that there is no bad record associated with the Bluetooth device 110, then in step S250, the electronic device 120 may establish a specific container for Bluetooth transmission with the Bluetooth device 110. In different embodiments, the above-mentioned specific container is, for example, appropriate hardware and operating system resources allocated by the electronic device 120 to the Bluetooth device 110, which may be implemented as a virtual machine, actual storage space, Docker or Snapshot, but may not be limited thereto.

在一實施例中,上述特定容器的主要鍵(primary key)可由電子裝置120設定為藍牙裝置110的序號以及藍牙MAC位址(例如,藍牙裝置110中藍牙通訊模組的MAC位址),但本發明可不限於此。在其他實施例中,電子裝置120亦可基於其他關聯於藍牙裝置110的資訊來產生上述特定容器的主要鍵。由於電子裝置120上可能儲存有對應於不同藍牙裝置的容器,因此當電子裝置120欲搜尋對應於藍牙裝置120的特定容器時,即可基於上述主要鍵來進行搜尋,但本發明可不限於此。In one embodiment, the primary key of the aforementioned specific container can be set by the electronic device 120 as the serial number of the Bluetooth device 110 and the Bluetooth MAC address (for example, the MAC address of the Bluetooth communication module in the Bluetooth device 110), but The present invention may not be limited to this. In other embodiments, the electronic device 120 may also generate the main key of the specific container based on other information associated with the Bluetooth device 110. Since the electronic device 120 may store containers corresponding to different Bluetooth devices, when the electronic device 120 wants to search for a specific container corresponding to the Bluetooth device 120, it can search based on the above-mentioned main keys, but the invention is not limited to this.

之後,在步驟S260中,電子裝置120可產生回應封包,其中此回應封包可包括對應於藍牙裝置120的第二金鑰。接著,在步驟S270中,電子裝置120可將上述回應封包傳送至藍牙裝置110,以通知藍牙裝置110已完成配對過程。如此一來,當藍牙裝置120日後需重新與電子裝置120建立藍牙連線時,即可利用上述第二金鑰來加密當下所發送的配對請求(即,藍牙憑證)。在此情況下,當電子裝置120收到由第二金鑰加密的配對請求時,即可得知先前曾與藍牙裝置110進行過藍牙配對,故可相應地執行重新配對操作(即,步驟S230)。Thereafter, in step S260, the electronic device 120 may generate a response packet, where the response packet may include the second key corresponding to the Bluetooth device 120. Then, in step S270, the electronic device 120 may transmit the above-mentioned response packet to the Bluetooth device 110 to notify the Bluetooth device 110 that the pairing process has been completed. In this way, when the Bluetooth device 120 needs to re-establish a Bluetooth connection with the electronic device 120 in the future, the second key can be used to encrypt the pairing request (that is, the Bluetooth certificate) sent at the moment. In this case, when the electronic device 120 receives the pairing request encrypted by the second key, it can know that it has previously performed Bluetooth pairing with the Bluetooth device 110, so it can perform the re-pairing operation accordingly (ie, step S230 ).

由上可知,本發明提出的方法可由電子裝置判斷來自藍牙裝置的第一配對請求是否經過加密,以得知電子裝置是否曾經與藍牙裝置進行過藍牙配對。若否,則電子裝置可在判定藍牙裝置未有不良記錄之後,相應地與藍牙裝置進行首次藍牙配對(例如建立特定容器及產生第二金鑰等)。另一方面,若電子裝置判定第一配對請求係經(以先前指派予藍牙裝置的第一金鑰)加密,則電子裝置可相應地協同藍牙裝置執行以下的重新配對操作。It can be seen from the above that the method proposed by the present invention allows the electronic device to determine whether the first pairing request from the Bluetooth device is encrypted, so as to know whether the electronic device has ever been paired with the Bluetooth device. If not, the electronic device can perform the first Bluetooth pairing with the Bluetooth device after determining that the Bluetooth device does not have a bad record (for example, creating a specific container and generating a second key). On the other hand, if the electronic device determines that the first pairing request is encrypted (with the first key previously assigned to the Bluetooth device), the electronic device can correspondingly cooperate with the Bluetooth device to perform the following re-pairing operation.

請參照圖3,其是依據圖2繪示的進行重新配對操作的流程圖。本實施例的流程可由圖1的電子系統100執行,以下即搭配圖1所示的元件說明各步驟的細節。Please refer to FIG. 3, which is a flowchart of the re-pairing operation shown in FIG. 2. The process of this embodiment can be executed by the electronic system 100 in FIG. 1. The details of each step are described below with the components shown in FIG. 1.

在本實施例中,藍牙裝置110可記錄有阻擋清單及偵測清單,其中阻擋清單及偵測清單將個別記錄有某些電子裝置,而藍牙裝置110當下將僅被允許與記錄於偵測清單中的電子裝置進行配對。換言之,即便記錄於阻擋清單中的一或多個特定電子裝置當下位於藍牙裝置110的傳輸範圍內,藍牙裝置110仍不會嘗試與這些特定電子裝置進行藍牙配對。在一實施例中,當這些特定電子裝置離開並再次進入藍牙裝置110的傳輸範圍內時,藍牙裝置110可將這些特定電子裝置由阻擋清單中移至偵測清單中,並被允許嘗試與這些特定電子裝置進行藍牙配對,但本發明可不限於此。針對藍牙裝置110編輯阻擋清單的原則,以下將另作說明。In this embodiment, the Bluetooth device 110 can record a block list and a detection list. The block list and the detection list will separately record certain electronic devices, and the Bluetooth device 110 will only be allowed and recorded in the detection list. Pair the electronic devices in. In other words, even if one or more specific electronic devices recorded in the blocking list are currently within the transmission range of the Bluetooth device 110, the Bluetooth device 110 will not attempt to perform Bluetooth pairing with these specific electronic devices. In one embodiment, when these specific electronic devices leave and re-enter the transmission range of the Bluetooth device 110, the Bluetooth device 110 can move these specific electronic devices from the blocking list to the detection list, and are allowed to try to interact with these specific electronic devices. A specific electronic device performs Bluetooth pairing, but the invention is not limited to this. The principle of editing the blocking list for the Bluetooth device 110 will be explained separately below.

在本實施例中,假設電子裝置120係由藍牙裝置110記錄於偵測清單中,故藍牙裝置110被允許嘗試與電子裝置120建立藍牙配對。因此,在步驟S220之後,在步驟S310中,電子裝置120可基於金鑰組態檔產生第三金鑰,並將第三金鑰發送至藍牙裝置110。在一實施例中,上述金鑰組態檔可包括藍牙裝置110先前於電子裝置120的特定容器中儲存的歷史運作資訊,例如包括藍牙裝置110先前於上述特定容器中運作的未關閉程式清單、藍牙裝置110使用特定容器的累計使用次數、藍牙裝置110與電子裝置120的配對結束時間、藍牙裝置110先前被分配到的記憶體內容以及硬碟內容等,但可不限於此。In this embodiment, it is assumed that the electronic device 120 is recorded in the detection list by the Bluetooth device 110, so the Bluetooth device 110 is allowed to try to establish a Bluetooth pairing with the electronic device 120. Therefore, after step S220, in step S310, the electronic device 120 may generate a third key based on the key configuration file, and send the third key to the Bluetooth device 110. In one embodiment, the key configuration file may include historical operation information previously stored by the Bluetooth device 110 in a specific container of the electronic device 120, such as a list of unclosed programs that the Bluetooth device 110 previously operated in the specific container, The cumulative number of times the Bluetooth device 110 uses a specific container, the end time of pairing between the Bluetooth device 110 and the electronic device 120, the memory content and hard disk content previously allocated to the Bluetooth device 110, but not limited to this.

接著,在步驟S320中,藍牙裝置110可解析第三金鑰以取得歷史運作資訊,例如上述未關閉程式清單。在一實施例中,藍牙裝置110例如可基於OpenSSL或其他類似的軟體函式庫套件來將第三金鑰(dump)為一檔案,而此檔案的內容將大致相同於電子裝置120所維護的上述金鑰組態檔。藉此,藍牙裝置110即可取得上述歷史資訊,但本發明可不限於此。Then, in step S320, the Bluetooth device 110 may parse the third key to obtain historical operation information, such as the above-mentioned list of unclosed programs. In one embodiment, the Bluetooth device 110 can dump the third key (dump) into a file based on OpenSSL or other similar software library packages, and the content of this file will be substantially the same as that maintained by the electronic device 120 The above key configuration file. In this way, the Bluetooth device 110 can obtain the aforementioned historical information, but the invention is not limited to this.

在一實施例中,藍牙裝置110亦可先行判斷是否接收到來自電子裝置120的任何金鑰。若無,則藍牙裝置110可另行依據使用者是否有與電子裝置120進行藍牙配對的需求來決定是否與電子裝置120進行首次的藍牙配對,但本發明可不限於此。In an embodiment, the Bluetooth device 110 may also determine whether it receives any key from the electronic device 120 first. If not, the Bluetooth device 110 can determine whether to perform the first Bluetooth pairing with the electronic device 120 according to whether the user needs to perform Bluetooth pairing with the electronic device 120, but the present invention is not limited to this.

之後,在步驟S330中,藍牙裝置110可判斷歷史運作資訊是否符合預設條件。在一實施例中,若上述未關閉程式清單為空白,則代表藍牙裝置110在特定容器上未有未關閉程式/未完成工作。在此情況下,藍牙裝置110可判斷歷史運作資訊不符合預設條件,但本發明可不限於此。在此情況下,藍牙裝置110可在步驟S340中詢問使用者是否欲與電子裝置120進行配對,若是則接續執行步驟S350,反之則結束此次重新配對操作,但本發明可不限於此。After that, in step S330, the Bluetooth device 110 can determine whether the historical operation information meets a preset condition. In one embodiment, if the list of unclosed programs is blank, it means that the Bluetooth device 110 has no unclosed programs/unfinished tasks on the specific container. In this case, the Bluetooth device 110 can determine that the historical operation information does not meet the preset condition, but the invention is not limited to this. In this case, the Bluetooth device 110 can ask the user whether they want to pair with the electronic device 120 in step S340, if so, continue to perform step S350, otherwise, the re-pairing operation is ended, but the invention is not limited to this.

另一方面,若上述未關閉程式清單不為空白,則藍牙裝置110可判定上述歷史運作資訊符合預設條件,但本發明可不限於此。詳細而言,若上述未關閉程式清單不為空白,則代表藍牙裝置110先前曾在特定容器上運行某些程式/工作,但其與電子裝置120之間的藍牙連線可能因故而中斷,使得前述程式/工作亦相應中斷。在此情況下,藍牙裝置110可相應執行步驟S350。On the other hand, if the list of unclosed programs is not blank, the Bluetooth device 110 can determine that the historical operation information meets the preset condition, but the present invention is not limited to this. In detail, if the list of unclosed programs is not blank, it means that the Bluetooth device 110 has previously run certain programs/tasks on a specific container, but the Bluetooth connection between it and the electronic device 120 may be interrupted for some reason, so The aforementioned programs/tasks are also interrupted accordingly. In this case, the Bluetooth device 110 may perform step S350 accordingly.

在步驟S350中,藍牙裝置110可發送以第三金鑰加密的第二配對請求至電子裝置120。此步驟的細節可參照先前實施例中關於第一配對請求PR的說明,於此不另贅述。In step S350, the Bluetooth device 110 may send a second pairing request encrypted with the third key to the electronic device 120. For details of this step, please refer to the description of the first pairing request PR in the previous embodiment, which will not be repeated here.

接著,在步驟S360中,藍牙裝置110可判斷使用者是否取消當下的藍牙配對。若是,即代表使用者可能暫時不想讓藍牙裝置110與電子裝置120進行藍牙配對,故藍牙裝置110可接續在步驟S361中將電子裝置120加入阻擋清單中。在一實施例中,藍牙裝置110可將來自電子裝置120的封包加入阻擋清單中,藉以基於封包中的發送端MAC位址而得知此封包係對應於電子裝置120,但可不限於此。Then, in step S360, the Bluetooth device 110 can determine whether the user cancels the current Bluetooth pairing. If yes, it means that the user may not want to allow the Bluetooth device 110 to perform Bluetooth pairing with the electronic device 120 temporarily, so the Bluetooth device 110 may continue to add the electronic device 120 to the blocking list in step S361. In one embodiment, the Bluetooth device 110 can add a packet from the electronic device 120 to the blocking list, thereby knowing that the packet corresponds to the electronic device 120 based on the MAC address of the sender in the packet, but it is not limited to this.

如先前所提及的,在一實施例中,在電子裝置120被加入阻擋清單之後,藍牙裝置110當下即不被允許與電子裝置120進行藍牙配對,直至電子裝置120離開並返回藍牙裝置110的傳輸範圍時,藍牙裝置110方能將電子裝置120從阻擋清單移至偵測清單中,進而被允許與電子裝置110進行藍牙配對。藉此,可避免藍牙裝置110違背使用者意願而重複地嘗試與電子裝置120進行藍牙配對。As mentioned earlier, in one embodiment, after the electronic device 120 is added to the blocking list, the Bluetooth device 110 is not allowed to perform Bluetooth pairing with the electronic device 120 at the moment, until the electronic device 120 leaves and returns to the Bluetooth device 110 During the transmission range, the Bluetooth device 110 can move the electronic device 120 from the blocking list to the detection list, and then is allowed to perform Bluetooth pairing with the electronic device 110. In this way, the Bluetooth device 110 can be prevented from repeatedly trying to perform Bluetooth pairing with the electronic device 120 against the user's will.

另一方面,若藍牙裝置110在步驟S360中判定當下的配對操作未被取消,則電子裝置120可接續在步驟S370中基於第三金鑰解析第二配對請求以取得對應於藍牙裝置110的主要鍵。如先前實施例中所提及的,對應於藍牙裝置110的主要鍵可被設定為藍牙裝置110的序號以及藍牙MAC位址(例如,藍牙裝置110中藍牙通訊模組的MAC位址),而此等資訊皆可由電子裝置120自第二配對請求中取得,但可不限於此。On the other hand, if the Bluetooth device 110 determines in step S360 that the current pairing operation has not been cancelled, then the electronic device 120 can continue to parse the second pairing request based on the third key in step S370 to obtain the master corresponding to the Bluetooth device 110 key. As mentioned in the previous embodiment, the main key corresponding to the Bluetooth device 110 can be set to the serial number of the Bluetooth device 110 and the Bluetooth MAC address (for example, the MAC address of the Bluetooth communication module in the Bluetooth device 110), and Such information can be obtained by the electronic device 120 from the second pairing request, but it is not limited to this.

之後,在步驟S380中,電子裝置120可基於主要鍵找出特定容器,並致能特定容器。在一實施例中,當藍牙裝置110與電子裝置120之間的藍牙連線先前因故而中斷時,電子裝置120可將特定容器予以禁能,並將藍牙裝置110在特定容器中的當下運作資訊予以記錄,並用以更新上述金鑰組態檔。在不同的實施例中,前述當下運作資訊可包括未關閉程式清單、藍牙裝置110使用特定容器的累計使用次數、藍牙裝置110與電子裝置120的配對結束時間、藍牙裝置110被分配到的記憶體內容以及硬碟內容等,但可不限於此。在一實施例中,記錄於金鑰組態檔中的當下運作資訊可視為是下次藍牙裝置110與電子裝置120進行重新配對操作時的歷史運作資訊,而相關細節將在之後另行說明。因此,當藍牙裝置110重新與電子裝置120進行配對時,電子裝置120可將(原本禁能的)特定容器予以致能。此外,在一實施例中,電子裝置120可將藍牙裝置110被分配到的記憶體內容以及硬碟內容傾印成一特定容器檔案,以供之後存取,但可不限於此。After that, in step S380, the electronic device 120 can find the specific container based on the main key, and enable the specific container. In one embodiment, when the Bluetooth connection between the Bluetooth device 110 and the electronic device 120 was previously interrupted for some reason, the electronic device 120 can disable the specific container and set the current operation information of the Bluetooth device 110 in the specific container Record it and use it to update the above key configuration file. In different embodiments, the aforementioned current operation information may include a list of unclosed programs, the cumulative number of times the Bluetooth device 110 uses a specific container, the end time of pairing between the Bluetooth device 110 and the electronic device 120, and the memory allocated to the Bluetooth device 110 Content and hard disk content, but not limited to this. In one embodiment, the current operation information recorded in the key configuration file can be regarded as the historical operation information of the next re-pairing operation between the Bluetooth device 110 and the electronic device 120, and related details will be described later. Therefore, when the Bluetooth device 110 is paired with the electronic device 120 again, the electronic device 120 can enable the (originally disabled) specific container. In addition, in an embodiment, the electronic device 120 can dump the memory content and the hard disk content allocated to the Bluetooth device 110 into a specific container file for later access, but it is not limited to this.

在一實施例中,若電子裝置120找不到對應於藍牙裝置110的容器,則電子裝置120還可進一步判斷藍牙裝置110是否有不良記錄,若是則可在步驟S380之後即中止配對操作,並通知藍牙裝置110。相反地,若藍牙裝置110未有不良記錄,則電子裝置120嘗試與藍牙裝置110建立新的藍牙連線,相關細節可參照先前實施例中的說明,於此不另贅述。In an embodiment, if the electronic device 120 cannot find the container corresponding to the Bluetooth device 110, the electronic device 120 can further determine whether the Bluetooth device 110 has a bad record, and if so, the pairing operation can be stopped after step S380, and Notify the Bluetooth device 110. Conversely, if the Bluetooth device 110 does not have a bad record, the electronic device 120 attempts to establish a new Bluetooth connection with the Bluetooth device 110. For related details, please refer to the description in the previous embodiment, and will not be repeated here.

在步驟S390中,電子裝置120可基於金鑰組態檔中的歷史運作資訊設定特定容器。在一實施例中,歷史運作資訊可包括前一次的未關閉程式清單、藍牙裝置110使用特定容器的累計使用次數、藍牙裝置110與電子裝置120的配對結束時間、藍牙裝置110先前被分配到的記憶體內容以及硬碟內容等。在一實施例中,電子裝置120可將先前分配予藍牙裝置的記憶體內容重新寫回特定容器使用的記憶體位址範圍,以讓使用者能夠接續進行先前未完成的工作。In step S390, the electronic device 120 may set a specific container based on the historical operation information in the key configuration file. In one embodiment, the historical operation information may include the previous list of unclosed programs, the cumulative number of times the Bluetooth device 110 uses a specific container, the end time of the pairing between the Bluetooth device 110 and the electronic device 120, and the previously assigned Bluetooth device 110 Memory content and hard disk content, etc. In one embodiment, the electronic device 120 can rewrite the memory content previously allocated to the Bluetooth device back to the memory address range used by the specific container, so that the user can continue to perform previously unfinished tasks.

之後,在步驟S391中,電子裝置120可通知藍牙裝置110已完成重新配對操作。After that, in step S391, the electronic device 120 may notify the Bluetooth device 110 that the re-pairing operation has been completed.

由上可知,本發明的方法可基於阻擋清單而避免藍牙裝置110違背使用者意願而重複地與某些電子裝置進行藍牙配對。並且,藍牙裝置110可在判斷歷史運作資訊符合預設條件(例如未關閉程式清單不為空)時,嘗試與電子裝置120進行藍牙配對。相應地,電子裝置120則可基於對應於藍牙裝置110的主要鍵找出先前分配予藍牙裝置110的特定容器,並將其致能及基於歷史運作資訊(例如藍牙裝置110先前被分配到的記憶體內容以及硬碟內容等)進行設定。藉此,可讓使用者能夠直接接續進行先前未完成的工作,不需進行額外的設定(例如重新輸入PIN碼等)。It can be seen from the above that the method of the present invention can prevent the Bluetooth device 110 from repeatedly performing Bluetooth pairing with certain electronic devices against the user's wishes based on the blocking list. In addition, the Bluetooth device 110 may try to perform Bluetooth pairing with the electronic device 120 when determining that the historical operation information meets a preset condition (for example, the list of unclosed programs is not empty). Correspondingly, the electronic device 120 can find the specific container previously allocated to the Bluetooth device 110 based on the main key corresponding to the Bluetooth device 110, and enable it based on historical operation information (for example, the memory to which the Bluetooth device 110 was previously allocated) Body content and hard disk content, etc.). In this way, the user can directly continue the previously unfinished work without additional settings (such as re-entering the PIN code, etc.).

請參照圖4,其是依據本發明之一實施例繪示的當藍牙連線被中斷時進行的操作流程圖。在本實施例中,當藍牙裝置110及電子裝置120之間的藍牙連線中斷時,在步驟S410中,電子裝置120可累計藍牙裝置110對特定容器的使用次數。接著,在步驟S420中,電子裝置120可判斷特定容器中是否有未關閉程式。若否,電子裝置120可在步驟S430中清空未關閉程式清單,反之則可在步驟S440中依據上述未關閉程式更新未關閉程式清單。之後,在步驟S450中,電子裝置120可更新藍牙裝置110與電子裝置120之間的配對結束時間。Please refer to FIG. 4, which is a flowchart of the operation performed when the Bluetooth connection is interrupted according to an embodiment of the present invention. In this embodiment, when the Bluetooth connection between the Bluetooth device 110 and the electronic device 120 is interrupted, in step S410, the electronic device 120 can accumulate the number of times the Bluetooth device 110 uses a specific container. Then, in step S420, the electronic device 120 can determine whether there is an unclosed program in the specific container. If not, the electronic device 120 may clear the unclosed program list in step S430, otherwise, it may update the unclosed program list in step S440 according to the above unclosed programs. After that, in step S450, the electronic device 120 may update the pairing end time between the Bluetooth device 110 and the electronic device 120.

接著,在步驟S460中,電子裝置120可基於上述當下運作資訊(即,上述使用次數、未關閉程式清單及配對結束時間等)更新金鑰組態檔。如此一來,當電子裝置120再次進入藍牙裝置110的傳輸範圍時,電子裝置120即可基於上述金鑰組態檔產生新的金鑰,並將此新的金鑰發送至藍牙裝置110,以讓藍牙裝置110日後可使用新的金鑰來進行封包/配對請求的加密,其細節於此不另贅述。Then, in step S460, the electronic device 120 can update the key configuration file based on the current operation information (ie, the number of uses, the list of unclosed programs, and the pairing end time, etc.). In this way, when the electronic device 120 enters the transmission range of the Bluetooth device 110 again, the electronic device 120 can generate a new key based on the above key configuration file, and send the new key to the Bluetooth device 110 to The Bluetooth device 110 can use the new key to encrypt the packet/pairing request in the future, and the details will not be repeated here.

綜上所述,本發明提出的方法可由電子裝置判斷來自藍牙裝置的第一配對請求是否經過加密,以得知電子裝置是否曾經與藍牙裝置進行過藍牙配對。若否,則電子裝置可在判定藍牙裝置未有不良記錄之後,相應地與藍牙裝置進行首次藍牙配對。另一方面,若電子裝置判定第一配對請求係經第一金鑰加密,則電子裝置可相應地協同藍牙裝置執行相關的重新配對操作。In summary, the method proposed by the present invention allows the electronic device to determine whether the first pairing request from the Bluetooth device is encrypted, so as to know whether the electronic device has been paired with the Bluetooth device. If not, the electronic device can perform the first Bluetooth pairing with the Bluetooth device after determining that the Bluetooth device has no bad record. On the other hand, if the electronic device determines that the first pairing request is encrypted by the first key, the electronic device can correspondingly cooperate with the Bluetooth device to perform related re-pairing operations.

並且,本發明的方法可基於阻擋清單而避免藍牙裝置違背使用者意願而重複地與某些電子裝置進行藍牙配對。並且,藍牙裝置可在判斷歷史運作資訊符合預設條件(例如未關閉程式清單不為空)時,嘗試與電子裝置進行藍牙配對。相應地,電子裝置可找出先前分配予藍牙裝置的特定容器,並基於先前的歷史運作資訊將其進行設定。藉此,可讓電子裝置優先與有未完成工作的藍牙裝置進行配對,從而讓使用者能夠直接接續進行先前未完成的工作,不需進行額外的設定。In addition, the method of the present invention can prevent the Bluetooth device from repeatedly performing Bluetooth pairing with certain electronic devices against the user's wishes based on the blocking list. In addition, the Bluetooth device can try to perform Bluetooth pairing with the electronic device when determining that the historical operation information meets the preset conditions (for example, the list of unclosed programs is not empty). Correspondingly, the electronic device can find out the specific container previously allocated to the Bluetooth device, and set it based on the previous historical operation information. In this way, the electronic device can be paired with the Bluetooth device with unfinished tasks first, so that the user can directly continue to perform the previously unfinished tasks without additional settings.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field can make slight changes and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention shall be subject to those defined by the attached patent scope.

100:電子系統 110:藍牙裝置 120:電子裝置 S210~S280、S310~S391、S410~S460:步驟 PR:第一配對請求 100: electronic system 110: Bluetooth device 120: electronic device S210~S280, S310~S391, S410~S460: steps PR: First pairing request

圖1是依據本發明之一實施例繪示的電子系統示意圖。 圖2是依據本發明之一實施例繪示的藍牙配對方法流程圖。 圖3是依據圖2繪示的進行重新配對操作的流程圖。 圖4是依據本發明之一實施例繪示的當藍牙連線被中斷時進行的操作流程圖。 FIG. 1 is a schematic diagram of an electronic system according to an embodiment of the invention. Fig. 2 is a flowchart of a Bluetooth pairing method according to an embodiment of the present invention. FIG. 3 is a flowchart of the re-pairing operation shown in FIG. 2. FIG. 4 is a flowchart of operations performed when the Bluetooth connection is interrupted according to an embodiment of the present invention.

S210~S280:步驟 S210~S280: steps

Claims (12)

一種藍牙配對方法,適於包括一電子裝置及一藍牙裝置的一電子系統,所述方法包括:在該藍牙裝置與該電子裝置配對的一配對過程中,由該藍牙裝置發送一第一配對請求至該電子裝置,其中該第一配對請求包括該藍牙裝置的一序號;以及反應於該電子裝置判定該第一配對請求係經一第一金鑰加密,由該電子裝置及該藍牙裝置協同執行一重新配對操作,以在該電子裝置及該藍牙裝置之間重新建立一藍牙連線,其中該第一金鑰係由該電子裝置先前基於來自該藍牙裝置的其他配對請求而指派予該藍牙裝置,其中由該電子裝置及該藍牙裝置協同執行該重新配對操作的步驟包括:由該電子裝置基於一金鑰組態檔產生一第三金鑰,並將該第三金鑰發送至該藍牙裝置,其中該金鑰組態檔包括該藍牙裝置先前於該電子裝置的一特定容器中儲存的至少一歷史運作資訊,且該特定容器具有對應的一主要鍵;由該藍牙裝置解析該第三金鑰以取得該至少一歷史運作資訊;反應於判定該至少一歷史運作資訊符合一預設條件,由該藍牙裝置發送以該第三金鑰加密的一第二配對請求至該電子裝置;由該電子裝置基於該第三金鑰解析該第二配對請求以取得對應於該藍牙裝置的該主要鍵; 由該電子裝置基於該主要鍵找出該特定容器,並致能該特定容器;由該電子裝置基於該金鑰組態檔中的該至少一歷史運作資訊設定該特定容器;以及通知該藍牙裝置已完成該重新配對操作。 A Bluetooth pairing method is suitable for an electronic system including an electronic device and a Bluetooth device. The method includes: in a pairing process of the Bluetooth device and the electronic device, sending a first pairing request from the Bluetooth device To the electronic device, wherein the first pairing request includes a serial number of the Bluetooth device; and in response to the electronic device determining that the first pairing request is encrypted by a first key, the electronic device and the Bluetooth device are executed cooperatively A re-pairing operation to re-establish a Bluetooth connection between the electronic device and the Bluetooth device, wherein the first key is previously assigned to the Bluetooth device by the electronic device based on other pairing requests from the Bluetooth device , Wherein the step of performing the re-pairing operation cooperatively by the electronic device and the Bluetooth device includes: generating a third key from the electronic device based on a key configuration file, and sending the third key to the Bluetooth device , Wherein the key configuration file includes at least one historical operation information previously stored by the Bluetooth device in a specific container of the electronic device, and the specific container has a corresponding primary key; the third key is analyzed by the Bluetooth device Key to obtain the at least one historical operation information; in response to determining that the at least one historical operation information meets a preset condition, the Bluetooth device sends a second pairing request encrypted with the third key to the electronic device; The electronic device parses the second pairing request based on the third key to obtain the main key corresponding to the Bluetooth device; The electronic device finds the specific container based on the main key, and enables the specific container; the electronic device sets the specific container based on the at least one historical operation information in the key configuration file; and notifies the Bluetooth device The re-pairing operation has been completed. 如申請專利範圍第1項所述的方法,其中反應於該電子裝置判定該第一配對請求未經加密,所述方法更包括:由該電子裝置判斷是否存在關聯於該藍牙裝置的一不良記錄,其中該不良記錄表徵該藍牙裝置曾經對該電子裝置進行的至少一損害行為;反應於判定未存在該藍牙裝置的該不良記錄,由該電子裝置建立用於與該藍牙裝置進行一藍牙傳輸的一特定容器;由該電子裝置產生一回應封包,其中該回應封包包括對應於該藍牙裝置一第二金鑰;以及由該電子裝置將該回應封包傳送至該藍牙裝置,以通知該藍牙裝置已完成該配對過程。 The method described in item 1 of the scope of patent application, wherein the electronic device determines that the first pairing request is not encrypted, and the method further includes: determining by the electronic device whether there is a bad record associated with the Bluetooth device , Wherein the bad record indicates that the Bluetooth device has performed at least one damage to the electronic device; in response to determining that the bad record of the Bluetooth device does not exist, the electronic device establishes a Bluetooth transmission with the Bluetooth device A specific container; a response packet generated by the electronic device, wherein the response packet includes a second key corresponding to the Bluetooth device; and the electronic device transmits the response packet to the Bluetooth device to notify the Bluetooth device that Complete the pairing process. 如申請專利範圍第2項所述的方法,其中該特定容器具有一主要鍵,且該主要鍵係該電腦裝置以該藍牙裝置的該序號以及該藍牙裝置的一藍牙媒體存取控制位址作為該主要鍵。 The method described in item 2 of the scope of patent application, wherein the specific container has a main key, and the main key is the computer device with the serial number of the Bluetooth device and a Bluetooth media access control address of the Bluetooth device as The main key. 如申請專利範圍第1項所述的方法,其中該至少一歷史運作資訊包括該藍牙裝置先前於該特定容器中運作的一未關閉程 式清單,且若該未關閉程式清單不為空白,該藍牙裝置判定該至少一歷史運作資訊符合該預設條件。 For the method described in claim 1, wherein the at least one historical operation information includes an unclosed process of the Bluetooth device previously operating in the specific container If the list of unclosed programs is not blank, the Bluetooth device determines that the at least one historical operation information meets the preset condition. 如申請專利範圍第1項所述的方法,其中該藍牙裝置記錄有一阻擋清單以及一偵測清單,且所述方法更包括:反應於該重新配對操作被取消,由該藍牙裝置將該電子裝置記錄於該阻擋清單中;以及反應於判定該電子裝置再次進入該藍牙裝置的一傳輸範圍內,由該藍牙裝置將該電子裝置由該阻擋清單中移至該偵測清單中,其中該藍牙裝置僅被允許與該偵測清單中記錄的裝置進行配對。 According to the method described in claim 1, wherein the Bluetooth device records a block list and a detection list, and the method further includes: responding to the cancellation of the re-pairing operation, the Bluetooth device uses the electronic device Recorded in the block list; and in response to determining that the electronic device enters a transmission range of the Bluetooth device again, the Bluetooth device moves the electronic device from the block list to the detection list, wherein the Bluetooth device Only allowed to pair with devices recorded in the detection list. 如申請專利範圍第1項所述的方法,更包括:反應於無法依據該主要鍵找到對應於該藍牙裝置的容器,由該電子裝置判斷是否存在關聯於該藍牙裝置的一不良記錄,其中該不良記錄表徵該藍牙裝置曾經對該電子裝置進行的至少一損害行為;以及反應於判定未存在該藍牙裝置的該不良記錄,由該電子裝置與該藍牙裝置協同建立一新藍牙連線。 For example, the method described in item 1 of the scope of patent application further includes: responding to the failure to find the container corresponding to the Bluetooth device based on the main key, the electronic device determines whether there is a bad record associated with the Bluetooth device, wherein the The bad record indicates that the Bluetooth device has performed at least one damage to the electronic device; and in response to determining that the bad record of the Bluetooth device does not exist, the electronic device and the Bluetooth device cooperate to establish a new Bluetooth connection. 如申請專利範圍第6項所述的方法,其中反應於判定存在該藍牙裝置的該不良記錄,所述方法更包括:由該電子裝置提供一拒絕配對訊息,並中止該配對過程。 The method described in item 6 of the scope of patent application, wherein in response to determining that there is the bad record of the Bluetooth device, the method further includes: providing a pairing rejection message from the electronic device, and suspending the pairing process. 如申請專利範圍第1項所述的方法,其中該特定容器包括該電子裝置分配予該藍牙裝置的一虛擬機器、一儲存空間、Docker及Snapshot的至少其中之一。 According to the method described in claim 1, wherein the specific container includes at least one of a virtual machine, a storage space, Docker, and Snapshot allocated to the Bluetooth device by the electronic device. 如申請專利範圍第1項所述的方法,更包括:反應於該藍牙連線被中斷,由該電子裝置記錄該特定容器的至少一當下運作資訊;由該電子裝置基於該特定容器的該至少一當下運作資訊的一部分更新該金鑰組態檔,並禁能該特定容器。 For example, the method described in claim 1 further includes: in response to the disconnection of the Bluetooth connection, recording at least one current operation information of the specific container by the electronic device; A part of the current operation information updates the key configuration file and disables the specific container. 如申請專利範圍第9項所述的方法,其中該至少一當下運作資訊的該部分包括該藍牙裝置使用該特定容器的一累計使用次數、一未關閉程式清單以及該藍牙連線的一配對結束時間。 Such as the method described in item 9 of the scope of patent application, wherein the part of the at least one current operation information includes a cumulative usage count of the Bluetooth device using the specific container, a list of unclosed programs, and a pairing end of the Bluetooth connection time. 如申請專利範圍第9項所述的方法,其中該至少一當下運作資訊包括該藍牙容器被分配到的一記憶體內容以及一硬碟內容,且由該電子裝置記錄該特定容器的該至少一當下運作資訊的步驟包括:由該電子裝置將該記憶體內容及該硬碟內容傾印為一特定容器檔案。 For the method described in claim 9, wherein the at least one current operation information includes a memory content and a hard disk content to which the Bluetooth container is allocated, and the electronic device records the at least one of the specific container The current operation information steps include: dumping the memory content and the hard disk content into a specific container file by the electronic device. 一種電子系統,包括:一藍牙裝置;以及一電子裝置, 其中,在該藍牙裝置與該電子裝置配對的一配對過程中,該藍牙裝置發送一第一配對請求至該電子裝置,其中該第一配對請求包括該藍牙裝置的一序號;以及反應於該電子裝置判定該第一配對請求係經一第一金鑰加密,該電子裝置及該藍牙裝置協同執行一重新配對操作,以在該電子裝置及該藍牙裝置之間重新建立一藍牙連線,其中該第一金鑰係由該電子裝置先前基於來自該藍牙裝置的其他配對請求而指派予該藍牙裝置,其中,該電子裝置基於一金鑰組態檔產生一第三金鑰,並將該第三金鑰發送至該藍牙裝置,其中該金鑰組態檔包括該藍牙裝置先前於該電子裝置的一特定容器中儲存的至少一歷史運作資訊,且該特定容器具有對應的一主要鍵,該藍牙裝置解析該第三金鑰以取得該至少一歷史運作資訊,反應於判定該至少一歷史運作資訊符合一預設條件,該藍牙裝置發送以該第三金鑰加密的一第二配對請求至該電子裝置,該電子裝置基於該第三金鑰解析該第二配對請求以取得對應於該藍牙裝置的該主要鍵,該電子裝置基於該主要鍵找出該特定容器,並致能該特定容器,該電子裝置基於該金鑰組態檔中的該至少一歷史運作資訊設定該特定容器,以及,該電子裝置通知該藍牙裝置已完成該重新配對操作。 An electronic system includes: a Bluetooth device; and an electronic device, Wherein, in a pairing process in which the Bluetooth device is paired with the electronic device, the Bluetooth device sends a first pairing request to the electronic device, wherein the first pairing request includes a serial number of the Bluetooth device; and responds to the electronic device. The device determines that the first pairing request is encrypted by a first key, the electronic device and the Bluetooth device perform a re-pairing operation in cooperation to re-establish a Bluetooth connection between the electronic device and the Bluetooth device, wherein the The first key is previously assigned to the Bluetooth device by the electronic device based on other pairing requests from the Bluetooth device, wherein the electronic device generates a third key based on a key configuration file, and combines the third key The key is sent to the Bluetooth device, wherein the key configuration file includes at least one historical operation information previously stored by the Bluetooth device in a specific container of the electronic device, and the specific container has a corresponding main key. The device parses the third key to obtain the at least one historical operation information, in response to determining that the at least one historical operation information meets a preset condition, the Bluetooth device sends a second pairing request encrypted with the third key to the An electronic device that parses the second pairing request based on the third key to obtain the main key corresponding to the Bluetooth device, the electronic device finds the specific container based on the main key, and enables the specific container, The electronic device sets the specific container based on the at least one historical operation information in the key configuration file, and the electronic device notifies the Bluetooth device that the re-pairing operation has been completed.
TW108114954A 2019-04-29 2019-04-29 Bluetooth pairing method and electronic system TWI699095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108114954A TWI699095B (en) 2019-04-29 2019-04-29 Bluetooth pairing method and electronic system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108114954A TWI699095B (en) 2019-04-29 2019-04-29 Bluetooth pairing method and electronic system

Publications (2)

Publication Number Publication Date
TWI699095B true TWI699095B (en) 2020-07-11
TW202040947A TW202040947A (en) 2020-11-01

Family

ID=72602118

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108114954A TWI699095B (en) 2019-04-29 2019-04-29 Bluetooth pairing method and electronic system

Country Status (1)

Country Link
TW (1) TWI699095B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI783851B (en) * 2021-01-10 2022-11-11 瑞昱半導體股份有限公司 Bluetooth communication system capable of increasing generation efficiency of cypher keys required for data transmission between bluetooth host device and bluetooth device set, and related bluetooth device set

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594554A (en) * 2011-01-04 2012-07-18 原相科技股份有限公司 Bluetooth slave device and relevant authentication method thereof
US20130029596A1 (en) * 2011-07-29 2013-01-31 Motorola Solutions, Inc. Pairing devices using data exchanged in an out-of-band channel
TW201611537A (en) * 2014-09-04 2016-03-16 廣達電腦股份有限公司 Method and system of establishing bluetooth
JP2016153280A (en) * 2015-02-20 2016-08-25 株式会社東海理化電機製作所 Portable terminal key registration system
CN106302728A (en) * 2016-08-15 2017-01-04 中国联合网络通信集团有限公司 Household equipment long-range control method and device
US20180191782A1 (en) * 2016-04-15 2018-07-05 Telefonaktiebolaget Lm Ericsson (Publ) User equipment containers and network slices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594554A (en) * 2011-01-04 2012-07-18 原相科技股份有限公司 Bluetooth slave device and relevant authentication method thereof
CN102594554B (en) 2011-01-04 2014-12-24 原相科技股份有限公司 Bluetooth slave device and relevant authentication method thereof
US20130029596A1 (en) * 2011-07-29 2013-01-31 Motorola Solutions, Inc. Pairing devices using data exchanged in an out-of-band channel
TW201611537A (en) * 2014-09-04 2016-03-16 廣達電腦股份有限公司 Method and system of establishing bluetooth
JP2016153280A (en) * 2015-02-20 2016-08-25 株式会社東海理化電機製作所 Portable terminal key registration system
US20180191782A1 (en) * 2016-04-15 2018-07-05 Telefonaktiebolaget Lm Ericsson (Publ) User equipment containers and network slices
CN106302728A (en) * 2016-08-15 2017-01-04 中国联合网络通信集团有限公司 Household equipment long-range control method and device

Also Published As

Publication number Publication date
TW202040947A (en) 2020-11-01

Similar Documents

Publication Publication Date Title
US20220191291A1 (en) Method, apparatus, and system for session reestablishment or session sharing, and storage medium
CN113726875B (en) Transaction processing method and device based on blockchain all-in-one machine
US10701177B2 (en) Automatic data request recovery after session failure
KR102245247B1 (en) GPU remote communication using triggered actions
US11336660B2 (en) Methods and apparatuses for identifying replay transaction based on blockchain integrated station
US11665234B2 (en) Methods and apparatuses for synchronizing data based on blockchain integrated station
US11463553B2 (en) Methods and apparatuses for identifying to-be-filtered transaction based on blockchain integrated station
US20220158836A1 (en) Fork Processing Method And Blockchain Node
JP2022530788A (en) Communication method and communication device
US11783339B2 (en) Methods and apparatuses for transferring transaction based on blockchain integrated station
EP3813001B1 (en) Data reading method based on a plurality of block chain networks and system
EP3007066A1 (en) Method for using shared device in apparatus capable of operating two operating systems
US12468553B2 (en) Managing user personas using a management controller
WO2017118436A1 (en) Key storing method, key managing method and device
CN106649600A (en) Way, device and system of migrating file permissions
TWI699095B (en) Bluetooth pairing method and electronic system
CN115002740A (en) Earphone upgrade package transmission method, earphone and storage medium
WO2020037607A1 (en) Data transmission method and apparatus
CN113301542A (en) Pairing connection method and device, storage medium and electronic equipment
WO2023185936A1 (en) Communication methods used for cloud network system, apparatus, system and storage medium
CN107431636B (en) Control of ad hoc network functions
US11477018B2 (en) Method, device and system for encrypting interactive data
WO2019104989A1 (en) Terminal and communication method
CN105975624A (en) Data transmission method, equipment and system
EP3518513A1 (en) Streaming data acquisition method, device, and system