530467 五、發明說明(1) 【發明技術領域】 本發明係有關一種可設定之藍芽裝置聯繫異常警示方 法,特別係指一種以藍芽裝置中之中央處理器以HC I指令 周期性檢查連結品質數值且與可設定比較值比較而能得知 聯繫異常之方法。 【發明背景】 發展始於1 9 9 8年初而目前由藍芽特殊利益小組 (Bluetooth Special Interest Group)推廣之藍芽技術 是一種低功率之無線電技術。 其將來發展可取代用來連接個人電腦、印表機、掌上型電 腦和行動電話等眾多手提設備之電纜線,以將這些設備運 用空間清爽化,且可減少繁雜的連線過程。 一 ,古—般藍芽裝置於聯繫*常時並無警示以^使用者, |者就必須花費大量時間和精力;= 此時使用 早得知聯繫異常會產生,使用者就。而如果能及 聯繫異常產生。 就此儘速採取措施以避免 述 發明概 立聯繫後,各方藍芽裝置之中央處^ 一另一藍芽裝 夭處理器以藍芽標準之530467 V. Description of the invention (1) [Technical Field of the Invention] The present invention relates to a settable bluetooth device contact abnormality warning method, and particularly refers to a method in which the central processing unit in the bluetooth device periodically checks the connection with the HC I instruction. The method of comparing the quality value and the settable comparison value to know the abnormality of the connection. [Background of the Invention] Bluetooth technology, which started in early 1988 and is currently being promoted by the Bluetooth Special Interest Group, is a low-power radio technology. Its future development can replace the cables used to connect many portable devices such as personal computers, printers, palmtop computers, and mobile phones, in order to refresh the operating space of these devices and reduce the complicated connection process. First, the old-fashioned Bluetooth device does not always alert the user to contact the user, so the user must spend a lot of time and energy; = use at this time I knew that an abnormal connection would occur, and the user would. And if it can and the contact is abnormal. As soon as possible to take measures to avoid the above-mentioned inventions, the central place of the Bluetooth device of each party ^ another Bluetooth-equipped processor based on the Bluetooth standard
因而,本發明之主要目的係提供一錄了外6 置聯繫異常警示方法,俾使一藍芽^可5又疋之藍 530467 I五、發明說明(2) (Host Controller Interface)指令周期性檢查連結 (Link)品質數值。 | 本發明之次一目的係提供一種可設定之藍芽裝置聯繫 i異常警示方法,當所檢查出之品質數值低於比較值時,藍 i芽裝置之中央處理器即透過警示元件發出警示訊號(如振 |動、響鈴或螢幕顯示)以提醒藍芽裝置之使用者。 本發明之又一目的係提供一種可設定之藍芽裝置聯繫 異常警示方法,期以警示訊號提醒使用者,使用者即可適 時處理(如拉近兩裝置之距離),以降低聯繫中斷之機 率〇 本發明之又一目的係提供一種可設定之藍芽裝置聯繫 異常警示方法,當品質數值恢復高於比較值時,裝置之中 | 央處理器即停止發出警示。 本發明之又一目的係提供一種可設定之藍芽裝置聯繫 異常警示方法,允許使用者於兩個已建立聯繫之藍芽裝置 間調整距離,並以當時距離所讀取之數次品質數值平均值 做為比較值,以達到適合不同使用者之聯繫異常警示需 求,而使不同使用者可有不同距離之聯繫異常警示設定。 本發明之這些目的和其它目的、特點和優點藉由以下 說明配合圖式對熟悉該項技藝人士將更清晰明瞭。 【發明詳細說明】 首先,請參閱第1圖。第1圖係兩藍芽裝置建立聯‘繫後 丨檢查連結品質數值之訊息流程圖。由圖中可知,在兩藍芽 530467 五、發明說明(3) 裝置要建立聯繫關係時,其中一藍芽裝置會由中央處理單 元透過藍芽模組發出一詢問命令(步驟1 1)到另一藍芽裝 置之藍芽模組中,該另一藍芽裝置之中央處理單元即會進 行詢問掃描(步驟1 2),當發出詢問之藍芽裝置收到由另 一藍芽裝置之回答詢問後,藍芽模組會送回一收到回答之 訊號到中央處理單元(步驟1 3),該中央處理單元即下一 建立聯繫指令至藍芽模組(步驟1 4),藍芽模組於接到指 令後,以已建立聯繫告知中央處理單元(步驟1 5)。 兩藍芽裝置在建立聯繫之後,任一方藍芽裝置之中央處理 單元周期性發出 HCI( Host Controller Interface)指令 至藍芽模組檢查連結(Link)品質數值(步驟16),藍芽 模組接到指令後即回報中央處理單元連結品質數值(步驟 1 7)。周期性地重複步驟1 6和1 7就可隨時得知品質數值。 上述之HC I係指藍芽裝置控制器與藍芽晶片模組之間用以 傳遞資料或指令之介面,而HC I指令則是藍芽裝置控制器 用以控制藍芽晶片模組之指令,而這些均為熟習該項技藝 人士所熟知,故在此不多贅述。 再請參閱第2圖,第2圖係軟體控制流程圖。由圖中顯 示在藍芽裝置開機後(步驟20),等待與另一藍芽裝置建 立聯繫(步驟21),檢查是否與另一藍芽裝置建立聯繫 (步驟2 2),若還未建立聯繫的話,則回到步驟2 1,繼讀 做聯繫建立之確認;若確認與另一藍芽裝置建立聯繫,則 將警示旗標設定為0(此狀況為聯繫建立而未有異常產生 )(步驟2 3),此時即可啟動檢查連結品質定時_ (步驟Therefore, the main purpose of the present invention is to provide a warning method for recording external 6-connection abnormalities, in order to make a Bluetooth ^ Ke 5 and Blue 530467 I. 5. Description of the invention (2) (Host Controller Interface) instruction periodic inspection Link quality value. The second purpose of the present invention is to provide a settable alarm method for the Bluetooth device to contact i abnormality. When the detected quality value is lower than the comparison value, the central processor of the Bluetooth device sends an alarm signal through the alarm element. (Such as vibrate, ring, or display) to remind users of Bluetooth devices. Another object of the present invention is to provide a configurable Bluetooth device connection abnormality warning method, with a warning signal to remind the user that the user can handle it in a timely manner (such as reducing the distance between the two devices) to reduce the probability of the connection being interrupted 〇 Another object of the present invention is to provide a settable bluetooth device connection abnormality warning method. When the quality value returns to a higher value, the device in the central processing unit stops issuing the warning. Another object of the present invention is to provide a settable Bluetooth device connection abnormality warning method, which allows a user to adjust the distance between two Bluetooth devices that have established a connection, and averages the quality values read several times at that time. The value is used as a comparison value to meet the needs of contact anomaly warning for different users, so that different users can have contact anomaly warning settings at different distances. These and other objects, features, and advantages of the present invention will become clearer to those skilled in the art through the following description in conjunction with the drawings. [Detailed description of the invention] First, please refer to FIG. 1. Figure 1 is a message flow chart for checking the quality of the link after the two Bluetooth devices are connected. It can be seen from the figure that when two Bluetooth 530467 devices are used to establish a connection relationship, one of the Bluetooth devices will issue a query command (step 1 1) from the central processing unit to the other through the Bluetooth module. In the Bluetooth module of a Bluetooth device, the central processing unit of the other Bluetooth device will perform an inquiry scan (step 12), and when the Bluetooth device sending the inquiry receives an answer from another Bluetooth device, After that, the Bluetooth module will send back a signal to the central processing unit (step 13), the central processing unit is the next connection establishment instruction to the bluetooth module (step 14), the bluetooth module After receiving the instruction, the central processing unit is notified with the established contact (step 15). After the two Bluetooth devices are connected, the central processing unit of either Bluetooth device periodically sends an HCI (Host Controller Interface) command to the Bluetooth module to check the Link quality value (step 16). When the command is received, the central processing unit link quality value is reported (step 17). Repeat steps 16 and 17 periodically to get the quality value at any time. The above HC I refers to the interface used to transfer data or instructions between the Bluetooth device controller and the Bluetooth chip module, and the HC I instruction is the instruction used by the Bluetooth device controller to control the Bluetooth chip module, and These are well known to those skilled in the art, so I won't go into details here. Please refer to Figure 2 again, which is a software control flow chart. As shown in the figure, after the Bluetooth device is turned on (step 20), wait to establish a connection with another Bluetooth device (step 21), and check whether a connection is established with another Bluetooth device (step 2 2). If it is, then go back to step 21 and continue reading to confirm the establishment of the connection; if it is confirmed that the connection is established with another Bluetooth device, set the warning flag to 0 (this situation is the establishment of the connection without any abnormality) (step 2 3), you can start to check the link quality timing _ (step
第6頁 530467 I五、發明說明(4) | 24)後進入等待事件狀態(步驟25)。 !在上ί之?待事件(步驟以)之後,可有下列四種肤 處理器會判斷是否低於比較值,2匕驟’此時中央 I低於比較值(即表示未有異常彦=、a。右品質數值未 即再確認警示旗標是否為」、(亦g θ或異二已排,)’此時 中)(步驟291),若否的否吕不訊號仍在發出 中,則直接進入等待事件(步驟即表*裝置並未在警示 (即先前有異常產生而目前〔排二94);右警不旗標為1 〇(步驟292),停止警示除)\則將警示旗標設回 件狀態(步驟294)。在上述^ 293)後直接進入等待事 數值低於比較值,聯繫異常心驟二,/判定連結品質 (步驟2 95)並將警示旗標設定為丨(步驟29 6)而進入 待事件狀態(步驟2 9 7)。 第二種狀況即是檢查連結品質定時器時間到(步驟2 7 ),此時必須重置定時器(步驟271),再送出檢查連結 品質指令(步驟272)後進入等待事件狀態(步驟273)。 此等步驟可達周期性檢查連結品質數值之效果。 第三種狀況係有關比較值之設定。首先,使用者調整 兩藍芽裝置之距離(步驟251),其中該距離可為調整希 丨望警示之最遠距離,而後讀取數次連結品質數值平均值做 為比較值(步驟2 5 2),接著,判斷上面步驟所得之比較 值是否高於預設值(步驟253),此預設值可為預設之最 大值。若高於預設值,則以預設值為比較值(步驟2 5 6) 530467 五、發明說明(5) 後進入等待事件狀態(步驟2 5 5);若該比較值未高於預 設值,則將先前儲存之比較值更新成上述所得之比較值 (步驟2 54)後進入等待事件狀態(步驟255)而完成整個 比較值之設定。 最後狀況係藍芽裝置要被中斷聯繫(步驟28)時,將 定時器停止(步驟281)而進入尋求與另一藍芽裝置建立 聯繫之等待中(步驟282)。 最後,請參閱第3圖。第3圖係兩藍芽裝置建立聯繫時 之示意圖。由圖中可知一般藍芽裝置3 0包含藍芽模組3卜 記憶體3 2和中央處理器3 3,其中藍芽模組3 1又包含射頻單 元 311( RF unit)和基頻單元 312( Baseband unit)且外 接一天線35。兩藍芽裝置要建立聯繫時節透過中央處理器 3 3、藍芽模組3 1和天線3 5間之連線以發出和接收指令而建 立聯繫關係,此為熟習該項技藝人士所熟知。故在此不多 加贅述。而本發明則增設了如響鈴3 4 1和振動馬達3 4 2等之 警示器34,藉由上面所述之方法,可啟動警示器而達到藍 芽裝置聯繫異常之警示效果。 上述之各種方法所採用之邏輯觀念及其配合電路皆為 熟習該項技藝人士所能輕易了解並加以實施,亦非本發明 之重點,故在此不多贅述。 本發明所揭示之方法可周期性檢查連結品質數值,於藍芽 裝置聯繫異常時可發出警示訊號提醒使用者,以降低藍芽 裝置間聯繫中斷之機率,頗具功效,且以HC I指令周期性 檢查連結品質數值,未發現具相同用途之發明。故本發明Page 6 530467 I V. Description of the invention (4) | 24) After entering the wait event state (step 25). ! On til it? After the event (steps), the following four types of skin processors can determine whether it is lower than the comparison value. At this time, the central I is lower than the comparison value (that is, there is no abnormality == a. Right quality value). If not, then confirm whether the warning flag is "" (also g θ or different two have been arranged,) 'At this time) (step 291), if no, the Lu Bu signal is still being issued, then directly enter the waiting event ( The steps are shown in the table * The device is not in the alert (that is, an abnormality has occurred previously and is currently in the second row (94); the right alert is not flagged as 1 0 (step 292), and the alert is stopped) \ The alert flag is set back to the status (Step 294). After the above ^ 293) directly enter the wait for the value is lower than the comparison value, contact abnormal heart step two, / determine the quality of the connection (step 2 95) and set the warning flag to 丨 (step 29 6) and enter the waiting state ( Step 2 9 7). The second condition is that the time for checking the connection quality timer has expired (step 27). At this time, the timer must be reset (step 271), and then the command for checking the connection quality (step 272) is sent to enter the waiting event state (step 273). . These steps have the effect of periodically checking the value of the link quality. The third condition is the setting of the comparison value. First, the user adjusts the distance between the two Bluetooth devices (step 251), where the distance can be adjusted to the longest distance of the hope warning, and then reads the average value of the connection quality several times as a comparison value (step 2 5 2 ), Then, determine whether the comparison value obtained in the above step is higher than a preset value (step 253), and the preset value may be a preset maximum value. If it is higher than the preset value, the preset value is used as the comparison value (step 2 5 6) 530467 5. After the invention description (5) enters the waiting event state (step 2 5 5); if the comparison value is not higher than the preset value Value, the previously stored comparison value is updated to the above-obtained comparison value (step 2 54), and a wait event state (step 255) is entered to complete the setting of the entire comparison value. The last condition is that when the Bluetooth device is to be disconnected (step 28), the timer is stopped (step 281) and a waiting is made to establish contact with another Bluetooth device (step 282). Finally, see Figure 3. Figure 3 is a schematic diagram when two Bluetooth devices are connected. It can be seen from the figure that the general Bluetooth device 30 includes a Bluetooth module 3, a memory 32, and a central processing unit 33. The Bluetooth module 31 includes a radio frequency unit 311 (RF unit) and a base frequency unit 312 ( Baseband unit) and an external antenna 35 is connected. When the two Bluetooth devices are to establish a connection season, a connection relationship is established through the connection between the central processing unit 3 3, the Bluetooth module 3 1 and the antenna 35 to issue and receive instructions, which is well known to those skilled in the art. So I won't go into details here. In the present invention, alarms 34 such as a bell 3 4 1 and a vibration motor 3 4 2 are added. By the method described above, the alarm can be activated to achieve the alarm effect of abnormal Bluetooth connection. The logic concepts and matching circuits used in the above methods are easily understood and implemented by those skilled in the art, and they are not the focus of the present invention, so they are not repeated here. The method disclosed in the present invention can periodically check the connection quality value, and can send a warning signal to remind the user when the Bluetooth device is abnormally connected, so as to reduce the probability of interruption of the connection between the Bluetooth devices. Checking the connection quality value, no invention with the same purpose was found. So this invention
第8頁 530467 五、發明說明(6) 確具產業利用性、新穎性與進步性,爰提出發明專利申 請。 惟以上所述者,僅為本發明之一較佳實施例而已,並非用 來限定本發明實施之範圍。故即凡依本發明申請專利範圍 所述之形狀、構造、特徵及精神所為之均等變化與修飾, 均應包括於本發明之申請專利範圍内。Page 8 530467 V. Description of the invention (6) It does have industrial applicability, novelty and advancement, so I filed an application for an invention patent. However, the above is only one preferred embodiment of the present invention, and is not intended to limit the scope of implementation of the present invention. Therefore, all equivalent changes and modifications in the shape, structure, characteristics and spirit described in the scope of patent application of the present invention shall be included in the scope of patent application of the present invention.
第9頁 530467 圖式簡單說明 【圖式簡單說明】 第1圖係一流程圖,顯示兩藍芽裝置建立聯繫後檢查連結 品質數值之訊息步驟; 第2圖係一流程圖,顯示依據本發明之一藍芽裝置聯繫異 常之警示控制步驟;以及 第3圖係一電路方塊示意圖.,顯示依據本發明之一藍芽裝 置之構成部件及其間之連結關係。 【圖號簡單說明】 30藍芽裝置 3 1藍芽模組 3 11射頻單元 3 1 2基頻單元 3 2記憶體 3 3中央處理器 34警示器 341響鈴 3 4 2振動馬達 3 5天線Page 530467 Brief description of the drawings [Simplified description of the drawings] Figure 1 is a flowchart showing the steps of checking the quality of the connection after the two Bluetooth devices are connected; Figure 2 is a flowchart showing the method according to the present invention One of the Bluetooth device's alarm abnormality control steps; and FIG. 3 is a schematic diagram of a circuit block, showing the components of a Bluetooth device according to the present invention and the connection relationship between them. [Simplified description of drawing number] 30 Bluetooth device 3 1 Bluetooth module 3 11 RF unit 3 1 2 Baseband unit 3 2 Memory 3 3 Central processing unit 34 Alarm 341 Bell 3 4 2 Vibration motor 3 5 Antenna
第10頁Page 10