Disclosure of Invention
The invention aims to provide a multi-radio-frequency link wireless router and a fault diagnosis method, and aims to solve the problems that in the prior art, an additional wireless packet capturing network card or other packet capturing equipment tools are needed, the detection is complex, and the cost is high.
In a first aspect, the present invention provides a fault diagnosis method, where the method is applied to a multi-radio frequency link wireless router and a multi-radio frequency link wireless access point, and the method includes:
when one of the radio frequency links fails, the controller controls one of the normal radio frequency links to acquire a wireless communication data packet on the failed radio frequency link;
the controller analyzes and detects the wireless communication data packet and diagnoses the fault.
In a second aspect, the invention provides a computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the fault diagnosis method as described above
In a third aspect, the present invention provides a multi-rf link wireless router, including:
a controller;
at least two wireless radio frequency transceivers which are communicated with the controller through the communication interfaces respectively;
each wireless radio frequency transceiver is connected with at least one antenna of a frequency band;
a memory; and
one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the controller, the controller implementing the steps of the fault diagnosis method as described above when executing the computer programs.
In a fourth aspect, the present invention provides a multi-rf link wireless access point, including:
a controller;
at least two wireless radio frequency transceivers which are communicated with the controller through the communication interfaces respectively;
each wireless radio frequency transceiver is connected with at least one antenna of a frequency band;
a memory; and
one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the controller, the controller implementing the steps of the fault diagnosis method as described above when executing the computer programs.
In the invention, when one radio frequency link in the multi-radio frequency link wireless router or the multi-radio frequency link wireless access point is in failure, the controller controls one normal radio frequency link to acquire the wireless communication data packet on the failed radio frequency link. Therefore, an additional wireless packet capturing network card or other packet capturing equipment tools are not needed, the detection is simple, and the cost is low.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
The first embodiment is as follows:
referring to fig. 1, a fault diagnosis method provided in an embodiment of the present invention is applicable to a multi-rf link wireless router and a multi-rf link wireless access point, and the method includes the following steps: it should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 1 if the results are substantially the same.
S101, when one of the radio frequency links fails, the controller controls one of the normal radio frequency links to acquire a wireless communication data packet on the failed radio frequency link.
In the first embodiment of the present invention, the radio frequency link failure is detected by the following method:
the controller regularly detects whether all the radio frequency links are on-line, if the radio frequency links are detected to be off-line and no feedback is given to the request of the controller, the radio frequency links of the path are confirmed to be in fault; alternatively, the first and second electrodes may be,
the controller monitors the wireless client accessed through each radio frequency link, and if the client accessed through a certain radio frequency link suddenly disappears or basic data interaction with the controller is no longer detected, the radio frequency link is confirmed to be in fault.
The controller controls one of the normal radio frequency links to acquire the wireless communication data packet on the radio frequency link with the fault specifically comprises the following steps:
the controller determines the frequency band of the failed radio frequency link through system configuration record;
the controller controls one normal radio frequency link in the frequency band to which the failed radio frequency link belongs to acquire the wireless communication data packet on the failed radio frequency link.
The step of controlling, by the controller, one normal radio frequency link in the frequency band to which the failed radio frequency link belongs to acquire the wireless communication data packet on the failed radio frequency link may specifically include the following steps:
the controller inquires the MAC address of the failed radio frequency link through system configuration records;
the controller controls one of the normal radio frequency links to acquire all wireless communication data packets related to the MAC address (whether the MAC address is an original address or a destination address) in the air;
when a normal radio frequency link acquires a wireless communication data packet related to the MAC address, the controller controls the normal radio frequency link to request to access a network of the failed radio frequency link;
and after the normal radio frequency link is accessed to the fault link network, the controller acquires the interactive information of the normal radio frequency link and the fault link network.
S102, the controller analyzes and detects the wireless communication data packet and diagnoses faults.
In the first embodiment of the present invention, S102 may specifically be:
the controller analyzes and detects the wireless communication data packet and the interactive information, and diagnoses the fault.
By means of analysis and detection, at least the following faults can be diagnosed:
1. whether the power strength sent by the antennas (such as 1 to 4 antennas) of the failed radio frequency link is in a normal range;
2. whether the antenna (e.g., 1 to 4 antennas) reception sensitivity level of the failed radio frequency link is in a normal range;
3. whether the failed link can automatically negotiate with the normal link to a normal link rate;
4. and whether the failed radio frequency link can be subjected to throughput test with a normal radio frequency link or not, and whether the data level is normal or not is tested.
Example two:
the second embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the fault diagnosis method according to the first embodiment of the present invention are implemented.
Example three:
fig. 2 is a block diagram showing a specific structure of a multi-rf link wireless router or a multi-rf link wireless access point according to a third embodiment of the present invention, where the multi-rf link wireless router or the multi-rf link wireless access point includes:
a controller 11;
at least two wireless radio frequency transceivers 12 respectively communicating with the controller 11 through communication interfaces;
each wireless radio frequency transceiver 12 is connected with at least one frequency band antenna 13 (shown as a 5GHz band antenna);
a memory 14; and
one or more computer programs, wherein the one or more computer programs are stored in the memory 14 and configured to be executed by the controller 11, and the controller 11 executes the computer programs to implement the steps of the fault diagnosis method according to the first embodiment of the present invention.
In the third embodiment of the present invention, when the number of the radio frequency transceivers is two, and each radio frequency transceiver is connected to an antenna in one frequency band, the antennas connected to the two radio frequency transceivers are antennas in the same frequency band. As shown in fig. 2. For example, the antennas connected by the two wireless radio frequency transceivers are both 2.4GHz band antennas or both 5GHz band antennas.
When two antennas 23 are connected to each wireless radio frequency transceiver 22, the two antennas 23 are two antennas of different frequency bands. For example, the two different frequency band antennas are a 2.4GHz band antenna and a 5GHz band antenna. As shown in fig. 3.
In the third embodiment of the present invention, the communication interface may be an ethernet interface, and the ethernet interface may be a hundred-mega ethernet interface, a gigabit ethernet interface, or the like.
In the embodiment of the invention, when one radio frequency link in the multi-radio frequency link wireless router or the multi-radio frequency link wireless access point fails, the controller controls one normal radio frequency link to acquire the wireless communication data packet on the failed radio frequency link. Therefore, an additional wireless packet capturing network card or other packet capturing equipment tools are not needed, the detection is simple, and the cost is low.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.