[go: up one dir, main page]

TWI845172B - Transmission path improving method in a mesh network, electronic device and computer-readable storage medium - Google Patents

Transmission path improving method in a mesh network, electronic device and computer-readable storage medium Download PDF

Info

Publication number
TWI845172B
TWI845172B TW112106178A TW112106178A TWI845172B TW I845172 B TWI845172 B TW I845172B TW 112106178 A TW112106178 A TW 112106178A TW 112106178 A TW112106178 A TW 112106178A TW I845172 B TWI845172 B TW I845172B
Authority
TW
Taiwan
Prior art keywords
ultra
wideband
client
transmission path
devices
Prior art date
Application number
TW112106178A
Other languages
Chinese (zh)
Other versions
TW202435603A (en
Inventor
蔡錫震
Original Assignee
新加坡商鴻運科股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 新加坡商鴻運科股份有限公司 filed Critical 新加坡商鴻運科股份有限公司
Priority to TW112106178A priority Critical patent/TWI845172B/en
Application granted granted Critical
Publication of TWI845172B publication Critical patent/TWI845172B/en
Publication of TW202435603A publication Critical patent/TW202435603A/en

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

A transmission path improving method in a mesh network is disclosed. General transmission paths passing through each of routers and Ultra-Wideband (UWB) transmission paths passing through each of UWB devices are calculated. If a client is located within a detection range of a UWB device, an optimal transmission path relating to the UWB device is selected from the UWB transmission paths and the optimal transmission path is transmitted to the client.

Description

網狀網路中改善傳輸路徑的方法、電子裝置及電腦可讀 儲存媒體 Method for improving transmission path in mesh network, electronic device and computer-readable storage medium

本發明係有關於一種封包傳送方法,且特別有關於一種網狀(Mesh)網路中改善傳輸路徑的方法及電子裝置。 The present invention relates to a packet transmission method, and in particular to a method and electronic device for improving a transmission path in a mesh network.

在網狀網路(Mesh Wi-Fi)的環境下,每個路由器(Router)彼此都有連結,整個網路環境的傳輸架構較為複雜,且Mesh系統會自動幫網路設備選擇最佳的連線方式。此外,利用路由器節點(Router Node)之間可以互相溝通的特性,當有一個路由器節點損壞時,Mesh系統會自動調整傳輸路徑,繞過故障的Router Node,讓網路功能維持正常運作。 In a mesh Wi-Fi environment, each router is connected to each other, and the transmission architecture of the entire network environment is relatively complex. The Mesh system will automatically help network devices select the best connection method. In addition, by utilizing the characteristics of the router nodes that can communicate with each other, when a router node is damaged, the Mesh system will automatically adjust the transmission path to bypass the faulty router node, so that the network function can maintain normal operation.

然而,Mesh Wi-Fi的問題主要在於無線網路使用體驗上,設備會在轉發時出現延遲和延遲導致的速率降低。因為每次轉發都需要一定延遲,多次轉發後延遲將會較高,因此對即時性要求較高的網路,Mesh組網方案就不太適合。另外,Mesh網路存在轉發,每次轉發之後速率都會降低,因此節點不能過多,過多的節點會影響頻寬容量。 However, the main problem with Mesh Wi-Fi is the wireless network experience. Devices will experience delays during forwarding and the rate will be reduced due to delays. Because each forwarding requires a certain delay, the delay will be higher after multiple forwardings. Therefore, the Mesh networking solution is not suitable for networks with high real-time requirements. In addition, the Mesh network has forwarding, and the rate will decrease after each forwarding, so there cannot be too many nodes, as too many nodes will affect the bandwidth capacity.

因此,需要一個有效的方法來解決上述問題。 Therefore, an effective method is needed to solve the above problems.

有鑑於此,本發明提供了一種網狀網路中改善傳輸路徑的方法及電子裝置,將超寬頻(Ultra-Wideband,UWB)裝置加入網狀網路中做為傳輸節點,實現更佳的傳輸效率。 In view of this, the present invention provides a method and electronic device for improving the transmission path in a mesh network, adding an ultra-wideband (UWB) device to the mesh network as a transmission node to achieve better transmission efficiency.

本發明第一實施例提供一種網狀網路中改善傳輸路徑的方法,應用於電子裝置中,包括下列步驟:基於動態源路由協定(DSR)計算在一網狀網路中經過每一個路由器的一般傳輸路徑;判斷是否偵測到多個超寬頻(UWB)裝置;若偵測到多個超寬頻裝置,根據該些超寬頻裝置計算在該網狀網路中與每一個超寬頻裝置的多個超寬頻傳輸路徑;判斷是否偵測到一客戶端;若偵測到一客戶端,判斷該客戶端是否在至少一個超寬頻裝置的偵測範圍內;若該客戶端在一第一超寬頻裝置的偵測範圍內,從該些超寬頻傳輸路徑中選擇一第一最佳傳輸路徑,並傳送該第一最佳傳輸路徑給該客戶端;以及根據該第一最佳傳輸路徑指示該客戶端移動到該第一超寬頻裝置的位置,使得該客戶端根據該第一最佳傳輸路徑並通過該第一超寬頻裝置進行資料傳輸。 The first embodiment of the present invention provides a method for improving a transmission path in a mesh network, which is applied to an electronic device and includes the following steps: calculating a general transmission path passing through each router in a mesh network based on a dynamic source routing protocol (DSR); determining whether a plurality of ultra-wideband (UWB) devices are detected; if a plurality of ultra-wideband devices are detected, calculating a plurality of ultra-wideband transmission paths in the mesh network with each ultra-wideband device based on the ultra-wideband devices; determining whether a client is detected; if a plurality of ultra-wideband devices are detected, calculating a plurality of ultra-wideband transmission paths with each ultra-wideband device in the mesh network ... a plurality of ultra-wideband devices Detecting a client, determining whether the client is within the detection range of at least one ultra-wideband device; if the client is within the detection range of a first ultra-wideband device, selecting a first optimal transmission path from the ultra-wideband transmission paths, and transmitting the first optimal transmission path to the client; and instructing the client to move to the location of the first ultra-wideband device according to the first optimal transmission path, so that the client transmits data according to the first optimal transmission path and through the first ultra-wideband device.

本發明實施例還提供一種電子裝置,包括一計算模組、一偵測模組與一管理模組。 The present invention also provides an electronic device, including a computing module, a detection module and a management module.

該計算模組用於基於動態源路由協定(DSR)計算在一網狀網路中經過每一個路由器的一般傳輸路徑。該偵測模組用於判斷是否偵測到多個超寬頻(UWB)裝置。 The calculation module is used to calculate a general transmission path passing through each router in a mesh network based on the dynamic source routing protocol (DSR). The detection module is used to determine whether multiple ultra-wideband (UWB) devices are detected.

若偵測到多個超寬頻裝置,該計算模組根據該些超寬頻裝置計算在該網狀網路中與每一個超寬頻裝置的多個超寬頻傳輸路徑。該偵測模組判斷 是否偵測到一客戶端,且若偵測到一客戶端,判斷該客戶端是否在至少一個超寬頻裝置的偵測範圍內。 If multiple ultra-wideband devices are detected, the calculation module calculates multiple ultra-wideband transmission paths with each ultra-wideband device in the mesh network based on the ultra-wideband devices. The detection module determines whether a client is detected, and if a client is detected, determines whether the client is within the detection range of at least one ultra-wideband device.

該管理模組在該客戶端在一第一超寬頻裝置的偵測範圍內時,從該些超寬頻傳輸路徑中選擇一第一最佳傳輸路徑,並傳送該第一最佳傳輸路徑給該客戶端,並根據該第一最佳傳輸路徑指示該客戶端移動到該第一超寬頻裝置的位置,使得該客戶端根據該第一最佳傳輸路徑並通過該第一超寬頻裝置進行資料傳輸。 When the client is within the detection range of a first ultra-wideband device, the management module selects a first optimal transmission path from the ultra-wideband transmission paths, transmits the first optimal transmission path to the client, and instructs the client to move to the location of the first ultra-wideband device according to the first optimal transmission path, so that the client transmits data according to the first optimal transmission path and through the first ultra-wideband device.

本發明實施例還提供一種電腦可讀儲存媒體,該電腦可讀儲存媒體上儲存有電腦程式,該電腦程式被執行時實現如前述的網狀網路中改善傳輸路徑的方法的步驟。 The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed, the steps of the method for improving the transmission path in the mesh network as described above are implemented.

以下結合附圖和具體實施例對本發明進行詳細描述,但不作為對本發明的限定。 The present invention is described in detail below with reference to the attached drawings and specific embodiments, but is not intended to limit the present invention.

200:電子裝置 200: Electronic devices

210:處理器 210: Processor

220:記憶體 220: Memory

230:網狀網路中改善傳輸路徑的系統 230: System for improving transmission paths in mesh networks

310:計算模組 310: Computing module

320:偵測模組 320: Detection module

330:管理模組 330: Management module

圖1A與1B是本發明實施例的網狀網路中改善傳輸路徑的應用示意圖。 Figures 1A and 1B are schematic diagrams of the application of improving the transmission path in the mesh network of the embodiment of the present invention.

圖2是本發明實施例的網狀網路中改善傳輸路徑的方法的步驟流程圖。 Figure 2 is a flow chart of the steps of the method for improving the transmission path in the mesh network of the embodiment of the present invention.

圖3是本發明實施例的電子裝置的硬體架構示意圖。 Figure 3 is a schematic diagram of the hardware architecture of the electronic device of an embodiment of the present invention.

圖4是本發明實施例的電子裝置的功能方塊圖。 Figure 4 is a functional block diagram of an electronic device according to an embodiment of the present invention.

為了能夠更清楚地理解本發明的上述目的、特徵和優點,下面結合附圖和具體實施例對本發明進行詳細描述。需要說明的是,在不衝突的情況下,本申請的實施例及實施例中的特徵可以相互組合。 In order to more clearly understand the above-mentioned purposes, features and advantages of the present invention, the present invention is described in detail below in conjunction with the attached drawings and specific embodiments. It should be noted that the embodiments of this application and the features in the embodiments can be combined with each other without conflict.

在下面的描述中闡述了很多具體細節以便於充分理解本發明,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。 In the following description, many specific details are explained to facilitate a full understanding of the present invention. The embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative labor are within the scope of protection of the present invention.

除非另有定義,本文所使用的所有的技術和科學術語與屬於本發明的技術領域的技術人員通常理解的含義相同。本文中在本發明的說明書中所使用的術語只是為了描述具體的實施例的目的,不是旨在於限制本發明。 Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present invention. The terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

需要說明的是,在本發明中涉及“第一”、“第二”等的描述僅用於描述目的,而不能理解為指示或暗示其相對重要性或者隱含指明所指示的技術特徵的數量。由此,限定有“第一”、“第二”的特徵可以明示或者隱含地包括至少一個該特徵。另外,各個實施例之間的技術方案可以相互結合,但是必須是以本領域普通技術人員能夠實現為基礎,當技術方案的結合出現相互矛盾或無法實現時應當認為這種技術方案的結合不存在,也不在本發明要求的保護範圍之內。 It should be noted that the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

圖1A與1B是本發明實施例的網狀網路中改善傳輸路徑的應用示意圖。 Figures 1A and 1B are schematic diagrams of the application of improving the transmission path in the mesh network of the embodiment of the present invention.

如圖1A所示,本發明實施例的網狀網路包括一個客戶端(Client)110、1個目的路由器(Destination Router)120與多個路由器節點(Router Node)1-8。節點1與2為正在運作的節點(Active Node),節點3與4為超寬頻(Ultra-Wideband,UWB)節點,而節點5-8為未運作節點,即閒置節點(Idle Node)。客戶端110到目的路由器120的傳輸路徑為「客戶端110→節點1→節點2→目的路由器120」。 As shown in FIG1A , the mesh network of the embodiment of the present invention includes a client 110, a destination router 120 and multiple router nodes 1-8. Nodes 1 and 2 are active nodes, nodes 3 and 4 are ultra-wideband (UWB) nodes, and nodes 5-8 are non-operating nodes, i.e., idle nodes. The transmission path from the client 110 to the destination router 120 is "client 110 → node 1 → node 2 → destination router 120".

如圖1B所示,當客戶端110移動並偵測到超寬頻裝置時,將超寬頻裝置設為路由節點並創建全新路徑以取代原傳輸路徑。客戶端110偵測到2個超寬頻裝置,並將這2個超寬頻裝置設定為節點3與4。此時,客戶端110到目的路由器120的傳輸路徑為「客戶端110→節點3→節點4→節點2→目的路由器120」,同時,節點1轉換為閒置節點。 As shown in Figure 1B, when the client 110 moves and detects an ultra-wideband device, the ultra-wideband device is set as a routing node and a new path is created to replace the original transmission path. The client 110 detects two ultra-wideband devices and sets these two ultra-wideband devices as nodes 3 and 4. At this time, the transmission path from the client 110 to the destination router 120 is "client 110→node 3→node 4→node 2→destination router 120", and at the same time, node 1 is converted to an idle node.

圖2是本發明實施例的網狀網路中改善傳輸路徑的方法的步驟流程圖,應用於電子裝置(例如,主(Master)路由器)的微控制器中。根據不同的需求,該流程圖中步驟的順序可以改變,某些步驟可以省略。 FIG2 is a flowchart of the steps of the method for improving the transmission path in the mesh network of the embodiment of the present invention, which is applied to the microcontroller of the electronic device (e.g., the master router). According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

步驟S101,該主路由器基於動態源路由協定(Dynamic Source Routing,DSR)計算在一網狀網路中經過每一個路由器的一般傳輸路徑。需注意到,該DSR技術為已知技術,在本文中不再贅述。 Step S101, the main router calculates the general transmission path passing through each router in a mesh network based on the Dynamic Source Routing (DSR) protocol. It should be noted that the DSR technology is a known technology and will not be described in detail in this article.

另外,該網狀網路的架構包括多個路由器,從該網狀網路中任選一個路由器做為該主路由器。該主路由器初始會計算每一個路由器經過其它路由器的傳輸路徑,並且將計算獲得的多個傳輸路徑傳送給其它路由器。當該主路由器無法運作時,再從該網狀網路中任選一個路由器做為新的主路由器。 In addition, the mesh network architecture includes multiple routers, and one router is randomly selected from the mesh network as the main router. The main router initially calculates the transmission path of each router through other routers, and transmits the calculated multiple transmission paths to other routers. When the main router fails to operate, another router is randomly selected from the mesh network as the new main router.

步驟S102,該主路由器判斷是否偵測到多個超寬頻裝置。 Step S102, the main router determines whether multiple ultra-wideband devices are detected.

步驟S103,若偵測到多個超寬頻裝置,該主路由器根據該些超寬頻裝置計算在該網狀網路中經過每一個超寬頻裝置的多個超寬頻傳輸路徑。 Step S103, if multiple ultra-wideband devices are detected, the main router calculates multiple ultra-wideband transmission paths passing through each ultra-wideband device in the mesh network based on the ultra-wideband devices.

步驟S104,該主路由器判斷是否偵測到一客戶端。 Step S104, the main router determines whether a client is detected.

步驟S105,若偵測到一客戶端,該主路由器判斷該客戶端是否在至少一個超寬頻裝置的偵測範圍內。 Step S105, if a client is detected, the main router determines whether the client is within the detection range of at least one ultra-wideband device.

步驟S106,若該客戶端未在任何超寬頻裝置的偵測範圍內,該主路由器從該些一般傳輸路徑中選擇一第三最佳傳輸路徑,並傳送該第三最佳傳輸路徑給該客戶端,使得該客戶端根據該第三最佳傳輸路徑進行資料傳輸。 Step S106, if the client is not within the detection range of any ultra-wideband device, the main router selects a third best transmission path from the general transmission paths and transmits the third best transmission path to the client, so that the client transmits data according to the third best transmission path.

步驟S107,若該客戶端在多個超寬頻裝置的偵測範圍內,該主路由器計算該些每一個超寬頻裝置的頻寬與距離,並將計算出來的頻寬與距離做為權值,可獲得該些超寬頻裝置的多個權值。另外,需注意到,該些超寬頻裝置的頻寬與距離的計算為已知技術,在本文中不再贅述。 Step S107, if the client is within the detection range of multiple ultra-wideband devices, the main router calculates the bandwidth and distance of each of the ultra-wideband devices, and uses the calculated bandwidth and distance as weights to obtain multiple weights of the ultra-wideband devices. In addition, it should be noted that the calculation of the bandwidth and distance of the ultra-wideband devices is a known technology and will not be elaborated in this article.

步驟S108,該主路由器根據該些權值,選出具有較高權值的超寬頻裝置。需注意到,根據該些權值選出的超寬頻裝置的數量可為1個或多個。 In step S108, the master router selects an ultra-wideband device with a higher weight according to the weights. It should be noted that the number of ultra-wideband devices selected according to the weights may be one or more.

步驟S109,該主路由器根據選出的超寬頻裝置,從該些超寬頻傳輸路徑中選擇一第一最佳傳輸路徑,並傳送該第一最佳傳輸路徑給該客戶端。 Step S109, the main router selects a first optimal transmission path from the ultra-wideband transmission paths according to the selected ultra-wideband device, and transmits the first optimal transmission path to the client.

步驟S110,該主路由器根據該第一最佳傳輸路徑指示該客戶端移動到一建議的超寬頻裝置的附近,使得該客戶端根據該第一最佳傳輸路徑進行資料傳輸。 Step S110, the main router instructs the client to move to the vicinity of a recommended ultra-wideband device according to the first optimal transmission path, so that the client performs data transmission according to the first optimal transmission path.

圖3係顯示本發明實施例的行動電子裝置的硬體架構示意圖。電子裝置200,但不僅限於,可通過系統匯流排相互通信連接處理器210、記憶體220以及網狀網路中改善傳輸路徑的系統230,圖3僅示出了具有元件210-230的電子裝置200,但是應理解的是,並不要求實施所有示出的元件,可以替代的實施更多或者更少的元件。 FIG3 is a schematic diagram showing the hardware architecture of a mobile electronic device of an embodiment of the present invention. The electronic device 200, but not limited to, can communicate with each other through a system bus to connect the processor 210, the memory 220, and the system 230 for improving the transmission path in the mesh network. FIG3 only shows the electronic device 200 with components 210-230, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead.

該記憶體220至少包括一種類型的可讀儲存媒體,該可讀儲存媒體包括快閃記憶體、硬碟、多媒體卡、卡型記憶體(例如,SD或DX記憶體等)、隨機訪問記憶體(RAM)、靜態隨機訪問記憶體(SRAM)、唯讀記憶體(ROM)、電可擦除可程式設計唯讀記憶體(EEPROM)、可程式設計唯讀記憶體(PROM)、 磁性記憶體、磁片、光碟等。在一些實施例中,該記憶體220可以是該電子裝置200的內部存儲單元,例如電子裝置200的硬碟或記憶體。在另一些實施例中,該記憶體也可以是該電子裝置200的外部存放裝置,例如該電子裝置200上配備的插接式硬碟,智慧存儲卡(Smart Media Card,SMC),安全數位(Secure Digital,SD)卡,快閃記憶體卡(Flash Card)等。當然,該記憶體220還可以既包括該電子裝置200的內部存儲單元也包括其外部存放裝置。本實施例中,該記憶體220通常用於存儲安裝於該電子裝置200的作業系統和各類應用軟體,例如網狀網路中改善傳輸路徑的系統230的程式碼等。此外,該記憶體220還可以用於暫時地存儲已經輸出或者將要輸出的各類資料。 The memory 220 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 220 may be an internal storage unit of the electronic device 200, such as a hard disk or a memory of the electronic device 200. In other embodiments, the memory may also be an external storage device of the electronic device 200, such as a plug-in hard drive, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash memory card (Flash Card), etc. equipped on the electronic device 200. Of course, the memory 220 may also include both the internal storage unit of the electronic device 200 and its external storage device. In this embodiment, the memory 220 is generally used to store the operating system and various application software installed in the electronic device 200, such as the program code of the system 230 for improving the transmission path in the mesh network. In addition, the memory 220 can also be used to temporarily store various types of data that have been output or are about to be output.

該處理器210在一些實施例中可以是中央處理器(Central Processing Unit,CPU)、控制器、微控制器、微處理器、或其他資料處理晶片。該處理器210通常用於控制該電子裝置200的總體操作。本實施例中,該處理器210用於運行該記憶體220中存儲的程式碼或者處理資料,例如,運行該網狀網路中改善傳輸路徑的系統230等。 The processor 210 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor 210 is generally used to control the overall operation of the electronic device 200. In this embodiment, the processor 210 is used to run the program code stored in the memory 220 or process data, for example, to run the system 230 for improving the transmission path in the mesh network, etc.

需要說明的是,圖3僅為舉例說明電子裝置200。在其他實施例中,電子裝置200也可以包括更多或者更少的元件,或者具有不同的元件配置。 It should be noted that FIG. 3 is only an example of the electronic device 200. In other embodiments, the electronic device 200 may also include more or fewer components, or have different component configurations.

該電子裝置200集成的模組/單元如果以軟體功能單元的形式實現並作為獨立的產品銷售或使用時,可以存儲在一個電腦可讀取儲存媒體中。基於這樣的理解,本發明實現上述實施例方法中的全部或部分流程,也可以通過電腦程式來指令相關的硬體來完成,該的電腦程式可存儲於一電腦可讀儲存媒體中,該電腦程式在被處理器執行時,可實現上述各個方法實施例的步驟。其中,該電腦程式包括電腦程式代碼,該電腦程式代碼可以為原始程式碼形式、物件代碼形式、可執行檔或某些中間形式等。該電腦可讀介質可以包括:能夠攜帶 該電腦程式代碼的任何實體或裝置、記錄介質、U盤、移動硬碟、磁片、光碟、電腦記憶體、唯讀記憶體、隨機存取記憶體、電載波訊號、電信訊號以及軟體分發介質等。需要說明的是,該電腦可讀介質包含的內容可以根據司法管轄區內立法和專利實踐的要求進行適當的增減,例如在某些司法管轄區,根據立法和專利實踐,電腦可讀介質不包括電載波訊號和電信訊號。 If the module/unit integrated in the electronic device 200 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, which can be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, removable hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier wave signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier wave signals and telecommunication signals.

圖4係顯示本發明實施例的電子裝置的功能方塊圖,其用於執行網狀網路中改善傳輸路徑的方法。本發明實施例的網狀網路中改善傳輸路徑的方法可由儲存媒體中的電腦程式來實現,例如,電子裝置200中的記憶體220。當實現本發明方法的電腦程式由處理器210載入到記憶體220時,驅動電子裝置200的處理器210執行本發明實施例的網狀網路中改善傳輸路徑的方法。 FIG4 is a functional block diagram of an electronic device of an embodiment of the present invention, which is used to execute a method for improving a transmission path in a mesh network. The method for improving a transmission path in a mesh network of an embodiment of the present invention can be implemented by a computer program in a storage medium, for example, a memory 220 in the electronic device 200. When the computer program for implementing the method of the present invention is loaded into the memory 220 by the processor 210, the processor 210 of the electronic device 200 is driven to execute the method for improving a transmission path in a mesh network of an embodiment of the present invention.

本發明實施例的電子裝置200,例如,路由器,包括計算模組310、偵測模組320與管理模組330。 The electronic device 200 of the embodiment of the present invention, for example, a router, includes a computing module 310, a detection module 320 and a management module 330.

計算模組310基於動態源路由協定(DSR)計算在一網狀網路中經過每一個路由器的一般傳輸路徑。需注意到,該DSR技術為已知技術,在本文中不再贅述。 The calculation module 310 calculates the general transmission path through each router in a mesh network based on the dynamic source routing protocol (DSR). It should be noted that the DSR technology is a known technology and will not be described in detail in this article.

另外,該網狀網路的架構包括多個路由器,從該網狀網路中任選一個路由器做為該主路由器。該主路由器初始會計算每一個路由器經過其它路由器的傳輸路徑,並且將計算獲得的多個傳輸路徑傳送給其它路由器。當該主路由器無法運作時,再從該網狀網路中任選一個路由器做為新的主路由器。 In addition, the mesh network architecture includes multiple routers, and one router is randomly selected from the mesh network as the main router. The main router initially calculates the transmission path of each router through other routers, and transmits the calculated multiple transmission paths to other routers. When the main router fails to operate, another router is randomly selected from the mesh network as the new main router.

偵測模組320判斷是否偵測到多個超寬頻裝置。 The detection module 320 determines whether multiple ultra-wideband devices are detected.

若偵測到多個超寬頻裝置,計算模組310根據該些超寬頻裝置計算在該網狀網路中經過每一個超寬頻裝置的多個超寬頻傳輸路徑。 If multiple ultra-wideband devices are detected, the calculation module 310 calculates multiple ultra-wideband transmission paths passing through each ultra-wideband device in the mesh network based on the ultra-wideband devices.

偵測模組320判斷是否偵測到一客戶端。 The detection module 320 determines whether a client is detected.

若偵測到一客戶端,偵測模組320判斷該客戶端是否在至少一個超寬頻裝置的偵測範圍內。 If a client is detected, the detection module 320 determines whether the client is within the detection range of at least one ultra-wideband device.

若該客戶端未在任何超寬頻裝置的偵測範圍內,管理模組330從該些一般傳輸路徑中選擇一第三最佳傳輸路徑,並傳送該第三最佳傳輸路徑給該客戶端,使得該客戶端根據該第三最佳傳輸路徑進行資料傳輸。 If the client is not within the detection range of any ultra-wideband device, the management module 330 selects a third best transmission path from the general transmission paths and transmits the third best transmission path to the client, so that the client transmits data according to the third best transmission path.

若該客戶端在多個超寬頻裝置的偵測範圍內,計算模組310計算該些每一個超寬頻裝置的頻寬與距離,並將計算出來的頻寬與距離做為權值,可獲得該些超寬頻裝置的多個權值。另外,需注意到,該些超寬頻裝置的頻寬與距離的計算為已知技術,在本文中不再贅述。 If the client is within the detection range of multiple ultra-wideband devices, the calculation module 310 calculates the bandwidth and distance of each of the ultra-wideband devices, and uses the calculated bandwidth and distance as weights to obtain multiple weights of the ultra-wideband devices. In addition, it should be noted that the calculation of the bandwidth and distance of the ultra-wideband devices is a known technology and will not be repeated in this article.

管理模組330根據該些權值,選出具有較高權值的超寬頻裝置。需注意到,根據該些權值選出的超寬頻裝置的數量可為1個或多個。 The management module 330 selects the ultra-wideband device with a higher weight according to the weights. It should be noted that the number of ultra-wideband devices selected according to the weights may be one or more.

管理模組330根據選出的超寬頻裝置,從該些超寬頻傳輸路徑中選擇一第一最佳傳輸路徑,並傳送該第一最佳傳輸路徑給該客戶端。 The management module 330 selects a first optimal transmission path from the ultra-wideband transmission paths according to the selected ultra-wideband device, and transmits the first optimal transmission path to the client.

管理模組330根據該第一最佳傳輸路徑指示該客戶端移動到一建議的超寬頻裝置的附近,使得該客戶端根據該第一最佳傳輸路徑進行資料傳輸。 The management module 330 instructs the client to move to the vicinity of a recommended ultra-wideband device according to the first optimal transmission path, so that the client performs data transmission according to the first optimal transmission path.

可以理解的是,以上所描述的模組劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。另外,在本申請各個實施例中的各功能模組可以集成在相同處理單元中,也可以是各個模組單獨物理存在,也可以兩個或兩個以上模組集成在相同單元中。上述集成的模組既可以採用硬體的形式實現,也可以採用硬體加軟體功能模組的形式實現。 It is understandable that the module division described above is only a logical function division, and there may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application can be integrated in the same processing unit, or each module can exist physically separately, or two or more modules can be integrated in the same unit. The above-mentioned integrated module can be implemented in the form of hardware or in the form of hardware plus software functional modules.

以上實施例僅用以說明本發明的技術方案而非限制,儘管參照實施例對本發明進行了詳細的說明,本領域的普通技術人員應該理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。 The above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention is described in detail with reference to the embodiments, ordinary technicians in this field should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims (9)

一種網狀網路中改善傳輸路徑的方法,應用於電子裝置中,包括下列步驟:基於動態源路由協定(Dynamic Source Routing,DSR)計算在一網狀網路中經過每一個路由器的一般傳輸路徑;判斷是否偵測到多個超寬頻(Ultra-Wideband,UWB)裝置;若偵測到多個超寬頻裝置,根據該些超寬頻裝置計算在該網狀網路中與每一個超寬頻裝置的多個超寬頻傳輸路徑;判斷是否偵測到一客戶端;若偵測到一客戶端,判斷該客戶端是否在至少一個超寬頻裝置的偵測範圍內;若該客戶端在一第一超寬頻裝置的偵測範圍內,從該些超寬頻傳輸路徑中選擇一第一最佳傳輸路徑,並傳送該第一最佳傳輸路徑給該客戶端;以及根據該第一最佳傳輸路徑指示該客戶端移動到該第一超寬頻裝置的位置,使得該客戶端根據該第一最佳傳輸路徑並通過該第一超寬頻裝置進行資料傳輸。 A method for improving transmission paths in a mesh network is applied to an electronic device and includes the following steps: calculating a general transmission path through each router in a mesh network based on a dynamic source routing protocol (DSR); determining whether a plurality of ultra-wideband (UWB) devices are detected; if a plurality of UWB devices are detected, calculating a plurality of UWB transmission paths in the mesh network with each UWB device based on the UWB devices; determining whether a client is detected; if a client is detected, determining whether the client is a whether the client is within the detection range of at least one ultra-wideband device; if the client is within the detection range of a first ultra-wideband device, select a first optimal transmission path from the ultra-wideband transmission paths and transmit the first optimal transmission path to the client; and instruct the client to move to the location of the first ultra-wideband device according to the first optimal transmission path, so that the client transmits data according to the first optimal transmission path and through the first ultra-wideband device. 如請求項1的網狀網路中改善傳輸路徑的方法,其更包括下列步驟:若該客戶端在多個超寬頻裝置的偵測範圍內,計算該些每一個超寬頻裝置的頻寬與距離;將計算出來的頻寬與距離做為權值,獲得該些超寬頻裝置的多個權值;選出大於一預設權值之多個第二超寬頻裝置; 根據該些權值自該些第二超寬頻裝置選出一個第二超寬頻裝置;以及根據第二超寬頻裝置,該自該些超寬頻傳輸路徑中選擇一第二最佳傳輸路徑,並傳送該第二最佳傳輸路徑給該客戶端。 The method for improving transmission paths in a mesh network as claimed in claim 1 further comprises the following steps: if the client is within the detection range of multiple ultra-wideband devices, calculating the bandwidth and distance of each of the ultra-wideband devices; using the calculated bandwidth and distance as weights to obtain multiple weights of the ultra-wideband devices; selecting multiple second ultra-wideband devices with weights greater than a preset weight; selecting a second ultra-wideband device from the second ultra-wideband devices based on the weights; and selecting a second best transmission path from the ultra-wideband transmission paths based on the second ultra-wideband device, and transmitting the second best transmission path to the client. 如請求項2的網狀網路中改善傳輸路徑的方法,其更包括下列步驟:根據該第二最佳傳輸路徑指示該客戶端移動到該第二超寬頻裝置的位置,使得該客戶端根據該第二最佳傳輸路徑並通過該第二超寬頻裝置進行資料傳輸。 The method for improving the transmission path in the mesh network of claim 2 further includes the following steps: instructing the client to move to the location of the second ultra-wideband device according to the second optimal transmission path, so that the client transmits data according to the second optimal transmission path and through the second ultra-wideband device. 如請求項1的網狀網路中改善傳輸路徑的方法,其更包括下列步驟:若該客戶端未在任何超寬頻裝置的偵測範圍內,從該些一般傳輸路徑中選擇一第三最佳傳輸路徑,並傳送該第三最佳傳輸路徑給該客戶端,使得該客戶端根據該第三最佳傳輸路徑進行資料傳輸。 The method for improving transmission paths in a mesh network of claim 1 further comprises the following steps: if the client is not within the detection range of any ultra-wideband device, a third best transmission path is selected from the general transmission paths, and the third best transmission path is transmitted to the client, so that the client transmits data according to the third best transmission path. 一種電子裝置,包括:一管理模組;一計算模組,用於基於動態源路由協定(DSR)計算在一網狀網路中經過每一個路由器的一般傳輸路徑;以及一偵測模組,用於判斷是否偵測到多個超寬頻(UWB)裝置;其中: 若偵測到多個超寬頻裝置,該計算模組根據該些超寬頻裝置計算在該網狀網路中與每一個超寬頻裝置的多個超寬頻傳輸路徑;該偵測模組判斷是否偵測到一客戶端,且若偵測到一客戶端,判斷該客戶端是否在至少一個超寬頻裝置的偵測範圍內;以及該管理模組在該客戶端在一第一超寬頻裝置的偵測範圍內時,從該些超寬頻傳輸路徑中選擇一第一最佳傳輸路徑,傳送該第一最佳傳輸路徑給該客戶端,並根據該第一最佳傳輸路徑指示該客戶端移動到該第一超寬頻裝置的位置,使得該客戶端根據該第一最佳傳輸路徑並通過該第一超寬頻裝置進行資料傳輸。 An electronic device includes: a management module; a calculation module for calculating a general transmission path through each router in a mesh network based on a dynamic source routing protocol (DSR); and a detection module for determining whether a plurality of ultra-wideband (UWB) devices are detected; wherein: If a plurality of ultra-wideband devices are detected, the calculation module calculates a plurality of ultra-wideband transmission paths with each ultra-wideband device in the mesh network based on the ultra-wideband devices; the detection module determines whether a client is detected, and if Detecting a client, determining whether the client is within the detection range of at least one ultra-wideband device; and when the client is within the detection range of a first ultra-wideband device, the management module selects a first optimal transmission path from the ultra-wideband transmission paths, transmits the first optimal transmission path to the client, and instructs the client to move to the location of the first ultra-wideband device according to the first optimal transmission path, so that the client transmits data according to the first optimal transmission path and through the first ultra-wideband device. 如請求項5的電子裝置,其中:若該客戶端在多個超寬頻裝置的偵測範圍內,該計算模組計算該些每一個超寬頻裝置的頻寬與距離,並將計算出來的頻寬與距離做為權值,獲得該些超寬頻裝置的多個權值;以及該管理模組選出大於一預設權值之多個第二超寬頻裝置,根據該些權值自該些第二超寬頻裝置選出一個第二超寬頻裝置,並根據第二超寬頻裝置,該自該些超寬頻傳輸路徑中選擇一第二最佳傳輸路徑,並傳送該第二最佳傳輸路徑給該客戶端。 The electronic device of claim 5, wherein: if the client is within the detection range of multiple ultra-wideband devices, the calculation module calculates the bandwidth and distance of each of the ultra-wideband devices, and uses the calculated bandwidth and distance as weights to obtain multiple weights of the ultra-wideband devices; and the management module selects multiple second ultra-wideband devices with a weight greater than a preset weight, selects a second ultra-wideband device from the second ultra-wideband devices according to the weights, and selects a second optimal transmission path from the ultra-wideband transmission paths according to the second ultra-wideband device, and transmits the second optimal transmission path to the client. 如請求項6的電子裝置,其中:該管理模組根據該第二最佳傳輸路徑指示該客戶端移動到該第二超寬頻裝置的位置,使得該客戶端根據該第二最佳傳輸路徑並通過該第二超寬頻裝置進行資料傳輸。 As in claim 6, the management module instructs the client to move to the location of the second ultra-wideband device according to the second optimal transmission path, so that the client transmits data according to the second optimal transmission path and through the second ultra-wideband device. 如請求項5的電子裝置,其中:若該客戶端未在任何超寬頻裝置的偵測範圍內,該管理模組從該些一般傳輸路徑中選擇一第三最佳傳輸路徑,並傳送該第三最佳傳輸路徑給該客戶端,使得該客戶端根據該第三最佳傳輸路徑進行資料傳輸。 The electronic device of claim 5, wherein: if the client is not within the detection range of any ultra-wideband device, the management module selects a third best transmission path from the general transmission paths and transmits the third best transmission path to the client, so that the client transmits data according to the third best transmission path. 一種電腦可讀儲存媒體,包括記憶體、處理器以及存儲在記憶體上並可在處理器上運行的電腦程式,其中,該處理器執行該電腦程式時實現請求項1至4中任一項之網狀網路中改善傳輸路徑的方法的步驟。 A computer-readable storage medium includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for improving the transmission path in a mesh network of any one of claim items 1 to 4 when executing the computer program.
TW112106178A 2023-02-20 2023-02-20 Transmission path improving method in a mesh network, electronic device and computer-readable storage medium TWI845172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112106178A TWI845172B (en) 2023-02-20 2023-02-20 Transmission path improving method in a mesh network, electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112106178A TWI845172B (en) 2023-02-20 2023-02-20 Transmission path improving method in a mesh network, electronic device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
TWI845172B true TWI845172B (en) 2024-06-11
TW202435603A TW202435603A (en) 2024-09-01

Family

ID=92541578

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112106178A TWI845172B (en) 2023-02-20 2023-02-20 Transmission path improving method in a mesh network, electronic device and computer-readable storage medium

Country Status (1)

Country Link
TW (1) TWI845172B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201018276A (en) * 2008-07-30 2010-05-01 Koninkl Philips Electronics Nv A method for discovering paths with sufficient medium time in wireless mesh networks
US20210175971A1 (en) * 2014-06-02 2021-06-10 Belkin International, Inc. Optimizing placement of a wireless range extender
US20220124548A1 (en) * 2021-12-23 2022-04-21 Amar Srivastava Technologies for network path and topology management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201018276A (en) * 2008-07-30 2010-05-01 Koninkl Philips Electronics Nv A method for discovering paths with sufficient medium time in wireless mesh networks
US20210175971A1 (en) * 2014-06-02 2021-06-10 Belkin International, Inc. Optimizing placement of a wireless range extender
US20220124548A1 (en) * 2021-12-23 2022-04-21 Amar Srivastava Technologies for network path and topology management

Also Published As

Publication number Publication date
TW202435603A (en) 2024-09-01

Similar Documents

Publication Publication Date Title
US7355977B1 (en) Method and system for a weighted allocation table
CN109257287A (en) A kind of shortest path determines method and controller
CN110247816A (en) Index monitoring method and device
CN113747277B (en) Path determination method and device
CN111770551A (en) Inter-gateway communication method, system and device for highly dynamic uncertain link
US20190349288A1 (en) Data Forwarding Method and Apparatus
CN118900253A (en) Congestion control method, system, device, computer equipment and storage medium
TWI845172B (en) Transmission path improving method in a mesh network, electronic device and computer-readable storage medium
US8879390B2 (en) Method, communication network and datacenter for traffic management in a communication network
CN110324265B (en) Traffic distribution method, routing method, equipment and network system
CN113014302B (en) Network function service chain deployment method facing satellite network
WO2024234750A1 (en) Congestion control method, apparatus, and system
CN119211048A (en) Communication method, device and equipment
US12495350B2 (en) Transmission path improving method in a mesh network, electronic device and computer-readable storage medium
CN118524048A (en) Method for improving transmission path in mesh network, electronic device and storage medium
JP2019521609A (en) Method and device for obtaining path information of data packet
CN116208559B (en) Method and system for block synchronization based on load balancing
CN118828275B (en) Data transmission method, device, equipment, storage medium and product
CN112422305B (en) Upgrading method and device of communication equipment
CN116156561B (en) Service control method, device, equipment and storage medium
CN115695203A (en) Data transmission method and device, electronic equipment and computer storage medium
CN117938868A (en) Communication system, method, device, equipment and storage medium for large-scale networking
CN117749667A (en) Method, device, equipment and storage medium for sending bandwidth information
CN119521338A (en) A decentralized Mesh networking method, communication node and storage medium
CN109450794A (en) A kind of communication means and equipment based on SDN network