The content of the invention
The invention aims to overcome the shortcomings of above-mentioned background technology, there is provided a kind of wireless data transmission method
And system, the accuracy and reliability of wireless data transmission can be effectively improved, meet higher and higher under the big data epoch
Data transportation requirements.
To achieve the above objectives, the present invention provides a kind of wireless data transmission method, comprises the following steps:S1:When
When terminal transmitting terminal is in uplink pilot time slot, the sine wave of CF is sent to base station receiving terminal, the CF is
Randomly selected a kind of frequency from existing K kinds nominal frequency;S2:After the sine wave of CF is sent completely, Xiang Ji
Receiving terminal of standing sends the PN sequences modulated through OQPSK, so that base station receiving terminal is timed synchronous use;S3:Treat that PN sequences are sent out
After the completion of sending, the coded data modulated through OQPSK is sent to base station receiving terminal, the coded data uses Error Correction of Coding;S4:Base
The sine wave that receiving terminal of standing is sent according to terminal transmitting terminal carries out channel estimation and frequency deviation synchronization, is timed together according to PN sequences
Step and phase estimation;Synchronously and after Timing Synchronization, coded data is demodulated and decoded using phase estimation in frequency deviation.
On the basis of above-mentioned technical proposal, the terminal transmitting terminal is realized specific using the communication chip of sx1276 models
The sine wave of frequency sends;Its implementation process includes below scheme:Sx1276 communication chips are set to FSK patterns, in FSK moulds
Under formula, sine wave freuqency is set;Data length is set according to the sine wave duration and bit rate to be sent;Using what is configured
Sx1276 communication chips realize the transmission of sine wave.
On the basis of above-mentioned technical proposal, the implementation process described in step S2 and step S3 through OQPSK modulation is as follows:
Will send 0,1bit data conversions are into 1 or -1;Real void is carried out to the data after conversion to be staggered;It is real empty to what is obtained
Alternating series, since the first number, if the phase of number below increased 90 ° relative to the phase of number above, then
1 is obtained, if the phase of number below reduces 90 ° relative to the phase of number above, then 0 is obtained, according to above-mentioned rule
Corresponding 0 or 1 data are obtained by real empty staggered 1 or -1;0 or 1 data feeding MSK or the GMSK modulation that will be obtained
Device realizes the OQPSK modulation to data.
On the basis of above-mentioned technical proposal, step S4 specifically includes below scheme:S401:Base station receiving terminal is according to terminal
The sine wave that transmitting terminal is sent estimates the frequency of sine wave, phase and amplitude;Amplitude and phase according to sine wave obtain end
Hold the channel response of transmitting terminal;According to the frequency of sine wave, by the frequency of sine wave and minimum with the frequency frequency difference of sine wave
Nominal frequency is subtracted each other and obtains frequency deviation, to the reception signal compensation frequency deviation after sine wave, realizes Frequency Synchronization;S402:Base station
The PN sequences that receiving terminal will be received carry out related calculation with known PN sequences, obtain timing offset;The timing offset is compensated, it is real
Existing Timing Synchronization, and phase estimation is obtained according to the phase of correlation;S403:After Frequency Synchronization and Timing Synchronization, utilize
Phase estimation is demodulated and decodes to coded data.
On the basis of above-mentioned technical proposal, the Error Correction of Coding used in step S3 is convolutional code.
The present invention also provides a kind of wireless data transmission system for realizing above-mentioned transmission method, including terminal hair simultaneously
Sending end and base station receiving terminal, the terminal transmitting terminal include sine wave transmitting element, PN sequences transmitting element and coded data hair
Send unit;
The sine wave transmitting element is used for:When terminal transmitting terminal is in uplink pilot time slot, sent out to base station receiving terminal
Send the sine wave of CF;
The PN sequences transmitting element is used for:After the sine wave of CF is sent completely, sent to base station receiving terminal
Through the PN sequences that OQPSK is modulated;
The coded data transmitting element is used for:After PN sequences are sent completely, are sent to base station receiving terminal and adjusted through OQPSK
The coded data of the use Error Correction of Coding of system;
The base station receiving terminal is used for:The sine wave sent according to terminal transmitting terminal carries out channel estimation and frequency deviation synchronization;
Synchronization and phase estimation are timed according to PN sequences;After Frequency Synchronization and Timing Synchronization, using phase estimation to coding
Data are demodulated and decode.
On the basis of above-mentioned technical proposal, the sine wave transmitting element is realized using the communication chip of sx1276 models
The sine wave of CF sends;Its implementation process includes below scheme:Sx1276 communication chips are set to FSK patterns,
Under FSK patterns, sine wave freuqency is set;Data length is set according to the sine wave duration and bit rate to be sent;Using configuration
Good sx1276 communication chips realize the transmission of sine wave.
On the basis of above-mentioned technical proposal, the PN sequences transmitting element and coded data transmitting element realize OQPSK
The process of modulation is as follows:Will send 0,1bit data conversions are into 1 or -1;Data after conversion are carried out with real void staggered row
Row;To the real void alternating series for obtaining, since the first number, if the phase of the phase relative to number above of number below
90 ° are increased, then obtain 1, if the phase of number below reduces 90 ° relative to the phase of number above, then obtain
0, corresponding 0 or 1 data are obtained by real empty staggered 1 or -1 according to above-mentioned rule;The 0 or 1 data feeding that will be obtained
MSK or GMSK modulation device realize the OQPSK modulation to data.
On the basis of above-mentioned technical proposal, the base station receiving terminal includes channel estimation and frequency deviation synchronization unit, timing
Synchronization and phase estimation unit and demodulating and decoding unit;
The channel estimation and frequency deviation synchronization unit are used for:Sine wave is estimated according to the sine wave that terminal transmitting terminal is sent
Frequency, phase and amplitude;Amplitude and phase according to sine wave obtain the channel response of terminal transmitting terminal;According to sine wave
Frequency, the frequency of sine wave and the nominal frequency minimum with the frequency frequency difference of sine wave is subtracted each other and obtains frequency deviation, to sine wave it
The reception signal compensation frequency deviation afterwards, realizes Frequency Synchronization;
The Timing Synchronization and phase estimation unit are used for:The PN sequences that will be received do related fortune to known PN sequences
Calculate, obtain timing offset;The timing offset is compensated, Timing Synchronization is realized, the phase according to correlation obtains phase estimation;
The demodulating and decoding unit is used for:After Frequency Synchronization and Timing Synchronization, using phase estimation to coded data
It is demodulated and decodes.
On the basis of above-mentioned technical proposal, the Error Correction of Coding that the coded data transmitting element is used is convolutional code.
The beneficial effects of the present invention are:
Terminal transmitting terminal of the invention, when the transmission of upstream data is carried out, is according to uplink pilot time slot+PN sequences+entangle
What the frame format of miscoding data was transmitted, frame format simple structure is easily realized.Specifically, terminal transmitting terminal is led up
The sine wave of CF is first sent during frequency time slot;After sine wave is sent completely, PN sequences are sent:Treat that PN sequences are sent completely
Afterwards, finally send using the coded data of Error Correction of Coding.Base station receiving terminal after the data that terminal transmitting terminal is sent are received, according to
Sine wave carries out channel estimation and frequency deviation synchronization, and synchronization and phase estimation are timed according to PN sequences;And frequency deviation it is synchronous and
After Timing Synchronization, coded data is demodulated and decoded using phase estimation, so as to realize the transmission of wireless communication data.
Compared with prior art, whole data transmission procedure of the invention is safe and reliable, and accuracy is high.Simple and reliable
Even if upstream data frame format causes also to be can guarantee that under the transmission of big data quantity effectively reliable transmission, when meeting big data
Higher and higher transmission requirement under generation.
Specific embodiment
Below in conjunction with the accompanying drawings and specific embodiment the present invention is described in further detail.
Shown in Figure 1, the embodiment of the present invention provides a kind of wireless data transmission method, comprises the following steps:
Step S1:When terminal transmitting terminal is in uplink pilot time slot, the sine of CF is sent to base station receiving terminal
Ripple, the CF is randomly selected a kind of frequency from existing K kinds nominal frequency.
It is understood that in the present embodiment, terminal transmitting terminal is using the communication core for being semtech companies sx1276 models
Piece come realize CF sine wave send.During concrete operations, its implementation process includes below scheme:
Step S101, setting sine wave freuqency:Sx1276 communication chips are set to FSK (Frequency-shift
Keying, frequency shift keying) pattern, under FSK patterns, when the bit for sending is continuous " 0 " or continuous " 1 ", transmission
Signal is exactly sine wave;By setting centre frequency FRFWith carrier shift amount FDEVThe frequency f of sine wave is controlled, makes sine wave
Frequency is the CF, wherein, when it is continuous " 0 " to send bit, sine wave freuqency f=FRF-FDEV, compare when sending
When spy is continuous " 1 ", sine wave freuqency f=FRF+FDEV, it is transferred to step S102.
Further, during practical operation, centre frequency FRFWith carrier shift amount FDEVThe minimum resolution of setting is
FSTEP, FSTEPDetermined by crystal oscillator frequency, and centre frequency FRF=mFSTEP(m is positive integer), sine wave freuqency f=nFSTEP(n is
Positive integer).If n<M, due to FRF=mFSTEP, f=nFSTEP, then will send bit and be set to continuously " 0 ", by carrier shift amount
FDEVIt is set to (m-n) FSTEP;If n>M, then will send bit and be set to continuously " 1 ", by carrier shift amount FDEVIt is set to (n-
m)FSTEP。
The sine wave duration and bit rate that step S102, basis to be sent set data length:If the sine wave to be sent
Time span be t, bit rate is BitRate, then be set to data length:T/BitRate, is transferred to step S103.
Step S103, transmission sine wave:Configuration sx1276 communication chips enter Sleep mode park modes, then will adjust
Type processed enters Standby mode standby modes after being set to FSK patterns;Centre frequency F is setRF, carrier shift amount FDEVWith
Transmission power, 0 is set to by Preamble preamble lengths, and SyncOn is set to " 0 ", synchronization character is disabled, to FIFO
The information bit of corresponding data length is write in (First Input First Output, First Input First Output) memory;Enter
Enter the FSTx mode of sx1276 communication chips, wait PLL (Phase Locked Loop, phaselocked loop) Frequency Locking, frequency locker
Enter the Tx mode of sx1276 communication chips after fixed, start to send sine wave;It is sinusoidal after sx1276 sends TxDone interruptions
Ripple is sent completely.
Step S2:After the sine wave of CF is sent completely, sent through OQPSK (four phases of skew to base station receiving terminal
Phase-shift keying (PSK)) modulation PN sequences (Pseudo-noise Sequence, PN sequence), so that base station receiving terminal enters
Row Timing Synchronization is used.
Step S3:After PN sequences are sent completely, the coded data modulated through OQPSK is sent to base station receiving terminal, it is described
Coded data uses Error Correction of Coding.In the present embodiment, the Error Correction of Coding for using is convolutional code.
It is understood that PN sequences transmitted in the present invention and coded data are modulated by OQPSK.
OQPSK modulation refers to by with the bit period that mutually staggered in time with the code stream of orthogonal two branch road.Due to two branch roads code
The skew of first half period so that polarity upset only may occur all the way every time, two tributary bit polarity will not occur while turning over
The phenomenon for turning.Therefore, OQPSK signal phases can only 0 ° of saltus step, ± 90 °, be not in 180 ° of phase hit, as shown in Figure 2.
According to the formula that Fig. 2 and OQPSK is modulated:
S (t)=I (t) * sin (wt)+Q (t-Tb) * cos (wt)
I (t)=A1*g(t-T)+A3*g(t-3*T)+A5*g(t-5*T)
Q (t)=A2*g(t-2*T)+A4*g(t-4*T)+A6*g(t-6*T)
Wherein, I (t) and Q (t) represent in the same direction and orthogonal two paths of signals, A respectively1, A3, A5It is the code element on branch road in the same direction,
A2, A4, A6It is the code element in quadrature branch, sin (wt) and cos (wt) represents in the same direction and orthogonal two-way carrier wave, and Tb is equal to a ratio
The special cycle, it is known that:PN sequences and coded data are by after OQPSK modulating-codings so that envelope fluctuating is small, and performance is changed
It is kind, so that wireless communication data can realize effective, reliable transmission.Specifically, passed through described in step S2 and step S3
The implementation process of OQPSK modulation is as follows:
Will send 0,1bit data conversions are into 1 or -1:1 is converted into by 0, -1 is converted into by 1;By the number after conversion
According to being designated as a1, a2, a3, a4, a5 ..., then real void is carried out to the data after conversion it is staggered, such as a1*j, a2, a3*j, a4,
A5*j ..., j are positive integer;To the real void alternating series for obtaining, since the first number, if the phase of number below is relative
90 ° are increased in the phase of number above, then obtain 1, if the phase of number below subtracts relative to the phase of number above
90 ° are lacked, then obtain 0;Corresponding 0 or 1 data are obtained according to by real empty staggered 1 or -1, then 0 or 1 data are just
It is Binary Zero, 1 data before GMSK or MSK modulation;The 0 or 1 data feeding MSK or GMSK modulation device that will be obtained are realized
OQPSK modulation to data.
S4:The sine wave that base station receiving terminal is sent according to terminal transmitting terminal carries out channel estimation and frequency deviation synchronization, according to PN
Sequence is timed synchronization and phase estimation;Synchronously and after Timing Synchronization, coded data is entered using phase estimation in frequency deviation
Row demodulation and decoding.
During practical operation, step S4 specifically includes following operation:
S401:Base station receiving terminal estimates frequency, phase and the width of sine wave according to the sine wave that terminal transmitting terminal is sent
Degree;Amplitude and phase according to sine wave obtain the channel response of terminal transmitting terminal;According to the frequency of sine wave, by sine wave
Frequency and the nominal frequency minimum with the frequency frequency difference of sine wave are subtracted each other and obtain frequency deviation, to the reception signal compensation after sine wave
The frequency deviation, realizes Frequency Synchronization;
S402:The PN sequences that base station receiving terminal will be received carry out related calculation with known PN sequences, obtain timing offset;
The timing offset is compensated, Timing Synchronization is realized, and phase estimation is obtained according to the phase of correlation;
S403:After Frequency Synchronization and Timing Synchronization, coded data is demodulated and decoded using phase estimation.
Shown in Figure 3, the embodiment of the present invention also provides a kind of wireless data transmission system, including terminal transmitting terminal
With base station receiving terminal, it is single that the terminal transmitting terminal includes that sine wave transmitting element, PN sequences transmitting element and coded data send
Unit.
Wherein, sine wave transmitting element is used for:When terminal transmitting terminal is in uplink pilot time slot, sent out to base station receiving terminal
Send the sine wave of CF.PN sequence transmitting elements are used for:After the sine wave of CF is sent completely, received to base station
End sends the PN sequences modulated through OQPSK.Coded data transmitting element is used for:After PN sequences are sent completely, received to base station
End sends the coded data of the use Error Correction of Coding modulated through OQPSK.Base station receiving terminal is used for:Sent according to terminal transmitting terminal
Sine wave carries out channel estimation and frequency deviation synchronization;Synchronization and phase estimation are timed according to PN sequences;In Frequency Synchronization and calmly
When synchronization after, coded data is demodulated and decoded using phase estimation.
Further, shown in Figure 3, the base station receiving terminal includes channel estimation and frequency deviation synchronization unit, regularly same
Step and phase estimation unit and demodulating and decoding unit.Wherein, channel estimation and frequency deviation synchronization unit are used for:According to terminal transmitting terminal
The sine wave sent estimates the frequency of sine wave, phase and amplitude;Amplitude and phase according to sine wave obtain terminal transmission
The channel response at end;According to the frequency of sine wave, by the frequency of sine wave and the nominal frequency minimum with the frequency frequency difference of sine wave
Rate is subtracted each other and obtains frequency deviation, to the reception signal compensation frequency deviation after sine wave, realizes Frequency Synchronization.Timing Synchronization and phase are estimated
Meter unit is used for:The PN sequences that will be received carry out related calculation with known PN sequences, obtain timing offset;Compensate the timing partially
Difference, realizes Timing Synchronization, and obtain phase estimation according to the phase of correlation.Demodulating and decoding unit is used for:In Frequency Synchronization and
After Timing Synchronization, coded data is demodulated and decoded using phase estimation.
It should be noted that:Above-described embodiment provide system when being operated, only with above-mentioned each functional module draw
Divide and be illustrated, in practical application, can be completed by different functional modules as needed and by above-mentioned functions distribution, i.e.,
The internal structure of system is divided into different functional modules, to complete all or part of function described above.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
On the premise of the principle of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention
Within the scope of.
The content not being described in detail in this specification belongs to prior art known to professional and technical personnel in the field.