[summary of the invention]
The technical problem to be solved in the present invention is to provide one makes point to point wireless communication reach optimum Working, realizes the method for maximum distance wireless transmission between wireless transceiver.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is, realize a method for maximum distance wireless transmission between wireless transceiver, the tranmitting frequency of transceiver is finely tuned near center frequency point, and receive-transmit system Automatic-searching transceiver in channel coordinates best working frequency points.
Above-described method, comprises the following steps:
201) within the scope of channel bandwidth, choose a plurality of frequency, first transceiver frequency centered by the frequency chosen sends signal one by one;
202) second transceiver Received signal strength, and record the RSSI of each Received signal strength one by one, the information of maximum for RSSI frequency is sent to first transceiver;
203) first transceiver is using the maximum frequency of RSSI as the center frequency point sending carrier wave, and first transceiver and second transceiver reach best communication work state, realizes transmission range farthest.
Above-described method, in step 201, first by the frequency range of rules and regulations, divide channel by frequency range size, define each channel bandwidth, each channel is a tentative center frequency point first, then, the center frequency point that one of them is tentative is chosen, with single channel bandwidth for scope, within the scope of this channel bandwidth, choose a plurality of described frequency, this plurality of frequency is evenly distributed in selected scope.
Above-described method, in step 201, first transceiver sends test packet with the frequency chosen one by one for launching frequency, comprises channel information in packet, before receiving second transceiver and replying, repeatedly repeats this step; In this step, transmitting frequency is changed by the parameter of change transceiver phase-locked loop.
Above-described method, in step 202., all channels of second transceiver poll, receive packet, arrange fixing receiving channels according to the channel information in packet; Second transceiver continues to receive first transceiver data and each RSSI value receiving packet of record, after arriving the time of setting, is averaged, then chooses the maximum frequency of RSSI mean value as best frequency to the RSSI value of each frequency; The information of best frequency is sent to first transceiver by second transceiver.
Above-described method, in step 203, first transceiver obtains the information of best frequency, using best frequency as the center frequency point of launching
Above-described method, the parameter of described transceiver phase-locked loop comprises: one or a plurality of in the preset division coefficient of frequency divider, 11 binary programmable counters preset division coefficients, 7 binary programmable swallow counter preset division coefficients, 14 binary programmable reference count preset division coefficients.
The method realizing maximum distance wireless transmission between wireless transceiver of the present invention makes receive-transmit system Automatic-searching coordinate best working frequency points by center frequency point fine setting, to realize transmission range farthest, reflector can be reduced simultaneously and mate communication distance difference afterwards between like product with receiver.
[embodiment]
The method realizing maximum distance wireless transmission between wireless transceiver of the present invention makes receive-transmit system Automatic-searching coordinate best working frequency points by center frequency point fine setting, as follows with the step realizing transmission range farthest:
X frequency is chosen centered by center frequency point, No. 1 transceiver sends signal one by one to choose frequency centered by frequency, No. 2 transceiver receives signal, and record the RSSI of each Received signal strength one by one, frequency point information maximum for RSSI is sent to No. 1 transceiver, last No. 1 transceiver is using the maximum frequency of RSSI as the center frequency point sending carrier wave, and No. 1 transceiver and No. 2 transceivers reach best communication work state, realize transmission range farthest.
Wherein, 1 and No. 2 transceiver is the transceiver simultaneously with sending and receiving function; RSSI is received signal strength indicator value.
As shown in Figure 1, scheme upper 3 frequencies all in regulation allowed band, the optimum reception frequency of No. 1 receiver is 433.915MHZ, and the optimum reception frequency of No. 2 machine receivers is at 433.925MHZ; Transmitter and No. 1 receiver with the use of time best transmitting frequency be 433.915MHZ, with No. 2 receivers with the use of time best transmitting frequency be 433.925MHZ; Use above-described embodiment center frequency point method for trimming, when same reflector coordinates with No. 1 receiver, working frequency points is 433.915MHZ, and when coordinating with No. 2 receivers, working frequency points moves on to 433.925MHZ automatically; Wireless system is at any time made all to be operated in best effort frequency.
The concrete steps realizing this method are as follows:
1, in the frequency range of rules and regulations, divide channel, define each channel bandwidth by frequency range size, each channel is a tentative center frequency point first.
2, choose one of them center frequency point, with single channel bandwidth for scope, choose X frequency within the scope of this channel bandwidth, this X frequency is evenly distributed in selected scope; (may have multiple channel in a frequency range, what this method was paid close attention to is frequency trim in single channel, and scope is generally no more than 0.5MHZ).
3, after No. 1 transceiver start, sending test packet (comprising channel information in packet) with X frequency of choosing above one by one for launching frequency, before receiving No. 2 transceivers and replying, repeatedly repeating this step; In this step, by changing M, N, A, R parameter of phase-locked loop, transmitting frequency is changed;
4, after No. 2 transceiver starts, all channels of poll, receive packet, arrange fixing receiving channels according to the channel information in packet.
5, No. 2 transceivers continue reception No. 1 Transceiver Data bag and each RSSI value receiving packet of record, after receiving a period of time, be averaged, then choose the frequency Y that RSSI mean value is maximum to the RSSI value of each frequency.
6, No. 2 transceivers send to No. 1 transceiver frequency Y information;
7, No. 1 transceiver is using frequency Y as the center frequency point of launching, and now during No. 1 Transceiver Transmit, the signal strength signal intensity that No. 2 transceivers receive is maximum.
8, due to transmitting, reception shared VCO, the antenna of transceiver, when transmitting reaches optimum state, receive and also reach optimum state simultaneously, now receive-transmit system all reaches optimum Match state.
As shown in Figure 2, this wireless system working frequency points is decided by f vco to the principle of embodiment of the present invention wireless transceiver:
f?vco=【(M?X?N)+A】X?fosc÷R
(A<N)
Wherein:
F vco: voltage controlled oscillator operating frequency;
Fosc: crystal oscillator operating frequency, determined by crystal oscillator X1 self-oscillation frequency, electric capacity C1 and C2 can finely tune crystal oscillator frequency;
M: the preset division coefficient (optional 64 or 128) of frequency divider;
N:11 position binary programmable counters preset division coefficient (span 5 to 2047);
A:7 position binary programmable swallow counter preset division coefficient (span 0 to 127)
R:14 position binary programmable reference count preset division coefficient (span 5 to 16383).
When system is in emission state, f vco is systems radiate frequency; When system is in accepting state, f vco is exactly system local frequency.
As can be seen from f vco computing formula, when needing change frequency, there are 2 kinds of modes:
The first is change hardware, and adjustment crystal oscillator X1, C1 and C2, change fosc, thus change f vco.
The second is one or more by M, N, A, R parameter of software change phase-locked loop, thus changes f vco.
The above embodiment of the present invention adopts the second way to change frequency.
In traditional wireless product design, main concern reflector and receiver technical indicator separately; The above embodiment of the present invention mainly pays close attention to dynamic indicator during whole receive-transmit system cooperating, product is when matching use, Automatic-searching best effort frequency, there is intellectuality, exempt from debug function, to realize transmission range farthest, reduction reflector mates the communication distance difference between rear like product with receiver simultaneously.