CN106658645A - Ad hoc network connection method and system based on wireless signal strength - Google Patents
Ad hoc network connection method and system based on wireless signal strength Download PDFInfo
- Publication number
- CN106658645A CN106658645A CN201611214174.3A CN201611214174A CN106658645A CN 106658645 A CN106658645 A CN 106658645A CN 201611214174 A CN201611214174 A CN 201611214174A CN 106658645 A CN106658645 A CN 106658645A
- Authority
- CN
- China
- Prior art keywords
- router
- current
- wireless signal
- signal strength
- downstream
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
- H04W40/12—Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
- H04W40/18—Communication route or path selection, e.g. power-based or shortest path routing based on predicted events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/24—Connectivity information management, e.g. connectivity discovery or connectivity update
- H04W40/246—Connectivity information discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-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)
Abstract
The invention discloses an ad hoc network connection method and an ad hoc network connection system based on wireless signal strength. The method comprises the following steps: S100, all routers acquire wireless signal strength with adjacent routers; S200, all routers generate adjacent router lists and route tables; and S300, an Internet terminal selects the optimal route of the adjacent router with the highest wireless signal strength to connect a network. According to the method and the system provided by the invention, networking connection is performing by using a main router as a root router according to the size of RSSI, the connection with the strongest signal is selected, and the optimal route is to be automatically matched by a wireless link, so that the wireless connection is firmer. Multi-stage nodes are sequentially connected, so that dependence on distance limitation of the root router is reduced, and the WIFI network can be distributed more widely.
Description
Technical field
The present invention relates to network routing techniques field, more particularly to a kind of MANET connection based on wireless signal strength
Method and system.
Background technology
Wireless network covering is a theme of wireless network development all the time, with the development of wireless network, is covered on a large scale
Demand is more and more critical, and profit such as campus, factory place are required for the wireless WIFI that a consolidated network is covered to meet people
The demand of work and study, with the development of technology, wireless distribution system arises at the historic moment.Wireless distribution system WDS
(Wireless Distribution System), WDS passes the data at wired networking when relaying framework through Wi-Fi
Send, thereby isdn data can be sent to another Wi-Fi environment, or another wired networking.Because through
Wi-Fi forms virtual network circuit, so it is Wi-Fi bridging functionality that someone is referred to as this.Mobile ad-hoc network be by
It is that the nothing that some moveable communication nodes are constituted is fixedly installed, can fast assembling multi-hop wireless communication network.Movement is from group
The features such as knitmesh network has network topology structure dynamic change, self-organizing non-stop layer node, wireless transmission bandwidth is limited.Due to moving
Dynamic self-organized network topology change is very fast, and channel width is limited, and the of short duration division probability of network is high, and conventional is defined by routeing bar number
Routing algorithm then is difficult to be applied to mobile ad-hoc network, to realize that reliable and stable wireless multi-hop route must study special
Routing Protocol.
RSSI (Received Signal Strength Indication) is received signal strength indicator, it indicate without
Line equipment end is received from the size of the wireless signal strength that the other end is sent, by the signal strength that receives determine signaling point with
The distance of receiving point, and then a kind of technology that location Calculation is also WIFI positioning is carried out according to corresponding data.
Existing distributed WIFI construction methods are star topology construction methods.This method have the disadvantage all sub-routes with
By can not be away from too far away, coverage can not expand on demand main road, with limitation.
The content of the invention
The invention provides a kind of MANET method of attachment and system based on wireless signal strength, its objective is automatically
Node linked list networking is set up in detecting, and it, can be by network path Automatic Optimal to most short reality by not by being limited with main route distance
The maximization of existing network network is covered, and meets interior by covering demand building network on a large scale.
The technical scheme that the present invention is provided is as follows:
A kind of MANET method of attachment based on wireless signal strength, it is characterised in that including step:
S100 all-routers are obtained and the wireless signal strength between the adjacent router;
The all routers of S200 generate adjacent router-list and routing table;
S300 access terminals select the optimal path of its neighbouring wireless signal strength highest router to carry out network-in-dialing.
In the present invention, a kind of method for taking Auto-Sensing to set up node linked list networking, it will not be received and main route distance
Restriction, can by cover demand building network.Divide multistage node to be sequentially connected, reduce the dependence limited route distance,
Route networking can be distributed wider.
Further, step is included before step S100:
S000 pre-sets the establishment rule of routing table;
S010 current routers judge whether itself only sends response message, if execution step S020;Otherwise, step is performed
Rapid S030;
It is root upstream router that S020 exports the current router, and described upstream router is level-1 router;
It is downstream router that S030 exports the current router.
Further, step S100 includes step:
The current downstream routers of S110 receive the data sent from the upper level router of the current downstream router
Message;
Current downstream router described in S120 sends the corresponding response message of data message for receiving to described when front lower
The upper level router of trip router;
The upper level router of current downstream router described in S130 judges whether to receive described working as in Preset Time
The response message that front downstream router sends, if execution step S140;Otherwise, execution step S150;
The upper level router output of current downstream router described in S140 routing link communication between the two is normal;
The upper level router obtains wireless signal to the wireless signal strength of all current downstream routers, and is preserved;
S150 exports the road between the upper level router and the current downstream router of the current downstream router
By link communication exception;
After current downstream router described in S160 completes to judge, switch arbitrary remaining described downstream router execution step
S110-S160, until all-router completes wireless signal strength judgement.
In the present invention, by the receiving data message in Preset Time and transmission response message, current road is can interpolate that
It is whether normal by device working condition, so avoid to set up routing table with the router of working state abnormal, so as to cause
The time delay produced less than root router, time-consuming cost are connected by the path of the routing table.
Further, step S200 includes step:
Current downstream router described in S210 judges whether the wireless signal that can obtain described upstream router;If holding
Row step S220;Otherwise, execution step S240;
Current downstream router described in S220 judges whether the wireless signal strength for obtaining reaches default wireless signal
Intensity threshold;If execution step S230;Otherwise, execution step S240;
S230 wireless signal strengths reach the described current downstream router of default wireless signal strength threshold value with described
Upstream router is attached;
The described current downstream router of the not up to default wireless signal strength threshold value of S240 wireless signal strengths, receives institute
Stating the wireless signal of the upper level router of current downstream router carries out intensity judgement, and according to judged result networking company is carried out
Connect;
Current downstream router described in S250 is arranged from as N level routers, generation is adjacent according to signal number of skips and route
Device list and routing table;
S260 switches next remaining described downstream router execution step S210-S250.
In the present invention, each route will generate a routing node chained list according to RSSI connections, and node linked list is into rear, networking
Just set up and complete.Signal transmission direction will be carried out according to routing node chained list.With main road by carrying out as the logical RSSI sizes of root route
Networking connects, the most strong connection of selection signal, and Auto-matching optimal path is made wireless connection more firm by wireless link road.Point
Multistage node is sequentially connected, and reduces the dependence limited root route distance, and WIFI networkings can be distributed wider.
Further, step S300 also includes step:
Current router described in S310 receives the connection request message that access terminals send;
S320 judges whether the number of skips between the current router and the access terminals is more than 1, if being carried out
Step S330;Otherwise, execution step S340;
Current router described in S330 is root upstream router, then the access terminals are directly given birth to the current router
Into network connection;
Current router described in S340 is downstream router, and the current router judges whether there is arrival root in routing table
The active path of upstream router, if execution step S350;Otherwise, execution step S360;
S350 directly carries out network connection according to the active path;
S360 generates routing table according to the default rule that creates, and further according to the path of the routing table of the generation network is carried out
Connection.
In the present invention, access terminals judge whether the router for connecting is root router, if being just directly connected to, if not
It is to need to judge that the current router for connecting judges whether there is the active path for reaching root upstream router in routing table, without just
Routing table is generated, further according to the path of the routing table of the generation network connection is carried out, had just directly according to the active path
Carry out network connection.
The present invention also provides a kind of MANET connection system based on wireless signal strength, it is characterised in that include:At least
One access terminals and router;The access terminals are connected with router communication;
The router, obtains and the wireless signal strength between the adjacent router;
The router, generates adjacent router-list and routing table;
The access terminals, select its neighbouring router wireless signal strength router to carry out network-in-dialing.
In the present invention, a kind of method for taking Auto-Sensing to set up node linked list networking, it will not be received and main route distance
Restriction, can by cover demand building network.Divide multistage node to be sequentially connected, reduce the dependence limited route distance,
Route networking can be distributed wider.
Further, the router includes:Setup module, judge module and control module;The setup module and institute
State judge module communication connection;The judge module is connected with control module communication;
The setup module, pre-sets the establishment rule of routing table;
The judge module of the current router, judges whether itself only sends response message;
The control module of the current router, when itself only sends response message, exporting the current router is
Root upstream router;
The control module of the current router, when itself not only sends response message, exports the current router
It is downstream router.
Further, the router also includes:Transceiver module;The transceiver module respectively with the judge module and institute
State control module communication connection;
The transceiver module of the current downstream router, receives from the upper level router of the current downstream router and sends out
The data message sent;
The transceiver module of the current downstream router, sends the corresponding response message of data message that receives to described
The upper level router of current downstream router;
The judge module of the upper level router of the current downstream router, the upper level of the current downstream router
Router judges whether to receive the response message that the current downstream router sends in Preset Time;
The control module of the upper level router of the current downstream router, when receiving the current downstream router
During the response message for sending, the routing link communication for exporting between the two is normal;The upper level router obtains wireless
Signal and is preserved to the wireless signal strength of all current downstream routers;
The control module of the upper level router of the current downstream router, route when the current downstream is not received
During the response message that device sends, the upper level router and the current downstream for exporting the current downstream router route
Routing link communication abnormality between device;
The control module of the upper level router of the current downstream router, also completes in the current downstream router
After judgement, switch arbitrary remaining described downstream router and proceed to judge, until all-router completes wireless signal strength
Judge.
In the present invention, by the receiving data message in Preset Time and transmission response message, current road is can interpolate that
It is whether normal by device working condition, so avoid to set up routing table with the router of working state abnormal, so as to cause
The time delay produced less than root router, time-consuming cost are connected by the path of the routing table.
Further, the judge module of the current downstream router, further determines whether that described upstream route can be obtained
The wireless signal of device;
The judge module of the current downstream router, also when the wireless signal of described upstream router can be obtained,
Determine whether whether the wireless signal strength for obtaining reaches default wireless signal strength threshold value;
The control module of the current downstream router, when the wireless signal strength for obtaining reaches default wireless signal
During intensity threshold, it is attached with described upstream router;
The control module of the current downstream router, also when the wireless signal that can not obtain described upstream router or
When the wireless signal strength for obtaining not up to presets wireless signal strength threshold value, the upper of the current downstream router is received
The wireless signal of level-1 router carries out intensity judgement, and according to judged result networking connection is carried out;
The control module of the current downstream router, is arranged from as N level routers according to signal number of skips, generates
Adjacent router-list and routing table;And switch next remaining described downstream router and receive signal and carry out signal strength signal intensity judgement.
In the present invention, each route will generate a routing node chained list according to RSSI connections, and node linked list is into rear, networking
Just set up and complete.Signal transmission direction will be carried out according to routing node chained list.With main road by carrying out as the logical RSSI sizes of root route
Networking connects, the most strong connection of selection signal, and Auto-matching optimal path is made wireless connection more firm by wireless link road.Point
Multistage node is sequentially connected, and reduces the dependence limited root route distance, and WIFI networkings can be distributed wider.
Further, the judge module of the current router, also receives the connection request message that access terminals send, and sentences
Whether disconnected number of skips between the current router and the access terminals is more than 1;
The control module of the current router, also when the jump time between the current router and the access terminals
When number is more than 1, the current router is root upstream router, then the access terminals are directly generated with the current router
Network connection;
The control module of the current router, also when the jump between the current router and the access terminals
When number of times is less than 1, the current router is downstream router, then judge whether there is arrival root upstream router in routing table
Active path;
The control module of the current router, also when there is the active path for reaching root upstream router in routing table,
Directly network connection is carried out according to the active path;
The control module of the current router, also when in routing table without the active path for reaching root upstream router,
Routing table is generated according to the default rule that creates, further according to the path of the routing table of the generation network connection is carried out.
In the present invention, access terminals judge whether the router for connecting is root router, if being just directly connected to, if not
It is to need to judge that the current router for connecting judges whether there is the active path for reaching root upstream router in routing table, without just
Routing table is generated, further according to the path of the routing table of the generation network connection is carried out, had just directly according to the active path
Carry out network connection.
Compared with prior art, the present invention provides a kind of MANET method of attachment and system based on wireless signal strength,
At least bring a kind of following technique effect:
1st, networking connection, the most strong connection of selection signal, wireless link are carried out by as the logical RSSI sizes of root route with main road
Auto-matching optimal path is made wireless connection more firm by road.
2nd, divide multistage node to be sequentially connected, reduce the dependence limited root route distance, WIFI networkings can be distributed
It is wider.
Description of the drawings
Below by clearly understandable mode, preferred embodiment is described with reference to the drawings, to a kind of strong based on wireless signal
The MANET method of attachment of degree and the characteristic of system, technical characteristic, advantage and its implementation are further described.
Fig. 1 is a kind of flow chart of the MANET method of attachment one embodiment based on wireless signal strength of the present invention;
Fig. 2 is a kind of flow chart based on another embodiment of the MANET method of attachment of wireless signal strength of the present invention;
Fig. 3 is a kind of flow chart based on another embodiment of the MANET method of attachment of wireless signal strength of the present invention;
Fig. 4 is a kind of structure chart of the MANET connection system one embodiment based on wireless signal strength of the present invention;
Fig. 5 is a kind of structure chart based on another embodiment of the MANET connection system of wireless signal strength of the present invention;
Fig. 6 (a) is a kind of structure chart of one example of MANET connection system based on wireless signal strength of the present invention;
Fig. 6 (b) is a kind of structure chart based on another example of the MANET connection system of wireless signal strength of the present invention;
Table 1 is a kind of list of one example of MANET connection system based on wireless signal strength of the present invention;
Table 2 is a kind of list of one example of MANET connection system based on wireless signal strength of the present invention;
Table 3 is a kind of list of one example of MANET connection system based on wireless signal strength of the present invention.
Specific embodiment
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below by control description of the drawings
The specific embodiment of the present invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, can be obtaining other according to these accompanying drawings
Accompanying drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically show in each figure, they are not represented
Its practical structures as product.In addition, so that simplified form is readily appreciated, with identical structure or function in some figures
Part, only symbolically depicts one of those, or has only marked one of those.Herein, " one " is not only represented
" only this ", it is also possible to represent the situation of " more than one ".
With reference to shown in Fig. 1, the present invention provides an a kind of enforcement of MANET method of attachment based on wireless signal strength
Example, including:
S100 all-routers are obtained and the wireless signal strength between the adjacent router;
The all routers of S200 generate adjacent router-list and routing table;
S300 access terminals select the optimal path of its neighbouring wireless signal strength highest router to carry out network-in-dialing.
Specifically, in the present embodiment, a kind of method for taking Auto-Sensing to set up node linked list networking, it will not receive with
The restriction of main route distance, can be by covering demand building network.Divide multistage node to be sequentially connected, reduce and route distance is limited
The dependence of system, route networking can be distributed wider.
With reference to shown in Fig. 2, relative to upper one embodiment, identical part repeats no more.The present invention provides one kind and is based on
Another embodiment of the MANET method of attachment of wireless signal strength, including:
S000 pre-sets the establishment rule of routing table;
S010 current routers judge whether itself only sends response message, if execution step S020;Otherwise, step is performed
Rapid S030;
It is root upstream router that S020 exports the current router, and described upstream router is level-1 router;
It is downstream router that S030 exports the current router;
The current downstream routers of S110 receive the data sent from the upper level router of the current downstream router
Message;
Current downstream router described in S120 sends the corresponding response message of data message for receiving to described when front lower
The upper level router of trip router;
The upper level router of current downstream router described in S130 judges whether to receive described working as in Preset Time
The response message that front downstream router sends, if execution step S140;Otherwise, execution step S150;
The upper level router output of current downstream router described in S140 routing link communication between the two is normal;Institute
State upper level router and obtain wireless signal to the wireless signal strength of all current downstream routers, and preserved;
S150 exports the road between the upper level router and the current downstream router of the current downstream router
By link communication exception;
After current downstream router described in S160 completes to judge, switch arbitrary remaining described downstream router execution step
S110-S160, until all-router completes wireless signal strength judgement.
In the present embodiment, by the receiving data message in Preset Time and transmission response message, can interpolate that current
Whether router working condition is normal, so avoids to set up routing table with the router of working state abnormal, so as to lead
Cause to connect the time delay produced less than root router, time-consuming cost by the path of the routing table.
With reference to shown in Fig. 3, relative to one embodiment, identical part repeats no more.The present invention provides one kind and is based on
Another embodiment of the MANET method of attachment of wireless signal strength, including:
Current downstream router described in S210 judges whether the wireless signal that can obtain described upstream router;If holding
Row step S220;Otherwise, execution step S240;
Current downstream router described in S220 judges whether the wireless signal strength for obtaining reaches default wireless signal
Intensity threshold;If execution step S230;Otherwise, execution step S240;
S230 wireless signal strengths reach the described current downstream router of default wireless signal strength threshold value with described
Upstream router is attached;
The described current downstream router of the not up to default wireless signal strength threshold value of S240 wireless signal strengths, receives institute
Stating the wireless signal of the upper level router of current downstream router carries out intensity judgement, and according to judged result networking company is carried out
Connect;
Current downstream router described in S250 is arranged from as N level routers, generation is adjacent according to signal number of skips and route
Device list and routing table;
S260 switches next remaining described downstream router execution step S210-S250;
Current router described in S310 receives the connection request message that access terminals send;
S320 judges whether the number of skips between the current router and the access terminals is more than 1, if being carried out
Step S330;Otherwise, execution step S340;
Current router described in S330 is root upstream router, then the access terminals are directly given birth to the current router
Into network connection;
Current router described in S340 is downstream router, and the current router judges whether there is arrival root in routing table
The active path of upstream router, if execution step S350;Otherwise, execution step S360;
S350 directly carries out network connection according to the active path;
S360 generates routing table according to the default rule that creates, and further according to the path of the routing table of the generation network is carried out
Connection.
In the present embodiment, each route will generate a routing node chained list according to RSSI connections, and node linked list is into rear, group
Net is just set up and is completed.Signal transmission direction will be carried out according to routing node chained list.With main road by entering as the logical RSSI sizes of root route
Row networking connects, the most strong connection of selection signal, and Auto-matching optimal path is made wireless connection more firm by wireless link road.
Divide multistage node to be sequentially connected, reduce the dependence limited root route distance, WIFI networkings can be distributed wider.Online is eventually
End judges whether the router for connecting is root router, if being just directly connected to, if not needing the current road for judging connection
Judged whether to have in routing table the active path for reaching root upstream router by device, routing table is not generated as, further according to described
The path of the routing table of generation carries out network connection, and have carries out network connection with regard to direct according to the active path.Base of the present invention
The mobile ad-hoc network routing method on demand of the wireless signal strength between two routers, for the shifting based on most billet number
Dynamic self-organizing network On-demand routing algorithm cannot find the problem in most reliable path, by the way that wireless signal strength is converted into road
By discovery priority, to ensure that the path with optimized link state can be chosen as routed path.Using the route of the present invention
Network-building method, can find optimum route in mobile ad-hoc network.Due to mobile ad-hoc network topology meeting dynamic change,
Therefore the variation of route is also very frequent.Therefore under normal circumstances, each node is also needed to each routing table in its routing table
Item is monitored, and retains when there is data to use, and deletes when using without data, removes the invalid route table items in routing table.
With reference to shown in Fig. 4, the present invention provides an a kind of enforcement of MANET connection system based on wireless signal strength
Example, including:
At least one access terminals 200 and router 100;The access terminals 200 connect with the communication of the router 100
Connect;
The router 100, obtains and the wireless signal strength between the adjacent router 100;
The router 100, generates the adjacent list of router 100 and routing table;
The access terminals 200, select its wireless signal strength router 100 of neighbouring router 100 to carry out network-in-dialing.
In the present invention, a kind of method for taking Auto-Sensing to set up node linked list networking, it will not be received and main route distance
Restriction, can by cover demand building network.Divide multistage node to be sequentially connected, reduce the dependence limited route distance,
Route networking can be distributed wider.
With reference to shown in Fig. 5, the present invention provides a kind of another reality of the MANET connection system based on wireless signal strength
Example is applied, including:
The router 100 includes:Setup module 110, judge module 120 and control module 130;The setup module
110 are connected with the communication of the judge module 120;The judge module 120 is connected with the communication of the control module 130;
The router 100 also includes:Transceiver module 140;The transceiver module 140 respectively with the judge module 120
Connect with the communication of the control module 130;
The setup module 110, pre-sets the establishment rule of routing table;
The judge module 120 of the current router 100, judges whether itself only sends response message;
The control module 130 of the current router 100, when itself only sends response message, exports the current road
It is root upstream router 100 by device 100;
The control module 130 of the current router 100, when itself not only sends response message, exports described current
Router 100 is downstream router 100.
The transceiver module 140 of the current downstream router 100, receives from upper the one of the current downstream router 100
The data message that level router 100 sends;
The transceiver module 140 of the current downstream router 100, sends the corresponding response message of data message for receiving
To the upper level router 100 of the current downstream router 100;
The judge module 120 of the upper level router 100 of the current downstream router 100, the current downstream route
The upper level router 100 of device 100 judges whether to receive the institute that the current downstream router 100 sends in Preset Time
State response message;
The control module 130 of the upper level router 100 of the current downstream router 100, it is described current when receiving
During the response message that downstream router 100 sends, the routing link communication for exporting between the two is normal;The upper level road
Wireless signal is obtained to the wireless signal strength of all current downstream routers 100 by device 100, and is preserved;
The control module 130 of the upper level router 100 of the current downstream router 100, when not receiving described working as
During the response message that front downstream router 100 sends, the upper level router of the current downstream router 100 is exported
Routing link communication abnormality between 100 and the current downstream router 100;
The control module 130 of the upper level router 100 of the current downstream router 100, also in the current downstream
After router 100 completes to judge, switch arbitrary remaining described downstream router 100 and proceed to judge, until all-router
100 complete wireless signal strength judgement.
Further, the judge module 120 of current downstream router 100 is stated, further determines whether that described upstream can be obtained
The wireless signal of router 100;
The judge module 120 of the current downstream router 100, also when the nothing that can obtain described upstream router 100
During line signal, determine whether whether the wireless signal strength for obtaining reaches default wireless signal strength threshold value;
The control module 130 of the current downstream router 100, when the wireless signal strength for obtaining reaches default nothing
During line signal strength threshold, it is attached with described upstream router 100;
The control module 130 of the current downstream router 100, also when described upstream router 100 can not be obtained
When wireless signal or the wireless signal strength of acquisition not up to preset wireless signal strength threshold value, the current downstream is received
The wireless signal of the upper level router 100 of router 100 carries out intensity judgement, and according to judged result networking connection is carried out;
The control module 130 of the current downstream router 100, is arranged from as N levels route according to signal number of skips
Device 100, generates the adjacent list of router 100 and routing table;And switch next remaining described downstream router 100 and receive signal and carry out
Signal strength signal intensity judges.
Further, the judge module 120 of the current router 100, the connection for also receiving the transmission of access terminals 200 please
Message is sought, judges the number of skips between the current router 100 and the access terminals 200 whether more than 1;
The control module 130 of the current router 100, also when the current router 100 and the access terminals 200
Between number of skips be more than 1 when, the current router 100 be root upstream router 100, then the access terminals 200 are straight
Connect and generate network connection with the current router 100;
The control module 130 of the current router 100, also when the current router 100 and the access terminals 200
Between number of skips when being less than 1, the current router 100 is downstream router 100, then judge whether to have in routing table to
Up to the active path of root upstream router 100;
The control module 130 of the current router 100, also reaches having for root upstream router 100 when having in routing table
During effect path, directly network connection is carried out according to the active path;
The control module 130 of the current router 100, also when having without arrival root upstream router 100 in routing table
During effect path, routing table is generated according to the default rule that creates, further according to the path of the routing table of the generation network company is carried out
Connect.
In the present embodiment, by the receiving data message in Preset Time and transmission response message, can interpolate that current
Whether the working condition of router 100 is normal, so avoids to set up routing table with the router 100 of working state abnormal,
So as to cause the path by the routing table to connect the time delay produced less than root router 100, time-consuming cost.Each
Route will generate a routing node chained list according to RSSI connections, and node linked list into rear, just set up and complete by networking.Signal transmission side
To will carry out according to routing node chained list.Networking connection is carried out by as the logical RSSI sizes of root route with main road, selection signal is most strong
Connection, Auto-matching optimal path is made wireless connection more firm by wireless link road.Divide multistage node to be sequentially connected, reduce
The dependence limited root route distance, WIFI networkings can be distributed wider.Access terminals 200 judge the router of connection
Whether 100 be root router 100, if being just directly connected to, if not needing the current router 100 for judging connection to judge road
Whether there is the active path for reaching root upstream router 100 in the table of footpath, routing table is not generated as, further according to the road of the generation
The path of footpath table carries out network connection, and have carries out network connection with regard to direct according to the active path.Wherein, access terminals 200
Including but not limited to computer, facsimile machine, multifunctional equipment, mobile phone, smart mobile phone, digital camera and printer etc. are any can
The terminal of online connection.Carry out doing radio configuration process without artificial independent all-router 100 pairs again, be automatically brought into operation simple side
Just, the experience of staff is improved.
With reference to shown in Fig. 6 (a) and 6 (b), the present invention provides a kind of MANET connection system based on wireless signal strength
One example, including:
1st, set up by as root node with main road, surrounding sub-route by detect main road by RSSI value, with master after judgement
Route is connected, and sets node rank, and concrete condition is:
By for root node, node rank is 1 grade to main road, and the sub- road 1~5 of surrounding will determine that main route signal RSSI value, when
The RSSI value for detecting is more than a setting, such as -65dbm, and just with main road by being connected, sub-route now will be made by oneself sub-route
Justice is 2 grades of nodes.Shown as shown in Fig. 6 (a) and 6 (b), sub-route 1, sub-route 2, that sub-route 4 detects main road is big by RSSI
In -65dbm, they will be become 2 grades of routes by being connected with main road.
2nd, remaining route connects step by step higher level's route, and sets node rank, and concrete condition is:
Still by taking Fig. 6 (a) and 6 (b) as an example, previous step main road has been connected with sub-route 1, sub-route 2, sub-route 4, remaining
Lower sub-route 3, sub-route 5 will detect the signal strength signal intensity of 2 grades of node-routings.With reference to shown in Fig. 6 (a), due to 2 grades of node-routings
There is sub-route 1, sub-route 2, sub-route 4 this 3, each sub-route is connected the 2 grade node-routings maximum with wherein RSSI.Example
As sub-route 5 judges to find in 32 grades of node-routings that the signal strength signal intensity of 2 grades of node sub-routes 4 is maximum, and sub-route 5 will be with son
Route 4 is connected becomes 3 grades of nodes;With reference to shown in Fig. 6 (a), if sub-route 5 judges to find that the signal on sub- road 2 is most strong, sub-route
5 just will be connected with sub-route 2.
3rd, each route will according to RSSI connection generate a routing node chained list, such as main road by, sub-route 2, sub-route 3
The route section table of generation is as shown in table 1 below, table 2 and table 3:
Table 1
Node direction | Routing label | Routing node rank |
This node | Main road by | 1 |
Upstream node 1 | Nothing | Nothing |
Descendant node 1 | Sub-route 1 | 2 |
Descendant node 2 | Sub-route 2 | 2 |
Descendant node 3 | Sub-route 4 | 2 |
Table 2
Node direction | Routing label | Routing node rank |
This node | Sub-route 2 | 2 |
Upstream node 1 | Main road by | 1 |
Descendant node 1 | Sub-route 3 | 3 |
Table 3
Node direction | Routing label | Routing node rank |
This node | Sub-route 3 | 3 |
Upstream node 1 | Sub-route 2 | 2 |
Descendant node 1 | Nothing | Nothing |
Node linked list into rear, just set up and complete by networking.Signal transmission direction will be carried out according to routing node chained list.For example it is mobile whole
When end asks Internet to connect at sub-route 3, sub-route 3 will be by routing node chained list and upstream node sub-route 2
Connection, sub-route 2 realizes network-in-dialing by being connected, finally with upstream node main road again.
It should be noted that above-described embodiment can independent assortment as needed.The above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, in the premise without departing from the principle of the invention
Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (10)
1. a kind of MANET method of attachment based on wireless signal strength, it is characterised in that including step:
S100 all-routers are obtained and the wireless signal strength between the adjacent router;
The all routers of S200 generate adjacent router-list and routing table;
S300 access terminals select the optimal path of its neighbouring wireless signal strength highest router to carry out network-in-dialing.
2. the MANET method of attachment based on wireless signal strength according to claim 1, it is characterised in that the step
Include step before S100:
S000 pre-sets the establishment rule of routing table;
S010 current routers judge whether itself only sends response message, if execution step S020;Otherwise, execution step
S030;
It is root upstream router that S020 exports the current router, and described upstream router is level-1 router;
It is downstream router that S030 exports the current router.
3. the MANET method of attachment based on wireless signal strength according to claim 2, it is characterised in that the step
S100 includes step:
The current downstream routers of S110 receive the data message sent from the upper level router of the current downstream router;
Current downstream router described in S120 sends the corresponding response message of data message for receiving to the current downstream road
By the upper level router of device;
The upper level router of current downstream router described in S130 judges whether to be received in Preset Time described when front lower
The response message that trip router sends, if execution step S140;Otherwise, execution step S150;
The upper level router output of current downstream router described in S140 routing link communication between the two is normal;On described
Level-1 router obtains wireless signal to the wireless signal strength of all current downstream routers, and is preserved;
S150 exports the route chain between the upper level router and the current downstream router of the current downstream router
Road communication abnormality;
After current downstream router described in S160 completes to judge, switch arbitrary remaining described downstream router execution step S110-
S160, until all-router completes wireless signal strength judgement.
4. the MANET method of attachment based on wireless signal strength according to claim 2, it is characterised in that the step
S200 includes step:
Current downstream router described in S210 judges whether the wireless signal that can obtain described upstream router;If being carried out step
Rapid S220;Otherwise, execution step S240;
Current downstream router described in S220 judges whether the wireless signal strength for obtaining reaches default wireless signal strength
Threshold value;If execution step S230;Otherwise, execution step S240;
S230 wireless signal strengths reach the described current downstream router of default wireless signal strength threshold value and described upstream
Router is attached;
The described current downstream router of the not up to default wireless signal strength threshold value of S240 wireless signal strengths, receives described working as
The wireless signal of the upper level router of front downstream router carries out intensity judgement, and according to judged result networking connection is carried out;
Current downstream router described in S250 is arranged from as N level routers according to signal number of skips, and the adjacent router of generation is arranged
Table and routing table;
S260 switches next remaining described downstream router execution step S210-S250.
5. the MANET method of attachment based on wireless signal strength according to claim 1, it is characterised in that the step
S300 also includes step:
Current router described in S310 receives the connection request message that access terminals send;
S320 judges whether the number of skips between the current router and the access terminals is more than 1, if execution step
S330;Otherwise, execution step S340;
Current router described in S330 is root upstream router, then the access terminals directly generate net with the current router
Network connects;
Current router described in S340 is downstream router, and the current router judges whether there is arrival root upstream in routing table
The active path of router, if execution step S350;Otherwise, execution step S360;
S350 directly carries out network connection according to the active path;
S360 generates routing table according to the default rule that creates, and further according to the path of the routing table of the generation network company is carried out
Connect.
6. a kind of MANET connection system based on wireless signal strength, it is characterised in that include:At least one access terminals and
Router;The access terminals are connected with router communication;
The router, obtains and the wireless signal strength between the adjacent router;
The router, generates adjacent router-list and routing table;
The access terminals, select its neighbouring router wireless signal strength router to carry out network-in-dialing.
7. the MANET connection system based on wireless signal strength according to claim 6, it is characterised in that the route
Device includes:Setup module, judge module and control module;The setup module is connected with judge module communication;It is described to sentence
Disconnected module is connected with control module communication;
The setup module, pre-sets the establishment rule of routing table;
The judge module of the current router, judges whether itself only sends response message;
The control module of the current router, when itself only sends response message, it is on root to export the current router
Trip router;
The control module of the current router, when itself not only sends response message, under the output current router is
Trip router.
8. the MANET connection system based on wireless signal strength according to claim 6, it is characterised in that the route
Device also includes:Transceiver module;The transceiver module is connected respectively with the judge module and control module communication;
The transceiver module of the current downstream router, receives from the upper level router of the current downstream router and sends
Data message;
The transceiver module of the current downstream router, sends the corresponding response message of data message that receives to described current
The upper level router of downstream router;
The judge module of the upper level router of the current downstream router, the upper level route of the current downstream router
Device judges whether to receive the response message that the current downstream router sends in Preset Time;
The control module of the upper level router of the current downstream router, sends when the current downstream router is received
The response message when, the routing link communication for exporting between the two is normal;The upper level router obtains wireless signal
To the wireless signal strength of all current downstream routers, and preserved;
The control module of the upper level router of the current downstream router, sends out when the current downstream router is not received
During the response message for sending, export the current downstream router upper level router and the current downstream router it
Between routing link communication abnormality;
The control module of the upper level router of the current downstream router, also completes to judge in the current downstream router
Afterwards, switch arbitrary remaining described downstream router to proceed to judge, until all-router completes wireless signal strength judgement.
9. the MANET connection system based on wireless signal strength according to claim 7, it is characterised in that:
The judge module of the current downstream router, further determines whether the wireless signal that can obtain described upstream router;
The judge module of the current downstream router, also when obtaining the wireless signal of described upstream router, enters one
Step judges whether the wireless signal strength for obtaining reaches default wireless signal strength threshold value;
The control module of the current downstream router, when the wireless signal strength for obtaining reaches default wireless signal strength
During threshold value, it is attached with described upstream router;
The control module of the current downstream router, also when the wireless signal or acquisition that can not obtain described upstream router
The wireless signal strength not up to default wireless signal strength threshold value when, receive the upper level of the current downstream router
The wireless signal of router carries out intensity judgement, and according to judged result networking connection is carried out;
The control module of the current downstream router, is arranged from as N level routers, generation neighbour road according to signal number of skips
By device list and routing table;And switch next remaining described downstream router and receive signal and carry out signal strength signal intensity judgement.
10. the MANET connection system based on wireless signal strength according to claim 9, it is characterised in that:
The judge module of the current router, also receives the connection request message that access terminals send, and judges the current road
Whether it is more than 1 by the number of skips between device and the access terminals;
The control module of the current router, also when the number of skips between the current router and the access terminals is big
When 1, the current router is root upstream router, then the access terminals directly generate network with the current router
Connection;
The control module of the current router, also when the number of skips between the current router and the access terminals is little
When 1, the current router is downstream router, then judge whether there is the effective road for reaching root upstream router in routing table
Footpath;
The control module of the current router, also when there is the active path for reaching root upstream router in routing table, directly
Network connection is carried out according to the active path;
The control module of the current router, also when in routing table without the active path for reaching root upstream router, according to
The default rule that creates generates routing table, and further according to the path of the routing table of the generation network connection is carried out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611214174.3A CN106658645A (en) | 2016-12-23 | 2016-12-23 | Ad hoc network connection method and system based on wireless signal strength |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611214174.3A CN106658645A (en) | 2016-12-23 | 2016-12-23 | Ad hoc network connection method and system based on wireless signal strength |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106658645A true CN106658645A (en) | 2017-05-10 |
Family
ID=58827906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611214174.3A Pending CN106658645A (en) | 2016-12-23 | 2016-12-23 | Ad hoc network connection method and system based on wireless signal strength |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106658645A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107360610A (en) * | 2017-08-15 | 2017-11-17 | 广东电网有限责任公司惠州供电局 | A kind of dynamic router method based on LORA wireless communication technologys |
CN107770832A (en) * | 2017-10-11 | 2018-03-06 | 崔吉洲 | With interference free performance wireless relay ad hoc network method |
CN108401227A (en) * | 2018-03-07 | 2018-08-14 | 乐鑫信息科技(上海)有限公司 | A kind of method and system for establishing connectionless mesh networks routing |
CN109068339A (en) * | 2018-07-12 | 2018-12-21 | 胡文强 | A kind of repeater and the means of communication, device and system based on mesh network |
CN109448346A (en) * | 2018-10-15 | 2019-03-08 | 南京富岛信息工程有限公司 | A kind of intelligence derailer state monitoring system and its group-net communication method |
CN110087268A (en) * | 2019-04-30 | 2019-08-02 | 上海寰创通信科技股份有限公司 | A kind of based on WLAN route switching method |
CN112235811A (en) * | 2020-09-28 | 2021-01-15 | 深圳市微网力合信息技术有限公司 | Method for networking multiple routers, router, electronic device and storage medium |
CN113891354A (en) * | 2021-09-15 | 2022-01-04 | 珠海格力电器股份有限公司 | method, device, equipment and storage medium for updating mesh network |
CN114745763A (en) * | 2022-03-08 | 2022-07-12 | 深圳市欣博跃电子有限公司 | Method and system for updating optimal network topology |
CN115371129A (en) * | 2022-10-25 | 2022-11-22 | 山东辰智电子科技有限公司 | Thermal metering system, thermal metering method, storage medium and electronic device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101394356A (en) * | 2008-10-29 | 2009-03-25 | 北京大学 | Route establishing method and device for mobile Ad hoc network |
-
2016
- 2016-12-23 CN CN201611214174.3A patent/CN106658645A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101394356A (en) * | 2008-10-29 | 2009-03-25 | 北京大学 | Route establishing method and device for mobile Ad hoc network |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107360610A (en) * | 2017-08-15 | 2017-11-17 | 广东电网有限责任公司惠州供电局 | A kind of dynamic router method based on LORA wireless communication technologys |
CN107770832A (en) * | 2017-10-11 | 2018-03-06 | 崔吉洲 | With interference free performance wireless relay ad hoc network method |
CN107770832B (en) * | 2017-10-11 | 2021-02-19 | 崔吉洲 | Wireless relay ad hoc network method with anti-interference performance |
CN108401227A (en) * | 2018-03-07 | 2018-08-14 | 乐鑫信息科技(上海)有限公司 | A kind of method and system for establishing connectionless mesh networks routing |
US11212729B2 (en) | 2018-03-07 | 2021-12-28 | Espressif Systems (Shanghai) Co., Ltd. | Method and system for establishing connectionless mesh network route |
CN109068339A (en) * | 2018-07-12 | 2018-12-21 | 胡文强 | A kind of repeater and the means of communication, device and system based on mesh network |
CN109068339B (en) * | 2018-07-12 | 2022-02-01 | 胡文强 | Repeater and communication method, device and system based on mesh network |
CN109448346A (en) * | 2018-10-15 | 2019-03-08 | 南京富岛信息工程有限公司 | A kind of intelligence derailer state monitoring system and its group-net communication method |
CN110087268B (en) * | 2019-04-30 | 2021-08-17 | 上海寰创通信科技股份有限公司 | Route switching method based on wireless local area network |
CN110087268A (en) * | 2019-04-30 | 2019-08-02 | 上海寰创通信科技股份有限公司 | A kind of based on WLAN route switching method |
CN112235811A (en) * | 2020-09-28 | 2021-01-15 | 深圳市微网力合信息技术有限公司 | Method for networking multiple routers, router, electronic device and storage medium |
CN112235811B (en) * | 2020-09-28 | 2022-04-01 | 深圳市微网力合信息技术有限公司 | Method for networking multiple routers, router, electronic device and storage medium |
CN113891354A (en) * | 2021-09-15 | 2022-01-04 | 珠海格力电器股份有限公司 | method, device, equipment and storage medium for updating mesh network |
CN113891354B (en) * | 2021-09-15 | 2022-07-12 | 珠海格力电器股份有限公司 | method, device, equipment and storage medium for updating mesh network |
CN114745763A (en) * | 2022-03-08 | 2022-07-12 | 深圳市欣博跃电子有限公司 | Method and system for updating optimal network topology |
CN114745763B (en) * | 2022-03-08 | 2023-08-22 | 深圳市欣博跃电子有限公司 | Method and system for updating optimal network topology |
CN115371129A (en) * | 2022-10-25 | 2022-11-22 | 山东辰智电子科技有限公司 | Thermal metering system, thermal metering method, storage medium and electronic device |
CN115371129B (en) * | 2022-10-25 | 2023-02-28 | 山东辰智电子科技有限公司 | Thermal metering system, thermal metering method, storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106658645A (en) | Ad hoc network connection method and system based on wireless signal strength | |
KR101342323B1 (en) | A radio and bandwidth aware routing metric for multi-radio multi-channel multi-hop wireless networks | |
US8861398B2 (en) | Method for discovering multiple routes in sensor networks | |
CN110324877B (en) | Relay robot routing method based on servo backbone network and Vikor multi-standard decision | |
CN105848238B (en) | Wireless sensor network IPv6 method for routing based on multi-parameter | |
CN101711048A (en) | Method for choosing gateway in integrating process of mobile self-organization network and Internet | |
JP4720794B2 (en) | Neighboring node confirmation method in multihop communication network, node of multihop communication network | |
Kadadha et al. | A cluster-based QoS-OLSR protocol for urban vehicular ad hoc networks | |
KR101560523B1 (en) | Operating method of wireless sensor networks considering energy efficiency | |
Kadadha et al. | A street-centric QoS-OLSR protocol for urban vehicular ad hoc networks | |
CN103024877B (en) | Wireless terminal, method for selecting gateway and Radio Network System | |
CN108848030A (en) | Data transmission method and system | |
CN107995668A (en) | A kind of optimization network-building method of wireless ad hoc network | |
CN106604350B (en) | Method for establishing tree-shaped route in power distribution and utilization wireless self-organizing network | |
CN104053208B (en) | Method for routing based on channel distribution, device in wireless self-networking | |
JP5810899B2 (en) | Wireless communication apparatus, wireless communication program, and wireless communication method | |
CN102573000B (en) | Wireless self-organizing network protection routing generation algorithm based on direct/indirect matrixes | |
KR100643289B1 (en) | Method for determining routing path in mobile ad hoc network and network apparatus thereof | |
Abada et al. | Improving routing performances to provide internet connectivity in VANETs over IEEE 802.11 p | |
JP5664768B2 (en) | Node, link forming method and link forming program | |
WO2014185768A1 (en) | A method of spectrum aware routing in a mesh network and a system derived thereof | |
CN105263121B (en) | Method for routing based on crossroad in a kind of chance In-vehicle networking | |
Pandey et al. | Efficient routing in mobile ad hoc networks based on awareness of link quality | |
Banik et al. | Design of QoS Routing Framework based on OLSR Protocol | |
CN104869605A (en) | Emergency communication-based AODV route stability algorithm improvement method |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170510 |
|
WD01 | Invention patent application deemed withdrawn after publication |