CN107277886B - Internet of things equipment ad hoc network method based on WIFI - Google Patents

Internet of things equipment ad hoc network method based on WIFI Download PDF

Info

Publication number
CN107277886B
CN107277886B CN201710491641.5A CN201710491641A CN107277886B CN 107277886 B CN107277886 B CN 107277886B CN 201710491641 A CN201710491641 A CN 201710491641A CN 107277886 B CN107277886 B CN 107277886B
Authority
CN
China
Prior art keywords
network
layer
wifi
internet
wifi module
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201710491641.5A
Other languages
Chinese (zh)
Other versions
CN107277886A (en
Inventor
许俊
岳兆非
宋海亮
向斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Sway Tech Co ltd
Original Assignee
Chengdu Sway Tech Co ltd
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 Chengdu Sway Tech Co ltd filed Critical Chengdu Sway Tech Co ltd
Publication of CN107277886A publication Critical patent/CN107277886A/en
Application granted granted Critical
Publication of CN107277886B publication Critical patent/CN107277886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/04Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/246Connectivity information discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an Internet of things equipment ad hoc network method based on WIFI, which comprises the steps of configuring a WiFi module of one Internet of things equipment as a main node of a top network, enabling the WiFi module to be connected with a WiFi router, then constructing the network layer by self-networking the WiFi module of the Internet of things equipment, connecting all WiFi modules in each layer of network to the main node of an upper layer, configuring one WiFi module in the layer of network as the main node of the layer of network for connecting all WiFi modules in the lower layer of network, and automatically configuring the WiFi module of any one Internet of things equipment in the constructed network as a failed main node when the main node in the network fails. Therefore, the invention realizes the interconnection among the Internet of things devices by adopting the ad hoc network technology, reduces the construction cost of the Internet of things system, improves the network robustness and reduces the occurrence of data loss.

Description

Internet of things equipment ad hoc network method based on WIFI
The application is on the priority of a patent with the application date of 2017, 5, 18 and application number of 2017103535399, namely an Internet of things equipment ad hoc network method based on WIFI.
Technical Field
The invention relates to the technical field of Internet of things, in particular to a WIFI-based Internet of things equipment ad hoc networking method.
Background
At present, in the technical field of internet of things, a dedicated gateway is usually adopted to realize interconnection between internet of things devices, but if the devices connected by the dedicated gateway are too many and the processing capability of the dedicated gateway is limited, a situation of data loss occurs, and the robustness of the whole network is not high. Meanwhile, once the special gateway breaks down, the whole internet of things system cannot normally operate. Therefore, a technical solution for realizing interconnection between internet of things devices by using a special gateway instead is needed.
Disclosure of Invention
The invention aims to: the method solves the technical problems that the interconnection among Internet of things equipment is realized by adopting a special gateway in the technical field of the Internet of things at present, data loss is easy to occur during overload work, and the network robustness is not high.
In order to achieve the above purpose, the invention provides the following technical scheme:
a WIFI-based Internet of things equipment ad hoc network method comprises the following steps,
configuring a WiFi module of an Internet of things device as a main node of a top network and connecting the main node with a WiFi router;
the method comprises the steps that a WiFi module of the equipment of the Internet of things is self-organized to build a network layer by layer; each WiFi module in each layer network is connected to the main node of the upper layer network, and one WiFi module in the layer network is configured as the main node of the layer network and used for being connected with each WiFi module in the lower layer network;
when the main node in the network fails, automatically configuring a WiFi module of any one piece of Internet of things equipment in the constructed network as the main node.
According to a specific implementation mode, the WIFI-based Internet of things equipment ad hoc network method comprises the steps of establishing a main node network address list after a network is established, and writing the network address of a main node of each layer of the network into the main node network address list;
sequencing the network addresses of the network main nodes of each layer according to the sequence of the signal intensity of the network main nodes of each layer and the WiFi router from strong to weak;
when the master node of the top network fails, the network address of the current top network master node is removed from the master node network address list, and then the most advanced network address in the master node address list is used as the network address of the new top network master node.
According to a specific implementation mode, the WIFI-based Internet of things equipment ad hoc network method comprises the steps of respectively establishing network address lists of each layer of network after the network is established, and writing network addresses of WiFi modules in each layer of network into the corresponding network address lists;
according to the communication quality of each WiFi module in each layer of network and the WiFi module of the lower layer of network, the network addresses of the WiFi modules are sequenced from high to low;
except the situation that the main node of the top network fails, when the main nodes of other layers of networks fail, the network address of the current main node is removed from the corresponding network address list, and then the most front network address in the network address list is used as the network address of a new main node;
the communication quality between two adjacent layers of networks is determined according to the mean value and variance of the signal intensity of each WiFi module in the upper layer network and the WiFi module in the lower layer network, and the larger the mean value is, the smaller the variance is, the higher the communication quality is.
Furthermore, the WIFI-based Internet of things equipment ad hoc network method also collects the network address of the failed WiFi module, and generates corresponding fault information of the Internet of things equipment according to the network address of the failed WiFi module.
According to a specific implementation mode, the Internet of things equipment ad hoc network method based on WIFI adopts the MESH networking technology to carry out ad hoc network.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention relates to an Internet of things equipment ad hoc network method based on WIFI, which comprises the steps of firstly configuring a WiFi module of one Internet of things equipment as a main node of a top network, connecting the WiFi module with a WiFi router, then self-networking the WiFi module of the Internet of things equipment to build a network layer by layer, connecting all WiFi modules in each layer of network to the main node of an upper layer, configuring one WiFi module in the layer of network as the main node of the layer of network for connecting all WiFi modules in the lower layer of network, and automatically configuring the WiFi module of any one Internet of things equipment in the built network as a failed main node when the main node in the network fails. Therefore, the Internet of things equipment is interconnected by adopting the ad hoc network technology, the construction cost of the Internet of things system is reduced, the network robustness is improved, the occurrence of data loss is reduced, and the network constructed by the WIFI-based Internet of things equipment ad hoc network method is higher in adaptability in practical application.
2. According to the WIFI-based Internet of things equipment ad hoc network method, the master node network address list is established, and when the master nodes of the top-level network fail, the master node with the highest signal intensity is selected as the new master node of the top-level network according to the signal intensity of the rest master nodes and the WiFi router. Therefore, the invention can accelerate the speed of re-networking when the top-level network master node fails, and simultaneously improve the network stability after re-networking.
3. According to the WIFI-based Internet of things equipment ad hoc network method, the network address list of each layer of network is established, and when the main nodes of other layers of networks except the top layer network fail, one WiFi module with the highest communication quality with the WiFi module of the Internet of things equipment of the lower layer network is selected from the failed main node network to serve as the new main node of the layer network. Therefore, the invention can improve the communication quality after the network is re-organized and simultaneously increase the robustness of the network when the main nodes of other layers except the top layer network fail.
Description of the drawings:
fig. 1 is a schematic structural diagram of a network constructed by the present invention.
Detailed Description
The present invention will be described in further detail with reference to test examples and specific embodiments. It should be understood that the scope of the above-described subject matter is not limited to the following examples, and any techniques implemented based on the disclosure of the present invention are within the scope of the present invention.
The structure of the network constructed in connection with the present invention shown in fig. 1 is schematic; the equipment for constructing the network comprises a WiFi router, Internet of things equipment DeV1-1, Internet of things equipment DeV 2-1-Internet of things equipment DeV2-n and Internet of things equipment DeV 3-1-Internet of things equipment DeV 3-n.
First, a WiFi module of an internet of things device DeV1-1 is configured as a master node of the overlay network and connected to a WiFi router.
And then constructing a network layer by layer through an ad hoc network, wherein the WiFi module of each Internet of things device in each layer of the network is commonly connected to the main node of the upper layer of the network, and the WiFi module of one Internet of things device in the layer of the network is configured as the main node of the layer of the network and used for connecting the WiFi modules of all the Internet of things devices in the lower layer of the network. Thus, the WiFi modules of the internet of things device DeV2-1, the internet of things device DeV2-2, · · · · internet of things device DeV2-n act as a second tier network and are commonly connected to the WiFi module of the master node internet of things device DeV1-1 of the top tier network. The WiFi module of the Internet of things device DeV3-1, the Internet of things device DeV3-2, · · the Internet of things device DeV3-n serves as a third-layer network and is connected to the WiFi module of the main node Internet of things device DeV2-2 of the second-layer network. The WiFi module of the Internet of things device DeV4-1 and the Internet of things device DeV4-2, the Internet of things device DeV4-n serves as a fourth layer network and is connected to the WiFi module of the main node Internet of things device DeV3-1 of the third layer network. And the value of n is represented as a configuration value of the WiFi module in each layer network which is connected with the WiFi module in the upper layer network together. In this embodiment, the configuration values of the WiFi module are configured to be uniform values.
When the main node in the network fails, the WiFi module of any one piece of Internet of things equipment in the constructed network is automatically configured as the failed main node.
Specifically, after the network is constructed, a master node network address list is established, and the network address of the master node in each layer of the network is written into the master node network address list. The following table is based on the master node network address list of the network shown in fig. 1.
host1 23:4e:34:23:45:34
node1 25:44:3e:4f:35:50
node2 25:44:38:4f:36:55
node3 25:44:3e:4f:38:55
The node1 is represented as a network address of a WiFi module of the master node internet of things device DeV1-1 of the top-level network, the node2 is represented as a network address of a WiFi module of the master node internet of things device DeV2-2 of the second-level network, and the node3 is represented as a network address of a WiFi module of the master node internet of things device DeV3-1 of the third-level network.
Among the WiFi modules of the internet of things device DeV1-1, the internet of things device DeV2-2, and the internet of things device DeV3-1, the signal strength between the WiFi module of the internet of things device DeV1-1 and the WiFi router is the largest, and the signal strength between the internet of things device DeV3-1 and the WiFi router is the smallest. Therefore, when the network addresses of the network master nodes of each layer are sorted according to the sequence from strong to weak of the signal strength of the network master nodes of each layer and the WiFi router, the network address of the WiFi module of the internet of things device DeV1-1 is arranged at the top, and the network address of the WiFi module of the internet of things device DeV3-1 is arranged at the bottom.
When the master node of the top-level network fails, the network address of the current top-level network master node, i.e., < node1, 25:44:3e:4f:35:50> in table 1, is removed from the master node network address list. And then the most advanced network address in the master node address list is used as the network address of the new top-level network master node, namely < node2, 25:44:38:4f:36:55> in table 1 is used as the network address of the new top-level network master node. Meanwhile, in the second-layer network, except the internet of things device DeV2-2, the internet of things device DeV2-1, the internet of things device DeV2-3 and the internet of things device DeV2-n are added to the fourth-layer network or the fifth-layer network is constructed.
In addition, according to the WIFI-based Internet of things equipment ad hoc network method, after the network construction is completed, the network address lists of all layers of networks are respectively established, and the network addresses of the WiFi modules of the Internet of things equipment in all layers of networks are written into the corresponding network address lists.
And sequencing the network addresses of the WiFi modules of the equipment of the Internet of things according to the communication quality of the WiFi modules of the equipment of the Internet of things in each layer of network and the WiFi modules of the equipment of the Internet of things in the lower layer of network and the sequence of the communication quality from high to low.
Except the situation that the main node of the top network fails, when the main nodes of other layers of networks fail, the network address of the current main node is removed from the corresponding network address list, and then the most advanced network address in the network address list is used as the network address of the new main node.
The communication quality between two adjacent layers of networks is determined according to the average value or variance of the signal intensity of the WiFi module of the Internet of things equipment in the upper layer network and the WiFi module of each Internet of things equipment in the lower layer network. Also, the larger the mean and the smaller the variance, the higher the communication quality. If the communication quality between two adjacent networks is characterized by only the size of the mean value, the situation that the signal strength of a certain communication link is small but the mean value is large can occur, and the selected main node is likely to reduce the robustness of the network. Meanwhile, if only the variance is used to characterize the communication quality between two adjacent layers of networks, the overall signal strength is not high but the signal strengths of the communication links are relatively close, so that the selected master node is likely to reduce the communication efficiency and stability of the network.
In addition, the WIFI-based Internet of things equipment ad hoc network method also collects the network address of the failed WiFi module, and generates corresponding fault information of the Internet of things equipment according to the network address of the failed WiFi module.
In the invention, the adopted ad hoc network technology is the MESH networking technology, and the MESH ad hoc network technology is adopted, so that the node load can be automatically judged and switched in the networking process, thereby improving the network robustness.

Claims (5)

1. An Internet of things equipment ad hoc network method based on WIFI is characterized by comprising the following steps,
configuring a WiFi module of an Internet of things device as a main node of a top network and connecting the main node with a WiFi router;
the method comprises the steps that a WiFi module of the equipment of the Internet of things is self-organized to build a network layer by layer; each WiFi module in each layer network is connected to the main node of the upper layer network, and one WiFi module in the layer network is configured as the main node of the layer network and used for being connected with each WiFi module in the lower layer network;
when the main node in the network fails, configuring the WiFi module of one piece of Internet of things equipment in the constructed network as the main node according to the signal strength of the main nodes of each layer of network and the WiFi router and the communication quality of each WiFi module in each layer of network and the WiFi module of the lower layer network.
2. The WIFI-based IOT device ad hoc network method of claim 1,
after the network is built, a main node network address list is built, and the network address of the main node in each layer of the network is written into the main node network address list;
sequencing the network addresses of the network main nodes of each layer according to the sequence of the signal intensity of the network main nodes of each layer and the WiFi router from strong to weak;
when the master node of the top network fails, the network address of the current top network master node is removed from the master node network address list, and then the most advanced network address in the master node address list is used as the network address of the new top network master node.
3. The WIFI-based IOT device ad hoc network method of claim 2,
after the network construction is finished, respectively establishing network address lists of each layer of network, and writing the network addresses of the WiFi modules in each layer of network into the corresponding network address lists;
according to the communication quality of each WiFi module in each layer of network and the WiFi module of the lower layer of network, the network addresses of the WiFi modules are sequenced from high to low;
except the situation that the main node of the top network fails, when the main nodes of other layers of networks fail, the network address of the current main node is removed from the corresponding network address list, and then the most front network address in the network address list is used as the network address of a new main node;
the communication quality between two adjacent layers of networks is determined according to the mean value and variance of the signal intensity of each WiFi module in the upper layer network and the WiFi module in the lower layer network, and the larger the mean value is, the smaller the variance is, the higher the communication quality is.
4. The WIFI-based Internet of things equipment ad hoc network method according to claim 2 or 3, wherein the network address of the failed WiFi module is collected, and fault information of corresponding Internet of things equipment is generated according to the network address of the failed WiFi module.
5. The WIFI-based Internet of things equipment ad hoc network method according to any one of claims 1 to 3, wherein MESH networking technology is adopted for ad hoc networking.
CN201710491641.5A 2017-05-18 2017-06-26 Internet of things equipment ad hoc network method based on WIFI Active CN107277886B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710353539 2017-05-18
CN2017103535399 2017-05-18

Publications (2)

Publication Number Publication Date
CN107277886A CN107277886A (en) 2017-10-20
CN107277886B true CN107277886B (en) 2021-06-04

Family

ID=60068253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710491641.5A Active CN107277886B (en) 2017-05-18 2017-06-26 Internet of things equipment ad hoc network method based on WIFI

Country Status (1)

Country Link
CN (1) CN107277886B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995668A (en) * 2017-11-10 2018-05-04 厦门广控物联科技有限公司 A kind of optimization network-building method of wireless ad hoc network
CN108092862A (en) * 2017-12-15 2018-05-29 四川爱联科技有限公司 WiFi ad hoc network control systems based on Internet of Things
CN112822743B (en) * 2018-01-02 2023-12-19 西安万像电子科技有限公司 Link switching method and device
CN109640373B (en) * 2019-01-17 2021-10-15 珠海格力电器股份有限公司 Networking method and device applied to Internet of things and storage medium
CN110505096B (en) * 2019-08-27 2022-07-19 西安闻泰电子科技有限公司 Internet of things equipment management method, device, equipment and medium
CN112000042B (en) * 2020-08-26 2024-03-12 中国石油化工集团有限公司 Equal network control system and method for multi-electric fracturing device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8228912B2 (en) * 2009-04-30 2012-07-24 Hewlett-Packard Development Company, L.P. Selecting wireless mesh node locations
CN102196458A (en) * 2010-03-09 2011-09-21 江苏联优信息科技有限公司 Networking method and devices of wireless broadband sensor network
CN102149020A (en) * 2011-04-29 2011-08-10 公安部第三研究所 Wireless bandwidth audio/video node system oriented to application of IOT (internet of things)
CN103179208A (en) * 2013-03-22 2013-06-26 广东顺德拓普利德科技有限公司 Communication module of internet of things and remote control method of electric equipment with module
CN103475742B (en) * 2013-09-30 2017-02-01 北京华胜天成科技股份有限公司 Method and system for determining master control node in cloud computing environment
CN106302787B (en) * 2016-08-31 2019-07-09 四川云农高地智能科技有限公司 A kind of internet of things networking method based on cloud configuration
CN106304230B (en) * 2016-09-28 2019-06-21 北京远东仪表有限公司 Based on the wireless self-networking method and device routed immediately

Also Published As

Publication number Publication date
CN107277886A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
CN107277886B (en) Internet of things equipment ad hoc network method based on WIFI
CN103428031B (en) A kind of inter-domain link fast failure recovery method based on software defined network
DE102011114278B4 (en) A method and apparatus providing failover for a point-to-point tunnel for wireless local area network split-plane environments
CN102368727B (en) Crossed IP network TRILL network communication method, system thereof and devices
CN101771618B (en) Host routing reachable method and system in access ring of packet transport network
CN102857377B (en) The online topological automatic generation method of a kind of train network
CN102917384B (en) Hot backup method of coordinators in Zigbee network
CN103441781B (en) Power line carrier ad hoc network and system
CN106340176A (en) Intelligent electricity meter information sharing method, intelligent electricity meter and acquisition router
CN204795616U (en) ZIGBEE network access control device
CN105827439B (en) The method for realizing wireless device ad hoc network
CN103763750B (en) Method for fast achieving packet forwarding in wireless ad hoc network of TDMA protocol
CN102957589A (en) Method, network node and system for service data transmission
CN106612232B (en) A kind of concentrator active meter reading method for routing adapting to changeable factor
CN105490937B (en) Ether virtual network gateway switching method and service provider&#39;s edge node devices
DE102011114276A1 (en) Fail-safe through Routed Split Multi-Link Trunking for Split-Plane Environment Wireless Local Area Networks
CN108632848A (en) Network is sliced self-optimizing coordination approach and device
CN101686188A (en) Method for establishing route table, routing method and router in hierarchy sequential address packet network
CN110933734B (en) Communication system and method based on fusion of LTE module and MESH module
CN102802280A (en) Wireless grid network
CN106330728A (en) Method for electing backup designated router, method for processing designated router failure and equipment
CN102857415B (en) Routing bridge and device and method for controlling media access control address study
CN116545842A (en) Communication fault network reconstruction method, system, electronic equipment and storage medium
CN102665227B (en) Gateway-based relaying method based on wireless network
CN103441934B (en) A kind of learning method of stacking topology and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant