TW202327382A - Automatic bluetooth pairing method, bluetooth device and electronic device - Google Patents

Automatic bluetooth pairing method, bluetooth device and electronic device Download PDF

Info

Publication number
TW202327382A
TW202327382A TW111105518A TW111105518A TW202327382A TW 202327382 A TW202327382 A TW 202327382A TW 111105518 A TW111105518 A TW 111105518A TW 111105518 A TW111105518 A TW 111105518A TW 202327382 A TW202327382 A TW 202327382A
Authority
TW
Taiwan
Prior art keywords
bluetooth
electronic device
module
processing module
pairing
Prior art date
Application number
TW111105518A
Other languages
Chinese (zh)
Other versions
TWI830143B (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 TW202327382A publication Critical patent/TW202327382A/en
Application granted granted Critical
Publication of TWI830143B publication Critical patent/TWI830143B/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The invention discloses an automatic Bluetooth pairing method, a Bluetooth device and an electronic device. The automatic Bluetooth pairing method includes: making the electronic device execute the process of establishing link layer connection; making the electronic device send a Bluetooth packet to the Bluetooth device, and control the action module of the electronic device to act; if the electronic device receives a response packet containing sensing data, the electronic device will perform a pairing procedure with the Bluetooth device that send the response packet.

Description

自動藍牙配對方法、藍牙裝置及電子裝置Automatic bluetooth pairing method, bluetooth device and electronic device

本發明涉及一種自動藍牙配對方法、藍牙裝置及電子裝置,特別是一種藍牙裝置及電子裝置之間能自動完成配對程序的自動藍牙配對方法。The invention relates to an automatic bluetooth pairing method, a bluetooth device and an electronic device, in particular to an automatic bluetooth pairing method capable of automatically completing a pairing program between the bluetooth device and the electronic device.

在現有的藍牙配對過程中,都必需要使用者了解繁瑣又複雜的操作介面與配對流程。舉例來說,使用者開啟手機的藍牙功能時,手機會自動完成物理連接,之後使用者可於手機上看到藍牙列表。接著,使用者必需「手動」選擇藍牙列表中之一個藍芽裝置,並同時確認該藍芽裝置的配對操作流程,才能使兩者進行「配對程序(Pairing)」。為此,造成使用者使用上的諸多不便。In the existing Bluetooth pairing process, the user must understand the cumbersome and complicated operation interface and pairing process. For example, when the user turns on the Bluetooth function of the mobile phone, the mobile phone will automatically complete the physical connection, and then the user can see the Bluetooth list on the mobile phone. Then, the user must "manually" select a Bluetooth device in the Bluetooth list, and at the same time confirm the pairing operation process of the Bluetooth device, so that the two can perform the "pairing procedure (Pairing)". For this reason, cause many inconveniences in the user's use.

本發明公開一種自動藍牙配對方法、藍牙裝置及電子裝置,主要經由使用者擺放藍芽裝置於電子裝置上,即能自動進行藍芽配對。The invention discloses an automatic bluetooth pairing method, a bluetooth device and an electronic device. The bluetooth pairing can be automatically performed mainly through the user placing the bluetooth device on the electronic device.

本發明的其中一實施例公開一種自動藍牙配對方法,其用以使一電子裝置與設置於所述電子裝置的周圍的多個藍牙裝置中的其中一個自動地進行一配對程序(Pairing),所述自動藍牙配對方法包含:一開始步驟:使所述電子裝置執行一建立鏈路層連接(Establish Link Layer Connection)程序;一發送步驟:使所述電子裝置發送一藍牙封包至多個所述藍牙裝置,並控制所述電子裝置的一動作模組作動,以使所述動作模組執行發出光束、發出聲音及產生震動產生光束、聲音及震動中的至少一種動作;一封包判斷步驟:使所述電子裝置逐一地判斷各個所述藍牙裝置為了回應所述藍牙封包所回傳一回應封包中,是否包含一感測資料;其中,發出包含所述感測資料的所述回應封包的所述藍牙裝置包含一感測模組,所述感測模組用以感測所述藍牙裝置周圍的光束、聲音及震動中的至少一種,並據以產生相對應的所述感測資料;若判定所述回應封包中包含所述感測資料,則執行一配對步驟:使所述電子裝置與發出包含所述感測資料的所述藍牙裝置進行所述配對程序。One embodiment of the present invention discloses an automatic Bluetooth pairing method, which is used to automatically perform a pairing procedure (Pairing) between an electronic device and one of a plurality of Bluetooth devices disposed around the electronic device. The automatic bluetooth pairing method includes: a starting step: making the electronic device execute a procedure of establishing a link layer connection (Establish Link Layer Connection); a sending step: making the electronic device send a bluetooth packet to a plurality of bluetooth devices , and control an action module of the electronic device to actuate, so that the action module performs at least one action of emitting light beams, emitting sounds, and generating vibrations to generate light beams, sounds, and vibrations; a packet judgment step: making the The electronic device judges one by one whether a response packet returned by each Bluetooth device in response to the Bluetooth packet contains a sensing data; wherein, the Bluetooth device that sends the response packet containing the sensing data Including a sensing module, the sensing module is used to sense at least one of the light beam, sound and vibration around the bluetooth device, and generate corresponding sensing data accordingly; if it is determined that the If the sensing data is included in the response packet, a pairing step is performed: the electronic device and the bluetooth device sending the sensing data are paired.

本發明的其中一實施例公開一種藍牙裝置,其包含:一處理模組及一感測模組。處理模組包含一藍牙晶片,處理模組能接收一電子裝置所發出的一藍牙封包;感測模組電性連接處理模組,感測模組用以感測藍牙裝置周圍的光束、聲音及震動中的至少一種,並據以產生相對應的一感測資料;其中,處理模組接收藍牙封包時,處理模組能執行一自動配對程序,其包含:控制感測模組作動,並等待一預定時間;將感測模組於預定時間內所產生的感測資料,整合至一回應封包內,並將回應封包傳遞至電子裝置;其中,在處理模組將回應封包傳遞至電子裝置後,若處理模組接收到來自電子裝置傳遞的一配對要求時,處理模組將同意配對要求,而與電子裝置進行一配對程序。One embodiment of the present invention discloses a bluetooth device, which includes: a processing module and a sensing module. The processing module includes a bluetooth chip, and the processing module can receive a bluetooth packet sent by an electronic device; the sensing module is electrically connected to the processing module, and the sensing module is used to sense light beams, sounds and At least one of the vibrations, and accordingly generate a corresponding sensing data; wherein, when the processing module receives the Bluetooth packet, the processing module can execute an automatic pairing procedure, which includes: controlling the sensing module to operate, and waiting A predetermined time; integrating the sensing data generated by the sensing module within the predetermined time into a response packet, and transmitting the response packet to the electronic device; wherein, after the processing module transmits the response packet to the electronic device If the processing module receives a pairing request transmitted from the electronic device, the processing module will agree to the pairing request and perform a pairing procedure with the electronic device.

本發明的其中一實施例公開一種電子裝置,其包含:一處理模組及一動作模組。處理模組包含一藍牙晶片,處理模組能發出一藍牙封包;動作模組電性連接處理模組,處理模組能控制動作模組執行發出光束、發出聲音及產生震動產生光束、聲音及震動中的至少一種動作;其中,處理模組能執行本發明的自動藍牙配對方法。其中,處理模組能於執行一建立鏈路層連接(Establish Link Layer Connection)程序中,或是,與位於電子裝置周圍的至少一個藍牙裝置建立鏈路層連接後,執行以下步驟:一發送步驟:發送一藍牙封包至位於電子裝置周圍的一預設範圍內的至少一個藍牙裝置,並控制動作模組作動,以使動作模組執行發出光束、發出聲音及產生震動產生光束、聲音及震動中的至少一種動作;其中,處理組執行完發送步驟,且處理模組與至少一個藍牙裝置建立鏈路層連接後,處理模組將執行以下步驟:一封包判斷步驟:判斷各個藍牙裝置為了回應藍牙封包所回傳一回應封包中,是否包含一感測資料;其中,發出包含感測資料的回應封包的藍牙裝置包含一感測模組,感測模組用以感測藍牙裝置周圍的光束、聲音及震動中的至少一種,並據以產生相對應的感測資料;若判定回應封包中包含感測資料,則與發出包含感測資料的藍牙裝置進行一配對程序。綜上所述,本發明的自動藍牙配對方法、藍牙裝置及電子裝置,可以讓電子裝置與多個藍牙裝置自動地進行藍牙配對,且智能地選擇出需要被藍牙配對的藍牙裝置。One embodiment of the present invention discloses an electronic device, which includes: a processing module and an action module. The processing module includes a bluetooth chip, and the processing module can send out a bluetooth packet; the action module is electrically connected to the processing module, and the processing module can control the action module to execute light beam, sound and vibration to generate light beam, sound and vibration At least one of the actions; wherein, the processing module can execute the automatic Bluetooth pairing method of the present invention. Wherein, the processing module can perform the following steps after executing an Establish Link Layer Connection program, or after establishing a link layer connection with at least one bluetooth device located around the electronic device: a sending step : Send a bluetooth packet to at least one bluetooth device located within a preset range around the electronic device, and control the action module to actuate, so that the action module performs beam emission, sound emission and vibration to generate light beam, sound and vibration At least one action; Wherein, after the processing group executes the sending step, and after the processing module establishes a link layer connection with at least one Bluetooth device, the processing module will perform the following steps: a packet judgment step: judge that each Bluetooth device responds to the Bluetooth whether a sensing data is included in a response packet returned by the packet; wherein, the bluetooth device that sends the response packet including the sensing data includes a sensing module, and the sensing module is used to sense light beams around the bluetooth device, At least one of sound and vibration, and corresponding sensing data are generated accordingly; if it is determined that the response packet contains sensing data, a pairing process is performed with the Bluetooth device that sent the sensing data. To sum up, the automatic Bluetooth pairing method, Bluetooth device and electronic device of the present invention can automatically perform Bluetooth pairing between the electronic device and multiple Bluetooth devices, and intelligently select the Bluetooth device that needs to be paired by Bluetooth.

請參閱圖1,本發明的其中一個實施例公開一種自動藍牙配對方法,其用以使電子裝置及與其相鄰或接觸的多個藍牙裝置中之至少一者自動地進行藍芽配對,自動藍牙配對方法包含:Please refer to FIG. 1, one embodiment of the present invention discloses an automatic Bluetooth pairing method, which is used to automatically perform Bluetooth pairing on an electronic device and at least one of a plurality of Bluetooth devices adjacent to or in contact with it. Automatic Bluetooth Pairing methods include:

作動步驟S11:使電子裝置執行產生光束、聲音及震動中之至少一者,再依據每一藍牙裝置因應光束、聲音及震動中之至少一者而使電子裝置產生感測資料;Action step S11: make the electronic device execute at least one of light beam, sound and vibration, and then make the electronic device generate sensing data according to each bluetooth device in response to at least one of the light beam, sound and vibration;

判斷步驟S12:使電子裝置依據每一藍牙裝置的感測資料而選擇是否執行自動藍牙配對。Judgment step S12: enabling the electronic device to select whether to perform automatic Bluetooth pairing according to the sensing data of each Bluetooth device.

請參閱圖2,本發明的其中一個實施例公開一種自動藍牙配對方法,其用以使電子裝置及與其相鄰或接觸的多個藍牙裝置中之至少一者自動地進行藍芽配對,自動藍牙配對方法包含:Please refer to FIG. 2 , one embodiment of the present invention discloses an automatic Bluetooth pairing method, which is used to automatically perform Bluetooth pairing on an electronic device and at least one of a plurality of Bluetooth devices adjacent to or in contact with it. Automatic Bluetooth Pairing methods include:

作動步驟S21:使該些藍牙裝置中之至少一者執行產生光束、聲音及震動中之至少一者,再依據每一藍牙裝置因應光束、聲音及震動中之至少一者而使電子裝置產生一感測資料;Action step S21: make at least one of the bluetooth devices execute at least one of light beam, sound and vibration, and then make the electronic device generate a light beam, sound and vibration according to each bluetooth device in response to at least one of the light beam, sound and vibration sensing data;

判斷步驟S22:使電子裝置依據每一藍牙裝置的感測資料而選擇是否執行自動藍牙配對。Judgment step S22: enabling the electronic device to select whether to perform automatic Bluetooth pairing according to the sensing data of each bluetooth device.

請參閱圖3,本發明的其中一個實施例公開一種自動藍牙配對方法,其用以使電子裝置及與其相鄰或接觸的多個藍牙裝置中之至少一者自動地進行藍芽配對,自動藍牙配對方法包含:Please refer to FIG. 3 , one embodiment of the present invention discloses an automatic Bluetooth pairing method, which is used to automatically perform Bluetooth pairing on an electronic device and at least one of a plurality of Bluetooth devices adjacent to or in contact with it. Automatic Bluetooth Pairing methods include:

作動步驟S31:使電子裝置執行產生光束、聲音及震動中之至少一者,再依據每一藍牙裝置因應光束、聲音及震動中之至少一者而使每一藍牙裝置產生感測資料;Action step S31: making the electronic device execute at least one of light beam, sound and vibration, and then make each bluetooth device generate sensing data according to each bluetooth device in response to at least one of light beam, sound and vibration;

判斷步驟S32:使電子裝置依據每一藍牙裝置所傳送的感測資料而選擇是否執行自動藍牙配對。Judgment step S32: enabling the electronic device to select whether to perform automatic Bluetooth pairing according to the sensing data transmitted by each Bluetooth device.

在上述任一個實施例中,感測資料係為感光信號強度、聲波信號強度或震動信號強度,且判斷步驟還可以包含:In any of the above-mentioned embodiments, the sensing data is the strength of the photosensitive signal, the strength of the sound wave signal or the strength of the vibration signal, and the judging step may also include:

依據感光信號強度、聲波信號強度及震動信號強度中之至少一者而加權計算取得藍牙配對值;Obtaining the Bluetooth pairing value through weighted calculation according to at least one of the intensity of the photosensitive signal, the intensity of the sound wave signal and the intensity of the vibration signal;

判斷藍牙配對值是否大於預設藍芽配對值。Determine whether the Bluetooth pairing value is greater than the preset Bluetooth pairing value.

在實際應用中,感測資料例如可以是「UUID1_7_8_6」,「7_8_6」即為三個強度值,其分別代表感光信號強度、聲波信號強度或震動信號強度。若電子裝置或藍牙裝置接收到的兩筆感測資訊分別為「UUID1_7_8_6」及「UUID2_3_3_1」,則執行判斷步驟時,可以是對各個感測資料所包含的三個強度值進行加權計算,以取得兩個藍牙配對值21(7+8+6)、7(3+1+1),並使藍牙配對值大於預設藍牙配對值的電子裝置及藍牙裝置自動地藍牙配對。In practical applications, the sensing data may be, for example, "UUID1_7_8_6", "7_8_6" is three intensity values, which respectively represent the intensity of the photosensitive signal, the intensity of the sound wave signal or the intensity of the vibration signal. If the two pieces of sensing information received by the electronic device or the Bluetooth device are respectively "UUID1_7_8_6" and "UUID2_3_3_1", when performing the judgment step, the three intensity values included in each sensing data can be weighted and calculated to obtain The two Bluetooth pairing values are 21(7+8+6), 7(3+1+1), and the electronic device with the Bluetooth pairing value greater than the preset Bluetooth pairing value is automatically paired with the Bluetooth device.

在上述任一個實施例中,作動步驟還可以包含:In any of the above embodiments, the action step may also include:

依據電子裝置與每一藍牙裝置間的訊號強度,判斷是否大於預設訊號強度值;其中,訊號強度係為無線接收訊號強度(Received Signal Strength Indication, RSSI);其中,預設訊號強度值可以是-20bBm、-40bBm或-60bBm。According to the signal strength between the electronic device and each bluetooth device, determine whether it is greater than a preset signal strength value; wherein, the signal strength is the wireless received signal strength (Received Signal Strength Indication, RSSI); wherein, the preset signal strength value can be -20bBm, -40bBm, or -60bBm.

若當訊號強度大於預設訊號強度值時,則儲存對應訊號強度的藍牙裝置的至少一識別資料於電子裝置的一配對清單中。If the signal strength is greater than the preset signal strength value, at least one identification data of the bluetooth device corresponding to the signal strength is stored in a pairing list of the electronic device.

請參考圖4的實施例,將以此例說明如何應用本案的方法以使智慧型手機P(即電子裝置)與具有感測模組TWS21的第一真無線藍牙耳機TWS2(即藍牙裝置)完成配對程序。首先,開啟智慧型手機P的藍牙功能後並將其放在桌面D1上,接著將第一真無線藍牙耳機TWS2放在智慧型手機P的顯示屏上,且在桌面D1上還放有曾經與智慧型手機P完成配對程序的第一智慧型手錶W1(即另一個具有感測模組W11的藍牙裝置)及藍牙滑鼠MS,另一個桌面D2上還放有不具有所述感測模組的第二智慧型手錶W2及具有所述感測模組TWS31的第二真無線藍牙耳機TWS3。Please refer to the embodiment in FIG. 4 , how to apply the method of this case to make the smart phone P (that is, the electronic device) and the first true wireless Bluetooth earphone TWS2 (that is, the Bluetooth device) with the sensing module TWS21 complete pairing procedure. First, turn on the Bluetooth function of the smartphone P and place it on the desktop D1, then place the first true wireless Bluetooth headset TWS2 on the display screen of the smartphone P, and place the previous Bluetooth headset on the desktop D1. The first smart watch W1 (i.e. another bluetooth device with sensing module W11) and the bluetooth mouse MS for which the smart phone P has completed the pairing process, and another desktop D2 that does not have the sensing module The second smart watch W2 and the second true wireless bluetooth earphone TWS3 with the sensing module TWS31.

當智慧型手機P的處理模組P2執行本發明的自動藍牙配對方法時,智慧型手機P的處理模組在執行判斷步驟後,將會判定智慧型手機P與第二真無線藍牙耳機TWS3之間的訊號強度小於預設訊號強度值,智慧型手機P與第二智慧型手錶W2之間的訊號強度小於預設訊號強度值,而電子裝置的處理模組將不會與第二真無線藍牙耳機TWS3及第二智慧型手錶W2進行藍牙配對,且智慧型手機P的處理模組會判定智慧型手機P曾經與第一智慧型手錶W1完成配對程序,並判定未曾與第一真無線藍牙耳機TWS2完成配對程序過,因此,智慧型手機P的處理模組將僅會與第一真無線藍牙耳機TWS2進行藍牙配對。When the processing module P2 of the smart phone P executes the automatic Bluetooth pairing method of the present invention, the processing module of the smart phone P will determine the relationship between the smart phone P and the second true wireless Bluetooth headset TWS3 after performing the judgment step. The signal strength between the smart phone P and the second smart watch W2 is less than the preset signal strength value, and the processing module of the electronic device will not communicate with the second true wireless bluetooth The headset TWS3 and the second smart watch W2 perform Bluetooth pairing, and the processing module of the smart phone P determines that the smart phone P has completed the pairing process with the first smart watch W1, and determines that it has not paired with the first true wireless Bluetooth headset TWS2 has completed the pairing process, therefore, the processing module of the smartphone P will only perform Bluetooth pairing with the first true wireless Bluetooth headset TWS2.

請參閱圖5,本發明的自動藍牙配對方法,用以使電子裝置與設置於電子裝置的周圍的多個藍牙裝置中的其中一個自動地進行配對程序(Pairing),自動藍牙配對方法包含:Referring to FIG. 5, the automatic Bluetooth pairing method of the present invention is used to automatically perform a pairing procedure (Pairing) between the electronic device and one of the multiple Bluetooth devices disposed around the electronic device. The automatic Bluetooth pairing method includes:

發送步驟S51:使電子裝置發送藍牙封包至多個藍牙裝置,並控制電子裝置的動作模組作動,以使動作模組執行產生光束、聲音及震動中的至少一種動作;Sending step S51: making the electronic device send Bluetooth packets to multiple Bluetooth devices, and controlling the action module of the electronic device to operate, so that the action module performs at least one action of generating light beams, sound and vibration;

封包判斷步驟S52:使電子裝置判斷各個藍牙裝置為了回應藍牙封包所回傳回應封包中,是否包含感測資料;其中,發出包含感測資料的回應封包的藍牙裝置包含感測模組,感測模組用以感測藍牙裝置周圍的光束、聲音及震動中的至少一種,並據以產生相對應的感測資料;Packet judging step S52: making the electronic device judge whether the response packet returned by each Bluetooth device in response to the Bluetooth packet contains sensing data; wherein, the Bluetooth device that sends the response packet containing the sensing data includes a sensing module to sense The module is used to sense at least one of light beam, sound and vibration around the Bluetooth device, and generate corresponding sensing data accordingly;

若判定回應封包中包含感測資料,則執行配對步驟S53:使電子裝置與發出包含感測資料的藍牙裝置進行配對程序。If it is determined that the sensing data is included in the response packet, the pairing step S53 is performed: pairing the electronic device with the Bluetooth device that sent the sensing data.

若判定回應封包中沒有包含感測資料,則執行結束步驟S54:使電子裝置不與發出回應封包的藍牙裝置進行配對程序。If it is determined that the response packet does not contain the sensing data, then the end step S54 is executed: the electronic device is not paired with the bluetooth device that sent the response packet.

依上所述,應用本提案的自動藍牙配對方法自動地進行配對時,使用者僅需要開啟電子裝置的藍牙功能進入配對模式後,將藍牙裝置放在電子裝置的周圍(例如手機顯示屏上或緊鄰手機),電子裝置則會自動地依序執行上述步驟S51-S53,最後完成配對程序。As mentioned above, when using the automatic Bluetooth pairing method of this proposal to automatically perform pairing, the user only needs to turn on the Bluetooth function of the electronic device to enter the pairing mode, and then place the Bluetooth device around the electronic device (such as on the display screen of the mobile phone or close to the mobile phone), the electronic device will automatically execute the above steps S51-S53 in sequence, and finally complete the pairing procedure.

此外,於藍牙裝置與電子裝置間所傳遞的藍牙封包更包括特徵值,例如是藍牙裝置的電量、溫度值、ID名稱、使用次數或使用關係等。且電子裝置可進一步對特徵值的屬性進行分類,以利於後續電子裝置更加智能地自動選擇應執行自動藍牙連接的藍牙裝置。In addition, the bluetooth packet transmitted between the bluetooth device and the electronic device further includes characteristic values, such as the battery level, temperature value, ID name, use times or use relationship of the bluetooth device. And the electronic device can further classify the attribute of the feature value, so that the subsequent electronic device can automatically select the Bluetooth device that should perform the automatic Bluetooth connection more intelligently.

更具體來說,如圖5及圖6所示,假設電子裝置為智慧型手機P,藍牙裝置為真無線藍牙耳機TWS,電子裝置的動作模組例如是震動馬達P1,當使用者欲使真無線藍牙耳機TWS與智慧型手機P利用本發明的自動藍牙配對方法時,使用者在使真無線藍牙耳機TWS進入配對模式,且開啟智慧型手機P的藍牙功能後,使用者僅需執行單一個步驟:將真無線藍牙耳機TWS放在智慧型手機P上(或是緊鄰智慧型手機P設置);而後,智慧型手機P將會開始執行上述步驟S51~S53,於發送步驟S41中智慧型手機P的處理模組控制震動馬達P1震動,真無線藍牙耳機TWS的感測模組TWS1則會感測智慧型手機P的震動並將於回應封包中加入感測資料,而後,智慧型手機P將會自動地與真無線藍牙耳機TWS進行配對程序。More specifically, as shown in Figures 5 and 6, assume that the electronic device is a smart phone P, the Bluetooth device is a true wireless Bluetooth headset TWS, and the action module of the electronic device is, for example, a vibration motor P1. When the wireless bluetooth earphone TWS and the smart phone P use the automatic bluetooth pairing method of the present invention, the user only needs to execute a single Steps: Put the true wireless Bluetooth headset TWS on the smart phone P (or set it next to the smart phone P); then, the smart phone P will start to execute the above steps S51~S53, and the smart phone P in the sending step S41 The processing module of P controls the vibration of the vibration motor P1, and the sensing module TWS1 of the true wireless Bluetooth headset TWS will sense the vibration of the smart phone P and add the sensing data to the response packet, and then the smart phone P will It will automatically pair with the true wireless Bluetooth headset TWS.

請參閱圖7,本發明的藍牙裝置100能與執行有本發明的自動藍牙配對方法的電子裝置自動地完成配對程序,關於本發明的藍牙裝置100與執行有本發明的自動藍牙配對方法的電子裝置自動地完成配對程序的相關流程說明,請參閱前述實施例,於此不再贅述。Please refer to FIG. 7 , the Bluetooth device 100 of the present invention can automatically complete the pairing procedure with the electronic device that executes the automatic Bluetooth pairing method of the present invention. Regarding the Bluetooth device 100 of the present invention and the electronic device that executes the automatic Bluetooth pairing method of the present invention Please refer to the above-mentioned embodiments for the description of the process of automatically completing the pairing procedure by the device, and details will not be repeated here.

本發明的藍牙裝置100包含:一處理模組11及一感測模組12。所述藍牙裝置100例如可以是真無線藍牙耳機、具有藍牙功能的智慧型手錶、藍牙滑鼠等各式具有藍牙功能的裝置,於此不加以限制。The Bluetooth device 100 of the present invention includes: a processing module 11 and a sensing module 12 . The bluetooth device 100 can be, for example, a true wireless bluetooth earphone, a smart watch with bluetooth function, a bluetooth mouse, and other devices with bluetooth function, which are not limited here.

處理模組11包含一藍牙晶片111,處理模組11能接收一電子裝置A所發出的一藍牙封包A1。藍牙晶片111的規格版本例如可以是藍牙4.0以上的版本,於此不加以限制。The processing module 11 includes a bluetooth chip 111, and the processing module 11 can receive a bluetooth packet A1 sent by an electronic device A. The specification version of the Bluetooth chip 111 can be, for example, a version above Bluetooth 4.0, which is not limited here.

感測模組12電性連接處理模組11,感測模組12用以感測藍牙裝置100周圍的光束、聲音及震動中的至少一種,並據以產生相對應的至少一感測資料。具體來說,感測模組12可以是包含一光感測器121、一收音單元122、一加速度傳感器(G-Sensor)123中的至少一個。也就是說,在其中一個實施例中,感測模組12可以是同時包含有光感測器121、收音單元122及加速度傳感器123,而光感測器121、收音單元122及加速度傳感器123能分別產生一筆感測資料1211、1221、1231。在另一個實施例中,感測模組12也可以是僅包含有光感測器121、收音單元122或加速度傳感器123,而感測模組12則僅產生相對應的一筆感測資料。The sensing module 12 is electrically connected to the processing module 11, and the sensing module 12 is used to sense at least one of light beam, sound and vibration around the Bluetooth device 100, and generate at least one corresponding sensing data accordingly. Specifically, the sensing module 12 may include at least one of a light sensor 121 , a radio unit 122 , and an acceleration sensor (G-Sensor) 123 . That is to say, in one of the embodiments, the sensing module 12 may include the light sensor 121, the sound receiving unit 122 and the acceleration sensor 123 at the same time, and the light sensor 121, the sound receiving unit 122 and the acceleration sensor 123 can A piece of sensing data 1211, 1221, 1231 is generated respectively. In another embodiment, the sensing module 12 may also only include the light sensor 121 , the sound receiving unit 122 or the acceleration sensor 123 , and the sensing module 12 only generates a corresponding piece of sensing data.

若感測模組12包含光感測器121,則感測模組12能利用光感測器121感測藍牙裝置100周圍的光束,並據以產生感測資料1211。在實際應用中,光感測器121可以是在感測到特定波長的光束時,才產生相對應的感測資料1221。If the sensing module 12 includes a light sensor 121 , the sensing module 12 can use the light sensor 121 to sense light beams around the Bluetooth device 100 and generate sensing data 1211 accordingly. In practical application, the light sensor 121 can generate the corresponding sensing data 1221 only when it senses the light beam with a specific wavelength.

若感測模組12包含收音單元122,則感測模組12能利用收音單元122感測藍牙裝置100周圍的聲音,並據以產生感測資料1221。在實際應用中,收音單元122可以是在感測到特定頻率的聲波時,才產生相對應的感測資料1221。If the sensing module 12 includes the sound receiving unit 122 , the sensing module 12 can use the sound receiving unit 122 to sense the sound around the Bluetooth device 100 and generate sensing data 1221 accordingly. In practical applications, the sound receiving unit 122 may generate the corresponding sensing data 1221 only when it senses a sound wave of a specific frequency.

若感測模組12包含加速度傳感器123,則感測模組12能利用加速度傳感器123感測藍牙裝置100的姿態,並據以產生感測資料1231。在實際應用中,所述感測資料1231例如可以是利用加速度傳感器123所輸出的X軸重力資料、Y軸重力資料及Z軸重力資料進行計算後所得到的資料。更具體來說,加速度傳感器123所產生的感測資料1231,主要是用來表示藍牙裝置100是否受外力作用而發生姿態改變的情況(例如藍牙裝置100受外力作用而發生震動的情況)。If the sensing module 12 includes an acceleration sensor 123 , the sensing module 12 can use the acceleration sensor 123 to sense the attitude of the Bluetooth device 100 and generate sensing data 1231 accordingly. In practical applications, the sensing data 1231 may be, for example, data obtained by calculating the X-axis gravity data, Y-axis gravity data, and Z-axis gravity data output by the acceleration sensor 123 . More specifically, the sensing data 1231 generated by the acceleration sensor 123 is mainly used to indicate whether the attitude of the Bluetooth device 100 changes due to external force (for example, the Bluetooth device 100 vibrates due to external force).

處理模組11接收藍牙封包A1時,處理模組11能執行一自動配對程序,其包含以下步驟:When the processing module 11 receives the Bluetooth packet A1, the processing module 11 can execute an automatic pairing procedure, which includes the following steps:

一感測步驟:控制感測模組12作動,並等待一預定時間;A sensing step: controlling the sensing module 12 to actuate, and waiting for a predetermined time;

一回應步驟:將感測模組12於預定時間內所產生的感測資料,整合至一回應封包112內,並將回應封包112傳遞至電子裝置A;A response step: integrating the sensing data generated by the sensing module 12 within a predetermined time into a response packet 112, and transmitting the response packet 112 to the electronic device A;

其中,在處理模組11將回應封包112傳遞至電子裝置A後,若處理模組11接收到來自電子裝置A傳遞的一配對要求時,處理模組11將同意所述配對要求,而與電子裝置A進行一配對程序(Pairing)。Wherein, after the processing module 11 transmits the response packet 112 to the electronic device A, if the processing module 11 receives a pairing request from the electronic device A, the processing module 11 will agree to the pairing request, and communicate with the electronic device A. Device A performs a pairing procedure (Pairing).

值得一提的是,藍牙裝置100在與電子裝置A完成藍牙配對後,處理模組11可以是控制藍牙裝置100的一提示模組13作動,據以提示使用者藍牙裝置100已經完成藍牙配對,舉例來說,提示模組13可以是包含有喇叭、發光單元等,當藍牙裝置100與電子裝置A完成藍牙配對後,提示模組13例如可以播放類似「已完成藍牙連線」等聲音,或者,提示模組13可以是發出綠色燈號等。It is worth mentioning that after the bluetooth device 100 completes the bluetooth pairing with the electronic device A, the processing module 11 can control a prompt module 13 of the bluetooth device 100 to activate, thereby reminding the user that the bluetooth device 100 has completed the bluetooth pairing, For example, the prompt module 13 may include a speaker, a light emitting unit, etc. After the Bluetooth device 100 and the electronic device A complete Bluetooth pairing, the prompt module 13 may play a sound such as "Bluetooth connection completed", or , the prompting module 13 may emit a green light signal or the like.

請一併參閱圖8及圖9,藍牙裝置200包含一充電盒201及兩個真無線藍牙耳機202。充電盒201包含一本體2011及一蓋體2012,本體2011內設置有一感測模組12、一本體處理模組2013及一偵測模組2014。感測模組12及偵測模組2014分別與本體處理模組2013電性連接。充電盒201具有兩個充電槽20111,兩個真無線藍牙耳機202能設置於兩個充電槽20111中進行充電。至少一個真無線藍牙耳機202包含一處理模組11及一提示模組13,處理模組11包含一藍牙晶片111,且處理模組與本體處理模組2013電性連接。關於本實施例所述的處理模組11、感測模組12及提示模組13的詳細說明,請參閱前述實施例,於此不再贅述,以下將僅針對本實施例與前述實施例不同之處進行說明。Please refer to FIG. 8 and FIG. 9 together. The Bluetooth device 200 includes a charging box 201 and two true wireless Bluetooth headsets 202 . The charging box 201 includes a body 2011 and a cover 2012 . The body 2011 is provided with a sensing module 12 , a body processing module 2013 and a detection module 2014 . The sensing module 12 and the detection module 2014 are electrically connected to the body processing module 2013 respectively. The charging box 201 has two charging slots 20111, and two true wireless Bluetooth headsets 202 can be set in the two charging slots 20111 for charging. At least one true wireless Bluetooth headset 202 includes a processing module 11 and a prompt module 13 , the processing module 11 includes a Bluetooth chip 111 , and the processing module is electrically connected to the body processing module 2013 . For the detailed description of the processing module 11, the sensing module 12 and the prompting module 13 described in this embodiment, please refer to the foregoing embodiments, and will not repeat them here. The following will only focus on the differences between this embodiment and the foregoing embodiments to explain.

當蓋體2012被操作而相對於本體2011作動時,偵測模組2014將產生一偵測訊號20141,且偵測模組2014將傳遞偵測訊號20141至本體處理模組2013,而本體處理模組2013將控制設置於充電槽20111中的兩個真無線藍牙耳機202進入一配對模式(Pairing)。當真無線藍牙耳機202的處理模組11接收到藍牙封包A1時,處理模組11將通過本體處理模組2013控制感測模組12作動,而感測模組12所產生的感測資料,則能通過本體處理模組2013傳遞至處理模組11。When the cover 2012 is operated to move relative to the body 2011, the detection module 2014 will generate a detection signal 20141, and the detection module 2014 will transmit the detection signal 20141 to the body processing module 2013, and the body processing module The group 2013 will control the two true wireless bluetooth headsets 202 disposed in the charging slot 20111 to enter a pairing mode (Pairing). When the processing module 11 of the true wireless Bluetooth headset 202 receives the Bluetooth packet A1, the processing module 11 will control the operation of the sensing module 12 through the body processing module 2013, and the sensing data generated by the sensing module 12 will be It can be transmitted to the processing module 11 through the main body processing module 2013.

也就是說,使用者欲使藍牙裝置200與執行有本發明的自動藍牙配對方法的電子裝置A自動地進行配對程序時,使用者僅需要把設置有兩個真無線藍牙耳機202的充電盒201的蓋體2012打開,並將設置有兩個真無線藍牙耳機202的充電盒201放到電子裝置A旁邊,如此,執行有本發明的自動藍牙配對方法的電子裝置A將會自動地與兩個真無線藍牙耳機202完成配對。That is to say, when the user wants to automatically pair the Bluetooth device 200 with the electronic device A that implements the automatic Bluetooth pairing method of the present invention, the user only needs to put the charging box 201 with two true wireless Bluetooth headsets 202 Open the cover 2012, and put the charging box 201 with two true wireless Bluetooth headsets 202 next to the electronic device A, so that the electronic device A that executes the automatic Bluetooth pairing method of the present invention will automatically connect with the two The true wireless bluetooth headset 202 is paired.

值得一提的是,通過使感測模組12設置於充電盒201的設計,可以在不增加真無線藍牙耳機202的體積的情況下,使真無線藍牙耳機202可以達到與執行有本發明的自動藍牙配對方法的電子裝置A自動地完成配對的功效。It is worth mentioning that, by setting the sensing module 12 on the charging box 201, the real wireless Bluetooth headset 202 can achieve and implement the functions of the present invention without increasing the volume of the real wireless Bluetooth headset 202. The electronic device A of the automatic bluetooth pairing method automatically completes the pairing function.

請參閱圖10,本發明的電子裝置300包含:一處理模組31及一動作模組32。處理模組31包含藍牙晶片311。處理模組31能發藍牙封包3111至藍牙裝置B。藍牙裝置B能接收藍牙封包3111,並回傳回應封包B1至電子裝置300。Referring to FIG. 10 , the electronic device 300 of the present invention includes: a processing module 31 and an action module 32 . The processing module 31 includes a Bluetooth chip 311 . The processing module 31 can send the Bluetooth packet 3111 to the Bluetooth device B. The Bluetooth device B can receive the Bluetooth packet 3111 and return the response packet B1 to the electronic device 300 .

處理模組31能執行前述本發明的自動藍牙配對方法。關於處理模組31執行前述本發明的自動藍牙配對方法的詳細內容,請參閱前述實施例,於此不再贅述。The processing module 31 can execute the aforementioned automatic Bluetooth pairing method of the present invention. For details of the processing module 31 executing the aforementioned automatic Bluetooth pairing method of the present invention, please refer to the aforementioned embodiments, and details are not repeated here.

在其中一個較佳的實施例中,電子裝置300及藍牙裝置B在完成藍牙配對後,電子裝置300的處理模組31可以是發出一提示資訊3112,以提示使用者已經與藍牙裝置B完成藍牙配對作業,舉例來說,處理模組31可以是控制電子裝置300的顯示器顯示提示資訊3112,而使用者可以於顯示器中觀看到類似「已與藍牙裝置XXX完成藍牙連線」等內容。In one of the preferred embodiments, after the electronic device 300 and the Bluetooth device B complete the Bluetooth pairing, the processing module 31 of the electronic device 300 may send a prompt message 3112 to remind the user that the Bluetooth device B has completed the Bluetooth pairing. For the pairing operation, for example, the processing module 31 can control the display of the electronic device 300 to display a prompt message 3112, and the user can view content such as "the Bluetooth connection with the Bluetooth device XXX has been completed" on the display.

綜上所述,本發明的自動藍牙配對方法、本發明的藍牙裝置及本發明的電子裝置,可以讓已經開啟藍牙功能的電子裝置及已經進入配對模式的藍牙裝置自動地完成配對程序,且於配對過程中,使用者完全不需要對電子裝置或藍牙裝置進行任何操作。To sum up, the automatic Bluetooth pairing method of the present invention, the Bluetooth device of the present invention, and the electronic device of the present invention can allow electronic devices that have turned on the Bluetooth function and Bluetooth devices that have entered the pairing mode to automatically complete the pairing process, and in During the pairing process, the user does not need to perform any operations on the electronic device or the Bluetooth device.

S11、S12、S21、S22、S31、S32、S51~S54:流程步驟 A:電子裝置 A1:藍牙封包 B:藍牙裝置 B1:回應封包 D1:桌面 D2:桌面 MS:藍牙滑鼠 P:智慧型手機 P1:震動馬達 TWS:真無線藍牙耳機 TWS1:感測模組 TWS2:真無線藍牙耳機 TWS21:感測模組 TWS3:真無線藍牙耳機 TWS31:感測模組 W1:智慧型手錶 W11:感測模組 W2:智慧型手錶 100:藍牙裝置 11:處理模組 111:藍牙晶片 112:回應封包 12:感測模組 121:光感測器 1211:感測資料 122:收音單元 1221:感測資料 123:加速度傳感器 1231:感測資料 13:提示模組 200:藍牙裝置 201:充電盒 2011:本體 20111:充電槽 2012:蓋體 2013:本體處理模組 2014:偵測模組 20141:偵測訊號 202:真無線藍牙耳機 300:電子裝置 31:處理模組 311:藍牙晶片 3111:藍牙封包 3112:提示資訊 32:動作模組 S11, S12, S21, S22, S31, S32, S51~S54: process steps A: electronic device A1: Bluetooth package B:Bluetooth device B1: Response packet D1: desktop D2: desktop MS:Bluetooth mouse P: smartphone P1: vibration motor TWS: True Wireless Bluetooth Headset TWS1: Sensing module TWS2: True Wireless Bluetooth Headset TWS21: Sensing module TWS3: True Wireless Bluetooth Headset TWS31: Sensing module W1: smart watch W11: Sensing module W2: smart watch 100:Bluetooth device 11: Processing module 111: Bluetooth chip 112: Response packet 12: Sensing module 121: Light sensor 1211: Sensing data 122: Radio unit 1221: Sensing data 123: Acceleration sensor 1231: Sensing data 13: Prompt module 200:Bluetooth device 201: Charging box 2011: Ontology 20111: charging slot 2012: Cover 2013: Ontology processing module 2014: detection module 20141: Detection signal 202:True wireless bluetooth headset 300: electronic device 31: Processing module 311: Bluetooth chip 3111: Bluetooth packet 3112: prompt information 32: Action Module

圖1至圖3分別為本發明的自動藍牙配對方法的不同實施例的流程示意圖。1 to 3 are schematic flowcharts of different embodiments of the automatic Bluetooth pairing method of the present invention.

圖4為智慧型手機應用本發明的自動藍牙配對方法與真無線藍牙耳機進行藍牙配對的示意圖。4 is a schematic diagram of Bluetooth pairing between a smart phone and a true wireless Bluetooth headset using the automatic Bluetooth pairing method of the present invention.

圖5及圖6為本發明的自動藍牙配對方法的另一實施例的示意圖。5 and 6 are schematic diagrams of another embodiment of the automatic Bluetooth pairing method of the present invention.

圖7及圖8分別為本發明的藍牙裝置的第一及第二實施例的方塊示意圖。7 and 8 are schematic block diagrams of the first and second embodiments of the Bluetooth device of the present invention, respectively.

圖9為本發明的藍牙裝置的第二實施例的示意圖。FIG. 9 is a schematic diagram of a second embodiment of the Bluetooth device of the present invention.

圖10為本發明的電子裝置的方塊示意圖。FIG. 10 is a schematic block diagram of the electronic device of the present invention.

S51、S52、S53、S54:流程步驟 S51, S52, S53, S54: process steps

Claims (10)

一種自動藍牙配對方法,其用以使一電子裝置及與其相鄰或接觸的多個藍牙裝置中之至少一者自動地進行藍芽配對,所述自動藍牙配對方法包含: 一作動步驟:使所述電子裝置執行產生光束、聲音及震動中之至少一者,再依據每一所述藍牙裝置因應所述光束、聲音及震動中之至少一者而使所述電子裝置產生一感測資料;以及 一判斷步驟:使所述電子裝置依據每一所述藍牙裝置的感測資料而選擇是否執行自動藍牙配對。 An automatic bluetooth pairing method, which is used to make an electronic device and at least one of a plurality of bluetooth devices adjacent to or in contact with it automatically perform bluetooth pairing, the automatic bluetooth pairing method includes: An action step: causing the electronic device to execute at least one of light beam, sound and vibration, and then according to each of the bluetooth devices in response to at least one of the light beam, sound and vibration, the electronic device generates a sensing data; and A judging step: enabling the electronic device to select whether to execute automatic Bluetooth pairing according to the sensing data of each of the Bluetooth devices. 一種自動藍牙配對方法,其用以使一電子裝置及與其相鄰或接觸的多個藍牙裝置中之至少一者自動地進行藍芽配對,所述自動藍牙配對方法包含: 一作動步驟:使所述些藍牙裝置中之至少一者執行產生光束、聲音及震動中之至少一者,再依據每一所述藍牙裝置因應所述光束、聲音及震動中之至少一者而使所述電子裝置產生一感測資料;以及 一判斷步驟:使所述電子裝置依據每一所述藍牙裝置的感測資料而選擇是否執行自動藍牙配對。 An automatic bluetooth pairing method, which is used to make an electronic device and at least one of a plurality of bluetooth devices adjacent to or in contact with it automatically perform bluetooth pairing, the automatic bluetooth pairing method includes: An action step: causing at least one of the bluetooth devices to execute at least one of light beams, sounds and vibrations, and then according to each bluetooth device in response to at least one of the light beams, sounds and vibrations causing the electronic device to generate a sensing data; and A judging step: enabling the electronic device to select whether to execute automatic Bluetooth pairing according to the sensing data of each of the Bluetooth devices. 一種自動藍牙配對方法,其用以使一電子裝置及與其相鄰或接觸的多個藍牙裝置中之至少一者自動地進行藍芽配對,所述自動藍牙配對方法包含: 一作動步驟:使所述電子裝置執行產生光束、聲音及震動中之至少一者,再依據每一所述藍牙裝置因應所述光束、聲音及震動中之至少一者而使每一所述藍牙裝置產生一感測資料;以及 一判斷步驟:使所述電子裝置依據每一所述藍牙裝置所傳送的感測資料而選擇是否執行自動藍牙配對。 An automatic bluetooth pairing method, which is used to make an electronic device and at least one of a plurality of bluetooth devices adjacent to or in contact with it automatically perform bluetooth pairing, the automatic bluetooth pairing method includes: An action step: causing the electronic device to execute at least one of light beam, sound and vibration, and then according to each of the bluetooth devices in response to at least one of the light beam, sound and vibration, each of the bluetooth the device generates a sensing data; and A judging step: enabling the electronic device to select whether to perform automatic Bluetooth pairing according to the sensing data transmitted by each of the Bluetooth devices. 如請求項1至3中任一項所述的自動藍牙配對方法,其中,所述感測資料為一感光信號強度、一聲波信號強度或一震動信號強度,且所述判斷步驟還包含: 依據所述感光信號強度、所述聲波信號強度及所述震動信號強度中之至少一者而加權計算取得一藍牙配對值;以及 判斷所述藍牙配對值是否大於一預設藍芽配對值。 The automatic Bluetooth pairing method according to any one of claim items 1 to 3, wherein the sensing data is a photosensitive signal strength, a sound wave signal strength or a vibration signal strength, and the judging step further includes: Obtaining a Bluetooth pairing value through weighted calculation according to at least one of the strength of the photosensitive signal, the strength of the sound wave signal, and the strength of the vibration signal; and It is judged whether the Bluetooth pairing value is greater than a preset Bluetooth pairing value. 如請求項1所述的自動藍牙配對方法,其中,所述作動步驟還包含: 依據所述電子裝置與每一所述藍牙裝置間的一訊號強度,判斷是否大於一預設訊號強度值;其中,所述訊號強度為無線接收訊號強度(Received Signal Strength Indication, RSSI);以及 若當所述訊號強度大於所述預設訊號強度值時,則儲存對應所述訊號強度的藍牙裝置的至少一識別資料於所述電子裝置的一配對清單中。 The automatic Bluetooth pairing method as described in claim 1, wherein the action step also includes: According to a signal strength between the electronic device and each of the Bluetooth devices, determine whether it is greater than a preset signal strength value; wherein, the signal strength is a wireless received signal strength (Received Signal Strength Indication, RSSI); and If the signal strength is greater than the preset signal strength value, at least one identification data of the Bluetooth device corresponding to the signal strength is stored in a pairing list of the electronic device. 一種自動藍牙配對方法,其使一電子裝置與位於所述電子裝置的周圍的多個藍牙裝置中的其中一個自動地進行一配對程序(Pairing),所述自動藍牙配對方法包含: 一發送步驟:使所述電子裝置發送一藍牙封包至多個所述藍牙裝置,並控制所述電子裝置的一動作模組作動,以使所述動作模組執行產生光束、聲音及震動中的至少一種動作; 一封包判斷步驟:使所述電子裝置逐一地判斷各個所述藍牙裝置為了回應所述藍牙封包所回傳一回應封包中,是否包含一感測資料;其中,發出包含所述感測資料的所述回應封包的所述藍牙裝置包含一感測模組,所述感測模組用以感測所述藍牙裝置周圍的光束、聲音及震動中的至少一種,並據以產生相對應的所述感測資料; 若判定所述回應封包中包含所述感測資料,則執行一配對步驟:使所述電子裝置與發出包含所述感測資料的所述藍牙裝置進行所述配對程序。 An automatic bluetooth pairing method, which enables an electronic device to automatically perform a pairing procedure (Pairing) with one of a plurality of bluetooth devices located around the electronic device, the automatic bluetooth pairing method comprising: A sending step: making the electronic device send a bluetooth packet to multiple bluetooth devices, and controlling an action module of the electronic device to operate, so that the action module performs at least one of light beam, sound and vibration an action; A packet judging step: making the electronic device judge one by one whether each bluetooth device returns a response packet in response to the bluetooth packet, whether it contains a sensing data; The bluetooth device that responds to the packet includes a sensing module, the sensing module is used to sense at least one of light beams, sounds and vibrations around the bluetooth device, and accordingly generate the corresponding sensing data; If it is determined that the sensing data is included in the response packet, a pairing step is performed: the electronic device and the Bluetooth device that sends out the sensing data are paired. 一種藍牙裝置,其包含: 一處理模組,其包含一藍牙晶片,所述處理模組能接收一電子裝置所發出的一藍牙封包; 一感測模組,其電性連接所述處理模組,所述感測模組用以感測所述藍牙裝置周圍的光束、聲音及震動中的至少一種,並據以產生相對應的一感測資料; 其中,所述處理模組接收所述藍牙封包時,所述處理模組能執行一自動配對程序,其包含: 控制所述感測模組作動,並等待一預定時間; 將所述感測模組於所述預定時間內所產生的所述感測資料,整合至一回應封包內,並將所述回應封包傳遞至所述電子裝置; 其中,在所述處理模組將所述回應封包傳遞至所述電子裝置後,若所述處理模組接收到來自所述電子裝置傳遞的一配對要求時,所述處理模組將同意所述配對要求,而與所述電子裝置進行一配對程序。 A bluetooth device comprising: A processing module, which includes a bluetooth chip, the processing module can receive a bluetooth packet sent by an electronic device; A sensing module, which is electrically connected to the processing module, and the sensing module is used to sense at least one of the light beam, sound and vibration around the Bluetooth device, and accordingly generate a corresponding sensing data; Wherein, when the processing module receives the Bluetooth packet, the processing module can execute an automatic pairing procedure, which includes: controlling the sensing module to operate, and waiting for a predetermined time; integrating the sensing data generated by the sensing module within the predetermined time into a response packet, and transmitting the response packet to the electronic device; Wherein, after the processing module transmits the response packet to the electronic device, if the processing module receives a pairing request transmitted from the electronic device, the processing module will agree to the A pairing request is received, and a pairing procedure is performed with the electronic device. 如請求項7所述的藍牙裝置,其中,所述感測模組包含一光感測器、一收音單元、一加速度傳感器中的至少一個;若所述感測模組包含所述光感測器,則所述感測模組能利用所述光感測器感測所述藍牙裝置周圍的光束,並據以產生所述感測資料;若所述感測模組包含所述收音單元,則所述感測模組能利用所述收音單元感測所述藍牙裝置周圍的聲音,並據以產生所述感測資料;若所述感測模組包含所述加速度傳感器,則所述感測模組能利用所述加速度傳感器感測所述藍牙裝置的姿態,並據以產生所述感測資料。The Bluetooth device according to claim 7, wherein the sensing module includes at least one of a light sensor, a radio unit, and an acceleration sensor; if the sensing module includes the light sensor device, the sensing module can use the light sensor to sense the light beam around the bluetooth device, and generate the sensing data accordingly; if the sensing module includes the radio unit, Then the sensing module can use the radio unit to sense the sound around the bluetooth device, and generate the sensing data accordingly; if the sensing module includes the acceleration sensor, the sensing The measurement module can use the acceleration sensor to sense the attitude of the bluetooth device, and generate the sensing data accordingly. 如請求項7所述的藍牙裝置,其中,所述藍牙裝置包含一充電盒及兩個真無線藍牙耳機,所述充電盒中具有兩個充電槽,兩個所述真無線藍牙耳機能設置於兩個所述充電槽中進行充電,所述充電盒包含一本體及一蓋體,所述本體內設置有所述感測模組、一本體處理模組及一偵測模組,所述感測模組及所述偵測模組分別與所述本體處理模組電性連接;至少一個所述真無線藍牙耳機包含所述處理模組,且所述處理模組與所述本體處理模組電性連接;當所述蓋體被操作而相對於所述本體作動時,所述偵測模組將產生一偵測訊號,而所述本體的所述本體處理模組將控制設置於所述充電槽中的兩個所述真無線藍牙耳機進入一配對模式;當所述處理模組接收所述藍牙封包時,所述處理模組將通過所述本體處理模組控制所述感測模組作動,而所述感測模組所產生的所述感測資料能通過所述本體處理模組傳遞至所述處理模組。The bluetooth device as described in claim 7, wherein the bluetooth device includes a charging box and two true wireless bluetooth earphones, the charging box has two charging slots, and the two true wireless bluetooth earphones can be set in Charging is carried out in the two charging slots. The charging box includes a body and a cover. The sensing module, a body processing module and a detection module are arranged in the body. The detection module and the detection module are respectively electrically connected to the body processing module; at least one of the true wireless bluetooth earphones includes the processing module, and the processing module is connected to the body processing module Electrically connected; when the cover is operated to move relative to the body, the detection module will generate a detection signal, and the body processing module of the body will control and set the The two true wireless Bluetooth headsets in the charging slot enter a pairing mode; when the processing module receives the Bluetooth packet, the processing module will control the sensing module through the body processing module actuate, and the sensing data generated by the sensing module can be transmitted to the processing module through the body processing module. 一種電子裝置,其包含: 一處理模組,其包含一藍牙晶片,所述處理模組能發出一藍牙封包; 一動作模組,其電性連接所述處理模組,所述處理模組能控制所述動作模組執行產生光束、聲音及震動中的至少一種動作; 其中,所述處理模組能執行如請求項6所述的自動藍牙配對方法。 An electronic device comprising: A processing module, which includes a bluetooth chip, the processing module can send a bluetooth packet; An action module, which is electrically connected to the processing module, and the processing module can control the action module to perform at least one action of generating light beams, sound and vibration; Wherein, the processing module can execute the automatic Bluetooth pairing method as described in claim 6.
TW111105518A 2021-12-17 2022-02-16 Automatic bluetooth pairing method, bluetooth device and electronic device TWI830143B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111556422.3A CN114258001A (en) 2021-12-17 2021-12-17 Automatic Bluetooth pairing method, Bluetooth device and electronic device
CN202111556422.3 2021-12-17

Publications (2)

Publication Number Publication Date
TW202327382A true TW202327382A (en) 2023-07-01
TWI830143B TWI830143B (en) 2024-01-21

Family

ID=80795763

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111105518A TWI830143B (en) 2021-12-17 2022-02-16 Automatic bluetooth pairing method, bluetooth device and electronic device

Country Status (2)

Country Link
CN (1) CN114258001A (en)
TW (1) TWI830143B (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI423176B (en) * 2008-08-29 2014-01-11 Chi Mei Comm Systems Inc Bluetooth theftproof system and method
CN104716994B (en) * 2015-01-09 2018-09-18 络达科技股份有限公司 Magnet controlled blue-tooth device

Also Published As

Publication number Publication date
CN114258001A (en) 2022-03-29
TWI830143B (en) 2024-01-21

Similar Documents

Publication Publication Date Title
US10015836B2 (en) Master device for using connection attribute of electronic accessories connections to facilitate locating an accessory
KR101568335B1 (en) Method and apparatus for providing bluetooth pairing in vehicle
EP1675314B1 (en) Ping Feature for Electronic Devices
CN102710301B (en) The method of attachment of near-field communication
US11419182B2 (en) Electronic device supporting link sharing and method therefor
US20150245164A1 (en) Interaction between wearable devices via broadcasted sensor-related data
CN106936987B (en) Method and device capable of identifying voice source of Bluetooth headset
US7643795B2 (en) Remote-control vibrator
US11497072B2 (en) Electronic device and method for communication connection based on low energy in electronic device
WO2019218370A1 (en) Ai voice interaction method, apparatus and system
CN104581993B (en) It is wirelessly connected the method and terminal of the method established, data transmission
CN111901788A (en) Bluetooth connection method, device, equipment and storage medium
US20210203454A1 (en) Method for transceiving data in bluetooth network environment and electronic device thereof
TW202327382A (en) Automatic bluetooth pairing method, bluetooth device and electronic device
CN107402628A (en) Information processor, information processing system and information processing method
JP6341649B2 (en) Wireless communication system, wireless communication apparatus, and program
US20230269801A1 (en) Methods and Systems for Pairing Interactive Objects and User Devices
KR20220105475A (en) Electronic device and method for controlling remote lock of external electronic device based on bluetooth
CN113038326B (en) Data interaction method, device and equipment based on TWS earphone and readable storage medium
US20230156113A1 (en) Method and electronic device for controlling operation
KR20210039818A (en) Electronic device for transmitting data packet in bluetooth network environment and method thereof
JP2010087889A (en) Sound receiver and cellular phone
KR20220101866A (en) Electronic device switching communication connection according to noise environment and method for controlling thereof
JP2024502320A (en) Method and device for managing wireless connections of electronic devices
CN109995482A (en) Data transmission method, device, equipment and computer readable storage medium