An embedded light emitting method and system for a smart card
By sensing photoelectric energy to determine the lighting environment of the smart card and generating a light-emitting command, the problem of the embedded light-emitting module of the smart card lighting up when the card reader reads it is solved, enabling timely detection and convenient retrieval of the smart card when it is lost.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHENGTIAN WEIYE (NINGBO) CHIP TECH CO LTD
- Filing Date
- 2026-06-11
- Publication Date
- 2026-07-14
AI Technical Summary
Due to insufficient internal battery capacity, the embedded light-emitting module of the smart card can only light up when the card reader is reading it, which makes it inconvenient to use and easy to lose, and users may not be able to find it in time.
By collecting photoelectric energy from solar cells, the lighting environment of the smart card is determined. This data is compared with historical usage records to calculate environmental deviations and generate a light-emitting command to control the LED to light up. Combined with methods for detecting sudden changes in lighting and dynamic monitoring, the system can determine if the card is lost and trigger the LED to light up.
This improves the ease of use of smart cards, enabling users to promptly identify lost smart cards and reduce the risk of loss.
Smart Images

Figure CN122395784A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart cards, and more particularly to an embedded light-emitting method and system for smart cards. Background Technology
[0002] A smart card is a portable card with an embedded microprocessor and storage module, widely used in financial payments, identity authentication, access control, public transportation, and other fields.
[0003] In the existing technology, some smart cards have begun to integrate embedded light-emitting modules (such as LEDs), so that when the smart card comes into contact with the card reader, the embedded light-emitting module lights up to indicate that the information in the card has been successfully read. However, it is difficult to integrate a battery large enough inside the smart card, so the embedded light-emitting module can only light up by using the electromagnetic induction current generated inside the smart card when the card reader reads the smart card.
[0004] Smart cards are relatively lightweight, which makes them easy to lose and difficult for users to detect in time, thus reducing their convenience. Summary of the Invention
[0005] To improve the ease of use of smart cards, this invention provides an embedded light-emitting method and system for smart cards.
[0006] In a first aspect, the present invention provides an embedded light-emitting method for smart cards, employing the following technical solution: An embedded light-emitting method for smart cards, comprising: Step 100: Collect photoelectric energy; Step 101: Determine the light intensity based on the photoelectric energy; Step 102: Match the lighting environment based on the light intensity and retrieve the usage records; Step 103: Determine the baseline environment based on the usage records; Step 104: Compare the lighting environment with the reference environment to determine the environmental deviation; Step 105: When the environmental deviation is greater than the preset loss threshold, select a prompt mode based on the photoelectric energy; Step 106: In response to the prompt mode, generate and send a smart card light-up command.
[0007] By adopting the above technical solution, the photoelectric energy of the solar cell is collected to determine the lighting environment of the smart card, and compared with the benchmark environment of historical usage records. The environmental deviation is calculated to determine if the card is lost. After the card is lost, the number of LEDs that can fully emit light is matched according to the photoelectric energy, and a smart card light-emitting command is generated to control the corresponding number of LEDs to emit light. This makes it easier for users to find lost smart cards and improves the convenience of using smart cards.
[0008] Optional, also includes: Step 107: When the environmental deviation is not greater than the preset loss threshold, determine the illumination rate according to the illumination intensity, and take the absolute value of the illumination rate as the absolute rate. Step 108: If the absolute rate is greater than a preset change threshold, determine the change time based on the absolute rate, and determine the initial intensity based on the illumination rate; Step 109: Match the replacement interval according to the initial intensity; Step 110: Compare the light intensity with the replacement interval to determine the smart card status; Step 111: When the smart card status is consistent with the preset access status, determine the waiting time by combining the change time and the preset read command; Step 112: If the waiting time exceeds a preset waiting threshold, generate and send a smart card light-up command in response to the prompt mode.
[0009] By adopting the above technical solution, the card retrieval action is detected by sudden changes in light intensity. The smart card is then judged whether it has been returned based on the return interval. If the smart card has not been returned, the waiting time after the smart card is retrieved is counted. If the waiting time is too long, the smart card is judged to be lost and the LED is controlled to light up, thereby improving the convenience of using the smart card.
[0010] Optional, also includes: Step 113: When the environmental deviation is greater than the preset loss threshold, determine the luminous intensity based on the photoelectric energy; Step 114: If the luminous intensity is less than the light intensity, respond to the photoelectric energy generation and send the energy storage command, and generate an intensity fluctuation curve based on the light intensity; Step 115: Convert the intensity fluctuation curve into a digital signal curve; Step 116: Identify the illumination sequence from the digital signal curve; Step 117: Compare the illumination sequence with the preset search sequence to determine the missing sequence; Step 118: When the missing sequence is empty, retrieve the stored energy based on the energy storage command; Step 119: Update and send the smart card light-emitting command based on the stored electrical energy and the photoelectric energy.
[0011] By adopting the above technical solution, after a smart card is lost, the luminous power is compared with the ambient brightness. When the luminous intensity is low, it is determined that the luminous power is not obvious. At this time, the power is stored and light pulse code is received. After identifying a specific search sequence from the light pulse code, the LED is controlled to light up, which makes it easier for users to find their lost smart cards.
[0012] Optionally, a dynamic monitoring method may also be included, the dynamic monitoring method comprising: Step 200: When the smart card status is consistent with the preset access status, extract the AC component from the photoelectric energy. Step 201: Analyze the AC components to form a feature vector; Step 202: Select similar vectors from the preset dynamic vectors according to the feature vectors; Step 203: Compare the feature vector and the similar vector to determine the vector deviation; Step 204: Determine the movement probability based on the vector deviation, and determine the light intensity coefficient based on the movement probability; Step 205: Update the waiting threshold in response to the light intensity coefficient.
[0013] By adopting the above technical solution, the AC component is extracted from the photoelectric energy to form a motion feature vector, and compared with the dynamic vectors corresponding to different typical motion modes to select the most similar vector. The probability of the smart card being carried away is evaluated according to the deviation between the feature vector and the similar vector. The loss response speed is adaptively adjusted by the movement probability, so that the smart card light-up command is quickly triggered after the smart card is accidentally picked up by others, making it convenient for users to find the lost smart card.
[0014] Optionally, the dynamic monitoring method further includes: Step 206: When the smart card status is consistent with the preset access status, collect the sensing field strength; Step 207: Determine the normalized value of the sensing field strength based on the sensing field strength, and perform low-pass filtering on the sensing field strength to determine the background field strength; Step 208: Determine the background normalization value based on the background field strength; Step 209: Compare the normalized induction value and the normalized background value to determine the fluctuation amplitude; Step 210: Calculate the variance of the fluctuation amplitude as the amplitude variance; Step 211: Select the amplitude coefficient according to the amplitude variance; Step 212: Update the waiting threshold in response to the amplitude coefficient.
[0015] By adopting the above technical solution, the NFC antenna is used to detect the ambient radio frequency sensing field strength and quantify the background field strength. Then, the sensing field strength and the background field strength are normalized and the difference is calculated as the fluctuation amplitude. The probability of the smart card being carried and moved is determined according to the amplitude variance of the fluctuation amplitude. The loss response speed is adaptively adjusted by the movement probability, reducing the failure of light fluctuation detection in dark or lightless environments and improving the accuracy of smart card light emission command triggering.
[0016] Optionally, the dynamic monitoring method further includes: Step 213: When the smart card status is consistent with the preset access status, retrieve the change light intensity curve according to the change time; Step 214: Retrieve the reliable ratio from the variable light intensity curve according to the preset reliable threshold; Step 215: Match the light intensity weights according to the aforementioned reliable ratio; Step 216: Determine the comprehensive coefficient by combining the light intensity coefficient, amplitude coefficient, and light intensity weight; Step 217: Update the waiting threshold in response to the composite coefficient.
[0017] By adopting the above technical solution, the reliability of light fluctuation detection is determined according to the ambient light conditions of the smart card, and light intensity weights are allocated according to the reliability. In this way, the light fluctuation detection results and radio frequency field strength detection results are fused according to the light intensity weights, reducing the judgment bias caused by incomplete single-dimensional feature information and improving the accuracy of smart card light emission command triggering.
[0018] Optionally, it also includes a loss handling method, the loss handling method comprising: Step 300: When the missing sequence is not empty, the display power is matched according to the light intensity; Step 301: If the stored energy is greater than the displayed energy, retrieve the holding information according to the usage record; Step 302: Generate information code according to the holding information; Step 303: Generate an information sequence in response to the information encoding; Step 304: Generate a display sequence by combining the information sequence and the preset loss sequence; Step 305: In response to the display sequence update smart card light-up command.
[0019] By adopting the above technical solution, when the light pulse code does not match, it is determined that the user has not arrived near the smart card. At this time, an information code is generated based on the relevant holding information of the smart card, and the information code is converted into a display sequence of LED on and off. Thus, the holding information is transmitted to other devices in the same system through light pulses, which makes it convenient for staff to retrieve lost smart cards and return them to users in a timely manner, thereby improving the convenience of using smart cards.
[0020] Optionally, the loss handling method further includes: Step 306: When the missing sequence is not empty, compare the illumination sequence with the preset lost sequence to determine the loss characteristics; Step 307: Identify the received sequence from the illumination sequence in response to the lost feature; Step 308: Read the remaining electrical energy from the received sequence, and determine the current electrical energy by combining the stored electrical energy and the remaining electrical energy; Step 309: Determine the interval duration by combining the existing electrical energy, displayed electrical energy, and sensor electrical energy; Step 310: Determine the execution period of light emission based on the interval duration, and generate a combined sequence by combining the lost sequence and the information sequence; Step 311: In response to the execution period and the combined sequence, update the smart card light-emitting instruction.
[0021] By adopting the above technical solution, the loss sequence emitted when other smart cards are lost can be identified from the optical pulse code, thereby analyzing the remaining power of other smart cards. The order in which the smart cards emit light is planned according to the reserve power and the remaining power, so that when multiple smart cards are lost in the same environment, multiple smart cards can be controlled to emit light in sequence, thereby increasing the duration of LED illumination and making it easier for users to find lost smart cards.
[0022] Optionally, the loss handling method further includes: Step 312: Read the fluctuation rate from the intensity fluctuation curve in response to the smart card's light emission command; Step 313: Determine the average rate based on the fluctuation rate, and compare the fluctuation rate and the average rate to determine the rate deviation; Step 314: When the rate deviation is greater than a preset deviation threshold, determine the deflection angle based on the rate deviation; Step 315: If the deflection angle is greater than the preset pickup threshold, the lost electrical energy is determined from the light intensity in response to the lost sequence; Step 316: Analyze the lost power to determine the location of loss, and combine the location of loss and the deflection angle to determine the deflection direction; Step 317: Generate a frequency distribution map based on the deflection azimuth, and read the emission frequency from the frequency distribution map; Step 318: Update the smart card's light emission command in response to the light emission frequency.
[0023] By adopting the above technical solution, the light intensity fluctuation rate is analyzed to determine the directional change of the smart card after it is picked up. This allows the inference of the lost location of other smart cards after the smart card is picked up, and the light emission frequency is modulated. Thus, the LEDs on the picked-up smart card flash at different frequencies in different locations to guide the finder to pick up other smart cards, making it easier for users to find their lost smart cards.
[0024] Secondly, the present invention provides an embedded light-emitting system for smart cards, employing the following technical solution: An embedded light-emitting system for smart cards includes: The data acquisition module is used to collect photoelectric energy. A memory for storing the program of any of the above-mentioned embedded light-emitting methods for smart cards; The processor is the unit of memory that allows programs to be loaded and executed by the processor.
[0025] By adopting the above technical solution, the photoelectric energy of the solar cell is collected to determine the lighting environment of the smart card, and compared with the benchmark environment of historical usage records. The environmental deviation is calculated to determine if the card is lost. After the card is lost, the number of LEDs that can fully emit light is matched according to the photoelectric energy, and a smart card light-emitting command is generated to control the corresponding number of LEDs to emit light. This makes it easier for users to find lost smart cards and improves the convenience of using smart cards.
[0026] In summary, the present invention has at least one of the following beneficial technical effects: 1. Collect the photoelectric energy of the solar cell to determine the lighting environment of the smart card, compare it with the benchmark environment of the historical usage record, calculate the environmental deviation to determine if it is lost, and after loss, match the number of LEDs that can fully emit light according to the photoelectric energy, and generate a smart card light-up command to control the corresponding number of LEDs to emit light, thereby making it easier for users to find lost smart cards and improving the convenience of smart card use. 2. The card retrieval action is detected by sudden changes in light intensity. The smart card is then returned based on the return interval. If the smart card is not returned, the waiting time after the smart card is retrieved is recorded. If the waiting time is too long, the smart card is considered lost and the LED is turned on, thereby improving the convenience of using the smart card. 3. After a smart card is lost, the system compares the light emission capability with the ambient brightness. When the light emission intensity is low, it determines that the light emission is not obvious. At this time, it stores electrical energy and receives light pulse codes. After identifying a specific search sequence from the light pulse codes, it controls the LED to light up, making it easier for users to find their lost smart cards. Attached Figure Description
[0027] Figure 1 This is a flowchart of an embedded light-emitting method for smart cards; Figure 2 This is a flowchart of the dynamic monitoring method; Figure 3 This is a flowchart of the lost item handling method. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0029] This invention discloses an embedded light-emitting method for smart cards.
[0030] Reference Figure 1 An embedded light-emitting method for smart cards, comprising: Step 100: Collect photoelectric energy.
[0031] Photovoltaic energy refers to the electrical energy generated by a solar thin-film battery per unit time under ambient light. The output power of the solar thin film can be used as the photovoltaic energy. The solar thin-film battery uses amorphous silicon material. Multiple solar thin-film batteries are attached to the surface of the smart card. The voltage division value at the battery output terminal is continuously collected by the ADC channel built into the MCU and converted into a digital quantity as the photovoltaic energy.
[0032] Step 101: Determine the light intensity based on the photoelectric energy.
[0033] Light intensity is a physical quantity that characterizes the brightness of the environment in which the card is located. The greater the photosensitive energy, the greater the light intensity. The light intensity corresponding to the photosensitive energy can be found in the light intensity correspondence table. For example, a photosensitive energy of 0.5 corresponds to 10 lux, and a photosensitive energy of 2.0 corresponds to 300 lux. The light intensity correspondence table is a data table that records different photosensitive energies and their corresponding light intensities.
[0034] The light intensity mapping table is achieved by placing the smart card under an adjustable standard light source (such as an integrating sphere or a calibrated LED lightbox), using a high-precision illuminance meter to simultaneously measure the actual light intensity on the card surface, and simultaneously acquiring the output voltage of the solar thin-film battery through the MCU's ADC; starting from 0 lux, the light intensity is gradually increased to a saturation value (such as 1000 lux), and a set of data points (light intensity, photoelectric energy) is recorded at fixed intervals (such as 10 lux or 50 lux); the collected data points are nonlinearly fitted (such as using a polynomial or exponential function), or a linear interpolation table is directly constructed, and the mapping table is stored in the card's internal memory; during the calibration process, the color temperature of the light source must be kept constant (such as 5500K), and the dark current offset must be deducted to ensure that the mapping accuracy covers the actual use scenario of the smart card. The data tables used below can all be calibrated by referring to the steps above, that is, controlling variables to obtain sample data points, and then linearly interpolating to form the corresponding data table.
[0035] Step 102: Match the lighting environment based on the light intensity and retrieve the usage records.
[0036] The lighting environment refers to the type of light received by the smart card, such as sunlight, lamplight, and no light. The lighting environment corresponding to the light intensity can be found from the environment correspondence table. To avoid frequent misjudgments of the environment type (sunlight, lamplight, no light) due to instantaneous fluctuations in light (such as shadows and flickering lights), an anti-interference algorithm can be adopted: First, the continuously collected light intensity is averaged or filtered by a sliding window to suppress high-frequency noise. Then, a hysteresis comparison mechanism is introduced—that is, the environment type is only determined to switch when the light intensity is continuously higher or lower than a certain threshold within a set time. At the same time, the confidence weight of the matching results is combined with the time period information (such as day / night) in the records to further improve the robustness of environment recognition. The environment correspondence table is a data table that records different light intensities and their corresponding lighting environments.
[0037] Usage records refer to the lighting environment records when the card reader reads the smart card. The lighting environment records of the last 7 days when the smart card was used can be saved in hourly format as historical records, and historical records in the same time period as the current usage record can be retrieved.
[0038] Step 103: Determine the baseline environment based on the usage records.
[0039] The baseline environment refers to the main lighting environment in the usage record. The proportion of each lighting environment in the usage record can be calculated, and the lighting environment with the largest proportion is used as the baseline environment.
[0040] Step 104: Compare the lighting environment with the reference environment to determine the environmental deviation.
[0041] Environmental deviation refers to a numerical value used to show the difference between the lighting environment and the reference environment. The lighting environment can be sorted according to the intensity of the light and the difference between the lighting environments can be used as the environmental deviation. For example, if the lighting environments are from largest to smallest as sunlight, artificial light, and no light, then the environmental deviation between sunlight and artificial light is 1, and the environmental deviation between sunlight and no light is 2.
[0042] Step 105: When the environmental deviation is greater than the preset loss threshold, select a prompt mode based on the photoelectric energy.
[0043] The loss threshold refers to the environmental deviation threshold at which the smart card is at risk of being lost. In this embodiment, 2 can be used as the loss threshold. An environmental deviation greater than the loss threshold indicates a large difference between the lighting environment and the reference environment, meaning that the environment in which the smart card is located is different from the environment it is used in regularly. The prompt mode refers to the mode in which the LEDs emit light, including constant light, low-frequency flashing, high-frequency flashing, and cycle, as well as the number of LEDs emitting light simultaneously. Prioritize emitting light on all LEDs, and then select the light emission type according to the power consumption of emitting light on all LEDs. For example, for a smart card with 5 LEDs, when the photoelectric energy is 5, the low-frequency flashing of 5 LEDs is selected as the prompt mode. The prompt mode corresponding to the photoelectric energy can be looked up in the mode correspondence table, which is a data table that records different photoelectric energy and their corresponding prompt modes.
[0044] Step 106: In response to the prompt mode, generate and send a smart card light-up command.
[0045] The smart card's light-emitting command is a control signal that drives the LED to work according to the selected mode. It includes parameters such as brightness, frequency, and duty cycle. The MCU outputs a PWM waveform to the LED driver circuit, which converts the digital command into electrical pulses, causing the LED to emit the corresponding light effect.
[0046] The system collects photoelectric energy from solar cells to determine the lighting environment of the smart card and compares it with the baseline environment recorded in historical usage data. It calculates the environmental deviation to determine if the card is lost. After the card is lost, it matches the number of LEDs that can fully emit light according to the photoelectric energy and generates a smart card light-up command to control the corresponding number of LEDs to emit light. This makes it easier for users to find lost smart cards and improves the convenience of using smart cards.
[0047] An embedded light-emitting method for smart cards further includes: Step 107: When the environmental deviation is not greater than the preset loss threshold, determine the illumination rate according to the illumination intensity, and take the absolute value of the illumination rate as the absolute rate.
[0048] An environmental deviation of no more than the loss threshold indicates that the smart card is in an environment similar to the environment it is used in frequently. In this case, it is difficult to determine whether the smart card is lost based on the lighting environment. The light rate refers to the change in light intensity per unit time, that is, the first derivative of light intensity with respect to time. The absolute rate refers to the absolute value of the light rate, which is used to determine the trend of light intensity change.
[0049] Step 108: If the absolute rate is greater than the preset change threshold, determine the change time based on the absolute rate, and determine the starting intensity based on the illumination rate.
[0050] The change threshold refers to the absolute rate critical value for determining whether a smart card has been interfered with. A threshold of 50 lux / s can be used. An absolute rate exceeding the change threshold indicates that the light intensity is changing too rapidly, suggesting human interference with the smart card. The moment of change is the timestamp when the absolute rate first exceeds the change threshold, recorded by the system clock. The initial intensity is the light intensity before the absolute rate first exceeds the change threshold; the average light intensity within 0.5 seconds before the change moment is taken as the initial intensity.
[0051] Step 109: Match the replacement interval according to the initial strength.
[0052] The replacement range refers to the range of light intensity that the card should fall into after it is replaced. It is a tolerance bandwidth (e.g., 15%) that fluctuates around the initial intensity. For example, if the initial intensity is 300 lux, the replacement range is 255 lux to 345 lux.
[0053] Step 110: Compare the light intensity and the replacement interval to determine the smart card status.
[0054] The smart card status refers to the card's current usage relative to the user, including three types: "idle and ready to use," "in use," and "replaced." The initial status of the smart card is "idle and ready to use," and when the absolute rate of change exceeds the change threshold, the initial status of the smart card is updated to "in use." The smart card status is then determined according to the following rules: if the current light intensity is within the replacement range, the smart card status is determined to be "replaced"; if the current light intensity is not within the replacement range, the smart card status is determined to be "in use."
[0055] Step 111: When the smart card status is consistent with the preset access status, determine the waiting time by combining the change time and the preset read command.
[0056] The "accessible state" refers to the situation where the smart card is in "accessible state". When the smart card state is the same as the accessible state, it means that the smart card has not been returned to its original position, that is, the smart card has not been mistakenly accessed. The read command refers to the command received by the NFC module from the external card reader. The waiting time refers to the time from the moment of change to the first receipt of the read command, which can be recorded by the system clock.
[0057] Step 112: If the waiting time exceeds a preset waiting threshold, generate and send a smart card light-up command in response to the prompt mode.
[0058] The waiting threshold refers to the maximum allowable waiting time to trigger a loss detection. 60 seconds can be used as the waiting threshold. If the waiting time is longer than the waiting threshold, it means that the smart card has not been used for a long time after it has been taken out. At this time, the card may be lost. The card will light up in time according to the smart card light-up command to remind the user.
[0059] By using sudden changes in light to detect the card retrieval action, and combining this with the return interval to determine whether the smart card has been returned, the system also counts the waiting time after the smart card is retrieved if it has not been returned. If the waiting time is too long, the system determines that the smart card is lost and controls the LED to light up, thereby improving the convenience of using the smart card.
[0060] An embedded light-emitting method for smart cards further includes: Step 113: When the environmental deviation is greater than the preset loss threshold, determine the luminous intensity based on the photoelectric energy.
[0061] Luminous intensity refers to the maximum brightness physical quantity that an LED can emit under the drive of photoelectric energy. The greater the photoelectric energy, the greater the luminous intensity. The luminous intensity corresponding to the photoelectric energy can be found in the luminous intensity correspondence table, which is a data table that records different photoelectric energy and their corresponding luminous intensities.
[0062] Step 114: If the luminous intensity is less than the light intensity, respond to the photoelectric energy generation and send the energy storage command, and generate an intensity fluctuation curve based on the light intensity.
[0063] A luminous intensity less than the illuminance indicates that the light emitted by the LED is dimmer than the ambient light, meaning the LED's light is not noticeable in the current environment. An energy storage command refers to the control signal that stores the electrical energy generated by the solar cell into an energy storage module (such as a thin-film lithium battery or supercapacitor). An intensity fluctuation curve is an analog signal curve plotted sequentially over time based on continuously sampled illuminance.
[0064] Step 115: Convert the intensity fluctuation curve into a digital signal curve.
[0065] A digital signal curve refers to converting an intensity fluctuation curve into a discrete sequence of high and low levels through threshold comparison. The system sets a reference threshold (e.g., 70% of the current average light intensity). Intensities above the threshold are mapped to a high level "1", and those below the threshold are mapped to a low level "0", forming a binary digital curve.
[0066] Step 116: Identify the illumination sequence from the digital signal curve.
[0067] An illumination sequence is a string of characters composed of consecutive valid symbols in a digital signal curve. The digital signal curve is divided into segments according to unit time, and the maximum value of the digital signal curve within each segment is taken as the string value of the unit time. The string values are then connected in chronological order to form an illumination sequence.
[0068] Step 117: Compare the illumination sequence with the preset search sequence to determine the missing sequence.
[0069] The search sequence is a standard optical pulse code pre-set in the smart card, such as "10110010". It is used by the user to control the flashlight to emit the search sequence through a smart device such as a mobile phone after the smart card is lost, so as to trigger the light-emitting command of the lost smart card.
[0070] A missing sequence refers to the position of a code element where the search sequence is 1 and the illumination sequence is 0 after comparing each bit of the search sequence with the illumination sequence. For example, if the illumination sequence is "111110010", the illumination sequence is first split into "11111001" and "11110010", and then two missing sequences are obtained. That is, the missing sequence corresponding to "11111001" is the seventh bit, and the missing sequence corresponding to "11110010" is empty.
[0071] Step 118: When the missing sequence is empty, retrieve the stored energy based on the energy storage command.
[0072] A missing sequence indicates the presence of a complete search sequence within the illumination sequence, meaning a device has issued a search sequence, indicating the user is searching for their lost smart card nearby. Reserved energy refers to the energy accumulated in the energy storage module that can be used for light emission. The sum of the reserved energy and the photoelectric energy is calculated as the total energy. The overall mode corresponding to the total energy is then retrieved from the mode correspondence table. Finally, the smart card light emission command is updated to control the smart card to emit light in the overall mode.
[0073] Step 119: Update and send the smart card light-emitting command based on the stored electrical energy and the photoelectric energy.
[0074] After a smart card is lost, the system compares its luminous power with the ambient brightness. When the luminous intensity is low, it determines that the light is not obvious. At this time, it stores electrical energy and receives light pulse codes. After identifying a specific search sequence from the light pulse codes, it controls the LED to light up, making it easier for users to find their lost smart cards.
[0075] Reference Figure 2 Dynamic monitoring methods include: Step 200: When the smart card status is consistent with the preset access status, extract the AC component from the photoelectric energy.
[0076] The AC component refers to the fluctuating component in the photoelectric energy time-series signal after removing the DC trend. It can be extracted as the AC component by using a high-pass filter (cutoff frequency 0.2Hz) or by subtracting the mean of the sliding window. The dynamic signal with an amplitude less than 5% of the DC component can be used as the AC component.
[0077] Step 201: Analyze the AC components to form a feature vector.
[0078] The eigenvector is a combination of multiple quantitative indicators that characterize the motion pattern, including the root mean square value of the AC component, zero-crossing rate, peak factor, short-time energy entropy, etc. The above indicators are calculated within a fixed time window (such as 1 second) and normalized to form a five-dimensional floating-point array eigenvector.
[0079] Step 202: Select similar vectors from the preset dynamic vectors according to the feature vectors.
[0080] Dynamic vectors are feature vectors corresponding to typical motion patterns stored during the offline training phase, such as "static template", "handheld walking template", and "flipping template".
[0081] A similar vector is a dynamic vector that is closest to the feature vector. The Euclidean distance or cosine similarity between the feature vector and each dynamic vector can be calculated, and the dynamic vector with the smallest Euclidean distance or the highest cosine similarity is selected as the similar vector.
[0082] Step 203: Compare the feature vector and the similar vector to determine the vector deviation.
[0083] Vector deviation refers to the degree of difference between a feature vector and its matching similar vector. The Euclidean distance between the feature vector and the similar vector (or cosine similarity, which is used as an example in this embodiment) can be calculated as the vector deviation. The larger the Euclidean distance, the more the current motion pattern deviates from the known typical pattern.
[0084] Step 204: Determine the movement probability based on the vector deviation, and determine the light intensity coefficient based on the movement probability.
[0085] The movement probability is a numerical value that represents the likelihood that a smart card is currently being moved. The larger the vector deviation, the lower the probability that the smart card will be moved according to the current typical movement pattern. The movement probability corresponding to the vector deviation can be found in the probability correspondence table, which is a data table that records different vector deviations and their corresponding movement probabilities.
[0086] The light intensity coefficient refers to the coefficient value that adjusts the waiting threshold according to the movement of the smart card. The higher the movement probability, the more likely the smart card is to be taken away. In this case, the smart card should be triggered to emit light more quickly, that is, a smaller light intensity coefficient should be used. The light intensity coefficient corresponding to the movement probability can be found in the light intensity coefficient table. Then, the product of the light intensity coefficient and the initial waiting threshold is calculated as the new waiting threshold. The light intensity coefficient table is a data table that records different movement probabilities and their corresponding light intensity coefficients.
[0087] Step 205: Update the waiting threshold in response to the light intensity coefficient.
[0088] The system extracts AC components from photoelectric energy to form motion feature vectors, and compares them with dynamic vectors corresponding to different typical motion patterns to select the most similar vector. The system then assesses the probability of the smart card being carried away based on the deviation between the feature vector and the similar vector, and adaptively adjusts the loss response speed based on the movement probability. This allows the system to quickly trigger the smart card's light-up command after it is accidentally picked up by someone else, making it easier for users to find their lost smart cards.
[0089] Dynamic monitoring methods also include: Step 206: When the smart card status is consistent with the preset access status, the sensing field strength is collected.
[0090] The sensed field strength refers to the strength of the external radio frequency signal coupled to the NFC antenna in the idle state. The system periodically turns on the NFC receiving circuit (turning on for 10-50ms every 1-2 seconds) and obtains the sensed field strength by reading the field strength detection register inside the NFC chip.
[0091] Step 207: Determine the normalized value of the sensing field strength based on the sensing field strength, and perform low-pass filtering on the sensing field strength to determine the background field strength.
[0092] The normalized value of the induction field is the normalized result of the original induction field strength. It is obtained by linear transformation through a pre-calibrated minimum field strength (away from any electronic device) and maximum field strength (close to the card reader). The formula is: Normalized value of induction = (Induction field strength - Minimum field strength) / (Maximum field strength - Minimum field strength).
[0093] Background field strength is a slowly varying baseline obtained by low-pass filtering (such as sliding window averaging, with a window duration of 30 seconds) on the induced field strength sequence, representing the environmental electromagnetic background.
[0094] Step 208: Determine the background normalization value based on the background field strength.
[0095] The background normalization value refers to the normalized result of the original background field strength, which can be expressed by the formula: Background normalization value = (Background field strength - minimum field strength) / (maximum field strength - minimum field strength).
[0096] Step 209: Compare the normalized induction value and the normalized background value to determine the fluctuation range.
[0097] Fluctuation amplitude refers to a value used to demonstrate strong fluctuations at the exhibition site. It can be calculated as the difference between the normalized induction value and the normalized background value.
[0098] Step 210: Calculate the variance of the fluctuation amplitude as the amplitude variance.
[0099] Amplitude variance is the statistical dispersion of the fluctuation amplitude sequence within a fixed time window (e.g., 5 seconds). It is the variance of the fluctuation amplitude within a fixed time window and reflects the severity of changes in the radio frequency environment.
[0100] Step 211: Select the amplitude coefficient according to the amplitude variance.
[0101] The amplitude coefficient refers to the coefficient value used to adjust the waiting threshold according to the fluctuation of the field strength. The larger the amplitude variance, the more violent the fluctuation, that is, the greater the change in the electromagnetic environment of the smart card, and the more likely the smart card is to be moved. In this case, the smart card should be triggered to emit light more quickly, that is, a smaller amplitude coefficient should be used. The amplitude coefficient corresponding to the amplitude variance can be found in the amplitude coefficient table. Then, the product of the amplitude coefficient and the initial waiting threshold is calculated as the new waiting threshold. The amplitude coefficient table is a data table that records different amplitude variances and their corresponding amplitude coefficients.
[0102] Step 212: Update the waiting threshold in response to the amplitude coefficient.
[0103] The system utilizes an NFC antenna to detect the ambient radio frequency field strength and quantifies the background field strength. It then normalizes the field strength and the background field strength and calculates the difference as the fluctuation amplitude. Based on the amplitude variance of the fluctuation amplitude, it determines the probability that the smart card has been moved. By adaptively adjusting the loss response speed based on the movement probability, it reduces the failure of light fluctuation detection in dark or lightless environments and improves the accuracy of smart card light emission command triggering.
[0104] Dynamic monitoring methods also include: Step 213: When the smart card status is consistent with the preset access status, retrieve the change light intensity curve according to the change time.
[0105] The light intensity variation curve refers to the time series data of light intensity from the moment of change to the present. It can be directly extracted from the intensity fluctuation curve according to the moment of change, or it can be automatically generated by retrieving the light intensity after the moment of change.
[0106] Step 214: Select the reliable ratio from the variable light intensity curve according to the preset reliable threshold.
[0107] The reliable threshold refers to the minimum light intensity at which the AC component can fully reflect the movement of the smart card. The lower the light intensity, the less photoelectric energy is detected, and the more difficult it is to extract the AC component.
[0108] The reliability ratio refers to the percentage of points in a variable light intensity curve whose values exceed the reliability threshold out of the total number of points.
[0109] Step 215: Match the light intensity weights according to the aforementioned reliable ratio.
[0110] Light intensity weight represents the weight coefficient that the current light fluctuation feature should occupy in the comprehensive judgment. The larger the reliability ratio, the more accurate the data source of the light fluctuation feature, the more accurate the feature vector, and the larger the light intensity weight. The light intensity weight corresponding to the reliability ratio can be found in the weight correspondence table. The weight correspondence table is a data table that records different reliability ratios and their corresponding light intensity weights.
[0111] Step 216: Determine the comprehensive coefficient by combining the light intensity coefficient, amplitude coefficient, and light intensity weight.
[0112] The comprehensive coefficient refers to the coefficient value after comprehensively calculating the light intensity coefficient and amplitude coefficient according to the light intensity weight. It can be calculated using the formula: Comprehensive coefficient = Light intensity weight * Light intensity coefficient + (1 - Light intensity weight) * Amplitude coefficient. The product of the comprehensive coefficient and the initial waiting threshold is used as the new waiting threshold.
[0113] Step 217: Update the waiting threshold in response to the composite coefficient.
[0114] The reliability of light fluctuation detection is determined based on the ambient lighting conditions of the smart card, and light intensity weights are assigned according to the reliability. The light fluctuation detection results and radio frequency field strength detection results are then fused according to the light intensity weights to reduce the judgment bias caused by incomplete single-dimensional feature information and improve the accuracy of smart card light emission command triggering.
[0115] Reference Figure 3 Lost items handling methods include: Step 300: When the missing sequence is not empty, the display power is matched according to the light intensity.
[0116] The absence of a non-empty sequence indicates that there is no complete search sequence in the lighting sequence, meaning that the user is not nearby. Display power refers to the minimum power required to clearly emit a coded light effect under the current lighting environment. The greater the light intensity, the greater the display power. The display power corresponding to the light intensity can be found in the display correspondence table, which is a data table that records different light intensities and their corresponding display power.
[0117] Step 301: If the stored energy is greater than the displayed energy, retrieve the holding information according to the usage record.
[0118] The fact that the stored power is greater than the displayed power means that the stored power is sufficient to emit a coded light effect once. The holding information refers to the relevant information of the smart card, including the time of loss, the stored power, and contact information. The holding information can be retrieved from the system. The time of change can be used as the time of loss. The contact information is entered into the card when it is made.
[0119] Step 302: Generate information code according to the holding information.
[0120] Information encoding refers to converting the held information into a binary sequence suitable for light pulse transmission, such as using 4B6B encoding or Manchester encoding, to facilitate solar cell reception and decoding. Information encoding generally consists of 32 bytes.
[0121] Step 303: Generate an information sequence in response to the information encoding.
[0122] An information sequence refers to the LED on / off time sequence mapped from the encoded bit stream. For example, "1" corresponds to the LED being on for 100ms and "0" corresponds to the LED being off for 100ms. The information is encoded and converted into a complete on / off time sequence as the information sequence.
[0123] Step 304: Combine the information sequence and the preset lost sequence to generate a display sequence.
[0124] The lost sequence is a standardized lost alarm preamble sequence used to identify the information sequence from the illumination sequence. The display sequence is a live / off time sequence formed by concatenating the lost sequence and the information sequence, and the LEDs are controlled to emit holding information according to the display sequence.
[0125] Step 305: In response to the display sequence update smart card light-up command.
[0126] When the light pulse code does not match, it is determined that the user has not arrived near the smart card. At this time, an information code is generated based on the relevant holding information of the smart card, and the information code is converted into a display sequence of LED on and off. This allows the holding information to be transmitted to other devices in the same system via light pulses, making it easier for staff to retrieve lost smart cards and return them to users in a timely manner, thus improving the convenience of using smart cards.
[0127] Lost items handling methods also include: Step 306: When the missing sequence is not empty, compare the illumination sequence with the preset lost sequence to determine the lost features.
[0128] The missing feature is the position of the substring in the illumination sequence that matches the missing sequence. The system uses the sliding window correlation method to compare the received illumination sequence with the built-in missing sequence bit by bit, and records the index of the successfully matched segment as the missing feature.
[0129] Step 307: Identify the received sequence from the illumination sequence in response to the lost feature.
[0130] The received sequence refers to the optical pulse code that records the holding information of other lost smart cards, extracted from the light illumination sequence according to the loss characteristics, i.e., the last 32 bits of pulse data of the loss sequence.
[0131] Step 308: Read the remaining electrical energy from the received sequence, and determine the existing electrical energy by combining the stored electrical energy and the remaining electrical energy.
[0132] The remaining power is the reserve power for other lost smart cards. The received sequence can be converted from an optical pulse sequence into a binary sequence, and then the binary sequence can be decoded to obtain the holding information of other lost smart cards.
[0133] Existing electrical energy refers to the total amount of electrical energy stored in multiple smart cards, that is, the sum of stored electrical energy and remaining electrical energy is calculated as existing electrical energy.
[0134] Step 309: Determine the interval duration by combining the existing electrical energy, displayed electrical energy, and sensor electrical energy.
[0135] Intermittent duration refers to the time required to accumulate energy after continuously emitting coded light effects using existing electrical energy and photosensitive energy. Specifically, the duration of the statistical display sequence is taken as the lighting duration, the product of the lighting duration and the photosensitive energy is calculated as the lighting accumulation, the sum of the lighting accumulation and the existing electrical energy is calculated as the accumulated energy, and the difference between the accumulated energy and the displayed energy is calculated as the remaining energy. This calculation is repeated until the remaining energy is less than the displayed energy. Then, the difference between the displayed energy and the remaining energy is calculated as the energy gap, and the quotient of the energy gap and the photosensitive energy is calculated as the intermittent duration.
[0136] Step 310: Determine the execution period of light emission based on the interval duration, and generate a combined sequence by combining the lost sequence and the information sequence.
[0137] The execution period refers to the time period during which different smart cards emit coded light effects. For example, after emitting coded light effects 3 times in a row, there needs to be a 3-second interval. So, after the controlled smart card emits coded light effects once, there is a 1-second interval before the smart card emits the next coded light effect. The number of cycles of remaining power is calculated as the number of consecutive emissions.
[0138] The combination sequence refers to the display sequence corresponding to the combined information after combining the holding information of other lost smart cards and this smart card. The combined information includes information such as the time of loss, current power, contact information and number of smart cards, and controls the smart card to light up according to the execution time and combination sequence.
[0139] Step 311: In response to the execution period and the combined sequence, update the smart card light-emitting instruction.
[0140] The system identifies the loss sequence emitted by other smart cards when they are lost from the optical pulse code, thereby deciphering the remaining power of the other smart cards. Based on the reserve power and remaining power, the system plans the order in which the smart cards emit light, thus controlling multiple smart cards to emit light sequentially when multiple smart cards are lost in the same environment. This increases the duration of LED illumination and makes it easier for users to find their lost smart cards.
[0141] Lost items handling methods also include: Step 312: Read the fluctuation rate from the intensity fluctuation curve in response to the smart card's light emission command.
[0142] Fluctuation rate refers to the light emission rate after the smart card emits light according to the smart card's light emission command.
[0143] Step 313: Determine the average rate based on the fluctuation rate, and compare the fluctuation rate and the average rate to determine the rate deviation.
[0144] The average rate refers to the average light rate before the smart card issues a light emission command. It can be obtained by reading the light rate 1 second before the smart card issues a light emission command from the intensity fluctuation curve, and then calculating the average light rate 1 second as the average rate.
[0145] Rate deviation refers to a numerical value that shows the deviation of the current illumination rate. It can be calculated as the difference between the fluctuation rate and the average rate.
[0146] Step 314: When the rate deviation is greater than a preset deviation threshold, determine the deflection angle based on the rate deviation.
[0147] The deviation threshold refers to the critical value of the rate deviation used to determine whether a smart card has been moved. A rate deviation greater than the deviation threshold indicates a significant change in light intensity, exceeding historical variation, suggesting that the smart card may have been picked up. The deflection angle refers to the estimated change in the angle between the card surface normal and the direction of the light source. Since the rate deviation excludes environmental interference (i.e., average rate), the rate deviation is only caused by positional changes. Under stable environmental conditions, the light intensity received by the smart card is determined solely by the smart card's angle. By comparing changes in light intensity to determine the smart card's angle, the deflection angle corresponding to the rate deviation can be looked up in the deflection correspondence table. The deflection correspondence table is a data table that records different rate deviations and their corresponding deflection angles.
[0148] Step 315: If the deflection angle is greater than the preset pickup threshold, the lost electrical energy is determined from the light intensity in response to the lost sequence.
[0149] The pickup threshold refers to the angle threshold that distinguishes between a slight shaking (such as a gust of wind) and the action of someone picking up the smart card. If the deflection angle is greater than the pickup threshold, it means that the angle of the smart card has changed significantly. At this time, someone may pick up the smart card. Lost energy refers to the induced energy generated by the light corresponding to the lost sequence.
[0150] Step 316: Analyze the lost power to determine the location of the loss, and combine the location of the loss with the deflection angle to determine the deflection direction.
[0151] The lost location refers to the approximate direction of other smart cards that emit light corresponding to the lost sequence. The location of the solar cell that generates lost power can be read as the lost location. For example, when two solar cells are used, the lost location is the angular range of the solar cell that generates more lost power.
[0152] The deflection direction refers to the angular range of the lost direction relative to the smart card after it is picked up and deflected. It is calculated as the sum of the lost direction and the deflection angle.
[0153] Step 317: Generate a frequency distribution map based on the deflection orientation, and read the emission frequency from the frequency distribution map.
[0154] A frequency distribution diagram is a sector-shaped mapping table that describes the relationship between light emission frequency and spatial orientation. The closer to the deflection orientation, the higher the light emission frequency. For example, when the deflection orientation is from 0 degrees to 180 degrees, an LED located at 0 degrees (due north) corresponds to 2Hz flickering, and an LED located at 90 degrees (due east) corresponds to 5Hz flickering.
[0155] The light emission frequency refers to the actual light emission frequency of each LED. It is determined by reading the value from the frequency distribution diagram according to the installation position of the LED. The installation position of the LED is pre-entered during card production, and the LED light emission is controlled according to the light emission frequency.
[0156] Step 318: Update the smart card's light emission command in response to the light emission frequency.
[0157] By analyzing the light intensity fluctuation rate to determine the directional change of the smart card after it is picked up, the location of other smart cards lost after the smart card is picked up can be inferred, and the light emission frequency can be modulated. Then, the LEDs on the picked-up smart card flash at different frequencies in different locations to guide the finder to pick up other smart cards, making it easier for users to find their lost smart cards.
[0158] Based on the same inventive concept, embodiments of the present invention provide an embedded light-emitting system for smart cards, comprising: The data acquisition module is used to collect photoelectric energy. A memory for storing the program of any of the above-mentioned embedded light-emitting methods for smart cards; The processor is the unit of memory that allows programs to be loaded and executed by the processor.
[0159] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0160] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.
Claims
1. An embedded light-emitting method for smart cards, characterized in that, include: Step 100: Collect photoelectric energy; Step 101: Determine the light intensity based on the photoelectric energy; Step 102: Match the lighting environment based on the light intensity and retrieve the usage records; Step 103: Determine the baseline environment based on the usage records; Step 104: Compare the lighting environment with the reference environment to determine the environmental deviation; Step 105: When the environmental deviation is greater than the preset loss threshold, select a prompt mode based on the photoelectric energy; Step 106: In response to the prompt mode, generate and send a smart card light-up command; Also includes: Step 107: When the environmental deviation is not greater than the preset loss threshold, determine the illumination rate according to the illumination intensity, and take the absolute value of the illumination rate as the absolute rate. Step 108: If the absolute rate is greater than a preset change threshold, determine the change time based on the absolute rate, and determine the initial intensity based on the illumination rate; Step 109: Match the replacement interval according to the initial intensity; Step 110: Compare the light intensity with the replacement interval to determine the smart card status; Step 111: When the smart card status is consistent with the preset access status, determine the waiting time by combining the change time and the preset read command; Step 112: If the waiting time exceeds a preset waiting threshold, generate and send a smart card light-up command in response to the prompt mode.
2. The embedded light-emitting method for a smart card according to claim 1, characterized in that, Also includes: Step 113: When the environmental deviation is greater than the preset loss threshold, determine the luminous intensity based on the photoelectric energy; Step 114: If the luminous intensity is less than the light intensity, respond to the photoelectric energy generation and send the energy storage command, and generate an intensity fluctuation curve based on the light intensity; Step 115: Convert the intensity fluctuation curve into a digital signal curve; Step 116: Identify the illumination sequence from the digital signal curve; Step 117: Compare the illumination sequence with the preset search sequence to determine the missing sequence; Step 118: When the missing sequence is empty, retrieve the stored energy based on the energy storage command; Step 119: Update and send the smart card light-emitting command based on the stored electrical energy and the photoelectric energy.
3. The embedded light-emitting method for a smart card according to claim 1, characterized in that, It also includes a dynamic monitoring method, which includes: Step 200: When the smart card status is consistent with the preset access status, extract the AC component from the photoelectric energy. Step 201: Analyze the AC components to form a feature vector; Step 202: Select similar vectors from the preset dynamic vectors according to the feature vectors; Step 203: Compare the feature vector and the similar vector to determine the vector deviation; Step 204: Determine the movement probability based on the vector deviation, and determine the light intensity coefficient based on the movement probability; Step 205: Update the waiting threshold in response to the light intensity coefficient.
4. The embedded light-emitting method for a smart card according to claim 3, characterized in that, The dynamic monitoring method also includes: Step 206: When the smart card status is consistent with the preset access status, collect the sensing field strength; Step 207: Determine the normalized value of the sensing field strength based on the sensing field strength, and perform low-pass filtering on the sensing field strength to determine the background field strength; Step 208: Determine the background normalization value based on the background field strength; Step 209: Compare the normalized induction value and the normalized background value to determine the fluctuation amplitude; Step 210: Calculate the variance of the fluctuation amplitude as the amplitude variance; Step 211: Select the amplitude coefficient according to the amplitude variance; Step 212: Update the waiting threshold in response to the amplitude coefficient.
5. An embedded light-emitting method for a smart card according to claim 4, characterized in that, The dynamic monitoring method also includes: Step 213: When the smart card status is consistent with the preset access status, retrieve the change light intensity curve according to the change time; Step 214: Retrieve the reliable ratio from the variable light intensity curve according to the preset reliable threshold; Step 215: Match the light intensity weights according to the aforementioned reliable ratio; Step 216: Determine the comprehensive coefficient by combining the light intensity coefficient, amplitude coefficient, and light intensity weight; Step 217: Update the waiting threshold in response to the composite coefficient.
6. The embedded light-emitting method for a smart card according to claim 2, characterized in that, It also includes a loss handling method, which includes: Step 300: When the missing sequence is not empty, the display power is matched according to the light intensity; Step 301: If the stored energy is greater than the displayed energy, retrieve the holding information according to the usage record; Step 302: Generate information code according to the holding information; Step 303: Generate an information sequence in response to the information encoding; Step 304: Generate a display sequence by combining the information sequence and the preset loss sequence; Step 305: In response to the display sequence update smart card light-up command.
7. An embedded light-emitting method for a smart card according to claim 6, characterized in that, The method for handling lost items also includes: Step 306: When the missing sequence is not empty, compare the illumination sequence with the preset lost sequence to determine the loss characteristics; Step 307: Identify the received sequence from the illumination sequence in response to the lost feature; Step 308: Read the remaining electrical energy from the received sequence, and determine the current electrical energy by combining the stored electrical energy and the remaining electrical energy; Step 309: Determine the interval duration by combining the existing electrical energy, displayed electrical energy, and sensor electrical energy; Step 310: Determine the execution period of light emission based on the interval duration, and generate a combined sequence by combining the lost sequence and the information sequence; Step 311: In response to the execution period and the combined sequence, update the smart card light-emitting instruction.
8. An embedded light-emitting method for a smart card according to claim 7, characterized in that, The method for handling lost items also includes: Step 312: Read the fluctuation rate from the intensity fluctuation curve in response to the smart card's light emission command; Step 313: Determine the average rate based on the fluctuation rate, and compare the fluctuation rate and the average rate to determine the rate deviation; Step 314: When the rate deviation is greater than a preset deviation threshold, determine the deflection angle based on the rate deviation; Step 315: If the deflection angle is greater than the preset pickup threshold, the lost electrical energy is determined from the light intensity in response to the lost sequence; Step 316: Analyze the lost power to determine the location of loss, and combine the location of loss and the deflection angle to determine the deflection direction; Step 317: Generate a frequency distribution map based on the deflection azimuth, and read the emission frequency from the frequency distribution map; Step 318: Update the smart card's light emission command in response to the light emission frequency.
9. An embedded light-emitting system for smart cards, characterized in that, include: The data acquisition module is used to collect photoelectric energy. A memory for storing a program for an embedded light-emitting method for a smart card as described in any one of claims 1 to 8; The processor is the unit of memory that allows programs to be loaded and executed by the processor.