Multi-protocol decoding circuit for RFID chips
By designing a multi-protocol decoding circuit, the measurement module measures the characteristic parameters of the encoded signal, the configuration register module provides the mapping relationship, and the threshold matching module performs the matching, thus solving the problem of incompatibility in decoding of RFID chips under different communication protocols and achieving high versatility and efficient decoding.
Patent Information
- Application Number
- CN202311369432.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-10-20
AI Technical Summary
Existing RFID chip decoding circuits are incompatible with multiple communication protocols, resulting in the need to use different decoding circuits for different types of RFID chips and application scenarios, thus lacking versatility.
A multi-protocol decoding circuit was designed. The circuit measures the characteristic parameters of the encoded signal through a measurement module, configures a register module to provide a mapping relationship between the parameter threshold range and the reference decoded data, and a threshold matching module performs matching to obtain the target decoded data. The circuit supports decoding of multiple communication protocols.
Consistent decoding under different communication protocols is achieved, which improves the versatility and decoding efficiency of the decoding circuit and reduces design complexity.
Smart Images

Figure CN117596311B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of radio frequency tag technology, and in particular to a multi-protocol decoding circuit for an RFID chip. Background Technology
[0002] like Figure 1 As shown, the communication process between the RFID chip 102 and the base station 101 uses low-frequency radio electromagnetic waves (<1MHz) as the carrier wave, transmits information by modulation, receives information by demodulation, and exchanges information by inductive coupling. The modulation and demodulation of the RFID chip are completed on the analog side, while the encoding and decoding are completed on the digital side.
[0003] Because there are many types of RFID chips and many encoding methods, different communication protocols may be required for different types of RFID chips and different application scenarios. Therefore, there is an urgent need for a universal decoding circuit that can support multiple protocols. Summary of the Invention
[0004] This application provides a highly versatile multi-protocol decoding circuit.
[0005] A multi-protocol decoding circuit for an RFID chip, the multi-protocol decoding circuit comprising:
[0006] A measurement module is used to measure characteristic parameters of the encoded signal in the working state; the characteristic parameters correspond to the target communication protocol and include at least the target duration of the transition edge in the encoded signal;
[0007] The configuration register module is used to provide the mapping relationship between parameter threshold ranges and reference decoded data under various communication protocols;
[0008] The threshold matching module, connected to both the configuration register module and the measurement module, is used for:
[0009] The feature parameters are matched with the parameter threshold range of the target communication protocol to obtain the target threshold range;
[0010] Based on the mapping relationship, reference decoding data corresponding to the target threshold range is obtained to obtain the target decoding data.
[0011] In one embodiment, the measurement module includes:
[0012] A rising edge detection unit is used to detect the rising edge of the encoded signal to obtain a rising edge signal;
[0013] A falling edge detection unit is used to detect the falling edge of the encoded signal to obtain a falling edge signal;
[0014] A timing unit, connected to the rising edge detection unit, the falling edge detection unit, and the threshold matching module, is used to time the target edge signal in the enabled state to obtain the target duration; wherein the target edge signal includes at least one of the rising edge signal and the falling edge signal; when the timing unit is in the enabled state, the measurement module is in the working state.
[0015] In one embodiment, the multi-protocol decoding circuit further includes:
[0016] An enable control module, connected to the timing unit, is used to control the timing unit to enter the enable state according to the enable control signal.
[0017] In one embodiment, the enable control module is also connected to the threshold matching module, and is used to control the timing unit to exit the enable state if the target decoded data is invalid data.
[0018] In one embodiment, the rising edge detection unit is also connected to the enable control module to detect the rising edge of the listening signal, obtain the enable control signal, and output it to the enable control module; the listening signal is the signal obtained by the RFID chip demodulating the modulation signal at 100% amplitude.
[0019] In one embodiment, the multi-protocol decoding circuit further includes:
[0020] The decryption module, connected to the threshold matching module, is used to decrypt the target decoded data if the target decoded data is valid data.
[0021] In one embodiment, the multi-protocol decoding circuit further includes:
[0022] A buffer register module, connected to the decryption module, is used to store the valid data sequentially and output it in parallel.
[0023] In one embodiment, the multi-protocol decoding circuit further includes:
[0024] An interrupt module, connected to the threshold matching module, is used to output a first interrupt signal if the target decoded data is invalid.
[0025] In one embodiment, the multi-protocol decoding circuit further includes:
[0026] A counting module, connected to the buffer register module, is used to count the valid data stored in the buffer register module;
[0027] An interrupt module, connected to the counting module, is used to output a second interrupt signal if the number of counts reaches a certain threshold.
[0028] In one embodiment, the threshold matching module is further configured to:
[0029] Determine whether the data decoding stage is being performed based on the reference decoding data corresponding to the target threshold range;
[0030] If it is determined that the data is in the data decoding stage, then the reference decoded data corresponding to the target threshold range is used as the target decoded data.
[0031] The multi-protocol decoding circuit of the aforementioned RFID chip provides a mapping relationship between parameter threshold ranges and reference decoding data under various communication protocols through a configuration register module. This allows the measurement module to measure the characteristic parameters corresponding to the target communication protocol in each communication protocol, regardless of which communication protocol the encoded signal is based on. The characteristic parameters include at least the target duration of the transition edge in the encoded signal. Then, the threshold matching module matches the characteristic parameters with the parameter threshold range of the target communication protocol to obtain the target threshold range. Finally, the reference decoding data corresponding to the target threshold range is obtained based on the mapping relationship to obtain the target decoding data. In this way, by providing mapping relationships under various communication protocols, decoding of multiple communication protocols is realized. Therefore, the decoding circuit of this application has high versatility. Attached Figure Description
[0032] Figure 1 This is a block diagram of the communication circuit between the base station and the RFID chip in this application;
[0033] Figure 2 This is a structural block diagram of a multi-protocol decoding circuit for an RFID chip according to an embodiment of this application;
[0034] Figure 3 The image shows the waveforms of the encoded signal before and after demodulation under binary pulse length modulation encoding and quaternary pulse length modulation encoding, respectively, according to an embodiment of this application.
[0035] Figure 4 This is the decoding situation when the target duration falls within the threshold range of each parameter under the quaternary pulse length modulation encoding method of an embodiment of this application;
[0036] Figure 5 This is a waveform diagram of the encoded signal before and after demodulation under pulse width modulation encoding according to an embodiment of this application;
[0037] Figure 6 This is a waveform diagram of the encoded signal before and after demodulation under ISO18000-2B modulation encoding according to an embodiment of this application;
[0038] Figure 7This describes the decoding behavior when the target duration of the SOF stage falls within the threshold range of each parameter under ISO18000-2B modulation encoding.
[0039] Figure 8 This is a waveform diagram of the encoded signal before and after demodulation under pulse synchronous modulation encoding according to an embodiment of this application;
[0040] Figure 9 This is a structural block diagram of the multi-protocol decoding circuit of an RFID chip according to another embodiment of this application;
[0041] Figure 10 This is a structural block diagram of the multi-protocol decoding circuit of an RFID chip according to another embodiment of this application;
[0042] Figure 11 This is a structural block diagram of the multi-protocol decoding circuit of an RFID chip according to another embodiment of this application;
[0043] Figure 12 This is a structural block diagram of the multi-protocol decoding circuit of an RFID chip according to another embodiment of this application. Detailed Implementation
[0044] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0045] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0046] It should be noted that all directional indicators (such as up, down, left, right, front, back, etc.) in the embodiments of this application are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicator will also change accordingly. The connection can be a direct connection or an indirect connection.
[0047] Furthermore, the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. If the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.
[0048] Figure 2 Here is a block diagram of the multi-protocol decoding circuit of an RFID chip according to one embodiment, as follows: Figure 2 As shown, the multi-protocol decoding circuit includes a measurement module 110, a configuration register module 120, and a threshold matching module 130. The measurement module 110 is used to measure the characteristic parameters of the encoded signal in the working state. The characteristic parameters correspond to the target communication protocol and include at least the target duration of the transition edge in the encoded signal. The configuration register module 120 is used to provide the mapping relationship between the parameter threshold range and the reference decoded data under multiple communication protocols. The threshold matching module 130 is connected to the configuration register module 120 and the measurement module 110 respectively, and is used to match the characteristic parameters with the parameter threshold range of the target communication protocol to obtain the target threshold range. Based on the mapping relationship, the reference decoded data corresponding to the target threshold range is obtained to obtain the target decoded data.
[0049] It is understandable that when a base station encodes data, for encoded data under different communication protocols, it can generate encoded signals with different pulse waveforms based on the mapping relationship between the encoded data and parameter threshold ranges. This ensures that the characteristic parameters of the encoded signal fall within a certain parameter threshold range corresponding to the encoded data. The encoded signal is a baseband signal carrying encoded information. The encoded signal is then modulated to obtain a modulated signal, which is further transmitted to the RFID chip. After receiving the encoded signal from the base station, the RFID chip first demodulates the modulated signal to obtain the corresponding encoded signal before decoding. During demodulation, the measurement module 110 measures the encoded signal by measuring the portion of the modulated signal exceeding 80% amplitude (e.g.,...). Figure 3The signal is obtained by demodulating the modulated signal during time period t0. Different communication protocols use different encoding methods for the encoded signal, and the characteristic parameters are determined by the encoding method of the encoded signal, that is, by the type of communication protocol. Therefore, the characteristic parameters measured by the measurement module correspond to the target communication protocol, which can be one of multiple communication protocols. The characteristic parameters may include the target duration, and the measured target duration also corresponds to the target communication protocol and carries the decoding information of the encoded signal. The target duration is related to the transition edges of the encoded signal. The transition edges may include at least one of the rising edge and the falling edge. Depending on the communication protocol, the target duration may be the duration between the same transition edges in the encoded signal, the duration between different transition edges, or the duration during which the level does not change after a transition edge is detected.
[0050] For example, for different communication protocols, encoding methods may include a series of protocols such as Binary Pulse Length Modulation (BPLM), Quadratic Pulse Length Modulation (QPLM), Pulse Width Modulation (PWM), ISO18000-2B, and Pulse Synchronization Modulation (PSM). References are provided for the encoded signals before and after demodulation under various communication protocols. Figures 3 to 8 As shown, the signal Coil is the signal waveform across the inductor of the RFID chip, which is the waveform of the encoded signal before demodulation received by the RFID chip, and the signal LFD_DATA is the encoded signal after demodulation.
[0051] Different communication protocols may have different characteristic parameters. For communication protocols with encoding methods such as binary pulse length modulation (BPLM), quaternary pulse length modulation (QPLM), pulse width modulation (PWM), and ISO18000-2B, the threshold matching module can make a matching judgment based solely on the target duration in the characteristic parameters. However, for communication protocols with encoding methods such as pulse synchronization modulation (PSM), the threshold matching module also needs to combine other parameters in the characteristic parameters other than the target duration for matching judgment.
[0052] Each communication protocol may include multiple parameter threshold ranges and multiple reference decoded data. Each parameter threshold range corresponds one-to-one with each reference decoded data. Therefore, the mapping relationship between parameter threshold ranges and reference decoded data may include multiple mapping pairs formed by parameter threshold ranges and reference decoded data. Taking the currently used communication protocol as the target communication protocol, the threshold matching module matches the feature parameters with the parameter threshold ranges of the target communication protocol, and takes the successfully matched parameter threshold range as the target threshold range. Then, based on this mapping pair, the reference decoded data corresponding to the target threshold range is obtained to obtain the target decoded data. The reference decoded data corresponding to the target threshold range can be used directly as the target decoded data, or it can be used as the target decoded data when specific conditions are met.
[0053] Specifically, for communication protocols using Binary Pulse Length Modulation (BPLM) encoding, refer to... Figure 3 As shown, the target duration of the encoded signal can be the duration between two adjacent falling edges, denoted as T. GAP1 Target duration T GAP1 Matching the parameter threshold range, i.e., the target duration T GAP1 Falling within the parameter threshold range; target duration T GAP1 When matching the threshold range of each parameter, the corresponding reference decoding data can be found in Table 1; where T DATA0,min The minimum threshold value for the duration between two falling edges when the preset decoded data is 0; T DATA1,min T is the minimum threshold value for the duration between two falling edges when the preset decoded data is 1; STOP,min This is the minimum threshold value for the duration between two falling edges when the preset decoded data is STOP.
[0054] Table 1
[0055] Parameter threshold range Reference Decoding Data <![CDATA[T GAP1 <T DATA0,min ]]> Error <![CDATA[T DATA0,min ≤T GAP1 <T DATA1,min ]]> 0 <![CDATA[T DATA1,min ≤T GAP1 <T STOP,min ]]> 1 <![CDATA[T STOP,min ≤T GAP1 ]]> STOP
[0056] For communication protocols using quaternary pulse length modulation (BPLM) encoding, please refer to [reference needed]. Figure 3 As shown, it is similar to binary pulse length modulation (BPLM), except that the duration between two adjacent falling edges represents two bits of data, and the target duration T GAP1 When matching the threshold range of each parameter, the corresponding reference decoding data can be found in Table 2, where T DATA00,min The minimum threshold value for the duration between two falling edges when the preset decoded data is 00; T DATA01,min T is the minimum critical value for the duration between two falling edges when the preset decoded data is 0 or 1; DATA10,min The minimum threshold value for the duration between two falling edges when the preset decoded data is 10; T DATA11,min The minimum threshold value for the duration between two falling edges when the preset decoded data is 11; T STOP,min The preset decoded data is the minimum critical value of the duration between two falling edges when the STOP condition is met. T GAP1 For reference data when the data falls within the threshold range of each parameter, please refer to the following: Figure 4 As shown.
[0057] Table 2
[0058]
[0059]
[0060] For communication protocols using pulse width modulation (PWM) encoding, refer to... Figure 5 As shown, the target duration of the encoded signal can be the duration between the falling edge and the adjacent rising edge, i.e., the duration of the low level, denoted as T. GAP2T GAP2 Matching the parameter threshold range, i.e., T GAP2 Falling within the parameter threshold range; T GAP2 When matching the threshold range of each parameter, the corresponding reference decoding data can be found in Table 3; where T DATA0,min The minimum threshold for the duration when the preset decoded data is 0; T DATA1,min The minimum threshold for the duration of the preset decoded data is 1; T STOP,min This is the minimum threshold for the duration when the decoded data is set to "Error". In this encoding method, the decoding circuit cannot decode "STOP" data and cannot automatically terminate the decoding process; therefore, the decoding circuit can be externally controlled to end the decoding.
[0061] Table 3
[0062] Parameter threshold range Reference Decoding Data <![CDATA[T GAP2 <T DATA0,min ]]> Error <![CDATA[T DATA0,min ≤T GAP2 <T DATA1,min ]]> 0 <![CDATA[T DATA1,min ≤T GAP2 <T STOP,min ]]> 1 <![CDATA[T STOP,min ≤T GAP2 ]]> Error
[0063] For cases where the communication protocol is ISO18000-2B modulation, refer to Figure 6 As shown. The target duration of the encoded signal can be the duration between two falling edges, denoted as T. GAP3 T GAP3 Matching the parameter threshold range, i.e., T GAP3 Falling within the parameter threshold range; T GAP3 When matching the threshold range of each parameter, the corresponding reference decoding data can be found in Table 4; where T DATA0,min The minimum threshold value when the preset decoded data is 0; T DATA1,min The minimum threshold value when the preset decoded data is 1; T STOP,min This is the minimum threshold value for the preset decoded data to be STOP. The downlink in the ISO18000-2B protocol includes three phases: SOF (Start of Frame), CMD, and STOP. The SOF phase includes three data items: VIOLATION, data 0, and data 1, respectively. (See reference...) Figure 7 As shown, the target decoding data obtained by the threshold matching module 130 is the data obtained from the CMD stage decoding.
[0064] Table 4
[0065] Parameter threshold range Reference Decoding Data <![CDATA[T GAP3 <T DATA0,min ]]> Error <![CDATA[T DATA0,min ≤T GAP3 <T DATA1,min ]]> 0 <![CDATA[T DATA1,min ≤T GAP3 <T VIO,min ]]> 1 <![CDATA[T VIO,min ≤T GAP3 <T STOP,min ]]> VIOLATION <![CDATA[After the SOF phase, there is T STOP,min ≤T GAP3 > STOP
[0066] For communication protocols using pulse synchronization modulation as the encoding method, refer to Figure 8As shown. Pulse Synchronous Modulation (PSM) encoding is a type of encoding that requires synchronization between the base station and the RFID tag. During the listening phase, the RFID tag needs to repeatedly transmit a signal pattern according to a certain rule. After detecting the signal pattern, the base station sends a command to modulate it together at a certain modulation position of the signal pattern (e.g., time t1 in the figure), so that the Coil signal received by the RFID tag will have a waveform with 100% amplitude modulation. At this time, the listening signal LFD_GAP demodulated by the analog demodulation front end contains a low-level pulse, where the listening signal LFD_GAP is the signal demodulated with 100% amplitude. Then the RFID tag automatically shuts down the transmission process and enters the reception process. Afterwards, the base station sends a 1-bit command at the agreed time interval (32 carrier cycles T0 of the signal Coil in the figure). When sending data 0, the base station will perform 80% amplitude modulation. At this time, the encoded signal LFD_DATA can be demodulated to produce a low-level pulse. When sending a bit 1 command, the base station does not modulate, and the encoded signal LFD_DATA remains at a high level output. The decoding circuit performs decoding after entering the reception process, that is, at time t2.
[0067] The feature parameters may also include the rising edge detection status of the encoded signal, which includes two cases: the rising edge of the encoded signal is detected and the rising edge of the encoded signal is not detected. Under this encoding method, in addition to the target duration, the threshold matching module also needs to combine the rising edge detection status of the encoded signal with the parameter threshold range for matching and determination. The target duration of the encoded signal can be the duration from when the rising edge is detected to when the encoded signal remains high until the current moment, and the duration from when data 1 is received to when the encoded signal remains high until the current moment, denoted as T. GAP4 The matching of a feature parameter with a parameter threshold range can be defined as one of the feature parameters matching the parameter threshold range, i.e., the feature parameter falling within the parameter threshold range. When a feature parameter matches the threshold range of each parameter, the corresponding reference decoding data can be found in Table 5. Specifically, when a rising edge of the encoded signal LFD_DATA is detected in the current cycle, the decoded data for the current decoding cycle is data 0. After the rising edge of LFD_DATA is detected, the encoded signal of the timing unit 113 remains high until the current time for a duration T. GAP4 When the time exceeds 1.5Ts, the decoded data for the current decoding cycle is 1; after receiving the decoded data 1, the encoding signal of the timing unit 113 keeps high until the current time T. GAP4 When the current decoding period exceeds 1Ts, the decoded data for that period is 1. Here, Ts is the decoding period, which can be equal to 32T0, and T0 is the carrier period of the signal Coil. In this encoding method, the decoding circuit cannot decode the STOP data and cannot automatically terminate the decoding process; therefore, the decoding circuit can be externally controlled to end the decoding.
[0068] Table 5
[0069]
[0070]
[0071] Thus, the multi-protocol decoding circuit of the RFID chip in this application provides a mapping relationship between parameter threshold ranges and reference decoding data under various communication protocols through the configuration register module 120. This allows the measurement module 110 to measure the characteristic parameters corresponding to the target communication protocol in each communication protocol, regardless of which communication protocol the encoded signal is based on. The characteristic parameters include at least the target duration of the transition edge in the encoded signal. Then, the threshold matching module 130 matches the characteristic parameters with the parameter threshold range of the target communication protocol to obtain the target threshold range. Finally, the reference decoding data corresponding to the target threshold range is obtained based on the mapping relationship to obtain the target decoding data. In this way, by providing mapping relationships under various communication protocols, decoding of multiple communication protocols is realized. Therefore, the decoding circuit of this application has high versatility and can support the decoding of multiple communication protocols. In addition, since the decoding is based on the comparison of characteristic parameters and mapping relationships, the decoding method is simple and the design requirements for the decoding circuit are low.
[0072] In one embodiment, such as Figure 9 As shown, the measurement module 110 includes a rising edge detection unit 111 and a falling edge detection unit 112. The rising edge detection unit 111 is used to detect the rising edge of the encoded signal to obtain a rising edge signal; the falling edge detection unit 112 is used to detect the falling edge of the encoded signal to obtain a falling edge signal; the timing unit 113 is connected to the rising edge detection unit 111, the falling edge detection unit 112 and the threshold matching module 130 respectively, and is used to time the target edge signal in the enabled state to obtain the target duration; wherein the target edge signal includes at least one of the rising edge signal and the falling edge signal; when the timing unit 113 is in the enabled state, the measurement module 110 is in the working state.
[0073] It is understood that the rising edge detection unit 111 and the falling edge detection unit 112 detect the rising edge and falling edge of the encoded signal, respectively, to obtain rising edge signal and falling edge signal. The timing unit 113 times at least one of the rising edge signal and falling edge signal according to the target duration required. For timing the rising edge signal, the timing unit 113 can time the trigger pulse in the rising edge signal, which indicates that the rising edge detection unit 111 has detected the rising edge of the encoded signal at this moment. Similarly, for timing the falling edge signal, the timing unit 113 can time the trigger pulse in the falling edge signal, which indicates that the falling edge detection unit 112 has detected the falling edge of the encoded signal at this moment.
[0074] For example, for communication protocols such as Binary Pulse Length Modulation (BPLM) and Quadratic Pulse Length Modulation (QPLM), where the target duration is the time between two falling edges, the timing unit 113 can time based solely on the falling edge signal, using the time between two adjacent trigger pulses of the falling edge signal as the target duration T. GAP1 The trigger pulse for the falling edge signal is generated by the falling edge detection unit 112 when it detects a falling edge. For pulse width modulation, the target duration can be the duration between the falling edge and the rising edge, i.e., the duration of the low level. Therefore, the timing unit 113 needs to time based on both the rising edge signal and the falling edge signal. If the trigger pulse for the falling edge signal is received at the earlier time and the trigger pulse for the rising edge signal is received at the later time, then the duration between these two trigger pulses is taken as the target duration T. GAP2 The trigger pulse for the rising edge signal is generated by the rising edge detection unit 111 when a rising edge is detected. For ISO18000-2B, the target duration is the duration between two falling edges. Therefore, the timing unit 113 can time based solely on the falling edge signal, using the duration between two adjacent trigger pulses of the falling edge signal as the target duration T. GAP3 For pulse synchronization modulation, the characteristic parameters may include the rising edge signal and the target duration. The threshold matching module can also be connected to the rising edge detection unit to receive the rising edge signal in the characteristic parameters. The rising edge detection status can be determined based on the rising edge signal. If a trigger pulse is present in the rising edge signal, it indicates that a rising edge has been detected. The target duration is the duration from when the coded signal remains high after the rising edge is detected until the current moment. In this case, the timing unit 113 can simultaneously time based on the rising edge signal and the falling edge signal, so that the duration between receiving the trigger pulse of the rising edge and not receiving the trigger pulse of the falling edge is taken as the target duration T. GAP4 When the target duration is the duration from when the encoded signal remains high after receiving data 1 until the current moment, the timing unit 113 can start timing based on the falling edge signal. If the target decoded data in the previous moment was data 1, then the moment when data 1 was received is taken as the starting moment, and the duration between this moment and the trigger pulse that has not received a falling edge is taken as the target duration T. GAP4 .
[0075] The timing unit 113 only times the target edge signal when it is in the enabled state. When there is no non-data decoding phase during the communication process, the timing unit 113 can be directly set to the enabled state. For example, under communication protocols such as Binary Pulse Length Modulation (BPLM), Quadrature Pulse Length Modulation (QPLM), and ISO18000-2B, the timing unit 113 can directly enter the enabled state. For communication protocols with a non-data decoding phase during the communication process, the timing unit 113 needs to be set to the enabled state only during the data decoding phase. For example, under the Pulse Synchronous Modulation (PSM) protocol, the timing unit 113 needs to enter the enabled state at time t2.
[0076] By setting up rising edge detection unit 111 and falling edge detection unit 112 to detect the rising edge and falling edge of the encoded signal respectively, rising edge signal and falling edge signal are obtained. This allows timing unit 113 to directly select at least one of the rising edge signal and falling edge signal for timing as needed, without having to determine the rising edge and falling edge in the encoded signal first and then timing as needed, thus reducing the complexity of target duration measurement.
[0077] In one embodiment, such as Figure 10 As shown, the multi-protocol decoding circuit also includes an enable control module 140, which is connected to the timing unit 113 and is used to control the timing unit 113 to enter the enable state according to the enable control signal.
[0078] It is understood that the enabling state of the timing unit 113 can be controlled by setting the enabling control module 140. The enabling control signal can be manually input or generated by the decoding circuit when specific conditions are met. After receiving the enabling control signal, the enabling control module 140 can output a drive signal to the timing unit 113 to control the timing unit 113 to enter the enabling state. This enables timing control of the timing unit 113, avoids misinterpretation of communication protocols in non-decoding phases, and improves the effectiveness of the decoding circuit.
[0079] In one embodiment, the enable control module 140 is also connected to the threshold matching module 130, and is used to control the timing unit 113 to exit the enable state if the target decoded data is invalid data.
[0080] It is understandable that the target decoded data may be valid data such as data 0 or data 1, which can be directly output to the subsequent processing system; the target decoded data may also be invalid data such as Error, VIOLATION, STOP, etc., in which case decoding needs to be stopped and checked. Therefore, the enable control module 140 can be used to implement decoding interruption when the data is invalid.
[0081] In one embodiment, such as Figure 10 As shown, the rising edge detection unit 111 is also connected to the enable control module 140 to detect the rising edge of the listening signal, obtain the enable control signal, and output it to the enable control module 140; the listening signal is the signal obtained by the RFID chip demodulating the modulation signal at 100% amplitude.
[0082] It is understandable that, for communication protocols using pulse synchronization modulation, since there may be a listening phase, decoding requires decoding the encoded signal after the listening phase. Therefore, the rising edge detection unit 111 can be used to detect the rising edge of the listening signal to obtain the enable control signal Rcv_en. Figure 8 As shown, the enable control signal Rcv_en will start to change at the end of the listening phase, i.e., at time t2, thereby controlling the timing unit 113 to enter the enable state.
[0083] Thus, by detecting whether the target communication protocol has entered the data decoding stage, an enable control signal is automatically generated after it is determined that the data decoding stage has been entered, so as to control the timing unit 113 to perform timing. No manual determination and control are required, resulting in a high degree of automation.
[0084] In one embodiment, such as Figure 11 As shown, the multi-protocol decoding circuit also includes a decryption module 150, which is connected to the threshold matching module 130 and is used to decrypt the target decoded data if the target decoded data is valid data.
[0085] It is understandable that when a base station encodes data, it may encrypt the valid data first to ensure information security before encoding. Therefore, if the target decoded data is valid after the decoding circuit obtains it, it may not be directly usable by the subsequent processing system. Thus, a decryption module 150 can be set to decrypt the target decoded data to directly obtain the decrypted plaintext data for subsequent use.
[0086] In one embodiment, such as Figure 11 As shown, the multi-protocol decoding circuit also includes a buffer register module 160, which is connected to the decryption module 150 and is used to store valid data sequentially and output it in parallel.
[0087] It is understood that the buffer register module 160 can output in parallel after the stored valid data reaches a certain amount, where the amount can be set manually, such as to 8 bits, 16 bits, etc.; the buffer register module 160 can realize the parallel output of valid data, making subsequent data processing easier and more efficient.
[0088] In one embodiment, the multi-protocol decoding circuit further includes an interrupt module 170, such as... Figure 12As shown, the interrupt module 170 is connected to the threshold matching module 130 and is used to output a first interrupt signal if the target decoded data is invalid data.
[0089] It is understandable that if the target decoded data is invalid data such as Error, VIOLATION, STOP, etc., the interrupt module 170 will output the first interrupt signal to provide a prompt.
[0090] In one embodiment, such as Figure 12 As shown, the multi-protocol decoding circuit also includes a counting module 180 and an interrupt module 170. The counting module 180 is connected to the buffer register module 160 and is used to count the valid data stored in the buffer register module 160. The interrupt module 170 is connected to the counting module and is used to output a second interrupt signal if the count reaches a number threshold.
[0091] It is understood that the quantity threshold can be the maximum amount of data that the buffer register module 160 can store. If the number counted by the counting module 180 reaches the quantity threshold, it indicates that the buffer register module 160 has reached its storage limit. At this time, the interrupt module 170 can output a second interrupt signal to the external host to provide a prompt.
[0092] In one embodiment, the threshold matching module 130 is further configured to: determine whether it is in the data decoding stage based on the reference decoding data corresponding to the target threshold range; if it is determined to be in the data decoding stage, then use the reference decoding data corresponding to the target threshold range as the target decoding data.
[0093] It is understandable that, for communication protocols using ISO18000-2B modulation, since the CMD stage follows the SOF stage, only the reference decoded data obtained after the SOF stage can be used as the target decoded data. Because the SOF stage includes three data sets—VIOLATION, data 0, and data 1—the threshold matching module 130 can determine whether the SOF stage has been completed by checking if these three reference decoded data sets have been obtained sequentially. If the SOF stage has been completed, it indicates that the data decoding stage is currently underway, and the reference decoded data corresponding to the target threshold range obtained thereafter can be directly used as the target decoded data. This use of the threshold matching module 130 to determine the data decoding stage improves the accuracy of data decoding.
[0094] This invention also provides a multi-protocol decoding circuit for an RFID chip, including a measurement module 110, a configuration register module 120, a threshold matching module 130, an enable control module 140, a decryption module 150, a buffer register module 160, an interrupt module 170, and a counting module 180. The measurement module 110 includes a rising edge detection unit 111, a falling edge detection unit 112, and a timing unit 113. The connection relationships and working principles of each module can be found in the above embodiments. Figure 12 As shown, further details will not be elaborated here.
[0095] The above description is only a preferred embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural changes made based on the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A multi-protocol decoding circuit for an RFID chip, characterized by, The multi-protocol decoding circuit includes: A measurement module is used to measure characteristic parameters of the encoded signal in the working state; the characteristic parameters correspond to the target communication protocol and include at least the target duration of the transition edge in the encoded signal; The configuration register module is used to provide the mapping relationship between parameter threshold ranges and reference decoded data under various communication protocols; The threshold matching module, connected to both the configuration register module and the measurement module, is used for: The feature parameters are matched with the parameter threshold range of the target communication protocol to obtain the target threshold range; Based on the mapping relationship, reference decoding data corresponding to the target threshold range is obtained to obtain the target decoding data; The measurement module includes: A rising edge detection unit is used to detect the rising edge of the encoded signal to obtain a rising edge signal; A falling edge detection unit is used to detect the falling edge of the encoded signal to obtain a falling edge signal; A timing unit, connected to the rising edge detection unit, the falling edge detection unit, and the threshold matching module, is used to time the target edge signal in the enabled state to obtain the target duration; wherein the target edge signal includes at least one of the rising edge signal and the falling edge signal; when the timing unit is in the enabled state, the measurement module is in the working state; wherein the target communication protocol includes pulse synchronization modulation, and the target duration also includes the duration for which the encoded signal remains high after the rising edge is detected until the current time, and the duration for which the encoded signal remains high after receiving data 1 until the current time; The multi-protocol decoding circuit also includes: An enable control module, connected to the timing unit, is used to control the timing unit to enter the enable state according to the enable control signal; The rising edge detection unit is also connected to the enable control module, and is used to detect the rising edge of the listening signal, obtain the enable control signal, and output it to the enable control module; the listening signal is the signal obtained by the RFID chip demodulating the modulation signal at 100% amplitude.
2. The multi-protocol decoding circuit of an RFID chip according to claim 1, characterized in that, The enable control module is also connected to the threshold matching module, and is used to control the timing unit to exit the enable state if the target decoded data is invalid data.
3. The multi-protocol decoding circuit for the RFID chip according to claim 1, characterized in that, The multi-protocol decoding circuit also includes: The decryption module, connected to the threshold matching module, is used to decrypt the target decoded data if the target decoded data is valid data.
4. The multi-protocol decoding circuit for the RFID chip according to claim 3, characterized in that, The multi-protocol decoding circuit also includes: A buffer register module, connected to the decryption module, is used to store the valid data sequentially and output it in parallel.
5. The multi-protocol decoding circuit for the RFID chip according to claim 1, characterized in that, The multi-protocol decoding circuit also includes: An interrupt module, connected to the threshold matching module, is used to output a first interrupt signal if the target decoded data is invalid.
6. The multi-protocol decoding circuit for the RFID chip according to claim 4, characterized in that, The multi-protocol decoding circuit also includes: A counting module, connected to the buffer register module, is used to count the valid data stored in the buffer register module; An interrupt module, connected to the counting module, is used to output a second interrupt signal if the number of counts reaches a certain threshold.
7. The multi-protocol decoding circuit for the RFID chip according to claim 1, characterized in that, The threshold matching module is also used for: Determine whether the data decoding stage is being performed based on the reference decoding data corresponding to the target threshold range; If it is determined that the data is in the data decoding stage, then the reference decoded data corresponding to the target threshold range is used as the target decoded data.
Citation Information
Patent Citations
Multi-protocol ultrahigh frequency reader-writer
CN101303736A
Unibus communication system and method
CN114416622A
