[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

TWI487397B - Channel selection method, channel selector and network connecting apparatus - Google Patents

Channel selection method, channel selector and network connecting apparatus Download PDF

Info

Publication number
TWI487397B
TWI487397B TW101131549A TW101131549A TWI487397B TW I487397 B TWI487397 B TW I487397B TW 101131549 A TW101131549 A TW 101131549A TW 101131549 A TW101131549 A TW 101131549A TW I487397 B TWI487397 B TW I487397B
Authority
TW
Taiwan
Prior art keywords
channel
network
candidate
channels
unit
Prior art date
Application number
TW101131549A
Other languages
Chinese (zh)
Other versions
TW201410047A (en
Inventor
Chih Li Pan
Shiou Yu Lee
Chih Yen Wu
Original Assignee
Lite On Electronics Guangzhou
Lite On Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lite On Electronics Guangzhou, Lite On Technology Corp filed Critical Lite On Electronics Guangzhou
Priority to TW101131549A priority Critical patent/TWI487397B/en
Publication of TW201410047A publication Critical patent/TW201410047A/en
Application granted granted Critical
Publication of TWI487397B publication Critical patent/TWI487397B/en

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Description

頻道選擇方法、頻道選擇器及網路連接裝置Channel selection method, channel selector and network connection device

本發明是有關於一種頻道選擇方法,特別是指一種適用於無線區域網路連線,且可動態自動地找尋最佳工作頻道,避免相互干擾的頻道選擇方法、頻道選擇器及網路連接裝置。The invention relates to a channel selection method, in particular to a channel selection method, a channel selector and a network connection device, which are suitable for wireless local area network connection and can dynamically and automatically find the best working channel and avoid mutual interference. .

直接序列擴頻(DSSS,Direct Sequence Spread Spectrum)是一種用於免許可2.4GHz ISM(Industrial Scientific Medical,工業、科學、醫學)頻段中射頻調變的方法,其可用於無線USB、802.11b/g/a(一般稱為Wi-Fi,Wireless Fidelity,無線保真)及802.15.4(稱為ZigBee,群蜂)。Wi-Fi網路在2.412GHz~2.462GHz頻段中界定出11個頻道,且ZigBee網路使2.405GHz~2.48GHz區隔成16個頻道,其中各網路為所具有的頻道依照頻道頻率由低至高提供遞增的頻道編號。Direct Sequence Spread Spectrum (DSSS) is a method for radio frequency modulation in the unlicensed 2.4 GHz ISM (Industrial Scientific Medical, Industrial, Scientific, Medical) band, which can be used for wireless USB, 802.11b/g /a (commonly known as Wi-Fi, Wireless Fidelity, Wireless Fidelity) and 802.15.4 (called ZigBee, Group Bee). The Wi-Fi network defines 11 channels in the 2.412 GHz to 2.462 GHz band, and the ZigBee network divides the 2.405 GHz to 2.48 GHz into 16 channels, wherein each network has a channel with a low channel frequency. Max provides an incremental channel number.

ZigBee技術是一種近距離、低複雜度、低功耗、低資料速率、低成本、高容量的無線傳感網路技術,主要適合於承載資料流程量較小的業務,例如自動控制、遠端監控等領域,目的是為了滿足小型廉價設備的無線連網和控制。相對於現有的各種無線通訊技術,ZigBee技術是最低功耗和成本的技術。ZigBee technology is a short-range, low-complexity, low-power, low-data-rate, low-cost, high-capacity wireless sensor network technology. It is mainly suitable for services with small data flow, such as automatic control and remote control. In the field of monitoring and other fields, the purpose is to meet the wireless networking and control of small and inexpensive devices. Compared to existing wireless communication technologies, ZigBee technology is the lowest power and cost technology.

而與ZigBee技術相反,WiFi是一種遠距離、複雜度較高、高功耗、高資料速率(達54Mbps)、高成本的無線網 路技術。目前在無線區域網中得到較為廣泛的應用,十分便於接入Internet,適用於學校、商業大樓或家庭網路的市場。In contrast to ZigBee technology, WiFi is a long-distance, high-complexity, high-power, high-data rate (up to 54Mbps), high-cost wireless network. Road technology. Currently, it is widely used in wireless local area networks, and is very convenient for accessing the Internet, and is suitable for the market of schools, commercial buildings or home networks.

由於ZigBee和WiFi各自具有明顯的特點,並且許多特性具有互補性。因此隨著低速率應用市場需求的不斷增長,Zigbee和Wi-Fi系統共處的可能性越來越大。但由於兩者都主要工作在2.4GHz的ISM頻段,不可避免地會產生相互干擾。倘若通訊品質不良,網路連接裝置常被要求重傳而無法有效率地傳收資料,如果無法立即傳送命令/接收回應資訊,將造成運作效能的下降以及徒增網路連接裝置電能的浪費。因此如何動態自動地找尋最佳工作頻道,避免相互干擾以提升網路連接裝置運作效能及免去電能的浪費為目前最大的課題。Since ZigBee and WiFi each have distinct features, and many features are complementary. Therefore, as the market demand for low-rate applications continues to grow, the possibility of Zigbee and Wi-Fi systems coexisting is growing. However, since both of them mainly work in the 2.4 GHz ISM band, mutual interference will inevitably occur. If the communication quality is poor, the network connection device is often required to retransmit and cannot transmit the data efficiently. If the command/receive response information cannot be transmitted immediately, the operation performance will be degraded and the power of the network connection device will be wasted. Therefore, how to dynamically and automatically find the best working channel and avoid mutual interference to improve the operation efficiency of the network connection device and avoid the waste of electric energy is the biggest problem at present.

因此,本發明的目的之一,即在提供一種頻道選擇方法和頻道選擇器,其利用軟體記憶各頻道的錯誤重傳次數及跳頻判斷機制,根據傳輸效率來切換頻道,使能夠選擇到干擾最小的工作頻道。Therefore, one of the objects of the present invention is to provide a channel selection method and a channel selector that use a software to memorize the number of error retransmissions of each channel and a frequency hopping judgment mechanism to switch channels according to transmission efficiency, so that interference can be selected. The smallest working channel.

本發明之另一目的,在於提供一種網路連接裝置,其可選出通訊品質較佳的工作頻道,避免錯誤重傳造成的電能浪費。Another object of the present invention is to provide a network connection device that can select a working channel with better communication quality to avoid waste of power caused by erroneous retransmission.

於是,本發明提供一頻道選擇方法,適用於從一網路的多個候選頻道中決定一個供該網路進行通訊的工作頻道,包含以下步驟:(A)讀取另一網路進行通訊的一頻道,並 根據該另一網路進行通訊的該頻道,在一個記錄有該網路之該等候選頻道的頻道清單中標記出重疊於該另一網路進行通訊的該頻道,以決定該網路的該等候選頻道,且該等候選頻道不重疊於該另一網路進行通訊的該頻道,其中該另一網路的最高資料傳輸速率大於該網路的最高資料傳輸速率;(B)對該網路的每一個該候選頻道評估頻道通訊品質,並挑出對應較佳頻道通訊品質的該候選頻道當作該工作頻道;(C)切換到該工作頻道,以供該網路進行通訊;(D)傳送一封包,監測重傳該封包的次數;(E)根據該封包的重傳次數,決定是否更新該工作頻道;及(F)當決定更新該工作頻道,為目前工作頻道以外的該等候選頻道評估頻道通訊品質,並挑出對應較佳頻道通訊品質的該候選頻道當作更新後的工作頻道;其中,該網路的該等候選頻道數目少於該網路的可支援傳輸頻道總數。Therefore, the present invention provides a channel selection method, which is suitable for determining a working channel for communication by the network from a plurality of candidate channels of a network, comprising the following steps: (A) reading another network for communication One channel, and According to the channel that the other network communicates, the channel that overlaps the other network for communication is marked in a channel list of the candidate channels on which the network is recorded to determine the network. a candidate channel, and the candidate channels do not overlap the channel in which the other network communicates, wherein the highest data transmission rate of the other network is greater than the highest data transmission rate of the network; (B) the network Each candidate channel of the road evaluates the communication quality of the channel, and selects the candidate channel corresponding to the communication quality of the preferred channel as the working channel; (C) switches to the working channel for communication by the network; Transmitting a packet to monitor the number of times the packet is retransmitted; (E) deciding whether to update the working channel based on the number of retransmissions of the packet; and (F) deciding to update the working channel to be outside the current working channel The candidate channel evaluates the communication quality of the channel, and selects the candidate channel corresponding to the communication quality of the preferred channel as the updated working channel; wherein the number of the candidate channels of the network is less than the supportable transmission of the network The total number of channels.

另外,本發明提供一頻道選擇器,適用於一個用以耦接一第一網路和一第二網路的網路連接裝置中,該第一網路對應一至少一第一頻道,該第二網路對應多個第二頻道,且該頻道選擇器包括:一標記單元,讀取該第一網路進行通訊的該至少一第一頻道,並根據該第一網路進行通訊的該至少一第一頻道,在一個記錄有該第二網路之該等第二頻道的第二網路候選頻道清單中標記出哪些第二頻道重疊於該第一網路進行通訊的該至少一第一頻道,以決定該等第二頻道中的多個候選頻道,且決定出的該等候選頻道不重疊於該第一網路進行通訊的該至少一第一頻道,其中 該第一網路的最高資料傳輸速率大於該第二網路的最高資料傳輸速率;一評估單元,為每一該候選頻道評估頻道通訊品質,以挑出對應較佳頻道通訊品質的該候選頻道當作該網路連接裝置用以與該第二網路通訊的一工作頻道;及一監測單元,當該網路連接裝置經由該工作頻道傳遞一封包給該第二網路,該監測單元監測該網路連接裝置重傳該封包的次數,以決定是否令該評估單元更新該工作頻道;其中,當該監測單元令該評估單元更新該工作頻道,該評估單元為目前工作頻道以外的該等候選頻道評估頻道通訊品質,並挑出對應較佳頻道通訊品質的該候選頻道當作更新後的工作頻道;其中,該等候選頻道數目少於該等第二頻道總數。In addition, the present invention provides a channel selector, which is applicable to a network connection device for coupling a first network and a second network, where the first network corresponds to at least one first channel, the first The second network corresponds to the plurality of second channels, and the channel selector comprises: a marking unit, reading the at least one first channel that the first network communicates, and the communication according to the first network a first channel, in the second network candidate channel list of the second channels in which the second network is recorded, marking which second channels overlap the first network to communicate with the at least one first a channel to determine a plurality of candidate channels in the second channel, and the determined candidate channels do not overlap the at least one first channel in which the first network communicates, wherein The highest data transmission rate of the first network is greater than the highest data transmission rate of the second network; an evaluation unit estimates the channel communication quality for each of the candidate channels to select the candidate channel corresponding to the preferred channel communication quality. a working channel for the network connection device to communicate with the second network; and a monitoring unit, wherein the network connection device transmits a packet to the second network via the working channel, the monitoring unit monitors The number of times the network connection device retransmits the packet to determine whether to enable the evaluation unit to update the working channel; wherein, when the monitoring unit causes the evaluation unit to update the working channel, the evaluation unit is other than the current working channel The candidate channel evaluates the communication quality of the channel, and selects the candidate channel corresponding to the communication quality of the preferred channel as the updated working channel; wherein the number of the candidate channels is less than the total number of the second channels.

再者,本發明提供一網路連接裝置,適用於耦接一第一網路和一第二網路,該第一網路對應一第一頻道,該第二網路對應多個第二頻道,該網路連接裝置包括:一第一收發單元,用以經由該第一頻道與該第一網路進行通訊;一第二收發單元,用以經由一工作頻道與該第二網路進行通訊;及一處理器,與該第一收發單元和該第二收發單元電連接,更包括:一頻道選擇器,具有:一標記單元,讀取該第一網路進行通訊的該第一頻道,並根據該第一網路進行通訊的該第一頻道,在一個記錄有該第二網路之該等第二頻道的第二網路候選頻道清單中標記出哪一第二頻道重疊於該第一網路進行通訊的該第一頻道,以決定該等第二頻道中的多個候選頻道,且決定出的該等候選頻道不重疊 於該第一網路進行通訊的該第一頻道,其中該第一網路的最高資料傳輸速率大於該第二網路的最高資料傳輸速率;一評估單元,為每一該候選頻道評估頻道通訊品質,以挑出對應較佳頻道通訊品質的該候選頻道當作該工作頻道;及一監測單元,監測該第二收發單元於該工作頻道重傳一封包的次數,以決定是否令該評估單元更新該工作頻道;其中,當該監測單元令該評估單元更新該工作頻道,該評估單元為目前工作頻道以外的該等候選頻道評估頻道通訊品質,並挑出對應較佳頻道通訊品質的該候選頻道當作更新後的工作頻道;其中,該等候選頻道數目少於該等第二頻道總數。Furthermore, the present invention provides a network connection device, which is adapted to be coupled to a first network and a second network, the first network corresponding to a first channel, and the second network corresponding to a plurality of second channels The network connection device includes: a first transceiver unit for communicating with the first network via the first channel; and a second transceiver unit for communicating with the second network via a working channel And a processor electrically connected to the first transceiver unit and the second transceiver unit, further comprising: a channel selector, having: a marking unit, reading the first channel of the first network for communication, And marking, according to the first channel that is communicated by the first network, which second channel overlaps the first network candidate channel list of the second channels in which the second network is recorded a first channel that is communicated by a network to determine a plurality of candidate channels in the second channels, and the determined candidate channels do not overlap The first channel that communicates with the first network, wherein a highest data transmission rate of the first network is greater than a highest data transmission rate of the second network; an evaluation unit that evaluates channel communication for each of the candidate channels Quality, the candidate channel corresponding to the communication quality of the preferred channel is selected as the working channel; and a monitoring unit monitors the number of times the second transceiver unit retransmits a packet on the working channel to determine whether to make the evaluation unit Updating the working channel; wherein, when the monitoring unit causes the evaluation unit to update the working channel, the evaluation unit evaluates channel communication quality for the candidate channels other than the current working channel, and selects the candidate corresponding to the preferred channel communication quality The channel is treated as an updated working channel; wherein the number of candidate channels is less than the total number of the second channels.

有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之二個較佳實施例的詳細說明中,將可清楚的呈現。The above and other technical contents, features and advantages of the present invention will be apparent from the following detailed description of the preferred embodiments of the invention.

在本發明被詳細描述之前,要注意的是,在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it is noted that in the following description, similar elements are denoted by the same reference numerals.

第一較佳實施例First preferred embodiment

參閱圖1,本發明網路連接裝置300之第一較佳實施例適用於耦接一第一網路100和一第二網路200。第一網路100對應多個可支援傳輸的第一頻道,且第一網路100內的多個第一無線裝置c1可共同使用其中一個第一頻道來無線連接到網路連接裝置300。同理,第二網路200對應多個可支援傳輸的第二頻道,且第二網路200內的多個第二無線 裝置c2可共同使用其中一個第二頻道來無線連接到網路連接裝置300。因此,第一無線裝置c1和第二無線裝置c2得以互傳資料。Referring to FIG. 1, a first preferred embodiment of the network connection device 300 of the present invention is adapted to couple a first network 100 and a second network 200. The first network 100 corresponds to a plurality of first channels that can support transmission, and the plurality of first wireless devices c1 in the first network 100 can jointly use one of the first channels to wirelessly connect to the network connection device 300. Similarly, the second network 200 corresponds to a plurality of second channels that can support transmission, and the plurality of second wireless channels in the second network 200 The device c2 can use one of the second channels in common to wirelessly connect to the network connection device 300. Therefore, the first wireless device c1 and the second wireless device c2 are able to transfer data to each other.

較佳地,本實施例的第一網路100是Wi-Fi無線區域網路,第二網路200是ZigBee無線區域網路,網路連接裝置300是Wi-Fi ZigBee網路連接裝置。第一無線裝置c1例如是配置有Wi-Fi收發功能的無線分享器(Wireless Access Point,WAP)、手機、電腦或其他具類似功能之電子裝置,第二無線裝置c2例如是配置有ZigBee收發功能的無線揚聲器、照明開關、空調器或其他具類似功能之電子裝置。Wi-FiZigBee網路連接裝置透過Wi-Fi與ZigBee格式轉換後可同時具備Wi-Fi及ZigBee的通訊能力,並且Wi-Fi的傳輸速率(量/頻率)遠高於ZigBee,Wi-Fi的傳送功率也遠高於ZigBee。且參閱圖2,如熟悉本技藝者所知,Wi-Fi無線區域網路可支援第一頻道包括有位於2.412GHz~2.462GHz頻段的11個頻道,ZigBee無線網路可支援第二頻道包括有位於2.405GHz~2.48GHz頻段的16個頻道。請注意,這兩個網路的可支援頻道彼此重疊,因此ZigBee的傳輸將遷就於Wi-Fi,使用其它訊號強度較好的工作頻道。Preferably, the first network 100 of the embodiment is a Wi-Fi wireless area network, the second network 200 is a ZigBee wireless area network, and the network connection device 300 is a Wi-Fi ZigBee network connection device. The first wireless device c1 is, for example, a wireless access point (WAP) equipped with a Wi-Fi transceiver function, a mobile phone, a computer, or other electronic device having similar functions, and the second wireless device c2 is configured with a ZigBee transceiver function, for example. Wireless speakers, light switches, air conditioners or other electronic devices with similar functions. The Wi-Fi ZigBee network connection device can convert Wi-Fi and ZigBee with Wi-Fi and ZigBee format, and the transmission rate (quantity/frequency) of Wi-Fi is much higher than that of ZigBee and Wi-Fi. The power is also much higher than ZigBee. Referring to FIG. 2, as known to those skilled in the art, the Wi-Fi wireless local area network can support the first channel including 11 channels in the frequency band of 2.412 GHz to 2.462 GHz, and the ZigBee wireless network can support the second channel including 16 channels in the 2.405 GHz to 2.48 GHz band. Please note that the supported channels of the two networks overlap each other, so the ZigBee transmission will be moved to Wi-Fi, using other working channels with better signal strength.

透過這些頻道,例如手機可經由Wi-Fi ZigBee網路連接裝置傳送資料到例如照明開關,達到遠端操控及管理的效果。Through these channels, for example, mobile phones can transmit data to, for example, a lighting switch via a Wi-Fi ZigBee network connection device, to achieve remote control and management effects.

同時參閱圖1和圖3,網路連接裝置300包含依序電連接的一第一收發單元4、一第一介面3、一處理器2、一第 二介面5及一第二收發單元6。另外,網路連接裝置300還包含一個電連接於處理器2的儲存器1。並且,處理器2包括一過濾單元21、一格式轉換器22及一頻道選擇器23。而儲存器1存有一位址表,記錄著第一無線裝置c1位址和第二無線裝置c2位址。Referring to FIG. 1 and FIG. 3, the network connection device 300 includes a first transceiver unit 4, a first interface 3, a processor 2, and a first The second interface 5 and the second transceiver unit 6. In addition, the network connection device 300 further includes a storage 1 electrically connected to the processor 2. Moreover, the processor 2 includes a filtering unit 21, a format converter 22, and a channel selector 23. The memory 1 stores an address table, which records the address of the first wireless device c1 and the address of the second wireless device c2.

以本實施例為例,較佳地,處理器2是微控制器(Micro-control Unit,MCU),第一介面3為適用於Wi-Fi無線網路的SDIO(Secure Digital Input/Output,安全數位輸入/輸出)介面,第一收發單元4是Wi-Fi網路介面裝置,第二介面5為適用於ZigBee無線網路的UART(Universal Asynchronous Receiver/Transmitter,通用非同步接收發送)介面,第二收發單元6是ZigBee網路介面裝置。In this embodiment, for example, the processor 2 is a Micro-control Unit (MCU), and the first interface 3 is a SDIO (Secure Digital Input/Output) for the Wi-Fi wireless network. The digital input/output interface, the first transceiver unit 4 is a Wi-Fi network interface device, and the second interface 5 is a UART (Universal Asynchronous Receiver/Transmitter) interface for the ZigBee wireless network. The two transceiver unit 6 is a ZigBee network interface device.

Wi-Fi ZigBee網路連接裝置300具有Wi-Fi網路介面裝置、微控制器及ZigBee網路介面裝置,彼此之間可透過SDIO介面和UART介面進行命令及數據的溝通。微控制器負責透過Wi-Fi網路介面裝置和SDIO介面接收第一網路傳來的命令,將其解譯成ZigBee命令(ZCL command),再透過UART介面和ZigBee網路介面裝置來傳送到第二網路,之後ZigBee網路介面裝置再將第二網路的結果或狀態傳回微控制器,再轉換成Wi-Fi格式回覆給第一網路。同理,Wi-Fi ZigBee網路連接裝置300也能接收第二網路傳來的命令,並解譯成Wi-Fi命令傳送到第一網路,再將第一網路的結果或狀態回覆給第二網路。The Wi-Fi ZigBee network connection device 300 has a Wi-Fi network interface device, a microcontroller, and a ZigBee network interface device, and can communicate commands and data through the SDIO interface and the UART interface. The microcontroller is responsible for receiving commands from the first network through the Wi-Fi network interface device and the SDIO interface, interpreting it as a ZigBee command (ZCL command), and transmitting it to the ZigBee network interface device through the UART interface and the ZigBee network interface device. The second network, after which the ZigBee network interface device transmits the result or state of the second network back to the microcontroller, and then converts it into a Wi-Fi format reply to the first network. Similarly, the Wi-Fi ZigBee network connection device 300 can also receive commands from the second network and interpret the Wi-Fi commands to the first network, and then reply the results or status of the first network. Give the second network.

在第一網路100和網路連接裝置300使用其中一個第 一頻道進行接取的情況下,透過頻道選擇器23在第二網路候選頻道清單中標記哪些第二頻道重疊於第一網路100所使用之該第一頻道,剩餘的第二頻道即為候選頻道。其中,第二網路候選頻道清單是一個記錄有第二網路候選頻道的清單。Using one of the first network 100 and the network connection device 300 In the case where a channel is accessed, the channel selector 23 marks in the second network candidate channel list which second channel overlaps the first channel used by the first network 100, and the remaining second channel is Candidate channel. The second network candidate channel list is a list in which the second network candidate channel is recorded.

頻道選擇器23從該等候選的第二頻道中挑出一個做為和第二網路200通訊的工作頻道,且挑出的第二頻道不重疊於第一網路100和網路連接裝置300間使用的該第一頻道。前述使用的該第一頻道可以是第一無線裝置c1決定,或由使用者指定。第一收發單元4經由前述用以接取的該第一頻道接收第一網路100傳來的一第一封包,並透過第一介面3送給過濾單元21。過濾單元21分析出第一封包載有的一來源位址和一目的位址,並比對位址表的記錄來判斷第一封包是第一網路100的哪一第一無線裝置c1要傳送給哪一網路的哪一無線裝置。The channel selector 23 picks out one of the candidate second channels as a working channel for communication with the second network 200, and the selected second channel does not overlap the first network 100 and the network connection device 300. The first channel used between. The first channel used in the foregoing may be determined by the first wireless device c1 or specified by the user. The first transceiver unit 4 receives a first packet sent by the first network 100 via the first channel for receiving, and sends the first packet to the filtering unit 21 through the first interface 3. The filtering unit 21 analyzes a source address and a destination address carried by the first packet, and compares the records of the address table to determine which first wireless device c1 of the first network 100 is to be transmitted. Which wireless device is given to which network.

當過濾單元21判斷出第一封包是第一網路100的其中一第一無線裝置c1要傳送第二網路200的其中一第二無線裝置c2,格式轉換器22會將符合第一網路100傳輸格式的該第一封包解譯成符合第二網路200傳輸格式的一第二封包,再透過第二介面5和第二收發單元6傳出。其中,第二收發單元6是經由一候選頻道清單中挑出的第二頻道將該第二封包傳遞給第二網路200中該目的位址指向的那個第二無線裝置c2。When the filtering unit 21 determines that the first packet is one of the first wireless devices c1 of the first network 100 to transmit the second wireless device c2 of the second network 200, the format converter 22 will conform to the first network. The first packet of the 100 transmission format is interpreted as a second packet conforming to the transmission format of the second network 200, and then transmitted through the second interface 5 and the second transceiver unit 6. The second transceiver unit 6 transmits the second packet to the second wireless device c2 pointed to by the destination address in the second network 200 via the second channel selected in the candidate channel list.

反之,網路連接裝置300收到第二網路200傳來的第 二封包時,也可以循類似前述方式將第二封包解譯成符合第一網路100傳輸格式的第一封包,然後提供給第一網路100。On the contrary, the network connection device 300 receives the second network 200 In the case of two packets, the second packet can also be interpreted into a first packet conforming to the first network 100 transmission format in a similar manner as described above, and then provided to the first network 100.

較特別的是,第一網路100和第二網路200都主要工作在2.4GHz頻段,且各個頻道的通訊品質良莠不齊,所以頻道選擇器23特地執行本發明頻道選擇方法之較佳實施例來優化封包傳輸效率。頻道選擇器23具有一評估單元24、一監測單元25和一標記單元26,且頻道選擇方法包括圖4的以下步驟。More specifically, both the first network 100 and the second network 200 mainly operate in the 2.4 GHz band, and the communication quality of each channel is not uniform, so the channel selector 23 specifically performs the preferred embodiment of the channel selection method of the present invention. Optimize packet transmission efficiency. The channel selector 23 has an evaluation unit 24, a monitoring unit 25, and a marking unit 26, and the channel selection method includes the following steps of FIG.

步驟70:標記單元26讀取目前用以接取第一網路的第一頻道。Step 70: The marking unit 26 reads the first channel currently used to access the first network.

步驟71:當標記單元26讀取到目前用以接取的第一頻道,在第二網路候選頻道清單中標記哪些第二頻道重疊於目前用以接取的第一頻道,並視其他第二頻道為候選頻道,以待評估。若沒有讀到目前用以接取的第一頻道,將所有第二頻道都視為候選頻道,此時所有候選頻道皆未被標記。在本實施例中,即在ZigBee頻道清單上標記Wi-Fi所佔據使用的頻道,其它沒有標記的頻道即為ZigBee可用之候選頻道。Step 71: When the marking unit 26 reads the first channel currently used for receiving, in the second network candidate channel list, which second channel is overlapped with the first channel currently used for receiving, and according to other The second channel is a candidate channel for evaluation. If the first channel currently used for access is not read, all the second channels are regarded as candidate channels, and all candidate channels are not marked at this time. In this embodiment, the channel occupied by Wi-Fi is marked on the ZigBee channel list, and other unmarked channels are candidate channels available for ZigBee.

步驟72:評估單元24評估每一個未標記候選頻道的一品質信號。較佳地,本實施例的品質信號是鏈結品質指標(Link Quality Indicator,LQI)。但是例如接收信號強度指標(Receive Signal Strength Indicator,RSSI)或是其他可以展現頻道通訊品質的品質信號,也可以做為評估封包的品質指 標。Step 72: The evaluation unit 24 evaluates a quality signal for each unmarked candidate channel. Preferably, the quality signal of this embodiment is a Link Quality Indicator (LQI). However, for example, the Receive Signal Strength Indicator (RSSI) or other quality signals that can indicate the channel communication quality can also be used as the quality of the evaluation packet. Standard.

各未標記候選頻道的評估過程是:先使第二收發單元6經由該候選頻道傳遞一品質偵測封包給其中一第二無線裝置c2,且收到該其中一第二無線裝置c2回傳的品質回應封包後,基於品質回應封包的強度和品質計算出對應的品質信號。The evaluation process of each unmarked candidate channel is: first, the second transceiver unit 6 transmits a quality detection packet to the second wireless device c2 via the candidate channel, and receives the return of the second wireless device c2. After the quality response packet, the corresponding quality signal is calculated based on the strength and quality of the quality response packet.

當然,在另一態樣中,第二收發單元6也可以將品質偵測封包廣播給所有第二無線裝置c2,且評估單元24會評估所有第二無線裝置c2傳回的品質回應封包來計算出品質信號。Of course, in another aspect, the second transceiver unit 6 can also broadcast the quality detection packet to all the second wireless devices c2, and the evaluation unit 24 evaluates the quality response packets returned by all the second wireless devices c2 to calculate. Quality signal.

步驟73:評估單元24挑出品質信號最佳的候選頻道(干擾最小的頻道)當作一工作頻道,並使第二收發單元6廣播一換頻指示封包,以通知所有第二無線裝置c2將要切換到該工作頻道來接取封包。特別說明的是,此處的換頻是指更換到另一第二頻道,即跳頻。Step 73: The evaluation unit 24 picks out the candidate channel with the best quality signal (the channel with the least interference) as a working channel, and causes the second transceiver unit 6 to broadcast a frequency change indication packet to notify all the second wireless devices c2 that it is going to Switch to the working channel to pick up the packet. In particular, the frequency change here refers to changing to another second channel, that is, frequency hopping.

步驟74:評估單元24使第二收發單元6切換到該工作頻道,做為傳送第二封包的基礎。Step 74: The evaluation unit 24 causes the second transceiving unit 6 to switch to the working channel as a basis for transmitting the second packet.

步驟75:隨著時間過去,第二收發單元6會依序送出多個第二封包。監測單元25每隔一段時間,根據第二收發單元6重傳同一個第二封包的次數來更新最高重傳次數,直到最高重傳次數多於一重傳門檻,便跳到步驟76。Step 75: As time passes, the second transceiver unit 6 sequentially sends a plurality of second packets. The monitoring unit 25 updates the highest number of retransmissions according to the number of times the second transceiver unit 6 retransmits the same second packet at intervals, until the highest number of retransmissions exceeds one retransmission threshold, and then jumps to step 76.

換句話說,當封包於該工作頻道重傳的次數不高於所預設的重傳門檻值時,監測單元25繼續監測各封包的最高重傳次數;當封包於該工作頻道重傳的次數高於該重傳門 檻值時,流程便跳到步驟76。In other words, when the number of retransmissions of the packet on the working channel is not higher than the preset retransmission threshold, the monitoring unit 25 continues to monitor the maximum number of retransmissions of each packet; when the packet is retransmitted on the working channel Higher than the retransmission gate When the value is depreciated, the flow jumps to step 76.

所謂重傳次數是指第二收發單元6送出一個第二封包後,被目的位址指向的第二無線裝置c2要求重傳該第二封包的次數。通常工作頻道的通訊品質越差,越容易被要求重傳。The number of retransmissions refers to the number of times the second wireless device c2 pointed by the destination address requests to retransmit the second packet after the second transceiver unit 6 sends a second packet. The poorer the communication quality of the working channel, the easier it is to be retransmitted.

而監測單元25主要是在目前重傳次數>最高重傳次數時,才會以目前重傳次數更新最高重傳次數。於本實施例中,較佳地,當第二收發單元6每隔1秒送出一個第二封包,重傳門檻=10,但不以此為限,此重傳門檻值可隨著期望傳輸效率而改變。The monitoring unit 25 mainly updates the maximum number of retransmissions with the current number of retransmissions when the current number of retransmissions > the maximum number of retransmissions. In this embodiment, preferably, when the second transceiver unit 6 sends a second packet every 1 second, the retransmission threshold is 10, but not limited thereto, the retransmission threshold may be along with the desired transmission efficiency. And change.

步驟76:當封包於該工作頻道重傳的次數高於該重傳門檻值時,標記單元26標記該工作頻道於第二網路候選頻道清單。Step 76: When the number of times the packet is retransmitted on the working channel is higher than the retransmission threshold, the marking unit 26 marks the working channel in the second network candidate channel list.

步驟77:監測單元25檢視未被標記的候選頻道數目是否低於一未標記門檻。若是,清除第二網路候選頻道清單的標記,然後跳回步驟72。若否,直接跳回步驟72。Step 77: The monitoring unit 25 checks if the number of unmarked candidate channels is below an unmarked threshold. If so, the flag of the second network candidate channel list is cleared, and then jump back to step 72. If not, jump back directly to step 72.

所以,只要目前工作頻道的最高重傳次數過大,頻道選擇器23便判斷傳輸效率不佳而進一步選出另一個通訊品質較優的候選頻道來更新工作頻道,以有效維持高效率傳輸表現。Therefore, as long as the maximum number of retransmissions of the current working channel is too large, the channel selector 23 judges that the transmission efficiency is not good and further selects another candidate channel with better communication quality to update the working channel to effectively maintain high-efficiency transmission performance.

該頻道選擇器23可以是一軟體,亦可以是一硬體。較佳地,於本實施例中,是於處理器2中寫入一個記錄有該頻道選擇方法的軟體,利用該軟體記憶各頻道的跳頻判斷機制,並將錯誤重傳次數記錄於儲存器1中。The channel selector 23 can be a software or a hardware. Preferably, in this embodiment, a software that records the channel selection method is written in the processor 2, and the software uses the software to memorize the frequency hopping judgment mechanism of each channel, and records the number of error retransmissions in the storage. 1 in.

且本實施例的較佳未標記門檻不低於第二頻道總數(總數=16)的四分之一,例如未標記門檻可以選為5。當未被標記的候選頻道數目低於未標記門檻,只能從少數頻道中挑選工作頻道,不容易維持高傳輸效率。又,頻道品質隨著時間變化,先前被標記的頻道此時可能通訊品質已改善,所以本實施例特地在未被標記的候選頻道數過少時,清除第二網路候選頻道清單的標記,然後重新評估所有的候選頻道通訊品質。Moreover, the preferred unmarked threshold of the embodiment is not less than a quarter of the total number of second channels (total = 16), for example, the unmarked threshold may be selected as 5. When the number of unlabeled candidate channels is lower than the unmarked threshold, the working channel can only be selected from a few channels, and it is not easy to maintain high transmission efficiency. Moreover, the channel quality changes with time, and the previously marked channel may have improved communication quality at this time. Therefore, in this embodiment, when the number of unmarked candidate channels is too small, the flag of the second network candidate channel list is cleared, and then Re-evaluate all candidate channel communication qualities.

需提醒的是,如果進行通訊的第一頻道有異動,則頻道選擇方法的流程會跳回步驟71,重新定義候選頻道。這是因為第一網路100的最高資料傳輸速率較第二網路200為高,傳送功率也較高,需要品質較佳的頻道來維持高傳輸效率,所以優先讓第一網路100選取期望頻道。It should be reminded that if there is a change in the first channel of communication, the flow of the channel selection method will jump back to step 71 to redefine the candidate channel. This is because the highest data transmission rate of the first network 100 is higher than that of the second network 200, and the transmission power is also high, and a channel of better quality is required to maintain high transmission efficiency, so that the first network 100 is preferentially selected. Channel.

本實施例透過網路連接裝置300之微控制器(MCU)得知Wi-Fi目前使用的第一頻道,讓頻道選擇器23知道剩餘可用的第二頻道是哪些,ZigBee網路介面裝置再對這些候選的第二頻道發送訊號,進行LQI值(Link Quality)的測量,將可找到之LQI最大值的頻道,預設為干擾最小的工作頻道(要用的新頻道)。In this embodiment, the first channel used by Wi-Fi is known through the microcontroller (MCU) of the network connection device 300, so that the channel selector 23 knows which of the remaining available second channels, and the ZigBee network interface device is correct. These candidate second channels transmit signals, perform LQI value (Link Quality) measurement, and preset the channel with the LQI maximum value that can be found as the working channel with the least interference (the new channel to be used).

綜上所述,由於Wi-Fi ZigBee網路連接裝置在ZigBee網路中扮演Coordinator的角色,所以可以在跳頻之前發送廣播封包,通知所屬的第二無線裝置c2(例如路由器(Router)及終端裝置(End device))換到新頻道上。In summary, since the Wi-Fi ZigBee network connection device plays the role of a Coordinator in the ZigBee network, the broadcast packet can be sent before the frequency hopping to notify the associated second wireless device c2 (for example, a router and a terminal). The device (End device) is switched to the new channel.

運作期間只要在傳送/接收封包時,記憶及統計錯誤重 傳的次數,倘若該數字高於設定的最大值,則標記該頻道是干擾很大的,再對其它可用頻道發送訊號,進行LQI值(Link Quality)的測量,找到LQI最大值的頻道即為下一個可供使用的工作頻道,並通知其它裝置換到新頻道。Memory and statistical errors are heavy when transmitting/receiving packets during operation The number of transmissions, if the number is higher than the set maximum value, marking the channel is very disturbing, and then sending signals to other available channels, performing LQI value (Link Quality) measurement, and finding the channel with the highest LQI value is The next available working channel and notify other devices to switch to the new channel.

由於不斷地增加ZigBee頻道清單上的標記,會造成可用頻道越來越少,所以將設定”可用頻道最小值(即未標記門檻)”,如果可用頻道的個數低於此數值,則取消Wi-Fi頻道以外的標記,重新進行LQI值的測量,以決定新的工作頻道。As the number of available channels is reduced by continuously increasing the mark on the ZigBee channel list, the "available channel minimum (ie, unmarked threshold)" will be set. If the number of available channels is lower than this value, Wi will be canceled. The mark other than the -Fi channel, the LQI value is measured again to determine the new working channel.

又,本發明適用於兩不同傳輸速率設備之間的無線傳輸。雖然前述提到第一網路100是Wi-Fi無線區域網路,第二網路200是ZigBee無線區域網路,但本實施例也可以適用其他網路類型,只要滿足第一網路100的最高資料傳輸速率大於第二網路200的最高資料傳輸速率即可。當然,當第一網路100和第二網路200的類型改變,也需對應地調整第一介面3和第二介面5類型。通常操作於2.4GHz頻段使用DSSS(Direct Sequence Spread Spectrum,直接序列展頻)技術的網路有無線USB(universal serial bus,通用串列匯流排)、2.4GHz無線電話和CDMA(Code Division Multiple Access,分碼多工接取)系統,這些都可以選來當作本實施例的第一網路100或第二網路200。Moreover, the present invention is applicable to wireless transmission between two different transmission rate devices. Although the foregoing first network 100 is a Wi-Fi wireless local area network, and the second network 200 is a ZigBee wireless local area network, this embodiment can also be applied to other network types as long as the first network 100 is satisfied. The highest data transmission rate is greater than the highest data transmission rate of the second network 200. Of course, when the types of the first network 100 and the second network 200 are changed, the types of the first interface 3 and the second interface 5 are also adjusted correspondingly. The network that normally operates in the 2.4 GHz band using DSSS (Direct Sequence Spread Spectrum) technology includes wireless USB (universal serial bus), 2.4 GHz radiotelephone, and CDMA (Code Division Multiple Access, The code division multiplexing access system) can be selected as the first network 100 or the second network 200 of the present embodiment.

值得注意的是,頻道選擇器23亦可獨立於網路連接裝置300外,且網路連接裝置300的實現方式不限於橋接器,也可以是閘道器、路由器或其他。此外,儲存器1也可 以是如圖5般內建於處理器2’中。It should be noted that the channel selector 23 can also be independent of the network connection device 300, and the implementation of the network connection device 300 is not limited to a bridge, but can also be a gateway, a router or the like. In addition, the storage 1 can also It is built into the processor 2' as shown in FIG.

第二較佳實施例Second preferred embodiment

參閱圖6,第二較佳實施例的網路連接裝置300”能利用第二網路連接多個第二無線裝置c2,其中網路連接裝置300”不具有顯示設備或輸入設備,且無法直接連接外部網路。Referring to FIG. 6, the network connection device 300" of the second preferred embodiment can connect a plurality of second wireless devices c2 by using a second network, wherein the network connection device 300" does not have a display device or an input device, and cannot directly Connect to an external network.

而網路連接裝置300”為了能以第一網路連接作為第一無線裝置的無線服務提供裝置c1’,首先作為另一個第一無線裝置的可攜式無線裝置c1”會和網路連接裝置300”建立一個點對點(ad-hoc)無線網路,之後,可攜式無線裝置c1”將用以登入第一網路的資訊傳送給網路連接裝置300”。然後,網路連接裝置300”使用收到的登入資訊連接上第一網路,以和無線服務提供裝置c1’進行通訊。The network connection device 300", in order to connect the wireless service providing device c1' as the first wireless device with the first network, firstly connects to the network as the portable wireless device c1" of the other first wireless device. 300" establishes an ad-hoc wireless network, after which the portable wireless device c1" transmits information for logging in to the first network to the network connection device 300". Then, the network connection device 300" The first network is connected using the received login information to communicate with the wireless service providing device c1'.

較佳地,本實施例的第一網路是Wi-Fi無線區域網路,第二網路是ZigBee無線區域網路。網路連接裝置300”是Wi-Fi ZigBee網路連接裝置;無線服務提供裝置c1’例如是無線分享器(Wireless Access Point,WAP);可攜式無線裝置c1”例如是配置有Wi-Fi收發功能的手機、電腦或其他具類似功能之電子裝置;第二無線裝置c2例如是配置有ZigBee收發功能的無線揚聲器、照明開關、空調器或其他具類似功能之電子裝置。特別說明的是,本發明可攜式無線裝置c1”與網路連接裝置300”建立連線的方式不必侷限於前述說明,只要是合理的網路連結即可,例如是乙太網路。同時,上述網路連接裝置300”亦不限於不具有顯示設備或輸 入設備,且無法直接連接外部網路的裝置。Preferably, the first network in this embodiment is a Wi-Fi wireless area network, and the second network is a ZigBee wireless area network. The network connection device 300" is a Wi-Fi ZigBee network connection device; the wireless service providing device c1' is, for example, a wireless access point (WAP); and the portable wireless device c1" is configured to be equipped with Wi-Fi transceiver A functional mobile phone, a computer or other electronic device having similar functions; the second wireless device c2 is, for example, a wireless speaker configured with a ZigBee transceiver function, a lighting switch, an air conditioner or other electronic device having similar functions. In particular, the manner in which the portable wireless device c1" and the network connection device 300" of the present invention are connected is not limited to the foregoing description, as long as it is a reasonable network connection, such as an Ethernet network. Meanwhile, the above network connection device 300" is not limited to having no display device or losing Devices that are connected to the device and cannot be directly connected to the external network.

如此,當網路連接裝置300”和無線服務提供裝置c1’經由一個第一頻道進行通訊,網路連接裝置300”可從第二頻道中選出一個不重疊於前述第一頻道的最佳通訊品質的工作頻道來和第二無線裝置c2建立連結(細節部分如第一實施例所述,在此不再贅述),而使可攜式無線裝置c1”可以遠端操控及管理該等第二無線裝置c2。Thus, when the network connection device 300" and the wireless service providing device c1' communicate via a first channel, the network connection device 300" can select an optimal communication quality from the second channel that does not overlap the first channel. The working channel is connected to the second wireless device c2 (the details are as described in the first embodiment, and will not be described here), so that the portable wireless device c1" can remotely control and manage the second wireless. Device c2.

綜上所述,前述較佳實施例的頻道選擇方法、頻道選擇器及網路連接裝置具有下列優點:In summary, the channel selection method, the channel selector and the network connection device of the foregoing preferred embodiment have the following advantages:

(1)具頻道記憶機制,讓網路連接裝置從不重疊於第一網路目前接取之第一頻道的那些第二頻道中選出適合的工作頻道,達到避開干擾大的頻道的效果。(1) With a channel memory mechanism, the network connection device selects a suitable working channel from those second channels that do not overlap the first channel currently accessed by the first network, so as to avoid the effect of the channel with large interference.

(2)降低網路連接裝置錯誤重傳的頻率,提昇網路運作效能。(2) Reduce the frequency of incorrect retransmission of the network connection device and improve the performance of the network.

(3)選出通訊品質較佳的工作頻道,使網路連接裝置避免錯誤重傳造成的電能浪費。(3) Selecting a working channel with better communication quality, so that the network connection device avoids waste of power caused by incorrect retransmission.

惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。The above is only the preferred embodiment of the present invention, and the scope of the invention is not limited thereto, that is, the simple equivalent changes and modifications made by the scope of the invention and the description of the invention are All remain within the scope of the invention patent.

100‧‧‧第一網路100‧‧‧First network

25‧‧‧監測單元25‧‧‧Monitoring unit

200‧‧‧第二網路200‧‧‧Second network

26‧‧‧標記單元26‧‧‧Marking unit

300‧‧‧網路連接裝置300‧‧‧Network connection device

3‧‧‧第一介面3‧‧‧ first interface

300’‧‧‧網路連接裝置300’‧‧‧Network connection device

4‧‧‧第一收發單元4‧‧‧First transceiver unit

300”‧‧‧網路連接裝置300”‧‧‧Network connection device

5‧‧‧第二介面5‧‧‧second interface

1‧‧‧儲存器1‧‧‧Storage

6‧‧‧第二收發單元6‧‧‧Second transceiver unit

2、2’‧‧‧處理器2, 2'‧‧‧ processor

70~77‧‧‧步驟70~77‧‧‧Steps

21‧‧‧過濾單元21‧‧‧Filter unit

c1‧‧‧第一無線裝置C1‧‧‧First wireless device

22‧‧‧格式轉換器22‧‧‧ format converter

c1’‧‧‧無線服務提供裝置C1’‧‧‧Wireless service provider

23‧‧‧頻道選擇器23‧‧‧Channel selector

c1”‧‧‧可攜式無線裝置C1"‧‧‧ portable wireless device

24‧‧‧評估單元24‧‧‧Evaluation unit

c2‧‧‧第二無線裝置C2‧‧‧second wireless device

圖1是一示意圖,說明網路連接裝置用以耦接第一網路和第二網路之第一實施例;圖2是一示意圖,說明第一頻道和第二頻道位於 2.4GHz頻段;圖3是一方塊圖,說明第一較佳實施例的網路連接裝置;圖4是一流程圖,說明本發明頻道選擇方法的較佳實施例;圖5是一方塊圖,說明網路連接裝置的另一態樣;及圖6是一示意圖,說明網路連接裝置之第二較佳實施例。1 is a schematic diagram showing a first embodiment of a network connection device for coupling a first network and a second network; FIG. 2 is a schematic diagram showing the first channel and the second channel are located FIG. 3 is a block diagram illustrating a network connection apparatus of the first preferred embodiment; FIG. 4 is a flow chart illustrating a preferred embodiment of the channel selection method of the present invention; FIG. 5 is a block diagram. Another aspect of the network connection device is illustrated; and Figure 6 is a schematic diagram illustrating a second preferred embodiment of the network connection device.

300‧‧‧網路連接裝置300‧‧‧Network connection device

1‧‧‧儲存器1‧‧‧Storage

2‧‧‧處理器2‧‧‧ Processor

21‧‧‧過濾單元21‧‧‧Filter unit

22‧‧‧格式轉換器22‧‧‧ format converter

23‧‧‧頻道選擇器23‧‧‧Channel selector

24‧‧‧評估單元24‧‧‧Evaluation unit

25‧‧‧監測單元25‧‧‧Monitoring unit

26‧‧‧標記單元26‧‧‧Marking unit

3‧‧‧第一介面3‧‧‧ first interface

4‧‧‧第一收發單元4‧‧‧First transceiver unit

5‧‧‧第二介面5‧‧‧second interface

6‧‧‧第二收發單元6‧‧‧Second transceiver unit

Claims (14)

一種頻道選擇方法,適用於從一網路的多個候選頻道中決定一個供該網路進行通訊的工作頻道,包含以下步驟:(A)讀取另一網路進行通訊的一頻道,並根據該另一網路進行通訊的該頻道,在一個記錄有該網路之該等候選頻道的頻道清單中標記出重疊於該另一網路進行通訊的該頻道,以決定該網路的該等候選頻道,且該等候選頻道不重疊於該另一網路進行通訊的該頻道,其中該另一網路的最高資料傳輸速率大於該網路的最高資料傳輸速率;(B)對該網路的每一個該候選頻道評估頻道通訊品質,並挑出對應較佳頻道通訊品質的該候選頻道當作該工作頻道;(C)切換到該工作頻道,以供該網路進行通訊;(D)傳送一封包,監測重傳該封包的次數;(E)根據該封包的重傳次數,決定是否更新該工作頻道;及(F)當決定更新該工作頻道,為目前工作頻道以外的該等候選頻道評估頻道通訊品質,並挑出對應較佳頻道通訊品質的該候選頻道當作更新後的工作頻道;其中,該網路的該等候選頻道數目少於該網路的可支援傳輸頻道總數。 A channel selection method is suitable for determining a working channel for communication from a plurality of candidate channels of a network, comprising the steps of: (A) reading a channel for communication by another network, and according to The channel communicated by the other network, the channel list of the candidate channels recording the network is marked with the channel overlapping the other network for communication to determine the network. a candidate channel, and the candidate channels do not overlap the channel in which the other network communicates, wherein the highest data transmission rate of the other network is greater than the highest data transmission rate of the network; (B) the network Each of the candidate channels evaluates the communication quality of the channel, and selects the candidate channel corresponding to the communication quality of the preferred channel as the working channel; (C) switches to the working channel for communication by the network; (D) Transmitting a packet to monitor the number of times the packet is retransmitted; (E) deciding whether to update the working channel based on the number of retransmissions of the packet; and (F) when deciding to update the working channel as a candidate other than the current working channel Total transmission channel can support wherein the number of candidate channels is less than those of the network of the network; communication channel quality of channel estimation, and the corresponding pick preferred communication channel quality of the channel as a candidate after the updating of the channel. 依據申請專利範圍第1項所述之頻道選擇方法,更包含 介於步驟(E)和(F)間的一步驟(G):當決定更新該工作頻道,標記目前工作頻道所對應的該候選頻道;且根據更新後的工作頻道來重複步驟(C)~(E)、(G)和(F),直到未被標記的候選頻道的數目少於一未標記門檻,就清除所有該等候選頻道的標記。 According to the channel selection method described in item 1 of the patent application scope, a step (G) between steps (E) and (F): when it is decided to update the working channel, mark the candidate channel corresponding to the current working channel; and repeat the step (C) according to the updated working channel~ (E), (G), and (F), until the number of unmarked candidate channels is less than an unmarked threshold, the flags of all of the candidate channels are cleared. 依據申請專利範圍第1項所述之頻道選擇方法,其中,步驟(A)是根據Wi-Fi(無線保真)網路進行通訊的該頻道,決定出ZigBee(群蜂)網路的該等候選頻道;且步驟(B)是為ZigBee網路的該等候選頻道評估頻道通訊品質。 According to the channel selection method of claim 1, wherein the step (A) is based on the Wi-Fi (Wireless Fidelity) network, and the ZigBee network is determined. Candidate channel; and step (B) is to evaluate the channel communication quality for the candidate channels of the ZigBee network. 一種頻道選擇器,適用於一個用以耦接一第一網路和一第二網路的網路連接裝置中,該第一網路對應至少一個第一頻道,該第二網路對應多個第二頻道,且該頻道選擇器包括:一標記單元,讀取該第一網路進行通訊的該至少一第一頻道,並根據該第一網路進行通訊的該至少一第一頻道,在一個記錄有該第二網路之該等第二頻道的第二網路候選頻道清單中標記出哪些第二頻道重疊於該第一網路進行通訊的該至少一第一頻道,以決定該等第二頻道中的多個候選頻道,且決定出的該等候選頻道不重疊於該第一網路進行通訊的該至少一第一頻道,其中該第一網路的最高資料傳輸速率大於該第二網路的最高資料傳輸速率; 一評估單元,為每一該候選頻道評估頻道通訊品質,以挑出對應較佳頻道通訊品質的該候選頻道當作該網路連接裝置用以與該第二網路通訊的一工作頻道;及一監測單元,當該網路連接裝置經由該工作頻道傳遞一封包給該第二網路,該監測單元監測該網路連接裝置重傳該封包的次數,以決定是否令該評估單元更新該工作頻道;其中,當該監測單元令該評估單元更新該工作頻道,該評估單元為目前工作頻道以外的該等候選頻道評估頻道通訊品質,並挑出對應較佳頻道通訊品質的該候選頻道當作更新後的工作頻道;其中,該等候選頻道數目少於該等第二頻道總數。 A channel selector is applicable to a network connection device for coupling a first network and a second network, where the first network corresponds to at least one first channel, and the second network corresponds to multiple a second channel, and the channel selector includes: a marking unit, reading the at least one first channel that the first network communicates, and the at least one first channel that communicates according to the first network, Determining which of the second network candidate channel lists of the second channels of the second network are marked with the second channel overlapping the first network to communicate with the first network to determine the first channel a plurality of candidate channels in the second channel, and the determined candidate channels do not overlap the at least one first channel that the first network communicates, wherein the highest data transmission rate of the first network is greater than the first The highest data transmission rate of the second network; An evaluation unit that evaluates channel communication quality for each of the candidate channels to select the candidate channel corresponding to the preferred channel communication quality as a working channel used by the network connection device to communicate with the second network; a monitoring unit, when the network connection device transmits a packet to the second network via the working channel, the monitoring unit monitors the number of times the network connection device retransmits the packet to determine whether to enable the evaluation unit to update the work a channel; wherein, when the monitoring unit causes the evaluation unit to update the working channel, the evaluation unit evaluates channel communication quality for the candidate channels other than the current working channel, and selects the candidate channel corresponding to the preferred channel communication quality as The updated working channel; wherein the number of candidate channels is less than the total number of the second channels. 依據申請專利範圍第4項所述之頻道選擇器,其中,當該監測單元令該評估單元更新該工作頻道,該標記單元會標記目前工作頻道所對應的該候選頻道;其中,該評估單元為每一未標記的候選頻道評估頻道通訊品質,以挑出對應較佳頻道通訊品質的該候選頻道當作更新後的工作頻道,且該標記單元會根據該監測單元對更新後工作頻道的監測來選擇性地標記更新後工作頻道所對應的該候選頻道;當未標記的候選頻道的數目少於一未標記門檻,該標記單元就清除所有該等候選頻道的標記。 The channel selector according to claim 4, wherein when the monitoring unit causes the evaluation unit to update the working channel, the marking unit marks the candidate channel corresponding to the current working channel; wherein the evaluation unit is Each unmarked candidate channel evaluates channel communication quality to select the candidate channel corresponding to the preferred channel communication quality as the updated working channel, and the marking unit monitors the updated working channel according to the monitoring unit. The candidate channel corresponding to the updated working channel is selectively marked; when the number of unmarked candidate channels is less than an unmarked threshold, the marking unit clears the markings of all of the candidate channels. 依據申請專利範圍第4項所述之頻道選擇器,其中,該標記單元從ZigBee(群蜂)網路的該等第二頻道中決定出 該等候選頻道,且該等候選頻道不重疊於該網路連接裝置用以與Wi-Fi(無線保真)網路通訊的該至少一第一頻道。 According to the channel selector of claim 4, wherein the marking unit is determined from the second channels of the ZigBee network The candidate channels, and the candidate channels do not overlap the at least one first channel used by the network connection device to communicate with a Wi-Fi (Wireless Fidelity) network. 依據申請專利範圍第4項所述之頻道選擇器,其中,該頻道選擇器係為一軟體。 A channel selector according to claim 4, wherein the channel selector is a software. 一種網路連接裝置,適用於耦接一第一網路和一第二網路,該第一網路對應一第一頻道,該第二網路對應多個第二頻道,該網路連接裝置包括:一第一收發單元,用以經由該第一頻道與該第一網路進行通訊;一第二收發單元,用以經由一工作頻道與該第二網路進行通訊;及一處理器,與該第一收發單元和該第二收發單元電連接,更包括:一頻道選擇器,具有:一標記單元,讀取該第一網路進行通訊的該第一頻道,並根據該第一網路進行通訊的該第一頻道,在一個記錄有該第二網路之該等第二頻道的第二網路候選頻道清單中標記出哪一第二頻道重疊於該第一網路進行通訊的該第一頻道,以決定該等第二頻道中的多個候選頻道,且決定出的該等候選頻道不重疊於該第一網路進行通訊的該第一頻道,其中該第一網路的最高資料傳輸速率大於該第二網路的最高資料傳輸速率; 一評估單元,為每一該候選頻道評估頻道通訊品質,以挑出對應較佳頻道通訊品質的該候選頻道當作該工作頻道;及一監測單元,監測該第二收發單元於該工作頻道重傳一封包的次數,以決定是否令該評估單元更新該工作頻道;其中,當該監測單元令該評估單元更新該工作頻道,該評估單元為目前工作頻道以外的該等候選頻道評估頻道通訊品質,並挑出對應較佳頻道通訊品質的該候選頻道當作更新後的工作頻道;其中,該等候選頻道數目少於該等第二頻道總數。 A network connection device, configured to be coupled to a first network and a second network, where the first network corresponds to a first channel, and the second network corresponds to a plurality of second channels, the network connection device The method includes: a first transceiver unit configured to communicate with the first network via the first channel; a second transceiver unit configured to communicate with the second network via a working channel; and a processor, Electrically connecting with the first transceiver unit and the second transceiver unit, further comprising: a channel selector, having: a marking unit, reading the first channel for communication by the first network, and according to the first network The first channel for communicating, marking, in a second network candidate channel list of the second channels in which the second network is recorded, which second channel is overlapped with the first network for communication The first channel is configured to determine a plurality of candidate channels in the second channel, and the determined candidate channels do not overlap the first channel in which the first network communicates, wherein the first network The highest data transmission rate is greater than the second network High data transfer rate; An evaluation unit that evaluates channel communication quality for each of the candidate channels to select the candidate channel corresponding to the preferred channel communication quality as the working channel; and a monitoring unit that monitors the second transceiver unit to be heavy on the working channel The number of times a packet is transmitted to determine whether to cause the evaluation unit to update the working channel; wherein, when the monitoring unit causes the evaluation unit to update the working channel, the evaluation unit evaluates channel communication quality for the candidate channels other than the current working channel And selecting the candidate channel corresponding to the communication quality of the preferred channel as the updated working channel; wherein the number of the candidate channels is less than the total number of the second channels. 依據申請專利範圍第8項所述之網路連接裝置,其中,當該監測單元令該評估單元更新該工作頻道,該標記單元會標記目前工作頻道所對應的該候選頻道;其中,該評估單元為每一未標記的候選頻道評估頻道通訊品質,以挑出對應較佳頻道通訊品質的該候選頻道當作更新後的工作頻道,且該標記單元會根據該監測單元對更新後工作頻道的監測來選擇性地標記更新後工作頻道所對應的該候選頻道;當未標記的候選頻道的數目少於一未標記門檻,該標記單元就清除所有該等候選頻道的標記。 The network connection device of claim 8, wherein when the monitoring unit causes the evaluation unit to update the working channel, the marking unit marks the candidate channel corresponding to the current working channel; wherein the evaluation unit Evaluating the channel communication quality for each unmarked candidate channel to select the candidate channel corresponding to the better channel communication quality as the updated working channel, and the marking unit monitors the updated working channel according to the monitoring unit. The candidate channel corresponding to the updated working channel is selectively marked; when the number of unmarked candidate channels is less than an unmarked threshold, the marking unit clears the markings of all of the candidate channels. 依據申請專利範圍第8項所述之網路連接裝置,其中,該評估單元計算每一候選頻道的鏈結品質指標(LQI)、接 收信號強度指標(RSSI),或其他可以展現頻道通訊品質的品質信號,來評估頻道通訊品質。 The network connection device according to claim 8, wherein the evaluation unit calculates a link quality indicator (LQI) of each candidate channel, and connects Receive signal strength indicator (RSSI), or other quality signal that can show channel communication quality to evaluate channel communication quality. 依據申請專利範圍第8項所述之網路連接裝置,更包括:一儲存器,用以記錄該監測單元監測出的該封包重傳次數,並存有一位址表和一候選頻道清單,其中該位址表記錄著該第一網路內一第一無線裝置的位址和該第二網路內一第二無線裝置的位址,該候選頻道清單是供該標記單元標記目前工作頻道所對應的該候選頻道。 The network connection device of claim 8, further comprising: a storage device for recording the number of retransmissions of the packet monitored by the monitoring unit, and storing an address table and a candidate channel list, wherein the The address table records an address of a first wireless device in the first network and an address of a second wireless device in the second network, where the candidate channel list is for the marking unit to mark the current working channel The candidate channel. 依據申請專利範圍第11項所述之網路連接裝置,其中該處理器更包括:一過濾單元,根據該位址表的記錄,比對該第一網路傳來的另一封包所載有的一來源位址和一目的位址;及一格式轉換器,當該過濾單元比對出該另一封包是該第一網路的該第一無線裝置要傳送給該第二網路的該第二無線裝置,該格式轉換器會使該另一封包從符合該第一網路傳輸格式解譯成符合該第二網路傳輸格式。 The network connection device of claim 11, wherein the processor further comprises: a filtering unit, according to the record of the address table, is contained in another packet sent to the first network a source address and a destination address; and a format converter, wherein the filtering unit compares the other packet to the first wireless device of the first network to be transmitted to the second network A second wireless device, the format converter interpreting the another packet from conforming to the first network transmission format to conform to the second network transmission format. 依據申請專利範圍第8項所述之網路連接裝置,其中該處理器更包括:一儲存器,用以記錄該監測單元監測出的該另一封包重傳次數,並存有一位址表和一候選頻道清單,其中該位址表記錄著該第一網路內一第一無線裝置的位址和該第二網路內一第二無線裝置的位址,該候選頻道清單 是供該標記單元標記目前工作頻道所對應的該候選頻道;一過濾單元,根據該位址表的記錄,比對該第一網路傳來的另一封包所載有的一來源位址和一目的位址;及一格式轉換器,當該過濾單元比對出該另一封包是該第一網路的該第一無線裝置要傳送給該第二網路的該第二無線裝置,該格式轉換器會使該另一封包從符合該第一網路傳輸格式解譯成符合該第二網路傳輸格式。 The network connection device of claim 8, wherein the processor further comprises: a storage device for recording the number of retransmissions of the another packet monitored by the monitoring unit, and storing an address table and a a candidate channel list, wherein the address table records an address of a first wireless device in the first network and an address of a second wireless device in the second network, the candidate channel list Is for the marking unit to mark the candidate channel corresponding to the current working channel; a filtering unit, according to the record of the address table, than a source address and another source contained in the first network a destination address; and a format converter, when the filtering unit compares the other packet to be the first wireless device of the first network to be transmitted to the second wireless device of the second network, The format converter interprets the other packet from conforming to the first network transport format to conform to the second network transport format. 依據申請專利範圍第8項所述之網路連接裝置,其中,該標記單元從ZigBee(群蜂)網路的該等第二頻道中決定出該等候選頻道,且該等候選頻道不重疊於該網路連接裝置用以與Wi-Fi(無線保真)網路通訊的該第一頻道。The network connection device of claim 8, wherein the marking unit determines the candidate channels from the second channels of the ZigBee network, and the candidate channels do not overlap The network connection device is configured to communicate with the first channel of a Wi-Fi (Wireless Fidelity) network.
TW101131549A 2012-08-30 2012-08-30 Channel selection method, channel selector and network connecting apparatus TWI487397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101131549A TWI487397B (en) 2012-08-30 2012-08-30 Channel selection method, channel selector and network connecting apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101131549A TWI487397B (en) 2012-08-30 2012-08-30 Channel selection method, channel selector and network connecting apparatus

Publications (2)

Publication Number Publication Date
TW201410047A TW201410047A (en) 2014-03-01
TWI487397B true TWI487397B (en) 2015-06-01

Family

ID=50820561

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101131549A TWI487397B (en) 2012-08-30 2012-08-30 Channel selection method, channel selector and network connecting apparatus

Country Status (1)

Country Link
TW (1) TWI487397B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI505738B (en) * 2014-03-04 2015-10-21 Wistron Neweb Corp Method for wireless network connection adjustment and wireless network access device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1119112A2 (en) * 2000-01-21 2001-07-25 Texas Instruments Incorporated Frequency hopping communication protocol
US7095748B2 (en) * 2000-07-20 2006-08-22 Cadence Design Systems, Inc Bridging apparatus for interconnecting a wireless PAN and a wireless LAN
CN101690327A (en) * 2007-05-25 2010-03-31 皇家飞利浦电子股份有限公司 The channel change decision mechanism and the method that are used for wireless network
CN102170643A (en) * 2011-03-10 2011-08-31 北京邮电大学 Zigbee information channel dynamic selection method based on real-time availability
TW201212560A (en) * 2010-08-12 2012-03-16 Mediatek Inc Method and wireless device of in-device interference mitigation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1119112A2 (en) * 2000-01-21 2001-07-25 Texas Instruments Incorporated Frequency hopping communication protocol
US7095748B2 (en) * 2000-07-20 2006-08-22 Cadence Design Systems, Inc Bridging apparatus for interconnecting a wireless PAN and a wireless LAN
CN101690327A (en) * 2007-05-25 2010-03-31 皇家飞利浦电子股份有限公司 The channel change decision mechanism and the method that are used for wireless network
TW201212560A (en) * 2010-08-12 2012-03-16 Mediatek Inc Method and wireless device of in-device interference mitigation
CN102170643A (en) * 2011-03-10 2011-08-31 北京邮电大学 Zigbee information channel dynamic selection method based on real-time availability

Also Published As

Publication number Publication date
TW201410047A (en) 2014-03-01

Similar Documents

Publication Publication Date Title
CN103686211B (en) Channel selection method, channel selector and network connection device
JP6801757B2 (en) Wireless communication device and wireless communication method
CN101136674B (en) Wireless network, access point and method of managing communication of plurality of wireless equipments
CN107231202B (en) LoRa working mode switching method, device and system
US8654780B2 (en) System and method of communication protocols in communication systems
MX2007009406A (en) Method and apparatus for determining ack frame to acknowledge receipt of transmission frame on a wlan.
EP1416677A1 (en) Mapping and discovering peer-to-peer wireless networks
US20190007796A1 (en) Apparatuses, methods, and programs for controlling grouping of wireless communication apparatuses
US20070115821A1 (en) Method for transmitting wireless data using piggyback
CN1790931B (en) Ultra wide band power save
CN101325530B (en) Two grade network and communication method thereof
CN112804718A (en) Network switching method, terminal and storage medium
Ramonet et al. IEEE 802.15. 4 historical evolution and trends
JP2003051781A (en) Data communication method and data communication system
TWI487397B (en) Channel selection method, channel selector and network connecting apparatus
KR100678933B1 (en) Method for communication in coordinator-based wireless network, and method for communication between coordinator-based wireless networks connected with back bone network
US20090147709A1 (en) Receiver channel feedback through beacons
US11246071B2 (en) Method for managing a connection in a distributed wireless network
KR20050064267A (en) Data transmitting method for wireless network using access point
Watanabe et al. An energy-efficient architecture of wireless home network based on MAC broadcast and transmission power control
CN117544259A (en) Medical telemetry monitoring communication method, system, electronic equipment and storage medium
CN101600221A (en) Terminal knows that the method for homogeneous-frequency adjacent-domain attribute reaches its method of measuring
KR102078780B1 (en) The apparatus and method of intelligent transmission in wireless personal area network
KR101000932B1 (en) Method and apparatus for allowing a device which supports multiple PHY communication modes to communicate with other devices in Wireless Personal Area Network
CN113037642B (en) Internet of things data transmission method and transmission system