Product information full-chain tracing method and system

By using multiple antennas in the product traceability system to collect and process RSSI and phase data, and generate and match phase fingerprints, the problem of difficult to distinguish between real tags and cloned tags in full-chain traceability is solved, and higher accuracy and reliability are achieved.

CN119941281AInactive Publication Date: 2025-05-06GUANGZHOU XINSHENG GENERATION NETWORK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510094531.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-05-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the full-chain traceability of the product, it is difficult to accurately distinguish between real tags and cloned tags by using phase fingerprint matching, which is affected by the distance, angle and environment between the reader and the tag.

Method used

By using multiple antennas in front of the product to acquire RSSI and phase data, filter and weight processing, calculate the average RSSI value, average phase difference and phase spectrum characteristics, generate phase fingerprints, and establish correspondence in the phase fingerprint library to improve the discrimination and robustness of fingerprints.

Benefits of technology

It improves the accuracy and reliability of RFID applications based on phase fingerprints, reduces noise interference, enhances the recognition ability of cloned tags and real tags, and supports effective traceability of the entire product chain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119941281A_ABST
    Figure CN119941281A_ABST
Patent Text Reader

Abstract

The invention relates to a product information full-chain traceability method and system, and the method comprises the steps: obtaining a plurality of RSSI sets and phase sets of a traceability label before the traceability label is pasted on a product, carrying out the filtering of the RSSI sets and the phase sets, weighing the phase data according to the RSSI values, calculating the average RSSI value of the RSSI sets, the average phase difference of the phase sets, and the phase spectrum characteristics, and obtaining a phase fingerprint. Establishing a corresponding relation between the phase fingerprints and the average RSSI value, and adding the phase fingerprints into a phase fingerprint database; when the product full-chain information is inquired, obtaining a product code of the tracing label, obtaining a phase fingerprint of the label by using the RSSI and the phase received by each antenna, if the product code is in the product code library, obtaining the fingerprint of the tracing label from the fingerprint library according to the product code, and determining whether a preset condition is met according to the number of the antennas; and if yes, returning full-chain information of the product according to the product code, otherwise, prompting to change the position of the reader, and prompting a counterfeit product when the prompting frequency reaches a threshold value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of product tracing, and in particular to a method and system for tracing product information throughout the entire chain. Background Art

[0002] In order to ensure product quality and safety, it is crucial to establish an effective traceability system, and many organizations have begun to build a product traceability system. Traditional product traceability methods mainly rely on manual records and paper documents, with low information transmission efficiency, prone to information loss, tampering and other problems, and difficult to achieve effective traceability of the entire life cycle of the product. In addition, traditional traceability methods are opaque, making it difficult for consumers to participate in the traceability process, and unable to effectively supervise the production and circulation of products, which is not conducive to building consumer trust. With the rapid development of information technologies such as the Internet of Things, big data, and blockchain, new technical means have been provided for building a more efficient and reliable product traceability system.

[0003] However, traceability tags such as RFID can be easily cloned. If a malicious user reads the content of the traceability tag of a product and then writes it to a new tag, since the content of these new tags is the same as that of the real product tag, in subsequent queries, the real product information is returned to the consumer, but the product is indeed a counterfeit or inferior product. Although some simple methods can be used to verify whether it is a cloned tag, such as judging the number of queries, if the fake product tag is queried by the user for the first time, the consumer of the real product will query it again, but the real product will be regarded as a counterfeit product. In response to the problem of traceability tags being cloned, common solutions include using physical unclonable functions, dynamic keys, etc., but these methods generally require improvements to the hardware of the tag itself, which increases costs. The phase fingerprint method is used to identify cloned traceability tags. The phase fingerprint of the tag is obtained based on the subtle differences in the manufacturing process of the tag. The tag itself does not need to be modified, but it is affected by the distance, angle and surrounding environment of the tag reading. If the phase fingerprint is completely matched, the real tag is not easy to identify. How to improve the phase fingerprint and the phase fingerprint recognition process to identify cloned tags and real tags is crucial for the traceability of the entire product industry chain. Summary of the invention

[0004] In order to solve the problem that it is difficult to distinguish between real labels and cloned labels by using phase fingerprint matching in the whole chain traceability of products, a method for whole chain traceability of product information is provided in the first aspect, the method comprising: S1, before attaching the traceability label to the product, collect the RSSI received by each antenna of the reader and the phase corresponding to the RSSI to obtain the RSSI set and phase set of the antenna, and change the angle and / or distance of the reader relative to the label to obtain multiple RSSI sets and phase sets; S2, filter the RSSI set and the phase set, weight the phase data according to the RSSI value, calculate the average RSSI value of the RSSI set, the average phase difference of the phase set, and the phase spectrum characteristics, obtain the phase fingerprint based on the average phase difference and the phase spectrum characteristics, establish the corresponding relationship between the phase fingerprint and the average RSSI value, and add the phase fingerprint to the phase fingerprint library; S3, when querying the full chain information of the product, obtain the product code in the traceability label, use the RSSI and phase received by each antenna to obtain the phase fingerprint of the label, if the product code is in the product code library, then obtain the fingerprint of the traceability label from the fingerprint library according to the product code, and determine whether the preset conditions are met according to the number of antennas. If so, return the full chain information of the product according to the product code, otherwise, prompt to change the reader position, and when the number of prompts reaches the threshold, prompt a counterfeit product.

[0005] Preferably, filtering the RSSI set and the phase set is specifically: RSSI sets and phase sets are collected multiple times at the same position and angle, and the average value of multiple RSSI sets collected at the same position and angle is used as the filtered RSSI set, and the average value of multiple phase sets is used as the filtered phase set.

[0006] Preferably, the weighting of the phase data according to the RSSI value is specifically as follows: The RSSI in the RSSI set is normalized, and the phase of the phase set is weighted using the corresponding relationship between the RSSI set and the phase set.

[0007] Preferably, the determining whether a preset condition is met according to the number of antennas is specifically: Obtain the phase fingerprint set corresponding to the product code in the phase fingerprint library and the average RSSI value received by the antenna, and calculate the minimum deviation between the RSSI average value and the average RSSI value corresponding to the phase fingerprint in the phase fingerprint set; If the minimum deviation is greater than the threshold, the preset condition is not met; If the minimum deviation is not greater than the threshold, a preset number of phase fingerprints closest to the RSSI average value are found from the phase fingerprint set, the number of antennas in the reader when querying the full chain information of the product is obtained, and the distance to the preset number of phase fingerprints is calculated based on the number of antennas. If the distance is less than the preset value, the preset condition is met, otherwise, the preset condition is not met.

[0008] Preferably, the distance to a preset number of phase fingerprints is calculated based on the number of antennas, specifically: Calculate the absolute difference between the number of antennas in the reader when querying the full chain information of the product and the number of antennas when establishing the phase fingerprint library, determine the weight of the average phase difference and the weight of the phase spectrum feature when calculating the distance based on the absolute difference, and use the weight to calculate the distance to the preset number of phase fingerprints.

[0009] Preferably, the weight of the average phase difference and the weight of the phase spectrum feature when calculating the distance according to the absolute difference are specifically: Calculate the ratio of the absolute difference to the preset coefficient, and further calculate the value of the hyperbolic tangent function of the ratio, add half of the value of the hyperbolic tangent function to 1 as the average phase difference weight, and subtract half of the value of the hyperbolic tangent function from 1 as the weight of the phase spectrum feature.

[0010] Preferably, step S3 further includes: If the product code is not in the product code database, the message that the product cannot be found is returned.

[0011] On the other hand, a product information full-chain traceability system is provided, the system comprising: A data collection module is used to collect the RSSI received by each antenna of the reader and the phase corresponding to the RSSI before attaching the traceability label to the product to obtain the RSSI set and phase set of the antenna, and to change the angle and / or distance of the reader relative to the label to obtain multiple RSSI sets and phase sets; The phase fingerprint library establishment module is used to filter the RSSI set and the phase set, weight the phase data according to the RSSI value, calculate the average RSSI value of the RSSI set, the average phase difference of the phase set and the phase spectrum characteristics, obtain the phase fingerprint based on the average phase difference and the phase spectrum characteristics, establish the corresponding relationship between the phase fingerprint and the average RSSI value, and add the phase fingerprint to the phase fingerprint library; The product traceability module is used to obtain the product code in the traceability label when querying the full chain information of the product, and obtain the phase fingerprint of the label using the RSSI and phase received by each antenna. If the product code is in the product code library, the fingerprint of the traceability label is obtained from the fingerprint library according to the product code. If the preset conditions are met, the full chain information of the product is returned according to the product code. Otherwise, it prompts to change the reader position. When the number of prompts reaches the threshold, it prompts a counterfeit product.

[0012] Preferably, filtering the RSSI set and the phase set is specifically: RSSI sets and phase sets are collected multiple times at the same position and angle, and the average value of multiple RSSI sets collected at the same position and angle is used as the filtered RSSI set, and the average value of multiple phase sets is used as the filtered phase set.

[0013] Preferably, the weighting of the phase data according to the RSSI value is specifically as follows: The RSSI in the RSSI set is normalized, and the phase of the phase set is weighted using the corresponding relationship between the RSSI set and the phase set.

[0014] Preferably, the determining whether a preset condition is met according to the number of antennas is specifically: Obtain the phase fingerprint set corresponding to the product code in the phase fingerprint library and the average RSSI value received by the antenna, and calculate the minimum deviation between the RSSI average value and the average RSSI value corresponding to the phase fingerprint in the phase fingerprint set; If the minimum deviation is greater than the threshold, the preset condition is not met; If the minimum deviation is not greater than the threshold, a preset number of phase fingerprints closest to the RSSI average value are found from the phase fingerprint set, the number of antennas in the reader when querying the full chain information of the product is obtained, and the distance to the preset number of phase fingerprints is calculated based on the number of antennas. If the distance is less than the preset value, the preset condition is met, otherwise, the preset condition is not met.

[0015] Preferably, the distance to a preset number of phase fingerprints is calculated based on the number of antennas, specifically: Calculate the absolute difference between the number of antennas in the reader when querying the full chain information of the product and the number of antennas when establishing the phase fingerprint library, determine the weight of the average phase difference and the weight of the phase spectrum feature when calculating the distance based on the absolute difference, and use the weight to calculate the distance to the preset number of phase fingerprints.

[0016] Preferably, the weight of the average phase difference and the weight of the phase spectrum feature when calculating the distance according to the absolute difference are specifically: Calculate the ratio of the absolute difference to the preset coefficient, and further calculate the value of the hyperbolic tangent function of the ratio, add half of the value of the hyperbolic tangent function to 1 as the average phase difference weight, and subtract half of the value of the hyperbolic tangent function from 1 as the weight of the phase spectrum feature.

[0017] Preferably, the product tracing module is also used for: If the product code is not in the product code database, the message that the product cannot be found is returned.

[0018] In yet another aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute the method provided in any one of the embodiments of the first aspect.

[0019] In addition, a computing device is provided, comprising a memory and a processor. The memory stores executable code, and when the processor executes the executable code, the method provided in any one of the embodiments of the first aspect is implemented.

[0020] In order to solve the problem that the phase fingerprint of the traceability label is easily affected by the distance between the traceability label and the reader and the surrounding environment, and thus cannot accurately distinguish between the real label and the cloned label, the product full-chain traceability method and system provided by the present invention have the following advantages: 1. The RSSI and phase received by multiple antennas of the reader are used to avoid the problem that a single antenna is easily affected by noise.

[0021] 2. The phase is weighted according to the RSSI value to improve the quality and robustness of the phase fingerprint, thereby improving the accuracy and reliability of RFID applications based on the phase fingerprint. Moreover, since the phase is weighted by the RSSI value, the phase fingerprint will also contain RSSI information, which reduces the problem that the phase fingerprint obtained by relying solely on the phase is easily interfered by noise. Moreover, the phase fingerprint of the present invention describes the phase information from both the time domain and frequency domain perspectives, provides richer feature information, and improves the fingerprint differentiation.

[0022] 3. Aiming at the problem of diverse types of traceability tag readers used by consumers, a new phase fingerprint matching method is provided. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a flow chart of Embodiment 1; Figure 2 Schematic diagram of the reader antenna for the traceability tag; Figure 3 A flowchart for determining whether a preset condition is met; Figure 4 This is a structural diagram of the second embodiment. DETAILED DESCRIPTION

[0024] In this article, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0025] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] In a first embodiment of the present invention, a product information full-chain tracing method is provided, such as Figure 1 As shown, the method includes: S1, before attaching the traceability label to the product, collect the RSSI received by each antenna of the reader and the phase corresponding to the RSSI to obtain the RSSI set and phase set of the antenna, and change the angle and / or distance of the reader relative to the label to obtain multiple RSSI sets and phase sets; Before attaching the traceability label to the product, the reader uses multiple antennas to collect data and records the signal strength RSSI and phase information received by each antenna. RSSI represents the received signal power strength. The higher the RSSI value, the stronger the signal. Phase represents the offset of the signal waveform. When the reader is at a certain distance and angle from the traceability label, the RSSI and phase of the signal received by each antenna are obtained. For example, if the reader has 4 antennas, Figure 2As shown, each antenna will have an RSSI value and a phase value. Then, at a certain distance and angle, the reader will obtain 4 RSSI values ​​and phases when reading once. These 4 RSSIs constitute an RSSI set, and the 4 phases constitute a phase set. When the distance and / or distance between the reader and the traceability tag are changed, multiple RSSI sets and phase sets can be obtained. Table 1 shows multiple RSSI sets and phase sets corresponding to the traceability tag. The number of positions set here is 4 only for exemplary purposes and is not limited to 4 positions. In order to simulate consumers or managers reading traceability tags, more positions and / or angles can be set. The more positions and angles, the easier it is to identify whether the traceability tag is a cloned tag. Since consumers generally read traceability tags close to the tag and are located directly in front of the tag, in the application, the distance and angle at which consumers read the tag are counted, and then the position and angle in S1 are set. Among them, the traceability tag is preferably an RFID tag or an NFC tag.

[0027] Table 1 S2, filter the RSSI set and the phase set, weight the phase data according to the RSSI value, calculate the average RSSI value of the RSSI set, the average phase difference of the phase set, and the phase spectrum characteristics, obtain the phase fingerprint based on the average phase difference and the phase spectrum characteristics, establish the corresponding relationship between the phase fingerprint and the average RSSI value, and add the phase fingerprint to the phase fingerprint library; The signal of the traceability tag is easily affected by environmental noise and interference, and needs to be filtered to improve the quality and reliability of the data. In one embodiment, RSSI sets and phase sets are collected multiple times at the same position and angle, and the average value of multiple RSSI sets collected at the same position and angle is used as the RSSI set after filtering, and the average value of multiple phase sets is used as the phase set after filtering. In order to ensure that the data collected multiple times are measurements of the same physical state, the relative position and angle between the reader and the tag remain unchanged, and multiple measurements are performed continuously, such as 10 or 20 times of continuous collection, so that multiple RSSI and phase sets can be obtained. For each antenna, the RSSI values ​​collected multiple times are averaged. For example, assuming that at a certain position and angle, 4 antennas are used to collect data 5 times in a row. For antenna 1, 5 RSSI values ​​are obtained, then the RSSI value after antenna 1 filtering is the average value of these 5 RSSI values, and the RSSI value of each antenna is averaged to obtain the filtered RSSI set. Similar to RSSI, for each antenna, the phase values ​​collected multiple times are averaged.

[0028] The higher the RSSI value, the better the signal quality and the more reliable the communication between the tag and the reader. Conversely, the lower the RSSI value, the worse the signal quality and the phase measurement may be seriously interfered with or even completely unreliable. The phase data is weighted according to the RSSI value. The phase data with a higher RSSI value has a greater weight and plays a leading role in subsequent calculations and analysis. It also suppresses low-quality phase information, thereby reducing the impact of noise and interference on the phase fingerprint.

[0029] Different weights are assigned according to the RSSI value corresponding to each phase value. The higher the RSSI, the greater the weight. In one embodiment, the RSSI set is normalized, and the normalized value is used as the weight. The phase of the phase set is weighted using the correspondence between the RSSI set and the phase set. All RSSI values ​​in the filtered RSSI set are averaged to obtain an average value representing the signal strength at the location. The average RSSI value will be used for subsequent fingerprint matching and database indexing. The phase difference between the antennas is calculated, and then the phase differences at all positions are averaged. For example, if there are four antennas, the average phase difference of the four antennas is calculated. The filtered and weighted phase data is Fourier transformed to obtain a phase spectrum feature, and the calculated average phase difference and phase spectrum feature are combined into a vector as the phase fingerprint of the tag at the location. In one embodiment, the phase data is Fourier transformed to obtain an amplitude spectrum of the phase, and the amplitude spectrum of the phase is used as the spectrum feature of the phase.

[0030] Compared with the phase, the phase spectrum feature can better reflect the law of phase change with frequency, and can capture the phase change pattern of the tag at different positions or different antennas. It can better reflect the essential characteristics of the tag than a single phase value. Moreover, the Fourier transform used in calculating the phase spectrum feature itself has a certain noise resistance ability, which can disperse the noise components in the signal to different frequencies, thereby reducing the impact of noise on the fingerprint. It describes the phase information from both the time domain and frequency domain perspectives, provides richer feature information, and improves the fingerprint differentiation.

[0031] The generated phase fingerprint is associated with its corresponding average RSSI value. When matching fingerprints, a preliminary screening is performed based on the RSSI value to narrow the search range and improve the matching efficiency. The generated phase fingerprint and its corresponding average RSSI value are stored in the database and associated with the product's electronic product code (EPC).

[0032] S3, when querying the full chain information of the product, obtain the product code in the traceability label, use the RSSI and phase received by each antenna to obtain the phase fingerprint of the label, if the product code is in the product code library, then obtain the fingerprint of the traceability label from the fingerprint library according to the product code, and determine whether the preset conditions are met according to the number of antennas. If so, return the full chain information of the product according to the product code, otherwise, prompt to change the reader position, and when the number of prompts reaches the threshold, prompt a counterfeit product.

[0033] When the tag reader is used to read the traceability tag, the reader transmits a radio frequency signal to activate the tag, and the tag sends the stored electronic product code information such as EPC back to the reader. The reader uses its multiple antennas to receive the signal of the tag, and obtains the RSSI and phase information received by each antenna, and extracts the phase fingerprint of the tag from the received RSSI and phase information. The process of extracting the phase fingerprint of the tag is the same as the process of generating the phase fingerprint in S2, which will not be repeated here. First, the read product code is compared with the product code library. If the product code exists in the database, it means that the product is legal. Further, according to the product code, the phase fingerprint corresponding to the product code is retrieved from the phase fingerprint library. The currently read phase fingerprint is compared with the fingerprint retrieved from the fingerprint library. If the similarity or matching degree between the fingerprints exceeds a certain value, the full chain information of the product, such as planting information, production place, production date, batch number, logistics information, etc., is retrieved from the database according to the product code and returned to the user.

[0034] If the currently read phase fingerprint does not match the fingerprint retrieved from the database, that is, it does not meet the preset conditions, it means that the following situations may exist: the phase fingerprint reading is inaccurate due to environmental interference, tag position or reader angle, etc.; someone tried to use cloned tags for fraud. In order to eliminate the possibility of reading errors, the system will prompt the user to adjust the position or angle of the reader and re-collect data and fingerprint comparison. If after multiple attempts, such as 3 or 5 times, the match is still not successful, it can be basically determined that the product is a counterfeit product, and the system will warn the user.

[0035] In the phase fingerprint library, each traceability tag corresponds to multiple fingerprints. The traceable tag is determined by reading the product code, and then the target phase fingerprint of the tag among the multiple phase fingerprints is determined according to the RSSI average value. On the one hand, the amount of matching calculation can be reduced, and on the other hand, mismatching caused by phase winding can be prevented. In one embodiment, the determination of whether the preset condition is met according to the number of antennas is as follows: Figure 3 As shown, specifically: Obtain the phase fingerprint set corresponding to the product code in the phase fingerprint library and the average RSSI value received by the antenna, and calculate the minimum deviation between the RSSI average value and the average RSSI value corresponding to the phase fingerprint in the phase fingerprint set; If the minimum deviation is greater than the threshold, the preset condition is not met; If the minimum deviation is not greater than the threshold, a preset number of phase fingerprints closest to the RSSI average value are found from the phase fingerprint set, the number of antennas in the reader when querying the full chain information of the product is obtained, and the distance to the preset number of phase fingerprints is calculated based on the number of antennas. If the distance is less than the preset value, the preset condition is met, otherwise, the preset condition is not met.

[0036] Obtain the phase fingerprint set corresponding to the product code in the phase fingerprint library and the RSSI average value received by the antenna, calculate the minimum deviation between the RSSI average value and the average RSSI value corresponding to the phase fingerprint in the phase fingerprint set, if the calculated minimum deviation is greater than the threshold, the current signal strength is not close enough to all the phase fingerprints of this tag, no subsequent phase fingerprint comparison is performed, and it is directly determined as not meeting the preset conditions, thereby quickly eliminating the situation of poor signal quality or obvious mismatch, and improving the matching efficiency; in one embodiment, the minimum deviation is the ratio of the absolute difference between the RSSI average value and the average RSSI value to the average RSSI value. In order to distinguish the average value of the RSSI value when establishing the phase tag library, when the phase fingerprint is stored in the library, the average RSSI value is used to represent the average value of the RSSI value. When the user reads the traceability label to obtain the full chain information of the product, the RSSI average value is used to represent the average value of the RSSI value. That is to say, the average RSSI value and the RSSI average value are both average values ​​of the RSSI value, just to distinguish the average values ​​of the RSSI values ​​in different steps.

[0037] If the minimum deviation is not greater than the threshold, find several phase fingerprints that are closest to the current RSSI average value from the phase fingerprint corresponding to the tag. Since the number of antennas of the reader used by the user or consumer and the reader in S1 may be different, the reader used when establishing the phase fingerprint library may have a specific number of antennas, and the number of reader antennas used by the user or consumer when querying information may be different, which will cause deviations when directly comparing the phase fingerprints, because different numbers of antennas will produce phase spectrum features of different lengths. In one embodiment, the distance to the preset number of phase fingerprints calculated based on the number of antennas is specifically: Calculate the absolute difference between the number of antennas in the reader when querying the full chain information of the product and the number of antennas when establishing the phase fingerprint library, determine the weight of the average phase difference and the weight of the phase spectrum feature when calculating the distance based on the absolute difference, and use the weight to calculate the distance to the preset number of phase fingerprints.

[0038] More specifically, the weight of the average phase difference and the weight of the phase spectrum feature when calculating the distance according to the absolute difference are determined as follows: Calculate the ratio of the absolute difference to the preset coefficient, and further calculate the value of the hyperbolic tangent function of the ratio, add half of the value of the hyperbolic tangent function to half of 1 as the average phase difference weight, and subtract half of the value of the hyperbolic tangent function from half of 1 as the weight of the phase spectrum feature. Use (1+tanh(abs / c)) / 2 as the average phase difference weight, and (1-tanh(abs / c)) / 2 as the weight of the phase spectrum feature; where abs represents the absolute difference and c is the preset coefficient. When the absolute difference is 0, that is, when the number of antennas of the two readers is the same, the weights of the average phase difference and the phase spectrum feature are equal, both 0.5; if the reader used by the user has 2 antennas and the reader used to establish the fingerprint library has 4 antennas, the absolute difference is 2. Assuming the preset coefficient c is 8, the average phase difference weight is 0.62, and the weight of the phase spectrum feature is 0.38. When the number of antennas is different, the characteristic lengths of the phase spectra of the two are different. At this time, the phase read by the reader used by the user is padded with 0, so that the number of phases read by the reader used by the user is the same as the number of phases read by the reader used when establishing the fingerprint library. However, it should be noted that the average phase difference is calculated before the 0 is padded.

[0039] If the product code is not in the product code library, the information that the product cannot be found is directly returned. When the user uses the traceability label to trace the full chain information of the product, there will be three results: returning the full chain information of the product, not finding the product information, and counterfeit products. Among them, returning the full chain information of the product means that the product code is in the product code library and has passed the verification of the phase fingerprint of the traceability label; not finding the product information means that the product code is not in the product code library, then it is very likely that the traceability label is forged, of course, it is also possible that the electronic product code of the product has not been stored in the library. At this time, if it is still necessary to identify whether the electronic product code has not been stored in the library, the phase fingerprint of the traceability label can be further used for identification. Specifically, the matching degree of the traceability label and the phase fingerprint in the phase fingerprint library is compared according to the RSSI average value; counterfeit products are products whose electronic product labels exist in the product code library, but the traceability label has not passed the phase detection, which is likely to be a cloned traceability label. Of course, the product in this case is also a counterfeit and shoddy product.

[0040] In a second embodiment of the present invention, a product information full-chain traceability system is provided, such as Figure 4 As shown, the system comprises: A data collection module is used to collect the RSSI received by each antenna of the reader and the phase corresponding to the RSSI before attaching the traceability label to the product to obtain the RSSI set and phase set of the antenna, and to change the angle and / or distance of the reader relative to the label to obtain multiple RSSI sets and phase sets; The phase fingerprint library establishment module is used to filter the RSSI set and the phase set, weight the phase data according to the RSSI value, calculate the average RSSI value of the RSSI set, the average phase difference of the phase set and the phase spectrum characteristics, obtain the phase fingerprint based on the average phase difference and the phase spectrum characteristics, establish the corresponding relationship between the phase fingerprint and the average RSSI value, and add the phase fingerprint to the phase fingerprint library; The product traceability module is used to obtain the product code in the traceability label when querying the full chain information of the product, and obtain the phase fingerprint of the label using the RSSI and phase received by each antenna. If the product code is in the product code library, the fingerprint of the traceability label is obtained from the fingerprint library according to the product code. If the preset conditions are met, the full chain information of the product is returned according to the product code. Otherwise, it prompts to change the reader position. When the number of prompts reaches the threshold, it prompts a counterfeit product.

[0041] Preferably, filtering the RSSI set and the phase set is specifically: RSSI sets and phase sets are collected multiple times at the same position and angle, and the average value of multiple RSSI sets collected at the same position and angle is used as the filtered RSSI set, and the average value of multiple phase sets is used as the filtered phase set.

[0042] Preferably, the weighting of the phase data according to the RSSI value is specifically as follows: The RSSI in the RSSI set is normalized, and the phase of the phase set is weighted using the corresponding relationship between the RSSI set and the phase set.

[0043] Preferably, the determining whether a preset condition is met according to the number of antennas is specifically: Obtain the phase fingerprint set corresponding to the product code in the phase fingerprint library and the average RSSI value received by the antenna, and calculate the minimum deviation between the RSSI average value and the average RSSI value corresponding to the phase fingerprint in the phase fingerprint set; If the minimum deviation is greater than the threshold, the preset condition is not met; If the minimum deviation is not greater than the threshold, a preset number of phase fingerprints closest to the RSSI average value are found from the phase fingerprint set, the number of antennas in the reader when querying the full chain information of the product is obtained, and the distance to the preset number of phase fingerprints is calculated based on the number of antennas. If the distance is less than the preset value, the preset condition is met, otherwise, the preset condition is not met.

[0044] Preferably, the distance to a preset number of phase fingerprints is calculated based on the number of antennas, specifically: Calculate the absolute difference between the number of antennas in the reader when querying the full chain information of the product and the number of antennas when establishing the phase fingerprint library, determine the weight of the average phase difference and the weight of the phase spectrum feature when calculating the distance based on the absolute difference, and use the weight to calculate the distance to the preset number of phase fingerprints.

[0045] Preferably, the weight of the average phase difference and the weight of the phase spectrum feature when calculating the distance according to the absolute difference are specifically: Calculate the ratio of the absolute difference to the preset coefficient, and further calculate the value of the hyperbolic tangent function of the ratio, add half of the value of the hyperbolic tangent function to 1 as the average phase difference weight, and subtract half of the value of the hyperbolic tangent function from 1 as the weight of the phase spectrum feature.

[0046] Preferably, the product tracing module is also used for: If the product code is not in the product code database, the message that the product cannot be found is returned.

[0047] In a third embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first embodiment is implemented.

[0048] In a fourth embodiment of the present invention, a computer device is provided. The computer device includes at least a memory and a processor. A computer program is stored in the memory. When the computer program is executed by the processor, the method described in the first embodiment is implemented.

[0049] Through the description of the above implementation methods, technicians in this field can clearly understand that each implementation method can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0050] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it, and other embodiments may also be used. Although the present invention has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A full-chain product information traceability method, characterized in that: The method comprises: S1, before attaching the traceability label to the product, collect the RSSI received by each antenna of the reader and the phase corresponding to the RSSI to obtain the RSSI set and phase set of the antenna, and change the angle and / or distance of the reader relative to the label to obtain multiple RSSI sets and phase sets; S2, filter the RSSI set and the phase set, weight the phase data according to the RSSI value, calculate the average RSSI value of the RSSI set, the average phase difference of the phase set, and the phase spectrum characteristics, obtain the phase fingerprint based on the average phase difference and the phase spectrum characteristics, establish the corresponding relationship between the phase fingerprint and the average RSSI value, and add the phase fingerprint to the phase fingerprint library; S3, when querying the full chain information of the product, obtain the product code in the traceability label, use the RSSI and phase received by each antenna to obtain the phase fingerprint of the label, if the product code is in the product code library, then obtain the fingerprint of the traceability label from the fingerprint library according to the product code, and determine whether the preset conditions are met according to the number of antennas. If so, return the full chain information of the product according to the product code, otherwise, prompt to change the reader position, and when the number of prompts reaches the threshold, prompt a counterfeit product.

2. The method according to claim 1, characterized in that The filtering of the RSSI set and the phase set is specifically as follows: RSSI sets and phase sets are collected multiple times at the same position and angle, and the average value of multiple RSSI sets collected at the same position and angle is used as the filtered RSSI set, and the average value of multiple phase sets is used as the filtered phase set.

3. The method according to claim 1, characterized in that The phase data is weighted according to the RSSI value, specifically: The RSSI in the RSSI set is normalized, and the phase of the phase set is weighted using the corresponding relationship between the RSSI set and the phase set.

4. The method according to claim 1, characterized in that The determining whether the preset condition is met according to the number of antennas is specifically: Obtain the phase fingerprint set corresponding to the product code in the phase fingerprint library and the average RSSI value received by the antenna, and calculate the minimum deviation between the RSSI average value and the average RSSI value corresponding to the phase fingerprint in the phase fingerprint set; If the minimum deviation is greater than the threshold, the preset condition is not met; If the minimum deviation is not greater than the threshold, a preset number of phase fingerprints closest to the RSSI average value are found from the phase fingerprint set, the number of antennas in the reader when querying the full chain information of the product is obtained, and the distance to the preset number of phase fingerprints is calculated based on the number of antennas. If the distance is less than the preset value, the preset condition is met, otherwise, the preset condition is not met.

5. The method according to claim 4, characterized in that The distance to a preset number of phase fingerprints is calculated based on the number of antennas, specifically: Calculate the absolute difference between the number of antennas in the reader when querying the full chain information of the product and the number of antennas when establishing the phase fingerprint library, determine the weight of the average phase difference and the weight of the phase spectrum feature when calculating the distance based on the absolute difference, and use the weight to calculate the distance to the preset number of phase fingerprints.

6. The method according to claim 5, characterized in that The weight of the average phase difference and the weight of the phase spectrum feature when calculating the distance according to the absolute difference are specifically: Calculate the ratio of the absolute difference to the preset coefficient, and further calculate the value of the hyperbolic tangent function of the ratio, add half of the value of the hyperbolic tangent function to 1 as the average phase difference weight, and subtract half of the value of the hyperbolic tangent function from 1 as the weight of the phase spectrum feature.

7. The method according to claim 1, characterized in that Step S3 also includes: If the product code is not in the product code database, the message that the product cannot be found is returned.

8. A product information full-chain traceability system, characterized in that: The system comprises: A data collection module is used to collect the RSSI received by each antenna of the reader and the phase corresponding to the RSSI before attaching the traceability label to the product to obtain the RSSI set and phase set of the antenna, and to change the angle and / or distance of the reader relative to the label to obtain multiple RSSI sets and phase sets; The phase fingerprint library establishment module is used to filter the RSSI set and the phase set, weight the phase data according to the RSSI value, calculate the average RSSI value of the RSSI set, the average phase difference of the phase set and the phase spectrum characteristics, obtain the phase fingerprint based on the average phase difference and the phase spectrum characteristics, establish the corresponding relationship between the phase fingerprint and the average RSSI value, and add the phase fingerprint to the phase fingerprint library; The product traceability module is used to obtain the product code in the traceability label when querying the full chain information of the product, and obtain the phase fingerprint of the label using the RSSI and phase received by each antenna. If the product code is in the product code library, the fingerprint of the traceability label is obtained from the fingerprint library according to the product code. If the preset conditions are met, the full chain information of the product is returned according to the product code. Otherwise, it prompts to change the reader position. When the number of prompts reaches the threshold, it prompts a counterfeit product.

9. The system according to claim 8, characterized in that The determining whether the preset condition is met according to the number of antennas is specifically: Obtain the phase fingerprint set corresponding to the product code in the phase fingerprint library and the average RSSI value received by the antenna, and calculate the minimum deviation between the RSSI average value and the average RSSI value corresponding to the phase fingerprint in the phase fingerprint set; If the minimum deviation is greater than the threshold, the preset condition is not met; If the minimum deviation is not greater than the threshold, a preset number of phase fingerprints closest to the RSSI average value are found from the phase fingerprint set, the number of antennas in the reader when querying the full chain information of the product is obtained, and the distance to the preset number of phase fingerprints is calculated based on the number of antennas. If the distance is less than the preset value, the preset condition is met, otherwise, the preset condition is not met.

10. The system according to claim 9, characterized in that The distance to a preset number of phase fingerprints is calculated based on the number of antennas, specifically: Calculate the absolute difference between the number of antennas in the reader when querying the full chain information of the product and the number of antennas when establishing the phase fingerprint library, determine the weight of the average phase difference and the weight of the phase spectrum feature when calculating the distance based on the absolute difference, and use the weight to calculate the distance to the preset number of phase fingerprints.