TWI460610B - Method of pairing wireless devices - Google Patents
Method of pairing wireless devices Download PDFInfo
- Publication number
- TWI460610B TWI460610B TW101105837A TW101105837A TWI460610B TW I460610 B TWI460610 B TW I460610B TW 101105837 A TW101105837 A TW 101105837A TW 101105837 A TW101105837 A TW 101105837A TW I460610 B TWI460610 B TW I460610B
- Authority
- TW
- Taiwan
- Prior art keywords
- wireless device
- pairing
- signal
- wireless
- transceiver
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims description 64
- 230000005540 biological transmission Effects 0.000 claims description 173
- 238000004891 communication Methods 0.000 claims description 93
- 230000004044 response Effects 0.000 claims description 60
- 230000001960 triggered effect Effects 0.000 claims description 33
- 230000008569 process Effects 0.000 description 17
- 241000699666 Mus <mouse, genus> Species 0.000 description 7
- 230000002457 bidirectional effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000013011 mating Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000007257 malfunction Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Description
本發明係關於一種無線裝置配對的方法,特別是關於一種無線裝置可隨時配對的方法。The present invention relates to a method of pairing wireless devices, and more particularly to a method in which a wireless device can be paired at any time.
無線通訊應用範圍已趨廣泛。舉例而言,短距離內電腦主機與週邊設備(如滑鼠、耳機、麥克風及印表機等)之間的無線通連或無線裝置之間的檔案傳輸等。目前許多無線裝置例如鍵盤、滑鼠、耳機、喇叭、印表機、行動電腦、行動電話、傳真機,甚至數位照相機等,都利用無線射頻作為與電腦主機配對通連的通信協定,其便利性自毋庸置疑。The range of wireless communication applications has become widespread. For example, a wireless communication between a host computer and peripheral devices (such as a mouse, headphones, a microphone, and a printer) or a file transfer between wireless devices within a short distance. At present, many wireless devices such as keyboards, mice, headphones, speakers, printers, mobile computers, mobile phones, fax machines, and even digital cameras use wireless radio as a communication protocol for pairing with a computer host. There is no doubt about it.
然而,無線裝置在使用上仍有令人深感不便之處,以一個無線鍵盤和一部電腦主機配對為例,其使用前必須先進行配對,電腦主機需先安裝驅動無線鍵盤的應用程式,使電腦主機能搜尋到無線鍵盤,使用者在啟動應用程式來進行電腦主機與無線鍵盤的配對。使用者往往花費許多時間來安裝驅動無線鍵盤的應用程式,或是設定驅動無線裝置的程式。因此,無線鍵盤的電腦主機配對通連往往增加使用者操作的便利性,或是增加使用者操作的流程與步驟。However, there is still a deep inconvenience in the use of the wireless device. For example, a wireless keyboard and a computer host pairing must be paired before use, and the host computer needs to install an application that drives the wireless keyboard. To enable the host computer to search for the wireless keyboard, the user launches the application to pair the computer host with the wireless keyboard. Users often spend a lot of time installing applications that drive wireless keyboards or setting up programs that drive wireless devices. Therefore, the computer host pairing connection of the wireless keyboard often increases the convenience of the user operation, or increases the flow and steps of the user operation.
其次,使用者更可以用一收發器來與一無線鍵盤配對。使用者需先將收發器耦接電腦主機,並於一預設時間內按壓收發器的配對鈕與無線鍵盤的配對鈕,使收發器能搜尋到無線鍵盤,使用者再透過電腦主機選擇無線鍵盤,隨即完成配對設定。因此,使用者往往超過一預設時間內按壓無線鍵盤與收發器等兩端的配對鈕;或是收發器超過一預設時間不能與無線鍵盤配對通連;或是增加使用者多次按壓配對鈕的操作步驟。Second, the user can use a transceiver to pair with a wireless keyboard. The user needs to first couple the transceiver to the host computer, and press the pairing button of the transceiver and the pairing button of the wireless keyboard for a predetermined time, so that the transceiver can search for the wireless keyboard, and the user selects the wireless keyboard through the host computer. , then complete the pairing settings. Therefore, the user often presses the pairing button on both ends of the wireless keyboard and the transceiver for more than a predetermined time; or the transceiver cannot be paired with the wireless keyboard for more than a preset time; or the user presses the pairing button multiple times. The steps.
再者,配對鈕為避免使用者於操作中誤觸,設置於無線裝置與收發器等兩端的配對鈕亦日趨變小。因此,使用者要按壓收發器與無線裝置等兩端的配對鈕,將造成不便性的按壓配對鈕的步驟。Moreover, in order to prevent the user from accidentally touching during the operation, the pairing button provided at both ends of the wireless device and the transceiver is also becoming smaller. Therefore, the user has to press the pairing button at both ends of the transceiver and the wireless device, which will cause an inconvenient step of pressing the pairing button.
基於上述,使用者安裝驅動無線裝置的應用程式;或是設定驅動無線裝置的程式來與無線裝置配對通連;或是使用者按壓收發器與無線裝置等兩端的配對鈕,已無法滿足使用者的需求。是以,無線裝置之間如能不透過應用程式,並可根據使用者的需求隨時建立無線裝置之間的配對通連,將提升無線裝置之間配對使用的便利性。這是值得研究的方向。Based on the above, the user installs an application that drives the wireless device; or sets a program that drives the wireless device to be paired with the wireless device; or the user presses the pairing button at both ends of the transceiver and the wireless device, and the user cannot satisfy the user. Demand. Therefore, if the wireless devices are not able to pass the application, and the pairing communication between the wireless devices can be established at any time according to the needs of the user, the convenience of pairing between the wireless devices can be improved. This is the direction worth studying.
有鑑於此,本發明提供一種無線裝置配對的方法,以使無線裝置之間不透過應用程式,並可根據使用者的需求隨時建立無線裝置之間的配對通連。In view of the above, the present invention provides a method for pairing wireless devices such that wireless devices do not pass through an application, and pairing communication between wireless devices can be established at any time according to user needs.
本發明提出一種無線裝置配對的方法,該方法包括下列步驟:判斷一第一無線裝置是否被觸發,若是,則第一無線裝置以預設之一配對位址,建立一配對傳輸通道,並經由配對傳輸通道以一第一射頻傳輸強度,傳輸一第一配對信號至一第二無線裝置;判斷第二無線裝置是否接收第一配對信號,若是,則第二無線裝置由配對傳輸通道傳輸一第一響應信號給第一無線裝置,第二無線裝置開啟一配對模式,並產生一第一通信位址,第一通信位址被置入第二無線裝置的一先進先出暫存器,且第二無線裝置設定一第二射頻傳輸強度;判斷第一無線裝置是否再次被觸發,若是,則第一無線裝置以第一射頻傳輸強度及配對傳輸通道,傳輸第一配對信號至第二無線裝置;以及判斷第二無線裝置是否再次接收第一配對信號,若是,則第二無線裝置以第二射頻傳輸強度及配對傳輸通道傳輸一第二響應信號給第一無線裝置,第二無線裝置儲存第一通信位址,並離開配對模式。The present invention provides a method for pairing wireless devices, the method comprising the steps of: determining whether a first wireless device is triggered, and if so, the first wireless device establishes a paired transmission channel by using a preset pairing address, and The paired transmission channel transmits a first pairing signal to a second wireless device at a first RF transmission strength; determines whether the second wireless device receives the first pairing signal, and if so, transmits the second wireless device by the paired transmission channel a response signal is sent to the first wireless device, the second wireless device turns on a pairing mode, and generates a first communication address, the first communication address is placed in a first in first out register of the second wireless device, and the first The second wireless device sets a second radio frequency transmission strength; determines whether the first wireless device is triggered again, and if so, the first wireless device transmits the first pairing signal to the second wireless device by using the first radio frequency transmission strength and the paired transmission channel; And determining whether the second wireless device receives the first pairing signal again, and if so, the second wireless device transmits the second radio frequency strength Pairing a second transmission channel, a first response signal to the wireless device, the second wireless communication means for storing a first address, and exit pairing mode.
在本發明一實施例中,上述第一射頻傳輸強度為第一無線裝置的最小射頻傳輸強度,第二射頻傳輸強度為第二無線裝置的最小射頻傳輸強度。In an embodiment of the invention, the first radio frequency transmission strength is a minimum radio frequency transmission strength of the first wireless device, and the second radio frequency transmission strength is a minimum radio frequency transmission strength of the second wireless device.
在本發明一實施例中,上述於判斷第一無線裝置是否被觸發之步驟中,更包括下列步驟:若第一無線裝置未接收第二無線裝置的第一響應信號,則判斷第一無線裝置傳輸第一配對信號的次數是否達到一重試上限值;當第一無線裝置傳輸第一配對信號的次數未達到重試上限值時,則第一無線裝置重新傳輸第一配對信號至第二無線裝置;以及當第一無線裝置傳輸第一配對信號的次數達到重試上限值時,則第一無線裝置暫停傳輸第一配對信號至第二無線裝置,第一無線裝置也會將配對位址回復為一預設資料位址,且第一無線裝置等待被觸發,其中預設資料位址為一傳輸通道中多個資料位址的其中之一。In an embodiment of the present invention, the step of determining whether the first wireless device is triggered further includes the step of: determining, when the first wireless device does not receive the first response signal of the second wireless device, determining the first wireless device Whether the number of times the first pairing signal is transmitted reaches a retry upper limit value; when the number of times the first wireless device transmits the first pairing signal does not reach the retry upper limit value, the first wireless device retransmits the first pairing signal to the second a wireless device; and when the number of times the first wireless device transmits the first pairing signal reaches the retry upper limit value, the first wireless device suspends transmitting the first pairing signal to the second wireless device, and the first wireless device also pairs the bit The address is returned to a preset data address, and the first wireless device waits to be triggered, wherein the preset data address is one of a plurality of data addresses in a transmission channel.
在本發明一實施例中,上述於判斷第二無線裝置是否接收第一配對信號之步驟中,更包括下列步驟:第二無線裝置已預先建立配對傳輸通道;若第一無線裝置收到第二無線裝置的第一響應信號,則第一無線裝置將配對位址回復為一預設資料位址,且第一無線裝置等待再次被觸發;判斷第二無線裝置是否完整接收第一配對信號;若第二無線裝置已完整接收第一配對信號,則判斷第一配對信號是否傳輸自配對傳輸通道中的配對位址;其中當判斷第一配對信號是傳輸自配對傳輸通道中的配對位址時,則表示第二無線裝置已接收第一配對信號;以及若第二無線裝置已接收第一配對信號,將備妥一回覆封包,回覆封包包括第一通信位址,並將回覆封包置入第二無線裝置的先進先出暫存器。In an embodiment of the present invention, the step of determining whether the second wireless device receives the first pairing signal further includes the following steps: the second wireless device has previously established a paired transmission channel; and if the first wireless device receives the second The first response signal of the wireless device, the first wireless device returns the paired address to a preset data address, and the first wireless device waits to be triggered again; determining whether the second wireless device completely receives the first pairing signal; After the second wireless device has completely received the first pairing signal, it is determined whether the first pairing signal is transmitted from the pairing address in the paired transmission channel; wherein when determining that the first pairing signal is transmitted in the paired address in the paired transmission channel, Indicates that the second wireless device has received the first pairing signal; and if the second wireless device has received the first pairing signal, the packet is ready to be re-packed, the reply packet includes the first communication address, and the reply packet is placed in the second A first-in, first-out register for wireless devices.
在本發明一實施例中,上述於判斷第二無線裝置是否再次接收第一配對信號之步驟中,更包括下列步驟:若第一無線裝置收到第二無線裝置的第二響應信號,則第一無線裝置也會收到第二無線裝置先前置入先進先出暫存器的回覆封包;以及第一無線裝置會由回覆封包取出第一通信位址,並儲存第一通信位址,並以第一通信位址建立一第一傳輸通道。In an embodiment of the present invention, the step of determining whether the second wireless device receives the first pairing signal again includes the following steps: if the first wireless device receives the second response signal of the second wireless device, A wireless device also receives a reply packet previously placed in the FIFO register by the second wireless device; and the first wireless device retrieves the first communication address by the reply packet and stores the first communication address, and stores the first communication address, and The first communication address establishes a first transmission channel.
在本發明一實施例中,上述第一無線裝置具有一配對鈕,當配對鈕被按壓時,第一無線裝置被觸發且對應產生第一配對信號,並於第一無線裝置接收第一響應信號後,配對鈕再次被按壓時,第一無線裝置再次被觸發來產生第一配對信號。In an embodiment of the invention, the first wireless device has a pairing button. When the pairing button is pressed, the first wireless device is triggered and correspondingly generates a first pairing signal, and receives a first response signal at the first wireless device. Thereafter, when the pairing button is pressed again, the first wireless device is triggered again to generate the first pairing signal.
在本發明一實施例中,上述第一無線裝置具有一配對鈕,當配對鈕被按壓時,第一無線裝置被觸發且對應產生第一配對信號,並於第一無線裝置接收第一響應信號後,第一無線裝置自動再次被觸發來產生第一配對信號。In an embodiment of the invention, the first wireless device has a pairing button. When the pairing button is pressed, the first wireless device is triggered and correspondingly generates a first pairing signal, and receives a first response signal at the first wireless device. Thereafter, the first wireless device is automatically triggered again to generate a first pairing signal.
綜上所述,本發明之無線裝置配對的方法係透過使用者可隨時按壓第一無線裝置的配對鈕,來使第一無線裝置以第一射頻傳輸強度及配對傳輸通道,傳輸配對信號給第二無線裝置,由第二無線裝置選擇並決定通信位址。當第一無線裝置再次被觸發產生配對信號並傳輸給第二無線裝置,第一無線裝置將自第二響應信號的回覆封包取得通信位址,藉由此方法增加無線裝置之間可隨時且快速建立配對通連的機會。In summary, the wireless device pairing method of the present invention allows the first wireless device to transmit the pairing signal to the first radio frequency transmission strength and the pairing transmission channel by the user pressing the pairing button of the first wireless device at any time. A wireless device that selects and determines a communication address by the second wireless device. When the first wireless device is triggered to generate the pairing signal and transmitted to the second wireless device, the first wireless device obtains the communication address from the reply packet of the second response signal, thereby increasing the time between the wireless devices and the fast Establish opportunities for pairing connections.
為讓本發明之上述和其他目的、特徵和優點能更明顯易懂,下文特舉本發明之較佳實施例,並配合所附圖式,作詳細說明如下。The above and other objects, features and advantages of the present invention will become more <RTIgt;
為了充分瞭解本發明,於下文將例舉實施例並配合附圖作詳細說明,且其並非用以限定本發明。The invention is described in detail below with reference to the accompanying drawings,
[本發明一示範實施例之無線裝置配對的方法][Method of pairing wireless devices according to an exemplary embodiment of the present invention]
請參見圖1,圖1為根據本發明一實施例之無線裝置系統之架構示意圖。如圖1所示,無線裝置系統1包括無線裝置20與無線裝置10,其中無線裝置20具有收發器202,且無線裝置10具有收發器102以及配對鈕104,無線裝置20中的收發器202與無線裝置10中的收發器102係透過無線傳輸技術以互相傳輸信號。在此,雖然圖1繪示了無線裝置20是一台電腦主機且無線裝置10是一個無線鍵盤,但實際上無線裝置20也可以是筆電、行動電話、平板電腦或其他適當的運算設備,而無線裝置10也可以是無線滑鼠、無線耳機、無線喇叭、印表機或者其他適當的無線裝置,本發明並不以此為限。Referring to FIG. 1, FIG. 1 is a schematic structural diagram of a wireless device system according to an embodiment of the invention. As shown in FIG. 1, the wireless device system 1 includes a wireless device 20 and a wireless device 10, wherein the wireless device 20 has a transceiver 202, and the wireless device 10 has a transceiver 102 and a pairing button 104, and the transceiver 202 in the wireless device 20 The transceivers 102 in the wireless device 10 transmit signals to each other via wireless transmission techniques. Here, although FIG. 1 illustrates that the wireless device 20 is a computer host and the wireless device 10 is a wireless keyboard, the wireless device 20 may actually be a notebook, a mobile phone, a tablet computer, or other suitable computing device. The wireless device 10 can also be a wireless mouse, a wireless headset, a wireless speaker, a printer, or other suitable wireless device, and the invention is not limited thereto.
值得注意的是,在其他實施例中,無線裝置20更可以與多個無線裝置10之間建立配對通連關係,使每一個無線裝置10分別使用無線射頻中的每一資料位址來與無線裝置20進行無線通信,而為了方便說明,本實施例之無線裝置配對的方法是以單一個無線裝置20與單一個無線裝置10之間建立通連關係,作為無線裝置配對的例子進行說明。本實施例所說明之無線裝置系統架構僅為示意,不限於圖1所示。It should be noted that in other embodiments, the wireless device 20 can further establish a pairing connection relationship with multiple wireless devices 10, so that each wireless device 10 uses each data address in the wireless radio to wirelessly. The device 20 performs wireless communication. For convenience of description, the method of pairing the wireless devices of the present embodiment is to establish a connection relationship between a single wireless device 20 and a single wireless device 10, as an example of wireless device pairing. The architecture of the wireless device system described in this embodiment is merely illustrative and is not limited to that shown in FIG.
此外,圖1雖繪示了收發器202內建於無線裝置20中,但實際上收發器202更可以是一種外接式無線收發器(dongle),所述外接式的無線收發器可透過無線裝置20上的通用序列匯流排介面(USB)或者其他傳輸介面耦接於無線裝置20。同樣地,圖1雖繪示了收發器102內建於無線裝置10中,但實際上收發器102同樣可以是一種插接在無線裝置10上的外接式無線收發器。也就是說,只要收發器202與收發器102可以無線地傳輸信號,本發明並不限制收發器202與收發器102的設置位置、耦接方式或者是否暴露於無線裝置20或無線裝置10之外表面,於所屬技術領域具有通常知識者可視需要自由設計。In addition, although FIG. 1 illustrates that the transceiver 202 is built into the wireless device 20, the transceiver 202 can be an external wireless transceiver. The external wireless transceiver can be wireless. A universal serial bus interface (USB) or other transmission interface on the 20 is coupled to the wireless device 20. Similarly, although FIG. 1 illustrates the transceiver 102 built into the wireless device 10, the transceiver 102 can also be an external wireless transceiver that is plugged into the wireless device 10. That is, as long as the transceiver 202 and the transceiver 102 can transmit signals wirelessly, the present invention does not limit the location of the transceiver 202 and the transceiver 102, the manner of coupling, or whether it is exposed to the wireless device 20 or the wireless device 10. The surface, which is generally known to those skilled in the art, can be freely designed as needed.
請繼續參見圖1,配對鈕104設置於無線裝置10上,提供使用者透過操作配對鈕104以控制無線裝置10的動作。特別是,使用者按壓配對鈕104時,可以控制無線裝置10對應產生第一配對信號,並將所述第一配對信號透過收發器102傳送出去。當然,本發明不限制配對鈕104的類型,例如配對鈕104可以是按鈕、旋鈕、撥桿、觸控設備或者其他適當的結構,只要使用者能夠藉由操作配對鈕104以直接地或間接地發送第一配對信號,於所屬技術領域具有通常知識者可視需要自由設計配對鈕104。Referring to FIG. 1 , the pairing button 104 is disposed on the wireless device 10 to provide a user to control the operation of the wireless device 10 by operating the pairing button 104. In particular, when the user presses the pairing button 104, the wireless device 10 can be controlled to generate a first pairing signal correspondingly, and the first pairing signal can be transmitted through the transceiver 102. Of course, the present invention does not limit the type of the mating button 104. For example, the mating button 104 can be a button, a knob, a lever, a touch device, or other suitable structure, as long as the user can operate the mating button 104 directly or indirectly. The first pairing signal is transmitted, and a person skilled in the art can freely design the pairing button 104 as needed.
從實際操作的角度來看,請一併參見圖1與圖2-1與圖2-2,圖2-1與圖2-2為根據本發明一實施例之無線裝置配對的方法之流程圖。如圖所示,當使用者欲配對無線裝置20與無線裝置10時,首先要按壓無線裝置10上的配對鈕104,並藉由無線裝置10所產生的第一配對信號來觸發無線裝置20。From a practical point of view, please refer to FIG. 1 and FIG. 2-1 and FIG. 2-2 together. FIG. 2-1 and FIG. 2-2 are flowcharts of a method for pairing wireless devices according to an embodiment of the present invention. . As shown, when the user wants to pair the wireless device 20 with the wireless device 10, the pairing button 104 on the wireless device 10 is first pressed and the wireless device 20 is triggered by the first pairing signal generated by the wireless device 10.
也就是說,本發明於步驟S202中,首先要判斷無線裝置10是否被觸發,當配對鈕104被按壓,而收發器102對應產生第一配對信號。若步驟S202的判斷結果為否,則無線裝置10的配對鈕104未被按壓,直到配對鈕104受到按壓後才會進行接下去的配對流程。因此,使用者可隨時透過無線裝置10的配對鈕104來與無線裝置20配對。That is, in the step S202, the present invention first determines whether the wireless device 10 is triggered, when the pairing button 104 is pressed, and the transceiver 102 correspondingly generates the first pairing signal. If the decision result in the step S202 is NO, the pairing button 104 of the wireless device 10 is not pressed until the pairing button 104 is pressed, and the subsequent pairing process is performed. Therefore, the user can pair with the wireless device 20 through the pairing button 104 of the wireless device 10 at any time.
若步驟S202的判斷結果為是,則進行步驟S204,使得無線裝置10中的收發器102以一預設之配對位址,建立配對傳輸通道,並經由配對傳輸通道以一第一射頻傳輸強度,傳輸第一配對信號至收發器202。If the result of the determination in step S202 is YES, step S204 is performed, so that the transceiver 102 in the wireless device 10 establishes a paired transmission channel with a preset pairing address, and transmits a first radio frequency transmission strength through the paired transmission channel. The first pairing signal is transmitted to the transceiver 202.
於實務上,所述傳輸通道係為無線射頻中的一預設頻率範圍,而在同一個傳輸通道中可以藉由附加在封包上的標示(例如附加在封包標頭的標示),以區分成複數個用來傳輸資料信號的資料位址(例如當封包具有一特定標示時,代表所述封包係透過其中一個資料位址進行傳輸)。舉例來說,假設傳輸通道具有6個可用來傳輸資料信號的資料位址,本發明之無線裝置配對的方法係選定其中一個資料位址以專門用來配對無線裝置,而所述被選定的資料位址即為所述配對位址,剩下的5個資料位址將被專門用來傳輸資料信號。另外,第一射頻傳輸強度可例如為收發器102的射頻傳輸強度,即收發器102係以發射功率來輸出第一配對信號,且這個第一配對信號應為配對請求信號。In practice, the transmission channel is a predetermined frequency range in the radio frequency, and in the same transmission channel, the indication attached to the packet (for example, the label attached to the packet header) can be distinguished into A plurality of data addresses for transmitting data signals (for example, when the packet has a specific indication, the packet is transmitted through one of the data addresses). For example, assuming that the transmission channel has six data addresses that can be used to transmit data signals, the method for pairing wireless devices of the present invention selects one of the data addresses to specifically pair the wireless devices, and the selected data is selected. The address is the paired address, and the remaining 5 data addresses are used to transmit data signals. In addition, the first radio frequency transmission strength may be, for example, the radio frequency transmission strength of the transceiver 102, that is, the transceiver 102 outputs the first pairing signal with the transmission power, and the first pairing signal should be a pairing request signal.
接著,於步驟S206中,當無線裝置10中的收發器102以第一射頻傳輸強度及配對傳輸通道傳輸第一配對信號至收發器202時,無線裝置20判斷收發器202是否接收到第一配對信號。若步驟S206的判斷結果為否,則無線裝置20會繼續等待,直到受到第一配對信號的觸發才會進行接下去的配對流程。若步驟S206的判斷結果為是,則無線裝置20控制收發器202以配對傳輸通道立即傳輸第一響應信號至收發器102。Next, in step S206, when the transceiver 102 in the wireless device 10 transmits the first pairing signal to the transceiver 202 with the first radio frequency transmission strength and the paired transmission channel, the wireless device 20 determines whether the transceiver 202 receives the first pairing. signal. If the result of the determination in the step S206 is NO, the wireless device 20 will continue to wait until the triggering of the first pairing signal is performed to perform the subsequent pairing process. If the decision result in the step S206 is YES, the wireless device 20 controls the transceiver 202 to immediately transmit the first response signal to the transceiver 102 in the paired transmission channel.
無線裝置20確實接收第一配對信號後,於步驟S208中,無線裝置20開啟一個配對模式,無線裝置20將備妥一回覆封包,回覆封包包括第一通信位址,並將回覆封包置入無線裝置20的先進先出暫存器(First-in-First-out,FIFO),且無線裝置20設定為第二射頻傳輸強度。所述第一通信位址指示傳輸通道中的多個可用來傳輸資料信號的資料位址的其中之一。另外,第二射頻傳輸強度可例如為收發器202的射頻傳輸強度,即收發器202係以發射功率來輸出第一響應信號、第二響應信號或資料信號。After the wireless device 20 does receive the first pairing signal, in step S208, the wireless device 20 turns on a pairing mode, and the wireless device 20 will prepare a reply packet, the reply packet includes the first communication address, and the reply packet is placed in the wireless The first in-first-out (FIFO) of the device 20, and the wireless device 20 is set to the second radio frequency transmission strength. The first communication address indicates one of a plurality of data addresses in the transmission channel that can be used to transmit a data signal. In addition, the second radio frequency transmission strength may be, for example, the radio frequency transmission strength of the transceiver 202, that is, the transceiver 202 outputs the first response signal, the second response signal, or the data signal with the transmission power.
於實務上,於步驟S208中,無線裝置20先判斷預設的或者隨機選擇的複數個資料位址是否未被佔用,若預設的或者隨機選擇的複數個資料位址均未被佔用,則無線裝置20可從預設的或者隨機選擇的複數個資料位址中任選其中之一作為第一通信位址。反之,若無線裝置20判斷預設的或者隨機選擇的複數個資料位址已有若干被佔用,則無線裝置20可從未被佔用的資料位址中選擇其中之一作為第一通信位址。In practice, in step S208, the wireless device 20 first determines whether the preset or randomly selected multiple data addresses are not occupied. If the preset or randomly selected multiple data addresses are not occupied, then The wireless device 20 may select one of a plurality of preset or randomly selected data addresses as the first communication address. On the other hand, if the wireless device 20 determines that a plurality of preset or randomly selected data addresses have been occupied, the wireless device 20 may select one of the unoccupied data addresses as the first communication address.
值得注意的是,收發器102確實接收到第一響應信號之後,無線裝置10實際上可以等待一段時間,或者等待使用者再一次觸動無線裝置10的配對鈕104,才會繼續進行步驟S210。舉例來說,無線裝置20於發出第一響應信號之後,可以亮起無線裝置20上的一個指示燈,用以指示使用者再一次觸動無線裝置10中的配對鈕104。It should be noted that after the transceiver 102 does receive the first response signal, the wireless device 10 may actually wait for a period of time, or wait for the user to touch the pairing button 104 of the wireless device 10 again to proceed to step S210. For example, after the first response signal is sent, the wireless device 20 can illuminate an indicator light on the wireless device 20 to instruct the user to touch the pairing button 104 in the wireless device 10 again.
若無線裝置10的收發器102接收到第一響應信號後,於步驟S210中,則判斷無線裝置10是否再次被觸發,當無線裝置10的配對鈕104再次被按壓,並觸發收發器102對應產生第一配對信號。若步驟S210的判斷結果為否,則無線裝置10的配對鈕104未被按壓,直到配對鈕104受到按壓後才會進行接下去的配對流程。If the transceiver 102 of the wireless device 10 receives the first response signal, in step S210, it is determined whether the wireless device 10 is triggered again, when the pairing button 104 of the wireless device 10 is pressed again, and the transceiver 102 is triggered to generate correspondingly. The first pairing signal. If the result of the determination in step S210 is NO, the pairing button 104 of the wireless device 10 is not pressed, and the subsequent pairing process is not performed until the pairing button 104 is pressed.
所以,當使用者再次按壓無線裝置10中的配對鈕104時,無線裝置10與無線裝置20才會進入配對模式,因此,當使用者第一次誤觸無線裝置10中的配對鈕104時,無線裝置10會將配對位址回復原先預設資料位址,以防止無線裝置10與無線裝置20斷線。此外,預設資料位址例如為完成配對的無線裝置10與無線裝置20所使用的第一通信位址;或是無線裝置10出廠設定且未與其他無線裝置配對的資料位址。Therefore, when the user presses the pairing button 104 in the wireless device 10 again, the wireless device 10 and the wireless device 20 enter the pairing mode. Therefore, when the user first touches the pairing button 104 in the wireless device 10 for the first time, The wireless device 10 will return the paired address to the original preset data address to prevent the wireless device 10 from disconnecting from the wireless device 20. In addition, the preset data address is, for example, a first communication address used by the wireless device 10 and the wireless device 20 to be paired; or a data address that is set by the wireless device 10 and is not paired with other wireless devices.
若步驟S210的判斷結果為是,則進行步驟S212,使得無線裝置10中的收發器102以第一射頻傳輸強度及配對傳輸通道,來傳輸第一配對信號至收發器202。If the result of the determination in step S210 is YES, step S212 is performed to enable the transceiver 102 in the wireless device 10 to transmit the first pairing signal to the transceiver 202 with the first radio frequency transmission strength and the paired transmission channel.
接著,於步驟S212中,無線裝置10會再次控制收發器102重複再發射一次第一配對信號。當然,如於步驟S204,步驟S212是以相同的配對傳輸通道發送第一配對信號給無線裝置20的收發器202。換句話說,無線裝置10實際上執行了兩次發射第一配對信號的流程,於前一次的流程(步驟S204)中,無線裝置10發射的第一配對信號主要用來觸發啟動無線裝置20,使無線裝置20切換到配對模式之中。舉例來說,無線裝置20的配對模式包括了提供第一通信位址,以及設定發送第二響應信號的強度(如最小發射功率),當然本發明並不以此為限,例如無線裝置20的配對模式也可以包括點亮配對指示燈等適當的動作,於所屬技術領域具有通常知識者可自行定義啟動配對模式後對應動作的元件。Next, in step S212, the wireless device 10 again controls the transceiver 102 to repeatedly transmit the first pairing signal once again. Of course, as in step S204, step S212 is to transmit the first pairing signal to the transceiver 202 of the wireless device 20 on the same paired transmission channel. In other words, the wireless device 10 actually performs the process of transmitting the first pairing signal twice. In the previous process (step S204), the first pairing signal transmitted by the wireless device 10 is mainly used to trigger the activation of the wireless device 20. The wireless device 20 is switched into the pairing mode. For example, the pairing mode of the wireless device 20 includes providing the first communication address and setting the strength of transmitting the second response signal (such as the minimum transmission power), although the invention is not limited thereto, for example, the wireless device 20 The pairing mode may also include appropriate actions such as illuminating the pairing indicator, and those having ordinary skill in the art can define the components corresponding to the action after the pairing mode is activated.
在無線裝置10再次發射第一配對信號之後,於步驟S214中,無線裝置20會判斷是否接收到了再次發射的第一配對信號,若否,則無線裝置20會繼續等待無線裝置10提供第一配對信號。若無線裝置20接收到了再次發射的第一配對信號,則無線裝置20會繼續進行步驟S214。After the wireless device 10 transmits the first pairing signal again, in step S214, the wireless device 20 determines whether the first pairing signal that is transmitted again is received. If not, the wireless device 20 continues to wait for the wireless device 10 to provide the first pairing. signal. If the wireless device 20 receives the first pairing signal that is transmitted again, the wireless device 20 proceeds to step S214.
接著,於步驟S214中,無線裝置20判斷收發器202是否接收到第一配對信號。若步驟S214的判斷結果為否,則無線裝置20會繼續等待,直到受到第一配對信號的觸發才會進行接下去的配對流程。若步驟S214的判斷結果為是,則無線裝置20控制收發器202以第二射頻傳輸強度及配對傳輸通道立即傳輸第二響應信號至收發器102,所述第二響應信號與上述步驟S206中的第一響應信號的差異在於:第二響應信號指示無線裝置10與無線裝置20建立配對的第一通信位址。Next, in step S214, the wireless device 20 determines whether the transceiver 202 receives the first pairing signal. If the result of the determination in step S214 is no, the wireless device 20 will continue to wait until the triggering of the first pairing signal to proceed to the next pairing process. If the result of the determination in step S214 is YES, the wireless device 20 controls the transceiver 202 to immediately transmit the second response signal to the transceiver 102 with the second radio frequency transmission strength and the paired transmission channel, the second response signal and the step S206 described above. The first response signal differs in that the second response signal instructs the wireless device 10 to establish a paired first communication address with the wireless device 20.
在實務上,無線裝置20可從傳輸通道中多個未被佔用的資料位址中選擇其中之一作為無線裝置10與無線裝置20建立配對後之第一通信位址,並將這第一通信位址置入收發器202的先進先出暫存器中,等待無線裝置20再次接收第一配對信號時,收發器202的先進先出暫存器立即傳輸第二響應信號給無線裝置10的收發器102,第二響應信號包括具第一通信位址的回覆封包。In practice, the wireless device 20 may select one of a plurality of unoccupied data addresses in the transmission channel as the first communication address after the wireless device 10 establishes pairing with the wireless device 20, and the first communication is performed. The address is placed in the FIFO register of the transceiver 202. When the wireless device 20 receives the first pairing signal again, the FIFO register of the transceiver 202 immediately transmits the second response signal to and from the wireless device 10. The second response signal includes a reply packet having a first communication address.
於步驟S216中,無線裝置20即認為已經建立好無線裝置10的連結,據以儲存第一通信位址(例如確認無線裝置10可用的資料位址)於無線裝置20的記憶體中(例如快閃記憶體或其他適當的儲存單元)。同時,更可如步驟S216所述,無線裝置20可從配對模式切換成資料傳輸模式,舉例來說,無線裝置20的資料傳輸模式包括設定發送接下來的資料信號的強度(調回最大發射功率或正常的發射功率),當然本發明並不以此為限。In step S216, the wireless device 20 considers that the connection of the wireless device 10 has been established, thereby storing the first communication address (eg, confirming the data address available to the wireless device 10) in the memory of the wireless device 20 (eg, fast). Flash memory or other suitable storage unit). At the same time, as described in step S216, the wireless device 20 can switch from the pairing mode to the data transmission mode. For example, the data transmission mode of the wireless device 20 includes setting the strength of transmitting the next data signal (resetting the maximum transmission power). Or normal transmission power), of course, the invention is not limited thereto.
於步驟S218中,判斷無線裝置10是否接收第二響應信號,若無線裝置10確實接收到第二響應信號之後,則便會繼續進行步驟S220。在實務上,無線裝置10收到無線裝置20的第二響應信號,則無線裝置10也會收到無線裝置20先前置入先進先出暫存器的回覆封包。無線裝置10會由回覆封包取出第一通信位址,並儲存第一通信位址,並以第一通信位址建立一第一傳輸通道。In step S218, it is determined whether the wireless device 10 receives the second response signal. If the wireless device 10 does receive the second response signal, the process proceeds to step S220. In practice, the wireless device 10 receives the second response signal from the wireless device 20, and the wireless device 10 also receives the reply packet previously placed by the wireless device 20 into the FIFO. The wireless device 10 retrieves the first communication address from the reply packet and stores the first communication address, and establishes a first transmission channel with the first communication address.
如此一來,無線裝置20與無線裝置10的配對流程即為完成。最後,於步驟S220中,當無線裝置10接收到了第二響應信號之後,可得知無線裝置20所選擇的第一通信位址,也可得知無線裝置20已經準備好要進行資料信號的傳輸。因此,無線裝置10同樣也可以設定發送資料信號的強度(調回最大發射功率或正常的發射功率),藉此無線裝置10便可從所述資料位址與無線裝置20進行資料信號的傳輸。As a result, the pairing process between the wireless device 20 and the wireless device 10 is completed. Finally, in step S220, after the wireless device 10 receives the second response signal, the first communication address selected by the wireless device 20 is known, and the wireless device 20 is ready to transmit the data signal. . Therefore, the wireless device 10 can also set the strength of the transmitted data signal (reset the maximum transmit power or the normal transmit power), whereby the wireless device 10 can transmit the data signal from the data address to the wireless device 20.
為了使本發明之無線裝置配對的方法更清楚明白,本實施例在此分別詳細說明無線裝置20與無線裝置10的步驟流程。請一併參見圖1、圖3-1、圖3-2與圖4,圖3-1與圖3-2為根據本發明另一實施例之無線裝置20的操作步驟流程圖,圖4為根據本發明另一實施例之無線裝置10的操作步驟流程圖。In order to make the method for pairing the wireless devices of the present invention clearer, the present embodiment details the steps of the wireless device 20 and the wireless device 10 in detail. Please refer to FIG. 1, FIG. 3-1, FIG. 3-2 and FIG. 4 together. FIG. 3-1 and FIG. 3-2 are flowcharts showing the operation steps of the wireless device 20 according to another embodiment of the present invention. FIG. A flowchart of the operational steps of the wireless device 10 in accordance with another embodiment of the present invention.
於實際的操作中,無線裝置10處於休眠或待機狀態。當使用者按壓無線裝置10的配對鈕104時,無線裝置10將判斷是否被觸發(如圖3-1的步驟S302),而無線裝置10的配對鈕104被按壓並觸發收發器102對應產生第一配對信號。接著,無線裝置10中的收發器102以預設之配對位址,建立配對傳輸通道,並經由配對傳輸通道以第一射頻傳輸強度,傳輸第一配對信號給收發器102,而第一射頻傳輸強度為無線裝置10的最小射頻傳輸強度(如步驟S304)。In actual operation, the wireless device 10 is in a sleep or standby state. When the user presses the pairing button 104 of the wireless device 10, the wireless device 10 will determine whether it is triggered (step S302 of FIG. 3-1), and the pairing button 104 of the wireless device 10 is pressed and triggers the transceiver 102 to generate the corresponding A pairing signal. Then, the transceiver 102 in the wireless device 10 establishes a paired transmission channel with a preset pairing address, and transmits the first pairing signal to the transceiver 102 via the paired transmission channel at the first radio frequency transmission strength, and the first radio frequency transmission The intensity is the minimum radio frequency transmission strength of the wireless device 10 (step S304).
接著,無線裝置10會等待岔斷信號(如步驟S306)。在實務上,無線裝置10中收發器102具有射頻晶片,而當收發器202傳輸第一響應信號給收發器102時,收發器102的射頻晶片接收第一響應信號並經射頻晶片內部處理後即會產生一個岔斷信號。當所述岔斷信號被無線裝置10接收後,無線裝置10才會進行步驟S314的判斷。Next, the wireless device 10 will wait for the signal to be asserted (step S306). In practice, the transceiver 102 in the wireless device 10 has a radio frequency chip, and when the transceiver 202 transmits the first response signal to the transceiver 102, the radio frequency chip of the transceiver 102 receives the first response signal and is processed internally by the radio frequency chip. A break signal will be generated. When the chopping signal is received by the wireless device 10, the wireless device 10 performs the determination of step S314.
舉例而言,當收發器202接收到收發器102所傳輸第一配對信號時,收發器202將立即傳輸第一響應信號來通知收發器102,使收發器102得知收發器202已接收第一配對信號。當收發器102接收到收發器202所傳輸的第一響應信號,所述岔斷信號被無線裝置10接收後,無線裝置10才會進行步驟S314的判斷。於步驟S314中,無線裝置10判斷信號是否為具第一通信位址的回覆封包,若步驟S314的判斷的結果為否,無線裝置10會進入步驟S312,無線裝置10設定為第三射頻傳輸強度並等待配對鈕104再次被按壓。For example, when the transceiver 202 receives the first pairing signal transmitted by the transceiver 102, the transceiver 202 will immediately transmit a first response signal to notify the transceiver 102 that the transceiver 102 is aware that the transceiver 202 has received the first Pairing signal. When the transceiver 102 receives the first response signal transmitted by the transceiver 202, and the chopping signal is received by the wireless device 10, the wireless device 10 performs the determination of step S314. In step S314, the wireless device 10 determines whether the signal is a reply packet with the first communication address. If the result of the determination in step S314 is no, the wireless device 10 proceeds to step S312, and the wireless device 10 sets the third radio frequency transmission strength. And wait for the pairing button 104 to be pressed again.
其中若無線裝置10判斷收發器102未接收到收發器202所傳輸的第一響應信號時,無線裝置10的收發器102會進行步驟S308與步驟S310的內部流程,無線裝置10控制收發器102重新傳輸第一配對信號。If the wireless device 10 determines that the transceiver 102 does not receive the first response signal transmitted by the transceiver 202, the transceiver 102 of the wireless device 10 performs the internal process of step S308 and step S310, and the wireless device 10 controls the transceiver 102 to re- The first pairing signal is transmitted.
詳細而言,無線裝置10判斷收發器102傳輸第一配對信號的次數是否達到重試上限值。若於步驟S308的判斷結果為否,即收發器102傳輸第一配對信號的次數未達到重試上限值時,則收發器102重新傳輸第一配對信號至無線裝置10。若於步驟S308的判斷結果為是,則進行步驟S310。當收發器102傳輸信號的次數達到重試上限值時,則收發器102暫停傳輸第一配對信號至無線裝置10。In detail, the wireless device 10 determines whether the number of times the transceiver 102 transmits the first pairing signal reaches the retry upper limit value. If the result of the determination in step S308 is NO, that is, the number of times the transceiver 102 transmits the first pairing signal does not reach the retry upper limit value, the transceiver 102 retransmits the first pairing signal to the wireless device 10. If the result of the determination in step S308 is YES, then step S310 is performed. When the number of times the transceiver 102 transmits a signal reaches the retry upper limit value, the transceiver 102 suspends transmitting the first pairing signal to the wireless device 10.
若於步驟S310中,無線裝置10判斷收發器102是否暫停傳輸第一配對信號,若於步驟S310的判斷結果為否,則回復至步驟S306,無線裝置10繼續等待所述岔斷信號。若於步驟S310的判斷結果為是,則收發器102暫停傳輸第一配對信號給收發器202,並進行步驟S312。如於步驟S312,無線裝置10中的收發器102設定為第三射頻傳輸強度,而第三射頻傳輸強度為無線裝置10的最大射頻傳輸強度。If the wireless device 10 determines in step S310 whether the transceiver 102 suspends transmitting the first pairing signal, if the result of the determination in step S310 is negative, then the process returns to step S306, and the wireless device 10 continues to wait for the chopping signal. If the result of the determination in step S310 is YES, the transceiver 102 suspends transmitting the first pairing signal to the transceiver 202, and proceeds to step S312. As in step S312, the transceiver 102 in the wireless device 10 is set to a third radio frequency transmission strength, and the third radio frequency transmission strength is the maximum radio frequency transmission strength of the wireless device 10.
在實務上,於步驟S312中,無線裝置10也會將配對位址回復為一預設資料位址,且無線裝置10等待被觸發,其中預設資料位址為一傳輸通道中多個資料位址的其中之一。因此,如完成配對的無線裝置10與無線裝置20進行資料傳輸時,當使用者誤觸無線裝置10中的配對鈕104,將不致使無線裝置10與無線裝置20斷線,無線裝置10會使用預設資料位址來與無線裝置20進行資料傳輸。此外,預設資料位址例如為完成配對的無線裝置10與無線裝置20所使用的第一通信位址;或是無線裝置10出廠未與其他無線裝置配對的資料位址。In practice, in step S312, the wireless device 10 also returns the pairing address to a predetermined data address, and the wireless device 10 waits to be triggered, wherein the preset data address is a plurality of data bits in a transmission channel. One of the addresses. Therefore, when the paired wireless device 10 and the wireless device 20 perform data transmission, when the user accidentally touches the pairing button 104 in the wireless device 10, the wireless device 10 and the wireless device 20 will not be disconnected, and the wireless device 10 will use the wireless device 10. The data address is preset to be transmitted with the wireless device 20. In addition, the preset data address is, for example, a first communication address used by the wireless device 10 and the wireless device 20 to complete pairing; or a data address where the wireless device 10 is not paired with other wireless devices.
值得一提的是,步驟S308與步驟S310的差異在於,當無線裝置10進行步驟S308,則收發器102傳輸信號的次數不一定達到重試上限值,無線裝置10須判斷收發器102傳輸信號的次數。當無線裝置10進行步驟S310,則收發器102傳輸信號的次數已達到重試上限值,無線裝置10判斷收發器102是否暫停傳輸信號,如步驟S310的判斷結果為是,則無線裝置10暫停傳輸信號。It is worth mentioning that the difference between step S308 and step S310 is that when the wireless device 10 performs step S308, the number of times the transceiver 102 transmits the signal does not necessarily reach the retry upper limit value, and the wireless device 10 determines that the transceiver 102 transmits the signal. The number of times. When the wireless device 10 proceeds to step S310, the number of times the transceiver 102 transmits the signal has reached the retry upper limit value, and the wireless device 10 determines whether the transceiver 102 suspends the transmission signal. If the determination result in step S310 is YES, the wireless device 10 pauses. Transmission signal.
無線裝置20中的收發器202未接收第一配對信號時,無線裝置20等待岔斷信號(如步驟S400),當無線裝置20中的收發器202接收第一配對信號後,即進行步驟S402。在實務上,無線裝置20中收發器202具有射頻晶片,而當收發器102傳輸第一配對信號給收發器202時,收發器202的射頻晶片接收第一配對信號並經射頻晶片內部處理後即會產生一個岔斷信號。當所述岔斷信號被無線裝置20接收後,無線裝置20才會進行步驟S402的判斷。When the transceiver 202 in the wireless device 20 does not receive the first pairing signal, the wireless device 20 waits for the signal to be chopped (as in step S400), and when the transceiver 202 in the wireless device 20 receives the first pairing signal, proceeds to step S402. In practice, the transceiver 202 in the wireless device 20 has a radio frequency chip, and when the transceiver 102 transmits the first pairing signal to the transceiver 202, the radio frequency chip of the transceiver 202 receives the first pairing signal and is processed internally by the radio frequency chip. A break signal will be generated. When the chopping signal is received by the wireless device 20, the wireless device 20 performs the determination of step S402.
若步驟S402的判斷結果為否,則無線裝置20繼續等待來自無線裝置10的岔斷信號(如步驟S400)。若無線裝置20判斷收發器102完整接收到第一配對信號(如步驟S402),則無線裝置20判斷第一配對信號是否為配對請求信號(如步驟S404)。接著,若無線裝置20判斷第一配對信號是否來自配對傳輸通道中的配對位址(如步驟S406);若步驟S406判斷結果為否,則無線裝置20更判斷信號是否為資料信號(如步驟S414)。If the decision result in the step S402 is NO, the wireless device 20 continues to wait for the disconnection signal from the wireless device 10 (step S400). If the wireless device 20 determines that the transceiver 102 completely receives the first pairing signal (step S402), the wireless device 20 determines whether the first pairing signal is a pairing request signal (step S404). Then, if the wireless device 20 determines whether the first pairing signal is from the pairing address in the paired transmission channel (step S406); if the result of the determination in step S406 is no, the wireless device 20 further determines whether the signal is a data signal (step S414). ).
若無線裝置20判斷信號不是來自傳輸通道中的配對位址,則無線裝置20判斷接收到的信號係由誤動作產生,故會重新繼續等待岔斷信號(如步驟S400);若無線裝置20判斷信號來自傳輸通道中的配對位址,則無線裝置20判斷配對模式是否為開啟(如步驟S408)。If the wireless device 20 determines that the signal is not from the pairing address in the transmission channel, the wireless device 20 determines that the received signal is generated by a malfunction, so it will continue to wait for the disconnection signal (step S400); if the wireless device 20 determines the signal From the pairing address in the transmission channel, the wireless device 20 determines whether the pairing mode is on (as in step S408).
值得一提的是,本實施例中之無線裝置20的配對模式原始設定為關閉。當收發器102傳輸第一配對信號至收發器102,無線裝置20開啟配對模式,無線裝置20將配對模式切換為開啟(如步驟S410);當收發器102再次傳輸第一配對信號至收發器102時,則無線裝置20將進入配對模式,無線裝置20將配對模式切換為關閉(如步驟S412),即無線裝置20的配對模式將回復為原始設定。本實施例中之無線裝置20的配對模式原始設定僅為示意,不限於圖4所示。It is worth mentioning that the pairing mode of the wireless device 20 in this embodiment is originally set to off. When the transceiver 102 transmits the first pairing signal to the transceiver 102, the wireless device 20 turns on the pairing mode, the wireless device 20 switches the pairing mode to on (as in step S410); when the transceiver 102 transmits the first pairing signal to the transceiver 102 again When the wireless device 20 enters the pairing mode, the wireless device 20 switches the pairing mode to off (as in step S412), ie the pairing mode of the wireless device 20 will revert to the original setting. The pairing mode original setting of the wireless device 20 in this embodiment is merely illustrative, and is not limited to that shown in FIG.
假設無線裝置20的配對模式原始設定為關閉,則於步驟S408的判斷結果為否。於步驟S410中,無線裝置20開啟配對模式,使配對模式切換為開啟。無線裝置20將備妥一回覆封包,回覆封包包括第一通信位址,並將回覆封包置入無線裝置20的先進先出暫存器。此外,無線裝置20設定收發器202為第二射頻傳輸強度,而第二射頻傳輸強度為無線裝置20的最小射頻傳輸強度。Assuming that the pairing mode of the wireless device 20 is originally set to off, the result of the determination in step S408 is NO. In step S410, the wireless device 20 turns on the pairing mode to switch the pairing mode to on. The wireless device 20 will prepare a ready-to-receive packet, the replies packet including the first communication address, and the replies packet placed in the FIFO register of the wireless device 20. In addition, the wireless device 20 sets the transceiver 202 to a second radio frequency transmission strength, and the second radio frequency transmission strength is a minimum radio frequency transmission strength of the wireless device 20.
在此,所述第二射頻傳輸強度可例如為收發器202的最小射頻傳輸強度,即收發器202係以最小的發射功率來輸出第二響應信號。也就是說,惟有收發器102位於收發器202一個預設距離內,當使用者按壓無線裝置10上的配對鈕104時,收發器102所輸出的第一配對信號才會被無線裝置20中的收發器202接收到。若收發器102與收發器202之間的距離超過了所述預設距離時,收發器102與收發器202便無法有效地傳輸信號,使得無線裝置20與無線裝置10無法進行配對的流程。以實際使用的角度來說,若在一個空間中具有多個無線裝置20(如電腦主機),且每一個的收發器102沒有以最小的發射功率來輸出第一配對信號時,將會使無線裝置10(如無線鍵盤)同時配對到多個的無線裝置20(如電腦主機),顯然不是最有利的使用方式。Here, the second radio frequency transmission strength may be, for example, the minimum radio frequency transmission strength of the transceiver 202, that is, the transceiver 202 outputs the second response signal with the minimum transmission power. That is, only the transceiver 102 is located within a predetermined distance of the transceiver 202. When the user presses the pairing button 104 on the wireless device 10, the first pairing signal output by the transceiver 102 is received by the wireless device 20. The transceiver 202 receives it. If the distance between the transceiver 102 and the transceiver 202 exceeds the preset distance, the transceiver 102 and the transceiver 202 cannot effectively transmit signals, so that the wireless device 20 and the wireless device 10 cannot perform the matching process. In terms of practical use, if there are multiple wireless devices 20 (such as a computer host) in one space, and each of the transceivers 102 does not output the first pairing signal with the minimum transmit power, the wireless will be enabled. Device 10 (such as a wireless keyboard) is simultaneously paired to multiple wireless devices 20 (such as a computer host), which is clearly not the most advantageous use.
於實務上,第一射頻傳輸強度的強弱影響收發器202與收發器102之間的距離,強大的第一射頻傳輸強度可使收發器202於較遠距離接收收發器102所發出的信號。由此可知,當收發器102設定為最小的射頻傳輸強度時,收發器102可以於相對較短的距離內與收發器202進行配對,可避免與其他無線裝置發生誤動作。換句話說,當收發器202與收發器102分別以最小的發射功率來輸出第一配對信號與第二響應信號時,惟有最接近的兩個無線裝置才有可能進行配對的流程,如此一來,本發明便可以在一個特定空間中實現一對一的無線配對。In practice, the strength of the first RF transmission strength affects the distance between the transceiver 202 and the transceiver 102. The strong first RF transmission strength allows the transceiver 202 to receive signals from the transceiver 102 at a greater distance. It can be seen that when the transceiver 102 is set to the minimum RF transmission strength, the transceiver 102 can be paired with the transceiver 202 within a relatively short distance to avoid malfunction with other wireless devices. In other words, when the transceiver 202 and the transceiver 102 respectively output the first pairing signal and the second response signal with the minimum transmission power, only the closest two wireless devices are likely to perform the pairing process, thus The present invention enables one-to-one wireless pairing in a specific space.
舉例來說,收發器202例如為插接在無線裝置20的通用序列匯流排介面(USB)的無線射頻收發器。當無線裝置10的收發器102位於收發器202約40公分的距離內時,則使無線裝置10可以有效地將第一配對信號傳輸至無線裝置20的收發器202。當無線裝置20的收發器202接收到第一配對信號,則無線裝置20可先將收發器202的發射功率設定為最小,使無線裝置20可以有效地將第二響應信號傳輸至收發器102。請注意,收發器202與收發器102的最小發射功率未必相同,例如收發器202可以使40公分內的收發器102有效地接收信號,而收發器102可以使30公分內的收發器202有效地接收信號。For example, transceiver 202 is, for example, a radio frequency transceiver that is plugged into a universal serial bus interface (USB) of wireless device 20. When the transceiver 102 of the wireless device 10 is located within about 40 centimeters of the transceiver 202, the wireless device 10 can be enabled to efficiently transmit the first pairing signal to the transceiver 202 of the wireless device 20. When the transceiver 202 of the wireless device 20 receives the first pairing signal, the wireless device 20 may first set the transmit power of the transceiver 202 to a minimum such that the wireless device 20 can effectively transmit the second response signal to the transceiver 102. Please note that the minimum transmit power of the transceiver 202 and the transceiver 102 are not necessarily the same. For example, the transceiver 202 can enable the transceiver 102 within 40 cm to effectively receive signals, and the transceiver 102 can enable the transceiver 202 within 30 cm to effectively receive signal.
當使用者再次按壓無線裝置10的配對鈕104時,無線裝置10將判斷是否再次被觸發(如步驟S302),而無線裝置10的配對鈕104再次被按壓並觸發收發器102對應產生第一配對信號。接著,無線裝置10中的收發器102以第一射頻傳輸強度及配對傳輸通道,傳輸第一配對信號給至收發器202,而第一射頻傳輸強度為無線裝置10的最小射頻傳輸強度(如步驟S304)。When the user presses the pairing button 104 of the wireless device 10 again, the wireless device 10 will determine whether it is triggered again (as in step S302), and the pairing button 104 of the wireless device 10 is pressed again and triggers the transceiver 102 to generate the first pairing accordingly. signal. Next, the transceiver 102 in the wireless device 10 transmits the first pairing signal to the transceiver 202 with the first radio frequency transmission strength and the paired transmission channel, and the first radio frequency transmission strength is the minimum radio frequency transmission strength of the wireless device 10 (steps) S304).
當收發器102傳輸第一配對信號給無線裝置20中的收發器202後,則無線裝置20進行步驟S400至步驟S408的程序,而步驟S400與步驟S408的流程在此並不再贅述。其中當無線裝置20進行步驟S408的判斷時,若於步驟S408中,無線裝置20判斷配對模式為開啟,則進行步驟S412。於步驟S412中,無線裝置20進入配對模式,無線裝置20將配對模式切換為關閉。無線裝置20儲存第一通信位址到記憶體,並設定收發器202為第四射頻傳輸強度,而第四射頻傳輸強度為無線裝置20的最大射頻傳輸強度。之後,無線裝置20離開配對模式。After the transceiver 102 transmits the first pairing signal to the transceiver 202 in the wireless device 20, the wireless device 20 performs the procedures of steps S400 to S408, and the flow of steps S400 and S408 is not described herein again. When the wireless device 20 performs the determination of step S408, if the wireless device 20 determines that the pairing mode is on in step S408, step S412 is performed. In step S412, the wireless device 20 enters the pairing mode, and the wireless device 20 switches the pairing mode to off. The wireless device 20 stores the first communication address to the memory and sets the transceiver 202 to a fourth RF transmission strength, and the fourth RF transmission strength is the maximum RF transmission strength of the wireless device 20. Thereafter, the wireless device 20 leaves the pairing mode.
值得注意的是,無線裝置20的收發器202接收到無線裝置10的收發器102所傳輸的第一配對信號後,收發器202以配對傳輸通道立即傳輸第二響應信號給無線裝置10中的收發器102,若無線裝置10收到無線裝置20的第二響應信號,則無線裝置10也會收到無線裝置20先前置入先進先出暫存器的回覆封包。無線裝置10會由回覆封包取出第一通信位址,並儲存第一通信位址,並以第一通信位址建立一第一傳輸通道。It should be noted that after the transceiver 202 of the wireless device 20 receives the first pairing signal transmitted by the transceiver 102 of the wireless device 10, the transceiver 202 immediately transmits the second response signal to the transceiver in the wireless device 10 in the paired transmission channel. If the wireless device 10 receives the second response signal from the wireless device 20, the wireless device 10 also receives the reply packet that the wireless device 20 previously placed in the FIFO register. The wireless device 10 retrieves the first communication address from the reply packet and stores the first communication address, and establishes a first transmission channel with the first communication address.
詳細而言,若無線裝置10判斷收發器102接收到收發器202立即傳輸的第二響應信號,則無線裝置10接收到岔斷信號後,無線裝置10會進行步驟S314的判斷。於步驟S314中,判斷無線裝置10接收信號是否為具第一通信位址的回覆封包,若步驟S314的判斷結果為是,則進行步驟S316。於步驟S316中,判斷是否取得第一通信位址,假設無線裝置10接收第二響應信號,並自回覆封包取得第一通信位址,於步驟S318中,則無線裝置10以第一通信位址建立第一傳輸通道,並將第一通信位址存到記憶體。此時,無線裝置10設定收發器102為第三射頻傳輸強度,而第三射頻傳輸強度為無線裝置10的最大射頻傳輸強度。In detail, if the wireless device 10 determines that the transceiver 102 receives the second response signal transmitted by the transceiver 202 immediately, the wireless device 10 performs the determination of step S314 after receiving the disconnection signal. In step S314, it is determined whether the wireless device 10 receives the signal as a reply packet having the first communication address. If the determination result in step S314 is YES, the process proceeds to step S316. In step S316, it is determined whether the first communication address is obtained. It is assumed that the wireless device 10 receives the second response signal and obtains the first communication address from the reply packet. In step S318, the wireless device 10 uses the first communication address. A first transmission channel is established and the first communication address is stored in the memory. At this time, the wireless device 10 sets the transceiver 102 to the third radio frequency transmission strength, and the third radio frequency transmission strength is the maximum radio frequency transmission strength of the wireless device 10.
其中無線裝置10判斷收發器102未接收到收發器202所傳輸的第二響應信號,則無線裝置10會進行步驟S308與步驟S310來重新傳輸第一配對信號的流程,而步驟S308與步驟S310的流程在此並不再贅述。The wireless device 10 determines that the transceiver 102 does not receive the second response signal transmitted by the transceiver 202, and then the wireless device 10 performs the steps S308 and S310 to retransmit the first pairing signal, and the steps S308 and S310 are performed. The process is not repeated here.
因此,於步驟S320中,無線裝置20與無線裝置10進入正常操作模式,則無線裝置20與無線裝置10完成配對,並進行雙向傳輸資料信號。無線裝置20以第四射頻傳輸強度以及第一傳輸通道傳送資料信號至無線裝置10。Therefore, in step S320, the wireless device 20 and the wireless device 10 enter the normal operation mode, and the wireless device 20 completes pairing with the wireless device 10 and performs bidirectional transmission of the data signal. The wireless device 20 transmits the data signal to the wireless device 10 at the fourth radio frequency transmission strength and the first transmission channel.
值得一提的是,收發器102以第三射頻傳輸強度以及第一傳輸通道傳送資料信號至無線裝置20的收發器202,無線裝置20進行步驟S400至步驟S404的程序,假設無線裝置20判斷不是配對請求信號時(如步驟S404),則進行步驟S414,無線裝置20判斷是否為資料信號。如步驟S404判斷結果為是,則以第一傳輸通道中進行資料傳輸(步驟S416);如步驟S404判斷結果為否,則回復至步驟S400,無線裝置20繼續等待岔斷信號。It is worth mentioning that the transceiver 102 transmits the data signal to the transceiver 202 of the wireless device 20 with the third radio frequency transmission strength and the first transmission channel, and the wireless device 20 performs the procedures of step S400 to step S404, assuming that the wireless device 20 determines not When the request signal is paired (step S404), step S414 is performed, and the wireless device 20 determines whether it is a data signal. If the result of the determination in step S404 is YES, the data transmission is performed in the first transmission channel (step S416); if the determination in step S404 is negative, the process returns to step S400, and the wireless device 20 continues to wait for the chopping signal.
為了使本發明之無線裝置配對的方法更清楚明白,本實施例在此詳細說明無線裝置20與無線裝置10的另一步驟流程。請一併參見圖1、圖3-1、圖3-2與圖5,圖5為根據本發明另一實施例之無線裝置配對的方法的局部運作流程圖。圖5與圖3-1及圖3-2中無線裝置10的運作流程差異在於:圖5中無線裝置10的配對鈕104被按壓一次,而無線裝置10的收發器102即發送二次第一配對信號,與上述實施例圖3-1與圖3-2中無線裝置10的配對鈕104被按壓二次,並對應產生第一配對信號的步驟流程有所差異。In order to make the method of pairing the wireless device of the present invention clearer, the present embodiment details the flow of another step of the wireless device 20 and the wireless device 10 herein. Please refer to FIG. 1, FIG. 3-1, FIG. 3-2 and FIG. 5. FIG. 5 is a partial operational flowchart of a method for pairing wireless devices according to another embodiment of the present invention. The difference in the operational flow of the wireless device 10 in FIG. 5 and FIG. 3-1 and FIG. 3-2 is that the pairing button 104 of the wireless device 10 in FIG. 5 is pressed once, and the transceiver 102 of the wireless device 10 transmits the second time. The pairing signal is pressed twice with the pairing button 104 of the wireless device 10 in FIGS. 3-1 and 3-2 of the above embodiment, and the flow of steps corresponding to the generation of the first pairing signal is different.
詳細而言,當使用者欲配對無線裝置20與無線裝置10時,首先要按壓無線裝置10上的配對鈕104,並藉由無線裝置10所產生的第一配對信號來觸發無線裝置20。也就是說,本發明於步驟S502中,首先要判斷無線裝置10是否被觸發,當配對鈕104被按壓,收發器102對應產生第一配對信號。使得無線裝置10中的收發器102以第一射頻傳輸強度以及配對傳輸通道,傳輸第一配對信號至收發器202(如步驟S504)。In detail, when the user wants to pair the wireless device 20 with the wireless device 10, the pairing button 104 on the wireless device 10 is first pressed, and the wireless device 20 is triggered by the first pairing signal generated by the wireless device 10. That is to say, in the step S502, the present invention first determines whether the wireless device 10 is triggered. When the pairing button 104 is pressed, the transceiver 102 correspondingly generates a first pairing signal. The transceiver 102 in the wireless device 10 is caused to transmit the first pairing signal to the transceiver 202 with the first radio frequency transmission strength and the paired transmission channel (step S504).
接著,無線裝置10進入等待岔斷信號(如步驟S506)。而無線裝置20判斷收發器202是否接收到第一配對信號。若是,則無線裝置20控制收發器202以配對傳輸通道立即傳輸第一響應信號至收發器102。當收發器102確實接收到第一響應信號之後,則收發器102亦會產生岔斷信號,收發器102接收到岔斷信號後即進入步驟S508,判斷無線裝置10接收信號是否為具第一通信位址的回覆封包,其中無線裝置20第一次傳輸的第一響應信號不具第一通信位址的回覆封包,所以,無線裝置10進入步驟S510,判斷無線裝置10接收是否為第一響應信號。Next, the wireless device 10 enters a wait-off signal (step S506). The wireless device 20 determines whether the transceiver 202 has received the first pairing signal. If so, the wireless device 20 controls the transceiver 202 to immediately transmit the first response signal to the transceiver 102 in a paired transmission channel. After the transceiver 102 does receive the first response signal, the transceiver 102 also generates a chopping signal. After receiving the chopping signal, the transceiver 102 proceeds to step S508 to determine whether the wireless device 10 receives the signal as having the first communication. The reply packet of the address, wherein the first response signal transmitted by the wireless device 20 for the first time does not have the reply packet of the first communication address, so the wireless device 10 proceeds to step S510 to determine whether the wireless device 10 receives the first response signal.
當無線裝置10判斷接收為第一響應信號時,無線裝置10控制收發器102自動再次被觸發並對應產生第一配對信號。使無線裝置10以第一射頻傳輸強度及一個配對傳輸通道再次傳輸第一配對信號至收發器202(如步驟S504)。此外,當無線裝置10判斷接收不為第一響應信號時,則進入步驟S512,無線裝置10設定為第三射頻傳輸強度。無線裝置10將配對位址回復為預設資料位址。When the wireless device 10 determines to receive the first response signal, the wireless device 10 controls the transceiver 102 to be automatically triggered again and correspondingly generates a first pairing signal. The wireless device 10 is caused to retransmit the first pairing signal to the transceiver 202 with the first radio frequency transmission strength and a paired transmission channel (step S504). In addition, when the wireless device 10 determines that the reception is not the first response signal, the process proceeds to step S512, and the wireless device 10 sets the third radio frequency transmission strength. The wireless device 10 replies the paired address to a predetermined data address.
在實務上,收發器102例如設計為接收到第一響應信號後,收發器102即自動再次產生第一配對信號,並傳輸第一配對信號給無線裝置20中的收發器202;或是當無線裝置10的配對鈕104被按壓後即對應產生第一次的第一配對信號與第二次的第一配對信號,而第二次的第一配對信號與第一次的第一配對信號間隔一段時間後再傳輸給無線裝置20。本發明並不限制無線裝置10的配對鈕104被按壓後,收發器102對應產生第一配對信號的方式與次數,於所屬技術領域具有通常知識者可視需要自由設計。In practice, the transceiver 102 is, for example, designed to receive the first response signal, the transceiver 102 automatically generates the first pairing signal again, and transmits the first pairing signal to the transceiver 202 in the wireless device 20; or when wireless After the pairing button 104 of the device 10 is pressed, the first pairing signal and the second pairing signal are generated correspondingly, and the second pairing signal is separated from the first pairing signal by the first time. The time is then transmitted to the wireless device 20. The present invention does not limit the manner and number of times that the transceiver 102 generates the first pairing signal after the pairing button 104 of the wireless device 10 is pressed. The person skilled in the art can freely design as needed.
接著,當收發器102自動再次產生第一配對信號,並傳輸第一配對信號給無線裝置20的收發器202。若無線裝置20中的收發器202接收第一配對信號,無線裝置20以第二射頻傳輸強度及配對傳輸通道傳輸第二響應信號給無線裝置10的收發器102。當收發器102確認接收第二響應信號,收發器102即進行步驟S508的判斷,若無線裝置10接收信號為具第一通信位址的回覆封包,則進入步驟S514,無線裝置10取得第一通信位址,並以第一通信位址建立第一傳輸通道,無線裝置10與無線裝置20透過第一傳輸通道傳送資料信號。Next, the transceiver 102 automatically generates the first pairing signal again and transmits the first pairing signal to the transceiver 202 of the wireless device 20. If the transceiver 202 in the wireless device 20 receives the first pairing signal, the wireless device 20 transmits a second response signal to the transceiver 102 of the wireless device 10 with the second RF transmission strength and the paired transmission channel. When the transceiver 102 confirms receiving the second response signal, the transceiver 102 performs the determination of step S508. If the wireless device 10 receives the signal as the reply packet with the first communication address, the process proceeds to step S514, and the wireless device 10 obtains the first communication. The address is set, and the first transmission channel is established by the first communication address, and the wireless device 10 and the wireless device 20 transmit the data signal through the first transmission channel.
為了使本發明之無線裝置配對的方法更清楚明白,本實施例在此詳細說明無線裝置20與多個無線裝置10、12、14的步驟流程。請參見圖6,圖6為根據本發明另一實施例之多個無線裝置10、12、14、20配對的方法之系統架構示意圖。無線裝置系統1a包括無線裝置20與無線裝置10、12、14,而無線裝置10、12、14各具有收發器102、122、142與配對鈕104、124、144。In order to make the method of pairing the wireless devices of the present invention clearer, the present embodiment details the flow of steps of the wireless device 20 and the plurality of wireless devices 10, 12, and 14 in this embodiment. Referring to FIG. 6, FIG. 6 is a schematic diagram of a system architecture of a method for pairing multiple wireless devices 10, 12, 14, and 20 according to another embodiment of the present invention. Wireless device system 1a includes wireless device 20 and wireless devices 10, 12, 14, and wireless devices 10, 12, 14 each have transceivers 102, 122, 142 and pairing buttons 104, 124, 144.
無線裝置20與無線裝置10、12、14的配對方法與上述本發明實施例相似,例如無線裝置20以固定配對位址來建立專屬的配對傳輸通道,由無線裝置20選擇並決定第一通信位址(或是第二通信位址;或是第三通信位址)來通知無線裝置10、12、14。圖6中的無線裝置10、12、14相對於圖1的差異在於:無線裝置10、12、14以配對位址來建立配對傳輸通道,並以第一通信位址(或是第二通信位址;或是第三通信位址)來更新配對傳輸通道為第一傳輸通道(或是第二傳輸通道;或是第三傳輸通道)。The pairing method of the wireless device 20 and the wireless devices 10, 12, 14 is similar to the above-described embodiment of the present invention. For example, the wireless device 20 establishes a dedicated paired transmission channel with a fixed pairing address, and the wireless device 20 selects and determines the first communication bit. The address (or the second communication address; or the third communication address) is used to notify the wireless device 10, 12, 14. The difference between the wireless devices 10, 12, 14 in FIG. 6 with respect to FIG. 1 is that the wireless devices 10, 12, 14 establish a paired transmission channel with a paired address and use the first communication address (or the second communication bit). The address or the third communication address is used to update the paired transmission channel as the first transmission channel (or the second transmission channel; or the third transmission channel).
如本發明上述實施例所述,當無線裝置20與無線裝置10配對完成後,而無線裝置20更可以與無線裝置12、14進行配對。無線裝置12、14例如包括但不限於無線滑鼠、無線耳機、無線喇叭、印表機或者其他適當的無線裝置,本發明並不以此為限。當無線裝置12與無線裝置20進行配對時,判斷無線裝置12是否被觸發,若是,則無線裝置12以預設之配對位址,建立配對傳輸通道,並經由配對傳輸通道以一第五射頻傳輸強度,傳輸第二配對信號至無線裝置20。As described in the above embodiments of the present invention, when the wireless device 20 is paired with the wireless device 10, the wireless device 20 can be paired with the wireless devices 12, 14. The wireless device 12, 14 includes, but is not limited to, a wireless mouse, a wireless headset, a wireless speaker, a printer, or other suitable wireless device, and the invention is not limited thereto. When the wireless device 12 is paired with the wireless device 20, it is determined whether the wireless device 12 is triggered. If so, the wireless device 12 establishes a paired transmission channel with a preset pairing address, and transmits a fifth radio frequency via the paired transmission channel. Intensity, the second pairing signal is transmitted to the wireless device 20.
判斷無線裝置20是否接收第二配對信號,若是,則無線裝置20以配對傳輸通道傳輸第一響應信號給無線裝置12,無線裝置20開啟配對模式,並將第二通信位址存入無線裝置20的第二先進先出暫存器,且無線裝置20設定第二射頻傳輸強度。Determining whether the wireless device 20 receives the second pairing signal, and if so, the wireless device 20 transmits the first response signal to the wireless device 12 in the paired transmission channel, the wireless device 20 turns on the pairing mode, and stores the second communication address in the wireless device 20 The second FIFO register, and the wireless device 20 sets the second RF transmission strength.
判斷無線裝置12是否再次被觸發,若是,則無線裝置12以第五射頻傳輸強度及配對傳輸通道,傳輸第二配對信號至無線裝置20。其中第五射頻傳輸強度為無線裝置12的最小射頻傳輸強度。It is determined whether the wireless device 12 is triggered again, and if so, the wireless device 12 transmits the second pairing signal to the wireless device 20 with the fifth radio frequency transmission strength and the paired transmission channel. The fifth radio frequency transmission strength is the minimum radio frequency transmission strength of the wireless device 12.
判斷無線裝置20是否再次接收第二配對信號,若是,則無線裝置20以第二射頻傳輸強度及配對傳輸通道傳輸第二響應信號給無線裝置12,無線裝置20進入配對模式,將備妥一回覆封包,回覆封包包括第二通信位址,並將回覆封包置入無線裝置20的先進先出暫存器。Determining whether the wireless device 20 receives the second pairing signal again. If yes, the wireless device 20 transmits the second response signal to the wireless device 12 by using the second RF transmission strength and the paired transmission channel, and the wireless device 20 enters the pairing mode, and the multiplexer is ready to reply. The packet, the reply packet includes a second communication address, and the reply packet is placed in the FIFO register of the wireless device 20.
若無線裝置12收到無線裝置20的第二響應信號,則無線裝置12也會收到無線裝置20先前置入先進先出暫存器的回覆封包。無線裝置12會由回覆封包取出第二通信位址,並儲存第二通信位址,並以第二通信位址建立一第二傳輸通道。因此,無線裝置12與無線裝置20透過第二傳輸通道進行資料傳輸。If the wireless device 12 receives the second response signal from the wireless device 20, the wireless device 12 also receives a reply packet previously placed by the wireless device 20 into the FIFO register. The wireless device 12 retrieves the second communication address from the reply packet and stores the second communication address, and establishes a second transmission channel with the second communication address. Therefore, the wireless device 12 and the wireless device 20 perform data transmission through the second transmission channel.
相同地,無線裝置14與無線裝置20進行配對,無線裝置20會選擇第三通信位址,並通知無線裝置14使用第三通信位址來建立第三傳輸通道,而無線裝置14與無線裝置20透過第三傳輸通道進行資料傳輸。本發明之無線裝置配對的方法可以適用於單一無線裝置20對多個無線裝置10、12、14,並由單一無線裝置20選擇並決定與每一無線裝置10、12、14配對的通信位址,例如為第一通信位址、第二通信位址或第三通信位址。Similarly, the wireless device 14 is paired with the wireless device 20, the wireless device 20 selects the third communication address, and notifies the wireless device 14 to establish a third transmission channel using the third communication address, and the wireless device 14 and the wireless device 20 Data transmission through the third transmission channel. The method of pairing wireless devices of the present invention can be applied to a single wireless device 20 to a plurality of wireless devices 10, 12, 14 and selected by a single wireless device 20 and determining a communication address paired with each wireless device 10, 12, 14. For example, it is a first communication address, a second communication address or a third communication address.
值得一提的是,當無線裝置10與無線裝置20進行配對時,由無線裝置20選擇並決定通信位址。當無線裝置10佔用第一通信位址後,無線裝置20與無線裝置12配對時,無線裝置20不會選擇被佔用的資料位址(如第一通信位址),無線裝置20會從未被佔用的資料位址(如第二通信位址、第三通信位址或第四通信位址等)選擇並決定通信位址,因此無線裝置12佔用第二通信位址,而無線裝置14佔用第三通信位址。It is worth mentioning that when the wireless device 10 is paired with the wireless device 20, the wireless device 20 selects and determines the communication address. When the wireless device 10 occupies the first communication address and the wireless device 20 is paired with the wireless device 12, the wireless device 20 does not select the occupied data address (such as the first communication address), and the wireless device 20 is never The occupied data address (such as the second communication address, the third communication address or the fourth communication address, etc.) selects and determines the communication address, so the wireless device 12 occupies the second communication address, and the wireless device 14 occupies the Three communication addresses.
舉例而言,主機可以與無線鍵盤、第一無線滑鼠、第二無線滑鼠進行配對。當主機與無線鍵盤進行配對時,主機選擇並決定使用第一通信位址,來與無線鍵盤進行雙向資料傳輸。因此主機與無線鍵盤之間使用第一通信位址所建立第一傳輸通道,來進行雙向資料傳輸。相同地,主機選擇並決定使用第二通信位址所建立第二傳輸通道,來與第一無線滑鼠進行雙向資料傳輸,主機選擇並決定使用第三通信位址所建立第三傳輸通道,來與第二無線滑鼠進行雙向資料傳輸。For example, the host can be paired with a wireless keyboard, a first wireless mouse, and a second wireless mouse. When the host is paired with the wireless keyboard, the host selects and decides to use the first communication address to perform bidirectional data transmission with the wireless keyboard. Therefore, the first transmission channel is established between the host and the wireless keyboard by using the first communication address for bidirectional data transmission. Similarly, the host selects and decides to establish a second transmission channel by using the second communication address to perform bidirectional data transmission with the first wireless mouse, and the host selects and decides to establish a third transmission channel by using the third communication address. Two-way data transmission with the second wireless mouse.
綜上所述,本發明有效提供一種無線裝置配對的方法,本發明不透過應用程式來驅動無線裝置,使用者可隨時按壓第一無線裝置的配對鈕,來使第一無線裝置以第一射頻傳輸強度及配對傳輸通道,傳輸配對信號給第二無線裝置,由第二無線裝置選擇並決定通信位址。當使用者再次按壓第一無線裝置的配對鈕來對應產生配對信號;或是由第一無線裝置內部晶片自動控制來再次觸發產生配對信號,並自第二無線裝置傳輸的響應信號取得通信位址,藉由此方法增加無線裝置之間可隨時且快速建立配對通連的機會。In summary, the present invention effectively provides a method for pairing wireless devices. The present invention does not use an application to drive a wireless device. The user can press the pairing button of the first wireless device at any time to make the first wireless device use the first RF. The transmission strength and the paired transmission channel transmit a pairing signal to the second wireless device, and the second wireless device selects and determines the communication address. When the user presses the pairing button of the first wireless device again to generate a pairing signal; or the first wireless device internal chip automatic control triggers the pairing signal again, and the response signal transmitted from the second wireless device obtains the communication address. By this method, an opportunity for establishing a pairing connection between wireless devices at any time and quickly can be established.
雖然本發明之較佳實施例已揭露如上,然本發明並不受限於上述實施例,任何所屬技術領域中具有通常知識者,在不脫離本發明所揭露之範圍內,當可作些許之更動與調整,因此本發明之保護範圍應當以後附之申請專利範圍所界定者為準。Although the preferred embodiments of the present invention have been disclosed as above, the present invention is not limited to the above-described embodiments, and any one of ordinary skill in the art can make some modifications without departing from the scope of the present invention. The scope of protection of the present invention should be determined by the scope of the appended claims.
1、1a...無線裝置系統1, 1a. . . Wireless device system
10、12、14、20...無線裝置10, 12, 14, 20. . . Wireless device
102、122、142、202...收發器102, 122, 142, 202. . . transceiver
104、124、144...配對鈕104, 124, 144. . . Pairing button
S202~S220...流程圖步驟S202~S220. . . Flow chart step
S302~S320...流程圖步驟S302~S320. . . Flow chart step
S400~S416...流程圖步驟S400~S416. . . Flow chart step
S502~S514...流程圖步驟S502~S514. . . Flow chart step
圖1為根據本發明一實施例之無線裝置配對的方法之系統架構示意圖。FIG. 1 is a schematic diagram of a system architecture of a method for pairing wireless devices according to an embodiment of the invention.
圖2-1為根據本發明一實施例之無線裝置配對的方法的流程圖。2-1 is a flow chart of a method of pairing wireless devices in accordance with an embodiment of the present invention.
圖2-2為根據本發明一實施例之無線裝置配對的方法的流程圖。2-2 is a flow chart of a method of pairing wireless devices in accordance with an embodiment of the present invention.
圖3-1為根據本發明另一實施例之無線裝置配對的方法之第一無線裝置的運作流程圖。3-1 is a flowchart showing the operation of a first wireless device in a method of pairing wireless devices according to another embodiment of the present invention.
圖3-2為根據本發明另一實施例之無線裝置配對的方法之第一無線裝置的運作流程圖。3-2 is a flow chart showing the operation of a first wireless device in a method of pairing wireless devices according to another embodiment of the present invention.
圖4為根據本發明另一實施例之無線裝置配對的方法之第二無線裝置的運作流程圖。4 is a flow chart showing the operation of a second wireless device in a method of pairing wireless devices according to another embodiment of the present invention.
圖5為根據本發明另一實施例之無線裝置配對的方法之第一無線裝置的局部運作流程圖。FIG. 5 is a partial operational flowchart of a first wireless device of a method for pairing wireless devices according to another embodiment of the present invention.
圖6為根據本發明另一實施例之多個無線裝置配對的方法之系統架構示意圖。FIG. 6 is a schematic diagram of a system architecture of a method for pairing multiple wireless devices according to another embodiment of the present invention.
S202~S214...流程圖步驟S202~S214. . . Flow chart step
Claims (11)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW101105837A TWI460610B (en) | 2012-02-22 | 2012-02-22 | Method of pairing wireless devices |
JP2012120463A JP5442065B2 (en) | 2012-02-22 | 2012-05-28 | Wireless device pairing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW101105837A TWI460610B (en) | 2012-02-22 | 2012-02-22 | Method of pairing wireless devices |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201335792A TW201335792A (en) | 2013-09-01 |
TWI460610B true TWI460610B (en) | 2014-11-11 |
Family
ID=49266093
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW101105837A TWI460610B (en) | 2012-02-22 | 2012-02-22 | Method of pairing wireless devices |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP5442065B2 (en) |
TW (1) | TWI460610B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10129713B2 (en) | 2015-03-24 | 2018-11-13 | Htc Corporation | Method for generating notification and a mobile device and system using the same |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008182589A (en) * | 2007-01-25 | 2008-08-07 | Smk Corp | Rf communication system |
JP2010166121A (en) * | 2009-01-13 | 2010-07-29 | Nissan Motor Co Ltd | Wireless communication apparatus and wireless connection method |
TW201132213A (en) * | 2010-02-10 | 2011-09-16 | Solteras Inc | Method for automatic pairing to a wireless network |
TW201208321A (en) * | 2010-08-12 | 2012-02-16 | Pixart Imaging Inc | Security connection establishing method and related wireless device and wireless host |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2787178C (en) * | 2010-01-22 | 2019-02-12 | Deka Products Limited Partnership | Method and system for shape-memory alloy wire control |
-
2012
- 2012-02-22 TW TW101105837A patent/TWI460610B/en not_active IP Right Cessation
- 2012-05-28 JP JP2012120463A patent/JP5442065B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008182589A (en) * | 2007-01-25 | 2008-08-07 | Smk Corp | Rf communication system |
JP2010166121A (en) * | 2009-01-13 | 2010-07-29 | Nissan Motor Co Ltd | Wireless communication apparatus and wireless connection method |
TW201132213A (en) * | 2010-02-10 | 2011-09-16 | Solteras Inc | Method for automatic pairing to a wireless network |
TW201208321A (en) * | 2010-08-12 | 2012-02-16 | Pixart Imaging Inc | Security connection establishing method and related wireless device and wireless host |
Also Published As
Publication number | Publication date |
---|---|
JP2013172448A (en) | 2013-09-02 |
JP5442065B2 (en) | 2014-03-12 |
TW201335792A (en) | 2013-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI489371B (en) | Method and apparatus for performing wireless display control | |
CN110113739B (en) | Information processing method and electronic equipment | |
WO2021114952A1 (en) | Data processing method, terminal device, bluetooth device, and storage medium | |
US9686030B2 (en) | Method and apparatus for configuration and control of mixer for audio system using wireless docking system | |
CN105094383B (en) | Smart pen pairing and connection | |
TW201003583A (en) | Systems and methods for controlling the power state of remote control electronics | |
US20100330910A1 (en) | Method for transmitting and receiving data using e-field in portable terminal and apparatus thereof | |
JP6459965B2 (en) | Wireless communication apparatus and communication control apparatus | |
RU2016132577A (en) | PERIPHERAL DEVICES IN A WIRELESS COUPLING SYSTEM | |
KR102335903B1 (en) | Method and apparatus for communication between electronic devices | |
US10140086B2 (en) | Electronic device and audio ouputting method thereof | |
KR20210017030A (en) | Electronic device for reducing power consumption and operating method thereof | |
CN113873589A (en) | Bluetooth connection switching method, Bluetooth headset and computer readable storage medium | |
EP3171267B1 (en) | Terminal device and charging control method | |
KR20090112101A (en) | Broadcasting receiving apparatus, wireless interface apparatus and control method thereof | |
KR102632536B1 (en) | Electronic device for transmitting response message in bluetooth network environment and method thereof | |
CN103312381B (en) | The method of wireless device pairing | |
US8738941B2 (en) | Computer integral device system and method for integrating a tablet personal computer and a computer host | |
US20190089600A1 (en) | Communication apparatus and control method for the same | |
TWI460610B (en) | Method of pairing wireless devices | |
WO2015051742A1 (en) | Method and device for automatically implementing wireless connection between devices | |
TW201740281A (en) | USB docking station and control method thereof | |
TW201319821A (en) | Method, system and conversion device applicable to wireless communications for hosts of human interface devices | |
US11770693B2 (en) | Electronic device for setting address information and method for operating same | |
JP2009206744A (en) | Electronic apparatus and communication control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |