Information interaction method and system for NFC ornament
By calculating the communication quality factor and dynamically adjusting the modulation depth waiting interval, the communication timing of NFC jewelry is optimized, solving the problems of unstable communication and insufficient real-time performance, and improving communication efficiency and user experience.
Patent Information
- Application Number
- CN202511840295.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-08
- Publication Date
- 2026-02-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The communication links of NFC jewelry are more fragile and unstable than those of standard NFC cards or mobile phones, making them unsuitable for application scenarios with high real-time requirements. Furthermore, existing communication protocols result in low communication efficiency and a high failure rate.
By calculating the communication quality factor, dynamically adjusting the modulation depth and waiting interval, and combining real-time signal strength with historical successful communication records, the communication timing is optimized, asynchronous state changes are quickly identified, and status query commands are sent.
It improves the communication stability and real-time response capability of NFC jewelry, reduces invalid waiting and retransmission, and enhances the smoothness of data interaction and user experience.
Smart Images

Figure CN121509959A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communications, and in particular relates to an information interaction method and system for NFC jewelry. Background Technology
[0002] Near Field Communication (NFC) technology, a short-range, high-frequency radio frequency identification (RFID) technology, has been widely used in mobile payments, access control, and data exchange due to its convenience and security. NFC technology is increasingly being integrated into miniaturized and portable jewelry such as smart rings, bracelets, and pendants to achieve functions such as identity verification, quick commands, and information interaction. However, due to their small size and power supply characteristics, NFC jewelry's communication links are more fragile and unstable compared to standard NFC cards or mobile phones. During use, the relative position, angle, and distance between the jewelry and the reader frequently change, causing fluctuations in the received signal strength, which in turn affects the stability and reliability of communication. NFC communication protocols and methods may cause unnecessary energy waste under good channel conditions, while poor channel conditions can easily lead to high communication failure rates and frequent retransmissions, thus reducing user experience and interaction efficiency. On the one hand, after sending a frame of data, the reader typically waits for a frame delay to receive the jewelry's response; however, the processing time differs between a simple status read command and a command requiring encryption operations. Waiting time can lead to the reader prematurely initiating retransmissions before the item is fully processed, or the reader remaining ineffectively waiting even after the item has been processed, reducing the efficiency of the entire interaction process. On the other hand, for asynchronous events occurring on NFC jewelry, such as user button presses and sensor state changes, the reader typically relies on periodic polling to obtain state updates. This polling mechanism has a delay, which cannot meet the needs of applications requiring high real-time event processing. How to enable jewelry to proactively and quickly notify the reader when its state changes, and how to ensure the reader correctly recognizes and responds to asynchronous notifications, are problems that need to be solved in current NFC jewelry information interaction technology. Summary of the Invention
[0003] This invention proposes an information interaction method for NFC jewelry, addressing the problem that existing technologies result in communication links that are more fragile and unstable compared to standard NFC cards or mobile phones, failing to meet the requirements of application scenarios with high real-time event requirements. The method includes the following steps: Based on the current received signal strength indication value for communication with the NFC jewelry, and the pre-stored historical communication bit error rate data associated with the instruction type, the communication quality factor is calculated through a preset weighting function; Before sending a data frame, the instruction type is parsed to obtain the expected processing time, and the final modulation depth is determined based on whether the data frame contains a high priority identifier: if it does, a preset high modulation depth is used; otherwise, the communication quality factor is used as input to look up the reference modulation depth in the nonlinear mapping table, and the reference modulation depth is used as the final modulation depth. The waiting interval for the next frame is calculated based on the expected processing time, the base frame interval, the delay compensation amount inversely proportional to the communication quality factor, and the disturbance amount generated by the communication quality factor and the number of retransmissions in the current interactive session. When a response frame is received from the NFC jewelry within a time frame less than the dynamic minimum frame delay threshold, the response frame is parsed as an asynchronous state change notification, and the current interaction process is interrupted in order to send a state query command. The dynamic minimum frame delay threshold is obtained by multiplying the expected processing time of the data frame sent this time by a preset coefficient.
[0004] Optionally, the step of calculating the communication quality factor through a preset weighting function includes: The normalized current received signal strength indicator and the historical communication bit error rate data are used as inputs, and a weighted sum function is used for calculation. The weight w of the historical communication bit error rate data is... , where N is the number of consecutive successful communications.
[0005] Optionally, determining the final modulation depth based on whether the data frame contains a high-priority identifier includes: If the data frame contains a high-priority identifier, the final modulation depth is set to 100%; otherwise, the reference modulation depth is queried in the segment mapping table based on the value of the communication quality factor Q. The mapping relationship is as follows: .
[0006] Optionally, the delay compensation amount, which is inversely proportional to the communication quality factor, includes: It is calculated using the following formula: Adding 0.1 to the denominator prevents calculation errors when the communication quality factor is zero.
[0007] Optionally, the perturbation generated by the communication quality factor and the number of retransmissions in the current interaction session includes: Generate using the following formula: in, This indicates a floor operation, and the result is used as the perturbation quantity in μs.
[0008] Optionally, the calculation of the waiting interval for the next frame includes: This can be achieved through the following formula: The unit of the delay compensation is ms, and the unit of the disturbance is μs.
[0009] Optionally, the interruption of the current interaction process in exchange for sending a status query command includes: Immediately clear the current data queue to be sent, construct a status query instruction frame with content 0xA55A, and send the instruction frame as the highest priority task.
[0010] Furthermore, the present invention also relates to an information interaction system for NFC jewelry, comprising the following modules: The first calculation module is used to calculate the communication quality factor based on the current received signal strength indication value of the communication with the NFC jewelry and the pre-stored historical communication bit error rate data associated with the instruction type through a preset weighting function. The parsing module is used to parse the instruction type to obtain the expected processing time before sending the data frame, and to determine the final modulation depth based on whether the data frame contains a high priority identifier: if it does, a preset high modulation depth is used; otherwise, the communication quality factor is used as input to look up the reference modulation depth in the nonlinear mapping table, and the reference modulation depth is used as the final modulation depth. The second calculation module is used to calculate the waiting interval for the next frame based on the expected processing time, the basic frame interval, the delay compensation amount inversely proportional to the communication quality factor, and the disturbance amount generated by the communication quality factor and the number of retransmissions in the current interactive session. The interrupt module is used to parse the response frame as an asynchronous state change notification when a response frame is received from the NFC ornament within a time less than the dynamic minimum frame delay threshold, and interrupt the current interaction process to send a state query command instead. The dynamic minimum frame delay threshold is obtained by multiplying the expected processing time of the data frame sent this time by a preset coefficient.
[0011] Preferably, the step of calculating the communication quality factor through a preset weighting function includes: The normalized current received signal strength indicator and the historical communication bit error rate data are used as inputs, and a weighted sum function is used for calculation. The weight w of the historical communication bit error rate data is... , where N is the number of consecutive successful communications.
[0012] Preferably, determining the final modulation depth based on whether the data frame contains a high-priority identifier includes: If the data frame contains a high-priority identifier, the final modulation depth is set to 100%; otherwise, the reference modulation depth is queried in the segment mapping table based on the value of the communication quality factor Q. The mapping relationship is as follows: .
[0013] Preferably, the delay compensation amount, which is inversely proportional to the communication quality factor, includes: It is calculated using the following formula: Adding 0.1 to the denominator prevents calculation errors when the communication quality factor is zero.
[0014] Preferably, the perturbation amount generated by the communication quality factor and the number of retransmissions in the current interactive session includes: Generate using the following formula: in, This indicates a floor operation, and the result is used as the perturbation quantity in μs.
[0015] Preferably, the calculation of the waiting interval for the next frame includes: This can be achieved through the following formula: The unit of the delay compensation is ms, and the unit of the disturbance is μs.
[0016] Preferably, the step of interrupting the current interaction process and sending a status query command includes: Immediately clear the current data queue to be sent, construct a status query instruction frame with content 0xA55A, and send the instruction frame as the highest priority task.
[0017] This invention combines real-time signal strength with historical communication success records to more accurately assess communication link quality and configure appropriate modulation depths for instructions of different priorities. This ensures both the reliability of critical operations and the efficiency of regular communication, achieving a better balance between communication stability and speed. The method for calculating inter-frame waiting intervals integrates instruction processing time, channel conditions, and anti-collision requirements, reducing invalid waiting and unnecessary retransmissions, optimizing the overall communication timing, and improving the smoothness of data interaction. By comparing the arrival time of response frames with the expected processing time of instructions, the reader can quickly identify sudden status change notifications from jewelry, thereby interrupting the regular process for immediate processing, shortening the status update delay, and enhancing the real-time response capability of human-computer interaction. Attached Figure Description
[0018] Figure 1 A flowchart of the first embodiment; Figure 2 This is a schematic diagram illustrating the calculation of the communication quality factor. Figure 3 A schematic diagram for determining the modulation depth; Figure 4 This is a schematic diagram showing the relationship between delay compensation and communication quality factor. Detailed Implementation
[0019] Many specific details are set forth in the following description to provide a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.
[0020] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of this specification. The singular forms “a,” “described,” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0021] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this specification, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."
[0022] Example 1, as Figure 1 The image shows a method for information interaction in NFC jewelry, comprising the following steps: S1, Based on the current received signal strength indication value of the communication with the NFC jewelry and the pre-stored historical communication bit error rate data associated with the instruction type, the communication quality factor is calculated through a preset weighting function; The reader measures and acquires the signal strength indication value currently received from the NFC jewelry via RF front-end hardware, obtaining, for example, a raw value of -70dBm, and normalizes this value to a range of 0 to 1. The reader maintains a table in local memory that records the average bit error rate (BER) over past interactions for different instruction types, such as reading data or writing keys. Additionally, the reader maintains a consecutive successful communication counter. The preset weighting function is a linear combination formula, where the communication quality factor equals the normalized signal strength indication value multiplied by a weighting coefficient, plus the historical BER multiplied by the weighting coefficient. The weighting coefficient for the historical BER is not a fixed value but is calculated using a function related to the consecutive successful communication counter value; for example, the weight equals the base weight multiplied by the logarithm of the counter value, ensuring that the more stable the consecutive communication, the higher the reference value of the historical data.
[0023] In an optional embodiment, the step of calculating the communication quality factor using a preset weighting function includes: The normalized current received signal strength indicator and the historical communication bit error rate data are used as inputs, and a weighted sum function is used for calculation. The weight w of the historical communication bit error rate data is... , where N is the number of consecutive successful communications.
[0024] Specifically, two key input data are obtained: the normalized current received signal strength indicator (RSSSI) and the historical communication bit error rate (BER). For example, if the normalized RSSSI is 0.8, the historical BER is 0.05. The weight w of the historical BER data is calculated based on the number of consecutive successful communications, N. If the device has successfully communicated 3 times consecutively, then N=3, and the calculated weight w is 0.3.
[0025] A weighted sum function is used to fuse the two inputs into a single communication quality factor Q. This weighted sum function is structured as a two-input linear model, where the weight of the normalized received signal strength indicator is 1-w, and the weight of the processed historical communication bit error rate data is w. Using the above data as an example, the calculated communication quality factor Q is Q=0.845. As the number of consecutive successful communications increases, the reliability of the historical data improves, and the weights increase accordingly, but the maximum weight does not exceed 0.5. Figure 2 .
[0026] S2, Before sending a data frame, the instruction type is parsed to obtain the expected processing time, and the final modulation depth is determined based on whether the data frame contains a high priority identifier: if it does, a preset high modulation depth is used; otherwise, the communication quality factor is used as input to query the nonlinear mapping table to obtain the reference modulation depth, and the reference modulation depth is used as the final modulation depth. Specifically, when the reader is ready to send a data frame, it checks the command field. For example, in a firmware update command, the reader looks up the expected processing time of 100ms from a pre-stored command processing schedule. The reader then checks the control field of the data frame for a high-priority flag. If the flag is 1, indicating that the operation is critical (e.g., payment confirmation), the reader ignores the communication quality factor and uses a very reliable high modulation depth, such as 100% amplitude shift keying. If the flag is 0, the reader uses the calculated communication quality factor and looks it up in a non-linear mapping table. This table predefines the correspondence between communication quality factor ranges and modulation depths. For example, a factor between 0.8 and 1.0 corresponds to a low modulation depth of 10% for high data rate, between 0.3 and 0.5 corresponds to a medium modulation depth of 50%, and below 0.3 corresponds to a high modulation depth of 85% to ensure reliability. The modulation depth obtained from the table is used as the final modulation depth for this transmission. Figure 3 .
[0027] In an optional embodiment, determining the final modulation depth based on whether the data frame contains a high-priority identifier includes: If the data frame contains a high-priority identifier, the final modulation depth is set to 100%; otherwise, the reference modulation depth is queried in the segment mapping table based on the value of the communication quality factor Q. The mapping relationship is as follows: .
[0028] The system checks if a predefined high-priority identifier exists in the data frame to be transmitted. This identifier is typically a specific bit or field in the data frame header. For example, the 5th bit in the header of a data frame might be defined as a high-priority identifier; if this bit is 1, the frame is considered high-priority data. The communication quality factor is ignored, and the final modulation depth is set to the maximum value of 100% to ensure that critical information can be successfully received even under poor channel conditions.
[0029] If the data frame does not contain a high-priority identifier, for example, if the identifier bit is 0, a piecewise decision model based on the communication quality factor Q will be used to determine the reference modulation depth. This model is essentially a piecewise constant function. Assuming the previously calculated communication quality factor Q is 0.5, according to the mapping relationship... The query returned a baseline modulation depth of 30%. Similarly, if the communication quality factor Q drops to 0.2, the query result is 10%. This mechanism allows non-critical data to adjust its transmission strategy based on channel conditions, using a higher modulation depth to improve efficiency when the channel is good, and reducing the modulation depth to ensure reliability when the channel is poor.
[0030] S3. Based on the expected processing time, the basic frame interval, the delay compensation amount inversely proportional to the communication quality factor, and the disturbance amount generated by the communication quality factor and the number of retransmissions in the current interactive session, the waiting interval for the next frame is calculated. The waiting interval for the next frame is the sum of four parts. The first part is the expected processing time of the instruction obtained above, such as 100ms. The second part is the base frame interval, which is the minimum inter-frame delay specified by the protocol, for example, fixed at 5ms. The third part is the delay compensation amount, calculated by dividing a preset constant K by the communication quality factor. If the communication quality factor is low, such as 0.4, the compensation amount is larger, indicating that a longer waiting time is needed to ensure that the ornament has sufficient time to respond. The fourth part is the perturbation amount, which in one embodiment is achieved through a hash function, such as a simple cyclic redundancy check algorithm or... The system calculates a small, pseudo-random time value, such as 0.5 ms, based on two inputs: the current communication quality factor and the number of retransmissions already occurred in the current session. This perturbation is used to stagger potential communication conflict time slots in multi-device or high-interference environments. Adding these four time components together yields the final waiting interval.
[0031] In an optional embodiment, the delay compensation amount, which is inversely proportional to the communication quality factor, includes: It is calculated using the following formula: Adding 0.1 to the denominator prevents calculation errors when the communication quality factor is zero.
[0032] Specifically, an inverse proportional function model is used to calculate the delay compensation. The input to this model is the communication quality factor Q and a fixed parameter, namely the base delay constant, which is set to 5ms in this embodiment. During calculation, the communication quality factor Q is used as the independent variable and substituted into the specified formula for calculation.
[0033] For example, when communication quality is very high, the communication quality factor Q is 0.9, and the calculated delay compensation is only ms, which is relatively small. Conversely, if channel conditions deteriorate and the communication quality factor Q drops to 0.1, the calculated delay compensation will increase to 25ms. This inverse relationship ensures that when channel quality is poor, a longer delay is input to wait for a more suitable transmission opportunity, thereby improving the transmission success rate. Figure 4 .
[0034] In an optional embodiment, the perturbation amount generated by the communication quality factor and the number of retransmissions in the current interaction session includes: Generate using the following formula: in, This indicates a floor operation, and the result is used as the perturbation quantity in μs.
[0035] The perturbation is generated using a simple hash function model. This model takes two inputs: a floating-point communication quality factor Q and an integer number of retransmissions in the current session. Multiplying the communication quality factor Q by 1000 and rounding down converts it to a larger integer, preserving precision.
[0036] Add the result obtained above to the number of retransmissions in the current session, and then perform a modulo operation on a prime number, such as 257. Assuming the communication quality factor Q is 0.845 and this is the first transmission (i.e., the number of retransmissions is 0), the calculated perturbation amount is 74. If the transmission fails and a first retransmission occurs, the number of retransmissions becomes 1, and the new perturbation amount is 75. The resulting integer result is the perturbation amount in μs.
[0037] In an optional embodiment, the calculation of the waiting interval for the next frame includes: This can be achieved through the following formula: The unit of the delay compensation is ms, and the unit of the disturbance is μs.
[0038] Specifically, the calculation of the next frame waiting interval is a linear summation process that integrates multiple time components to achieve comprehensive communication timing control. This calculation model consists of four parts: the basic frame interval, the dynamic expected processing time, the delay compensation calculated based on channel quality, and the disturbance amount used for collision prevention. The basic frame interval is set to a constant value of 15ms to ensure a basic communication cycle.
[0039] In a specific calculation, it is assumed that the system estimates it will take 12ms to process the next data frame, i.e., the expected processing time is 12ms. The delay compensation calculated based on the current communication quality factor is 25ms, and the perturbation generated by the hash function is 101ms. Substituting these values into the formula and summing them, the waiting interval for the next frame is obtained as 52.101ms. The final waiting time comprehensively considers the system's basic rhythm, processing load, channel conditions, and network congestion avoidance, achieving a high degree of transmission scheduling.
[0040] S4. When a response frame from the NFC jewelry is received within a time less than the dynamic minimum frame delay threshold, the response frame is parsed as an asynchronous state change notification, and the current interaction process is interrupted to send a state query command. The dynamic minimum frame delay threshold is obtained by multiplying the expected processing time of the data frame sent this time by a preset coefficient.
[0041] Specifically, after sending a command to read sensor data, the reader calculates the minimum dynamic frame delay threshold for this interaction to be 9ms, based on the expected processing time of 15ms and a preset coefficient of 0.6. Normally, the reader expects to receive a response from the jewelry after 9ms. However, 4ms after sending the command, the reader detects a response frame from the jewelry. Since 4ms is much smaller than the 9ms threshold, the reader determines that the response is not a normal reply to the command to read sensor data, but rather that a sudden event has occurred on the jewelry, such as the user pressing a physical button on the jewelry, causing the jewelry to actively preempt the channel and send a notification. In this case, the reader immediately abandons waiting for a response to read sensor data, terminates the current interaction process, and immediately constructs and sends a dedicated status query command to inquire about the specific status change that has occurred on the jewelry.
[0042] In an optional embodiment, the dynamic minimum frame delay threshold is obtained by multiplying the expected processing time of the data frame to be sent this time by a preset coefficient, wherein the preset coefficient is 0.8.
[0043] The calculation method for the dynamic minimum frame delay threshold is a simple linear scaling model. The input to this model is the expected processing time required for the data frame to be sent, and the output is the delay threshold. The core is a preset scaling factor, which is set to 0.8 in this embodiment, representing the maximum proportion of processing time the system is willing to sacrifice to wait for a better transmission opportunity.
[0044] For example, if the system estimates that the processing time for an upcoming data packet is 20ms, then the corresponding dynamic minimum frame delay threshold will be calculated as 16ms. This means that if the delay compensation portion of the subsequently calculated total waiting time is less than 16ms, the system may choose to abandon the transmission to avoid missing the optimal communication window due to excessive processing time. Conversely, if the expected processing time is only 5ms, the threshold is reduced to 4ms, demonstrating greater flexibility.
[0045] In order to quickly re-establish communication synchronization with the peer device or obtain status information, in an optional embodiment, interrupting the current interaction process and sending a status query command includes: Immediately clear the current data queue to be sent, construct a status query instruction frame with content 0xA55A, and send the instruction frame as the highest priority task.
[0046] This interruption procedure is a pre-defined emergency response mechanism that is activated when triggering conditions, such as the number of consecutive communication failures reaching a threshold, are met. An immediate cleanup operation is performed, accessing the internal data queue and discarding all queued data frames awaiting transmission, regardless of priority or content. For example, a data queue containing three regular telemetry data points will be completely emptied.
[0047] After the queue is cleared, a new data frame is immediately constructed in memory. The payload of this data frame is filled with a specific hexadecimal constant 0xA55A, which serves as signaling for the receiver to identify the data frame as a status query instruction. The newly constructed instruction frame is given the highest transmission priority, bypassing all conventional waiting intervals and delay calculations, and is immediately sent to the physical layer for transmission.
[0048] Example 2 is an information interaction system for NFC jewelry, comprising the following modules: The first calculation module is used to calculate the communication quality factor based on the current received signal strength indication value of the communication with the NFC jewelry and the pre-stored historical communication bit error rate data associated with the instruction type through a preset weighting function. The parsing module is used to parse the instruction type to obtain the expected processing time before sending the data frame, and to determine the final modulation depth based on whether the data frame contains a high priority identifier: if it does, a preset high modulation depth is used; otherwise, the communication quality factor is used as input to look up the reference modulation depth in the nonlinear mapping table, and the reference modulation depth is used as the final modulation depth. The second calculation module is used to calculate the waiting interval for the next frame based on the expected processing time, the basic frame interval, the delay compensation amount inversely proportional to the communication quality factor, and the disturbance amount generated by the communication quality factor and the number of retransmissions in the current interactive session. The interrupt module is used to parse the response frame as an asynchronous state change notification when a response frame is received from the NFC ornament within a time less than the dynamic minimum frame delay threshold, and interrupt the current interaction process to send a state query command instead. The dynamic minimum frame delay threshold is obtained by multiplying the expected processing time of the data frame sent this time by a preset coefficient.
[0049] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, compact disc read-only memory (CD-ROM), optical storage, etc.) containing computer-usable program code.
[0050] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0051] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for information interaction in NFC jewelry, characterized in that, Includes the following steps: Based on the current received signal strength indication value for communication with the NFC jewelry, and the pre-stored historical communication bit error rate data associated with the instruction type, the communication quality factor is calculated through a preset weighting function; Before sending a data frame, the instruction type is parsed to obtain the expected processing time, and the final modulation depth is determined based on whether the data frame contains a high priority identifier: if it does, a preset high modulation depth is used; otherwise, the communication quality factor is used as input to look up the reference modulation depth in the nonlinear mapping table, and the reference modulation depth is used as the final modulation depth. The waiting interval for the next frame is calculated based on the expected processing time, the base frame interval, the delay compensation amount inversely proportional to the communication quality factor, and the disturbance amount generated by the communication quality factor and the number of retransmissions in the current interactive session. When a response frame is received from the NFC jewelry within a time frame less than the dynamic minimum frame delay threshold, the response frame is parsed as an asynchronous state change notification, and the current interaction process is interrupted in order to send a state query command. The dynamic minimum frame delay threshold is obtained by multiplying the expected processing time of the data frame sent this time by a preset coefficient.
2. The method according to claim 1, characterized in that, The process of calculating the communication quality factor using a preset weighting function includes: The normalized current received signal strength indicator and the historical communication bit error rate data are used as inputs, and a weighted sum function is used for calculation. The weight w of the historical communication bit error rate data is... , where N is the number of consecutive successful communications.
3. The method according to claim 1, characterized in that, The step of determining the final modulation depth based on whether the data frame contains a high-priority identifier includes: If the data frame contains a high-priority identifier, the final modulation depth is set to 100%; otherwise, the reference modulation depth is queried in the segment mapping table based on the value of the communication quality factor Q. The mapping relationship is as follows: .
4. The method according to claim 1, characterized in that, The delay compensation amount, which is inversely proportional to the communication quality factor, includes: It is calculated using the following formula: , Adding 0.1 to the denominator prevents calculation errors when the communication quality factor is zero.
5. The method according to claim 1, characterized in that, The perturbation generated by the communication quality factor and the number of retransmissions in the current interactive session includes: Generate using the following formula: in, This indicates a floor operation, and the result is used as the perturbation quantity in μs.
6. The method according to claim 5, characterized in that, The calculation of the waiting interval for the next frame includes: This can be achieved through the following formula: The unit of the delay compensation is ms, and the unit of the disturbance is μs.
7. The method according to claim 1, characterized in that, The interruption of the current interaction process and the subsequent sending of a status query command includes: Immediately clear the current data queue to be sent, construct a status query instruction frame with content 0xA55A, and send the instruction frame as the highest priority task.
8. An information interaction system for NFC jewelry, characterized in that, Includes the following modules: The first calculation module is used to calculate the communication quality factor based on the current received signal strength indication value of the communication with the NFC jewelry and the pre-stored historical communication bit error rate data associated with the instruction type through a preset weighting function. The parsing module is used to parse the instruction type to obtain the expected processing time before sending the data frame, and to determine the final modulation depth based on whether the data frame contains a high priority identifier: if it does, a preset high modulation depth is used; otherwise, the communication quality factor is used as input to look up the reference modulation depth in the nonlinear mapping table, and the reference modulation depth is used as the final modulation depth. The second calculation module is used to calculate the waiting interval for the next frame based on the expected processing time, the basic frame interval, the delay compensation amount inversely proportional to the communication quality factor, and the disturbance amount generated by the communication quality factor and the number of retransmissions in the current interactive session. The interrupt module is used to parse the response frame as an asynchronous state change notification when a response frame is received from the NFC ornament within a time less than the dynamic minimum frame delay threshold, and interrupt the current interaction process to send a state query command instead. The dynamic minimum frame delay threshold is obtained by multiplying the expected processing time of the data frame sent this time by a preset coefficient.
9. The system according to claim 8, characterized in that, The process of calculating the communication quality factor using a preset weighting function includes: The normalized current received signal strength indicator and the historical communication bit error rate data are used as inputs, and a weighted sum function is used for calculation. The weight w of the historical communication bit error rate data is... , where N is the number of consecutive successful communications.
10. The system according to claim 8, characterized in that, The step of determining the final modulation depth based on whether the data frame contains a high-priority identifier includes: If the data frame contains a high-priority identifier, the final modulation depth is set to 100%; otherwise, the reference modulation depth is queried in the segment mapping table based on the value of the communication quality factor Q. The mapping relationship is as follows: .