A kind of wireless system for transmitting data and its implementation being applied to point-to-point environment
Technical field
The present invention relates to radio network technique field, specifically, relate to a kind of wireless system for transmitting data and its implementation of being applied to point-to-point environment.
Background technology
Point-to-point Wireless Data Transmission mode, is referred to the communication mutually being carried out transfer of data between radio reception device by network, is mainly used in short distance environment.
The area that, the density of population remote for place is less, there is the problem that cannot meet transmission range and require in existing point-to-point Wireless Data Transmission, conventional wireless data transfer mode increases the transmission range of signal often through the power increasing radio reception device, but increasing power is easily restricted in practical operation, infinitely can not increase, cannot ensure that bandwidth is fully used.Therefore, in certain Power Limitation, how to adopt directed high power antenna then to become to improve bandwidth availability ratio while increasing distance the problem needing solution badly.
Summary of the invention
The object of the present invention is to provide a kind of wireless system for transmitting data and its implementation of being applied to point-to-point environment, overcome the defect that traditional point-to-point Wireless Data Transmission mode cannot ensure the utilance of bandwidth, ensure that the high efficiency of bandwidth uses, thus increase bandwidth, and make transmission distance growth greatly.
To achieve these goals, the technical solution used in the present invention is as follows:
Be applied to a wireless system for transmitting data for point-to-point environment, comprise by the transmission system formed with lower module:
For collection network interface message and the initialization module carrying out channel fix;
For sending and receive the transceiver module of operation;
For carrying out the identification module of packet loss judgement;
Realize enable or close the control module that closure confirms function;
Wherein initialization module, transceiver module, identification module are connected successively with control module.
Be applied to the wireless system for transmitting data under point-to-point environment based on this, present invention also offers its implementation, comprise the following steps:
(1) each network interface of initialization, adopts beacon message to collect the situation of bipartite network interface;
(2), after control module default enable confirmation message, transceiver module starts normally to receive and dispatch, and record grouping transmitting-receiving situation, statistics packet loss number;
(3) measurement period is set, and judges whether to reach measurement period limiting time, if so, then calculate packet loss, perform next step, otherwise continue record grouping transmitting-receiving situation;
(4) judge whether packet loss reaches adjustment standard, if so, then call control module and carry out switching manipulation.
For the function of performing step (1), adopt beacon message to collect the situation of bipartite network interface by initialization module in described step (1), comprise network interface number and channel fix information.
Further, in described step (3) after the time often reaching a measurement period restriction, calculate packet loss by identification module, wherein measurement period default time is set to 1 second or arranges according to keeper's designated value.
Further, judge whether packet loss reaches adjustment standard and namely judge whether packet loss exceedes threshold value L in described step (4)
highor lower than threshold value L
low.
For adjustment standard is specialized, described packet loss threshold value L
highdefault value is set to 0.6, L
lowdefault value is set to 0.1, or L
highand L
lowall arrange according to keeper's designated value.
Preferred as one, described step (4) if in packet loss higher than threshold value L
high, then the enable confirmation message of control module; If packet loss is lower than threshold value L
low, then control module closes confirmation message.
By technique scheme, the present invention has following beneficial effect:
(1) bandwidth availability ratio is improved--compare with typical high-power radio reception device, the radio data transmission method that the present invention proposes can utilize multichannel to carry out data transmit-receive, control confirmation message ground enable with closedown simultaneously, thus save bandwidth resources, improve bandwidth availability ratio, increase the transmission range of radio reception device.
(2) reduce interference and expense--the present invention can be applicable to there are two interfaces radio reception device on, wherein one, two interfaces of this radio reception device are as transmit leg, one as recipient, two non-interfering wireless communication channels are set with another one router, one of them channel is as just transmission, and another channel as just reception, thus to decrease on single channel and not only receives but also do to send the expense brought, reduce power consumption, the space that minimizing system takies.
(3) transmission range--the present invention can be applicable on the radio reception device of employing two high power directional antennas, again increases transmission range to a certain extent in growth.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the method in the present invention-embodiment.
Fig. 2 is the theory diagram of this system in the present invention-embodiment.
Embodiment
In order to improve channel utilization, the present embodiment provides a kind of wireless system for transmitting data and its implementation of being applied to point-to-point environment.
As shown in Figure 2, the wireless system for transmitting data be applied under point-to-point environment in the present embodiment, be contained in radio reception device, and this system can be the unit of software, hardware or software and hardware combining, radio reception device then comprises device A and equipment B, and device A and equipment B respectively exist two network interfaces.
This system comprises the initialization module, transceiver module, identification module and the control module that are connected successively simultaneously, wherein:
Initialization module is used for cell phone network interface message and carries out channel fix;
Transceiver module is for carrying out the operation sending and receive;
Identification module is used for carrying out packet loss judgement;
Control module is used for enable or closes closure confirmation (ACK) function.
By above system, just can complete the radio data transmission method under point-to-point environment, as shown in Figure 1, the specific implementation step of the method is as follows:
Step 101: by each network interface of initialization module initializes, and adopt beacon (Beacon) message to collect the situation of bipartite network interface, this employing beacon message collection mode is optimal platform and the instrument of server monitoring.
Step 102: if respectively arrange two network interfaces in device A and equipment B, then arrange two non-interfering wireless communication channels, one of them channel is as just transmission, and another channel is as just reception; If transmit leg and recipient's number are 1, then single channel is not only as sending but also conduct reception.
Step 103: control module default enable confirmation message (ACK), starts normally to receive and dispatch, and record grouping transmitting-receiving situation, statistics packet loss number.
Step 104: judge whether to reach measurement period limiting time, if so, call identification module, calculates packet loss, performs next step; Otherwise continue record grouping transmitting-receiving situation.
Step 105: judge whether packet loss reaches adjustment standard, if packet loss is greater than or equal to threshold value L
high, then the enable confirmation message of control module (ACK); If packet loss is less than or equal to threshold value L
low, then control module closes confirmation message (ACK).
Step 106: enter next measurement period.
The conveniently understanding of those skilled in the art, supposes that radio transmission apparatus A and B respectively exists 2 network interfaces below.
(1) device A initialization network interface, beacon (Beacon) message is adopted to collect the situation of bipartite network interface: because device A and equipment B network interface number are 2, two non-interfering wireless communication channels are then set, one of them channel is as just transmission, and another channel is as just reception.
(2) device A control module default enable confirmation message (ACK), starts normally to receive and dispatch, and record grouping transmitting-receiving situation.
Enter first measurement period:
In (3) first measurement periods, do not reach measurement period limiting time, then continue record grouping transmitting-receiving situation;
(4) first measurement period limiting times reach, then call identification module, statistics packet loss;
(5) packet loss is 0.09, lower than threshold value L
low, then control module closes confirmation message (ACK);
(6) next measurement period is entered.
After closing confirmation message, bandwidth availability ratio rises to 0.8 by 0.6.
Enter second measurement period:
In (7) second measurement periods, do not reach measurement period limiting time, then continue record grouping transmitting-receiving situation;
(8) second measurement period limiting times reach, then call identification module, statistics packet loss;
(9) packet loss is 0.9, higher than threshold value L
high, then the enable confirmation message of control module (ACK);
(10) next measurement period is entered.
After enable confirmation message, bandwidth availability ratio is upgraded to 0.7 by 0.8 reduction.
According to above-described embodiment, just well the present invention can be realized.