Method and system for identifying and tracing product, electronic device, and medium
Abstract
The present application relates to a method and system for identifying and tracing a product, an electronic device, and a storage medium. The method includes: acquiring, by a testing end, source code information of a to-be-tested end, and identifying a unique identification code according to a preset identification rule, the to-be-tested end being located on an openable part of the product; sending the unique identification code to a cloud by the testing end, and identifying the unique identification code by the cloud according to a preset comparison rule; when it is identified by the cloud that the product is a certified product, changing the unique identification code according to a preset change rule to generate a certified product result data packet, and sending the certified product result data packet to the testing end; and receiving and displaying the certified product result data packet by the testing end.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method for identifying and tracing a product, comprising:
acquiring, by a testing end, source code information of a to-be-tested end, and identifying a unique identification code according to a preset identification rule, wherein the to-be-tested end is located on an openable part of the product; sending the unique identification code to a cloud by the testing end, and identifying the unique identification code by the cloud according to a preset comparison rule; when the product is identified by the cloud as a certified product, changing, by the cloud, the unique identification code according to a preset change rule to generate a certified product result data packet, and sending the certified product result data packet to the testing end; and receiving and displaying the certified product result data packet by the testing end.
2 . The method according to claim 1 , wherein the identifying the unique identification code by the cloud according to a preset comparison rule comprises:
generating an identification comparison code consistent with the unique identification code by a generation system of the cloud, the unique identification code comprising a subarea address storage number; after the cloud receives the unique identification code, identifying, by the cloud, the subarea address storage number, finding a corresponding subarea address in a storage list according to the subarea address storage number, and comparing the identification comparison code stored in subarea addresses with the unique identification code; when a consistent identification comparison code exists, identifying the product as the certified product; and when no consistent identification comparison code exists, determining that the product is abnormal.
3 . The method according to claim 2 , wherein the acquiring, by a testing end, source code information of a to-be-tested end, and identifying a unique identification code according to a preset identification rule comprises:
reading, by the testing end, the source code information of the to-be-tested end, and identifying the unique identification code according to a universal decoding rule, wherein after the source code information of the to-be-tested end is read, the to-be-tested end retains the source code information; and the identifying the unique identification code by the cloud according to a preset comparison rule comprises: when the product is identified by the cloud as the certified product, adding an identifier to the identification comparison code to form an expired code, and storing the expired code in the cloud.
4 . The method according to claim 2 , wherein the acquiring, by a testing end, source code information of a to-be-tested end, and identifying a unique identification code according to a preset identification rule comprises:
extracting, by the testing end, the source code information of the to-be-tested end, and identifying the unique identification code according to a specific decoding rule, wherein after the source code information of the to-be-tested end is successfully decoded, the to-be-tested end deletes the source code information; and the identifying the unique identification code by the cloud according to a preset comparison rule comprises: when the product is identified by the cloud as the certified product, deleting the identification comparison code and the unique identification code.
5 . The method according to claim 1 , wherein after the openable part of the product is opened in a preset opening way, a destruction rate of the source code information reaches a preset range, and the source code information is changed to secondary source code information; and the method further comprises:
acquiring, by the testing end, the secondary source code information, and identifying a standby identification code; sending the standby identification code to the cloud by the testing end, and parsing the standby identification code by the cloud to obtain a secondary unique identification code and a unique identification code storage address; obtaining the unique identification code by the cloud according to the unique identification code storage address, and comparing the secondary unique identification code with the unique identification code to determine whether the secondary unique identification code is consistent with the unique identification code; when the secondary unique identification code is consistent with the unique identification code, generating the certified product result data packet; and when the secondary unique identification code is inconsistent with the unique identification code, generating an abnormal state result data packet.
6 . The method according to claim 5 , wherein after the openable part of the product is opened in the preset opening way, and the destruction rate of the source code information reaches the preset range, the method further comprises:
after the to-be-tested end is destroyed, triggering a timer in the to-be-tested end for timing, and when the testing end tests the to-be-tested end, triggering the to-be-tested end to send a timing duration to the testing end; when the testing end receives the standby identification code and the timing duration, sending the timing duration and the standby identification code to the cloud by the testing end; and when the cloud parses the standby identification code and determines that the secondary unique identification code is inconsistent with the unique identification code, determining opening time according to the timing duration and a current time, and sending the opening time and the abnormal state result data packet to the testing end.
7 . The method according to claim 6 , further comprises:
when the testing end receives the standby identification code, but does not receive the timing duration, and the testing end determines that the timing duration is a preset duration, sending the preset duration and the standby identification code to the cloud.
8 . A system for identifying and tracing a product, comprising: a testing end and a cloud;
the testing end comprises an acquisition module and a display module; and the cloud comprises an identification module and a change module; wherein the acquisition module is configured to acquire source code information of a to-be-tested end, and identify a unique identification code according to a preset identification rule, wherein the to-be-tested end is located on an openable part of the product; the identification module is configured to send the unique identification code to the cloud, and identify the unique identification code according to a preset comparison rule; the change module is configured to, when the product is identified as a certified product, change the unique identification code according to a preset change rule to generate a certified product result data packet, and send the certified product result data packet to the testing end; and the display module is configured to receive and display the certified product result data packet by the testing end.
9 . An electronic device, comprising: a memory and a processor, wherein the memory stores a computer program, the processor is configured to execute the computer program stored on the memory to implement the method for identifying and tracing a product according to claim 1 .
10 . A nonvolatile computer-readable storage medium with a computer program stored thereon, wherein the computer program is configured to be executed by a processor to implement the method for identifying and tracing a product according to claim 1 .Join the waitlist — get patent alerts
Track US2025069088A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.