System implementation method for recording product information based on NFC chip
By automatically writing and reviewing the production information of NFC chips on the production assembly line, the problems of irregular operations, security risks and resource waste in the existing technology are solved, localized storage and query of product information are realized, and application flexibility and security are improved.
Patent Information
- Application Number
- CN202411893201.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-11
AI Technical Summary
The application of existing NFC chips on products has problems such as irregular operation, difficulty in security risk management, high technical implementation thresholds, and relying on the Internet for data interaction, resulting in data writing errors, waste of resources and high service pressure.
A system implementation method based on NFC chip is adopted, and by installing an NFC chip reader and photoelectric sensor on the production assembly line, the production information of each product chip is automatically written and reviewed. The system includes steps of data encryption writing, data review and data submission to ensure the stability and security of data writing.
It realizes the localized chip storage and query service for each product's production information, reduces dependence on the backend server, improves the flexibility, convenience, security and speed of the product in Internet of Things applications, and avoids human leakage and resource waste.
Smart Images

Figure CN119808811A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automated information recording, and in particular to a system implementation method for recording product information based on an NFC chip. Background Art
[0002] NFC electronic tags have the technical characteristics of short-range wireless communication, high-speed data transmission, high security, easy operation, large-capacity data storage, strong anti-counterfeiting, environmental protection and energy saving, and wide application compatibility. These characteristics make NFC electronic tags play an important role in many fields such as mobile payment, access control system, ticketing system, advertising push, smart home, logistics tracking, etc. With the continuous advancement of technology and the rapid development of the Internet of Things, the application of NFC electronic tags has gradually been applied to products in various industries. By implanting NFC electronic tags in products, it not only increases the added value of the products, but also brings consumers a more convenient, safe and interesting consumption experience. Smartphones with NFC functions can sense products with integrated NFC tags, and with the help of the high security and strong anti-counterfeiting properties of NFC chips, verify the authenticity of products and trace product information, which can effectively combat counterfeit and shoddy products and protect the rights and interests of consumers. Through the easy operation and application compatibility of NFC chips, marketing interactions with consumers can also be achieved, and various innovative applications such as enterprise private domain drainage, marketing interactions and promotions can be realized. The data storage characteristics of NFC chips are different from other product identifications. They can be used to record various effective information, allowing information to circulate with products, making it easier to manage and trace products, and have a wider application space and market prospects. Although NFC chips have many advantages, there are still constraints in actual applications. Due to the lack of reliable systematic means, irregular operation methods, security risk management, and technical implementation threshold constraints, operators face many challenges in the application of NFC chips in products, which often makes companies have a poor experience in the application of NFC chips.
[0003] The existing NFC tag technology used in products, information writing into NFC chips, mostly adopts manual operation, lacking automation and systematic means combined with automatic production lines. Since the chip data writing requires certain operation specifications and safety management requirements for operators, manual operation often leads to chip management security problems, prone to human safety accidents, causing the leakage of core keys and algorithms, and bringing security risks to the chip integration of products. At the same time, due to the non-standard operation of operators, it is difficult for users to accurately control the read and write position and read and write time of NFC chips. Non-standard operation often causes data writing errors, data omissions, and incomplete data. In actual applications, relying on operators to complete the information writing of NFC chips is problematic and quite unreliable. With the development and improvement of technology, everyone hopes to switch to the automatic direction. At present, the application system based on NFC chip mainly adopts the automatic information association method, that is, the core data is not stored in the chip, but mainly stored in the service background. This method is only the association between the background data and the chip. Although unified data management is achieved, all data interactions must be connected to the Internet, which increases the pressure of the background data service. Especially when a large number of products are querying information at the same time, all data response tasks are concentrated on the background data server, which is bound to cause service jams and untimely responses. At the same time, the server overhead will be quite huge. Another disadvantage is that any query must be connected to the Internet to request data services, which makes the anti-counterfeiting traceability query highly dependent on the network and data services. In special scenarios where users cannot connect to the Internet, they cannot use related system services. At the same time, the disadvantage is that the storage space of the NFC chip on the product is not fully utilized. The NFC chip as a localized small storage and data interaction function of the product has not been brought into play, and the data processing function of the user terminal device has not been able to play a role, thereby reducing the dependence of the terminal application on the server, which has caused a waste of resources to a certain extent. Therefore, after the product integrates the NFC chip, it often faces the above-mentioned problems in the integration with information, resulting in the reality of poor use effect;
[0004] Therefore, we propose a system implementation method for recording product information based on NFC chips. Summary of the invention
[0005] The purpose of the present invention is to provide a system implementation method for recording product information based on an NFC chip, which solves the problems raised in the background technology.
[0006] To achieve the above object, the present invention provides the following technical solution: a system implementation method for recording product information based on NFC chip, comprising the following method steps:
[0007] Step 1: Obtain NFC production data system information, start the system, establish production tasks, and obtain production information data from the third-party system through work orders for subsequent NFC chip records;
[0008] Step 2: Encrypt and write the NFC chip information data. Install an NFC chip reader / writer at the first operation position on the product assembly line where the NFC chip is installed. Real-time sensing of the chip on the product is performed. The above production information is combined in the order agreed upon by the system and written into the data storage area of the NFC chip on the product.
[0009] Step 3: NFC chip data review, install an NFC chip reader / writer at the second workstation on the product assembly line, read the stored data in the data storage area of the NFC chip of the product flowing through, and compare it with the data write record of the chip in the system. If they are the same, it means that the information is written successfully and the product is released; if they are not the same, the system notifies the subsequent rejection device to reject the product from the production line;
[0010] Step 4: NFC chip data submission. For the NFC chip data that has passed the review, after the production operation task is completed, the system will uniformly submit the chip ID number and the data content stored in the chip to the background data server, providing more detailed and in-depth background data query services for subsequent anti-counterfeiting and traceability applications based on product NFC.
[0011] As a preferred embodiment of the present invention, the data encryption writing process includes:
[0012] Step 1: System maintenance and acquisition of production data information, and combining the data information into a fixed sort string according to the system's conventions;
[0013] Step 2: At the first operation position, the NFC card reader obtains the NFC chip of the product flowing through the production line;
[0014] Step 3: Generate the encryption key of the corresponding 16-byte data information according to the chip ID, and use the generated encryption key to encrypt the previously formed string to form a ciphertext;
[0015] Step 4: The system generates a 4-byte chip read-write password. The system first verifies whether the original chip read-write password matches the read-write password in the chip. If the password verification is successful, the encrypted ciphertext is written to the data storage area of the NFC chip. If the writing is successful, the 4-byte chip read-write password replaces the original password, and the upper limit of the number of key authentication errors is set. The replaced 4-byte password becomes the chip read-write password; if the original chip read-write password is not successfully verified, the 4-byte chip read-write password is used for verification. If the verification is successful (indicating that the chip has been modified), the encrypted ciphertext is written to the data storage area of the NFC chip;
[0016] Step 5: If both the original read / write password and the generated 4-byte password of the chip are not verified successfully, the chip cannot be written; or if the read / write password is verified successfully but the encrypted data string fails to be written, the system prompts a write failure reminder and records the chip ID for subsequent review station to be removed.
[0017] As a preferred embodiment of the present invention, the detailed implementation of the 16-byte data information encryption key is as follows:
[0018] Generation of 16-byte data encryption key: take the 7-byte UID binary number of the chip, circularly shift it by 3 bits to obtain the shifted 7-byte binary number (MOV_UID), and then XOR it with the original UID to obtain a new 7-byte binary number XOR_UID; zipper-insert MOV_UID and XOR_UID to form a 14-byte binary number MOV_XOR_UID, and perform BASE64 operation on the 14-byte binary number MOV_XOR_UID to obtain 20 BASE64 characters, remove the characters at positions 5, 10, 15, and 20, and obtain 16 BASE64 characters. The characters can be further replaced by the randomly generated replacement table in the system "configuration file" to obtain a new 16-byte data encryption key.
[0019] As a preferred embodiment of the present invention, the detailed implementation of the 4-byte chip read and write password is as follows:
[0020] Generation of 4-byte chip read / write password: According to the 1st, 3rd, 5th, and 7th bits of the chip UID, modulo 16 is used to obtain 4 values less than 16. The 4 values are used as subscripts to take the corresponding positions of the above 16-byte data encryption key to form a 4-byte chip read / write password.
[0021] As a preferred embodiment of the present invention, data review is specifically as follows:
[0022] S1. The product passes through the second operation position, and the NFC reader senses the built-in chip of the product and obtains the ID number of the product chip;
[0023] S2. The system records the product entry mark, and when the product flows out of the verification position, it determines the success or failure of the product sensing and the use of the outflow verification;
[0024] S3. Check whether the chip ID exists in the system memory. If the chip ID is not found in the system memory, it means that the product has not been written into the operation data information of the first operation position and is a foreign product temporarily inserted into the second operation position. After the photoelectric sensor is triggered, the system delays the start of the pneumatic rejection device behind according to the production line speed to reject the product.
[0025] S4. Generate a 4-byte chip read / write password based on the chip ID, and use the password to authenticate the chip;
[0026] S5. After the authentication is completed, the encrypted string inside the chip is obtained and compared with the encrypted string corresponding to the chip ID stored in the system memory. If the encrypted data is inconsistent, after the subsequent photoelectric sensor is triggered, the system will delay the start of the subsequent pneumatic rejection device according to the production line speed to reject the product;
[0027] S6. The photoelectric sensor at the verification position is right after the card reader. The product flows through the card reader and triggers the photoelectric sensor to further verify whether the product entry mark exists. If not, it means that the chip of the product is not detected by the NFC card reader at the verification position, and the encrypted data in the chip is not obtained. After the photoelectric sensor is triggered, the system will delay the start of the pneumatic lifting device behind it according to the production line speed to remove the product.
[0028] S7. After the product has been photoelectrically reviewed, if there is a product entry mark in the memory, the system will clear it and use it when the next product enters the review position;
[0029] S8. The system local database stores the verified product chip ID and the corresponding encrypted data string, and uploads them to the background data server after the subsequent operations are completed.
[0030] Compared with the prior art, the present invention has the following beneficial effects:
[0031] The present invention provides a system combining software and hardware for writing production data to the NFC chip on each product in real time and conducting a review and inspection when the product is transmitted on the production line. The system can realize local chip storage and query services for the production information of each product, reduce the dependence of product-related data services on the background server, protect the safe use of various keys and production data through systematic means, avoid human leakage, provide more secure and flexible product data services for subsequent product anti-counterfeiting and traceability, solve the problem that users can enjoy localized fast data services through the NFC chip data in the product even when they are not connected to the Internet, reduce the dependence on the background server, and improve the flexibility, convenience, security and speed of the product in the application of the Internet of Things;
[0032] The present invention is mainly aimed at products that integrate NFC chips. It uses a systematic method that combines software and hardware to automatically write and review the production information of each product chip on the production line, and realizes local storage and service of each product production data. The main functions include four functions: production information acquisition, automatic writing of NFC chip production data, chip production information review, and chip data submission. The present invention can help enterprises realize the safe writing and review of localized information when products are integrated with NFC, so that the production information of each product on the production line can be automatically and locally stored, and key information data can be stored and carried with the product, realizing product localized data services, reducing the need for interaction with background data services during queries, and the system ensures the stability, standardization and security of data writing, thereby improving the application efficiency and effect when NFC is integrated with products and reducing the waste of resources;
[0033] In addition to being used on assembly lines to record product production information, the NFC chip of the present invention can also be used in subsequent product inspection, warehousing, logistics and other links. It can record relevant information within the product life cycle along with the finished product. It has good scalability and can be used in a wider range of services and other product management and traceability processes. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0035] Figure 1 This is the operation diagram of the present invention;
[0036] Figure 2 This is a flow chart of the core system of the present invention;
[0037] Figure 3 Encryption flow chart for the present invention;
[0038] Figure 4 The data review flow chart of the present invention. DETAILED DESCRIPTION
[0039] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.
[0040] Example
[0041] like Figure 1-4 As shown, a system implementation method for recording product information based on NFC chip includes:
[0042] Data server, industrial control host, IO control card and system, NFC reader / writer, photoelectric sensor, pneumatic lifting device.
[0043] in:
[0044] Data server: provides background data services and management. Its main function is to write and review the NFC chip information data of the industrial control host in the production workshop. It provides background unified query, storage and management services based on product NFC chip data and production information data, and provides data support for users' more in-depth services when they need to connect to the Internet in the future.
[0045] Industrial control host and system: The NFC chip information data writing and review application system based on the industrial control host mainly realizes data docking with the third-party system through the data server to complete the extraction of production-related data and information; and controls NFC-related equipment to write and review data on products on the assembly line, and after the operation is completed, completes the submission of operation-related data to the data server for unified storage. This system completes the writing of production-related data into the NFC chip implanted in the product through the NFC reader at the first operation position; and completes the review of the information in the NFC chip on the flowing product through the NFC card reader and photoelectric sensor at the second operation position to ensure that the written information is correct. If there is a review error, the industrial control computer drives the subsequent pneumatic lifting device to remove unqualified products from the assembly line;
[0046] IO control card: The IO control card is installed in the industrial computer, which transmits and controls the signal. The system mainly obtains the trigger signal of the photoelectric sensor, so as to judge whether the NFC chip information of the product passing through the NFC card reader is read successfully, and controls the signal of the rejection device to send a signal to reject the products that fail the review;
[0047] NFC card reader: connected to the industrial control host via a USB data cable. After power on, it can sense the NFC chip on the product and complete the reading and writing operations of the chip;
[0048] Photoelectric sensor: It is installed after the NFC reader at the second operating position and before the pneumatic rejection device. It is connected to the IO control card through a data line. Its main function is to sense that the product has passed the NFC card reader and send a signal to the IO control card. The system determines whether the product has been successfully read. Another function is that if the system finds that the product that has passed the NFC card reader has not passed the review and certification, it will trigger the system to send a rejection signal to the rejection device.
[0049] Rejection device: A pneumatic rejection device is used, and the system is controlled by an IO control card to realize the review of products that fail on the assembly line.
[0050] The specific implementation method is as follows:
[0051] Step 1: Obtain NFC production data system information, start the system, establish production tasks, and obtain production information data from the third-party system through work orders for subsequent NFC chip records;
[0052] Step 2: NFC chip information data writing: Install an NFC chip reader / writer at the first operation position of the product assembly line where the NFC chip is installed, sense the chip on the product in real time, combine the above production information content in the order agreed by the system, and write it into the data storage area of the NFC chip of the product;
[0053] Step 3: NFC chip data review, install an NFC chip reader / writer at the second workstation on the product assembly line, read the stored data in the data storage area of the NFC chip of the product flowing through, and compare it with the data write record of the chip in the system. If they are the same, it means that the information is written successfully and the product is released; if they are not the same, the system notifies the subsequent rejection device to reject the product from the production line;
[0054] Step 4: NFC chip data submission. For the NFC chip data that has passed the review, after the production operation task is completed, the system will uniformly submit the chip ID number and the data content stored in the chip to the background data server, providing more detailed and in-depth background data query services for subsequent anti-counterfeiting and traceability applications based on product NFC.
[0055] It needs further explanation:
[0056] 1. NFC production data system information acquisition: The system supports the creation of work orders, and can be connected with third-party systems through the backend server. The production data information of the third-party system can be extracted according to the production order number: including production batch number, product number, product name, planned production quantity, production machine number, team number, raw and auxiliary material requisition list (supporting multiple order numbers) and other information, as well as the processing sequence number and production time of the product that can be obtained in real time during the production process. These data are used for local storage records of NFC chips in products flowing through the subsequent production line;
[0057] 2. Writing NFC chip information data: Select a suitable position on the product assembly line where the NFC chip is installed, and install the NFC chip reading and writing device as the first operation position. The reading and writing area of the device faces the installation position of the product NFC chip, and the reading and writing distance is controlled at a vertical distance of about 1 cm from the product. The reading and writing device is connected to the industrial control host via a USB cable to sense the NFC chip information in the products passing through the production line in real time. When the device senses a new chip, the production-related information is arranged in the order agreed upon by the system: production batch number, product number, product name, planned production quantity, production machine number, team number, raw and auxiliary material requisition list (supports multiple order numbers), processing sequence number, and production time. Each element is separated by a semicolon (;). If the raw and auxiliary material requisition list has multiple order numbers, it is separated by a comma (,) to form a plain text string of production information, which is written into the data storage area of the NFC chip of the sensed product through data encryption.
[0058] like Figure 3 As shown in the figure, the specific process of data encryption runs as follows:
[0059] Step 1: System maintenance and acquisition of production data information, and combining the data information into a fixed sort string according to the system's conventions;
[0060] Step 2: At the first operation position, the NFC card reader obtains the NFC chip of the product flowing through the production line;
[0061] Step 3: Generate the encryption key of the corresponding 16-byte data information according to the chip ID, and use the generated encryption key to encrypt the previously formed string to form a ciphertext;
[0062] Step 4: The system generates a 4-byte chip read-write password. The system first verifies whether the original chip read-write password matches the read-write password in the chip. If the password verification is successful, the encrypted ciphertext is written to the data storage area of the NFC chip. If the writing is successful, the 4-byte chip read-write password replaces the original password, and the upper limit of the number of key authentication errors is set. The replaced 4-byte password becomes the chip read-write password; if the original chip read-write password is not successfully verified, the new 4-byte chip read-write password is used for verification. If the verification is successful (indicating that the chip has been modified), the encrypted ciphertext is written to the data storage area of the NFC chip;
[0063] Step 5: If both the original read / write password and the generated 4-byte password of the chip are not verified successfully, the chip cannot be written; or if the read / write password is verified successfully but the encrypted data string fails to be written, the system prompts a write failure reminder and records the chip ID for subsequent review station to be removed.
[0064] Further explanation:
[0065] The detailed implementation of the 16-byte data information encryption key and the 4-byte chip read-write password described in the above process is as follows:
[0066] Generation of 16-byte data encryption key: take the 7-byte UID binary number of the chip, circularly shift it by 3 bits to obtain the shifted 7-byte binary number (MOV_UID), and then XOR it with the original UID to obtain a new 7-byte binary number XOR_UID; zipper-insert MOV_UID and XOR_UID to form a 14-byte binary number MOV_XOR_UID, and perform BASE64 operation on the 14-byte binary number MOV_XOR_UID to obtain 20 BASE64 characters, remove the characters at positions 5, 10, 15, and 20, and obtain 16 BASE64 characters. The characters can be further replaced by the randomly generated replacement table in the system "configuration file" to obtain a new 16-byte data encryption key.
[0067] Generation of 4-byte chip read / write password: According to the 1st, 3rd, 5th, and 7th bits of the chip UID, modulo 16 is used to obtain 4 values less than 16. The 4 values are used as subscripts to take the corresponding positions of the above 16-byte data encryption key to form a 4-byte chip read / write password.
[0068] The key steps to write the plain text string of production information into the storage area of the NFC chip (taking ntag213 as an example):
[0069] Generate the corresponding 16-byte data encryption key based on the chip ID and use the encryption key to encrypt the production information plain text string through the AES128 encryption algorithm to form ciphertext data
[0070] Verify the chip according to the chip's original password. If successful, write the ciphertext data into the data storage area in the ntag213 chip.
[0071] Generate a 4-byte chip read / write password based on the chip ID. After the ciphertext data is written successfully, replace the original password with the 4-byte password to become the new chip read / write password, and set the upper limit of the number of key authentication errors.
[0072] The chip ID and the corresponding encrypted data string are stored in the system memory for use in subsequent review.
[0073] 3. NFC chip data review: Select a suitable position after the first operation position of the product assembly line, and install an NFC reader / writer as the second operation position. The reading and writing area of the device faces the installation position of the product NFC chip, and the reading and writing distance is controlled at a vertical distance of about 1 cm from the product. The reader / writer is connected to the industrial control host via a USB cable, and the NFC chip information in the product passing through the production line is sensed in real time. The ciphertext in the data storage area is compared with the encrypted data of the chip in the system memory. If the comparison is consistent, the production line is released. If it is inconsistent, the system notifies the pneumatic device at the rejection position after the second operation to reject it. Furthermore, a photoelectric device is installed at the position before the rejection position, immediately after the card reader after the second operation position. The function of the sensor is that when a product is triggered by the photoelectric sensor, if the aforementioned review fails, the trigger signal drives the system to delay the start of the subsequent pneumatic rejection device according to the production line speed to reject the product; if the NFC reader device at the second operating position in front does not sense the chip in the product and does not read the data in the chip, but the photoelectric sensor is triggered, the system will determine that the NFC chip of the product is missing. After the system receives the photoelectric trigger signal, it will notify the subsequent pneumatic rejection device to reject it; through the coordination of the photoelectric sensor, it can ensure that the operating data information in the system is consistent with the chip information of the product that has passed the review and released, providing reliable protection for the storage and upload of subsequent operating data.
[0074] like Figure 4 The detailed process is as follows:
[0075] S1. The product passes through the second operation position, and the NFC reader senses the built-in chip of the product and obtains the ID number of the product chip;
[0076] S2. The system records the product entry mark, and when the product flows out of the verification position, it determines the success or failure of the product sensing and the use of the outflow verification;
[0077] S3. Check whether the chip ID exists in the system memory. If the chip ID is not found in the system memory, it means that the product has not been written into the operation data information of the first operation position and is a foreign product temporarily inserted into the second operation position. After the photoelectric sensor is triggered, the system delays the start of the pneumatic rejection device behind according to the production line speed to reject the product.
[0078] S4. Generate a 4-byte chip read / write password based on the chip ID, and use the password to authenticate the chip;
[0079] S5. After the authentication is completed, the encrypted string inside the chip is obtained and compared with the encrypted string corresponding to the chip ID stored in the system memory. If the encrypted data is inconsistent, after the subsequent photoelectric sensor is triggered, the system will delay the start of the subsequent pneumatic rejection device according to the production line speed to reject the product;
[0080] S6. The photoelectric sensor at the verification position is right after the card reader. The product flows through the card reader and triggers the photoelectric sensor to further verify whether the product entry mark exists. If not, it means that the chip of the product is not detected by the NFC card reader at the verification position, and the encrypted data in the chip is not obtained. After the photoelectric sensor is triggered, the system will delay the start of the pneumatic lifting device behind it according to the production line speed to remove the product.
[0081] S7. After the product has been photoelectrically reviewed, if there is a product entry mark in the memory, the system will clear it and use it when the next product enters the review position;
[0082] S8. The system local database stores the verified product chip ID and the corresponding encrypted data string, and uploads them to the background data server after the subsequent operations are completed.
[0083] 4. NFC chip data submission: After the NFC chip data of the product at the second operating position of the assembly line is reviewed, the system will uniformly submit the chip ID number and the data content stored in the chip to the background data server after the production operation task is completed, providing more detailed and in-depth background data query services for subsequent anti-counterfeiting and traceability applications based on product NFC.
[0084] In addition, it should be noted that:
[0085] In addition to being used on the assembly line to record product production information, this system implementation method can also be used in subsequent quality inspection, warehousing, logistics and other links. As the product has a built-in NFC chip to locally record relevant information within the product life cycle, the operating equipment can also use handheld devices, smart phones and other devices and terminals with NFC chip reading and writing functions in addition to readers and writers.
[0086] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention.
[0087] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A system implementation method for recording product information based on NFC chip, characterized in that: The method comprises the following steps: Step 1: Obtain NFC production data system information, start the system, establish production tasks, and obtain production information data from the third-party system through work orders for subsequent NFC chip records; Step 2: Encrypt and write the NFC chip information data. Install an NFC chip reader / writer at the first operation position on the product assembly line where the NFC chip is installed. Real-time sensing of the chip on the product is performed. The above production information is combined in the order agreed upon by the system and written into the data storage area of the NFC chip on the product. Step 3: NFC chip data review, install an NFC chip reader / writer at the second workstation on the product assembly line, read the stored data in the data storage area of the NFC chip of the product flowing through, and compare it with the data write record of the chip in the system. If they are the same, it means that the information is written successfully and the product is released; if they are not the same, the system notifies the subsequent rejection device to reject the product from the production line; Step 4: NFC chip data submission. For the NFC chip data that has passed the review, after the production operation task is completed, the system will uniformly submit the chip ID number and the data content stored in the chip to the background data server, providing more detailed and in-depth background data query services for subsequent anti-counterfeiting and traceability applications based on product NFC.
2. A method for implementing a system for recording product information based on an NFC chip according to claim 1, characterized in that: The data encryption writing process includes: Step 1: System maintenance and acquisition of production data information, and combining the data information into a fixed sort string according to the system's conventions; Step 2: At the first operation position, the NFC card reader obtains the NFC chip of the product flowing through the production line; Step 3: Based on the encryption key of the 16-byte data information corresponding to the chip ID, use the generated encryption key to encrypt the previously formed string to form a ciphertext; Step 4: The system generates a 4-byte chip read-write password. The system first verifies whether the original chip read-write password matches the read-write password in the chip. If the password verification is successful, the encrypted ciphertext is written to the data storage area of the NFC chip. If the writing is successful, the 4-byte chip read-write password replaces the original password, and the upper limit of the number of key authentication errors is set. The replaced 4-byte password becomes the chip read-write password; if the original chip read-write password is not successfully verified, the 4-byte chip read-write password is used for verification. If the verification is successful (indicating that the chip has been modified), the encrypted ciphertext is written to the data storage area of the NFC chip; Step 5: If both the original read / write password and the generated 4-byte password of the chip are not verified successfully, the chip cannot be written; or if the read / write password is verified successfully but the encrypted data string fails to be written, the system prompts a write failure reminder and records the chip ID for subsequent review station to be removed.
3. A method for implementing a system for recording product information based on an NFC chip according to claim 2, characterized in that: The detailed implementation of the 16-byte data information encryption key is as follows: Generation of 16-byte data encryption key: Take the 7-byte UID binary number of the chip, cyclically shift it by 3 bits to obtain the shifted 7-byte binary number (MOV_UID), and then XOR it with the original UID to obtain a new 7-byte binary number XOR_UID; zipper-insert MOV_UID and XOR_UID to form a 14-byte binary number MOV_XOR_UID, and perform BASE64 operation on the 14-byte binary number MOV_XOR_UID to obtain 20 BASE64 characters, remove the characters at positions 5, 10, 15, and 20, and obtain 16 BASE64 characters. The characters can be further replaced by the replacement table randomly generated in the system "configuration file" to obtain a new 16-byte data encryption key.
4. A method for implementing a system for recording product information based on an NFC chip according to claim 2, characterized in that: The detailed implementation of the 4-byte chip read and write password is as follows: Generation of 4-byte chip read / write password: According to the 1st, 3rd, 5th, and 7th bits of the chip UID, modulo 16 is used to obtain 4 values less than 16. The 4 values are used as subscripts to take the corresponding positions of the above 16-byte data encryption key to form a 4-byte chip read / write password.
5. The method for implementing a system for recording product information based on an NFC chip according to claim 1, characterized in that: The data review is as follows: S1. The product passes through the second operation position, and the NFC reader senses the built-in chip of the product and obtains the ID number of the product chip; S2. The system records the product entry mark, and when the product flows out of the verification position, it determines the success or failure of the product sensing and the use of the outflow verification; S3. Check whether the chip ID exists in the system memory. If the chip ID is not found in the system memory, it means that the product has not been written into the operation data information of the first operation position and is a foreign product temporarily inserted into the second operation position. After the photoelectric sensor is triggered, the system delays the start of the pneumatic rejection device behind according to the production line speed to reject the product. S4. Generate a 4-byte chip read / write password based on the chip ID, and use the password to authenticate the chip; S5. After the authentication is completed, the encrypted string inside the chip is obtained and compared with the encrypted string corresponding to the chip ID stored in the system memory. If the encrypted data is inconsistent, after the subsequent photoelectric sensor is triggered, the system will delay the start of the subsequent pneumatic rejection device according to the production line speed to reject the product; S6. The photoelectric sensor at the verification position is right after the card reader. The product flows through the card reader and triggers the photoelectric sensor to further verify whether the product entry mark exists. If not, it means that the chip of the product is not detected by the NFC card reader at the verification position, and the encrypted data in the chip is not obtained. After the photoelectric sensor is triggered, the system will delay the start of the pneumatic lifting device behind it according to the production line speed to remove the product. S7. After the product has been photoelectrically reviewed, if there is a product entry mark in the memory, the system will clear it and use it when the next product enters the review position; S8. The system local database stores the verified product chip ID and the corresponding encrypted data string, and uploads them to the background data server after the subsequent operations are completed.