Anti-counterfeiting identification method, device and electronic equipment for consumables
By encrypting the tag identification code of the radio frequency tag, the problem of reliability and security of anti-counterfeiting identification of consumables in an offline environment is solved, and high-security and high-reliability identification of consumables in an offline environment is achieved.
Patent Information
- Application Number
- CN201910779985.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-22
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-08-22
AI Technical Summary
In the existing technology, when there is no Internet connection, the reliability and security of anti-counterfeiting identification of consumables are low, and the authenticity of consumables cannot be effectively identified.
By obtaining the tag identification code of the radio frequency tag, using an encryption algorithm to encrypt the query command, sending the encryption command to the radio frequency tag, obtaining the encrypted consumable information, and using the decryption algorithm to decrypt the target consumable information, so as to carry out anti-counterfeiting identification and improve the efficiency of not being connected to the Internet. Identification security and reliability in the environment.
It achieves safer and more reliable anti-counterfeiting identification of consumables without being connected to the Internet, ensuring the safety and reliability of filter identification. Multi-layer encryption is performed through preset keys and encryption algorithms, which improves the security of identification. and reliability.
Smart Images

Figure CN112488728B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of anti-counterfeiting technology, and in particular to an anti-counterfeiting identification method, device and electronic equipment for consumables. Background Art
[0002] Anti-counterfeiting of electrical consumables has been developed for a long time. The authenticity of consumables can be identified by setting anti-counterfeiting marks on the consumables.
[0003] At present, networked anti-counterfeiting is the mainstream anti-counterfeiting technology. The anti-counterfeiting mark on the filter element is uploaded to the server through the Internet for anti-counterfeiting identification, thereby identifying whether the consumables are genuine, with high reliability. However, electrical appliances often encounter situations where they cannot be connected to the Internet, making networked identification impossible, so non-networked anti-counterfeiting methods have emerged, but non-networked anti-counterfeiting identification methods have poor security and reliability. Summary of the invention
[0004] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.
[0005] To this end, the first purpose of the present invention is to propose an anti-counterfeiting identification method for consumables, which solves the technical problem of low reliability and security of anti-counterfeiting identification of consumables in the prior art without networking.
[0006] The second object of the present invention is to provide another anti-counterfeiting identification method for consumables.
[0007] The third object of the present invention is to provide an anti-counterfeiting identification device for consumables.
[0008] A fourth object of the present invention is to provide another anti-counterfeiting identification device for consumables.
[0009] A fourth objective of the present invention is to provide an electronic device.
[0010] A fifth object of the present invention is to provide a non-transitory computer-readable storage medium.
[0011] To achieve the above-mentioned purpose, a first embodiment of the present invention provides an anti-counterfeiting identification method for consumables, comprising:
[0012] Get query instructions;
[0013] In response to the query instruction, reading the tag identification code of the radio frequency tag corresponding to the consumable;
[0014] According to the tag identification code and the pre-stored key, the query instruction is encrypted by using a first encryption algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information;
[0015] The encrypted consumables information is obtained, and the target consumables information is obtained by decrypting the encrypted consumables information using a first decryption algorithm, so as to perform anti-counterfeiting identification according to the target consumables information.
[0016] To achieve the above-mentioned purpose, the second aspect of the present invention provides another anti-counterfeiting identification method for consumables, the method comprising:
[0017] Sending a query instruction to the reader; the query instruction is used to trigger the reader to read the tag identification code of the radio frequency tag corresponding to the consumable; according to the tag identification code and the pre-stored key, the query instruction is encrypted by using a first encryption algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information; the reader obtains the encrypted consumable information, and decrypts it by using a first decryption algorithm to obtain the target consumable information;
[0018] Acquire the target consumables information from the reader / writer;
[0019] Anti-counterfeiting identification is performed according to the target consumables information.
[0020] To achieve the above-mentioned purpose, the third aspect of the present invention provides an anti-counterfeiting identification device for consumables, the device comprising:
[0021] An acquisition module, used to acquire query instructions;
[0022] A reading module, used to read the tag identification code of the radio frequency tag corresponding to the consumable in response to the query instruction;
[0023] A query module, configured to encrypt the query instruction using a first encryption algorithm according to the tag identification code and a pre-stored key to obtain an encrypted instruction, and send the encrypted instruction to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information;
[0024] The processing module is used to obtain the encrypted consumable information and use a first decryption algorithm to decrypt the information to obtain target consumable information, so as to perform anti-counterfeiting identification according to the target consumable information.
[0025] To achieve the above-mentioned purpose, a fourth aspect of the present invention provides an anti-counterfeiting identification device for consumables, the device comprising:
[0026] The sending module is used to send a query instruction to the reader / writer; the query instruction is used to trigger the reader / writer to read the tag identification code of the radio frequency tag corresponding to the consumable; according to the tag identification code and the pre-stored key, the query instruction is encrypted by using a first encryption algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information; the reader / writer obtains the encrypted consumable information, and decrypts it by using a first decryption algorithm to obtain the target consumable information;
[0027] An acquisition module, used for acquiring the target consumables information from the reader;
[0028] An identification module is used to perform anti-counterfeiting identification based on the target consumables information.
[0029] To achieve the above-mentioned purpose, a fifth aspect of the present invention provides an electronic device, comprising a reader / writer for executing the anti-counterfeiting identification method as described in the first aspect; and a control unit connected to the reader / writer;
[0030] Wherein, the control unit includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the anti-counterfeiting identification method as described in the second aspect is implemented.
[0031] To achieve the above-mentioned purpose, the fifth aspect of the present invention proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, it implements the anti-counterfeiting identification method as described in the first aspect, or implements the anti-counterfeiting identification method as described in the second aspect.
[0032] The technical solution provided by the embodiment of the present invention may include the following beneficial effects:
[0033] A query instruction is obtained, and in response to the query instruction, a tag identification code of the radio frequency tag corresponding to the consumable is read, and according to the tag identification code and a pre-stored key, a first encryption algorithm is used to encrypt the query instruction to obtain an encrypted instruction, and the encrypted instruction is sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction, sends the encrypted consumable information, obtains the encrypted consumable information, and uses a first decryption algorithm to decrypt the target consumable information, so as to perform anti-counterfeiting identification according to the target consumable information, and encrypts the query instruction and the consumable information through preset keys and encryption algorithms and different encryption logics, so as to achieve more secure and reliable anti-counterfeiting identification of consumables when not connected to the Internet, thereby ensuring the security and reliability of filter element identification when not connected to the Internet. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0035] Figure 1 A schematic flow chart of an anti-counterfeiting identification method for consumables provided by an embodiment of the present invention;
[0036] Figure 2 A schematic flow chart of another anti-counterfeiting identification method for consumables provided by an embodiment of the present invention;
[0037] Figure 3 A schematic flow chart of another anti-counterfeiting identification method for consumables provided by an embodiment of the present invention;
[0038] Figure 4 A schematic flow chart of an interactive method for anti-counterfeiting identification of consumables provided by an embodiment of the present invention;
[0039] Figure 5 An interactive logic block diagram for anti-counterfeiting identification of consumables according to an embodiment of the present invention;
[0040] Figure 6 A schematic diagram of a structure of an anti-counterfeiting identification device for consumables provided by an embodiment of the present invention
[0041] Figure 7 A schematic diagram of the structure of another anti-counterfeiting identification device for consumables provided in an embodiment of the present invention;
[0042] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention; and
[0043] Fig. 9 This is a schematic diagram of the structure of consumables and radio frequency tags provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0045] The following describes an anti-counterfeiting identification method, device and electronic device for consumables according to embodiments of the present invention with reference to the accompanying drawings.
[0046] Figure 1 A schematic flow chart of an anti-counterfeiting identification method for consumables provided in an embodiment of the present invention.
[0047] like Figure 1 As shown, the method comprises the following steps:
[0048] Step 101, obtaining a query instruction.
[0049] The execution subject of the embodiment of the present invention is a reader / writer, and the reader / writer can be arranged in a drinking water device.
[0050] Specifically, a query instruction encrypted by a second encryption algorithm is received from a device controller connected to the reader / writer, and a second decryption algorithm corresponding to the second encryption algorithm is used to decrypt the query instruction to obtain the query instruction.
[0051] Step 102, in response to the query instruction, read the tag identification code of the radio frequency tag corresponding to the consumable.
[0052] The tag identification code is a default number that the radio frequency tag carries when it leaves the factory, such as a user identifier (User Identify, UID).
[0053] The reader / writer of the embodiment of the present invention is provided with a radio frequency module, such as an RFID module, and the reader / writer realizes short-range information interaction with a radio frequency tag through the radio frequency module.
[0054] Specifically, in response to the query instruction, a query operation is performed, that is, the tag identification code of the radio frequency tag corresponding to the consumable is read. As a possible implementation method, the tag identification code is not encrypted and can be directly read.
[0055] Step 103: encrypt the query instruction using a first encryption algorithm according to the tag identification code and a pre-stored key to obtain an encrypted instruction, and send the encrypted instruction to the RFID tag, so that the RFID tag responds to the encrypted instruction and sends the encrypted consumable information.
[0056] The reader / writer of the embodiment of the present invention stores multiple encryption and decryption algorithms, as well as keys, which are respectively referred to as the first encryption algorithm, the second encryption algorithm, and the corresponding first decryption algorithm and the second decryption algorithm for easy distinction, wherein the keys are referred to as the first key and the second key. In this embodiment, the first key and the second key are different, and the first encryption algorithm and the second encryption algorithm are also different.
[0057] Specifically, according to the tag identification code and the pre-stored key, the first encryption algorithm can be started, the query instruction can be encrypted by the first encryption algorithm to obtain an encrypted instruction, and based on the RFID radio frequency technology, the encrypted instruction can be sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information to the reader / writer. When sending the query instruction to the radio frequency tag, the query instruction is encrypted by using the first encryption algorithm based on the tag identification code and the pre-stored key as encryption parameters to obtain an encrypted query instruction. By increasing the complexity of the encryption parameters, the security and reliability of the query instruction transmission are improved.
[0058] Step 104 , obtaining the encrypted consumable information, and decrypting it using a first decryption algorithm to obtain the target consumable information, so as to perform anti-counterfeiting identification according to the target consumable information.
[0059] The target consumables information includes information about service life and whether the consumables are genuine, for example, the filter element's attribute information and anti-counterfeiting identification code.
[0060] In this embodiment, in order to improve the security of consumable information transmission, the consumable information read by the reader from the radio frequency tag is also encrypted. After obtaining the encrypted consumable information, the reader uses a first decryption algorithm to decrypt the target consumable information, and then can identify whether the target consumable is genuine and the service life of the target consumable based on the target consumable information. By encrypting the consumable information in the radio frequency tag, the reader can obtain the target consumable information by decrypting it using the corresponding first decryption algorithm, so as to perform anti-counterfeiting identification based on the target consumable information, and improve the security and reliability of anti-counterfeiting identification through multi-layer encryption logic.
[0061] Among them, the step of performing anti-counterfeiting identification according to the target consumables information has the following two possible implementation methods:
[0062] As a possible implementation method, after decrypting and obtaining the target consumable information, the reader / writer can directly identify whether the target consumable information is authentic and its service life based on the processing unit set in the reader / writer. In this embodiment, anti-counterfeiting identification is directly performed by the reader / writer, so that the reader / writer can perform anti-counterfeiting identification when it is unable to transmit the target consumable information to the device controller, thereby increasing the flexibility and reliability of identification.
[0063] As another possible implementation method, after the reader / writer decrypts and obtains the target consumable information, it can further use a second encryption algorithm to encrypt the target consumable information, and send the encrypted target consumable information to the device controller, so that the device controller decrypts the encrypted target consumable information using a second decryption algorithm corresponding to the second encryption algorithm, and then performs anti-counterfeiting identification. Since the device control has stronger data processing capabilities and processing speeds, anti-counterfeiting identification of the target consumable information is performed through the device controller, which improves the reliability and efficiency of anti-counterfeiting identification.
[0064] In the anti-counterfeiting identification method for consumables of the present embodiment, a query instruction is obtained, and in response to the query instruction, a tag identification code of a radio frequency tag corresponding to the consumable is read, and according to the tag identification code and a pre-stored key, a first encryption algorithm is used to encrypt the query instruction to obtain an encrypted instruction, and the encrypted instruction is sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction, sends encrypted consumable information, obtains the encrypted consumable information, and uses a first decryption algorithm to decrypt to obtain target consumable information, so as to perform anti-counterfeiting identification according to the target consumable information, and the query instruction and consumable information are encrypted by preset keys and encryption algorithms and different encryption logics, so that consumables can be more safely and reliably identified for anti-counterfeiting when not connected to the Internet, and the safety and reliability of filter element identification when not connected to the Internet are guaranteed.
[0065] In order to clearly explain the previous embodiment, this embodiment provides another anti-counterfeiting identification method for consumables. Figure 2 A schematic flow chart of another anti-counterfeiting identification method for consumables provided by an embodiment of the present invention.
[0066] like Figure 2 As shown, the method may include the following steps:
[0067] Step 201: Receive a query instruction encrypted by a second encryption algorithm from a device controller, and decrypt the instruction by a second decryption algorithm corresponding to the second encryption algorithm to obtain the query instruction.
[0068] In this embodiment, the reader / writer needs to obtain a query instruction from the device controller to perform anti-counterfeiting identification on consumables. By encrypting the query instruction using a second encryption algorithm, the security of query instruction transmission is improved, and the query instruction is prevented from being intercepted or tampered with.
[0069] Step 202, in response to the query instruction, read the tag identification code of the radio frequency tag corresponding to the consumable.
[0070] Step 203: Encrypt the first key in the key using a first encryption algorithm according to the tag identification code and the pre-stored key, and send the encrypted first key to the radio frequency tag.
[0071] The encrypted first key is used by the radio frequency tag to compare the similarities and differences with the key stored in itself, and respond to the encryption instruction if they are the same.
[0072] In actual applications, the reader / writer may be copied, resulting in a counterfeit reader / writer being able to obtain the tag identification code in the consumables, and then obtain the target consumables information in the consumables, resulting in the target consumables information of the genuine filter element being stolen. Therefore, in this embodiment, the pre-stored first key and the second key, as well as the obtained tag identification code, are used to start the first encryption algorithm, encrypt the first key in the key, and send the encrypted first key to the radio frequency tag, so that after receiving the encrypted first key, the radio frequency tag uses the corresponding first decryption algorithm to decrypt the encrypted first key to obtain the first key, and compares it with the first key stored in itself. If it is determined to be the same, the radio frequency tag can receive the encryption instruction and then respond to the encryption instruction. That is to say, the reader / writer realizes the authenticity verification of the reader / writer by sending the encrypted first key to the radio frequency tag. This is because, even if the reader / writer is copied, the encryption logic of starting the first encryption algorithm to encrypt the first key through the tag identification code and the pre-stored key in the reader / writer cannot be copied, thereby improving the security and reliability of the reader / writer, thereby improving the security and reliability of subsequent readers / writers obtaining the target consumables information.
[0073] Step 204: encrypt the query instruction using a first encryption algorithm according to the tag identification code and a pre-stored key to obtain an encrypted instruction, and send the encrypted instruction to the RFID tag, so that the RFID tag responds to the encrypted instruction and sends the encrypted consumable information after verifying the encrypted first key.
[0074] For details, please refer to step 103 in the previous embodiment, the principle is the same and will not be repeated here.
[0075] Step 205: Acquire the encrypted consumables information, and use a first decryption algorithm to decrypt the information to obtain target consumables information.
[0076] Step 206, encrypt the target consumable information using a second encryption algorithm, and send the encrypted target consumable information to the device controller, so that the device controller uses a second decryption algorithm corresponding to the second encryption algorithm to decrypt the target consumable information, and performs anti-counterfeiting identification based on the target consumable information.
[0077] The target consumables information includes service life, as well as the property information of the filter element and the anti-counterfeiting identification code. Thus, the anti-counterfeiting identification includes the identification of whether the target consumables information is genuine and whether the service life of the target consumables information has expired.
[0078] In this embodiment, after the reader obtains the target consumable information, it encrypts the target consumable information through the second encryption algorithm and then sends the encrypted target consumable information to the device controller. By using the second encryption algorithm to encrypt and transmit the target consumable information, the reliability of the transmission is ensured. At the same time, the encrypted target consumable information is sent to the device controller for anti-counterfeiting identification. Since the controller has strong data processing capabilities, the accuracy and processing efficiency of anti-counterfeiting identification of consumables are improved.
[0079] In the anti-counterfeiting identification method for consumables of the embodiment of the present invention, when anti-counterfeiting identification of consumables is required, the security of the query instruction for querying the consumables obtained by the reader is improved by obtaining the query instruction encrypted by the second encryption algorithm, and then the first encryption algorithm is started to encrypt and transmit the first key, so that the consumable is compared with the first key stored in itself according to the obtained encrypted first key, thereby realizing the identification and verification of the copied counterfeit reader, and at the same time, only when the verification is passed, the tag can receive the query instruction encrypted by the first encryption algorithm, respond to the query instruction, and send the encrypted consumable information to the reader to prevent the leakage of the consumable information, and then, the encrypted consumable information is sent to the device controller to perform anti-counterfeiting identification of the consumables, and through multiple encryption logic controls, the acquisition and identification of the target consumable information is realized, and the anti-counterfeiting identification of the consumables can be realized without being connected to the Internet, and the security and reliability of the identification are also high.
[0080] In order to implement the above-mentioned embodiment, an embodiment of the present invention further provides an anti-counterfeiting identification method for consumables, and the execution subject of the method is a device controller.
[0081] Figure 3 A schematic diagram of a flow chart of another anti-counterfeiting identification method for consumables provided by an embodiment of the present invention is shown as follows: Figure 3 As shown, the method may include the following steps:
[0082] Step 301: Send a query instruction to the reader.
[0083] Among them, the query instruction is used to trigger the reader to read the tag identification code of the radio frequency tag corresponding to the consumable. According to the tag identification code and the pre-stored key, the query instruction is encrypted using the first encryption algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information. The reader obtains the encrypted consumable information and uses the first decryption algorithm to decrypt it to obtain the target consumable information.
[0084] In an embodiment of the present invention, when the device controller sends a query instruction to the reader / writer, the query instruction is an encrypted query instruction obtained by the device controller by encrypting the query instruction using a second encryption algorithm. The query instruction is encrypted by the second encryption algorithm, thereby improving the security and reliability of the query instruction transmission. Furthermore, the reader / writer must decrypt the encrypted query instruction before obtaining the query instruction, thereby preventing the reader / writer from being maliciously replaced and improving security.
[0085] Step 302: Obtain target consumables information from the reader / writer.
[0086] Specifically, the target consumables information encrypted by the reader / writer using the second encryption algorithm is received, and the target consumables information is decrypted using a second decryption algorithm corresponding to the second encryption algorithm to obtain the target consumables information.
[0087] Step 303: perform anti-counterfeiting identification according to the target consumables information.
[0088] As a possible implementation manner, the device controller determines that the target consumables information is obtained, and then identifies the consumables information as authentic.
[0089] As another possible implementation, the acquired target consumables information is identified, and if it is determined that the signal contains an anti-counterfeiting code that complies with specific rules, the consumables are identified as genuine.
[0090] Furthermore, as a possible implementation method, whether the filter element has expired is identified based on the service life contained in the acquired target consumables information. If the filter element is about to expire or has expired and is an old filter element, the user is reminded to replace the filter element in time to prevent the reuse of the old filter element and reduce the use effect.
[0091] In the anti-counterfeiting identification method for consumables in the embodiment of the present invention, the device controller sends a query instruction to the reader / writer to trigger the reader / writer to read the tag identification code of the radio frequency tag corresponding to the consumable, and according to the tag identification code and the pre-stored key, the query instruction is encrypted by a first encryption algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information. The reader / writer obtains the encrypted consumable information and decrypts it by a first decryption algorithm to obtain the target consumable information. Then, the device controller receives the target consumable information encrypted by the reader / writer, decrypts it by a second decryption algorithm corresponding to the second encryption algorithm to obtain the target consumable information, performs anti-counterfeiting identification on the target consumable information, obtains the target consumable information from the consumable label through multiple encryption control logics, and identifies the authenticity and service life of the target consumable information, thereby realizing a safer and more reliable anti-counterfeiting identification of the consumables when not connected to the Internet, and ensuring the safety and reliability of filter element identification when not connected to the Internet.
[0092] Based on the above embodiments, this embodiment provides an interactive method for anti-counterfeiting identification of consumables. Figure 4 A flowchart of an interactive method for anti-counterfeiting identification of consumables provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the method comprises the following steps:
[0093] Step 401: The device controller generates a query instruction and encrypts it using a second encryption algorithm.
[0094] Step 402: The device controller sends the query instruction encrypted by the second encryption algorithm to the reader / writer.
[0095] Step 403: the reader / writer uses the second decryption algorithm corresponding to the second encryption algorithm to perform decryption to obtain a query instruction.
[0096] Step 404: the reader / writer reads the tag identification code of the radio frequency tag corresponding to the consumable in response to the query instruction.
[0097] Step 405: The reader / writer encrypts the first key in the key using the first encryption algorithm.
[0098] Step 406: The reader sends the encrypted first key to the radio frequency tag.
[0099] Step 407: The RFID tag determines that the key stored in itself is the same as the acquired encrypted first key.
[0100] Step 408: The RFID tag responds to the encryption instruction and sends the encrypted consumables information to the reader / writer.
[0101] Step 409: The reader / writer obtains the encrypted consumables information, and uses the first decryption algorithm to decrypt the information to obtain the target consumables information.
[0102] Step 410: The reader / writer encrypts the target consumables information using a second encryption algorithm.
[0103] Step 411: the reader / writer sends the encrypted target consumables information to the device controller.
[0104] Step 412: The device controller uses a second decryption algorithm corresponding to the second encryption algorithm to decrypt and obtain target consumables information.
[0105] Step 413: the device controller performs anti-counterfeiting identification according to the target consumables information.
[0106] Step 414: the device controller reminds the user to replace the consumables according to the service life included in the target consumables information.
[0107] Figure 5 is an interactive logic block diagram for anti-counterfeiting identification of consumables according to an embodiment of the present invention. Figure 4The steps in the corresponding interactive method embodiments are corresponding, according to Figure 4 and Figure 5 It can be seen that in the process of generating query instructions from the device controller, the interaction between the device controller and the reader / writer, and the interaction between the reader / writer and the radio frequency tag, multiple encryption control logics are adopted to achieve the security and reliability of information transmission, so that the device controller can finally obtain the target consumables information of the consumables, and perform anti-counterfeiting identification and life identification on the target consumables information, without the need to transmit the target consumables information to the server for anti-counterfeiting identification, so that anti-counterfeiting identification and life identification of consumables can be performed without connecting to the Internet. At the same time, multiple encryption logics ensure the security and reliability of anti-counterfeiting identification and life identification of consumables.
[0108] In order to implement the above-mentioned embodiment, the present invention further proposes an anti-counterfeiting identification device for consumables, which is arranged in a reader / writer.
[0109] Figure 6 A schematic structural diagram of an anti-counterfeiting identification device for consumables provided in an embodiment of the present invention.
[0110] like Figure 6 As shown, the device includes: an acquisition module 51, a reading module 52, a query module 53 and a processing module 54.
[0111] The acquisition module 51 is used to acquire a query instruction.
[0112] The reading module 52 is used to read the tag identification code of the radio frequency tag corresponding to the consumable material in response to the query instruction.
[0113] The query module 53 is used to encrypt the query instruction using a first encryption algorithm according to the tag identification code and a pre-stored key to obtain an encrypted instruction, and send the encrypted instruction to the RFID tag, so that the RFID tag responds to the encrypted instruction and sends the encrypted consumable information.
[0114] The processing module 54 is used to obtain the encrypted consumables information, and use the first decryption algorithm to decrypt the information to obtain the target consumables information, so as to perform anti-counterfeiting identification according to the target consumables information.
[0115] Furthermore, in a possible implementation manner of the embodiment of the present invention, the key includes a first key and a second key, and the device also includes: a sending module.
[0116] The sending module is used to encrypt the first key in the key by using the first encryption algorithm according to the tag identification code and the pre-stored key, and send the encrypted first key to the radio frequency tag; wherein the encrypted first key is used by the radio frequency tag to compare the similarities and differences with the key stored in itself, and respond to the encryption instruction if they are the same.
[0117] As a possible implementation, the acquisition module 51 is specifically configured to receive a query instruction encrypted by a second encryption algorithm from a device controller, and decrypt the instruction by a second decryption algorithm corresponding to the second encryption algorithm to obtain the query instruction.
[0118] As a possible implementation manner, the sending module is further used to:
[0119] The target consumables information is encrypted using a second encryption algorithm; the encrypted target consumables information is sent to the device controller, so that the device controller uses a second decryption algorithm corresponding to the second encryption algorithm to decrypt and obtain the target consumables information.
[0120] As a possible implementation manner, the target consumables information includes service life.
[0121] It should be noted that the above explanation of the anti-counterfeiting identification method embodiment is also applicable to the anti-counterfeiting identification device of this embodiment, and the principles are the same, which will not be repeated here.
[0122] In the anti-counterfeiting identification device for consumables of the present embodiment, a query instruction is obtained, and in response to the query instruction, the tag identification code of the radio frequency tag corresponding to the consumable is read, and according to the tag identification code and a pre-stored key, the query instruction is encrypted by a first encryption algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction, sends encrypted consumable information, obtains the encrypted consumable information, and uses a first decryption algorithm to decrypt to obtain target consumable information, so as to perform anti-counterfeiting identification according to the target consumable information, and the query instruction and consumable information are encrypted by preset keys and encryption algorithms and different encryption logics, so that the consumables can be more safely and reliably identified for anti-counterfeiting when not connected to the Internet, and the safety and reliability of filter element identification when not connected to the Internet are guaranteed.
[0123] In order to implement the above embodiment, the present invention also proposes an anti-counterfeiting identification device for consumables, which is arranged in the device controller.
[0124] Figure 7 A schematic structural diagram of another anti-counterfeiting identification device for consumables provided in an embodiment of the present invention.
[0125] like Figure 7 As shown, the device includes: a sending module 61, an acquiring module 62 and an identifying module 63.
[0126] The sending module 61 is used to send a query instruction to the reader / writer; the query instruction is used to trigger the reader / writer to read the tag identification code of the radio frequency tag corresponding to the consumable; according to the tag identification code and the pre-stored key, the query instruction is encrypted using a first encryption algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information; the reader / writer obtains the encrypted consumable information, and decrypts it using a first decryption algorithm to obtain the target consumable information.
[0127] The acquisition module 62 is used to acquire target consumables information from the reader / writer.
[0128] The identification module 63 is used to perform anti-counterfeiting identification according to the target consumables information.
[0129] In a possible implementation manner of the embodiment of the present invention, the device further includes: a reminder module.
[0130] As a possible implementation, the target consumables information includes service life, and a reminder module is used to remind the user to replace the consumables according to the service life.
[0131] As a possible implementation manner, the sending module 61 is specifically configured to send a query instruction encrypted by a second encryption algorithm to the reader / writer.
[0132] Therefore, the acquisition module 62 is specifically used for:
[0133] The target consumables information encrypted by the reader is received, and the target consumables information is decrypted using a second decryption algorithm corresponding to the second encryption algorithm to obtain the target consumables information.
[0134] As a possible implementation, the identification module 63 is specifically configured to determine that if target consumable information is obtained, then identify the consumable as genuine.
[0135] It should be noted that the above explanation of the anti-counterfeiting identification method embodiment is also applicable to the anti-counterfeiting identification device of this embodiment, and the principles are the same, which will not be repeated here.
[0136] In the device for anti-counterfeiting identification of consumables in the embodiment of the present invention, the device controller sends a query instruction to the reader / writer to trigger the reader / writer to read the tag identification code of the radio frequency tag corresponding to the consumable, and according to the tag identification code and the pre-stored key, the query instruction is encrypted by a first encryption algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information. The reader / writer obtains the encrypted consumable information and decrypts it by a first decryption algorithm to obtain the target consumable information. Then, the device controller receives the target consumable information encrypted by the reader / writer, decrypts it by a second decryption algorithm corresponding to the second encryption algorithm to obtain the target consumable information, performs anti-counterfeiting identification on the target consumable information, obtains the target consumable information from the consumable label through multiple encryption control logics, and identifies the authenticity and service life of the target consumable information, thereby realizing a safer and more reliable anti-counterfeiting identification of the consumables when not connected to the Internet, and ensuring the safety and reliability of filter element identification when not connected to the Internet.
[0137] In order to implement the above embodiment, the present invention further provides an electronic device, Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
[0138] like Figure 8 As shown, the electronic device 110 includes a reader / writer 111 and a controller 112. The controller 112 includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the anti-counterfeiting identification method executed by the aforementioned device controller is implemented.
[0139] As a possible implementation manner, the electronic device is a drinking water device.
[0140] As a possible implementation, Fig. 9 As shown, the consumable 1 of the electronic device includes a shell 4, on which a radio frequency tag 2 is provided. The radio frequency tag 2 stores anti-counterfeiting information and the property information of the filter element itself. The radio frequency tag 2 and the reader 3 realize wireless communication through radio frequency technology. When the consumable 1 is installed and working, the use time and life of the consumable 1 can be recorded in real time in the radio frequency tag 2 through the read-write function of the reader 3. When the consumable 1 expires, the expiration information of the consumable 1 can be identified and the user can be reminded through the display panel of the electronic device. If the user installs an old consumable 1, a reminder for the user to replace the filter element will be displayed to prevent the old consumable 1 replaced by the user from being reused. This mechanism can ensure the maximum security of genuine consumables when the machine is not connected to the Internet. .
[0141] In order to prevent the RFID tag 2 of waste consumables from being torn off and reused, as a possible implementation method, a fragile antenna is used as the antenna of the RFID tag 2, such as an antenna made of fragile aluminum foil. Once the RFID tag 2 is torn off from the outer shell of the consumable, the antenna will be broken due to tearing, causing the RFID tag 2 to become invalid, thereby ensuring that the RFID tag 2 is not transported and reused, thereby improving the safety of the RFID tag.
[0142] In order to implement the above embodiment, the present invention further proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the anti-counterfeiting identification method described in the above method embodiment is implemented.
[0143] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0144] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0145] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0146] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0147] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0148] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0149] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0150] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A method for anti-counterfeiting identification of consumables, characterized in that: The method comprises: Get query instructions; In response to the query instruction, reading the tag identification code of the radio frequency tag corresponding to the consumable; According to the tag identification code and the pre-stored key, the query instruction is encrypted by using a first encryption algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information; Acquire the encrypted consumables information, and use a first decryption algorithm to decrypt the information to obtain target consumables information, so as to perform anti-counterfeiting identification according to the target consumables information; The method of encrypting the query instruction using a first encryption algorithm according to the tag identification code and a pre-stored key to obtain an encrypted instruction, and sending the encrypted instruction to the radio frequency tag so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information, includes: According to the tag identification code and the pre-stored key, a first encryption algorithm is used to encrypt the first key in the key, and the encrypted first key is sent to the radio frequency tag, wherein the encrypted first key is used for the radio frequency tag to compare the similarities and differences with the key stored in itself, and responds to the encryption instruction if they are the same; According to the tag identification code and the pre-stored key, the query instruction is encrypted using the first encryption algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the RFID tag, so that the RFID tag responds to the encrypted instruction and sends the encrypted consumable information after verifying the encrypted first key.
2. The anti-counterfeiting identification method according to claim 1, characterized in that: The key includes a first key and a second key; after reading the tag identification code of the radio frequency tag corresponding to the consumable, it also includes: Encrypting a first key among the keys using a first encryption algorithm according to the tag identification code and a pre-stored key, and sending the encrypted first key to the radio frequency tag; The encrypted first key is used by the radio frequency tag to compare the difference with the key stored in itself, and respond to the encryption instruction if they are the same.
3. The anti-counterfeiting identification method according to claim 1 or 2, characterized in that: The obtaining query instruction includes: receiving a query instruction encrypted by a second encryption algorithm from a device controller; The query instruction is decrypted using a second decryption algorithm corresponding to the second encryption algorithm to obtain the query instruction.
4. The anti-counterfeiting identification method according to claim 3, characterized in that: After the target consumables information is obtained by decrypting using the first decryption algorithm, the method further includes: Encrypting the target consumables information using the second encryption algorithm; The encrypted target consumables information is sent to the device controller, so that the device controller uses a second decryption algorithm corresponding to the second encryption algorithm to decrypt and obtain the target consumables information.
5. The anti-counterfeiting identification method according to claim 4, characterized in that: The target consumables information includes service life.
6. A method for anti-counterfeiting identification of consumables, characterized in that: The method comprises: Sending a query instruction to the reader; the query instruction is used to trigger the reader to read the tag identification code of the radio frequency tag corresponding to the consumable; according to the tag identification code and the pre-stored key, the query instruction is encrypted by using a first encryption algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information; the reader obtains the encrypted consumable information, and decrypts it by using a first decryption algorithm to obtain the target consumable information; Acquire the target consumables information from the reader / writer; Perform anti-counterfeiting identification according to the target consumables information; The method of encrypting the query instruction using a first encryption algorithm according to the tag identification code and a pre-stored key to obtain an encrypted instruction, and sending the encrypted instruction to the radio frequency tag so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information, includes: According to the tag identification code and the pre-stored key, a first encryption algorithm is used to encrypt the first key in the key, and the encrypted first key is sent to the radio frequency tag, wherein the encrypted first key is used for the radio frequency tag to compare the similarities and differences with the key stored in itself, and responds to the encryption instruction if they are the same; According to the tag identification code and the pre-stored key, the query instruction is encrypted using the first encryption algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the RFID tag, so that the RFID tag responds to the encrypted instruction and sends the encrypted consumable information after verifying the encrypted first key.
7. The anti-counterfeiting identification method according to claim 6, characterized in that: The anti-counterfeiting identification according to the target consumables information includes: If it is determined that the target consumables information is obtained, the consumables are identified as genuine.
8. The anti-counterfeiting identification method according to claim 6, characterized in that: The target consumables information includes service life; after anti-counterfeiting identification is performed according to the target consumables information, it also includes Reminder to replace consumables based on the service life.
9. The anti-counterfeiting identification method according to any one of claims 6 to 8, characterized in that: The sending of a query instruction to the reader / writer includes: Sending a query instruction encrypted by a second encryption algorithm to the reader; The acquiring the target consumables information from the reader / writer includes: The target consumables information encrypted by the reader is received, and the target consumables information is decrypted using a second decryption algorithm corresponding to the second encryption algorithm to obtain the target consumables information.
10. An anti-counterfeiting identification device for consumables, used to execute the method according to any one of claims 1 to 5, characterized in that: The device comprises: An acquisition module, used to acquire query instructions; A reading module, used to read the tag identification code of the radio frequency tag corresponding to the consumable in response to the query instruction; A query module, configured to encrypt the query instruction using a first encryption algorithm according to the tag identification code and a pre-stored key to obtain an encrypted instruction, and send the encrypted instruction to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information; The processing module is used to obtain the encrypted consumables information and use a first decryption algorithm to decrypt the information to obtain target consumables information, so as to perform anti-counterfeiting identification according to the target consumables information.
11. An anti-counterfeiting identification device for consumables, used to execute the method according to any one of claims 6 to 9, characterized in that: The device comprises: The sending module is used to send a query instruction to the reader / writer; the query instruction is used to trigger the reader / writer to read the tag identification code of the radio frequency tag corresponding to the consumable; according to the tag identification code and the pre-stored key, the query instruction is encrypted by using a first encryption algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the radio frequency tag, so that the radio frequency tag responds to the encrypted instruction and sends the encrypted consumable information; the reader / writer obtains the encrypted consumable information, and decrypts it by using a first decryption algorithm to obtain the target consumable information; An acquisition module, used for acquiring the target consumables information from the reader; An identification module is used to perform anti-counterfeiting identification based on the target consumables information.
12. An electronic device, characterized in that: A reader / writer comprising a reader / writer for executing the anti-counterfeiting identification method according to any one of claims 1 to 5; and a controller connected to the reader / writer; The controller includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the anti-counterfeiting identification method as described in any one of claims 6 to 9 is implemented.
13. The electronic device according to claim 12, characterized in that: The electronic device is a drinking water device.
14. The electronic device according to claim 12 or 13, characterized in that: The consumables of the electronic device include a housing; The housing is provided with a radio frequency tag.
15. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the anti-counterfeiting identification method as described in any one of claims 1 to 5 is implemented, or the anti-counterfeiting identification method as described in any one of claims 6 to 9 is implemented.
