Consumable verification method and verification system
By generating a first verification code through authentication between the device and consumables, and generating a second verification code through cloud verification, the security issue of the verification solution for radiofrequency skin therapy device treatment heads is resolved, and a highly secure verification process is achieved.
Patent Information
- Application Number
- CN202511188165.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-25
- Publication Date
- 2026-01-23
AI Technical Summary
Existing verification methods for radiofrequency skin therapy device treatment heads have low security, especially since QR codes are easily forged, which could lead to non-standard treatment heads being mistakenly identified as legitimate products.
After mutual authentication between the device and consumables, a first verification code based on the device and consumable information is generated, and a second verification code is generated through cloud verification. The dual verification ensures successful verification.
It improves the anti-hacking and security of verification, prevents counterfeit consumable information from passing through verification, ensures the authenticity of equipment information, and enhances the reliability of verification.
Smart Images

Figure CN121389097A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the cosmetic field, in particular to a consumable verification method and system. BACKGROUND
[0002] In a radio frequency skin treatment instrument, in order to ensure safety, the treatment head used usually has a service life limit, and a new treatment head needs to be replaced after reaching the service life. In order to prevent non-factory treatment heads on the market from being misused to cause medical risks, the treatment head needs to be verified before use after each replacement.
[0003] The current verification scheme mainly has the following two kinds: one is to attach a two-dimensional code on the package of the treatment head, and the user scans the two-dimensional code to verify the treatment head on the user terminal; the second is to connect the treatment head to the radio frequency skin treatment instrument, obtain the hardware information and use information of the treatment head by the radio frequency skin treatment instrument, generate a two-dimensional code according to the information, and then the user scans the two-dimensional code, generates a verification code in the user terminal according to the scanning result, and finally the user inputs the verification code on the radio frequency skin treatment instrument. The radio frequency skin treatment head compares the verification code to confirm whether the treatment head is a genuine treatment head. However, for the former, since only the two-dimensional code on the package of the treatment head is scanned, if the two-dimensional code is counterfeit, there is still a high risk; for the latter, since the scanned two-dimensional code is generated only according to the hardware information and use information of the treatment head, and the two-dimensional code and the corresponding verification code can be obtained after the treatment head is connected to the radio frequency skin treatment instrument, the anti-cracking performance of this scheme has certain deficiencies.
[0004] Therefore, the current treatment head verification scheme has the technical problem of low safety, which needs to be improved. SUMMARY
[0005] The embodiments of the present application provide a consumable verification method, device, system, electronic equipment and storage medium to alleviate the technical problem of low safety of the current treatment head verification scheme.
[0006] To solve the above technical problems, the embodiments of the present application provide the following technical solutions:
[0007] The present application provides a consumable verification method, which is applicable to a consumable verification system including a consumable, a device, a user terminal and a cloud, and is applied to the device, and the method includes:
[0008] After detecting that the consumable is inserted, mutual authentication is performed with the consumable;
[0009] After authentication is successful, first device information is obtained from the device, a device QR code is generated and displayed on the device based on the first device information, and first consumable information is obtained from the consumables. Based on the first consumable information and the first device information, a first verification code is generated according to a preset algorithm.
[0010] The system receives a second verification code input by the user after obtaining it from the user terminal. This second verification code is generated by the cloud after receiving a verification code generation request carrying second consumable information and second device information. The cloud verifies the validity of the verification code generation request based on the second consumable information and the second device information. If the verification passes, the cloud generates the verification code based on the second consumable information and the second device information using the preset algorithm and sends it to the user terminal. The verification code generation request is generated by the user terminal after scanning the consumable QR code on the consumable packaging and the device QR code displayed on the device. Based on the scanning results, the user terminal obtains the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code, generates the verification code, and sends it to the cloud.
[0011] Compare the first verification code and the second verification code. If they match, a successful verification result is generated.
[0012] Meanwhile, this application also provides a method for verifying consumables. The method is applicable to a consumable verification system, which includes consumables, equipment, a user terminal, and a cloud platform. The method is applied to the cloud platform and includes:
[0013] The system receives a verification code generation request sent by the user terminal. The verification code generation request carries second consumable information and second device information. The verification code generation request is generated and sent by the user terminal after scanning the consumable QR code on the packaging and the device QR code displayed on the device, obtaining the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code based on the scanning results. The device QR code is generated and displayed on the device after the device detects the insertion of the consumable and performs mutual authentication with the consumable. After successful authentication, the device obtains first device information from the device, generates the QR code based on the first device information, and displays it on the device.
[0014] The validity of the verification code generation request is verified based on the second consumable information and the second device information. If the verification is successful, a second verification code is generated based on the second consumable information and the second device information using a preset algorithm.
[0015] The device sends the second verification code to the user terminal so that after receiving the second verification code entered by the user from the user terminal, it compares the first verification code and the second verification code. If they match, a verification success result is generated. The first verification code is generated by the device after detecting the insertion of the consumable, performing mutual authentication with the consumable, obtaining the first consumable information from the consumable after successful authentication, and generating the first consumable information and the first device information based on the preset algorithm.
[0016] This application also provides a consumable verification device, which is applicable to a consumable verification system. The consumable verification system includes consumables, equipment, a user terminal, and a cloud platform. The device is applied to the equipment and includes:
[0017] An authentication module is used to perform mutual authentication with the consumable after detecting the insertion of the consumable;
[0018] The first generation module is used to obtain first device information from the device after authentication, generate and display a device QR code in the device based on the first device information, obtain first consumable information from the consumables, and generate a first verification code based on the first consumable information and the first device information using a preset algorithm.
[0019] The first receiving module is used to receive a second verification code input by the user after obtaining it from the user terminal. The second verification code is generated by the cloud after receiving a verification code generation request carrying second consumable information and second device information. The cloud verifies the validity of the verification code generation request based on the second consumable information and the second device information. If the verification is successful, the cloud generates the verification code based on the second consumable information and the second device information using the preset algorithm and sends it to the user terminal. The verification code generation request is generated by the user terminal after scanning the consumable QR code on the packaging of the consumable and the device QR code displayed on the device. The user terminal obtains the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code based on the scanning results, and then generates the verification code and sends it to the cloud.
[0020] The comparison module is used to compare the first verification code and the second verification code. If they match, a verification success result is generated.
[0021] Meanwhile, this application also provides a consumable verification device, which is applicable to a consumable verification system. The consumable verification system includes consumables, equipment, a user terminal, and a cloud platform. The device is applied to the cloud platform and includes:
[0022] The second receiving module is used to receive a verification code generation request sent by the user terminal. The verification code generation request carries second consumable information and second device information. The verification code generation request is generated and sent by the user terminal after scanning the QR code on the packaging of the consumable and the device QR code displayed on the device, obtaining the second consumable information corresponding to the QR code and the second device information corresponding to the QR code based on the scanning results. The device QR code is generated and displayed on the device after the device detects the insertion of the consumable and performs mutual authentication with the consumable. After successful authentication, the device obtains first device information from the device, generates the QR code based on the first device information, and displays it on the device.
[0023] The second generation module is used to verify the validity of the verification code generation request based on the second consumable information and the second device information. If the verification is successful, the second verification code is generated based on the second consumable information and the second device information using a preset algorithm.
[0024] The sending module is used to send the second verification code to the user terminal, so that after the device receives the second verification code entered by the user from the user terminal, it compares the first verification code and the second verification code. If they match, a verification success result is generated. The first verification code is generated by the device after detecting the insertion of the consumable, performing mutual authentication with the consumable, obtaining the first consumable information from the consumable after successful authentication, and generating it based on the first consumable information and the first device information according to the preset algorithm.
[0025] This application also provides a consumable verification system, which includes consumables, equipment, user terminals, and a cloud platform, wherein:
[0026] The device is used to perform mutual authentication with the consumable after detecting the insertion of the consumable, and after successful authentication, obtain first device information from the device, generate and display a device QR code in the device based on the first device information, obtain first consumable information from the consumable, and generate a first verification code based on the first consumable information and the first device information using a preset algorithm.
[0027] The user terminal is used to scan the consumable QR code on the packaging of the consumable and the device QR code displayed on the device, obtain the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code based on the scanning result, generate a verification code generation request carrying the second consumable information and the second device information, and send it to the cloud.
[0028] The cloud is used to receive the verification code generation request, verify the validity of the verification code generation request based on the second consumable information and the second device information, and generate a second verification code based on the preset algorithm according to the second consumable information and the second device information, and send it to the user terminal.
[0029] The user terminal is also used to receive the second verification code;
[0030] The device is also used to receive the second verification code entered by the user after obtaining it from the user terminal, and compare the first verification code and the second verification code. If they match, a verification success result is generated.
[0031] This application also provides an electronic device, including a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to perform the steps in the verification method for consumables described in any of the preceding claims.
[0032] This application provides a computer-readable storage medium storing multiple instructions adapted for loading by a processor to execute the steps in the above-described method for verifying the authenticity of consumables.
[0033] Beneficial Effects: This application provides a method, apparatus, system, electronic device, and storage medium for verifying consumables. The system includes consumables, a device, a user terminal, and a cloud. In this method, after the device detects the insertion of a consumable, it performs mutual authentication with the consumable. After successful authentication, it obtains first device information from the device, generates and displays a device QR code based on the first device information, and obtains first consumable information from the consumable. Based on the first consumable information and the first device information, it generates a first verification code using a preset algorithm. Then, the user terminal scans the consumable QR code on the consumable packaging and the device QR code displayed on the device. Based on the scanning results, a verification code is obtained. The system retrieves the second consumable information corresponding to the consumable's QR code and the second device information corresponding to the device's QR code. It then generates a verification code generation request carrying both the second consumable and device information and sends it to the cloud. The cloud receives the verification code generation request and verifies its validity based on the second consumable and device information. If the verification passes, it generates a second verification code based on a preset algorithm using the second consumable and device information and sends it to the user terminal. Finally, the device receives the second verification code entered by the user from the user terminal and compares it with the first and second verification codes. If they match, a successful verification result is generated. This application sets up two QR codes, so that both verification codes are generated based on two types of data: device information and consumable information. Compared with the existing technology that only verifies based on consumable information, this application can ensure that even if the consumable information can be forged, the verification will fail because the device information cannot be forged. In addition, before generating the first verification code, the device needs to authenticate with the consumable, and before generating the second verification code, the cloud needs to verify the validity of the request. Only after passing the dual verification can the two verification codes be obtained and verified, thus significantly improving the anti-cracking ability. All of the above factors make this application highly secure. Attached Figure Description
[0034] The technical solution and other beneficial effects of this application will become apparent from the following detailed description of specific embodiments in conjunction with the accompanying drawings.
[0035] Figure 1 This is a schematic diagram of a consumable verification system provided in an embodiment of this application.
[0036] Figure 2 This is a schematic diagram of the first method for verifying the authenticity of consumables provided in the embodiments of this application.
[0037] Figure 3 This is a schematic diagram of a second process for verifying the authenticity of consumables provided in an embodiment of this application.
[0038] Figure 4 This is a schematic diagram of a first structure of a consumable verification device provided in an embodiment of this application.
[0039] Figure 5 This is a second structural schematic diagram of the consumable verification device provided in the embodiments of this application.
[0040] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0041] Explanation of reference numerals in the attached figures:
[0042] Consumables 11; Equipment 12; User terminal 13; Cloud 14; Authentication module 10; First generation module 20; First receiving module 30; Comparison module 40; Second receiving module 50; Second generation module 60; Transmitting module 70; Radio frequency circuit 101; Memory 102; Input unit 103; Display unit 104; Sensor 105; Audio circuit 106; WiFi module 107; Processor 108; Power supply 109. Detailed Implementation
[0043] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0044] Please see Figure 1 , Figure 1 This is a schematic diagram of the consumable verification system provided in this application embodiment. The system includes consumables 11, device 12, user terminal 13, and cloud 14. Device 12 can specifically be a medical instrument used for body treatment or facial beauty, such as a head therapy device, cervical spine massager, leg therapy device, radiofrequency skin therapy device, etc., or it can be a small household appliance used for body or facial beauty, such as a facial cleansing device, moisturizing device, etc. Consumables 11 can specifically be a treatment head or beauty head. The instrument needs to be used in conjunction with consumables 11 to achieve complete treatment or beauty functions. User terminal 13 refers to an electronic device with scanning and network capabilities used by the user receiving treatment or beauty services, such as a mobile phone, tablet, smartwatch, etc. Cloud 14 can communicate with user terminal 13 and has data processing capabilities. Consumables 11 have a designed lifespan. When the designed lifespan is reached, new consumables 11 need to be replaced. The new consumables 11 need to be verified first, that is, it needs to be confirmed that it is a product manufactured by a legitimate manufacturer. Only after successful verification can it be used by the customer.
[0045] In this application, the various objects in the above system cooperate with each other to verify the authenticity of consumable 11. Specifically, device 12 is used to mutually authenticate with consumable 11 after detecting its insertion. After successful authentication, it obtains first device information from device 12, generates and displays a device QR code on device 12 based on the first device information, and obtains first consumable information from consumable 11. Based on the first consumable information and the first device information, it generates a first verification code using a preset algorithm. User terminal 13 is used to scan the consumable QR code on the packaging of consumable 11 and the device QR code displayed on device 12. Based on the scanning results, it obtains second consumable information corresponding to the consumable QR code and second device information corresponding to the device QR code. Then, it generates a verification code generation request carrying the second consumable information and the second device information and sends it to cloud 14. Cloud 14 is used to receive the verification code generation request, verify the validity of the verification code generation request based on the second consumable information and the second device information, and generate a second verification code based on the second consumable information and the second device information using a preset algorithm after successful verification. It then sends the second verification code to user terminal 13. User terminal 13 is further configured to receive a second verification code. Device 12 is further configured to receive the second verification code entered by the user after obtaining it from user terminal 13, and compare it with the first verification code and the second verification code. If they match, a verification success result is generated.
[0046] In the aforementioned system, by setting two QR codes, both verification codes are generated based on two types of data: device information and consumable information. Compared to existing technologies that rely solely on consumable information for verification, this application ensures that even if consumable information can be forged, verification will fail because device information cannot be forged. Furthermore, before generating the first verification code, the device and consumable need to mutually authenticate each other, and before generating the second verification code, the cloud needs to verify the validity of the request. Only after both verifications are passed can two verification codes be obtained and verified, thus significantly improving anti-cracking capabilities. Considering all these factors, this application has a high level of security.
[0047] Since the verification method for consumables in this application involves interactions between multiple parties, the verification method for consumables will be described from the perspectives of individual devices and individual cloud environments in the following embodiments of this application.
[0048] Please see Figure 2 , Figure 2 This is a schematic flowchart of the first method for verifying the authenticity of consumables provided in this application embodiment. The method is applied to equipment and specifically includes:
[0049] S11: After detecting the insertion of a consumable, perform mutual authentication with the consumable.
[0050] Consumables need to be inserted into the device to function properly. After the device detects the insertion of a consumable, it needs to perform mutual authentication with the consumable to confirm the other party's identity.
[0051] S12: After authentication is successful, obtain the first device information from the device, generate and display the device QR code in the device based on the first device information, obtain the first consumable information from the consumables, and generate the first verification code based on the first consumable information and the first device information using a preset algorithm.
[0052] After authentication, the device retrieves its own initial device information, generates a device QR code based on this information, and displays it on the relevant interface of the device. Simultaneously, the device retrieves stored initial consumable information from its consumables and generates an initial verification code based on this information and the initial device information. The initial verification code is generated using a preset algorithm. This preset algorithm can specifically involve processing the initial consumable and initial device information using simple methods such as accumulation, CRC, AND, OR, and table lookup to generate data K. Then, K is mapped to letters, numbers, and symbols using the ASCII character encoding table to generate a 6-20 digit initial verification code containing any number of letters, numbers, or symbols. Of course, other algorithms can also be used; this application does not limit the specific content of the preset algorithm. The initial verification code can be generated and stored in the device first, and then retrieved when comparison is needed later, or it can be generated only when comparison is required. This application does not restrict the order in which the initial verification codes are generated.
[0053] In existing technology, once a consumable is inserted into a device, the device can directly obtain the consumable's information. Therefore, someone can obtain this information and forge the consumable's QR code, combining it with a counterfeit consumable. When a user scans the forged QR code, verification is easily successful. Alternatively, someone can obtain the information and store it in a counterfeit consumable. When a user inserts this counterfeit consumable into the device, the device obtains the information, also easily achieving verification. However, in reality, this consumable is an unofficial product, resulting in low security.
[0054] In this embodiment of the application, by adding an authentication step, the device can only obtain the first consumable information from the consumable after mutual authentication between the consumable and the device. The consumable has high anti-hacking performance, thereby effectively improving security.
[0055] In one embodiment, the step of obtaining first device information from the device and generating and displaying a device QR code on the device based on the first device information specifically includes:
[0056] S121: Obtain the device identifier from the device.
[0057] S122: Generate random numbers and generate verification data corresponding to the random numbers based on a preset verification algorithm.
[0058] S123: Generate and display a device QR code on the device based on the device identifier, random number, and verification data.
[0059] The first piece of device information may include a device identifier (unique device ID), a random number, and the corresponding verification data. The random number can be generated based on a random number generation algorithm, and the verification data can be generated based on a preset verification algorithm. Specifically, the preset verification algorithm may be a lookup table mapping, that is, first establishing a random number-verification data mapping table, where each random number has a unique corresponding verification data in the table. After generating a random number, its corresponding verification data can be directly retrieved from the table. Based on these three elements, the device can generate a device QR code and display it on its relevant interface for users to scan.
[0060] In addition to these three data points, other device-related information (such as consumable insertion time) can be obtained as needed to participate in the generation of the device QR code. This information can be uploaded to the cloud for recording in subsequent steps as the device QR code is scanned, facilitating after-sales management.
[0061] If a device QR code is generated solely based on the device identifier, the device QR code will be a static QR code. Subsequent scanning of this QR code to generate a request can easily lead to credential stuffing attacks. However, by setting random numbers and verification data, the device QR code becomes a dynamic QR code. Since there is a correspondence between the random number and the verification data, if a mismatch is found in the request, it will be judged as an invalid request. Therefore, this application can effectively prevent credential stuffing attacks and improve security.
[0062] In one embodiment, the step of obtaining first consumable information from consumables specifically includes:
[0063] S124: Retrieve encrypted consumable information from the encrypted storage module of the consumable.
[0064] S125: Decrypt the encrypted consumable information to obtain the consumable identifier.
[0065] The consumables include an encrypted storage module, which can be a cryptographic chip. This chip integrates an encryption authentication algorithm; only after the device and the chip mutually authenticate each other using this algorithm can the encrypted consumable information stored in the chip be accessed. The encrypted storage module can also be an NFC wireless communication module with encrypted storage functionality. By setting up an encrypted storage module, hardware-level protection is achieved.
[0066] The encrypted consumable information may include the consumable identifier (unique ID), manufacturing date, version, model, and total quantity issued. The encrypted consumable information itself is also encrypted, and the encryption method may be a lookup table mapping. After the device decrypts this encrypted consumable information, it obtains the first consumable information, which includes the consumable identifier, manufacturing date, version, model, and total quantity issued.
[0067] In one embodiment, the step of generating a first verification code based on a preset algorithm according to the first consumable information and the first device information specifically includes:
[0068] S126: Generate the first verification code based on the device identifier and consumable identifier using a preset algorithm.
[0069] The data required in the first consumable information and the first equipment information mainly consists of the equipment identifier and the consumable identifier. Calculating these two identifiers yields the first verification code. However, this application is not limited to this; other data contained in the first consumable information and the first equipment information can also be included in the calculation of the first verification code to improve anti-cracking performance.
[0070] S13: Receive the second verification code entered by the user after obtaining it from the user terminal; the second verification code is generated by the cloud after receiving the verification code generation request carrying the second consumable information and the second device information, based on the second consumable information and the second device information, to verify the validity of the verification code generation request, and if the verification is successful, it is generated based on the second consumable information and the second device information according to a preset algorithm and sent to the user terminal; the verification code generation request is generated by the user terminal after scanning the consumable QR code on the consumable packaging and the device QR code displayed on the device, obtaining the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code according to the scanning result, and then sending it to the cloud.
[0071] The consumable packaging includes a QR code. At the time of manufacture, the second consumable information contained in the QR code matches the encrypted consumable information stored within the consumable. During the aforementioned steps, the device displays a QR code. The second device information contained in this QR code matches the first device information obtained by the device from itself. Both QR codes contain encrypted information to prevent leakage due to plaintext transmission.
[0072] When verifying authenticity, users first scan the QR codes of consumables and devices using their user terminals. Based on the scanning results, they can obtain information about the second consumable and the second device. Then, users click "Generate Verification Code" on their user terminals to send a verification code generation request to the cloud. This request will carry the information about the second consumable and the second device.
[0073] Upon receiving the request, the cloud first verifies its validity. If the request is invalid, it is not processed; if it is valid, it continues processing by generating a second verification code based on the second consumable information and the second device information. The second verification code is generated using a preset algorithm, the same algorithm used by the device to generate the first verification code in the previous steps. After generation, the cloud sends the second verification code to the user terminal, where it is displayed on the relevant interface. The user obtains the second verification code from the user terminal and manually enters it into the relevant interface of the device, allowing the device to retrieve the verification code.
[0074] In addition, users can also scan only the consumable's QR code to obtain secondary consumable information, such as whether the consumable has been used and the number of times the consumable's QR code has been scanned. If the consumable has been used, users can also find out which organization used the consumable to verify the organization's information. That is, users can choose to scan only the consumable's QR code or scan both the device's QR code and the consumable's QR code simultaneously to meet different needs.
[0075] S14: Compare the first verification code and the second verification code. If they match, generate a verification success result.
[0076] The device compares the first verification code and the second verification code. If they match, the verification is successful and the consumable can be used normally. Otherwise, the verification fails and the device will refuse to use the consumable.
[0077] Through the above steps, the device first performs mutual authentication with the consumable. After successful authentication, a first verification code is generated based on the first consumable information and the first device information. The device QR code is displayed based on the first device information. The user terminal scans the consumable QR code and the device QR code and sends a request to the cloud. After receiving the second verification code returned by the cloud, the first verification code and the second verification code are compared. If they match, the consumable is confirmed to be successfully verified. This achieves the improvement of security from the device side.
[0078] Please see Figure 3 , Figure 3 This is a schematic diagram of the second method for verifying the authenticity of consumables provided in this application embodiment. This method is applied in the cloud and specifically includes:
[0079] S21: Receive a verification code generation request sent by the user terminal. The verification code generation request carries second consumable information and second device information. The verification code generation request is generated and sent by the user terminal after scanning the QR code on the packaging of the consumable and the device QR code displayed on the device. The device QR code is generated and sent by the user terminal after scanning the QR code on the consumable and the device QR code. The device QR code is generated and displayed on the device after the device detects the insertion of the consumable and performs mutual authentication with the consumable. After successful authentication, the device obtains the first device information from the device and generates the QR code based on the first device information.
[0080] Consumables need to be inserted into the device to function properly. After detecting the insertion of a consumable, the device needs to perform mutual authentication with the consumable to confirm its identity. After successful authentication, the device obtains its initial device information, generates a device QR code based on this information, and displays it on the relevant interface of the device.
[0081] The consumable packaging includes a QR code. At the time of manufacture, the second consumable information contained in the QR code is consistent with the encrypted consumable information stored within the consumable. During the aforementioned steps, the device displays a QR code. The second device information contained in this QR code is consistent with the first device information obtained by the device from itself. The information contained in both QR codes is encrypted to prevent information leakage due to plaintext transmission. The first device information may include a device identifier (unique device ID), a random number, and corresponding verification data. The second consumable information may include a consumable identifier (unique consumable ID), manufacturing date, version, model, and total quantity issued.
[0082] When verifying authenticity, users first scan the QR codes of the consumables and the device using their user terminals. Based on the scanning results, they can obtain information about the second consumable and the second device. Then, the user clicks "Generate Verification Code" on their user terminal to send a verification code generation request to the cloud. This request carries the information about the second consumable and the second device. The cloud can receive this request.
[0083] S22: Verify the validity of the verification code generation request based on the second consumable information and the second equipment information. If the verification is successful, generate the second verification code based on the second consumable information and the second equipment information and a preset algorithm.
[0084] Upon receiving the request, the cloud first verifies its validity. If the request is invalid, it is not processed; if it is valid, it continues processing, specifically by generating a second verification code based on the second consumable information and the second device information. The second verification code is generated using a preset algorithm. This preset algorithm can be achieved by first processing the second consumable information and the second device information using simple methods such as accumulation, CRC, AND, OR, or table lookup to generate data W. Then, W is mapped to letters, numbers, and symbols using the ASCII character encoding table to generate a 6-20 digit second verification code containing any number of letters, numbers, or symbols. Of course, the preset algorithm can also be other algorithms; this application does not limit the specific content of the preset algorithm.
[0085] In one embodiment, the step of validating the verification code generation request based on the second consumable information and the second device information specifically includes:
[0086] S221: Obtain the consumable identifier from the second consumable information.
[0087] S222: Determine whether the verification code generation request is the first request corresponding to the consumable identifier.
[0088] S223: If not, generate a first request invalid information and send it to the client terminal. The first request invalid information includes information on the use of consumables.
[0089] When validating a request, if either the second consumable information or the second device information fails validation, the request is invalid. In this embodiment, the validity verification of the request is explained based on the second consumable information.
[0090] Specifically, the second consumable information includes a consumable identifier. The cloud only allows each consumable identifier to request a verification code once; subsequent requests are invalid after a successful request. Therefore, in this embodiment, after obtaining the consumable identifier, the cloud will determine whether this verification code generation request is the first request corresponding to that consumable identifier. If not, the request is deemed invalid, a first invalid request message is generated and sent to the client terminal, and the request will not be processed. The first invalid request message may carry information about the consumable's usage, specifically including the consumable's usage conclusion and the institution that used it, to provide reference for relevant personnel.
[0091] By following the steps above, we can prevent counterfeit consumables from requesting verification codes using the same consumable label, thus eliminating the possibility of counterfeit consumables.
[0092] In one embodiment, the process further includes the following after S222:
[0093] S224: If so, mark the consumable as used.
[0094] If it is determined that this verification code generation request is the first request corresponding to the consumable identifier, in addition to continuing to process the request normally, the cloud can mark the consumable as used. When the next request carrying the consumable identifier is received, the cloud can determine that the request is not the first request based on the marking result.
[0095] In one embodiment, the step of validating the verification code generation request based on the second consumable information and the second device information specifically includes:
[0096] S225: Obtain a random number and the corresponding verification data from the second consumable information; the random number is generated by the device, and the verification data is generated by the device based on a preset verification algorithm for the random number.
[0097] S226: Determine whether the random number and the verification data correspond.
[0098] S227: If not, generate a second request invalid information and send it to the client terminal.
[0099] In this embodiment, the validity verification of the request is explained based on the second device information.
[0100] Specifically, the first device information includes a device identifier, a random number, and corresponding verification data. The random number can be generated based on a random number generation algorithm, and the verification data can be generated based on a preset verification algorithm. The preset verification algorithm can be a lookup table mapping, where a random number-verification data mapping table is first established, and each random number has a unique corresponding verification data in the table. After generating a random number, its corresponding verification data can be directly retrieved from the table. Based on these three elements, the device can generate a device QR code and display it on its relevant interface for users to scan. After the user terminal scans the device QR code, it obtains second device data, which also contains this information. The cloud can then obtain the random number and verification data from the second device information carried in the request.
[0101] After obtaining the random number, the cloud platform determines whether the random number and verification data correspond. This determination can be based on a preset verification algorithm. Specifically, it queries a random number-verification data mapping table based on the random number. This mapping table is the same as the one used when the device generates the verification data corresponding to the random number in the previous steps. If the verification data obtained by the cloud platform from this table is inconsistent with the verification data in the second device data, it indicates that the random number and verification data in this request do not correspond, meaning the request is forged. The cloud platform will determine that this request is invalid, generate a second invalid request message and send it to the client terminal, and will not process this request further.
[0102] Through the above steps, the cloud will only consider the request valid if it determines that the random number and the verification data have a corresponding relationship. Therefore, a forged request also needs to carry a random number and verification data with a corresponding relationship. However, it is very difficult to obtain the verification data corresponding to the random number without knowing the preset verification algorithm. Therefore, this method greatly increases the difficulty of forging requests, which can effectively prevent credential stuffing and improve security.
[0103] S23: Send a second verification code to the user terminal so that after receiving the second verification code entered by the user from the user terminal, the device compares the first verification code and the second verification code. If they match, a verification success result is generated. The first verification code is generated by the device after detecting the insertion of consumables and performing mutual authentication with the consumables. After successful authentication, the device obtains the first consumable information from the consumables and generates it based on a preset algorithm according to the first consumable information and the first device information.
[0104] In the above steps, after successful authentication, the device retrieves the first consumable information stored in the consumables and generates a first verification code based on the first consumable information and the first device information. The first verification code is generated using a preset algorithm, which is the same algorithm used to generate the second verification code in the cloud in the above steps.
[0105] After generating the second verification code, the cloud sends it to the user terminal, where it is displayed on the relevant interface. The user obtains the second verification code from the terminal and manually enters it into the device's interface. The device then retrieves the second verification code and compares it with the first and second verification codes. If they match, the verification is successful, and the consumable can be used normally. Otherwise, the verification fails, and the device will refuse to use the consumable.
[0106] In one embodiment, the process further includes the following after S23:
[0107] S24: Obtain the organization information bound to the device identifier.
[0108] S25: After the consumable is used, the consumable identifier is linked to the organization information.
[0109] The cloud system binds each device identifier to corresponding organization information. Once a consumable is successfully verified and used, the cloud can also bind the consumable identifier to that organization information. After binding, when the user scans the consumable's QR code again, the binding status between the consumable and the organization information will be displayed on the user's terminal, allowing the user to know the organization where the consumable was used and enabling traceability of the usage process.
[0110] In addition, each time a user scans the QR code of a consumable, the cloud records the scanning information and displays the corresponding information to the user based on the scanning information the next time the user scans, such as the number of times the product has been scanned and whether it has been used, thereby increasing trust.
[0111] Through the above steps, after receiving the verification code generation request sent by the user terminal, the cloud first verifies the validity of the request based on the second consumable information and the second device information carried in the request. If the verification is successful, the cloud generates a second verification code based on the second consumable information and the second device information using a preset algorithm and sends it to the user terminal. This allows the device to obtain the verification result by comparing the first verification code with the second verification code after receiving the second verification code entered by the user from the user terminal. This achieves security improvement from the cloud side.
[0112] In summary, the consumable verification method provided in this application uses two QR codes, both generated based on device information and consumable information. Compared to existing technologies that rely solely on consumable information for verification, this application ensures that even if consumable information can be forged, verification will fail because device information cannot be forged. Furthermore, before generating the first verification code, the device and consumable must mutually authenticate each other, and before generating the second verification code, the cloud verifies the validity of the request. Only after both verifications are passed can the two verification codes be obtained and verified, thus significantly improving anti-cracking capabilities. Considering all these factors, this application boasts high security.
[0113] Throughout the entire process described above, before using the consumable, users can simply scan the consumable's QR code to obtain secondary consumable information, such as the consumable's usage status and the QR code's scanning status. During consumable use, users only need to scan two QR codes and enter a verification code once. The operation is simple, but because users can participate in the verification process, it helps to enhance trust. After consumable use, manufacturers can obtain relevant information from the cloud to track the consumable's usage institutions and frequency, facilitating after-sales management.
[0114] Based on the methods described in the above embodiments, this embodiment will further describe the method from the perspective of a consumable verification device. This device is applicable to a consumable verification system, which includes consumables, equipment, user terminals, and a cloud platform. Please refer to [link / reference]. Figure 4 This device is applied to equipment and may specifically include:
[0115] The authentication module 10 is used to perform mutual authentication with the consumable after detecting the insertion of the consumable;
[0116] The first generation module 20 is used to obtain first device information from the device after authentication, generate and display a device QR code in the device based on the first device information, obtain first consumable information from the consumables, and generate a first verification code based on the first consumable information and the first device information using a preset algorithm.
[0117] The first receiving module 30 is used to receive a second verification code input by the user after obtaining it from the user terminal. The second verification code is generated by the cloud after receiving a verification code generation request carrying second consumable information and second device information. The cloud verifies the validity of the verification code generation request based on the second consumable information and the second device information. If the verification is successful, the cloud generates the verification code based on the second consumable information and the second device information according to the preset algorithm and sends it to the user terminal. The verification code generation request is generated by the user terminal after scanning the consumable QR code on the packaging of the consumable and the device QR code displayed on the device. The user terminal obtains the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code based on the scanning results and then generates the verification code and sends it to the cloud.
[0118] The comparison module 40 is used to compare the first verification code and the second verification code, and generate a verification success result when they match.
[0119] In one embodiment, the first generation module 20 includes:
[0120] The first acquisition unit is used to acquire a device identifier from the device;
[0121] The first generation unit is used to generate random numbers and generate verification data corresponding to the random numbers based on a preset verification algorithm;
[0122] The display unit is used to generate and display a device QR code in the device based on the device identifier, the random number, and the verification data.
[0123] In one embodiment, the first generation module 20 includes:
[0124] The second acquisition unit is used to acquire encrypted consumable information from the encrypted storage module of the consumable;
[0125] The decryption unit is used to decrypt the encrypted consumable information to obtain the consumable identifier.
[0126] In one embodiment, the first generation module 20 includes:
[0127] The second generation unit is used to generate a first verification code based on a preset algorithm according to the device identifier and the consumable identifier.
[0128] Accordingly, this application also provides a consumable verification device, which is applicable to a consumable verification system. The consumable verification system includes consumables, equipment, a user terminal, and a cloud platform. Please refer to [link to relevant documentation]. Figure 5 This device is used in the cloud and may specifically include:
[0129] The second receiving module 50 is used to receive a verification code generation request sent by the user terminal. The verification code generation request carries second consumable information and second device information. The verification code generation request is generated and sent by the user terminal after scanning the consumable QR code on the packaging and the device QR code displayed on the device, obtaining the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code based on the scanning results. The device QR code is generated and displayed on the device after the device detects the insertion of the consumable and performs mutual authentication with the consumable. After successful authentication, the device obtains first device information from the device, generates the QR code based on the first device information, and displays it on the device.
[0130] The second generation module 60 is used to verify the validity of the verification code generation request based on the second consumable information and the second device information. If the verification is successful, the second verification code is generated based on the second consumable information and the second device information using a preset algorithm.
[0131] The sending module 70 is used to send the second verification code to the user terminal, so that after the device receives the second verification code entered by the user from the user terminal, it compares the first verification code and the second verification code. If they match, a verification success result is generated. The first verification code is generated by the device after detecting the insertion of the consumable, performing mutual authentication with the consumable, obtaining the first consumable information from the consumable after successful authentication, and generating it based on the first consumable information and the first device information according to the preset algorithm.
[0132] In one embodiment, the second generation module 60 includes:
[0133] The third acquisition unit is used to acquire the consumable identifier from the second consumable information;
[0134] The first judgment unit is used to determine whether the verification code generation request is the first request corresponding to the consumable identifier;
[0135] The first sending unit is configured to generate a first request invalidation message and send it to the client terminal if no, wherein the first request invalidation message includes the usage information of the consumables.
[0136] In one embodiment, the second generation module 60 further includes:
[0137] A marking unit is used to mark the consumable as used if, if so.
[0138] In one embodiment, the second generation module 60 includes:
[0139] The fourth acquisition unit is used to acquire a random number and the corresponding verification data from the second consumable information; the random number is generated by the device, and the verification data is generated by the device based on a preset verification algorithm on the random number;
[0140] The second judgment unit is used to determine whether the random number and the verification data are consistent;
[0141] The second sending unit is used to generate a second request invalidation message and send it to the client terminal if no.
[0142] In one embodiment, the device further includes:
[0143] The acquisition module is used to acquire the organization information bound to the device identifier;
[0144] The binding module is used to bind the consumable identifier to the organization information after the consumable has been used.
[0145] Unlike existing technologies, the consumable verification device provided in this application uses two QR codes, both of which are generated based on device information and consumable information. Compared to existing technologies that rely solely on consumable information for verification, this application ensures that even if consumable information can be forged, verification will fail because device information cannot be forged. Furthermore, before generating the first verification code, the device and consumable must mutually authenticate each other, and before generating the second verification code, the cloud must verify the validity of the request. Only after both verifications are passed can the two verification codes be obtained and verified, thus significantly improving anti-cracking capabilities. All of these factors combined make this application highly secure.
[0146] Accordingly, this application also provides an electronic device that can be installed in a consumable verification system, the consumable verification system including consumables, equipment, user terminal and cloud.
[0147] like Figure 6 As shown, the electronic device may include a radio frequency (RF) circuit 101, a memory 102 including one or more computer-readable storage media, an input unit 103, a display unit 104, a sensor 105, an audio circuit 106, a WiFi module 107, a processor 108 including one or more processing cores, and a power supply 109, among other components. Those skilled in the art will understand that... Figure 6The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0148] The radio frequency circuit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and hands it over to one or more processors 108 for processing; additionally, it transmits uplink data to the base station. The memory 102 can be used to store software programs and modules. The processor 108 executes various functional applications by running the software programs and modules stored in the memory 102. The input unit 103 can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to customer settings and function control.
[0149] Display unit 104 can be used to display information input by the customer or information provided to the customer, as well as various graphical client interfaces of the server. These graphical client interfaces can be composed of graphics, text, icons, videos, and any combination thereof.
[0150] The electronic device may also include at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Audio circuitry 106 includes a speaker that provides an audio interface between the client and the electronic device.
[0151] WiFi is a wireless transmission technology. Electronic devices using the WiFi module 107 can help customers send and receive emails, browse web pages, and access streaming media, providing customers with wireless broadband internet access. Although Figure 6 WiFi module 107 is shown, but it is understood that it is not a necessary component of the electronic device and can be omitted as needed without changing the nature of the application.
[0152] The processor 108 is the control center of the electronic device. It connects various parts of the phone through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 102, and calling data stored in the memory 102, it performs various functions of the electronic device and processes data, thereby monitoring the phone as a whole.
[0153] The electronic device also includes a power supply 109 (such as a battery) that supplies power to the various components. Preferably, the power supply can be logically connected to the processor 108 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.
[0154] Although not shown, electronic devices may also include cameras, Bluetooth modules, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 108 in the server loads the executable files corresponding to the processes of one or more applications into the memory 102 according to the following instructions, and the processor 108 runs the applications stored in the memory 102 to achieve the following functions:
[0155] After the insertion of the consumable is detected, mutual authentication is performed with the consumable;
[0156] After authentication is successful, first device information is obtained from the device, a device QR code is generated and displayed on the device based on the first device information, and first consumable information is obtained from the consumables. Based on the first consumable information and the first device information, a first verification code is generated according to a preset algorithm.
[0157] The system receives a second verification code input by the user after obtaining it from the user terminal. This second verification code is generated by the cloud after receiving a verification code generation request carrying second consumable information and second device information. The cloud verifies the validity of the verification code generation request based on the second consumable information and the second device information. If the verification passes, the cloud generates the verification code based on the second consumable information and the second device information using the preset algorithm and sends it to the user terminal. The verification code generation request is generated by the user terminal after scanning the consumable QR code on the consumable packaging and the device QR code displayed on the device. Based on the scanning results, the user terminal obtains the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code, generates the verification code, and sends it to the cloud.
[0158] Compare the first verification code and the second verification code. If they match, a successful verification result is generated.
[0159] Or achieve the following functionality:
[0160] The system receives a verification code generation request sent by the user terminal. The verification code generation request carries second consumable information and second device information. The verification code generation request is generated and sent by the user terminal after scanning the consumable QR code on the packaging and the device QR code displayed on the device, obtaining the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code based on the scanning results. The device QR code is generated and displayed on the device after the device detects the insertion of the consumable and performs mutual authentication with the consumable. After successful authentication, the device obtains first device information from the device, generates the QR code based on the first device information, and displays it on the device.
[0161] The validity of the verification code generation request is verified based on the second consumable information and the second device information. If the verification is successful, a second verification code is generated based on the second consumable information and the second device information using a preset algorithm.
[0162] The device sends the second verification code to the user terminal so that after receiving the second verification code entered by the user from the user terminal, it compares the first verification code and the second verification code. If they match, a verification success result is generated. The first verification code is generated by the device after detecting the insertion of the consumable, performing mutual authentication with the consumable, obtaining the first consumable information from the consumable after successful authentication, and generating the first consumable information and the first device information based on the preset algorithm.
[0163] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed description above, which will not be repeated here.
[0164] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0165] Therefore, embodiments of this application provide a computer-readable storage medium that can be disposed in a consumable verification system, the consumable verification system including consumables, equipment, user terminals, and the cloud.
[0166] The computer-readable storage medium stores multiple instructions that can be loaded by a processor to perform the following functions:
[0167] After the insertion of the consumable is detected, mutual authentication is performed with the consumable;
[0168] After authentication is successful, first device information is obtained from the device, a device QR code is generated and displayed on the device based on the first device information, and first consumable information is obtained from the consumables. Based on the first consumable information and the first device information, a first verification code is generated according to a preset algorithm.
[0169] The system receives a second verification code input by the user after obtaining it from the user terminal. This second verification code is generated by the cloud after receiving a verification code generation request carrying second consumable information and second device information. The cloud verifies the validity of the verification code generation request based on the second consumable information and the second device information. If the verification passes, the cloud generates the verification code based on the second consumable information and the second device information using the preset algorithm and sends it to the user terminal. The verification code generation request is generated by the user terminal after scanning the consumable QR code on the consumable packaging and the device QR code displayed on the device. Based on the scanning results, the user terminal obtains the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code, generates the verification code, and sends it to the cloud.
[0170] Compare the first verification code and the second verification code. If they match, a successful verification result is generated.
[0171] Or achieve the following functionality:
[0172] The system receives a verification code generation request sent by the user terminal. The verification code generation request carries second consumable information and second device information. The verification code generation request is generated and sent by the user terminal after scanning the consumable QR code on the packaging and the device QR code displayed on the device, obtaining the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code based on the scanning results. The device QR code is generated and displayed on the device after the device detects the insertion of the consumable and performs mutual authentication with the consumable. After successful authentication, the device obtains first device information from the device, generates the QR code based on the first device information, and displays it on the device.
[0173] The validity of the verification code generation request is verified based on the second consumable information and the second device information. If the verification is successful, a second verification code is generated based on the second consumable information and the second device information using a preset algorithm.
[0174] The device sends the second verification code to the user terminal so that after receiving the second verification code entered by the user from the user terminal, it compares the first verification code and the second verification code. If they match, a verification success result is generated. The first verification code is generated by the device after detecting the insertion of the consumable, performing mutual authentication with the consumable, obtaining the first consumable information from the consumable after successful authentication, and generating the first consumable information and the first device information based on the preset algorithm.
[0175] The present application provides a detailed description of a method, apparatus, system, electronic device, and computer-readable storage medium for verifying consumables. Specific examples have been used to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only for the purpose of helping to understand the technical solutions and core ideas of the present application. Those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for verifying the authenticity of consumables, characterized in that, The method is applicable to a consumable verification system, which includes consumables, equipment, a user terminal, and a cloud platform. The method is applied to the equipment and includes: After the insertion of the consumable is detected, mutual authentication is performed with the consumable; After authentication is successful, first device information is obtained from the device, a device QR code is generated and displayed on the device based on the first device information, and first consumable information is obtained from the consumables. Based on the first consumable information and the first device information, a first verification code is generated according to a preset algorithm. The system receives a second verification code input by the user after obtaining it from the user terminal. This second verification code is generated by the cloud after receiving a verification code generation request carrying second consumable information and second device information. The cloud verifies the validity of the verification code generation request based on the second consumable information and the second device information. If the verification passes, the cloud generates the verification code based on the second consumable information and the second device information using the preset algorithm and sends it to the user terminal. The verification code generation request is generated by the user terminal after scanning the consumable QR code on the consumable packaging and the device QR code displayed on the device. Based on the scanning results, the user terminal obtains the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code, generates the verification code, and sends it to the cloud. Compare the first verification code and the second verification code. If they match, a successful verification result is generated.
2. The method for verifying the authenticity of consumables according to claim 1, characterized in that, The steps of obtaining first device information from the device, generating and displaying a device QR code on the device based on the first device information, include: Obtain the device identifier from the device; Generate random numbers and generate verification data corresponding to the random numbers based on a preset verification algorithm; A device QR code is generated and displayed on the device based on the device identifier, the random number, and the verification data.
3. The method for verifying the authenticity of consumables according to claim 2, characterized in that, The step of obtaining first consumable information from the consumables includes: Obtain encrypted consumable information from the encrypted storage module of the consumable; The encrypted consumable information is decrypted to obtain the consumable identifier.
4. The method for verifying the authenticity of consumables according to claim 3, characterized in that, The step of generating a first verification code based on the first consumable information and the first device information using a preset algorithm includes: Based on the device identifier and the consumable identifier, a first verification code is generated using a preset algorithm.
5. A method for verifying the authenticity of consumables, characterized in that, The method is applicable to a consumable verification system, which includes consumables, equipment, user terminals, and a cloud platform. The method is applied to the cloud platform and includes: The system receives a verification code generation request sent by the user terminal. The verification code generation request carries second consumable information and second device information. The verification code generation request is generated and sent by the user terminal after scanning the consumable QR code on the packaging and the device QR code displayed on the device, obtaining the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code based on the scanning results. The device QR code is generated and displayed on the device after the device detects the insertion of the consumable and performs mutual authentication with the consumable. After successful authentication, the device obtains first device information from the device, generates the QR code based on the first device information, and displays it on the device. The validity of the verification code generation request is verified based on the second consumable information and the second device information. If the verification is successful, a second verification code is generated based on the second consumable information and the second device information using a preset algorithm. The device sends the second verification code to the user terminal so that after receiving the second verification code entered by the user from the user terminal, it compares the first verification code and the second verification code. If they match, a verification success result is generated. The first verification code is generated by the device after detecting the insertion of the consumable, performing mutual authentication with the consumable, obtaining the first consumable information from the consumable after successful authentication, and generating the first consumable information and the first device information based on the preset algorithm.
6. The method for verifying the authenticity of consumables according to claim 5, characterized in that, The steps for validating the verification code generation request based on the second consumable information and the second device information include: Obtain the consumable identifier from the second consumable information; Determine whether the verification code generation request is the first request corresponding to the consumable identifier; If not, a first request invalidation message is generated and sent to the client terminal. The first request invalidation message includes the usage information of the consumables.
7. The method for verifying the authenticity of consumables according to claim 6, characterized in that, After determining whether the verification code generation request is the first request corresponding to the consumable identifier, the method further includes: If so, mark the consumable as used.
8. The method for verifying the authenticity of consumables according to claim 6, characterized in that, The steps for validating the verification code generation request based on the second consumable information and the second device information include: Obtain a random number and corresponding verification data from the second consumable information; the random number is generated by the device, and the verification data is generated by the device based on a preset verification algorithm for the random number; Determine whether the random number and the verification data correspond; If not, generate a second invalid request message and send it to the client terminal.
9. The method for verifying the authenticity of consumables according to claim 5, characterized in that, After the step of sending the second verification code to the user terminal, the method further includes: Obtain the organization information bound to the device identifier; After the consumable is used, the consumable identifier is bound to the organization information.
10. A verification system for consumables, characterized in that, The consumable verification system includes consumables, equipment, user terminals, and a cloud platform, wherein: The device is used to perform mutual authentication with the consumable after detecting the insertion of the consumable, and after successful authentication, obtain first device information from the device, generate and display a device QR code in the device based on the first device information, obtain first consumable information from the consumable, and generate a first verification code based on the first consumable information and the first device information using a preset algorithm. The user terminal is used to scan the consumable QR code on the packaging of the consumable and the device QR code displayed on the device, obtain the second consumable information corresponding to the consumable QR code and the second device information corresponding to the device QR code based on the scanning result, generate a verification code generation request carrying the second consumable information and the second device information, and send it to the cloud. The cloud is used to receive the verification code generation request, verify the validity of the verification code generation request based on the second consumable information and the second device information, and generate a second verification code based on the preset algorithm according to the second consumable information and the second device information, and send it to the user terminal. The user terminal is also used to receive the second verification code; The device is also used to receive the second verification code entered by the user after obtaining it from the user terminal, and compare the first verification code and the second verification code. If they match, a verification success result is generated.