1 . Field of the Invention
The present invention relates to a synchronization and detection technology and, more particularly, to a synchronization method and a detection method capable of resisting noise and waveform distortion in a communication system such as a Bluetooth communication system and a correlator thereof.
2. Description of Related Art
The wireless technology has been widely applied in human life. Low power wireless technologies are trends in the development of wireless products. For instance, the Bluetooth technology is a transmission technique for short distance communication, and provides voice and data transmission between different information appliances through short distance RF (radio frequency) connection.
The Bluetooth technology operates at the 2.4 GHz ISM (industrial, scientific and medical) band. The ISM band is an unlicensed band that is used for data transmission between wireless equipments in industrial, scientific and medical fields. The Bluetooth technology can simultaneously provide services for data and voice transmission, and adopts various techniques such as time division duplex (TDD), frequency hopping, and Gaussian frequency shift keying (GFSK) modulation. The basic Bluetooth frame (or package) format is shown in
As shown in
Besides, the threshold selection is difficult in frame synchronization. If the threshold is too low, erroneous synchronization easily arises; if the threshold is too high, synchronization can hardly be accomplished and the whole frame is lost under the situation that there is any erroneous bit or waveform distortion. In consideration of the above problems, the present invention proposes a synchronization method and a detection method capable of resisting noise and waveform distortion and a correlator thereof to improve the drawbacks in the prior art.
An object of the present invention is to provide a synchronization method and a detection method capable of resisting noise and waveform distortion in a communication system and a correlator thereof, in which not only the preamble but also the synchronization word are over sampled and a different weighting value is assigned to each sampled point based on its reliability to calculate the optimum synchronized timing instant for bit synchronization, thereby accomplishing frame synchronization and bit detection.
Another object of the present invention is to provide a synchronization method and a detection method capable of resisting noise and waveform distortion in a communication system and a correlator thereof, in which bad bit synchronization caused by waveform distortion occurred in the transmission channel or RF front end and during the demodulation process, and erroneous bits caused by low SNR in the prior art can be improved, thereby decreasing the influences of bad bit synchronization on bit detection and frame synchronization in the prior art.
Another object of the present invention is to provide a synchronization method and a detection method capable of resisting noise and waveform distortion in a communication system and a correlator thereof, in which the threshold setting of the correlator is more flexible to reduce the probability of the occurrence of missing synchronization or erroneous synchronization.
To achieve the above objects, the present invention provides a synchronization method capable of resisting noise and waveform distortion in a communication system. The method comprises the steps of: receiving a frame including an access code, a package header and a data payload, the access code being composed of a preamble, a synchronization word, and a trailer; performing over-sampling to each bit of the receiving frame (or the incoming bit stream) to be synchronized and performing over-sampling to each bit of a known synchronization word with a different weighting value assigned to each sampled point in a bit based on its reliability; using a correlator to calculate a correlation value between the known synchronization word and the incoming bit stream to be synchronized; and using the time instant when the correlation value exceeds an initial threshold as the time instant to activate a timer, and using the time instant when the calculated correlation value is maximal within a time interval from the timer is activated to a predetermined observation time interval as an optimum synchronized timing instant to accomplish both the bit synchronization and frame synchronization.
After the optimum synchronization is achieved, the present invention also provides a bit detection method comprising the steps of: using the optimum synchronized timing instant as a reference sampling instant; performing over-sampling to each bit in the fields of header and payload in a frame, assigning a different weighting value to each sampled point based on its reliability; and calculating a correlation value between each bit in the fields of header and payload in the frame and signals 0/1 to perform bit detection.
The present invention also provides a correlator used in a synchronization method and a detection method capable of resisting noise and waveform distortion in a communication system. The correlator comprises a multiplier, an accumulator, a comparator, a timer and at least two registers. The multiplier and the accumulator are used to calculate a correlation value between a known synchronization word and an incoming bit stream to be synchronized. The comparator determines whether the correlation value exceeds a threshold. Matched with the registers, the timer is activated when the correlation value exceeds an initial threshold to keep timing till a predetermined observation time interval, and uses a time instant when the correlation value is maximal within this time interval as an optimum synchronized timing instant (or bit synchronization point) so as to accomplish frame synchronization at the same time.
The various objects and advantages of the present invention will be more readily understood from the following detailed description when read in conjunction with the appended drawing, in which:
In the present invention, over-sampling is performed to a synchronization word in an access code (over-sampling to a preamble can also be added), and a different weighting value is assigned to each sampled value based on its reliability to calculate the optimum synchronized timing instant for bit synchronization so as to accomplish the objects of frame synchronization and bit detection.
As shown in
Reference is made to
After the optimum time synchronization point is obtained, the subsequent bit detection can be carried out, including bit detection of the payload (Step S16) and bit detection of the header (Step S18). In Step S16, the optimum synchronized timing instant is used as a reference sampling instant, and over-sampling is performed to each bit in the field of payload in a frame, and a different weighting value is assigned to each sampled point based on its reliability, and a correlation value between each bit in the field of payload in the frame and signals 0/1 is obtained to perform bit detection. If the correlation value of the over-sampled bit with the signal 0 is larger than that with the signal 1, the bit is determined to be 0; and if the correlation value of the over-sampled bit with the signal 1 is larger than that with the signal 0, the bit is determined to be 1. On the other hand, in Step S18, because a repetition code with a code rate of R is used as an FEC (forward error correction) code, it can be taken as a bit stream with a bit rate of R times the original bit rate (e.g., one third the original bit rate). The above same method is then used to finish the detection of the header part, and decoding of the repetition code with a code rate of R is simultaneously completed.
In addition to the synchronization method and the detection method, the present invention also provides a correlator used in the synchronization method and the detection method. As shown in
In addition to the 4-bit preamble, the present invention also performs over-sampling to the 64-bit synchronization word. Because the number of over-sampled bits used in the calculation of the correlation value is larger, the correctness of the synchronized timing instant won't be affected even if there are some errors in the over-sampled values. Moreover, in the present invention, a different weighting value is assigned to each sampled point based on its reliability to calculate the optimum synchronized timing instant so as to accomplish frame synchronization and bit detection. In the prior art, only the preamble is over sampled. Because the number of over-sampled bits used in the calculation of the correlation value is smaller, the synchronized timing instant will be badly affected by noise and waveform distortion. Moreover, if there is any error, missing synchronization or erroneous synchronization will occur to cause a lower correctness. Therefore, the present invention can indeed improve bad synchronized timing instant or missing synchronization caused by waveform distortion occurred in the transmission channel or RF front end and during the demodulation process, and erroneous bit synchronization caused by low SNR, thereby decreasing the influences of bad synchronized timing instant to bit detection and frame synchronization in the prior art.
The above embodiment is exemplified with the GFSK modulation, in which the sampled value of each bit can be represented by a real number. Other modulations can also be used in the present invention, and the sampled value of each bit can be represented by a complex number.
Although the present invention has been described with reference to the preferred embodiment thereof, it will be understood that the invention is not limited to the details thereof. Various substitutions and modifications have been suggested in the foregoing description, and other will occur to those of ordinary skill in the art. Therefore, all such substitutions and modifications are intended to be embraced within the scope of the invention as defined in the appended claims.