A multi-protocol IC card read-write terminal adaptive switching method and system

By generating a damp baseline identifier for feature separation and homogeneous comparison, and using front-end and back-end acquisition points to determine the signal direction, the problem of misjudging water droplet reflection signals by the reading and writing terminal in a humid environment is solved. This enables adaptive switching of the reading and writing terminal, ensuring the integrity of card data reading and operational efficiency.

CN122904920BActive Publication Date: 2026-11-24SHENZHEN DECARD SMART CARD TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611373152.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-07
Publication Date
2026-11-24
Estimated Expiration
2046-09-07

AI Technical Summary

Technical Problem

Existing card reader terminals are prone to misinterpreting water droplet reflections as multi-card conflicts in highly humid environments, resulting in the inability to read card data normally, increasing maintenance costs and affecting customer experience.

Method used

By acquiring the waveform of the idle received signal during the idle period, a damp baseline identifier is generated. Feature separation and source comparison are performed to determine the signal source. The direction of signal arrival is determined by the front-end and back-end acquisition points, and a direction judgment result is generated. The back-end acquisition point is controlled to turn off the receiving function and resend the read signal to avoid misjudgment.

Benefits of technology

Accurately distinguish between external card response signals and internal water droplet reflection signals to avoid misinterpreting multiple card conflicts, ensure complete card data reading, reduce maintenance costs, and improve the customer card payment experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122904920B_ABST
    Figure CN122904920B_ABST
Patent Text Reader

Abstract

This application discloses an adaptive switching method and system for a multi-protocol IC card reader / writer terminal, relating to the field of smart card reader / writer technology. The method includes: generating a moisture baseline identifier by acquiring the waveform of the idle received signal during a quiet period; retrieving the moisture baseline identifier for feature separation and homogeneity comparison when a customer swipes their card, accurately distinguishing between external card response signals and internal water droplet reflection signals. The reader / writer terminal uses front-end and back-end acquisition points to determine the signal arrival direction data and generate a direction judgment result, avoiding misinterpreting a single-card reading operation as a multi-card conflict. In response to the direction judgment result, the reader / writer terminal controls the back-end acquisition point to disable its receiving function, shielding the chaotic reflection signals from internal water droplets, and resends the reading signal to the external panel, ensuring complete data reading of the citizen card. The reader / writer terminal transforms a false conflict caused by moisture into a normal process that allows continued reading, preventing equipment failure in a humid environment, reducing maintenance costs for operators, and improving the customer's card payment experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart card reading and writing technology, and in particular to a method and system for adaptive switching of multi-protocol IC card reading and writing terminals. Background Technology

[0002] Existing card readers typically send signals to the sensing area and determine the presence of multiple cards based on the received response signals. The reader assumes that all received response signals originate from external cards. When the reader receives multiple response signals simultaneously, it directly determines it as a card conflict, interrupts the reading process, and requests the removal of the extra cards.

[0003] In convenience stores during the rainy season in southern China, card readers are exposed to extremely humid environments for extended periods. Condensation forms on the surface of the internal induction coils—small water droplets that form on surfaces due to temperature differences. The card reader doesn't collect this moisture-covered coil as data. When a customer places their citizen card on the reader's sensor panel, the reader sends a read signal. The water droplets on the internal coils reflect this signal back, causing signal overlap between adjacent coils. Thus, the reader receives not only the normal response signal from the citizen card but also the jumbled reflected signal from the water droplets.

[0004] Existing card readers lack the ability to distinguish between external card response signals and internal water droplet reflection signals. The reader mistakenly interprets a single card read operation as a conflict caused by multiple stacked cards, directly interrupting the reading process. This misjudgment prevents customers from completing card payment, wasting their time. The backend audit logs also record numerous invalid conflict events, increasing maintenance costs. Furthermore, physical defects in the reader itself can cause false conflicts, which current conventional handling methods cannot identify, leading to complete device failure in humid environments. Summary of the Invention

[0005] In view of the aforementioned problems, this application is hereby filed.

[0006] Therefore, this application provides a method and system for adaptive switching of multi-protocol IC card reader / writer terminals, which can solve the problem that when the internal coil of the reader / writer terminal is damp, the water droplet reflection signal is misjudged as a multi-card conflict and the reading is interrupted, resulting in the inability to read card data normally.

[0007] To solve the above-mentioned technical problems, this application provides the following technical solution: In a first aspect, this application provides an adaptive switching method for a multi-protocol IC card reader / writer terminal, comprising: acquiring the idle received signal waveform of the reader / writer terminal during idle and cardless periods, generating a damp baseline identifier and writing it into a record table; In response to detecting an external card entering the sensing area, the most recent moisture baseline identifier is retrieved based on the current in-situ status data; Based on the current received signal waveform and the retrieved damp baseline identifier, feature separation and homology comparison are performed to generate homology comparison results; Based on the damp location data in the damp baseline identifier and the same source comparison result, the signal arrival direction data is determined by the front-end acquisition point and the back-end acquisition point of the receiving loop. The signal arrival direction data is compared with the area boundary in the preset spatial mapping relationship to generate a direction judgment result. In response to the direction determination result, a receive window blocking instruction and a read retransmission instruction are generated. The back-end acquisition point is controlled to turn off the receiving function and the signal transceiver unit is controlled to resend the read signal to the external panel. The turn-off feedback signal of the back-end acquisition point and the retransmission feedback signal of the signal transceiver unit are verified. The blocking completion identifier and the retransmission read result are obtained. Based on the retransmission read result, the read and write parameters of the read and write terminal are adaptively switched and the read operation is completed.

[0008] Preferably, the step of performing feature separation and homology comparison based on the currently received signal waveform and the retrieved damp baseline identifier to generate homology comparison results includes: The waveform of the currently received signal is compared with the unloaded reflection waveform feature data in the retrieved moisture baseline identifier. If a chaotic oscillation that matches the unloaded reflection waveform feature appears in a certain period of the current received signal waveform, and the delay time of the chaotic oscillation meets the preset delay condition, the period is marked as the internal reflection clutter period. Mark the clear pulse segment in the current received signal waveform that matches the normal external card response frequency as the valid external response period; The chaotic oscillation waveform during the internal reflection clutter period is compared with the clutter frequency band distribution in the unloaded reflection waveform feature data. If the frequency band distribution of the chaotic oscillation waveform corresponds to the clutter frequency band distribution in the unloaded reflection waveform feature data, an internal homogeneous interference identifier is generated as the homogeneous comparison result. If the frequency band distribution of the disordered oscillation waveform does not correspond to the clutter frequency band distribution in the unloaded reflection waveform feature data, an external multi-card collision identifier is generated as the same-source comparison result.

[0009] Preferably, the step of determining the signal arrival direction data based on the damp location data in the damp baseline identifier and the source comparison result, using the front-end and back-end acquisition points of the receiving loop, includes: When the same source comparison result is the internal same source interference identifier, the current interference source is determined to be located on the surface of the induction coil inside the reading and writing terminal based on the moisture location data in the moisture baseline identifier. Retrieve the spatial mapping relationship between the internal coil and the external panel that was pre-written into the read / write terminal memory. The spatial mapping relationship includes the boundary of the internal coil area, the boundary of the external panel area, and the signal receiving channel corresponding to each boundary. The received signal is acquired using the front-end acquisition point and the back-end acquisition point of the receiving loop. Based on the order and time difference of the signals received by the front-end acquisition point and the back-end acquisition point, the direction of arrival of the signal is determined.

[0010] Preferably, the step of comparing the signal arrival direction data with the region boundary in a preset spatial mapping relationship to generate a direction determination result includes: The signal arrival direction data is compared with the boundaries of the inner coil region and the outer panel region in the spatial mapping relationship; If the signal arrival direction data points to the boundary of the internal coil region, and the time difference data of the signals received by the front-end acquisition point and the back-end acquisition point satisfy the internal reflection condition, an internal direction identifier is generated as the direction judgment result. If the signal arrival direction data points to the boundary of the external panel area, an external conflict identifier is generated as the direction determination result; If the signal arrival direction data is within the critical range of the boundary between the inner coil area and the outer panel area, and the time difference data is within a preset critical interval, a direction uncertainty identifier is generated as the direction judgment result.

[0011] Preferably, the step of generating a receive window masking command and a read retransmission command in response to the direction determination result, controlling the back-end acquisition point to disable the receiving function and controlling the signal transceiver unit to resend the read signal to the external panel includes: In response to the direction determination result being either the inward-pointing direction identifier or the direction uncertainty identifier, the receiving window blocking instruction and the read retransmission instruction are generated. The receiving window blocking command is sent to the receiving loop to control the back-end acquisition point to turn off the receiving function, so that the receiving loop only allows the front-end acquisition point to receive signals from the external panel; The read retransmission command is sent to the signal transceiver unit, which controls the signal transceiver unit to retransmit the read signal to the external panel within a preset time period.

[0012] Preferably, the verification of the shutdown feedback signal of the backend acquisition point and the retransmission feedback signal of the signal transceiver unit, and the acquisition of the shielding completion identifier and retransmission reading result, includes: After sending the receive window blocking instruction, the closing feedback signal returned by the receive loop is obtained. If the closing feedback signal is not obtained within a preset waiting time, a blocking execution abnormality flag is generated and the receive window blocking instruction is resent. If the shutdown feedback signal is still not received after resending, a manual maintenance request is sent to the backend server. After receiving the shutdown feedback signal, the shielding completion identifier is generated; After sending the read retransmission command, the retransmission feedback signal returned by the signal transceiver unit is obtained. If the retransmission feedback signal is not obtained within a preset waiting time, the read retransmission command is retransmitted. If the retransmission feedback signal is still not received after retransmission, it is determined that the external card is not responding and a no-response flag is generated; After obtaining the retransmission feedback signal, the signal reread by the signal transceiver unit is taken as the retransmission reading result.

[0013] Preferably, the step of adaptively switching and performing read / write parameters of the read / write terminal based on the retransmission read result includes: Based on the masking completion identifier, a read verification command is generated; According to the read verification instruction, the retransmission response signal corresponding to the retransmission read result is obtained from the front-end acquisition point; If the retransmission response signal contains only pulses of normal frequency and the intensity meets the preset range of a single card, a read success identifier is generated; If the retransmitted response signal still contains chaotic oscillations or abnormal intensity, a read doubt flag is generated. If there is no response after resending the read signal twice consecutively, a no-response flag is generated. The waveform of the retransmitted response signal is compared with the waveform of the external valid response period. If the two consecutive comparisons match and the data verification passes, an interference overcoming indicator is generated. If any comparison shows waveform characteristics of the internal reflection clutter period, an interference not overcome flag is generated; If the results of two comparisons contradict each other, a question mark is generated.

[0014] Preferably, the step of adaptively switching and performing read / write parameters of the read / write terminal based on the retransmission read result further includes: When the interference overcoming flag or the read success flag is generated, the shielding state of the receiving loop is released, the receiving function of the back-end acquisition point is restored, and the adaptive switching of the read and write parameters and the read operation of the reading and writing terminal are completed according to the protocol rules corresponding to the external effective response period. If the interference is not overcome, the doubtful flag, or the no-response flag is generated, an internal shielding lock flag is generated to enable the internal shielding lock state of the read / write terminal, keeping the backend acquisition point closed, and sending a manual clearing request to the backend server.

[0015] Preferably, enabling the internal shielding lock state of the read / write terminal, keeping the backend acquisition point closed, and sending a manual clearing request to the backend server includes: After enabling the internal shielding lock state, each card swipe attempt by the external card is recorded as an operation attempt event and written to the associated log; When the number of operation attempts exceeds a preset number, a device moisture warning is sent to the display screen, and a device moisture affecting transactions is sent to the backend server. Based on the damp location data and the idle reflection waveform characteristic data in the associated log, a manual removal request carrying a summary of the damp location and a summary of the interference type is sent to the background server; If no clearing confirmation signal is received within the preset waiting time, the manual clearing request is sent to the backend server again with increased prompt intensity; Upon receiving the clear confirmation signal, the internal shielding lock state is released, the receiving function of the backend acquisition point is restored, and the release time is recorded in the associated log.

[0016] Secondly, this application also provides a multi-protocol IC card reader / writer terminal adaptive switching system, including: a baseline acquisition module, a signal separation module, a direction judgment module, a shielding control module, and a status locking module; The baseline acquisition module is used to acquire the idle received signal waveform of the reading and writing terminal during the idle and cardless period, generate a damp baseline identifier and write it into the record table. In response to the detection of an external card entering the sensing area, the module retrieves the most recent damp baseline identifier based on the current in-situ status data. The signal separation module is used to perform feature separation and homology comparison based on the currently received signal waveform and the retrieved damp baseline identifier, and generate homology comparison results; The direction determination module is used to determine the signal arrival direction data based on the damp location data in the damp baseline identifier and the same source comparison result, using the front-end acquisition point and the back-end acquisition point of the receiving loop, and compare the signal arrival direction data with the area boundary in the preset spatial mapping relationship to generate a direction determination result. The shielding control module is used to generate a receiving window shielding command and a read retransmission command in response to the direction judgment result, control the back-end acquisition point to turn off the receiving function and control the signal transceiver unit to resend the read signal to the external panel, verify the turn-off feedback signal of the back-end acquisition point and the retransmission feedback signal of the signal transceiver unit, obtain the shielding completion mark and the retransmission read result, and complete the adaptive switching of the read and write parameters and the read operation of the reading and writing terminal based on the retransmission read result. The state locking module is used to generate an internal shielding lock flag when an interference failure flag, a doubt flag, or a no-response flag is generated. This enables the internal shielding lock state to keep the backend acquisition point closed, records operation attempt events, and sends a manual clearing request to the backend server. The internal shielding lock state is released after receiving a clearing confirmation signal.

[0017] Implementing this application will have the following beneficial effects: This application provides an adaptive switching method and system for a multi-protocol IC card reader / writer terminal. The invention generates a moisture baseline identifier by acquiring the waveform of the idle received signal during off-peak hours. When a customer swipes their card, the moisture baseline identifier is retrieved for feature separation and homogeneity comparison, accurately distinguishing between external card response signals and internal water droplet reflection signals. The reader / writer terminal uses front-end and back-end acquisition points to determine the signal arrival direction data and generate a direction judgment result, avoiding misinterpreting a single-card reading operation as a multi-card conflict. In response to the direction judgment result, the reader / writer terminal controls the back-end acquisition point to disable its receiving function, shielding the chaotic reflection signals from internal water droplets, and resends the reading signal to the external panel, ensuring complete data reading of the citizen card. The reader / writer terminal transforms false conflicts caused by moisture into a normal process that allows continued reading, preventing equipment failure in humid environments, reducing maintenance costs for operation and maintenance personnel, and improving the customer's card payment experience. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart of a method for adaptive switching of a multi-protocol IC card reader / writer terminal, which relates to this application. Figure 2 This is a schematic diagram of the initial stage of baseline acquisition and feature separation in a multi-protocol IC card reader / writer terminal adaptive switching method involved in this application; Figure 3This is a schematic diagram of the process of determining the signal arrival direction and comparing spatial boundaries in an adaptive switching method for a multi-protocol IC card reader / writer terminal involved in this application. Figure 4 This is a schematic diagram of the hardware shielding instruction issuance and feedback verification mechanism of a multi-protocol IC card reader / writer terminal adaptive switching method involved in this application; Figure 5 This is a schematic diagram of the deep nested verification process of the retransmission response signal of a multi-protocol IC card reader / writer terminal adaptive switching method involved in this application; Figure 6 This is a schematic diagram of the adaptive recovery and locking protection closed loop of the device state of a multi-protocol IC card reader / writer terminal adaptive switching method involved in this application. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0021] Example 1, referring to Figures 1-6 This is the first embodiment of the present application, which provides a method for adaptive switching of a multi-protocol IC card reader / writer terminal, including: This application provides a method that can effectively solve the problems mentioned above. The following will describe in detail how to implement the adaptive switching method of the multi-protocol IC card reader / writer terminal with a combination of several embodiments. Figure 1 A flowchart of an adaptive switching method for a multi-protocol IC card reader / writer terminal is shown, including: S1: Obtain the waveform of the idle received signal of the reading and writing terminal during the idle and cardless period, generate the moisture-affected baseline identifier and write it into the record table; It should be noted that during the operation of the reader / writer terminal, even if no card is placed on the sensing panel, the internal induction coil of the terminal will still be in a weak oscillating state. When the ambient humidity gradually increases and tiny water droplets condense on the surface of the induction coil, these tiny water droplets constitute an additional conductive medium and reflector. Specifically, during idle periods without cards, the control signal transceiver unit sends a low-power detection signal to the induction coil. This detection signal is a continuous pulse train with a frequency of 13.56 MHz. After transmission, the receiving circuit is immediately turned on. The detection circuit in the receiving circuit converts the AC voltage on the coil into a DC voltage and transmits it to the analog-to-digital converter. The control analog-to-digital converter continuously collects a preset number of voltage values ​​at a preset sampling frequency, and arranges the collected voltage values ​​into an array according to the time sequence. This array is the waveform of the idle received signal.

[0022] Subsequently, the maximum voltage value is extracted from the received signal waveform as the peak voltage. The oscillation frequency is calculated by comparing adjacent voltage values ​​at zero crossing, and the time required for the waveform to decay from the peak to the lower threshold is recorded as the decay time. The peak voltage, oscillation frequency, and decay time are combined into an array as the moisture-affected baseline characteristic data. A moisture-affected baseline identifier containing the moisture-affected baseline characteristic data is generated, and the moisture-affected baseline identifier is bound to the current timestamp and written into a record table in non-volatile memory. The data structure of the moisture-affected baseline identifier includes an identifier header, a characteristic data area, and a timestamp area. The identifier header is a fixed byte 0xAA used to distinguish different types of records. The characteristic data area stores a two-byte representation of the peak voltage, a two-byte representation of the oscillation frequency, and a two-byte representation of the decay time in sequence. The timestamp area stores a compressed value of year, month, day, hour, minute, and second.

[0023] For example, a 2-millisecond probe signal is sent every 10 minutes in a cardless state, and all echo voltage values ​​within the following 5 milliseconds are collected. The maximum voltage value within these 5 milliseconds is set as the reference peak value. If the reference peak value collected three consecutive times exceeds twice the dry state reference voltage, the median frequency and the average decay time of these three waveforms are extracted and combined into a feature array of 6 bytes. This array, along with a minute-level timestamp, is packaged into a record entry and written into a circular queue in the memory. In this application, the dry state reference voltage is obtained by batch testing of moisture-free devices before leaving the factory and taking the average value, with a preferred setting range of 0.5 volts to 1.2 volts. In the specific operation of this application, the coil inductance parameter of the current device is extracted. If the coil inductance is greater than 10 microhenries, the dry state reference voltage is set to 0.8 volts; if the coil inductance is less than or equal to 10 microhenries, the dry state reference voltage is set to 1.1 volts.

[0024] S2: In response to detecting an external card entering the sensing area, retrieve the most recent moisture baseline identifier based on the current in-situ status data; Understandably, when an external card approaches the sensing panel, the parameters of the capacitance sensor on the panel will change. Specifically, the parasitic capacitance value of the sensing panel is continuously scanned. When the change in the parasitic capacitance value exceeds a trigger threshold, current presence status data is generated, indicating that the card has entered the working area. The current presence status data is a Boolean flag; setting it to 1 indicates that the card is present. Simultaneously with acquiring the current presence status data, the current system timestamp is read. All entries in the non-volatile memory record table are traversed, and the absolute value of the difference between each entry's timestamp and the current system timestamp is calculated. The entry with the smallest absolute difference is selected, and the moisture baseline identifier contained in that entry is extracted as the most recent moisture baseline identifier. If there are no entries in the record table, a blank baseline identifier is generated, with all feature data areas of the blank baseline identifier set to 0.

[0025] For example, the static capacitance of the sensing panel is 15 picofarads. When a card approaches, causing the capacitance to increase to 16 picofarads, the change is 1 picofarad, which is greater than the threshold of 0.9 picofarads, generating in-situ status data. The current timestamp is read as 10:00 AM. Traversing the memory, the timestamp of the last entry is found to be 9:55 AM, with an absolute difference of 5 minutes. This is the smallest difference among all entries, so the moisture baseline marker from the 9:55 AM entry is extracted for subsequent comparison. In this application, the trigger threshold is obtained statistically based on the capacitance change caused by different card materials, with a preferred setting range of 0.8 picofarads to 1.5 picofarads. In the specific operation of this application, the current ambient air humidity value is obtained. If the air humidity value is higher than 80%, the trigger threshold is set to 1.2 picofarads; if the air humidity value is lower than or equal to 80%, the trigger threshold is set to 0.9 picofarads.

[0026] S3: Based on the current received signal waveform and the retrieved damp baseline identifier, perform feature separation and homology comparison to generate homology comparison results; It should be noted that after the card enters the sensing area, the read signal sent by the reader / writer terminal will not only trigger the chip inside the card to generate a response signal, but also trigger the water droplets on the internal coil to generate random reflection signals. In this embodiment, before performing feature separation, the current received signal waveform needs to be preprocessed. All voltage values ​​of the current received signal waveform are read, and the point with the largest value is found. Using this largest point as a reference, all voltage values ​​are divided by the largest point to obtain the normalized current received signal waveform. Similarly, the unloaded reflection waveform feature data in the retrieved moisture baseline marker is normalized by the same proportion.

[0027] Furthermore, the normalized no-load reflection waveform characteristic data is subtracted from the normalized current received signal waveform to obtain the difference waveform. This difference waveform is the superimposed waveform of the external true response after internal water droplet reflection and the internal residual waveform.

[0028] Furthermore, the clutter frequency band distribution is extracted from the difference waveform, and its overlap with the clutter frequency band distribution in the unloaded reflection waveform characteristic data is calculated. If the overlap meets the same-source determination threshold, the interference is determined to originate from the internal water droplet, and an internal same-source interference identifier is generated; if it does not meet the threshold, the interference is determined to originate from external multi-cards, and an external multi-card conflict identifier is generated. The internal same-source interference identifier is a 2-byte hexadecimal data 0x01, and the external multi-card conflict identifier is 0x02.

[0029] In some embodiments, the step of performing feature separation and homology comparison based on the currently received signal waveform and the retrieved damp baseline identifier to generate homology comparison results may further include the following steps: S3.1, compare the waveform of the current received signal with the unloaded reflection waveform feature data in the retrieved moisture baseline identifier. If a period of time in the current received signal waveform shows a chaotic oscillation that matches the unloaded reflection waveform feature, and the delay time of the chaotic oscillation meets a preset delay condition, mark the period of time as an internal reflection clutter period. S3.2, mark the clear pulse segment in the current received signal waveform that matches the normal external card response frequency as the external valid response period; S3.3, compare the clutter oscillation waveform during the internal reflection clutter period with the clutter frequency band distribution in the unloaded reflection waveform feature data. If the frequency band distribution of the clutter oscillation waveform corresponds to the clutter frequency band distribution in the unloaded reflection waveform feature data, generate an internal homogeneous interference identifier as the homogeneous comparison result. S3.4 If the frequency band distribution of the disordered oscillation waveform does not correspond to the clutter frequency band distribution in the unloaded reflection waveform feature data, an external multi-card collision identifier is generated as the same source comparison result.

[0030] In this application, a point-by-point subtraction operation is performed on the superimposed waveforms, that is, the voltage value of the currently received signal waveform at each moment is subtracted from the voltage value of the unloaded reflected waveform at the corresponding moment to obtain the difference waveform. Specifically, the segment in the difference waveform where the absolute voltage value is greater than the noise threshold is found; this segment is the clutter oscillation segment. The time difference between the start time of the clutter oscillation segment and the start time of the corresponding oscillation segment in the unloaded reflected waveform is recorded, and this time difference is used as the delay time. If the delay time is within the preset delay condition range, it indicates that the time of clutter occurrence conforms to the physical law of internal near-range reflection, and the clutter oscillation segment is marked as the internal reflected clutter period.

[0031] On the other hand, frequency extraction is performed on the remaining difference waveform portion, calculating the number of zero-crossings per millisecond as the voltage changes from positive to negative. This number of zero-crossings is multiplied by 1000 to obtain the frequency in Hertz. If this Hertz value falls within the range of the external card's standard response frequency, the corresponding segment is marked as an effective external response period. The external card's standard response frequency range is 847 kHz to 848 kHz.

[0032] Furthermore, the dominant peak frequency of the clutter waveform during the internal reflection clutter period is extracted, and the dominant peak frequency of the clutter in the feature data of the unloaded reflection waveform is also extracted. The absolute value of the difference between the two dominant peak frequencies is calculated. If the absolute value of the difference is less than the frequency band tolerance, it indicates that the clutter frequency band distribution corresponds, and the interference is determined to originate from the internal water droplets, generating an internal homogeneous interference flag. If the absolute value of the difference is greater than or equal to the frequency band tolerance, it indicates that the frequency band distribution does not correspond, and the interference is determined to originate from multiple external cards, generating an external multi-card conflict flag. For example, if the dominant peak frequency of the clutter is extracted to be 12 kHz and the dominant peak frequency of the unloaded reflection is 12.1 kHz, the difference is 0.1 kHz, which is less than the 0.5 kHz error, therefore an internal homogeneous interference flag is generated.

[0033] In this application, the preset delay condition is obtained by calculating the transmission delay caused by the trace length of electromagnetic waves in the printed circuit board, and its preferred setting range is 10 nanoseconds to 50 nanoseconds. In the specific operation of this application, the trace length of the current device's circuit board is obtained. If the trace length is greater than 5 cm, the preset delay condition is set to 40 nanoseconds; if the trace length is less than or equal to 5 cm, the preset delay condition is set to 20 nanoseconds. In this embodiment, the frequency band tolerance error is obtained by statistically analyzing the frequency drift caused by coil parasitic capacitance fluctuations, and its preferred setting range is 0.2 kHz to 1.0 kHz. In the specific operation of this application, the temperature value of the current environment is obtained. If the temperature is higher than 35 degrees Celsius, the frequency band tolerance error is set to 0.8 kHz; if the temperature is lower than or equal to 35 degrees Celsius, the frequency band tolerance error is set to 0.4 kHz.

[0034] S4: Based on the damp location data in the damp baseline identifier and the same source comparison result, the signal arrival direction data is determined by the front-end acquisition point and the back-end acquisition point of the receiving loop, and the signal arrival direction data is compared with the area boundary in the preset spatial mapping relationship to generate a direction judgment result. It should be noted that once the source of interference is confirmed to be internal, it is necessary to further locate the specific position of the interference within the physical structure in order to perform shielding. In this application, before performing direction determination, the same-source comparison result needs to be verified first. If the same-source comparison result is an external multi-card conflict identifier, the direction determination process is directly terminated, and the external conflict identifier is output. If the same-source comparison result is an internal same-source interference identifier, the moisture location data is parsed from the moisture baseline identifier. The moisture location data is a 1-byte orientation code reserved in the moisture baseline identifier, where code 0x01 indicates the front side of the coil, and code 0x02 indicates the rear side of the coil.

[0035] Furthermore, the arrival time of the same signal peak is measured using front-end and back-end acquisition points deployed at both ends of the receiving loop. Based on the order of signal reception and the absolute value of the time difference between the two points, the incident azimuth angle of the signal is calculated, and this azimuth angle is used as the signal arrival direction data. This signal arrival direction data is then substituted into a pre-calibrated spatial mapping relationship to determine whether the direction data falls within the boundary of the area inside the indicator or the boundary of the area outside the indicator, thereby generating a precise direction determination result and providing a spatial basis for subsequent physical shielding.

[0036] In some embodiments, the step of determining the signal arrival direction data based on the damp location data in the damp baseline identifier and the same-source comparison result, using the front-end and back-end acquisition points of the receiving loop, may further include the following steps: S4.1 When the same source comparison result is the internal same source interference identifier, the current interference source is determined to be located on the surface of the induction coil inside the reading and writing terminal based on the moisture location data in the moisture baseline identifier. S4.2, retrieve the spatial mapping relationship between the internal coil and the external panel that has been pre-written into the read / write terminal memory. The spatial mapping relationship includes the boundary of the internal coil area, the boundary of the external panel area, and the signal receiving channel corresponding to each boundary. S4.3, the received signal is obtained by using the front-end acquisition point and the back-end acquisition point of the receiving loop, and the signal arrival direction data is determined according to the order and time difference data of the signals received by the front-end acquisition point and the back-end acquisition point.

[0037] In some embodiments, when the same-source comparison result is an internal same-source interference identifier, the possibility of external card conflict is excluded. Moisture location data containing directional codes is extracted from the moisture baseline identifier. Based on the directional codes, a preset physical location lookup table is consulted to determine the specific physical surface of the internal induction coil where the water droplets currently causing reflection interference are attached. Further, a spatial mapping relationship is retrieved from the memory of the read / write terminal. The spatial mapping relationship is a two-dimensional coordinate range list that divides the physical space where the sensing panel is located into the boundary of the internal coil area and the boundary of the external panel area. Specific fields of the spatial mapping relationship table include: coordinate number, X-axis angle range, Y-axis time difference range, belonging boundary identifier, and signal receiving channel number. For example, coordinate number 01 corresponds to an X-axis angle range within ±15 degrees, the belonging boundary identifier is the internal coil area, and the signal receiving channel number is 0x11. Each coordinate range is bound to a corresponding signal receiving channel number.

[0038] Specifically, the front-end and back-end acquisition points at both ends of the physical layout of the receiving loop are activated. When the echo signal arrives, the front-end and back-end acquisition points record nanosecond-level timestamps of the signal's zero-crossing point. The difference between the back-end and front-end timestamps is calculated to obtain the time difference data. If the front-end timestamp is less than the back-end timestamp, it indicates that the signal arrived at the front end first. Combining the absolute value of the time difference data, the corresponding incident angle value is looked up in a preset azimuth angle lookup table, and this incident angle value is determined as the signal arrival direction data. The azimuth angle lookup table includes the correspondence between the absolute value of the time difference and the incident angle value. For example, an absolute time difference of 20 nanoseconds corresponds to an incident angle value that is 30 degrees inward. For instance, if the front-end timestamp is 1000 nanoseconds, the back-end timestamp is 1020 nanoseconds, and the time difference data is 20 nanoseconds, the signal arrival direction data obtained from the table is 30 degrees inward.

[0039] In this application, the azimuth reference table is obtained by simulation of the antenna near-field radiation pattern, and its preferred setting range is ±45 degrees. In the specific operation of this application, the physical distance between the front-end acquisition point and the back-end acquisition point is obtained. If the distance is greater than 2 cm, the resolution of the azimuth reference table is set to 5 degrees per division. If the distance is less than or equal to 2 cm, the resolution of the azimuth reference table is set to 10 degrees per division.

[0040] In this embodiment of the application, the step of comparing the signal arrival direction data with the region boundary in the preset spatial mapping relationship to generate a direction determination result may further include the following steps: S4.4, compare the signal arrival direction data with the boundary of the inner coil region and the boundary of the outer panel region in the spatial mapping relationship; S4.5 If the signal arrival direction data points to the boundary of the internal coil region, and the time difference data of the signals received by the front-end acquisition point and the back-end acquisition point satisfy the internal reflection condition, an internal direction identifier is generated as the direction judgment result. S4.6 If the signal arrival direction data points to the boundary of the external panel area, an external conflict identifier is generated as the direction judgment result; S4.7 If the signal arrival direction data is within the critical range of the boundary between the inner coil area boundary and the outer panel area boundary, and the time difference data is within a preset critical interval, a direction uncertainty identifier is generated as the direction judgment result.

[0041] Further, the calculated signal arrival direction data is compared with the coordinate range in the spatial mapping relationship. Preferably, it is determined whether the coordinates of the signal arrival direction data fall within the angle range specified by the boundary of the inner coil area, i.e., within ±15 degrees. If it falls within the boundary of the inner coil area, the time difference data is further verified to see if it meets the internal reflection condition. The internal reflection condition requires the absolute value of the time difference data to be greater than 15 nanoseconds and less than 35 nanoseconds. When the absolute value of the time difference data is greater than the minimum time difference required by the internal reflection condition, it indicates that the signal propagation path is short and belongs to internal reflection. At this time, an internal direction marker is generated as the direction judgment result. The internal direction marker is data 0x11. If the coordinates of the signal arrival direction data fall within the boundary of the outer panel area, i.e., the absolute value of the angle is greater than 15 degrees, it indicates that the signal comes from a distant external space, and an external collision marker is generated as the direction judgment result. If the signal arrival direction data falls exactly within the critical range of the boundary between the inner coil area and the outer panel area, i.e., the absolute value of the angle is between 13 and 17 degrees, and the time difference data is also within the preset critical range, i.e., the absolute value of the time difference is between 5 nanoseconds and 15 nanoseconds, then it is impossible to clearly distinguish between the internal and external sources, and an uncertain direction label is generated as the direction judgment result.

[0042] For example, the boundary angle of the internal coil region is defined as ±15 degrees. The current signal arrival direction data is 10 degrees, falling within the internal range, and the time difference is 25 nanoseconds, satisfying the internal reflection condition of greater than 15 nanoseconds, ultimately generating an inward-pointing directional marker. In this application, the internal reflection condition is obtained based on the difference in propagation speed of electromagnetic waves in the air medium and the circuit board medium, and its preferred setting range is 15 nanoseconds to 35 nanoseconds. In the specific operation of this application, the dielectric constant of the current circuit board is obtained. If the dielectric constant is greater than 4.0, the minimum time difference of the internal reflection condition is set to 30 nanoseconds; if the dielectric constant is less than or equal to 4.0, the minimum time difference of the internal reflection condition is set to 18 nanoseconds. In this embodiment, the preset critical interval is obtained based on the fuzzy band width of the near-field overlapping region, and its preferred setting range is 5 nanoseconds to 15 nanoseconds. In the specific operation of this application, the diameter of the antenna coil is obtained. If the diameter is greater than 5 centimeters, the preset critical interval is set to 10 nanoseconds. If the diameter is less than or equal to 5 centimeters, the preset critical interval is set to 6 nanoseconds.

[0043] S5: In response to the direction judgment result, generate a receive window blocking instruction and a read retransmission instruction, control the back-end acquisition point to turn off the receiving function and control the signal transceiver unit to resend the read signal to the external panel, verify the turn-off feedback signal of the back-end acquisition point and the retransmission feedback signal of the signal transceiver unit, obtain the blocking completion identifier and the retransmission read result, and complete the adaptive switching of the read and write parameters and the read operation of the read and write terminal based on the retransmission read result.

[0044] It should be noted that once the direction determination result confirms that the interference originates internally, physical layer shielding must be implemented to restore the reading capability of the external card. Before executing the sub-step, the direction determination result must be received and a branch must be executed. If the direction determination result indicates an internal direction or an uncertain direction, the shielding and retransmission branch is executed; if the direction determination result indicates an external conflict, the normal multi-card conflict handling branch is executed, and shielding is not performed.

[0045] Specifically, in response to the inward direction indicator, a receive window masking command with a back-end masking flag is generated. The receive window masking command contains command code 0xA1. This command is sent to the control terminal of the receiving loop to cut off the power supply to the back-end acquisition point or lock its output pins, ensuring the receiving loop retains only the unidirectional receiving capability of the front-end acquisition point. Simultaneously, a read retransmission command is generated, containing command code 0xB2 and a duration parameter, instructing the signal transceiver unit to retransmit the query radio frequency field.

[0046] Furthermore, after the command is issued, a feedback mechanism must be used to confirm whether the hardware action has actually taken effect. The status register bit of the backend acquisition point is read as a disable feedback signal, and the transmit power detection value of the signal transceiver unit is read as a retransmission feedback signal. Only when both types of feedback signals meet the confirmation conditions are a shielding completion flag and a retransmission read result generated. Subsequently, using the retransmission read result, which is unaffected by internal water droplets, the correct communication protocol parameters are matched and loaded to complete the adaptive switching and reading operation of read / write parameters.

[0047] In some preferred embodiments, the step of generating a receive window masking command and a read retransmission command in response to the direction determination result, controlling the back-end acquisition point to disable the receiving function and controlling the signal transceiver unit to resend the read signal to the external panel may further include the following steps: S5.1, in response to the direction determination result being the internal direction identifier or the direction uncertainty identifier, the receiving window blocking instruction and the read retransmission instruction are generated; S5.2, The receiving window blocking instruction is sent to the receiving loop to control the back-end acquisition point to turn off the receiving function, so that the receiving loop only retains the front-end acquisition point to receive the signal from the external panel; S5.3, the read retransmission command is sent to the signal transceiver unit, and the signal transceiver unit is controlled to retransmit the read signal to the external panel within a preset time period.

[0048] In some preferred embodiments, a preventative blocking and retransmission process is triggered when an inward-pointing direction indicator is obtained, or when an uncertain direction indicator is obtained due to data ambiguity. A receive window blocking instruction and a read retransmission instruction containing specific hardware control codes are generated.

[0049] Furthermore, the receive window masking command is sent to the analog switch chip in the receiving loop via the serial peripheral interface. The analog switch chip, according to the command, cuts off the channel path connecting the back-end acquisition point, resulting in a single-arm receiving topology where only the front-end acquisition point is connected to the processing end. In this topology, the water droplet reflection signal from the back of the internal coil cannot form a loop due to the back-end acquisition point being closed, physically blocking interference. For example, when the analog switch receives command code 0xA1, it disconnects pins 3 and 4, suspending the back-end acquisition point, and the loop current can only flow in from the front-end acquisition point. Simultaneously, a read / retransmit command is sent to the modulator of the signal transceiver unit. The signal transceiver unit, according to the command, initiates carrier transmission, continuously outputting electromagnetic waves for a preset duration to wake up or re-query the external card. In this application, the preset duration is obtained based on the anti-collision frame time specified in the ISO14443 protocol standard, and its preferred setting range is 1 millisecond to 5 milliseconds. In the specific operation of this application, the rate parameter of the current communication protocol is obtained. If the rate is 106 kilobits per second, the preset duration is set to 3 milliseconds. If the rate is 848 kilobits per second, the preset duration is set to 1.5 milliseconds.

[0050] In this application, the step of verifying the shutdown feedback signal of the backend acquisition point and the retransmission feedback signal of the signal transceiver unit to obtain the shielding completion identifier and the retransmission reading result may further include the following steps: S5.4 After sending the receiving window blocking instruction, obtain the shutdown feedback signal returned by the receiving loop. If the shutdown feedback signal is not obtained within a preset waiting time, generate a blocking execution abnormality flag and resend the receiving window blocking instruction. S5.5 If the shutdown feedback signal is still not received after resending, a manual maintenance request is sent to the backend server. S5.6 After receiving the shutdown feedback signal, generate the shielding completion identifier; S5.7 After sending the read retransmission command, obtain the retransmission feedback signal returned by the signal transceiver unit. If the retransmission feedback signal is not obtained within a preset waiting time, resend the read retransmission command. S5.8 If the retransmission feedback signal is still not received after retransmission, it is determined that the external card is not responding and a no-response flag is generated; S5.9 After obtaining the retransmission feedback signal, the signal reread by the signal transceiver unit is used as the retransmission reading result.

[0051] Furthermore, after the command is sent, two independent timers are started to monitor the shielding and retransmission status respectively. The shutdown feedback signal is read from the status register of the receiving loop. The shutdown feedback signal is a high or low level status bit; when this status bit is 1, it indicates successful shutdown. If the status bit does not flip within the preset waiting time, it indicates that the analog switch has not activated, generating a shielding execution error flag. The command pin level is then pulled low again to retransmit the receive window shielding command. If the status bit still does not flip after two consecutive retransmissions, it indicates physical hardware damage, and a manual repair request containing the device number is sent to the backend server. If the status bit flips correctly within the preset waiting time, a shielding completion flag is generated. Optionally, for the signal transceiver unit, the power detection pin on its transmitting antenna is monitored. When the read retransmission command is issued, this pin should output a voltage value proportional to the transmitting power; this voltage value is used as the retransmission feedback signal. When this voltage value is greater than 0.5 volts, the retransmission is considered successful. If the voltage value remains zero within the preset waiting time, the read retransmission command is retransmitted. If the voltage remains zero after retransmission, it is determined that the external card is unresponsive or the transmitting unit is damaged, and a no-response flag is generated. If a normal retransmission feedback signal is obtained, it indicates that the radio frequency field has been established and a response from the external card has been received. The demodulated digital baseband data stream at this time is taken as the retransmission read result. In this application, the preset waiting time is obtained based on the analog switch action delay and signal establishment time, and its preferred setting range is 50 microseconds to 200 microseconds. In the specific operation of this application, the current device's master clock frequency is obtained. If the master clock frequency is 24 MHz, the preset waiting time is set to 100 microseconds; if the master clock frequency is 48 MHz, the preset waiting time is set to 60 microseconds.

[0052] In this embodiment, the step of adaptively switching and performing read / write parameters of the read / write terminal based on the retransmission read result may further include the following steps: S5.10, Based on the masking completion identifier, generate a read verification command; S5.11, according to the read verification instruction, obtain the retransmission response signal corresponding to the retransmission read result from the front-end acquisition point; S5.12, if the retransmission response signal only contains pulses of normal frequency and the intensity meets the preset range of a single card, generate a read success identifier; S5.13, If the retransmitted response signal still contains chaotic oscillations or abnormal intensity, a read doubt flag is generated; S5.14 If there is no response after resending the read signal a preset number of times, a no-response flag is generated; S5.15, compare the waveform of the retransmitted response signal with the waveform of the external effective response period. If the comparison matches for a preset number of consecutive times and the data verification passes, generate an interference overcoming flag. S5.16 If any comparison shows waveform characteristics of the internal reflection clutter period, an interference not overcome flag is generated; S5.17 If the results of two comparisons are contradictory, a question mark is generated.

[0053] Further, after confirming the completion of the physical shielding action, the data quality of the retransmitted read results needs to be verified. A read verification command is generated, instructing the front-end acquisition point to upload the retransmitted response signal corresponding to the retransmitted read result in its buffer. Waveform feature analysis is performed on the retransmitted response signal to extract its frequency components and amplitude peak values. Specifically, if the retransmitted response signal only contains frequency pulses conforming to the ISO14443 standard, i.e., 847 kHz to 848 kHz, and the amplitude peak value falls within the preset range for a single card, it indicates that the signal is pure, and a read success identifier is generated. If the retransmitted response signal still contains high-frequency glitches or the amplitude peak value far exceeds the upper limit of the preset range for a single card, it indicates that the shielding is incomplete or that there is external multi-card interference, and a read doubt identifier is generated. If no response signal is captured after sending the read retransmit command for a preset number of consecutive times, it indicates that the card has been removed or the chip is damaged, and a no-response identifier is generated. The no-response identifier and the no-response identifier generated in step S5.8 share the same data structure, both representing no card response.

[0054] Furthermore, to ensure the absolute reliability of data flow, a deeply nested comparison and verification process is executed. The waveform of the retransmitted response signal is compared point by point with the waveform of the previously marked valid external response period.

[0055] A1. Extract all zero-crossing positions from the retransmitted response signal waveform to form a first zero-crossing sequence set; extract all zero-crossing positions from the waveform during the external effective response period to form a second zero-crossing sequence set, and proceed to step A2.

[0056] A2. Calculate the absolute value of the time deviation between the corresponding zero-crossing points in the first and second zero-crossing sequence sets. Determine if there is a mismatch point where the absolute value of the time deviation is greater than a preset deviation tolerance. If not, proceed to step A3; if yes, it indicates severe waveform distortion, proceed to step A4. The preset deviation tolerance is obtained based on the jitter tolerance of the sampling frequency, with a preferred setting range of 1 microsecond to 5 microseconds. In the specific operation of this application, the sampling rate parameter of the current device is obtained. If the sampling rate is 1 MHz, the preset deviation tolerance is set to 3 microseconds; if the sampling rate is 2 MHz, the preset deviation tolerance is set to 1 microsecond.

[0057] A3. After traversing all zero-crossing points, count the total number of mismatch points and determine if the total number of mismatch points is less than the preset mismatch number. If yes, it indicates that the waveform is generally matched, and proceed to step B1; if no, it indicates that the waveform is mismatched, and directly determine that an interference failure flag is generated and end the process. The preset mismatch number is obtained based on the fault tolerance ratio of the total waveform length, and its preferred setting range is 2 to 5. In the specific operation of this application, the total number of sampling points of the current waveform is obtained. If the total number of sampling points is greater than 1000, the preset mismatch number is set to 4; if the total number of sampling points is less than or equal to 1000, the preset mismatch number is set to 2.

[0058] A4, record the position coordinates and deviation value of the current mismatch point, and return to step A2 to process the next zero crossing point.

[0059] Step B1: Extract the data frame bytes from the retransmission response signal and proceed to step B2. The extraction method involves locating the start position of the data frame based on a preset frame start symbol and reading subsequent data bits in bit order.

[0060] Step B2: Perform cyclic redundancy check (CRC) calculation on the data frame bytes according to a preset polynomial to obtain the current check value, then proceed to step B3. The preset polynomial is a general CRC polynomial. The calculation method involves XORing each bit of the data frame byte with the binary sequence corresponding to the preset polynomial. If the result is 1, shift the register left by one bit and pad with 0 at the end, then XOR it again with the polynomial's characteristic value; if the result is 0, shift the register left by one bit and pad with 0 at the end. After traversing all data bits, the value in the register is the current check value.

[0061] B3. Determine whether the current check value is consistent with the target check bit in the data frame byte. If yes, the data check is successful, and proceed to step C1. If no, the data check fails, and the interference failure flag is generated and the process ends.

[0062] C1: Record the current comparison as a successful match, accumulate the number of successful matches and clear the number of consecutive failures, then proceed to step C2.

[0063] C2, determine whether the cumulative number of successful matches has reached a preset matching threshold. If yes, it means the interference has been overcome, generate an interference overcome flag and end the process; otherwise, proceed to step D1. The preset matching threshold is obtained based on the number of consecutive successful identifications required in the anti-collision protocol, with a preferred setting range of 2 to 3 times. In the specific operation of this application, the electromagnetic noise floor value of the current environment is obtained. If the floor value is higher than -60 dB / mW, the preset matching threshold is set to 3 times; if the floor value is lower than or equal to -60 dB / mW, the preset matching threshold is set to 2 times.

[0064] D1 triggers a new round of retransmission reading and comparison process, returns to step S5.11 to obtain a new retransmission response signal, and proceeds to step D2.

[0065] D2. For a new retransmission response signal, perform the matching determination from steps A1 to C1. If the match is successful, proceed to step C1 to accumulate the number of successful matches; if the match is not successful, proceed to step D3.

[0066] D3: Accumulate the number of failed attempts and reset the number of successful matches to zero. Determine if the accumulated number of failed attempts has reached the preset failure limit. If yes, it indicates that the interference has not been overcome, generate an interference failure flag, and end the process. If no, return to step D1 to continue trying. The preset failure limit is obtained based on the maximum number of attempts in the retransmission mechanism, with a preferred setting range of 2 to 4 times. In the specific operation of this application, the packet error rate of the current communication link is obtained. If the packet error rate is higher than 10%, the preset failure limit is set to 4 times; if the packet error rate is lower than or equal to 10%, the preset failure limit is set to 2 times.

[0067] If a contradictory situation occurs in the above process, where a previous comparison matches successfully but a subsequent comparison fails, a questionable flag is directly generated. In this application, the preset range for a single card is obtained based on the magnetic field strength test of a single card at a standard distance, with a preferred setting range of 1.5 volts to 3.0 volts. In the specific operation of this application, the quality factor of the current antenna is obtained. If the quality factor is greater than 20, the upper limit of the preset range for a single card is set to 2.5 volts; if the quality factor is less than or equal to 20, the upper limit of the preset range for a single card is set to 2.8 volts.

[0068] In some embodiments, the step of adaptively switching and performing read / write parameters of the read / write terminal based on the retransmission read result may further include the following steps: S5.18, when the interference overcoming flag or the reading success flag is generated, the shielding state of the receiving loop is released, the receiving function of the back-end acquisition point is restored, and the adaptive switching of the reading and writing parameters of the reading and writing terminal and the reading operation are completed according to the protocol rules corresponding to the external effective response period. S5.19, if the interference failure flag, the doubt flag, or the no-response flag is generated, an internal shielding lock flag is generated to enable the internal shielding lock state of the read / write terminal, keep the backend acquisition point closed, and send a manual clearing request to the backend server.

[0069] Understandably, once the interference overcoming flag or successful reading flag is generated, it indicates that the device can now operate normally even in a damp environment.

[0070] Furthermore, the shielding state of the receiving loop is released, a recovery command is sent to the analog switch of the backend acquisition point, the backend channel is reopened, and omnidirectional receiving capability is restored. According to the protocol rules corresponding to the effective external response period, such as ISO14443 Type A or Type B, the adaptive switching of read / write parameters and the reading operation of the reader / writer terminal are completed, and the card data is sent to the backend. If the generated identifier is an interference not overcome identifier, a doubtful identifier, or a no-response identifier, it indicates that the moisture is too severe, and simple shielding cannot restore reading. At this time, an internal shielding lock identifier is generated, enabling the internal shielding lock state. In the internal shielding lock state, the backend acquisition point remains permanently closed, refusing to receive any signals. Simultaneously, a manual clearing request containing the device serial number and a moisture baseline summary is sent to the backend server.

[0071] In this application, enabling the internal shielding lock state of the read / write terminal, keeping the backend acquisition point closed, and sending a manual clearing request to the backend server may further include the following steps: S5.19.1 After enabling the internal shielding lock state, record each card swipe attempt of the external card as an operation attempt event and write it to the associated log; S5.19.2, when the number of operation attempts exceeds the preset number, a device moisture warning is sent to the display screen, and a device moisture affecting transaction is sent to the backend server; S5.19.3, Based on the damp location data and the idle reflection waveform characteristic data in the associated log, send the manual removal request carrying a summary of the damp location and a summary of the interference type to the background server; S5.19.4 If no clearing confirmation signal is received within the preset waiting time, the manual clearing request is sent to the backend server again and the prompt intensity is increased; S5.19.5 After receiving the clear confirmation signal, the internal shielding lock state is released, the receiving function of the backend acquisition point is restored, and the release time is recorded in the associated log.

[0072] It should be noted that after the device enters the locked state, a detailed event logging and notification sending process is required to ensure the integrity of maintenance data and guide manual repairs. After enabling the internal shielding lock state, regardless of whether the card is successfully read, as long as the sensing panel detects a level change, this action is recorded as an operation attempt event. The operation attempt event includes the timestamp of the action, the duration, and the capacitance change. The operation attempt event is appended to the associated log in the non-volatile memory. In this application, the cumulative number of operation attempt events is monitored. When the cumulative number exceeds a preset number, it indicates that the customer's repeated card swipes are ineffective, and a water droplet icon or the word "damp" is flashed on the display screen as a moisture warning for the device. At the same time, a notification that the device is affected by moisture and transactions is sent to the network management interface of the backend server, indicating that the device cannot currently perform contactless payments.

[0073] Further, the most recent moisture location data and no-load reflected waveform characteristic data are extracted from the associated logs. The moisture location data is converted into a directional text description, and the voltage peak value in the no-load reflected waveform characteristic data is converted into a moisture severity level. The above text description and level are combined to form a moisture location summary and an interference type summary. A data packet containing the device number, moisture location summary, and interference type summary is sent as a manual clearing request to the backend server. If no clearing confirmation signal is received from the backend within a preset waiting time, it indicates that the backend has not processed it in time, and the manual clearing request is sent again. When resending the request, the priority flag in the data packet is upgraded from normal to urgent to increase the intensity of the prompt. After the maintenance personnel have completed the processing with the drying equipment, they enter the unlock code on the device or send a clearing confirmation signal through the backend. After receiving the clearing confirmation signal, the device releases its internal shielding lock state, restores the backend acquisition point receiving function, and writes the current release time into the associated log, closing the entire abnormal handling process. For example, if the cumulative number of operation attempts reaches 5, the display screen flashes a water droplet icon, and a manual clearing request containing information about the coil back end and voltage exceeding limits is sent to the backend. If no confirmation is received after 10 minutes, the request is sent again with the highest priority. In this application, the preset number of attempts is obtained based on statistics of the psychological tolerance of ordinary users for consecutive card swipe failures, and its preferred setting range is 3 to 5 times. In the specific operation of this application, the current time period attribute is obtained. If it is during peak commuting hours, the preset number of attempts is set to 3 times; if it is during off-peak hours, the preset number of attempts is set to 5 times. In this embodiment, the preset waiting time is obtained based on the average response time of the backend network management system, and its preferred setting range is 5 to 15 minutes. In the specific operation of this application, the current network latency parameter is obtained. If the network latency is greater than 100 milliseconds, the preset waiting time is set to 10 minutes; if the network latency is less than or equal to 100 milliseconds, the preset waiting time is set to 5 minutes.

[0074] Figure 2 This illustrates the initial stage of baseline acquisition and feature separation. During idle, cardless periods, the received signal waveform is acquired to generate a damp baseline identifier. This identifier is retrieved when an external card enters the sensing area. By comparing the current received signal with the idle reflection waveform point by point, the periods of internal reflection clutter and external effective response are marked. The clutter frequency band distribution is extracted and its overlap with the idle clutter frequency band is calculated. If the frequency bands match, it is determined to be internal homogeneous interference, and the subsequent direction determination process is introduced; if the frequency bands do not match, it is determined to be external multi-card conflict, and the process directly switches to the conventional multi-card conflict handling procedure and terminates the current adaptive handover logic.

[0075] Figure 3 The process of determining the signal arrival direction and comparing it with spatial boundaries is illustrated. After confirming that the interference originates internally, the arrival time of the signal peak is measured using front-end and back-end acquisition points deployed at both ends of the receiving loop. The incident azimuth angle is calculated based on the order of the received signals and the absolute value of the time difference, and this azimuth angle is used as the signal arrival direction data. Subsequently, the direction data is substituted into a pre-calibrated spatial mapping relationship to determine whether it falls within the boundary of the internal coil area, the boundary of the external panel area, or the critical boundary range. If it points to the external panel boundary, it is determined to be an external conflict and the process ends; if it points to the inside or is within the critical range, a corresponding direction identifier is generated for subsequent physical shielding.

[0076] Figure 4 The hardware shielding command issuance and feedback verification mechanism is illustrated. For interference pointing inwards or of uncertain direction, a receive window shielding command is generated to cut off the path to the backend acquisition point. Simultaneously, a read and retransmit command is issued to reconstruct the RF field. An independent timer monitors the status register bits of the analog switch and the transmit antenna power detection pin to confirm the effectiveness of the physical shielding action and the retransmitted signal. If no correct feedback is received within a preset time, the command retransmission mechanism is triggered. If consecutive retransmissions fail, it is determined that the hardware is damaged or the external card is unresponsive, and a corresponding abnormal termination flag or maintenance request is generated to ensure the absolute reliability of the hardware action.

[0077] Figure 5 This demonstrates a deeply nested verification process for retransmitted response signals. After confirming physical shielding, the retransmitted response signal uploaded by the front-end acquisition point is extracted, and its frequency components and amplitude peak values ​​are analyzed. If the signal is pure, a successful read flag is directly generated; if an anomaly exists, the zero-crossing sequence is further extracted and the external valid response waveform is compared point-by-point for deviation calculation, and cyclic redundancy check is used to verify the integrity of the data frame. By counting the number of consecutive successful or failed matches, the interference is precisely determined whether it has been overcome. Finally, status flags such as interference overcome, read doubtful, interference not overcome, or no response are output, providing data support for device status recovery or locking.

[0078] Figure 6 The diagram illustrates the adaptive recovery and lockout protection closed loop of the device status. When an interference overcome or read success flag is generated, the receiver loop shielding is deactivated and omnidirectional reception capability is restored, completing data reading according to protocol rules. If an insurmountable, questionable, or no-response flag is generated, the internal shielding lockout is enabled, refusing to receive any signals, and external card swipe attempts are recorded as operation attempt events. When the number of attempts exceeds the limit, a moisture warning is triggered, and a manual cleaning request carrying a summary of the moisture location and interference type is sent to the backend server. The lockout is only deactivated after a cleaning confirmation signal is received, effectively preventing the device from continuously malfunctioning in severely damp environments.

[0079] Example 2: This example also provides a multi-protocol IC card reader / writer terminal adaptive switching system, including: a baseline acquisition module, a signal separation module, a direction determination module, a shielding control module, and a status locking module; The baseline acquisition module is used to acquire the idle received signal waveform of the reading and writing terminal during the idle and cardless period, generate a damp baseline identifier and write it into the record table. In response to the detection of an external card entering the sensing area, the module retrieves the most recent damp baseline identifier based on the current in-situ status data. The signal separation module is used to perform feature separation and homology comparison based on the currently received signal waveform and the retrieved damp baseline identifier, and generate homology comparison results; The direction determination module is used to determine the signal arrival direction data based on the damp location data in the damp baseline identifier and the same source comparison result, using the front-end acquisition point and the back-end acquisition point of the receiving loop, and compare the signal arrival direction data with the area boundary in the preset spatial mapping relationship to generate a direction determination result. The shielding control module is used to generate a receiving window shielding command and a read retransmission command in response to the direction judgment result, control the back-end acquisition point to turn off the receiving function and control the signal transceiver unit to resend the read signal to the external panel, verify the turn-off feedback signal of the back-end acquisition point and the retransmission feedback signal of the signal transceiver unit, obtain the shielding completion mark and the retransmission read result, and complete the adaptive switching of the read and write parameters and the read operation of the reading and writing terminal based on the retransmission read result. The state locking module is used to generate an internal shielding lock flag when an interference failure flag, a doubt flag, or a no-response flag is generated. This enables the internal shielding lock state to keep the backend acquisition point closed, records operation attempt events, and sends a manual clearing request to the backend server. The internal shielding lock state is released after receiving a clearing confirmation signal.

[0080] The above-mentioned unit modules can be embedded in the processor of the electronic device in hardware form or independent of it, or they can be stored in the memory of the electronic device in software form, so that the processor can call and execute the corresponding operations of the above modules.

[0081] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0082] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for adaptive switching of a multi-protocol IC card reader / writer terminal, characterized in that, include: Acquire the idle received signal waveform of the reading and writing terminal during the idle and cardless period, generate a damp baseline identifier and write it into the record table; In response to detecting an external card entering the sensing area, the most recent moisture baseline identifier is retrieved based on the current in-situ status data; Based on the currently received signal waveform and the retrieved damp baseline identifier, feature separation and homology comparison are performed to generate homology comparison results, including: The waveform of the currently received signal is compared with the unloaded reflection waveform feature data in the retrieved moisture baseline identifier. If a chaotic oscillation that matches the unloaded reflection waveform feature appears in a certain period of the current received signal waveform, and the delay time of the chaotic oscillation meets the preset delay condition, the period is marked as the internal reflection clutter period. The chaotic oscillation waveform during the internal reflection clutter period is compared with the clutter frequency band distribution in the unloaded reflection waveform feature data. If the frequency band distribution of the chaotic oscillation waveform corresponds to the clutter frequency band distribution in the unloaded reflection waveform feature data, an internal homogeneous interference identifier is generated as the homogeneous comparison result. If the frequency band distribution of the disordered oscillation waveform does not correspond to the clutter frequency band distribution in the feature data of the unloaded reflection waveform, an external multi-card collision identifier is generated as the source comparison result. Based on the damp location data in the damp baseline identifier and the same source comparison result, the signal arrival direction data is determined by the front-end acquisition point and the back-end acquisition point of the receiving loop. The signal arrival direction data is compared with the area boundary in the preset spatial mapping relationship to generate a direction judgment result, including: if the signal arrival direction data points to the boundary of the internal coil area, and the time difference data of the signal received by the front-end acquisition point and the back-end acquisition point satisfies the internal reflection condition, an internal direction identifier is generated as the direction judgment result. If the signal arrival direction data points to the boundary of the external panel area, an external conflict identifier is generated as the direction determination result. If the signal arrival direction data is within the critical range of the boundary between the inner coil area boundary and the outer panel area boundary, and the time difference data is within a preset critical interval, a direction uncertainty identifier is generated as the direction judgment result. In response to the direction determination result, a receive window blocking instruction and a read retransmission instruction are generated. The back-end acquisition point is controlled to turn off the receiving function and the signal transceiver unit is controlled to resend the read signal to the external panel. The turn-off feedback signal of the back-end acquisition point and the retransmission feedback signal of the signal transceiver unit are verified. The blocking completion identifier and the retransmission read result are obtained. Based on the retransmission read result, the read and write parameters of the read and write terminal are adaptively switched and the read operation is completed.

2. The adaptive switching method for multi-protocol IC card reader / writer terminals according to claim 1, characterized in that: The step of determining the signal arrival direction data based on the damp location data in the damp baseline identifier and the same-source comparison result, using the front-end and back-end acquisition points of the receiving loop, includes: When the same source comparison result is the internal same source interference identifier, the current interference source is determined to be located on the surface of the induction coil inside the reading and writing terminal based on the moisture location data in the moisture baseline identifier. Retrieve the spatial mapping relationship between the internal coil and the external panel that was pre-written into the read / write terminal memory. The spatial mapping relationship includes the boundary of the internal coil area, the boundary of the external panel area, and the signal receiving channel corresponding to each boundary. The received signal is acquired using the front-end acquisition point and the back-end acquisition point of the receiving loop. Based on the order and time difference of the signals received by the front-end acquisition point and the back-end acquisition point, the direction of arrival of the signal is determined.

3. The adaptive switching method for multi-protocol IC card reader / writer terminals according to claim 1, characterized in that: The process of generating a receive window masking command and a read retransmission command in response to the direction determination result, controlling the back-end acquisition point to disable the receiving function and controlling the signal transceiver unit to resend the read signal to the external panel includes: In response to the direction determination result being either the inward-pointing direction identifier or the direction uncertainty identifier, the receiving window blocking instruction and the read retransmission instruction are generated. The receiving window blocking command is sent to the receiving loop to control the back-end acquisition point to turn off the receiving function, so that the receiving loop only allows the front-end acquisition point to receive signals from the external panel; The read retransmission command is sent to the signal transceiver unit, which controls the signal transceiver unit to retransmit the read signal to the external panel within a preset time period.

4. The adaptive switching method for multi-protocol IC card reader / writer terminals according to claim 3, characterized in that: The verification of the shutdown feedback signal of the backend acquisition point and the retransmission feedback signal of the signal transceiver unit, and the acquisition of the shielding completion identifier and retransmission reading result, includes: After sending the receive window blocking instruction, the closing feedback signal returned by the receive loop is obtained. If the closing feedback signal is not obtained within a preset waiting time, a blocking execution abnormality flag is generated and the receive window blocking instruction is resent. If the shutdown feedback signal is still not received after resending, a manual maintenance request is sent to the backend server. After receiving the shutdown feedback signal, the shielding completion identifier is generated; After sending the read retransmission command, the retransmission feedback signal returned by the signal transceiver unit is obtained. If the retransmission feedback signal is not obtained within a preset waiting time, the read retransmission command is retransmitted. If the retransmission feedback signal is still not received after retransmission, it is determined that the external card is not responding and a no-response flag is generated; After obtaining the retransmission feedback signal, the signal reread by the signal transceiver unit is taken as the retransmission reading result.

5. The adaptive switching method for multi-protocol IC card reader / writer terminals according to claim 4, characterized in that: The step of adaptively switching and performing read / write parameters of the read / write terminal based on the retransmission read result includes: Based on the masking completion identifier, a read verification command is generated; According to the read verification instruction, the retransmission response signal corresponding to the retransmission read result is obtained from the front-end acquisition point; If the retransmission response signal contains only pulses of normal frequency and the intensity meets the preset range of a single card, a read success identifier is generated; If the retransmitted response signal still contains chaotic oscillations or abnormal intensity, a read doubt flag is generated. If there is no response after resending the read signal twice consecutively, a no-response flag is generated. The waveform of the retransmitted response signal is compared with the waveform of the external valid response period. If the two consecutive comparisons match and the data verification passes, an interference overcoming indicator is generated. If any comparison shows waveform characteristics of the internal reflection clutter period, an interference not overcome flag is generated; If the results of two comparisons contradict each other, a question mark is generated.

6. The adaptive switching method for multi-protocol IC card reader / writer terminals according to claim 5, characterized in that: The step of completing the adaptive switching of read and write parameters and the read operation of the read and write terminal based on the retransmission read result also includes: When the interference overcoming flag or the read success flag is generated, the shielding state of the receiving loop is released, the receiving function of the back-end acquisition point is restored, and the adaptive switching of the read and write parameters and the read operation of the reading and writing terminal are completed according to the protocol rules corresponding to the external effective response period. If the interference is not overcome, the doubtful flag, or the no-response flag is generated, an internal shielding lock flag is generated to enable the internal shielding lock state of the read / write terminal, keeping the backend acquisition point closed, and sending a manual clearing request to the backend server.

7. The adaptive switching method for multi-protocol IC card reader / writer terminals according to claim 6, characterized in that: Enabling the internal shielding lock state of the read / write terminal, keeping the backend acquisition point closed, and sending a manual clearing request to the backend server includes: After enabling the internal shielding lock state, each card swipe attempt by the external card is recorded as an operation attempt event and written to the associated log; When the number of operation attempts exceeds a preset number, a device moisture warning is sent to the display screen, and a device moisture affecting transaction is sent to the backend server. Based on the damp location data and the idle reflection waveform characteristic data in the associated log, a manual removal request carrying a summary of the damp location and a summary of the interference type is sent to the background server; If no clearing confirmation signal is received within the preset waiting time, the manual clearing request is sent to the backend server again with increased prompt intensity; Upon receiving the clear confirmation signal, the internal shielding lock state is released, the receiving function of the backend acquisition point is restored, and the release time is recorded in the associated log.

8. A multi-protocol IC card reader / writer terminal adaptive switching system, characterized in that, include: Baseline acquisition module, signal separation module, direction determination module, shielding control module, and status locking module; The baseline acquisition module is used to acquire the idle received signal waveform of the reading and writing terminal during the idle and cardless period, generate a damp baseline identifier and write it into the record table. In response to the detection of an external card entering the sensing area, the module retrieves the most recent damp baseline identifier based on the current in-situ status data. The signal separation module is used to perform feature separation and homology comparison based on the currently received signal waveform and the retrieved damp baseline identifier, and generate homology comparison results, including: The waveform of the currently received signal is compared with the unloaded reflection waveform feature data in the retrieved moisture baseline identifier. If a chaotic oscillation that matches the unloaded reflection waveform feature appears in a certain period of the current received signal waveform, and the delay time of the chaotic oscillation meets the preset delay condition, the period is marked as the internal reflection clutter period. The chaotic oscillation waveform during the internal reflection clutter period is compared with the clutter frequency band distribution in the unloaded reflection waveform feature data. If the frequency band distribution of the chaotic oscillation waveform corresponds to the clutter frequency band distribution in the unloaded reflection waveform feature data, an internal homogeneous interference identifier is generated as the homogeneous comparison result. If the frequency band distribution of the disordered oscillation waveform does not correspond to the clutter frequency band distribution in the feature data of the unloaded reflection waveform, an external multi-card collision identifier is generated as the source comparison result. The direction determination module is used to determine the signal arrival direction data based on the damp location data in the damp baseline identifier and the same source comparison result, using the front-end acquisition point and the back-end acquisition point of the receiving loop, and compare the signal arrival direction data with the area boundary in the preset spatial mapping relationship to generate a direction determination result, including: if the signal arrival direction data points to the boundary of the internal coil area, and the time difference data of the signal received by the front-end acquisition point and the back-end acquisition point satisfies the internal reflection condition, an internal direction identifier is generated as the direction determination result; If the signal arrival direction data points to the boundary of the external panel area, an external conflict identifier is generated as the direction determination result. If the signal arrival direction data is within the critical range of the boundary between the inner coil area boundary and the outer panel area boundary, and the time difference data is within a preset critical interval, a direction uncertainty identifier is generated as the direction judgment result. The shielding control module is used to generate a receiving window shielding command and a read retransmission command in response to the direction judgment result, control the back-end acquisition point to turn off the receiving function and control the signal transceiver unit to resend the read signal to the external panel, verify the turn-off feedback signal of the back-end acquisition point and the retransmission feedback signal of the signal transceiver unit, obtain the shielding completion mark and the retransmission read result, and complete the adaptive switching of the read and write parameters and the read operation of the reading and writing terminal based on the retransmission read result. The state locking module is used to generate an internal shielding lock flag when an interference failure flag, a doubt flag, or a no-response flag is generated. This enables the internal shielding lock state to keep the backend acquisition point closed, records operation attempt events, and sends a manual clearing request to the backend server. The internal shielding lock state is released after receiving a clearing confirmation signal.

Citation Information

Patent Citations

  • Multi-protocol reading system, method and terminal for high-frequency high-speed reader-writer

    CN114492485A

  • Intelligent card compatible system based on multi-standard near field communication

    CN121968068A