Antenna fault self-checking method of wireless equipment
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a method for self-checking an antenna fault of a wireless device.
Background
With the development of scientific technology, wireless technology and wireless devices are increasingly used in various places in life and production. According to the current communication technology theory, when a wireless device and a wireless terminal transmit data, the data is divided into TX and RX directions. The TX (transmit) direction refers to the antenna of the wireless device to the antenna of the wireless terminal, and the RX (Receive) direction refers to the antenna of the wireless terminal to the antenna of the wireless device. The wireless device in the invention refers to devices such as a wireless Access Point (AP) (Access Point) and a wireless router and the like which construct a wireless network in a narrow sense, and does not include wireless devices in a broad sense such as a wireless terminal.
Research shows that the performance of a wireless communication system is greatly influenced by an antenna of a wireless device, and when the wireless device and a wireless terminal transmit data, the signal strength of the wireless device in the TX/RX direction determines the negotiation rate at which the wireless device and the wireless terminal transmit data; when the signal strength of the antenna TX/RX direction of the wireless device is abnormal, the data transmitted by the two parties cannot be analyzed normally by the other party, and the transmitted data is retransmitted or discarded, which affects the data transmission efficiency. Therefore, it is important how to effectively and accurately detect an antenna failure of a wireless device.
In the conventional wireless equipment antenna fault detection mode in the prior art, when certain wireless equipment is suspected to have antenna faults, the wireless equipment is manually processed in a field environment, and the strength of a wireless signal in the TX/RX direction of the wireless equipment antenna is detected by a special wireless signal measuring instrument to determine whether the antenna has the fault problem, so that a large amount of labor and time cost is consumed.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a quick, efficient, convenient and practical antenna fault self-detection method of wireless equipment, which is accurate in detection.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a method for self-checking antenna faults of a wireless device, wherein the number of antennas of the wireless device is not less than 2, comprises the following steps:
(A) self-checking in RX Direction
(A1) Appointing two antennas to respectively receive wireless data sent by n wireless terminals which transmit data through the wireless equipment for a period of time;
(A2) analyzing the wireless data to obtain wireless signal strengths SRn1 and SRn2 of the wireless terminal received by the two antennas, and calculating the absolute value Pn = | SRn1-SRn2| of the difference value of the wireless signal strengths of the same wireless terminal received by the two antennas;
(A3) comparing Pn corresponding to all wireless terminals with a preset antenna RX direction judgment threshold value α, if all the wireless terminals meet Pn being more than or equal to α, indicating that the RX directions of the two antennas are abnormal and a fault exists, otherwise, indicating that the RX directions of the two antennas are normal;
(A4) re-assigning two antennas to perform steps (A1) - (A3) until the antennas of the wireless device are detected.
Specifically, when two antennas are reassigned, at least one of the antennas is an antenna that has not been detected on the wireless device, and the self-test of all the antennas is generally completed in a pairwise pairing manner.
Further, the antenna fault self-checking method of the wireless device further comprises the following steps:
(B) TX Direction self-test
(B1) Appointing two antennas to be tested, enabling one antenna to be tested to send data to the other antenna to be tested for a period of time, then changing the data sending direction of the two antennas to be tested, and sending the data for the same time again;
(B2) analyzing and acquiring wireless signal strengths ST1 and ST2 of the two antennas to be tested in the TX direction from the data sent twice respectively, and calculating an absolute value Q = | ST1-ST2| of the difference value of the wireless signal strengths of the two antennas to be tested;
(B3) comparing the absolute value Q with a preset antenna TX direction judgment threshold value β, if Q is more than or equal to β, indicating that the TX directions of the two antennas to be tested are abnormal and a fault exists, otherwise indicating that the TX directions of the two antennas to be tested are normal;
(B4) and (B1) reassigning the two antennas to be tested to carry out the steps (B4) until the antennas of the wireless equipment are all detected.
Specifically, in the step (B1), data transmission and reception between the two antennas to be tested are performed by calling a transmission signal loopback function of the wireless device.
And configuring an enabling period T for the loopback function of the transmitting signal, wherein the time for sending data by the antenna to be tested is matched with the enabling period T so as to reduce the influence of the test on the normal working state of the wireless equipment.
More specifically, when two antennas to be tested are reassigned, at least one of the antennas is an antenna that has not been detected on the wireless device.
Compared with the prior art, the invention has the following beneficial effects:
(1) the invention considers from the actual operation of the wireless device, processes the data in a software mode to detect the possible faults of the antenna, thereby efficiently and accurately finding the wireless device with the abnormal antenna, facilitating the maintenance/replacement of the device by a network administrator, ensuring the reliability of the integral operation of the wireless network, improving the integral performance of the wireless network to a certain extent, and greatly saving the labor and time cost consumed by the conventional detection method.
(2) The invention skillfully utilizes the wireless terminal resources in the network environment when carrying out RX direction self-checking, can analyze and collect the wireless signal intensity of the wireless terminals when the wireless terminals normally communicate, thereby not influencing the normal wireless network use, having high-efficiency resource utilization rate, further reducing the time cost, only occupying the antenna resources locally when carrying out TX direction self-checking, and reducing the influence on the normal use of the wireless equipment to the minimum under the condition of meeting the detection requirement.
(3) The invention can be configured to periodically perform self-inspection on the wireless equipment, timely inform a network administrator when a fault is found, and also can perform real-time detection on the specific wireless equipment in the network according to the requirement, thereby greatly improving the working efficiency of the network administrator for maintaining the wireless equipment.
Drawings
Fig. 1 is a schematic flow chart of RX direction self-checking in the present invention.
Fig. 2 is a schematic flow chart of TX direction self-checking in the present invention.
Detailed Description
The present invention is further illustrated by the following figures and examples, which include, but are not limited to, the following examples.
Examples
As shown in fig. 1 and fig. 2, the antenna fault self-checking method of the wireless device is mainly applied to the detection of the wireless device with more than two antennas in the wireless network, and the detection mode based on the software environment and capable of running by itself or being controlled remotely greatly reduces the labor time cost for the network administrator to maintain the wireless device, and effectively improves the working efficiency for the network administrator to maintain the device.
The method specifically comprises the following steps:
(A) self-checking in RX Direction
(A1) Appointing two antennas to respectively receive wireless data sent by n wireless terminals which transmit data through the wireless equipment for a period of time;
(A2) analyzing the wireless data to obtain wireless signal strengths SRn1 and SRn2 of the wireless terminal received by the two antennas, and calculating the absolute value Pn = | SRn1-SRn2| of the difference value of the wireless signal strengths of the same wireless terminal received by the two antennas;
(A3) comparing Pn corresponding to all wireless terminals with a preset antenna RX direction judgment threshold value α, if all the wireless terminals meet Pn being more than or equal to α, indicating that the RX directions of the two antennas are abnormal and a fault exists, otherwise, indicating that the RX directions of the two antennas are normal;
(A4) re-assigning two antennas to perform steps (A1) - (A3) until the antennas of the wireless device are detected.
(B) TX Direction self-test
(B1) Appointing two antennas to be tested, transmitting and receiving data between the two antennas to be tested by calling a transmit signal loopback function of the wireless equipment, enabling one antenna to be tested to transmit data to the other antenna to be tested for a period of time, then changing the data transmission direction of the two antennas to be tested, and transmitting the data for the same time again; the loopback function of the transmitting signal is configured with an enabling period T, and the time of sending data by the antenna to be tested is matched with the enabling period T so as to reduce the influence of the test on the normal working state of the wireless equipment;
(B2) analyzing and acquiring wireless signal strengths ST1 and ST2 of the two antennas to be tested in the TX direction from the data sent twice respectively, and calculating an absolute value Q = | ST1-ST2| of the difference value of the wireless signal strengths of the two antennas to be tested;
(B3) comparing the absolute value Q with a preset antenna TX direction judgment threshold value β, if Q is more than or equal to β, indicating that the TX directions of the two antennas to be tested are abnormal and a fault exists, otherwise indicating that the TX directions of the two antennas to be tested are normal;
(B4) and (B1) reassigning the two antennas to be tested to carry out the steps (B4) until the antennas of the wireless equipment are all detected.
Specifically, when two antennas/antennas to be tested are reassigned, at least one of the antennas is an antenna that has not been detected on the wireless device. Generally completing self-checking of all antennas in a non-coincident pairwise matching mode, and further determining the position of a fault antenna in a cross matching mode; for example, when the wireless device has abcd4 antennas, the wireless device can be preliminarily determined whether the wireless device has an antenna failure problem by performing two detections by respectively pairing ab and cd, the detection process of the device without the failure can be effectively shortened, and if the wireless device has the antenna failure, the specific failed antenna position can be further determined by cross pairing bc and ad.
Through self-checking of TX/RX direction of wireless equipment antenna, when any direction of any antenna is detected to be abnormal, a network administrator is informed to maintain the wireless equipment.
The invention combines the actual operation condition of the wireless equipment, quickly and efficiently realizes the detection of the antenna fault problem, and effectively improves the overall performance of the wireless network by processing the fault problem in time.
The above-mentioned embodiments are only preferred embodiments of the present invention, and do not limit the scope of the present invention, but all the modifications made by the principles of the present invention and the non-inventive efforts based on the above-mentioned embodiments shall fall within the scope of the present invention.