A kind of more radio frequency link wireless routers and method for diagnosing faults
Technical field
The invention belongs to the communications field, more particularly to a kind of more radio frequency link wireless routers and method for diagnosing faults.
Background technology
The more radio frequency link wireless routers and more radio frequency link WAPs of prior art, can not when there is client
Although connect more radio frequency link wireless routers or more radio frequency link WAPs or client can connect more radio frequency links without
Line router or more radio frequency link WAPs but can not surf the Net etc. failure when, it is necessary to by capture wireless communication data bag come
Fault diagnosis is carried out, this just needs to use special wireless packet capturing network interface card or other wireless packet capturing equipment tools.Due to needing volume
Outer wireless packet capturing network interface card or other packet capturing equipment tools, therefore detection of complex, cost are high.
The content of the invention
It is an object of the invention to provide a kind of more radio frequency link wireless routers and method for diagnosing faults, it is intended to solves existing
There is technology to need extra wireless packet capturing network interface card or other packet capturing equipment tools, detection of complex, the problem of cost is high.
In a first aspect, the invention provides a kind of method for diagnosing faults, methods described is applied to more radio frequency links without circuit
By device and more radio frequency link WAPs, methods described includes:
When one of radio frequency link breaks down, controller controls one of them normal radio frequency link to obtain generation
Wireless communication data bag on the radio frequency link of failure;
Controller is analyzed and detected to wireless communication data bag, tracing trouble.
Second aspect, the invention provides a kind of computer-readable recording medium, the computer-readable recording medium is deposited
Computer program is contained, the step of computer program realizes method for diagnosing faults described above when being executed by processor
The third aspect, the invention provides a kind of more radio frequency link wireless routers, including:
Controller;
At least two rf receiver and transmitters to be communicated respectively by communication interface with controller;
Each rf receiver and transmitter is at least connected with the antenna of a frequency range;
Memory;And
One or more computer programs, wherein one or more of computer programs are stored in the memory
In, and be configured to be performed by the controller, the controller realizes event described above when performing the computer program
The step of hindering diagnostic method.
Fourth aspect, the invention provides a kind of more radio frequency link WAPs, including:
Controller;
At least two rf receiver and transmitters to be communicated respectively by communication interface with controller;
Each rf receiver and transmitter is at least connected with the antenna of a frequency range;
Memory;And
One or more computer programs, wherein one or more of computer programs are stored in the memory
In, and be configured to be performed by the controller, the controller realizes event described above when performing the computer program
The step of hindering diagnostic method.
In the present invention, due to as wherein one in more radio frequency link wireless routers or more radio frequency link WAPs
When individual radio frequency link breaks down, controller controls one of them normal radio frequency link to obtain on the radio frequency link to break down
Wireless communication data bag.Therefore wireless packet capturing network interface card that need not be additionally or other packet capturing equipment tools, detection is simple, cost
It is low.
Brief description of the drawings
Fig. 1 is the method for diagnosing faults flow chart that the embodiment of the present invention one provides.
Fig. 2 is the more radio frequency link wireless routers or more radio frequency link WAPs that the embodiment of the present invention three provides
A kind of scheme concrete structure block diagram.
Fig. 3 is the more radio frequency link wireless routers or more radio frequency link WAPs that the embodiment of the present invention three provides
Another scheme concrete structure block diagram.
Embodiment
In order that the purpose of the present invention, technical scheme and beneficial effect are more clearly understood, below in conjunction with accompanying drawing and implementation
Example, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only explaining this hair
It is bright, it is not intended to limit the present invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one:
Referring to Fig. 1, the method for diagnosing faults that the embodiment of the present invention one provides is applied to more radio frequency link wireless routers
With more radio frequency link WAPs, the described method comprises the following steps:If it is noted that there is substantially the same result,
The method of the present invention is not limited with the flow order shown in Fig. 1.
S101, when one of radio frequency link breaks down, controller controls one of them normal radio frequency link to obtain
Take the wireless communication data bag on the radio frequency link to break down.
In the embodiment of the present invention one, radio frequency link breaks down and detected in the following manner:
Whether all radio frequency links of controller periodic detection are all online in itself, if detect that radio frequency link goes offline, and
Request to controller is not fed back, then confirms that the road radio frequency link breaks down;Or
The wireless client that monitoring control devices are come in by every radio frequency link access, if monitored by certain rf chain
The client that road access is come in suddenly disappears or no longer has basic data to interact with controller, then confirms that the road radio frequency link occurs
Failure.
The controller controls one of them normal radio frequency link to obtain the channel radio on the radio frequency link to break down
Letter data bag specifically includes following steps:
The controller records the frequency range belonging to the radio frequency link for determining to break down by system configuration;
One of them the normal radio frequency link for the frequency range belonging to radio frequency link that controller control is broken down obtains hair
Wireless communication data bag on the radio frequency link of raw failure.
One of them the normal radio frequency link for the frequency range belonging to radio frequency link that the controller control is broken down obtains
The wireless communication data bag on the radio frequency link to break down is taken specifically to may comprise steps of:
MAC Address of the controller by system configuration record queries to the radio frequency link to break down;
It is all (either former with the MAC Address in air that controller controls one of them normal radio frequency link to obtain
Address or destination address) relevant wireless communication data bag;
When normal radio frequency link gets the wireless communication data bag relevant with the MAC Address, controller control
The network for the radio frequency link that normal radio frequency link request access is broken down;
After normal radio frequency link is linked into faulty link network, controller obtains normal radio frequency link and faulty link net
The interactive information of network.
S102, controller are analyzed and detected to wireless communication data bag, tracing trouble.
In the embodiment of the present invention one, S102 is specifically as follows:
Controller is analyzed and detected to wireless communication data bag and interactive information, tracing trouble.
By analyzing and detecting, following failure can be at least diagnosed to be:
Whether the power level that the antenna (such as 1 to 4 antenna) of the radio frequency link the 1, to break down is sent is in just
Normal scope;
Whether antenna (such as 1 to 4 antenna) receiving sensitivity level of the radio frequency link the 2, to break down is in normal
Scope;
Whether that the 3rd, breaks down can be with normal link auto negotiation to normally linking speed;
Whether that the 4th, breaks down can carry out testing throughput with normal radio frequency link, and just whether test data level
Often.
Embodiment two:
The embodiment of the present invention two additionally provides a kind of computer-readable recording medium, and the computer-readable recording medium is deposited
Computer program is contained, the fault diagnosis provided such as the embodiment of the present invention one is provided when the computer program is executed by processor
The step of method.
Embodiment three:
Fig. 2 shows more radio frequency link wireless routers of the offer of the embodiment of the present invention three or more radio frequency link wireless access
The concrete structure block diagram of point, a kind of more radio frequency link wireless routers or more radio frequency link WAPs, including:
Controller 11;
At least two rf receiver and transmitters 12 to be communicated respectively by communication interface with controller 11;
Each rf receiver and transmitter 12 is at least connected with the antenna 13 (being 5GHz band antennas shown in figure) of a frequency range;
Memory 14;And
One or more computer programs, wherein one or more of computer programs are stored in the memory 14
In, and be configured to be performed by the controller 11, the controller 11 realizes such as this hair when performing the computer program
The step of method for diagnosing faults that bright embodiment one provides.
In the embodiment of the present invention three, when the quantity of rf receiver and transmitter is two, each rf receiver and transmitter connects
When connecing the antenna of frequency range, the antenna of two rf receiver and transmitters connections is the antenna of same frequency range.As shown in Figure 2.
Such as the antenna of two rf receiver and transmitters connection is all 2.4GHz band antennas or is all 5GHz band antennas.
When each rf receiver and transmitter 22 connects two antennas 23, two antennas 23 are the days of two different frequency ranges
Line.Such as the antenna of two different frequency ranges is 2.4GHz band antennas and 5GHz band antennas.As shown in Figure 3.
In the embodiment of the present invention three, communication interface can be Ethernet interface, and Ethernet interface can be 100,000,000 ether
Network interface, gigabit ethernet interface etc..
In embodiments of the present invention, due to when in more radio frequency link wireless routers or more radio frequency link WAPs
When one of radio frequency link breaks down, controller controls one of them normal radio frequency link to obtain the radio frequency to break down
Wireless communication data bag on link.Therefore wireless packet capturing network interface card that need not be additionally or other packet capturing equipment tools, detection letter
Single, cost is low.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.