TWI699095B - Bluetooth pairing method and electronic system - Google Patents
Bluetooth pairing method and electronic system Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000004044 response Effects 0.000 claims abstract description 16
- 230000005540 biological transmission Effects 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 9
- 230000001186 cumulative effect Effects 0.000 claims description 4
- 230000000903 blocking effect Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
Description
本發明是有關於一種藍牙通訊技術,且特別是有關於一種藍牙配對方法及電子系統。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
在本發明的實施例中,藍牙裝置110及電子裝置120皆可包括諸如通訊單元、儲存電路及處理器等元件,其中通訊單元例如是藍牙通訊模組,其可用以在藍牙裝置110及電子裝置120之間進行藍牙通訊。儲存電路例如是記憶體、硬碟或是其他任何可用於儲存資料的元件,而可用以記錄多個程式碼或模組。In the embodiment of the present invention, both the Bluetooth
處理器可耦接儲存電路,並可為一般用途處理器、特殊用途處理器、傳統的處理器、數位訊號處理器、多個微處理器(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
請參照圖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
首先,在步驟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
然而,在本發明的實施例中,藍牙裝置110可將其序號新增至第一配對請求PR中,以與上述欄位等資訊一同發送至電子裝置120,從而將第一配對請求PR作為藍牙憑證使用。However, in the embodiment of the present invention, the Bluetooth
在一實施例中,若電子裝置120係初次從藍牙裝置110收到第一配對請求PR(即,藍牙裝置110係初次嘗試與電子裝置120進行藍牙配對),則電子裝置120可相應地對藍牙裝置110指派一第一金鑰,以讓藍牙裝置110日後可利用此第一金鑰加密後續傳輸的藍牙資料/封包,例如藍牙裝置110在重新嘗試與電子裝置110進行藍牙配對時所發送的配對請求(即,藍牙憑證)。藉此,可降低這些藍牙資料/封包被攔截或竊取的機率。In one embodiment, if the
換言之,電子裝置120可藉由判斷第一配對請求PR是否被加密來判斷藍牙裝置110是否曾經與電子裝置120進行過藍牙配對。In other words, the
因此,在步驟S220中,電子裝置120可判斷第一配對請求PR是否被加密。在一實施例中,電子裝置120可在判斷第一配對請求PR被加密之後,具體地判斷電子裝置120是否第一金鑰所加密。若是,即代表藍牙裝置110及電子裝置120曾經進行過藍牙配對。因此,在步驟S230中,電子裝置110及藍牙裝置120可協同執行重新配對操作,以在電子裝置120及藍牙裝置110之間重新建立藍牙連線,而上述重新配對操作的細節將在之後詳述。Therefore, in step S220, the
另一方面,若電子裝置120判定第一配對請求PR未被加密,則代表藍牙裝置110可能是初次嘗試與電子裝置120進行藍牙配對,或是曾經進行過藍牙配對,但相關此藍牙配對的記錄因故(例如曾經損害過電子裝置120)而被刪除。因此,在步驟S240中,電子裝置120可判斷是否存在關聯於藍牙裝置110的不良記錄。在不同的實施例中,前述不良記錄例如可包括藍牙裝置110曾經對電子裝置120進行的損害行為,例如是否曾讓電子裝置120中毒、當機等,但可不限於此。On the other hand, if the
若電子裝置120判定存在關聯於藍牙裝置110的不良記錄,則在步驟S280中,電子裝置120可提供拒絕配對訊息,並中止配對過程。在一實施例中,電子裝置120例如可向使用者顯示上述拒絕配對訊息,並將藍牙裝置110的相關不良記錄提供予使用者參考,但可不限於此。If the
另一方面,若電子裝置120判定不存在關聯於藍牙裝置110的不良記錄,則在步驟S250中,電子裝置120可建立用於與藍牙裝置110進行藍牙傳輸的特定容器。在不同的實施例中,上述特定容器例如是電子裝置120對藍牙裝置110分配的適當硬體及作業系統資源,其可實現為虛擬機器、實際儲存空間、Docker或Snapshot,但可不限於此。On the other hand, if the
在一實施例中,上述特定容器的主要鍵(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
之後,在步驟S260中,電子裝置120可產生回應封包,其中此回應封包可包括對應於藍牙裝置120的第二金鑰。接著,在步驟S270中,電子裝置120可將上述回應封包傳送至藍牙裝置110,以通知藍牙裝置110已完成配對過程。如此一來,當藍牙裝置120日後需重新與電子裝置120建立藍牙連線時,即可利用上述第二金鑰來加密當下所發送的配對請求(即,藍牙憑證)。在此情況下,當電子裝置120收到由第二金鑰加密的配對請求時,即可得知先前曾與藍牙裝置110進行過藍牙配對,故可相應地執行重新配對操作(即,步驟S230)。Thereafter, in step S260, the
由上可知,本發明提出的方法可由電子裝置判斷來自藍牙裝置的第一配對請求是否經過加密,以得知電子裝置是否曾經與藍牙裝置進行過藍牙配對。若否,則電子裝置可在判定藍牙裝置未有不良記錄之後,相應地與藍牙裝置進行首次藍牙配對(例如建立特定容器及產生第二金鑰等)。另一方面,若電子裝置判定第一配對請求係經(以先前指派予藍牙裝置的第一金鑰)加密,則電子裝置可相應地協同藍牙裝置執行以下的重新配對操作。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
在本實施例中,藍牙裝置110可記錄有阻擋清單及偵測清單,其中阻擋清單及偵測清單將個別記錄有某些電子裝置,而藍牙裝置110當下將僅被允許與記錄於偵測清單中的電子裝置進行配對。換言之,即便記錄於阻擋清單中的一或多個特定電子裝置當下位於藍牙裝置110的傳輸範圍內,藍牙裝置110仍不會嘗試與這些特定電子裝置進行藍牙配對。在一實施例中,當這些特定電子裝置離開並再次進入藍牙裝置110的傳輸範圍內時,藍牙裝置110可將這些特定電子裝置由阻擋清單中移至偵測清單中,並被允許嘗試與這些特定電子裝置進行藍牙配對,但本發明可不限於此。針對藍牙裝置110編輯阻擋清單的原則,以下將另作說明。In this embodiment, the Bluetooth
在本實施例中,假設電子裝置120係由藍牙裝置110記錄於偵測清單中,故藍牙裝置110被允許嘗試與電子裝置120建立藍牙配對。因此,在步驟S220之後,在步驟S310中,電子裝置120可基於金鑰組態檔產生第三金鑰,並將第三金鑰發送至藍牙裝置110。在一實施例中,上述金鑰組態檔可包括藍牙裝置110先前於電子裝置120的特定容器中儲存的歷史運作資訊,例如包括藍牙裝置110先前於上述特定容器中運作的未關閉程式清單、藍牙裝置110使用特定容器的累計使用次數、藍牙裝置110與電子裝置120的配對結束時間、藍牙裝置110先前被分配到的記憶體內容以及硬碟內容等,但可不限於此。In this embodiment, it is assumed that the
接著,在步驟S320中,藍牙裝置110可解析第三金鑰以取得歷史運作資訊,例如上述未關閉程式清單。在一實施例中,藍牙裝置110例如可基於OpenSSL或其他類似的軟體函式庫套件來將第三金鑰(dump)為一檔案,而此檔案的內容將大致相同於電子裝置120所維護的上述金鑰組態檔。藉此,藍牙裝置110即可取得上述歷史資訊,但本發明可不限於此。Then, in step S320, the
在一實施例中,藍牙裝置110亦可先行判斷是否接收到來自電子裝置120的任何金鑰。若無,則藍牙裝置110可另行依據使用者是否有與電子裝置120進行藍牙配對的需求來決定是否與電子裝置120進行首次的藍牙配對,但本發明可不限於此。In an embodiment, the
之後,在步驟S330中,藍牙裝置110可判斷歷史運作資訊是否符合預設條件。在一實施例中,若上述未關閉程式清單為空白,則代表藍牙裝置110在特定容器上未有未關閉程式/未完成工作。在此情況下,藍牙裝置110可判斷歷史運作資訊不符合預設條件,但本發明可不限於此。在此情況下,藍牙裝置110可在步驟S340中詢問使用者是否欲與電子裝置120進行配對,若是則接續執行步驟S350,反之則結束此次重新配對操作,但本發明可不限於此。After that, in step S330, the
另一方面,若上述未關閉程式清單不為空白,則藍牙裝置110可判定上述歷史運作資訊符合預設條件,但本發明可不限於此。詳細而言,若上述未關閉程式清單不為空白,則代表藍牙裝置110先前曾在特定容器上運行某些程式/工作,但其與電子裝置120之間的藍牙連線可能因故而中斷,使得前述程式/工作亦相應中斷。在此情況下,藍牙裝置110可相應執行步驟S350。On the other hand, if the list of unclosed programs is not blank, the
在步驟S350中,藍牙裝置110可發送以第三金鑰加密的第二配對請求至電子裝置120。此步驟的細節可參照先前實施例中關於第一配對請求PR的說明,於此不另贅述。In step S350, the
接著,在步驟S360中,藍牙裝置110可判斷使用者是否取消當下的藍牙配對。若是,即代表使用者可能暫時不想讓藍牙裝置110與電子裝置120進行藍牙配對,故藍牙裝置110可接續在步驟S361中將電子裝置120加入阻擋清單中。在一實施例中,藍牙裝置110可將來自電子裝置120的封包加入阻擋清單中,藉以基於封包中的發送端MAC位址而得知此封包係對應於電子裝置120,但可不限於此。Then, in step S360, the
如先前所提及的,在一實施例中,在電子裝置120被加入阻擋清單之後,藍牙裝置110當下即不被允許與電子裝置120進行藍牙配對,直至電子裝置120離開並返回藍牙裝置110的傳輸範圍時,藍牙裝置110方能將電子裝置120從阻擋清單移至偵測清單中,進而被允許與電子裝置110進行藍牙配對。藉此,可避免藍牙裝置110違背使用者意願而重複地嘗試與電子裝置120進行藍牙配對。As mentioned earlier, in one embodiment, after the
另一方面,若藍牙裝置110在步驟S360中判定當下的配對操作未被取消,則電子裝置120可接續在步驟S370中基於第三金鑰解析第二配對請求以取得對應於藍牙裝置110的主要鍵。如先前實施例中所提及的,對應於藍牙裝置110的主要鍵可被設定為藍牙裝置110的序號以及藍牙MAC位址(例如,藍牙裝置110中藍牙通訊模組的MAC位址),而此等資訊皆可由電子裝置120自第二配對請求中取得,但可不限於此。On the other hand, if the
之後,在步驟S380中,電子裝置120可基於主要鍵找出特定容器,並致能特定容器。在一實施例中,當藍牙裝置110與電子裝置120之間的藍牙連線先前因故而中斷時,電子裝置120可將特定容器予以禁能,並將藍牙裝置110在特定容器中的當下運作資訊予以記錄,並用以更新上述金鑰組態檔。在不同的實施例中,前述當下運作資訊可包括未關閉程式清單、藍牙裝置110使用特定容器的累計使用次數、藍牙裝置110與電子裝置120的配對結束時間、藍牙裝置110被分配到的記憶體內容以及硬碟內容等,但可不限於此。在一實施例中,記錄於金鑰組態檔中的當下運作資訊可視為是下次藍牙裝置110與電子裝置120進行重新配對操作時的歷史運作資訊,而相關細節將在之後另行說明。因此,當藍牙裝置110重新與電子裝置120進行配對時,電子裝置120可將(原本禁能的)特定容器予以致能。此外,在一實施例中,電子裝置120可將藍牙裝置110被分配到的記憶體內容以及硬碟內容傾印成一特定容器檔案,以供之後存取,但可不限於此。After that, in step S380, the
在一實施例中,若電子裝置120找不到對應於藍牙裝置110的容器,則電子裝置120還可進一步判斷藍牙裝置110是否有不良記錄,若是則可在步驟S380之後即中止配對操作,並通知藍牙裝置110。相反地,若藍牙裝置110未有不良記錄,則電子裝置120嘗試與藍牙裝置110建立新的藍牙連線,相關細節可參照先前實施例中的說明,於此不另贅述。In an embodiment, if the
在步驟S390中,電子裝置120可基於金鑰組態檔中的歷史運作資訊設定特定容器。在一實施例中,歷史運作資訊可包括前一次的未關閉程式清單、藍牙裝置110使用特定容器的累計使用次數、藍牙裝置110與電子裝置120的配對結束時間、藍牙裝置110先前被分配到的記憶體內容以及硬碟內容等。在一實施例中,電子裝置120可將先前分配予藍牙裝置的記憶體內容重新寫回特定容器使用的記憶體位址範圍,以讓使用者能夠接續進行先前未完成的工作。In step S390, the
之後,在步驟S391中,電子裝置120可通知藍牙裝置110已完成重新配對操作。After that, in step S391, the
由上可知,本發明的方法可基於阻擋清單而避免藍牙裝置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
請參照圖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
接著,在步驟S460中,電子裝置120可基於上述當下運作資訊(即,上述使用次數、未關閉程式清單及配對結束時間等)更新金鑰組態檔。如此一來,當電子裝置120再次進入藍牙裝置110的傳輸範圍時,電子裝置120即可基於上述金鑰組態檔產生新的金鑰,並將此新的金鑰發送至藍牙裝置110,以讓藍牙裝置110日後可使用新的金鑰來進行封包/配對請求的加密,其細節於此不另贅述。Then, in step S460, the
綜上所述,本發明提出的方法可由電子裝置判斷來自藍牙裝置的第一配對請求是否經過加密,以得知電子裝置是否曾經與藍牙裝置進行過藍牙配對。若否,則電子裝置可在判定藍牙裝置未有不良記錄之後,相應地與藍牙裝置進行首次藍牙配對。另一方面,若電子裝置判定第一配對請求係經第一金鑰加密,則電子裝置可相應地協同藍牙裝置執行相關的重新配對操作。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)
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)
| 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)
| 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 |
-
2019
- 2019-04-29 TW TW108114954A patent/TWI699095B/en active
Patent Citations (7)
| 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 |