This patent application is based on a Taiwan, R.O.C. patent application No. 097131702 filed on Aug. 20, 2008.
The present invention relates to signal decoding, and more particularly, the present invention relates to a decoding apparatus and a decoding method applied to a radio frequency identification (RFID) system.
Research related to radio frequency identification (RFID) is rapidly developed in recent years. RFID composed of a tag and a reader is a non-contact, automatic identification technology. Refer to
Generally speaking, the decoder 6 of the high-frequency RFID receiving device 2 applies a correlation method for decoding a header segment and a data segment of the signal. However, decoding errors frequently occur during decryption on the data segment of the signal. The reason for decoding errors is that, whether a digital logic level of a bit in the data segment is 0 or 1 is determined by the decoder 6 according to whether a correlation peak value generated by the bit is greater than a threshold. The result from the decoder 6 determining the digital logic level of the bit has an inseparable relationship with the setting of the threshold of the correlation peak value. Thus, when the threshold is set too low or too high, a decoding error occurs due to incorrect determination made by the decoder 6.
Therefore, it is one of the objectives of the invention to provide a decoding apparatus and a method to solve the problem mentioned above.
A decoding apparatus is disclosed according to a first embodiment of the present invention. In practice, the decoding apparatus may be implemented to an RFID system for decoding a data signal having a plurality of bits, each of which has a same bit cycle. A plurality of sampled data can be thereafter generated by sampling the data signal.
In this embodiment, the decoding apparatus comprises a calculating module and a determining module. When the calculating module sets a first interval and a second interval in the cycle of a specific bit, the calculating module generates a first count according to the plurality of sampled data corresponding to a first logic level in the first interval, and a second count according to the plurality of sampled data corresponding to a second logic level in the second interval. When the first count and the second count are generated, the determining module determines a digital logic level of the specific bit according to the first count and the second count.
For example, the first logic level and the second logic level are simultaneously logical high or logical low. The first interval is a first half of the cycle of a specific bit; the second interval is a second half of the cycle of the specific bit.
A decoding method is disclosed according to a second embodiment of the present invention. In practice, the decoding method is applied to an RFID system for decoding a data signal comprising a plurality of bits, each of which has a same bit cycle. Before the data signal is decoded, the plurality of sampled data are generated by sampling the data signal.
In the decoding method, a first interval and a second interval in the cycle of a specific bit of the data signal are set. A first count is then generated according to the plurality of sampled data corresponding to a first logic level in the first interval, and a second count is generated according to the plurality of sampled data corresponding to a second logic level in the second interval. A digital logic level of the specific bit is further determined according to the first count and the second count.
For example, the first logic level and the second logic level are simultaneously logical high or logical low. The first interval is a first half of the cycle of the specific bit; the second interval is a second half of the cycle of the specific bit.
In view of the foregoing issue, according to the decoding apparatus and method disclosed in the present invention, the digital logic level of each bit is determined by whether the number of samples at logical high in the first half of the bit cycle is larger than the number of samples at logical high in the second half of the bit cycle. As a result, compared to the prior art, the decoding apparatus and method according to the present invention effectively avoid decoding errors occurred when the correlation method is used for decoding the signal in the traditional RFID system, so as to improve accuracy of signal decoding in the RFID system.
The present invention provides a decoding apparatus and method. A decoding apparatus is provided according to a first embodiment of the present invention. In this embodiment, the decoding apparatus is applied to an RFID system for decoding a data signal having a plurality of bits. A plurality of sampled data is generated by sampling the data signal. Referring to
In this embodiment, the data signal is encoded by a Manchester encoding method, a differential Manchester encoding method, or other similar methods. The Manchester encoding method is widely applied to local area networks, and is characterized in that, when a digital logic value of a bit of the data signal is 0 or 1, a transition ideally takes place between logical high and logical low near the center of every bit cycle. When the logic level is transferred from high to low, the digital logic value of the bit is designated as 1; when the logic level is transferred from low to high, the digital logic value of the bit is designated as 0.
With respect to the major difference between the differential Manchester encoding method and the Manchester encoding method, in addition to the transition between the logic levels near the center of every bit cycle, the digital logic value of the bit is 0 when the transition takes place at the beginning of the bit cycle; otherwise, the digital logic value of the bit is 1.
In this embodiment, the RFID system could be a high-frequency RFID receiving device, but not limited to the same. Referring to
Referring to
Four bits stored in the correlation buffer are then compared with four bits which are 1, 0, 1 and 0 stored in a mask by the detecting module 16, so as to determine the degree of correlation between two sets of bits. For example, the mask is changed according to the header segments of different data signals. Referring to
Referring to
Referring to
Referring to
When the fourth peak value P4 is detected as a max correlation peak value, the detecting module 16 sets a point A in
In this embodiment, two main functions of the calculating module 12 include: dividing the cycle of the bit in the data segment into a first interval and a second interval, and respectively generating a first count and a second count for the two intervals. The calculating module 12 sets the first interval and the second interval in the cycle of a specific bit of the data signal. Referring to
When setting the first interval and the second interval of the specific bit, the calculating module 12 generates a first count by calculating the number of the sampled data in the first interval corresponding to a first logic level and a second count by calculating the number of the sampled data in the second interval corresponding to a second logic level. In this embodiment, the first logic level is equal to the second logic level; for example, the first logic level and the second logic level are both logical high or logical low. When the calculating module 12 determines that the data signal has ended, the calculating module 12 generates a setting signal to the detecting module 16 for resetting the detecting module 16.
The determining module 14, coupled to the calculating module 12, determines the digital logic value of the specific bit according to the first count and the second count. When the first count is greater than the second count, the determining module 14 determines the digital logic value is 1; when the first count is smaller than the second count, the determining module 14 determines the digital logic value is 0. The determining condition is adapted according to other encoding methods in addition to the Manchester encoding method, the differential Manchester encoding method, or other similar encoding methods used for encoding the data signal in this embodiment.
Refer to
In this embodiment, the buffer unit 120 is used for storing the sampled data generated by sampling the data signal. The sampled data are transmitted to the buffer unit 120 or the detecting module 16 via a selection of the multiplexer 8.
To initiate detecting the header segment of the data signal, the detecting module 16 controls the multiplexer 8 to transmit the sampled date to the detecting module 16 for detecting the header segment. When the header segment of the data signal is detected, the detecting module 16 switches the multiplexer 8 to transmit sampled data to the buffer unit 120. At the same time, the detecting module 16 generates a detecting signal to the data decoding processing unit 122, so as to instruct the data decoding processing unit 122 to begin with a data decoding procedure. When receiving the detecting signal, the data decoding processing unit 122 generates a cycle count according to the cycle of every bit and the cycle of a sample clock.
More specifically, when dividing the bit cycle by the sample clock, the quotient is the cycle count. When it is detected that the data signal has ended, the data decoding processing unit 122 generates a setting signal to reset the detecting module 16.
The cycle control unit 124 is used for setting the first interval and the second interval of the cycle of the specific bit according to the cycle count and the sample clock generated by the data decoding processing unit 122. More specifically, the cycle control unit 124 counts according to the sample clock. The interval during which the count value does not reach a first half of the cycle count is regarded as a first interval of the bit cycle; the interval during which the count value is beyond the first half of the cycle count but does not reach the cycle count is regarded as a second interval of the bit cycle. That is to say, the cycle control unit 124 divides the cycle of every bit of the data signal into the first half of the cycle (the first interval) and the last half of the cycle (the second interval) and generates a control signal for instructing the first interval and the second interval. The selecting unit 130 then determines whether to transmit the sampled data in the buffer unit 120 to the first counter 126 or the second counter 128 according to the instruction of the control signal.
For example, the control signal controls the selecting unit 130 to transmit the plurality of sampled data in the first interval of the bit cycle to the first counter 126, and to transmit the plurality of sampled data in the second interval of the bit cycle to the second counter 128. The selecting unit 130 can be a multiplexer.
When receiving the plurality of sampled data, the first counter 126 calculates the number of the sampled data in the first interval corresponding to the first logic level to generate a first count. When receiving the plurality of sampled data, the second counter 128 calculates the number of the sampled data in the second interval corresponding to the second logic level to generate a second count. In this embodiment, the first logic level and the second logic level are set as, but not limited to, logical high. The first counter 126 and the second counter 128 then respectively transmit the first count and the second count to the determining module 14, which is also coupled to the cycle control unit 124. When detecting the cycle of the specific bit has ended, the cycle control unit 124 generates a start signal to be transmitted to the determining module 14, so as to instruct the determining module 14 to determine whether the digital logic value of the specific bit is 1 or 0 according to the first count and the second count.
Examples for decoding different signals shall be discussed. In the following examples, counting is on the basis of logical high, but it shall not be construed to limit the scope of the invention. Refer to
Refer to
Refer to
Refer to
In view of the foregoing examples, with a little shift of sampled data, the decoding apparatus 1 of the present invention is still capable of correct decoding.
Refer to
Refer to
In view of the foregoing examples, when the intensity of sampled data changes, the decoding apparatus 1 of the present invention is still capable of correct decoding. As a result, according to the disclosure in
In addition, the digital logic level of the bit is determined as 0 when the first count value is equal to the second count value. Whether the decoding result of every bit of sampled data is correct is determined by a subsequent circuit. For example, check codes of a series of data are used for determining whether the digital logic values of the bits are correctly decoded. When the smaller value of the first count value and the second count value gets too large, it is considered as a collision.
A decoding method is disclosed according to a second embodiment of the invention. For example, the decoding method is applied to an RFID system to decode a data signal comprising a plurality of bits, each of which has a same bit cycle. The data signal is encoded by a Manchester encoding method, a differential Manchester encoding method, or other similar encoding methods. The data signal comprises a header segment and a data segment next to the header segment. It is to be noted that, when the data signal is decoded by the decoding method, a plurality of sampled data are generated by sampling the data signal.
Refer to
In this embodiment, the first logic level is equal to the second logic level; for example, both the first logic level and the second logic level are logical high or logical low. In addition, the first interval is a first half of the bit cycle, and the second interval is a second half of the bit cycle. The total length of the first interval and the second interval is equal to the length of the bit cycle.
When the first count and the second count are generated, Step S14 determines whether the first count is greater than the second count is executed. If the first count is greater than the second count, Step S15 of determining the digital logic value of the specific bit is 1 is executed; if the first count is smaller than the second count, Step S16 of determining the digital logic value of the specific bit is 0 is executed. The determining condition is adapted according to other encoding methods in addition to the Manchester encoding method, the differential Manchester encoding method, or other similar encoding methods used for encoding the data signal in this embodiment.
In this embodiment, a correlation method is used for detecting the header segment of the data signal so as to identify the starting position of the data segment of the data signal.
In view of the foregoing issue, according to the decoding apparatus and method disclosed in the present invention, the digital logic value of each bit is determined by whether the number of sampled points at logical high in the first half of the bit cycle is larger than the number of sampled points at logical high in the second half of the bit cycle. As a result, compared to the prior art, the decoding apparatus and method according to the present invention effectively avoid decoding errors occurred when a correlation method is used for decoding a signal in a traditional RFID system, so as to improve accuracy of signal decoding in an RFID system.
While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not to be limited to the above embodiments. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.
Number | Date | Country | Kind |
---|---|---|---|
97131702 A | Aug 2008 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
5770846 | Mos et al. | Jun 1998 | A |
7242658 | Hwang | Jul 2007 | B2 |
7777540 | Peng et al. | Aug 2010 | B2 |
Number | Date | Country | |
---|---|---|---|
20100045492 A1 | Feb 2010 | US |