Signal coding and decoding method and device, equipment, chip and storage medium
Through the combined signal encoding method of sound guide sequence, pseudo-random sequence and orthogonal sequence, the decoding sensitivity of slave devices in wireless radio frequency identification technology is improved, the problem of low decoding accuracy in the prior art is solved, and the stability of signal capture is enhanced and anti-interference ability.
Patent Information
- Application Number
- CN202410960888.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-26
AI Technical Summary
In the existing radio frequency identification technology, decoding through envelope detection technology is susceptible to noise and interference, and the detection accuracy is low, resulting in signal capture failure and communication parameter decoding errors, and the decoding sensitivity needs to be improved.
Using a combined signal encoding method of sound guide sequence, pseudo-random sequence and data encoding sequence, the clock frequency offset is estimated through sound guide sequence, the pseudo-random sequence is used for signal capture, and the data encoding and decoding is used for orthogonal sequence to improve the slave device's Decoding sensitivity.
The signal interception capability and anti-environmental interference capability of the downlink of the RFID system are improved, the decoding sensitivity is enhanced, and the accuracy and stability of signal capture are ensured.
Smart Images

Figure CN119030659A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present specification relate to the field of digital signal processing technology, and specifically to a signal encoding and decoding method, device, equipment, chip and storage medium. Background Art
[0002] Radio Frequency Identification (RFID) is a technology that uses radio frequency to perform contactless data communication. It uses radio frequency to read and write recording media (electronic tags or radio frequency cards) to achieve the purpose of identifying targets and exchanging data.
[0003] In the related art, when communicating via wireless radio frequency, envelope detection technology is often used for decoding, which is easily affected by noise and interference, has low detection accuracy, and is prone to bit error judgment, which leads to signal capture failure and communication parameter decoding errors. Therefore, the decoding sensitivity of the related art needs to be improved. Summary of the invention
[0004] In view of this, multiple embodiments of this specification are dedicated to providing a signal encoding and decoding method, device, equipment, chip and storage medium to improve decoding sensitivity.
[0005] The implementation mode of this specification provides a signal encoding method, which is applied to a master-end device; the method includes: determining a pilot tone sequence, a pseudo-random sequence and a data encoding sequence; the pilot tone sequence includes multiple pilot tones, the pilot tone includes at least one bit 1 and / or at least one bit 0, and the pilot tone sequence is used to estimate the clock frequency offset of the slave-end device; the pseudo-random sequence includes at least one bit 1 and at least one bit 0, and the pseudo-random sequence is used by the slave-end device to perform signal capture based on the clock frequency offset to determine a capture result for decoding the data encoding sequence; the data encoding sequence includes a first data symbol and a second data symbol, the first data symbol and the second data symbol each include at least one bit 1 and at least one bit 0, and the first data symbol and the second data symbol are orthogonal sequences; generating a coded signal including the pilot tone sequence, the pseudo-random sequence and the data encoding sequence, and sending it to the slave-end device.
[0006] In some implementations, the duration of bit 1 in the leading tone and the duration of bit 0 in the leading tone are equal, and are both the first duration.
[0007] In some embodiments, the duration of bit 1 in the pseudo-random sequence is equal to the duration of bit 0 in the pseudo-random sequence, both being the second duration; the second duration is not equal to the first duration corresponding to each bit in the lead tone of the lead tone sequence.
[0008] In some embodiments, the duration of bit 1 in the data coding sequence is equal to the duration of bit 0 in the data coding sequence, and both are the third duration; the third duration is not equal to the first duration corresponding to each bit in the lead tone of the lead tone sequence, and the third duration is not equal to the second duration corresponding to each bit in the pseudo-random sequence.
[0009] In some embodiments, the second duration corresponding to each bit in the pseudo-random sequence is equal to a first specified multiple of the first duration corresponding to each bit in the leading tone of the leading tone sequence; the third duration corresponding to each bit in each data codeword of the data coding sequence is equal to a second specified multiple of the second duration.
[0010] In some embodiments, the first specified multiple is an integer and the second specified multiple is an integer.
[0011] In some implementations, the number of bits of the leading tone of the leading tone sequence is not equal to the number of bits of the pseudo-random sequence, and is not equal to the number of bits of any data symbol in the data coding sequence.
[0012] The embodiment of the present specification provides a signal decoding method, which is applied to a slave device; receiving a coded signal; the coded signal includes a pilot tone sequence, a pseudo-random sequence and a data coding sequence; the pilot tone sequence includes multiple pilot tones, and the pilot tone includes at least one bit 1 and / or at least one bit 0; the pseudo-random sequence includes at least one bit 1 and at least one bit 0; the data coding sequence includes a first data symbol and a second data symbol, and the first data symbol and the second data symbol each include at least one bit 1 and at least one bit 0, and the first data symbol and the second data symbol are orthogonal sequences; estimating a clock frequency offset based on the pilot tone sequence in the coded signal; performing signal capture based on the clock frequency offset and the pseudo-random sequence in the coded signal to obtain a capture result; and decoding the data coding sequence in the coded signal based on the capture result.
[0013] In some embodiments, the clock frequency offset can be represented by a target oversampling number; the slave device is preset with multiple digital correlators; the clock frequency offset estimation based on the pilot tone sequence in the coded signal includes: obtaining multiple first local code coefficients based on the local pilot tone sequence and multiple preset oversampling numbers; the multiple first local code coefficients correspond one-to-one to the multiple preset oversampling numbers, and the multiple first local code coefficients correspond one-to-one to the multiple digital correlators; the preset oversampling number represents the number of sampling points oversampled within a specified time length; the pilot tone sequence in the coded signal is captured by the multiple digital correlators using the corresponding first local code coefficients to obtain multiple first peaks; the preset oversampling number corresponding to the maximum of the multiple first peaks is used as the target oversampling number.
[0014] In some implementations, the method further includes: determining the plurality of preset oversampling numbers based on a standard clock frequency and a preset offset granularity; the offset granularity is used to influence the estimation accuracy of the clock frequency offset situation.
[0015] In some embodiments, the signal is captured based on the clock frequency offset and the pseudo-random sequence in the coded signal to obtain a capture result, including: obtaining a second local code coefficient based on the target oversampling number and the local pseudo-random sequence; capturing the pseudo-random sequence in the coded signal using the second local code coefficient through a digital correlator to obtain a second peak; taking the peak moment corresponding to the second peak as the capture result; the peak moment corresponding to the second peak represents the starting header of the data coding sequence in the coded signal.
[0016] In some embodiments, decoding the data coding sequence in the encoded signal based on the capture result includes: obtaining the data coding sequence to be decoded from the encoded signal according to the peak moment corresponding to the second peak; generating a first data codeword waveform coefficient and a second data codeword waveform coefficient based on the target oversampling number; and decoding the data coding sequence based on the first data codeword waveform coefficient and the second data codeword waveform coefficient.
[0017] In some embodiments, the data coding period of each data codeword in the data coding sequence is equal; the decoding of the data coding sequence based on the first data codeword waveform coefficient and the second data codeword waveform coefficient includes: obtaining the data codeword to be decoded from the data coding sequence according to the data coding period; performing multiplication and accumulation operations based on the data codeword to be decoded and the first data codeword waveform coefficient to obtain a first correlation result; performing multiplication and accumulation operations based on the data codeword to be decoded and the second data codeword waveform coefficient to obtain a second correlation result; if the first correlation result is greater than the second correlation result, decoding the data codeword to be decoded as the first data codeword; if the first correlation result is less than the second correlation result, decoding the data codeword to be decoded as the second data codeword.
[0018] In some implementations, the slave device is a passive device.
[0019] The implementation mode of this specification provides a signal encoding device, which is applied to a master-end device; the device includes: a first encoding module, which is used to determine a pilot tone sequence, a pseudo-random sequence and a data encoding sequence; the pilot tone sequence is used to estimate the clock frequency offset of the slave-end device; the pseudo-random sequence is used by the slave-end device to capture a signal based on the clock frequency offset to determine a capture result for decoding the data encoding sequence; the data encoding sequence includes a first data codeword and a second data codeword, and the first data codeword and the second data codeword are orthogonal sequences; a second encoding module is used to generate a coded signal including the pilot tone sequence, the pseudo-random sequence and the data encoding sequence, and send it to the slave-end device.
[0020] In some embodiments, the lead tone sequence includes multiple lead tones, and the lead tone includes at least one bit 1 and / or at least one bit 0; the duration of bit 1 in the lead tone is equal to the duration of bit 0 in the lead tone, and both are the first duration.
[0021] In some embodiments, the pseudo-random sequence includes at least one bit 1 and at least one bit 0; the duration of bit 1 in the pseudo-random sequence is equal to the duration of bit 0 in the pseudo-random sequence, and both are the second duration; the second duration is not equal to the first duration corresponding to each bit in the guide tone of the guide tone sequence.
[0022] In some embodiments, the first data codeword and the second data codeword in the data coding sequence each include at least one bit 1 and at least one bit 0; the duration of bit 1 in the data coding sequence and the duration of bit 0 in the data coding sequence are equal, and both are the third duration; the third duration is not equal to the first duration corresponding to each bit in the leading tone of the leading tone sequence, and the third duration is not equal to the second duration corresponding to each bit in the pseudo-random sequence.
[0023] In some embodiments, the second duration corresponding to each bit in the pseudo-random sequence is equal to a first specified multiple of the first duration corresponding to each bit in the leading tone of the leading tone sequence; the third duration corresponding to each bit in each data codeword of the data coding sequence is equal to a second specified multiple of the second duration.
[0024] In some embodiments, the first specified multiple is an integer and the second specified multiple is an integer.
[0025] In some implementations, the number of bits of the leading tone of the leading tone sequence is not equal to the number of bits of the pseudo-random sequence, and is not equal to the number of bits of any data symbol in the data coding sequence.
[0026] The embodiment of the present specification provides a signal decoding device, which is applied to a slave device; the device includes: a first decoding module, which is used to receive a coded signal; the coded signal includes a pilot tone sequence, a pseudo-random sequence and a data coding sequence; the data coding sequence includes a first data codeword and a second data codeword, and the first data codeword and the second data codeword are orthogonal sequences; a second decoding module, which is used to estimate the clock frequency offset based on the pilot tone sequence in the coded signal; a third decoding module, which is used to perform signal capture based on the clock frequency offset and the pseudo-random sequence in the coded signal to obtain a capture result; and a fourth decoding module, which is used to decode the data coding sequence in the coded signal based on the capture result.
[0027] In some embodiments, the clock frequency offset situation can be represented by a target oversampling number; the slave device is preset with multiple digital correlators; the second decoding module is also used to: obtain multiple first local code coefficients based on a local pilot sound sequence and multiple preset oversampling numbers; the multiple first local code coefficients correspond one-to-one to the multiple preset oversampling numbers, and the multiple first local code coefficients correspond one-to-one to the multiple digital correlators; the preset oversampling number represents the number of sampling points oversampled within a specified time length; the pilot sound sequence in the encoded signal is captured by the corresponding first local code coefficients through the multiple digital correlators to obtain multiple first peaks; the preset oversampling number corresponding to the maximum of the multiple first peaks is used as the target oversampling number.
[0028] In some implementations, the second decoding module is further used to: determine the plurality of preset oversampling numbers based on a standard clock frequency and a preset offset granularity; the offset granularity is used to influence the estimation accuracy of the clock frequency offset situation.
[0029] In some embodiments, the third decoding module is also used to: obtain a second local code coefficient based on the target oversampling number and the local pseudo-random sequence; use the second local code coefficient to capture the pseudo-random sequence in the encoded signal through a digital correlator to obtain a second peak; use the peak moment corresponding to the second peak as the capture result; the peak moment corresponding to the second peak represents the starting header of the data encoding sequence in the encoded signal.
[0030] In some embodiments, the fourth decoding module is further used to: obtain a data coding sequence to be decoded from the coded signal according to the peak moment corresponding to the second peak; generate a first data codeword waveform coefficient and a second data codeword waveform coefficient based on the target oversampling number; and decode the data coding sequence based on the first data codeword waveform coefficient and the second data codeword waveform coefficient.
[0031] In some embodiments, the data encoding period of each data codeword in the data encoding sequence is equal; the fourth decoding module is also used to: obtain the data codeword to be decoded from the data encoding sequence according to the data encoding period; perform multiplication and addition operations based on the data codeword to be decoded and the first data codeword waveform coefficient to obtain a first correlation result; perform multiplication and addition operations based on the data codeword to be decoded and the second data codeword waveform coefficient to obtain a second correlation result; if the first correlation result is greater than the second correlation result, decode the data codeword to be decoded as the first data codeword; if the first correlation result is less than the second correlation result, decode the data codeword to be decoded as the second data codeword.
[0032] In some implementations, the slave device is a passive device.
[0033] An embodiment of the present specification provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the encoding method or the decoding method described in any of the above embodiments is implemented.
[0034] An embodiment of the present specification provides a chip, including a storage unit and a processing unit, wherein the storage unit stores a computer program, and the processing unit implements the encoding method or decoding method described in any of the above embodiments when executing the computer program.
[0035] An embodiment of the present specification provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the encoding method or the decoding method described in any of the above embodiments is implemented.
[0036] The multiple implementation methods provided in this specification are as follows: a pilot tone sequence, a pseudo-random sequence and a data coding sequence are determined; the pilot tone sequence includes multiple pilot tones, the pilot tone includes at least one bit 1 and / or at least one bit 0, and the pilot tone sequence is used to estimate the clock frequency offset from the end device; the pseudo-random sequence includes at least one bit 1 and at least one bit 0, and the pseudo-random sequence is used to perform signal capture based on the clock frequency offset from the end device to determine the capture result for decoding the data coding sequence; the data coding sequence includes a first data symbol and a second data symbol, the first data symbol and the second data symbol each include at least one bit 1 and at least one bit 0, and the first data symbol and the second data symbol are orthogonal sequences; a coded signal including the pilot tone sequence, the pseudo-random sequence and the data coding sequence is generated and sent to the slave device, so that the decoding sensitivity can be improved when the slave device decodes the coded signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of a signal encoding method provided in an embodiment of this specification;
[0038] Figure 2a A schematic diagram of a guide tone sequence provided for an embodiment of this specification;
[0039] Figure 2b A schematic diagram of a data encoding sequence provided for an embodiment of this specification;
[0040] Figure 3 A schematic diagram of a signal decoding method provided in an embodiment of this specification;
[0041] Figure 4 A schematic diagram of a coded signal provided for an embodiment of this specification;
[0042] Figure 5 A flowchart of a method for estimating clock frequency offset provided in an embodiment of this specification;
[0043] Figure 6 A schematic flow chart of a signal capture method provided in an embodiment of this specification;
[0044] Figure 7 A schematic diagram of a signal decoding method provided in an embodiment of this specification;
[0045] Figure 8 A schematic diagram of a signal decoding method provided in an embodiment of this specification;
[0046] Fig. 9 A schematic diagram of a signal encoding device provided in an embodiment of this specification;
[0047] Fig.10 A schematic diagram of a signal decoding device provided in an embodiment of this specification;
[0048] Fig.11 A schematic diagram of a computer device provided for embodiments of the present specification. DETAILED DESCRIPTION
[0049] In order to enable those skilled in the art to better understand the solution of this specification, the technical solution in the implementation of this specification will be clearly and completely described below in conjunction with the drawings in the implementation of this specification. Obviously, the described implementation is only a part of the implementation of this specification, not all of the implementations. Based on the implementation in this specification, all other implementations obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0050] In some related technologies, the Radio Frequency Identification (RFID) system often uses backscatter technology for wireless communication. For example, the RFID system may include a master device and a slave device. The master device of the RFID system may send a radio frequency signal to the slave device. The slave device uses the backscatter technology to modulate its own information onto the radio frequency signal for return transmission. The master device receives the return signal from the slave device and demodulates it to achieve information transmission. In the process of information transmission, the slave device receives the radio frequency signal sent by the master device and returns the information, while the backscatter technology enables the slave device to passively use the radio frequency signal sent by the master device to provide energy, and after receiving the radio frequency signal, changes the phase or amplitude of the return signal to carry information. The master device receives the return signal and decodes the information therein.
[0051] In some related technologies, the communication distance between the master device and the slave device in the RFID system is often no more than 30 meters, and the receiving sensitivity of the slave device is usually no more than -24dBm. When the communication distance between the master device and the slave device reaches 100 meters, the receiving sensitivity of the slave device needs to reach -45dBm to enable normal communication. However, the downlink modulation technology in the related technology cannot meet the demand, and the slave device is susceptible to noise and interference, and the detection accuracy is low. If the slave device continues to use the traditional envelope detection technology to decode the RF signal sent by the master device, it is easy to make a code error judgment, which will cause signal capture failure and communication parameter decoding errors.
[0052] Therefore, it is necessary to provide a signal encoding method. First, the master device can determine the pilot tone sequence, the pseudo-random sequence and the data encoding sequence; since the slave device may be affected by the change of ambient temperature and cause its clock frequency to shift, the pilot tone sequence can be used by the slave device to estimate the clock frequency offset; the pseudo-random sequence can be used by the slave device to capture the signal based on the clock frequency offset, so as to decode the data encoding sequence according to the capture result; the data encoding sequence may include a first data codeword and a second data codeword, and the first data codeword and the second data codeword are orthogonal sequences, so that the slave device can perform orthogonal decoding; then, the master device can generate a coded signal including the pilot tone sequence, the pseudo-random sequence and the data encoding sequence, and send the coded signal to the slave device, so that the slave device can decode the signal based on the coding method of the coded signal, thereby improving the decoding sensitivity of the slave device to the coded signal.
[0053] The embodiments of this specification provide a scenario example of a signal encoding method and a signal decoding method, and the scenario example may be an RFID system, and the RFID system may include a master device as a master and a slave device as a slave. The backscatter communication link between the master device and the slave device may include an uplink and a downlink. Among them, the downlink may refer to a communication link in which the master device sends a coded signal to the slave device, and the uplink may refer to a communication link in which the slave device transmits back to the master device based on the coded signal.
[0054] As an example, the slave device may be a passive slave or a passive device. In other words, the slave device may be a slave device that does not require a built-in power supply and can obtain energy from a received signal to drive a circuit inside the slave device to work.
[0055] As an example, the master device may be an RFID reader / writer, and the slave device may be an RFID electronic tag.
[0056] This specification provides a signal encoding method. Figure 1 , Figure 1 It is a flowchart of a signal encoding method provided by this embodiment. This embodiment provides method operation steps as shown in the flowchart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one execution method among many step execution sequences, and does not represent the only execution sequence. When the actual system or server product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiment (for example, in a parallel processor or multi-threaded processing environment). The signal encoding method can be applied to the main terminal device of the RFID system, specifically as Figure 1 As shown, the signal encoding method may include the following steps.
[0057] Step S110: determine a pilot tone sequence, a pseudo-random sequence and a data coding sequence; the pilot tone sequence includes a plurality of pilot tones, the pilot tone includes at least one bit 1 and / or at least one bit 0, and the pilot tone sequence is used to estimate the clock frequency offset from the terminal device; the pseudo-random sequence includes at least one bit 1 and at least one bit 0, and the pseudo-random sequence is used to perform signal capture based on the clock frequency offset from the terminal device to determine a capture result for decoding the data coding sequence; the data coding sequence includes a first data symbol and a second data symbol, the first data symbol and the second data symbol each include at least one bit 1 and at least one bit 0, and the first data symbol and the second data symbol are orthogonal sequences.
[0058] In some cases, in order to facilitate the slave device in the RFID system to perform signal decoding and improve the decoding sensitivity of the slave device, the master device may perform signal encoding on the data to be transmitted and send the encoded signal to the slave device.
[0059] A bit may refer to the smallest unit in a sequence, or the smallest unit of an ordered data set or signal combination. The state of a bit may be state 1 or state 0. As an example, bit 1 may refer to "1", indicating the state 1 of the bit; bit 0 may refer to "0", indicating the state 0 of the bit.
[0060] The clock frequency offset can be used to describe the degree of deviation of the working clock frequency of the slave device relative to the standard clock frequency. The working clock frequency of the RFID may be affected by environmental factors such as temperature and thus may be offset. Therefore, in order to improve the decoding accuracy, the clock frequency offset needs to be estimated.
[0061] Specifically, see Figure 2aThe master device may form a pilot tone based on one or more bits 1 and / or one or more bits 0, and form a pilot tone sequence based on multiple pilot tones. The master device may form a pseudo-random sequence based on one or more bits 1 and one or more bits 0. The master device may determine a data encoding sequence based on the data to be sent, one or more bits 1, and one or more bits 0. For example, the data to be sent may include data 1 and data 0, see Figure 2b The master device can form a first data symbol based on one or more bit 1s and one or more bit 0s, and can form a second data symbol based on one or more bit 1s and one or more bit 0s, wherein the first data symbol represents data 1 and the second data symbol represents data 0.
[0062] For example, please refer to Figure 2a Any leading tone in the leading tone sequence may include at least one "1", or may include at least one "0", or may include at least one "1" and at least one "0". A pseudo-random sequence may include at least one "1" and at least one "0". Please continue to refer to Figure 2b , the first data symbol in the data coding sequence may include at least one "1" and at least one "0", and the second data symbol in the data coding sequence may include at least one "1" and at least one "0".
[0063] Exemplarily, the first data symbol and the second data symbol are orthogonal sequences, which may mean that there is orthogonality between the first data symbol and the second data symbol. For example, the orthogonality between the first data symbol and the second data symbol may be determined based on the inner product between the first data symbol and the second data symbol. As an example, bit 1 may correspond to a value 1, and bit 0 may correspond to a value 0, that is, "1" may correspond to a value 1, and "0" may correspond to a value -1. Based on the value corresponding to each bit in the first data symbol and the value corresponding to each bit in the second data symbol, the inner product between the first data symbol and the second data symbol may be determined, thereby determining the orthogonality between the first data symbol and the second data symbol.
[0064] As an example, see Figure 2a , the lead tone sequence may include 12 lead tones, each of which has the same length, or in other words, each lead tone has the same number of bits, and each lead tone may include 1 "0" and 1 "1". For example, the lead tone in the lead tone sequence may be "01" and its length is 2. For another example, the lead tone in the lead tone sequence may also be "10". It is understandable that the length of the lead tone sequence and the length of the lead tone may be limited according to actual conditions, and no limitation is made here.
[0065] As an example, the pseudo-random sequence may include 32 "1"s or "0", or in other words, the number of "1"s and "0"s in the pseudo-random sequence is 32 in total, that is, the length of the pseudo-random sequence is 32. The pseudo-random sequence can be randomly generated by a random sequence generator. If the pseudo-random sequence is too short, it is easy to cause the false alarm rate of the slave device to increase, making it easy to mistakenly identify or judge noise or other non-target signals as valid signals or target signals. Although a pseudo-random sequence that is too long can reduce the false alarm rate, it is easy to reduce communication efficiency. Therefore, it can be understood that the length of the pseudo-random sequence can be determined according to actual conditions. For example, the length of the pseudo-random sequence can also be 16, 24, etc., which is not limited here.
[0066] As an example, see Figure 2b , the first data symbol in the data coding sequence may include 1 "0" and 3 consecutive "1", that is, the length of the first data symbol is 4. For example, the first data symbol may be "0111", indicating data 1 in the data to be sent. The second data symbol in the data coding sequence may include 3 consecutive "1"s and 1 "0", that is, the second data symbol may be "1110", indicating data 0 in the data to be sent.
[0067] As another example, the first data symbol and the second data symbol in the data coding sequence may include 2 "0"s and 6 "1"s, that is, the length of the first data symbol and the second data symbol is 8. For example, the first data symbol and the second data symbol may be "00111111" and "11111100", respectively. For another example, the first data symbol and the second data symbol may be "00111111" and "11110011", respectively.
[0068] Step S120: Generate a coded signal including a pilot tone sequence, a pseudo-random sequence and a data coding sequence, and send it to the slave device.
[0069] In the above implementation, the master device determines the pilot tone sequence, pseudo-random sequence and data coding sequence, the first data symbol and the second data symbol in the data coding sequence are orthogonal sequences, and then generates a coded signal including the pilot tone sequence, the pseudo-random sequence and the data coding sequence, and sends it to the slave device, so that the slave device estimates the clock frequency offset based on the pilot tone sequence, and performs signal capture based on the clock frequency offset to determine the capture result. In this way, the pseudo-random sequence in the coded signal can improve the signal interception capability and anti-environmental interference capability of the downlink of the RFID system, and then orthogonally decodes the first data symbol and the second data symbol in the data coding sequence based on the capture result. In this way, the signal interception capability and anti-environmental interference capability of the downlink of the RFID system can be improved while improving the decoding sensitivity. In addition, by utilizing the orthogonality between the first data symbol and the second data symbol in the data coding sequence, it is also convenient for the slave device to obtain energy from the coded signal, thereby determining the data symbol to be decoded, and further improving the decoding sensitivity.
[0070] In some embodiments, the duration of bit 1 in the lead tone is equal to the duration of bit 0 in the lead tone, and both are the first duration. Specifically, the length of each of the multiple lead tones in the lead tone sequence is the same, and the duration of each bit in any lead tone is the same. Exemplarily, the duration of "1" in any lead tone can be equal to the duration of "0" in the lead tone. Exemplarily, the first duration can be 1.25 microseconds. For example, if the lead tone is "01", the duration of the lead tone is 2.5 microseconds.
[0071] In some embodiments, the duration of bit 1 in the pseudo-random sequence is equal to the duration of bit 0 in the pseudo-random sequence, and both are the second duration; the second duration is not equal to the first duration corresponding to each bit in the pilot tone of the pilot tone sequence. Specifically, the duration of each bit in the pseudo-random sequence is the same. Exemplarily, the duration of "1" in the pseudo-random sequence can be equal to the duration of "0" in the pseudo-random sequence. Exemplarily, the second duration can be 2.5 microseconds, that is, the duration of any bit in the pseudo-random sequence is 2.5 microseconds.
[0072] In some embodiments, the duration of bit 1 in the data coding sequence is equal to the duration of bit 0 in the data coding sequence, and both are the third duration; the third duration is not equal to the first duration corresponding to each bit in the pilot tone of the pilot tone sequence, and the third duration is not equal to the second duration corresponding to each bit in the pseudo-random sequence. Specifically, the duration of each bit in the data coding sequence is the same. In other words, the duration of each data symbol in the data coding sequence is the same, and the duration of each bit in each data symbol is the same. Exemplarily, the duration of any "1" or "0" in the first data symbol in the data coding sequence can be equal to the duration of any "1" or "0" in the second data symbol in the data coding sequence. Exemplarily, the third duration can be 5 microseconds.
[0073] In some embodiments, the second duration corresponding to each bit in the pseudo-random sequence is equal to the first specified multiple of the first duration corresponding to each bit in the lead tone of the lead tone sequence. Exemplarily, the duration of any bit in the pseudo-random sequence can be equal to the duration of the lead tone, and the duration of the lead tone can be determined based on the length of the lead tone and the duration of any bit in the lead tone, that is, the duration of any bit in the pseudo-random sequence can be determined based on the length of the lead tone and the duration of any bit in the lead tone. In other words, the first specified multiple can be determined based on the length of the lead tone. For example, if the lead tone is "01" and its length is 2, the first specified multiple is 2. At this time, if the duration of any bit in the lead tone is 1.25 microseconds, based on the first specified multiple 2, the second duration can be determined to be 2.5 microseconds.
[0074] In some embodiments, the third duration corresponding to each bit in each data symbol of the data coding sequence is equal to the second specified multiple of the second duration. Specifically, the second specified multiple may be 2 times, 4 times, or 8 times, etc. For example, if the duration corresponding to each bit in the pseudo-random sequence is m seconds, the duration of any bit in any data symbol in the data coding sequence may be K*m microseconds, where K is the second specified multiple.
[0075] Exemplarily, the duration of any data symbol in the data coding sequence can be determined based on the third duration and the length of the data symbol. For example, if the length of the first data symbol or the second data symbol is 4, indicating that the first data symbol or the second data symbol includes 4 bits, then the duration of the first data symbol or the second data symbol is 4*K*m microseconds, where K is the second specified multiple and m is the duration of any bit in the pseudo-random sequence. If the length of the first data symbol or the second data symbol is 8, then the duration of the first data symbol or the data symbol is 8*K*m microseconds.
[0076] In some embodiments, the first specified multiple is an integer and the second specified multiple is an integer.
[0077] In some embodiments, the number of bits of the pilot tone of the pilot tone sequence is not equal to the number of bits of the pseudo-random sequence, and is not equal to the number of bits of any data symbol in the data encoding sequence. In other words, the length of any pilot tone in the pilot tone sequence is not equal to the length of the pseudo-random sequence, and is not equal to the length of any data symbol in the data encoding sequence. The length can be the number of bits in the pilot tone, sequence, or symbol. In other words, the number of bits in any pilot tone of the pilot tone sequence is not equal to the number of bits in the pseudo-random sequence, and is not equal to the number of bits in any data symbol in the data encoding sequence.
[0078] This specification provides a signal decoding method. Figure 3 , Figure 3 It is a flow chart of a signal decoding method provided in this embodiment. The signal decoding method can be applied to a slave device of an RFID system. The signal decoding method can include the following steps.
[0079] Step S310: receiving a coded signal; the coded signal includes a pilot tone sequence, a pseudo-random sequence and a data coding sequence; the pilot tone sequence includes multiple pilot tones, the pilot tone includes at least one bit 1 and / or at least one bit 0; the pseudo-random sequence includes at least one bit 1 and at least one bit 0; the data coding sequence includes a first data symbol and a second data symbol, the first data symbol and the second data symbol each include at least one bit 1 and at least one bit 0, and the first data symbol and the second data symbol are orthogonal sequences.
[0080] In some cases, in the downlink of the RFID system, the slave device can receive, decode and record the coded signal sent by the master device. At the same time, after receiving the coded signal or decoding and recording the coded signal, it can also change the phase or amplitude of the return signal for return transmission.
[0081] For example, see Figure 4 The coded signal may include a pilot tone sequence, a pseudo-random sequence and a data coding sequence in sequence.
[0082] Step S320: Estimate the clock frequency offset based on the pilot tone sequence in the coded signal.
[0083] Specifically, the slave device can have a corresponding working clock frequency. However, since the slave device is a passive device, it is easily affected by external environment such as temperature, causing the working clock frequency to deviate from the standard clock frequency and change with changes in ambient temperature. Therefore, in order to correctly decode the encoded signal, it is necessary to estimate the working clock frequency and determine the clock frequency offset of the slave device.
[0084] Step S330: performing signal capture based on the clock frequency offset and the pseudo-random sequence in the coded signal to obtain a capture result.
[0085] Specifically, capturing a signal based on a clock frequency offset and a pseudo-random sequence may refer to correcting the clock frequency based on the clock frequency offset, and capturing based on the corrected clock frequency and a pseudo-random sequence to obtain a capture result.
[0086] Step S340: Decode the data encoding sequence in the encoded signal based on the capture result.
[0087] For details, please continue to see Figure 4 The capture result may refer to the start header of the data coding sequence in the coded signal, so that the data coding sequence in the coded signal may be decoded based on the start header of the data coding sequence. Exemplarily, since the first data symbol and the second data symbol included in the data coding sequence are orthogonal sequences, orthogonal decoding may be performed when decoding the data coding sequence.
[0088] In the above embodiment, after receiving the coded signal, the clock frequency offset is estimated based on the pilot tone sequence in the coded signal, and signal capture is performed based on the clock frequency offset and the pseudo-random sequence in the coded signal to obtain a capture result, and the data coding sequence in the coded signal is decoded based on the capture result. In this way, while improving the decoding sensitivity, it is also convenient to obtain energy from the coded signal carrier for decoding, thereby further improving the decoding sensitivity.
[0089] In some implementations, the clock frequency offset can be represented by a target oversampling number. For example, when the working clock frequency of the slave device is offset, the corresponding sampling number will usually change. To estimate the clock frequency offset, multiple preset oversampling numbers can be used to estimate or evaluate the clock frequency offset.
[0090] In this embodiment, the slave device is preset with a plurality of digital correlators. The digital correlator may refer to a matched filter. The plurality of digital correlators correspond one-to-one to the plurality of preset oversampling numbers, so as to estimate the clock frequency offset through the plurality of digital correlators based on the respective corresponding preset oversampling numbers.
[0091] Specifically, see Figure 5 , estimating the clock frequency offset based on the pilot tone sequence in the coded signal may include the following steps.
[0092] Step S510: Based on the local pilot sound sequence and multiple preset oversampling numbers, multiple first local code coefficients are obtained; the multiple first local code coefficients correspond one-to-one to the multiple preset oversampling numbers, and the multiple first local code coefficients correspond one-to-one to the multiple digital correlators; the preset oversampling number represents the number of sampling points oversampled within a specified time length.
[0093] In some cases, the slave device may be preset with a local pilot tone sequence. The sequence structure of the local pilot tone sequence is the same as the sequence structure of the pilot tone sequence in the coded signal before the master device sends the coded signal. That is, the local pilot tone sequence may include multiple pilot tones, and any pilot tone in the local pilot tone sequence may include at least one bit 1 and / or at least one bit 0.
[0094] The specified duration may be determined according to actual conditions. For example, the specified duration may refer to the duration of each lead tone. For example, the lead tone may be "01", and assuming that the duration of each bit in the lead tone is 1.25 microseconds, the duration of the lead tone is 2.5 microseconds, and the specified duration is 2.5 microseconds.
[0095] Exemplarily, the preset oversampling number may refer to a preset oversampling number for any guide sound.
[0096] Specifically, based on any preset oversampling number among the plurality of preset oversampling numbers and each leading tone in the local leading tone sequence, the first local code coefficient corresponding to the any preset oversampling number can be determined, so that a plurality of first local code coefficients corresponding to the plurality of preset oversampling numbers can be obtained. Exemplarily, the first local code coefficient can be composed of a plurality of sample point values, and the number of the plurality of sample point values is the product of the corresponding preset oversampling number and the number of leading tones in the local leading tone sequence.
[0097] As an example, if the multiple preset oversampling numbers are 5, they are 4.5, 4.75, 5.0, 5.25, and 5.5 respectively. Taking the preset oversampling number of 5.0 and the number of pilot sounds in the local pilot sound sequence of 12 as an example, each pilot sound in the local pilot sound sequence is oversampled according to the preset oversampling number of 5.0, and the first local code coefficient of the local pilot sound sequence corresponding to the preset oversampling number of 5.0 can be obtained, and the first local code coefficient consists of 12*5.0=60 sample values. Any pilot sound in the local pilot sound sequence includes "1" and / or "0", that is, the first local code coefficient consists of 60 sample values 1 corresponding to "1" or sample values 0 corresponding to "0".
[0098] Step S520: using a plurality of digital correlators to respectively use corresponding first local code coefficients to capture the pilot tone sequence in the coded signal to obtain a plurality of first peaks.
[0099] Specifically, the multiple first local code coefficients may correspond to the multiple digital correlators one by one, and the corresponding first local code coefficient may be used to capture the pilot tone sequence in the coded signal through any digital correlator to obtain the corresponding first peak value, so that the multiple first peak values corresponding to the multiple first local code coefficients may be obtained. The first peak value may refer to the peak value determined by capturing the pilot tone sequence in the coded signal using the first local code coefficient.
[0100] Exemplarily, capturing the lead tone sequence in the coded signal using the first local code coefficient may refer to performing a correlation operation on the first local code coefficient and the lead tone sequence in the coded signal, or in other words, performing a multiplication-accumulation operation on the first local code coefficient and the lead tone sequence in the coded signal. The first peak value may be obtained through the correlation operation or the multiplication-accumulation operation.
[0101] Step S530: taking the preset oversampling number corresponding to the maximum one of the plurality of first peak values as the target oversampling number.
[0102] In the above implementation, multiple first local code coefficients are obtained based on a local pilot tone sequence and multiple preset oversampling numbers, and then, the pilot tone sequence in the encoded signal is captured by multiple digital correlators using the corresponding first local code coefficients to obtain multiple first peaks, and the preset oversampling number corresponding to the maximum of the multiple first peaks is used as the target oversampling number. In this way, the clock frequency offset can be estimated through the target oversampling number.
[0103] In some implementations, the signal decoding method may further include: determining a plurality of preset oversampling numbers based on the standard clock frequency and a preset offset granularity, wherein the offset granularity may be used to influence the estimation accuracy of the clock frequency offset situation.
[0104] Exemplarily, the standard clock frequency may correspond to a preset oversampling number. For example, the preset oversampling number corresponding to the standard clock frequency may be 5.0. Then, when the working clock frequency of the slave device is the standard clock frequency, the number of sampling points for oversampling any guide tone within a specified time length is 5.0. For example, if the offset granularity is 0.25, multiple preset oversampling numbers may be determined based on the preset oversampling number corresponding to the standard clock frequency and the offset granularity, and the multiple preset oversampling numbers may include the preset oversampling number corresponding to the standard clock frequency. For example, the multiple preset oversampling numbers may include 4.5, 4.75, 5.0, 5.25, and 5.5. In other words, the clock frequency offset of the slave device working clock frequency within the upper and lower offset ratio of 10% compared to the standard clock frequency, and the estimated accuracy is 5%, can be estimated by multiple preset oversampling numbers 4.5, 4.75, 5.0, 5.25, and 5.5. Therefore, as another example, multiple preset oversampling numbers may also be determined based on the standard clock frequency, the upper and lower offset ratio, and the estimated accuracy. In this way, the estimation accuracy of the clock frequency offset of the slave device can be improved.
[0105] In some embodiments, see Figure 6 , performing signal capture based on the clock frequency offset and the pseudo-random sequence in the coded signal to obtain a capture result may include the following steps.
[0106] Step S610: Obtain a second local code coefficient based on a target oversampling number and a local pseudo-random sequence.
[0107] In some cases, the clock frequency offset can be represented by a target oversampling number, or the target oversampling number can be regarded as an estimate of the clock frequency offset of the slave device, and therefore, signal capture can be performed based on the target oversampling number.
[0108] In some cases, the slave device may be preset with a local pseudo-random sequence. The sequence structure of the local pseudo-random sequence is the same as the sequence structure of the pseudo-random sequence in the coded signal of the master device before the coded signal is sent. That is, the local pseudo-random sequence may include at least one bit 1 and at least one bit 0.
[0109] Specifically, the slave device can obtain the second local code coefficient based on the target oversampling number and the local pseudo-random sequence. The target oversampling number refers to the number of sampling points oversampled within a specified time length, and the specified time length can be equal to the duration of any bit in the local pseudo-random sequence, that is, the target oversampling number can be used to describe the number of oversamplings of any bit in the local pseudo-random sequence. Exemplarily, the second local code coefficient can be composed of a plurality of sample values, and the number of the plurality of sample values is the product of the target oversampling number and the number of bits in the local pseudo-random sequence. As an example, if the target oversampling number is 4.5 and the number of bits in the local pseudo-random sequence is 32, the second local code coefficient is composed of 32*4.5=144 sample values. The local pseudo-random sequence includes "1" and "0", that is, the second local code coefficient is composed of 144 sample values 1 corresponding to "1" or sample values 0 corresponding to "0".
[0110] Step S620: using a second local code coefficient through a digital correlator to capture a pseudo-random sequence in the coded signal to obtain a second peak value.
[0111] Specifically, after determining the second local code coefficient, the second local code coefficient may be used to capture the pseudo-random sequence in the coded signal through a digital correlator corresponding to the second local code coefficient to obtain a second peak value. The second peak value may refer to a peak value determined by capturing the pseudo-random sequence in the coded signal using the second local code coefficient.
[0112] Exemplarily, using the second local code coefficient to capture the pseudo-random sequence in the encoded signal may refer to performing a correlation operation on the second local code coefficient and the pseudo-random sequence in the encoded signal, or performing a multiplication-accumulation operation on the second local code coefficient and the pseudo-random sequence in the encoded signal. The second peak value may be obtained through the correlation operation or the multiplication-accumulation operation.
[0113] Step S630: taking the peak time corresponding to the second peak as the capture result; the peak time corresponding to the second peak represents the starting head of the data coding sequence in the coded signal.
[0114] In the above implementation, a second local code coefficient is obtained based on a target oversampling number and a local pseudo-random sequence, and then the pseudo-random sequence in the coded signal is captured using the second local code coefficient through a digital correlator to obtain a second peak, and the peak moment corresponding to the second peak is used as a capture result; the peak moment corresponding to the second peak represents the starting header of the data coding sequence in the coded signal, so that the subsequent decoding of the data coding sequence in the coded signal can be facilitated to improve the decoding sensitivity.
[0115] In some embodiments, see Figure 7, decoding the data encoding sequence in the encoded signal based on the capture result may include the following steps.
[0116] Step S710: obtaining a data coding sequence to be decoded from the coded signal according to the peak time corresponding to the second peak.
[0117] Specifically, since the capture result may refer to the peak moment corresponding to the second peak, and the peak moment corresponding to the second peak indicates the start of the data coding sequence in the coded signal, the data coding sequence to be decoded may be obtained from the coded signal according to the peak moment corresponding to the second peak.
[0118] Step S720: Generate first data symbol waveform coefficients and second data symbol waveform coefficients based on the target oversampling number.
[0119] In some cases, the slave device may be preset with a local first data symbol and a local second data symbol. The sequence structure of the local first data symbol is the same as the sequence structure of the first data symbol in the coded signal before the master device sends the coded signal. The sequence structure of the local second data symbol is the same as the sequence structure of the second data symbol in the coded signal before the master device sends the coded signal.
[0120] Specifically, the slave device can obtain the first data symbol waveform coefficient based on the target oversampling number and the local first data symbol, and can obtain the second data symbol waveform coefficient based on the target oversampling number and the local second data symbol. The target oversampling number refers to the number of sampling points oversampled within a specified time length, and the specified time length can be less than, equal to, or greater than the duration of any bit in the local first and second data symbols. As an example, the specified time length can be less than the duration of any bit in the local first and second data symbols.
[0121] Step S730: Decode the data coding sequence based on the first data symbol waveform coefficient and the second data symbol waveform coefficient.
[0122] In the above implementation, the starting header of the data coding sequence in the coded signal can be determined according to the peak moment corresponding to the second peak, so that the data coding sequence to be decoded can be obtained from the coded signal according to the starting header, and then, based on the target oversampling number, the first data codeword waveform coefficient and the second data codeword waveform coefficient are generated, and the data coding sequence is decoded based on the first data codeword waveform coefficient and the second data codeword waveform coefficient. In this way, the decoding speed and decoding flexibility of the data coding series can be improved.
[0123] In some embodiments, see Figure 8, based on the first data codeword waveform coefficient and the second data codeword waveform coefficient, decoding the data coding sequence may include the following steps.
[0124] Step S810: According to the data encoding period, obtain the data codeword to be decoded from the data encoding sequence.
[0125] In some cases, the data encoding period of each data symbol in the data encoding sequence is equal. That is, the data encoding period of the first data symbol and the second data symbol in the data encoding sequence are equal, or the duration of the first data symbol and the second data symbol in the encoding signal before the master device sends the encoding signal is equal.
[0126] Therefore, in this embodiment, after the data coding sequence is intercepted from the coding signal according to the start header of the data coding sequence, data symbols to be decoded can be continuously obtained from the data coding sequence according to the data coding cycle.
[0127] Step S820: Perform a multiplication-accumulation operation based on the data symbol to be decoded and the first data symbol waveform coefficient to obtain a first correlation result.
[0128] Step S830: Perform a multiplication-accumulation operation based on the data symbol to be decoded and the waveform coefficient of the second data symbol to obtain a second correlation result.
[0129] Specifically, a multiplication-accumulation operation is performed based on the data symbol to be decoded and the waveform coefficient of the first data symbol, that is, a correlation operation is performed on the data symbol to be decoded and the waveform coefficient of the first data symbol, to obtain a first correlation result. A multiplication-accumulation operation is performed based on the data symbol to be decoded and the waveform coefficient of the second data symbol, that is, a correlation operation is performed on the data symbol to be decoded and the waveform coefficient of the second data symbol, to obtain a second correlation result. After determining the first correlation result and the second correlation result, the magnitudes of the first correlation result and the second correlation result can be compared.
[0130] Step S840: If the first correlation result is greater than the second correlation result, the data symbol to be decoded is decoded into a first data symbol.
[0131] Exemplarily, if the first correlation result is greater than the second correlation result, it means that the data symbol to be decoded has a greater correlation with the waveform coefficient of the first data symbol, and the data symbol to be decoded can be decoded into the first data symbol.
[0132] Step S850: If the first correlation result is smaller than the second correlation result, the data symbol to be decoded is decoded into a second data symbol.
[0133] Exemplarily, if the first correlation result is smaller than the second correlation result, it means that the correlation between the data symbol to be decoded and the waveform coefficient of the second data symbol is relatively large, and the data symbol to be decoded can be decoded into the second data symbol.
[0134] In the above-mentioned embodiment, by obtaining the data codeword to be decoded from the data coding sequence according to the data coding period, performing multiplication and addition operations based on the data codeword to be decoded and the first data codeword waveform coefficient to obtain the first correlation result, and performing multiplication and addition operations based on the data codeword to be decoded and the second data codeword waveform coefficient to obtain the second correlation result, since there is orthogonality between the first data codeword and the second data codeword, when the data codeword to be decoded is decoded into the first data codeword or the second data codeword according to the first correlation result and the second correlation result, the decoding sensitivity can be improved.
[0135] The embodiment of this specification provides a signal decoding method, which can be applied to a slave device of an RFID system. The signal decoding method may include the following steps.
[0136] Step S901: Receive a coded signal; the coded signal includes a pilot tone sequence, a pseudo-random sequence and a data coding sequence; the pilot tone sequence includes multiple pilot tones, the pilot tone includes at least one bit 1 and / or at least one bit 0; the pseudo-random sequence includes at least one bit 1 and at least one bit 0; the data coding sequence includes a first data symbol and a second data symbol, the first data symbol and the second data symbol each include at least one bit 1 and at least one bit 0, and the first data symbol and the second data symbol are orthogonal sequences.
[0137] Step S903: Estimate the clock frequency offset based on the pilot tone sequence in the coded signal; the clock frequency offset can be represented by a target oversampling number; a plurality of digital correlators are preset in the slave device.
[0138] Specifically, multiple first local code coefficients can be obtained based on a local pilot sound sequence and multiple preset oversampling numbers; the multiple first local code coefficients correspond one to one, and the multiple first local code coefficients correspond one to one; the preset oversampling number represents the number of sampling points for oversampling within a specified time length; the pilot sound sequence in the encoded signal is captured by multiple digital correlators using the corresponding first local code coefficients respectively to obtain multiple first peaks; the preset oversampling number corresponding to the maximum of the multiple first peaks is used as the target oversampling number.
[0139] Specifically, a plurality of preset oversampling numbers may be determined based on a standard clock frequency and a preset offset granularity; the offset granularity is used to influence the estimation accuracy of the clock frequency offset situation.
[0140] Step S905: performing signal capture based on the clock frequency offset and the pseudo-random sequence in the coded signal to obtain a capture result.
[0141] Specifically, a second local code coefficient can be obtained based on the target oversampling number and the local pseudo-random sequence; the pseudo-random sequence in the coded signal is captured by the second local code coefficient through a digital correlator to obtain a second peak; the peak moment corresponding to the second peak is used as the capture result; the peak moment corresponding to the second peak represents the starting header of the data coding sequence in the coded signal.
[0142] Step S907: obtaining a data coding sequence to be decoded from the coded signal according to the peak time corresponding to the second peak.
[0143] Specifically, the data encoding period of each data symbol in the data encoding sequence is equal.
[0144] Step S909: Generate first data symbol waveform coefficients and second data symbol waveform coefficients based on the target oversampling number.
[0145] Step S911: according to the data encoding period, obtain the data codewords to be decoded from the data encoding sequence.
[0146] Step S913: Perform a multiplication-accumulation operation based on the data symbol to be decoded and the first data symbol waveform coefficient to obtain a first correlation result.
[0147] Step S915: Perform a multiplication-accumulation operation based on the data symbol to be decoded and the waveform coefficient of the second data symbol to obtain a second correlation result.
[0148] Step S917: If the first correlation result is greater than the second correlation result, the data symbol to be decoded is decoded into the first data symbol.
[0149] Step S919: If the first correlation result is smaller than the second correlation result, the data symbol to be decoded is decoded into the second data symbol.
[0150] This specification provides a signal encoding device for use in a master device; see Fig. 9 , the signal encoding device may include a first encoding module 910 and a second encoding module 920.
[0151] The first encoding module 910 is used to determine a pilot tone sequence, a pseudo-random sequence and a data encoding sequence; the pilot tone sequence is used to estimate the clock frequency offset from the terminal device; the pseudo-random sequence is used to perform signal capture from the terminal device based on the clock frequency offset to determine a capture result for decoding the data encoding sequence; the data encoding sequence includes a first data symbol and a second data symbol, and the first data symbol and the second data symbol are orthogonal sequences;
[0152] The second encoding module 920 is used to generate a coded signal including a pilot tone sequence, a pseudo-random sequence and a data coding sequence, and send the coded signal to the slave device.
[0153] The embodiment of this specification provides a signal decoding device applied to a slave device; please refer to Fig.10 The signal decoding device may include a first decoding module 1010 , a second decoding module 1020 , a third decoding module 1030 and a fourth decoding module 1040 .
[0154] The first decoding module 1010 is used to receive a coded signal; the coded signal includes a pilot tone sequence, a pseudo-random sequence and a data coding sequence; the data coding sequence includes a first data symbol and a second data symbol, and the first data symbol and the second data symbol are orthogonal sequences;
[0155] A second decoding module 1020, configured to estimate a clock frequency offset based on a pilot tone sequence in the coded signal;
[0156] The third decoding module 1030 is used to perform signal capture based on the clock frequency offset and the pseudo-random sequence in the coded signal to obtain a capture result;
[0157] The fourth decoding module 1040 is configured to decode the data coding sequence in the coded signal based on the capture result.
[0158] In some embodiments, the clock frequency offset situation can be represented by a target oversampling number; a plurality of digital correlators are preset from the end device; the second decoding module 1020 is also used to: obtain a plurality of first local code coefficients based on a local pilot tone sequence and a plurality of preset oversampling numbers; the plurality of first local code coefficients correspond one-to-one to a plurality of preset oversampling numbers, and the plurality of first local code coefficients correspond one-to-one to a plurality of digital correlators; the preset oversampling number represents the number of sampling points oversampled within a specified time length; the pilot tone sequence in the encoded signal is captured by using a plurality of digital correlators respectively using the corresponding first local code coefficients to obtain a plurality of first peaks; the preset oversampling number corresponding to the maximum of the plurality of first peaks is used as the target oversampling number.
[0159] In some implementations, the second decoding module 1020 is further used to: determine a plurality of preset oversampling numbers based on a standard clock frequency and a preset offset granularity; the offset granularity is used to influence the estimation accuracy of the clock frequency offset situation.
[0160] In some embodiments, the third decoding module 1030 is further used to: obtain a second local code coefficient based on a target oversampling number and a local pseudo-random sequence; use the second local code coefficient to capture the pseudo-random sequence in the encoded signal through a digital correlator to obtain a second peak; use the peak moment corresponding to the second peak as a capture result; the peak moment corresponding to the second peak represents the starting header of the data encoding sequence in the encoded signal.
[0161] In some embodiments, the fourth decoding module 1040 is further used to: obtain a data coding sequence to be decoded from the coded signal according to the peak moment corresponding to the second peak; generate a first data codeword waveform coefficient and a second data codeword waveform coefficient based on a target oversampling number; and decode the data coding sequence based on the first data codeword waveform coefficient and the second data codeword waveform coefficient.
[0162] In some embodiments, the data encoding period of each data codeword in the data encoding sequence is equal; the fourth decoding module 1040 is also used to: obtain the data codeword to be decoded from the data encoding sequence according to the data encoding period; perform multiplication and addition operations based on the data codeword to be decoded and the first data codeword waveform coefficient to obtain a first correlation result; perform multiplication and addition operations based on the data codeword to be decoded and the second data codeword waveform coefficient to obtain a second correlation result; if the first correlation result is greater than the second correlation result, decode the data codeword to be decoded as the first data codeword; if the first correlation result is less than the second correlation result, decode the data codeword to be decoded as the second data codeword.
[0163] The specific functions and effects achieved by the signal encoding device or the signal decoding device can be explained in reference to other embodiments of this specification, and will not be repeated here. Each module in the signal encoding device or the signal decoding device can be implemented in whole or in part by software, hardware, and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0164] The embodiment of the present specification also provides a chip, including a storage unit and a processing unit, wherein the storage unit stores a computer program, and the processing unit implements the signal encoding method or signal decoding method in any of the above embodiments when executing the computer program.
[0165] The present specification also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a computer, the computer executes the signal encoding method or signal decoding method in any of the above-mentioned embodiments.
[0166] The embodiments of the present specification also provide a computer program product including instructions, which, when executed by a computer, enables the computer to execute the signal encoding method or signal decoding method in any of the above embodiments.
[0167] The present specification also provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the signal encoding method or the signal decoding method in the above-mentioned embodiment is implemented.
[0168] In some embodiments, see Fig.11 The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, and a communication interface connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, the signal encoding method or the signal decoding method described in any of the above embodiments is implemented.
[0169] It should be understood that the specific examples herein are only intended to help those skilled in the art to better understand the embodiments of the present specification, rather than to limit the scope of the present invention.
[0170] It can be understood that in the various implementations of this specification, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the implementation methods of this specification.
[0171] It can be understood that the various embodiments described in this specification can be implemented individually or in combination, and the embodiments of this specification are not limited to this.
[0172] Unless otherwise specified, all technical and scientific terms used in the embodiments of this specification have the same meaning as those generally understood by those skilled in the art of the technical field of this specification. The terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the scope of this specification. The term "and / or" used in this specification includes any and all combinations of one or more related listed items. The singular forms of "a", "above", and "the" used in the embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0173] It can be understood that the processor of the embodiment of this specification can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method implementation can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiment of this specification can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of this specification can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0174] It is understood that the memory in the embodiments of this specification may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (programmable ROM, PROM), an erasable programmable read-only memory (erasablePROM, EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory may be a random access memory (RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0175] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this specification.
[0176] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method implementation methods and will not be repeated here.
[0177] The above is only a specific implementation of this specification, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in this specification, which should be included in the protection scope of this specification. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A signal encoding method, characterized in that: Applied to a master device; the method comprises: Determine a pilot tone sequence, a pseudo-random sequence and a data coding sequence; the pilot tone sequence includes a plurality of pilot tones, the pilot tone includes at least one bit 1 and / or at least one bit 0, and the pilot tone sequence is used to estimate the clock frequency offset of the slave device; the pseudo-random sequence includes at least one bit 1 and at least one bit 0, and the pseudo-random sequence is used by the slave device to perform signal capture based on the clock frequency offset to determine a capture result for decoding the data coding sequence; the data coding sequence includes a first data symbol and a second data symbol, the first data symbol and the second data symbol each include at least one bit 1 and at least one bit 0, and the first data symbol and the second data symbol are orthogonal sequences; A coded signal including the pilot tone sequence, the pseudo-random sequence and the data coding sequence is generated and sent to the slave device.
2. The encoding method according to claim 1, characterized in that The duration of bit 1 in the leading tone is equal to the duration of bit 0 in the leading tone, and both are the first duration.
3. The encoding method according to claim 1 or 2, characterized in that: The duration of bit 1 in the pseudo-random sequence is equal to the duration of bit 0 in the pseudo-random sequence, both being the second duration; the second duration is not equal to the first duration corresponding to each bit in the leading tone of the leading tone sequence.
4. The encoding method according to any one of claims 1 to 3, characterized in that: The duration of bit 1 in the data coding sequence is equal to the duration of bit 0 in the data coding sequence, and both are the third duration; the third duration is not equal to the first duration corresponding to each bit in the leading tone of the leading tone sequence, and the third duration is not equal to the second duration corresponding to each bit in the pseudo-random sequence.
5. The encoding method according to any one of claims 1 to 4, characterized in that: The second duration corresponding to each bit in the pseudo-random sequence is equal to the first specified multiple of the first duration corresponding to each bit in the leading tone of the leading tone sequence; the third duration corresponding to each bit in each data codeword of the data coding sequence is equal to the second specified multiple of the second duration.
6. The encoding method according to claim 5, characterized in that The first specified multiple is an integer, and the second specified multiple is an integer.
7. The encoding method according to any one of claims 1 to 6, characterized in that: The number of bits of the leading tone of the leading tone sequence is not equal to the number of bits of the pseudo-random sequence, and is not equal to the number of bits of any data symbol in the data coding sequence.
8. A signal decoding method, characterized in that: Applied to a slave device; the method comprises: Receive a coded signal; the coded signal includes a pilot tone sequence, a pseudo-random sequence and a data coding sequence; the pilot tone sequence includes a plurality of pilot tones, the pilot tone includes at least one bit 1 and / or at least one bit 0; the pseudo-random sequence includes at least one bit 1 and at least one bit 0; the data coding sequence includes a first data symbol and a second data symbol, the first data symbol and the second data symbol each include at least one bit 1 and at least one bit 0, and the first data symbol and the second data symbol are orthogonal sequences; estimating a clock frequency offset based on a pilot tone sequence in the coded signal; Perform signal capture based on the clock frequency offset and the pseudo-random sequence in the coded signal to obtain a capture result; A data encoding sequence in the encoded signal is decoded based on the capture result.
9. The decoding method according to claim 8, characterized in that: The clock frequency deviation can be represented by a target oversampling number; the slave device is preset with a plurality of digital correlators; The estimating the clock frequency offset based on the pilot tone sequence in the coded signal comprises: Based on the local pilot tone sequence and a plurality of preset oversampling numbers, a plurality of first local code coefficients are obtained; the plurality of first local code coefficients correspond one-to-one to the plurality of preset oversampling numbers, and the plurality of first local code coefficients correspond one-to-one to the plurality of digital correlators; the preset oversampling number represents the number of sampling points for oversampling within a specified time length; The pilot tone sequence in the coded signal is captured by the multiple digital correlators using the corresponding first local code coefficients to obtain multiple first peaks; The preset oversampling number corresponding to the maximum of the plurality of first peak values is used as the target oversampling number.
10. The decoding method according to claim 9, characterized in that: The method further comprises: The plurality of preset oversampling numbers are determined based on a standard clock frequency and a preset offset granularity; the offset granularity is used to influence the estimation accuracy of the clock frequency offset situation.
11. The decoding method according to claim 9, characterized in that: The signal capture based on the clock frequency offset and the pseudo-random sequence in the coded signal to obtain a capture result includes: Based on the target oversampling number and the local pseudo-random sequence, obtaining a second local code coefficient; Capturing the pseudo-random sequence in the coded signal by using the second local code coefficient through a digital correlator to obtain a second peak value; The peak moment corresponding to the second peak is taken as the capture result; the peak moment corresponding to the second peak represents the starting head of the data coding sequence in the coded signal.
12. The decoding method according to claim 11, characterized in that: The decoding of the data coding sequence in the coded signal based on the capture result comprises: Obtaining a data coding sequence to be decoded from the coded signal according to the peak moment corresponding to the second peak; Based on the target oversampling number, generating a first data symbol waveform coefficient and a second data symbol waveform coefficient; The data encoding sequence is decoded based on the first data symbol waveform coefficient and the second data symbol waveform coefficient.
13. The decoding method according to claim 12, characterized in that: The data encoding period of each data symbol in the data encoding sequence is equal; The step of decoding the data coding sequence based on the first data symbol waveform coefficient and the second data symbol waveform coefficient comprises: According to the data encoding period, obtaining a data symbol to be decoded from the data encoding sequence; Perform a multiplication-accumulation operation based on the to-be-decoded data symbol and the first data symbol waveform coefficient to obtain a first correlation result; Perform a multiplication-accumulation operation based on the to-be-decoded data symbol and the second data symbol waveform coefficient to obtain a second correlation result; If the first correlation result is greater than the second correlation result, decoding the to-be-decoded data symbol into the first data symbol; If the first correlation result is smaller than the second correlation result, the to-be-decoded data symbol is decoded into the second data symbol.
14. The decoding method according to any one of claims 8 to 13, characterized in that: The slave device is a passive device.
15. A signal encoding device, characterized in that: Applied to a master-end device; the device comprises: A first encoding module is used to determine a pilot tone sequence, a pseudo-random sequence and a data encoding sequence; the pilot tone sequence is used to estimate a clock frequency offset of a slave device; the pseudo-random sequence is used by the slave device to perform signal capture based on the clock frequency offset to determine a capture result for decoding the data encoding sequence; the data encoding sequence includes a first data symbol and a second data symbol, and the first data symbol and the second data symbol are orthogonal sequences; The second encoding module is used to generate a coded signal including the pilot tone sequence, the pseudo-random sequence and the data coding sequence, and send the coded signal to the slave device.
16. The encoding device according to claim 15, characterized in that The lead tone sequence includes multiple lead tones, and the lead tone includes at least one bit 1 and / or at least one bit 0; the duration of the bit 1 in the lead tone is equal to the duration of the bit 0 in the lead tone, and both are the first duration.
17. The encoding device according to claim 15 or 16, characterized in that: The pseudo-random sequence includes at least one bit 1 and at least one bit 0; the duration of bit 1 in the pseudo-random sequence is equal to the duration of bit 0 in the pseudo-random sequence, both of which are the second duration; the second duration is not equal to the first duration corresponding to each bit in the guide tone of the guide tone sequence.
18. The encoding device according to any one of claims 15 to 17, characterized in that: The first data symbol and the second data symbol in the data coding sequence each include at least one bit 1 and at least one bit 0; the duration of the bit 1 in the data coding sequence is equal to the duration of the bit 0 in the data coding sequence, which are both the third duration; The third duration is not equal to the first duration corresponding to each bit in the pilot tone of the pilot tone sequence, and the third duration is not equal to the second duration corresponding to each bit in the pseudo-random sequence.
19. The encoding device according to any one of claims 15 to 18, characterized in that: The second duration corresponding to each bit in the pseudo-random sequence is equal to the first specified multiple of the first duration corresponding to each bit in the leading tone of the leading tone sequence; the third duration corresponding to each bit in each data codeword of the data coding sequence is equal to the second specified multiple of the second duration.
20. The encoding device according to claim 19, characterized in that The first specified multiple is an integer, and the second specified multiple is an integer.
21. The encoding device according to any one of claims 15 to 20, characterized in that: The number of bits of the leading tone of the leading tone sequence is not equal to the number of bits of the pseudo-random sequence, and is not equal to the number of bits of any data symbol in the data coding sequence.
22. A signal decoding device, characterized in that: Applicable to a slave device; the device comprises: A first decoding module is used to receive a coded signal; the coded signal includes a pilot tone sequence, a pseudo-random sequence and a data coding sequence; the data coding sequence includes a first data symbol and a second data symbol, and the first data symbol and the second data symbol are orthogonal sequences; A second decoding module, configured to estimate a clock frequency offset based on a pilot tone sequence in the coded signal; A third decoding module is used to perform signal capture based on the clock frequency offset and the pseudo-random sequence in the coded signal to obtain a capture result; A fourth decoding module is used to decode the data coding sequence in the coded signal based on the capture result.
23. The decoding device according to claim 22, characterized in that: The clock frequency deviation can be represented by a target oversampling number; the slave device is preset with a plurality of digital correlators; The second decoding module is also used to: obtain multiple first local code coefficients based on a local pilot sound sequence and multiple preset oversampling numbers; the multiple first local code coefficients correspond one-to-one to the multiple preset oversampling numbers, and the multiple first local code coefficients correspond one-to-one to the multiple digital correlators; the preset oversampling number represents the number of sampling points oversampled within a specified time length; the pilot sound sequence in the encoded signal is captured by the multiple digital correlators using the corresponding first local code coefficients to obtain multiple first peaks; the preset oversampling number corresponding to the maximum of the multiple first peaks is used as the target oversampling number.
24. The decoding device according to claim 23, characterized in that: The second decoding module is further used to: determine the plurality of preset oversampling numbers based on a standard clock frequency and a preset offset granularity; the offset granularity is used to influence the estimation accuracy of the clock frequency offset situation.
25. The decoding device according to claim 23, characterized in that: The third decoding module is also used to: obtain a second local code coefficient based on the target oversampling number and the local pseudo-random sequence; use the second local code coefficient to capture the pseudo-random sequence in the encoded signal through a digital correlator to obtain a second peak; use the peak moment corresponding to the second peak as the capture result; the peak moment corresponding to the second peak represents the starting header of the data encoding sequence in the encoded signal.
26. The decoding device according to claim 25, characterized in that The fourth decoding module is further used to: obtain a data coding sequence to be decoded from the coded signal according to the peak moment corresponding to the second peak; generate a first data symbol waveform coefficient and a second data symbol waveform coefficient based on the target oversampling number; The data encoding sequence is decoded based on the first data symbol waveform coefficient and the second data symbol waveform coefficient.
27. The decoding device according to claim 26, characterized in that: The data encoding period of each data symbol in the data encoding sequence is equal; The fourth decoding module is further used to: obtain a data symbol to be decoded from the data encoding sequence according to the data encoding period; perform a multiplication and accumulation operation based on the data symbol to be decoded and the first data symbol waveform coefficient to obtain a first correlation result; Perform a multiplication-accumulation operation based on the to-be-decoded data symbol and the second data symbol waveform coefficient to obtain a second correlation result; If the first correlation result is greater than the second correlation result, the data symbol to be decoded is decoded as the first data symbol; if the first correlation result is less than the second correlation result, the data symbol to be decoded is decoded as the second data symbol.
28. The decoding device according to any one of claims 22 to 27, characterized in that: The slave device is a passive device.
29. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the encoding method according to any one of claims 1 to 7 is implemented, or the decoding method according to any one of claims 8 to 14 is implemented.
30. A chip comprising a storage unit and a processing unit, wherein the storage unit stores a computer program, characterized in that: When the processing unit executes the computer program, the encoding method according to any one of claims 1 to 7 is implemented, or the decoding method according to any one of claims 8 to 14 is implemented.
31. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the encoding method according to any one of claims 1 to 7 is implemented, or the decoding method according to any one of claims 8 to 14 is implemented.
