Clothing anti-counterfeiting method and system based on wide area Internet of Things technology

By using wide-area IoT technology and an improved RSA asymmetric encryption algorithm, combined with QR code and cloud server verification, the problems of high cost and poor security in clothing anti-counterfeiting technology have been solved, realizing a low-cost, high-security clothing anti-counterfeiting system.

CN121810307APending Publication Date: 2026-04-07JIANGXI INST OF FASHION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-05
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing anti-counterfeiting technologies for clothing present a dilemma between cost and security. Hardware solutions are costly and complex to deploy, while QR code solutions have a static and simple anti-counterfeiting mechanism that is difficult to apply on a large scale.

Method used

By employing wide-area IoT technology, information is collected through a clothing traceability and inventory system and encrypted QR codes are generated. This information is then transmitted to a cloud server using low-power wide-area IoT technology. The system is verified using an improved RSA asymmetric encryption algorithm and a backend database to build a complete anti-counterfeiting system.

Benefits of technology

It achieves a low-cost, easy-to-deploy anti-counterfeiting solution for clothing, with high security and anti-counterfeiting capabilities, and can be applied on a large scale. Furthermore, it enhances the system's uniqueness and resistance to cracking through improved encryption algorithms and multi-dimensional verification logic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121810307A_ABST
    Figure CN121810307A_ABST
Patent Text Reader

Abstract

The invention discloses a garment anti-counterfeiting method and system based on a wide area Internet of Things technology, and relates to the technical field of commodity anti-counterfeiting, the system comprises a garment traceability checking table, a cloud server, a background database and a detection website, the garment traceability checking table collects commodity information and place-of-origin position information of garments; generating and printing a two-dimensional code label containing a traceability code query address, encrypting and packaging related data, and sending the data to a cloud server; the cloud server receives and decrypts the data, and the background database stores decrypted certified product information; a consumer scans the two-dimensional code to initiate a verification request, a cloud server data detection module compares the traceability code with a historical verification record to generate an authenticity judgment result, a website display result is detected, and verification information is recorded. The method corresponds to the operation steps of the system, low cost and high safety are both considered, and the method is suitable for large-scale application in the clothing industry; and the anti-counterfeiting reliability and practicability of the clothes are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of commodity anti-counterfeiting technology, in particular to a clothing anti-counterfeiting method and system based on wide-area Internet of Things technology. BACKGROUND

[0002] With the development of market economy and the popularity of online shopping, the phenomenon of counterfeit and inferior goods in the clothing field is becoming increasingly serious, which not only damages the rights and interests of consumers, but also has a negative impact on the image and direct economic interests of brand merchants. The existing clothing anti-counterfeiting technology mainly includes the following categories: anti-counterfeiting using special ink, laser holographic printing technology, anti-counterfeiting based on radio frequency identification, and anti-counterfeiting based on two-dimensional bar code. Among them, RFID anti-counterfeiting technology and two-dimensional code anti-counterfeiting technology are the hotspots of current research and application.

[0003] For example, the patent for invention with publication number CN111582890B discloses an anti-counterfeiting traceability and positioning system, commodity, method, device, platform and medium, which includes an Internet of Things (IOT) module fixed in the commodity and an identification platform. The IOT module has a non-changeable unique ID fixed therein, and when triggered, it sends the unique ID to the identification platform for authenticity identification. Although this scheme uses a hardware chip to achieve high anti-counterfeiting security, the IOT module has a high cost and needs to be fixed in the commodity. Large-scale deployment in commodities such as clothing, which are cost-sensitive and focus on wearing comfort, has limitations in economy and applicability. Another patent for invention with publication number CN104835045A provides a commodity anti-counterfeiting verification method and system based on Internet of Things identification services. The system uses a distributed information server to store commodity life cycle information and uses identification generation technology for anti-counterfeiting. This scheme aims to not set up a centralized management server, and its system architecture may bring complexity challenges to global and efficient data management and consistency verification.

[0004] In summary, the anti-counterfeiting schemes in the prior art, especially those based on hardware, often face the common problems of high manufacturing cost and high deployment complexity when applied to the clothing industry on a large scale. The low-cost two-dimensional code scheme, on the other hand, generally has the defects of easy data duplication, static and single anti-counterfeiting mechanism, and difficulty in effectively dealing with batch counterfeiting. Therefore, there is an urgent need in the field for a clothing anti-counterfeiting solution that can balance low cost, easy deployment and high security.

[0005] To this end, the present application proposes a clothing anti-counterfeiting method and system based on wide-area Internet of Things technology, aiming to solve the problem of difficulty in balancing low cost and high security anti-counterfeiting in the prior art. SUMMARY

[0006] The purpose of the present application is to make up for the deficiencies of the prior art, provide a clothing anti-counterfeiting method and system based on wide-area Internet of Things technology, which can collect clothing commodity information and origin location information through a clothing traceability checking table, generate a two-dimensional code containing a traceability code query address and encrypt data, transmit the data to a cloud server through a low-power wide-area Internet of Things, store genuine product information in a background database, and display verification results on a detection website, so as to balance low cost and high security, solve the problems of high cost or poor anti-counterfeiting performance of existing clothing anti-counterfeiting technologies, and meet the large-scale anti-counterfeiting application requirements of the clothing industry.

[0007] To solve the above technical problems, the present application provides the following technical solutions: on the one hand, a clothing anti-counterfeiting system based on wide-area Internet of Things technology, comprising: A clothing traceability checking table is used to collect commodity information and origin location information of clothing, generate a two-dimensional code label containing a traceability code query address, and print the label, and encrypt and package the commodity information, origin location information, and corresponding traceability code into a data packet; A cloud server is connected to the clothing traceability checking table through a network communication link, and is used to receive and decrypt the data packet; A background database is in communication connection with the cloud server, and is used to store the commodity information, origin location information, and corresponding traceability code processed by the cloud server, and constitutes a genuine product information record set; The cloud server is further configured with a data detection module, which is used to compare the traceability code in the request with the genuine product information record set in the background database in response to a verification request initiated by a consumer terminal after scanning the two-dimensional code label, and generate a true or false judgment result; A detection website is connected to the cloud server and the background database, and is used to display the true or false judgment result, the corresponding commodity information, and the origin location information to the consumer terminal, and record the occurrence time and cumulative number of verification requests.

[0008] Further, the clothing traceability checking table comprises a microcontroller module, a GPS positioning module in signal connection with the microcontroller module, a keyboard input module, a liquid crystal display module, a label printing module, and a low-power wide-area Internet of Things communication module; The microcontroller module is configured to perform the following operations: The microcontroller module is configured to perform the following operations: The microcontroller module is configured to perform the following operations: The microcontroller module is configured to perform the following operations: The microcontroller module is configured to perform the following operations:

[0009] Furthermore, the data encryption algorithm is an improved RSA asymmetric encryption algorithm. Its encryption process uses a public key to process plaintext data. The public key is composed of a modulus obtained by multiplying two large prime numbers and an integer that is coprime to Euler's totient function. The decryption process uses a private key paired with the public key to restore the ciphertext data. The improved RSA asymmetric encryption algorithm introduces a hybrid perturbation factor based on the current timestamp and the device's unique identifier in the prime number generation stage. The modulus calculation uses a dynamic offset adjustment function, and the specific process is as follows: Generate two large prime numbers and Calculate the modulus Calculate Euler's totient function Choose an integer satisfy and Calculate the private key satisfy ; Among them, in generating prime numbers and During the process, the hybrid perturbation factor is integrated. The hybrid perturbation factor is obtained by mapping the hardware serial number of the clothing traceability and inventory station with the Unix timestamp of the data packet generation time through a hash function. The dynamic offset adjustment function acts on the modulus. The calculation steps are as follows: ,in, and This is a small integer offset function derived based on the aforementioned hybrid perturbation factor.

[0010] Furthermore, when comparing the traceability code, the data detection module performs the following operations: Parse the verification request and extract the user traceability code from it; Perform a precise matching query on the complete set of genuine product information records in the background database; If a match is found, the historical verification request records corresponding to the user's source code will be further checked. The logic for generating the authenticity determination result is as follows: The product is deemed genuine only when a unique corresponding record is found in the backend database and the historical verification request count for that record is zero. If a record is matched but the number of historical verification requests is greater than zero, then the product will be marked as having been queried multiple times in the judgment result. If no record is found, the product is deemed counterfeit.

[0011] Furthermore, the detection website is configured as follows: Provides a web interface to receive HTTP or HTTPS requests initiated by consumer terminals after scanning a QR code; The source code is parsed from the request parameters and passed to the data detection module of the cloud server; Receive the authenticity determination result and related product information and place of origin information returned by the data detection module; The above information is rendered in the form of a dynamic webpage and returned to the browser on the consumer's terminal for display; At the same time, the timestamp of the verification request is updated in the corresponding record of the background database, and the verification count counter is incremented.

[0012] Furthermore, the network communication link is a low-power wide-area Internet of Things (IoT) communication network, which uses either LoRa or NB-IoT communication protocols to achieve long-distance, low-power wireless data transmission between the garment traceability and inventory station and the cloud server.

[0013] Furthermore, the microcontroller module of the garment traceability and inventory platform is pre-installed with an encryption key management unit. The encryption key management unit is responsible for storing the public key of the improved RSA asymmetric encryption algorithm and establishing a secure channel with the cloud server for key initialization and periodic updates.

[0014] On the other hand, a method for anti-counterfeiting clothing based on wide-area Internet of Things (IoT) technology includes: The product information and geographic coordinates of clothing are collected through the clothing traceability and inventory platform; Generate a unique traceability code corresponding to the garment, construct a query URL containing the server address and the traceability code, and encode the URL as a QR code image; The control label printing device prints the QR code graphic onto the physical label; An improved asymmetric encryption algorithm is used to encrypt the integrated product information, geographic coordinate information, and traceability code to form an encrypted data packet; Encrypted data packets are sent to the cloud server via a low-power wide-area IoT communication module. The cloud server receives encrypted data packets, decrypts them using the corresponding private key, and stores the decrypted valid data in the backend database. When a consumer uses a terminal device to scan the QR code on the physical tag and access the URL therein, the detection program in the cloud server is triggered. The detection program extracts the source code from the access request and queries the backend database for matching and comparison. Based on the comparison results and historical query records, a conclusion on the authenticity of the data is generated. The authenticity determination result and related product information will be returned to the consumer's terminal device for display, and the query log of the traceability code will be updated.

[0015] Compared with existing technologies, this anti-counterfeiting method and system for clothing based on wide-area Internet of Things technology has the following advantages: I. This invention integrates a low-power wide-area IoT communication module and QR code tags into a garment traceability and inventory platform to achieve information collection and identification. It employs an improved RSA asymmetric encryption algorithm to encrypt product information, origin location information, and traceability codes. Furthermore, it relies on cloud servers, a backend database, and a testing website to construct a complete anti-counterfeiting verification system. This avoids the drawbacks of traditional hardware anti-counterfeiting solutions, such as high cost, complex deployment, and unsuitability for large-scale applications in the garment industry. It also solves the problems of easily copied data and static, single anti-counterfeiting mechanisms in ordinary QR code anti-counterfeiting solutions. It achieves low cost and easy deployment while ensuring high anti-counterfeiting security, thus resolving the difficulty of balancing low cost and high security in existing garment anti-counterfeiting technologies and meeting the practical needs of large-scale application in the garment industry.

[0016] Second, this invention significantly improves the uniqueness and anti-cracking capability of encrypted data by introducing a hybrid perturbation factor based on the hardware serial number of the garment traceability and inventory platform and the timestamp of the data packet generation time into the improved RSA asymmetric encryption algorithm, and by adopting a dynamic offset adjustment function for modulus calculation. At the same time, the data detection module, through the judgment logic of accurate matching of full-quantity genuine product information and verification of historical verification request records, can not only accurately identify the authenticity of goods, but also mark goods that have been queried multiple times, effectively preventing the risk of traceability codes being copied and reused. In addition, the application of a low-power wide-area IoT communication module ensures low energy consumption and long-distance stability of data transmission between the garment production end and the cloud, improving the overall practicality and reliability of the system and providing more comprehensive security for the entire garment anti-counterfeiting process.

[0017] Other advantages, objectives and features of the invention will be set forth in part in the description which follows, and in part will be apparent to those skilled in the art from the following examination or study, or may be learned from the practice of the invention. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0019] Figure 1This is a system architecture diagram of the present invention; Figure 2 This is a data flow and verification logic diagram of the present invention; Figure 3 This is a flowchart illustrating the operation of the present invention. Detailed Implementation

[0020] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the following detailed description of the specific implementation methods, structures, features, and effects of the present invention, in conjunction with the accompanying drawings and preferred embodiments, is provided below.

[0021] Example 1

[0022] like Figure 1 and Figure 2 As shown, this embodiment discloses a specific implementation of a clothing anti-counterfeiting system and method based on wide-area Internet of Things (WAN) technology. The aim is to achieve low-cost, high-security anti-counterfeiting verification of clothing through information collection and encryption at a clothing traceability and inventory platform, data transmission via low-power WAN, decryption and detection on a cloud server, storage in a backend database, and result display on a detection website. The embodiment focuses on a detailed explanation of the improved RSA asymmetric encryption algorithm, data comparison logic, and the collaborative workflow of each component, ensuring the system is feasible and meets anti-counterfeiting requirements.

[0023] The system component configuration is implemented as follows: The apparel traceability and inventory control station includes a microcontroller module, a GPS positioning module, a keyboard input module, an LCD display module, a label printing module, and a low-power wide-area IoT communication module. The specific configurations of each module are as follows: Microcontroller module: The STM32L476RG microcontroller is selected. This microcontroller has low power consumption and supports multi-interface communication, which can meet the comprehensive needs of data acquisition, encryption operation and module control. Its internal built-in encryption key management unit is used to store the public key of the improved RSA asymmetric encryption algorithm, and can establish a secure channel with the cloud server to complete key initialization and periodic updates.

[0024] GPS positioning module: The Ublox NEO-6M GPS module is selected. This module has a positioning accuracy of up to 10 meters and supports second-level positioning. It can obtain the latitude and longitude coordinates of the garment production location in real time as the location information of the production location.

[0025] Keyboard input module: It adopts a 4×4 matrix keyboard, which supports number, letter and function key input, and is used by operators to manually input the product information of clothing, including product name, model, production batch, material and other information.

[0026] LCD display module: A 2.4-inch TFT LCD screen with a resolution of 320×240 is used to display the input product information, the obtained place of origin information and the QR code generation status in real time, so that operators can easily verify the data.

[0027] Label printing module: The Zebra ZD420 thermal printer is used, which supports printing labels with a width of 20-60mm. It can print QR codes containing traceability query addresses on thermal labels, which are then affixed to designated positions on clothing hang tags.

[0028] Low-power wide-area IoT communication module: The SX1278 LoRa module is selected, with a working frequency of 433MHz, a communication rate of 125kbps, and a transmission distance of 1-3 kilometers, which meets the needs of long-distance, low-power wireless data transmission between garment production plants and cloud servers.

[0029] Cloud server: Alibaba Cloud ECS instance is selected, configured with 2 cores, 4GB memory, 50GB SSD storage, and CentOS 7.9 operating system. Data decryption module, data detection module and detection website backend service are deployed, supporting more than 100 verification requests per second.

[0030] Backend database: MySQL 8.0 is used. A "Genuine Product Information Record Table" is created, with the following fields in its structure: Product ID: Primary key, INT type, auto-incrementing, used to uniquely identify each record; Product information: VARCHAR type, length 255, stores information such as clothing name, model, and production batch; Origin location information: VARCHAR type, length 100, stores the latitude and longitude coordinates string obtained by the GPS module; Traceability code: VARCHAR type, length 64, unique index, storing a traceability code that uniquely corresponds to the garment; Historical verification count: INT type, default value 0, records the cumulative number of times this trace code has been verified; Recent Verification Timestamp: BIGINT type, default value 0, records the Unix timestamp of the most recent verification of this source code.

[0031] The testing website is developed based on the ASP.NET framework, uses the HTTPS protocol to ensure communication security, is deployed on the aforementioned cloud server, provides a responsive web interface, adapts to the display needs of different terminals such as smartphones and tablets, and supports the reception and processing of HTTP and HTTPS requests.

[0032] The implementation of clothing information collection and label generation is as follows: Product information input: Operators use the keyboard input module to input the product name, model, production batch, and material of the garment. The input information is displayed on the LCD display module in real time. After verifying that the information is correct, the operator presses the "confirm" button.

[0033] Origin location information acquisition: The microcontroller module sends a positioning command to the GPS positioning module. After receiving the satellite signal, the GPS module outputs the latitude and longitude coordinates. The microcontroller module reads these coordinates as the origin location information, which is also displayed on the LCD display module.

[0034] Traceability code generation: The microcontroller module uses the UUIDv4 standard to generate a 64-bit string as the unique traceability code for the garment. This traceability code corresponds one-to-one with the garment, ensuring that there are no duplicates.

[0035] QR code generation: The microcontroller module constructs a query URL containing the detection website URL and the traceability code. It encodes the query URL into a QR code graphic using the QR code encoding standard, sets the encoding version to 10, and the error correction level to H to ensure that the QR code can still be recognized even if it is partially damaged.

[0036] Label printing: The microcontroller module sends a printing command to the label printing module, which prints the generated QR code graphic onto the thermal label and prints a brief text prompt below the label. After printing is complete, the LCD display module displays "Label printing successful".

[0037] The data encryption process (implementation of the improved RSA asymmetric encryption algorithm) is implemented as follows: The microcontroller module calls the improved RSA asymmetric encryption algorithm to encrypt the integrated product information, origin location information, and traceability code, generating an encrypted data packet. The specific steps are as follows: Generation of mixed perturbation factors: Extract the hardware serial number of the clothing traceability and inventory station and the Unix timestamp of the data packet generation time, and concatenate the two into 20 bytes of raw data; The original data above is hashed using the SHA-256 hash function to generate a 256-bit hash value. Take the first 32 bits of the 256-bit hash value, convert it into a 32-bit integer, and denote it as the mixing perturbation factor. .

[0038] Generating large prime numbers: Based on the 2048-bit RSA key generation standard, Used as seed parameters in a prime number generation algorithm, this generates two large 1024-bit prime numbers. and Ensure that each generation and because They are different and unique, avoiding the security risks caused by fixed prime numbers.

[0039] Dynamic offset adjustment and module calculation: Define dynamic offset adjustment function and :Pick The high 16 bits are converted to 16-bit integer data as ,Pick The lower 16 bits are converted to 16-bit integer data as , and The values ​​are all in the range of 1-10 to ensure that the adjustment range of the modulus is controllable; Calculate the modulus The formula is: 4. Euler's totient function and key generation: Calculate Euler's totient function The formula is:

[0040] Select integer :satisfy and and Coprime, in this embodiment The value is 65537, which is a commonly used public key exponent in the RSA algorithm, balancing security and computational efficiency. Calculate the private key Solving using the Extended Euclidean Algorithm ,satisfy and In the model The two elements are multiplicative inverses, and the formula is:

[0041] The public key is The private key is stored in the encryption key management unit of the microcontroller module; It is pre-installed on a cloud server and will not be disclosed to the outside world.

[0042] Data encryption: The product information, place of origin information, and traceability code are concatenated into plaintext data in the format of "product information|place of origin information|traceability code"; Using public key RSA encryption is performed on the plaintext data to generate a 256-byte encrypted data packet.

[0043] The implementation of encrypted data packet transmission and cloud server processing is as follows: Data transmission: The microcontroller module encapsulates encrypted data packets according to the LoRa protocol frame format (+frame data + frame trailer) through the low-power wide-area IoT communication module and sends them to the corresponding LoRa gateway of the cloud server. After receiving the data, the gateway forwards it to the cloud server through a wired network.

[0044] Data decryption: The cloud server's data decryption module calls the private key. The encrypted data packet is decrypted using RSA to restore the plaintext data in the format of "product information | place of origin information | traceability code", and the integrity of the data is verified at the same time.

[0045] Data storage: The cloud server will split the decrypted valid data into product information, place of origin information and traceability code, and insert them into the "Genuine Product Information Record Table" in the background database to complete the construction of the genuine product information record set.

[0046] The consumer product verification process is implemented as follows: Request Initiation: Consumers use their smartphones' QR code scanning function to scan the QR code on the clothing tag. The smartphones automatically redirect to the query page of the testing website, initiating an HTTPS verification request. The request parameters include the aforementioned traceability code.

[0047] Request processing: The detection website receives HTTPS requests, parses the source code from the request parameters, and transmits the source code to the data detection module on the cloud server.

[0048] Data comparison: The data detection module performs the following operations: Parse the verification request to confirm the format and validity of the traceability code; In the "Genuine Product Information Record Table" of the background database, a precise matching query is performed using the unique index of the traceability code; If a match is found, the value of the "historical verification count" field of the record is read; if a match fails, the request is directly determined to be invalid.

[0049] Authenticity Verification: The data detection module generates authenticity verification results according to the following logic: If a unique record is matched and the "Number of Historical Verifications" is 0, the product is determined to be genuine. If a record is matched and the "Number of Historical Verifications" is greater than 0, the product is determined to be genuine and marked "This product has been queried multiple times"; If no record is found, the product is deemed counterfeit.

[0050] Results display and log updates: The testing website receives the authenticity determination results and corresponding product information and place of origin information, renders this information in the form of a dynamic webpage, and returns it to the smartphone browser for display. The testing website simultaneously updates the "recent verification timestamp" and "historical verification count" of the corresponding record in the "Genuine Product Information Record Table" in the backend database, completing the update of the verification log.

[0051] In summary, this embodiment ensures stable system operation by clearly defining the specific configuration of each system component and detailing the entire process of information collection, encryption, transmission, decryption, storage, and verification. This embodiment leverages low-power wide-area IoT and QR codes to meet the requirements of low cost and easy deployment, while ensuring high security through an improved RSA algorithm and multi-dimensional verification logic, effectively solving the problem of balancing cost and security in existing clothing anti-counterfeiting technologies.

[0052] Example 2

[0053] like Figure 3 As shown in Example 1, this example details the specific working steps of a clothing anti-counterfeiting method and system based on wide-area Internet of Things (IoT) technology in practical applications. This process covers the entire process from clothing information collection and encrypted data transmission to consumer verification, ensuring the reliable and efficient operation of the anti-counterfeiting system. The specific steps are as follows: 1. Information Collection: Operators manually input garment information, including product name, model, production batch, and material, through the keyboard input module on the garment traceability and inventory station. Simultaneously, the GPS positioning module automatically obtains the real-time latitude and longitude coordinates of the garment's origin as its location information. Both the input and acquired information are displayed on the LCD screen for operator verification.

[0054] 2. Traceability Code Generation: The microcontroller module generates a unique 64-bit traceability code based on the UUIDv4 standard to ensure that each garment has a unique identifier.

[0055] 3. QR Code Generation: The microcontroller module constructs a query URL containing the detection website URL and the aforementioned traceability code, and converts this URL into a QR code image using the QR code encoding standard. The error correction level is set to H during encoding to improve the QR code's error tolerance.

[0056] 4. Label Printing: The microcontroller module controls the label printing module to print the generated QR code onto a thermal label. The label also includes brief text prompts. After printing, the label is affixed to the designated location on the garment hangtag.

[0057] 5. Data Encryption: The microcontroller module calls an improved RSA asymmetric encryption algorithm to integrate product information, origin location information, and traceability code into a single data record, which is then encrypted using a public key to generate an encrypted data packet. A hybrid perturbation factor based on the device hardware serial number and the current timestamp is introduced during the encryption process to enhance data uniqueness and security.

[0058] 6. Data Transmission: Encrypted data packets are sent to the cloud server via a low-power wide-area IoT communication module. The communication process uses the LoRa protocol to achieve low-power wireless transmission over long distances.

[0059] 7. Data Decryption and Storage: After receiving the encrypted data packet, the cloud server uses the corresponding private key to decrypt it and restore the original data. Subsequently, the product information, place of origin information, and traceability code are stored in the "Genuine Product Information Record Table" of the backend database, forming a set of queryable genuine product information records.

[0060] 8. Consumer Verification Request: Consumers use their smartphones to scan the QR code on the clothing tag, which automatically redirects them to the verification page of the testing website. The consumer then sends a verification request to the server via HTTP or HTTPS protocol, and the request automatically includes the traceability code parameter.

[0061] 9. Request Parsing and Comparison: After receiving the request, the detection website parses the traceability code and transmits it to the data detection module on the cloud server. The data detection module queries the traceability code in the full set of genuine product records in the backend database and checks its historical verification count.

[0062] 10. Authenticity Verification: The data detection module executes verification logic based on the query results. If the traceability code exists in the database and the historical verification count is 0, the product is determined to be genuine. If the traceability code exists but the number of historical verifications is greater than 0, the product is determined to be genuine and marked "This product has been queried multiple times"; If the traceability code does not exist, the product is determined to be counterfeit.

[0063] 11. Result Return and Display: The testing website receives the judgment results and related product information, renders them in the form of dynamic web pages, and displays them on the browser interface of the consumer's smartphone.

[0064] 12. Verification Log Update: While the website returns the results, it updates the record corresponding to the traceability code in the backend database: increments the historical verification count by 1 and records the current verification timestamp.

[0065] The above steps are executed sequentially to form a closed-loop anti-counterfeiting process for clothing, achieving full traceability and verifiability from the production end to the consumer end.

[0066] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A clothing anti-counterfeiting system based on wide-area Internet of Things (IoT) technology, characterized in that, include: The apparel traceability and inventory platform is used to collect product information and origin location information of apparel, generate QR code labels containing traceability code query addresses and print them, and at the same time encrypt the product information, origin location information and corresponding traceability codes and package them into data packets. A cloud server is connected to the garment traceability and inventory platform via a network communication link to receive and decrypt the data packets; The background database is connected to the cloud server and is used to store product information, place of origin information and corresponding traceability codes after being decrypted by the cloud server, forming a set of genuine product information records. The cloud server is also equipped with a data detection module, which is used to respond to the verification request initiated by the consumer terminal after scanning the QR code label, compare the traceability code in the request with the set of genuine product information records in the background database, and generate a authenticity determination result. The testing website, connected to the cloud server and the backend database, is used to display the authenticity determination results, corresponding product information and place of origin information to consumer terminals, and record the time and cumulative number of verification requests.

2. The clothing anti-counterfeiting system based on wide-area Internet of Things technology according to claim 1, characterized in that, The garment traceability and inventory station includes a microcontroller module, a GPS positioning module connected to the microcontroller module, a keyboard input module, an LCD display module, a label printing module, and a low-power wide-area IoT communication module. The microcontroller module is configured to perform the following operations: The system receives product information via the keyboard input module, obtains real-time origin location information via the GPS positioning module, controls the label printing module to print a QR code containing the traceability code query address onto a physical label, and calls a data encryption algorithm to encrypt the integrated product information, origin location information, and traceability code to generate an encrypted data packet. Finally, the encrypted data packet is sent to the cloud server via the low-power wide-area IoT communication module.

3. The clothing anti-counterfeiting system based on wide-area Internet of Things technology according to claim 2, characterized in that, The data encryption algorithm is an improved RSA asymmetric encryption algorithm. Its encryption process uses a public key to process plaintext data. The public key is composed of a modulus obtained by multiplying two large prime numbers and an integer that is coprime to Euler's totient function. The decryption process uses a private key paired with the public key to restore the ciphertext data. The improved RSA asymmetric encryption algorithm introduces a hybrid perturbation factor based on the current timestamp and the device's unique identifier in the prime number generation stage. The modulus calculation uses a dynamic offset adjustment function, and the specific process is as follows: Generate two large prime numbers and Calculate the modulus Calculate Euler's totient function Choose an integer satisfy and Calculate the private key satisfy ; Among them, in generating prime numbers and During the process, the hybrid perturbation factor is integrated. The hybrid perturbation factor is obtained by mapping the hardware serial number of the clothing traceability and inventory station with the Unix timestamp of the data packet generation time through a hash function. The dynamic offset adjustment function acts on the modulus. The calculation steps are as follows: ,in, and This is a small integer offset function derived based on the aforementioned hybrid perturbation factor.

4. The clothing anti-counterfeiting system based on wide-area Internet of Things technology according to claim 1, characterized in that, When comparing the traceability code, the data detection module performs the following operations: Parse the verification request and extract the user traceability code from it; Perform a precise matching query on the complete set of genuine product information records in the background database; If a match is found, the historical verification request records corresponding to the user's source code will be further checked. The logic for generating the authenticity determination result is as follows: The product is deemed genuine only when a unique corresponding record is found in the backend database and the historical verification request count for that record is zero. If a record is matched but the number of historical verification requests is greater than zero, then the product will be marked as having been queried multiple times in the judgment result. If no record is found, the product is deemed counterfeit.

5. The clothing anti-counterfeiting system based on wide-area Internet of Things technology according to claim 1, characterized in that, The detection website is configured as follows: Provides a web interface to receive HTTP or HTTPS requests initiated by consumer terminals after scanning a QR code; The source code is parsed from the request parameters and passed to the data detection module of the cloud server; Receive the authenticity determination result and related product information and place of origin information returned by the data detection module; The above information is rendered in the form of a dynamic webpage and returned to the browser on the consumer's terminal for display; At the same time, the timestamp of the verification request is updated in the corresponding record of the background database, and the verification count counter is incremented.

6. The anti-counterfeiting system for clothing based on wide-area Internet of Things technology according to claim 1, characterized in that, The network communication link is a low-power wide-area Internet of Things (IoT) communication network, which uses either LoRa or NB-IoT communication protocols to achieve long-distance, low-power wireless data transmission between the garment traceability and inventory station and the cloud server.

7. A clothing anti-counterfeiting system based on wide-area Internet of Things technology according to claim 2 or 3, characterized in that, The microcontroller module of the garment traceability and inventory platform is pre-installed with an encryption key management unit. The encryption key management unit is responsible for storing the public key of the improved RSA asymmetric encryption algorithm and establishing a secure channel with the cloud server for key initialization and periodic updates.

8. A method for anti-counterfeiting clothing based on wide-area Internet of Things (IoT) technology, applicable to the anti-counterfeiting clothing system based on wide-area IoT technology as described in any one of claims 1-7, characterized in that, The method includes: The product information and geographic coordinates of clothing are collected through the clothing traceability and inventory platform; Generate a unique traceability code corresponding to the garment, construct a query URL containing the server address and the traceability code, and encode the URL as a QR code image; The control label printing device prints the QR code graphic onto the physical label; An improved asymmetric encryption algorithm is used to encrypt the integrated product information, geographic coordinate information, and traceability code to form an encrypted data packet; Encrypted data packets are sent to the cloud server via a low-power wide-area IoT communication module. The cloud server receives encrypted data packets, decrypts them using the corresponding private key, and stores the decrypted valid data in the backend database. When a consumer uses a terminal device to scan the QR code on the physical tag and access the URL therein, the detection program in the cloud server is triggered. The detection program extracts the source code from the access request and queries the backend database for matching and comparison. Based on the comparison results and historical query records, a conclusion on the authenticity of the data is generated. The authenticity determination result and related product information will be returned to the consumer's terminal device for display, and the query log of the traceability code will be updated.

Citation Information

Patent Citations

  • Method and system for merchandise anti-counterfeiting authentication based on internet of things identity service

    CN104835045A

  • Anti-counterfeiting traceability, positioning system, product, method, device, platform and medium

    CN111582890B