Parameter verification method and device and server

By extracting and verifying the target parameter information in the QR code information of the device, using the AES encryption and decryption algorithm, the problem that traditional parameter verification methods are difficult to prevent complex attacks and data tampering is solved, and higher verification accuracy and security are achieved.

CN119598523AInactive Publication Date: 2025-03-11XIAN FENGYU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411594135.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-03-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional parameter verification methods are difficult to effectively prevent complex attack methods and data tampering, especially in the Internet of Things and mobile Internet environments, where there are many types of devices and complex data formats, and traditional methods are difficult to meet actual needs.

Method used

By obtaining the QR code information of the device to be verified, the target parameter information is extracted, including device identification, hardware version information, software version information and verification parameters, and the parameters are checked for this information, and the AES encryption and decryption algorithms are used to ensure the security and accuracy of the data.

Benefits of technology

Improve the accuracy and security of parameter verification, effectively prevent the equipment from being illegally used or tampered with, ensure that only legal and compliant requests can be processed, and reduce potential security risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119598523A_ABST
    Figure CN119598523A_ABST
Patent Text Reader

Abstract

The invention provides a parameter verification method and device and a server, the parameter verification method is applied to the server, and the method comprises the steps: obtaining two-dimensional code information of to-be-verified equipment, and determining verification request information corresponding to the two-dimensional code information; extracting target parameter information from the two-dimensional code information according to the coding rule of the two-dimensional code information, wherein the target parameter information comprises a device identifier, hardware version information, software version information and a verification parameter; performing parameter verification on the target parameter information to obtain a verification result of the two-dimensional code information; and processing verification request information corresponding to the two-dimensional code information according to a verification result of the two-dimensional code information. According to the parameter verification method provided by the invention, the reliability of the equipment verification process can be enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and more specifically, to a parameter verification method, device and server. Background Art

[0002] In the current information age, servers, as the center of data storage and processing, play an increasingly important role. With the rapid development of the Internet of Things and mobile Internet, more and more devices need to interact and query data through servers. In order to ensure the security and accuracy of data, servers need to strictly verify the verification requests from different devices.

[0003] Traditional parameter verification methods mainly rely on checking the format and range of request parameters to ensure that they meet the expected requirements. However, this method can often only detect some simple errors or abnormalities, and it is difficult to effectively prevent complex attacks or data tampering. Especially in the Internet of Things and mobile Internet environments, there are many types of devices and complex data formats. Traditional parameter verification methods can no longer meet the needs of practical applications.

[0004] In related technologies, in order to solve the above problems, the industry has begun to explore more efficient and secure parameter verification methods. Among them, QR codes, as a convenient way to transmit information, are gradually being used in the interaction between devices and servers. By scanning the QR code on the device, the application can send verification request information to the server, and the server processes the request and returns the result based on this information. However, relying solely on the QR code itself cannot guarantee the security and accuracy of the data, because the QR code information may also be tampered with or forged. Therefore, how to improve the accuracy and security of parameter verification has become an important issue that needs to be solved urgently. Summary of the invention

[0005] In a first aspect, a parameter verification method is provided, which is applied to a server, and the method includes: obtaining two-dimensional code information of a device to be verified, and determining verification request information corresponding to the two-dimensional code information; extracting target parameter information from the two-dimensional code information according to an encoding rule of the two-dimensional code information, and the target parameter information includes: device identification, hardware version information, software version information, and verification parameters; performing parameter verification on the target parameter information to obtain a verification result of the two-dimensional code information; and processing the verification request information corresponding to the two-dimensional code information according to the verification result of the two-dimensional code information.

[0006] In the above parameter verification method, by obtaining the QR code information of the device to be verified, the server can quickly identify the relevant requests of the device and enhance the accuracy of subsequent verification work. When extracting the target parameter information, the server accurately obtains the device identification, hardware version information, software version information and verification parameters according to the encoding rules of the QR code. By performing parameter verification on the target parameter information, the server can verify the authenticity and validity of the QR code information to prevent the device from being illegally used or tampered with. At the same time, according to the verification results, the server can intelligently process the verification request information and return the corresponding verification success or failure information to the client, thereby improving the accuracy and security of parameter verification.

[0007] By verifying the target parameter information, the server can determine whether the information conforms to the expected format, range or constraints. If the verification result shows that the parameter information does not meet the requirements, the server can refuse to process the request, thereby avoiding potential security risks or errors. This verification mechanism can effectively prevent malicious attacks or misoperations from damaging the system.

[0008] In one implementation, the encoding rules of the QR code include: obtaining device parameter information of the device to be verified, the device parameter information including device identification, hardware version information, and software version information; obtaining verification parameters based on the AES encryption result of the device identification and incremental numbers; and creating the QR code information based on the device parameter information and the verification parameters.

[0009] In the above parameter verification method, the AES encryption result of the device identification and the incrementing number is used as the verification parameter. When creating the QR code information, the server combines the device parameter information and the verification parameter to generate a unique and secure QR code, which can effectively prevent the QR code information from being tampered with or forged, and further enhance the confidentiality and anti-tampering capabilities of the QR code. At the same time, since each generated QR code contains an incrementing number, it can ensure that each QR code is unique, avoid the problem of reuse, and improve the reliability of the system. The design of the QR code encoding rules enhances the integrity and accuracy of the QR code information, and at the same time, improves the security of the system.

[0010] In one implementation, the QR code information of the device to be verified comes from the scanning result of the client, and the verification request information corresponding to the QR code information is processed according to the verification result of the QR code information, including: if the target parameter information verification passes, the verification success information is returned to the client; if the target parameter information verification fails, the verification failure information is returned to the client.

[0011] In the above parameter verification method, the server verifies the client's code scanning result in real time, realizing instant feedback and efficient management of device verification. Figure 3 When the client scans the QR code of the device to be verified, the server will quickly obtain and process the QR code information and return the corresponding information to the client based on the verification result. If the target parameter information is verified, the server will return the verification success information to the client, indicating that the device is legal and valid; if the verification fails, the server will return the verification failure information to the client, indicating that the device may have problems or has been tampered with.

[0012] In one implementation, the target parameter information includes: device identification, hardware version information, software version information, and verification parameters; the parameter verification of the target parameters to obtain the verification result of the QR code information includes: using decryption parameters to perform AES decryption on the target parameter information to obtain decrypted information; the decryption parameters include a device key, and the decryption information includes an incremental number; based on the comparison result of the decrypted information and a preset parameter range, the verification result of the QR code information is obtained.

[0013] In the above parameter verification method, the target parameter information is decrypted by using the AES decryption algorithm, and the target parameter information is decrypted by using the device secret key as the decryption parameter to obtain the decrypted information containing the incrementing number, thereby improving the confidentiality and security of the verification, and effectively preventing the device from being illegally copied or forged. The decrypted information is compared with the preset parameter range, and the verification result of the QR code information is obtained based on the comparison result. This comparison mechanism can ensure that the identity and configuration information of the device meet the preset requirements, effectively prevent the damage to the system caused by malicious attacks or misoperation, ensure that only legitimate and compliant requests can be processed, and further improve the accuracy and reliability of the verification.

[0014] In one implementation, the QR code information includes link address information and the target parameter information, and extracting the target parameter information from the QR code information according to the encoding rules of the QR code information includes: extracting the link address information and the target parameter information from the QR code information according to the encoding rules of the QR code.

[0015] In the above parameter verification method, according to the encoding rules of the QR code, the server can quickly identify and separate the link address information and the target parameter information, and more comprehensively understand the source and content of the verification request. The link address information can help the server determine the target resource or page of the request; and the target parameter information can help the server determine whether the request meets the expected requirements and constraints.

[0016] In one implementation, the method further includes: determining the number of verification requests corresponding to the QR code information of the same device identifier based on the incremental number and the initial value; if the number of verification requests corresponding to the QR code information of the same device identifier is greater than a first preset value, updating the incremental number to the initial value.

[0017] In the above parameter verification method, an increasing number and an initial value are introduced to record the number of verification requests for the QR code information of the same device identifier, and a first preset value is set to reset the increasing number, so as to achieve effective management and control of the number of device verification requests. The increasing number and the initial value are used to calculate the number of verification requests for the QR code information of the same device identifier, and the number of verification requests is compared with the first preset value. If it is greater than the preset value, the increasing number is reset, that is, the increasing number is updated to the initial value. This reset mechanism can effectively prevent the problem of the increasing number being too large or overflowing due to frequent verification of the device, and ensure the continuity and stability of the verification process. At the same time, by setting a reasonable first preset value, the server can adapt to the verification requirements of different devices and improve the flexibility and scalability of the entire verification system.

[0018] In one implementation, the method also includes: determining the number of verification failures of the QR code information of the same device identifier; if the number of verification failures of the QR code information of the same device identifier is greater than a second preset value, marking the QR code information of the same device identifier as abnormal information.

[0019] In the above parameter verification method, the number of verification failures of the QR code information of the same device identification is recorded, and a second preset value is set to mark the abnormal information, so as to realize effective monitoring and management of the device verification failure. The server can accurately record the number of verification failures of the QR code information of the same device identification, compare the number of verification failures with the second preset value, and if it is greater than the preset value, mark the QR code information of the device identification as abnormal information. This marking mechanism can promptly remind users to pay attention to the safety status of the device and avoid potential security risks. At the same time, by setting a reasonable second preset value, the server can also adapt to the verification requirements of different devices and improve the flexibility and scalability of the entire verification system.

[0020] In a second aspect, a parameter verification device is provided, the device comprising:

[0021] An acquisition module is used to obtain the QR code information of the device to be verified and determine the verification request information corresponding to the QR code information;

[0022] A processing module, used to extract target parameter information from the two-dimensional code information according to the encoding rule of the two-dimensional code information, wherein the target parameter information includes: device identification, hardware version information, software version information, and verification parameters;

[0023] The response module is used to perform parameter verification on the target parameter information to obtain the verification result of the two-dimensional code information; according to the verification result of the two-dimensional code information, process the verification request information corresponding to the two-dimensional code information.

[0024] According to a third aspect, an electronic device is provided, comprising a memory and a processor, wherein the processor is configured to execute the parameter verification method according to any one of the first aspects.

[0025] In a fourth aspect, a computer storage medium is provided, wherein the computer storage medium is used to store the parameter verification method described in any one of the first aspects above.

[0026] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0028] Figure 1 This is an application scenario of the parameter verification method provided by the embodiment of the present disclosure Figure 1 ;

[0029] Figure 2 is a flow chart of a parameter verification method provided by an embodiment of the present disclosure;

[0030] Figure 3 This is an application scenario of the parameter verification method provided by the embodiment of the present disclosure Figure 2 ;

[0031] Figure 4 is an interactive schematic diagram of a parameter verification method provided by an embodiment of the present disclosure;

[0032] Figure 5 It is a structural diagram of a parameter verification device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0034] Figure 1 is an application scenario diagram of the parameter verification method provided by the embodiment of the present disclosure; see Figure 1As a convenient way to transmit information, QR codes are gradually being used in the interaction between devices and servers. By scanning the QR code on the device, the application can send verification request information to the server, and the server processes the request and returns the result based on the information. When consumers need to verify the authenticity of a product, they can scan the QR code information on the product through a smartphone and send a verification request information to the server, which verifies the QR code information to confirm the authenticity of the product. However, relying solely on the QR code itself cannot guarantee the security and accuracy of the data, because the QR code information may also be tampered with or forged.

[0035] Figure 2 is a flow chart of the parameter verification method provided by the embodiment of the present disclosure; see Figure 2 The parameter verification method provided by the embodiment of the present disclosure is applied to a server, and the method includes:

[0036] Step 201: Acquire the QR code information of the device to be verified, and determine the verification request information corresponding to the QR code information, where the verification request information is used to request verification of the QR code information;

[0037] The communication protocol is used between the server and the application to establish a data transmission mechanism. The server provides an interface or endpoint for the application to send verification request information after scanning the code. This interface can be a RESTful API based on HTTP or HTTPS protocol. The server obtains the QR code information of the device to be verified and determines the verification request information corresponding to the QR code information.

[0038] Parsing and processing the verification request information, including parsing the request header, request body and other parts, to extract the QR code information. The server performs preliminary verification on the received QR code information to ensure that its format and content meet the expected requirements, such as checking whether the QR code information contains necessary fields and whether the field values ​​meet the specified format. If the QR code information does not meet the requirements, the server can return an error message to the application end.

[0039] Step 202: extracting target parameter information from the QR code information according to the encoding rules of the QR code information, the target parameter information including: device identification, hardware version information, software version information, and verification parameters;

[0040] In the process of extracting the target parameter information, the server parses the QR code information according to the encoding rules. The server understands and stores the encoding rules of the QR code information, which define the meaning and format of each field in the QR code information and how to extract the target parameter information from it. The server parses the received QR code information according to these rules and extracts the target parameter information such as device identification, hardware version information, software version information and verification parameters.

[0041] By extracting the target parameter information from the QR code information, the server can obtain detailed information about the device to be verified. The device identification can ensure that the server can accurately identify which device is initiating the request. The hardware version information and software version information can help the server determine whether the device supports the required functions or protocols. The verification parameters are an important security verification method that can help the server verify the authenticity and integrity of the QR code information. By extracting this information, the server can more accurately determine the validity of the QR code information, thereby ensuring that only legal and compliant requests can be processed.

[0042] Perform string parsing and data conversion on the QR code information. Perform preliminary verification on the extracted target parameter information to ensure that its format and content meet the expected requirements. For example, the server can check whether the device identification is unique, whether the hardware version information and software version information meet the specified format, whether the verification parameters are valid, etc. If the target parameter information does not meet the requirements, the server can return an error message to the application end, prompting the user to re-scan the code or enter the correct information.

[0043] Step 203: perform parameter verification on the target parameter information to obtain the verification result of the two-dimensional code information; and process the verification request information corresponding to the two-dimensional code information according to the verification result of the two-dimensional code information.

[0044] The parameter verification process can be regarded as an information verification process. In this model, the target parameter information is the input information, and the verification result is the output information. By performing a specific verification algorithm or mechanism on the target parameter information, it can be determined whether it is true and accurate. The mathematical model can be expressed as: text verification result = g (target parameter information), where g represents the verification algorithm or mechanism.

[0045] During the parameter verification process, the server strictly verifies the extracted target parameter information to ensure its authenticity and accuracy. The server's parameter verification mechanism can be customized according to the type and characteristics of the target parameter information. For example, for the device identification, the server can verify whether it is unique and valid by querying the database; for the hardware version information and software version information, the server can check whether it conforms to the specified format and version range; for the verification parameters, the server can use the corresponding decryption algorithm to decrypt it and verify whether the decrypted information meets the expected requirements. The server executes the parameter verification algorithm or mechanism to verify the target parameter information one by one and record the verification results.

[0046] In actual applications, the verification result can be a Boolean value, indicating whether the target parameter information has passed the verification; or it can be an object or structure containing detailed information, which parameters have passed the verification, which parameters have not passed the verification, and the reasons for failure, etc. The server returns the verification result to the application end so that the user can understand the processing status of the verification request.

[0047] In the process of processing the verification request information, the server can make corresponding decisions based on the verification results of the QR code information. If the target parameter information passes the verification, that is, the verification result is true or contains all the parameter information that passes the verification, then the server can consider the verification request to be legal and valid, and continue to process the request, further parse and process the request data, and execute the corresponding business logic according to the content of the request.

[0048] For example, if the verification request is to obtain the status information of the device, the server can query the database and return the corresponding status information to the application. If the target parameter information fails to pass the verification, that is, the verification result is false or contains parameter information that fails the verification, the server can consider the verification request to be illegal or invalid and refuse to process the request. At the same time, the server can return an error message or prompt information to the application to inform the user of the reason why the verification request was rejected and possible solutions. This helps users to find and correct errors in a timely manner, improve the success rate of verification requests and user experience.

[0049] In one implementation, the encoding rules of the QR code include: obtaining device parameter information of the device to be verified, the device parameter information including device identification, hardware version information, and software version information; obtaining verification parameters based on the AES encryption result of the device identification and incremental numbers; and creating QR code information based on the device parameter information and the verification parameters.

[0050] In the process of generating the QR code, the server creates the QR code information based on the device parameter information of the device to be verified. The server obtains the device parameter information of the device, which can be determined when the device leaves the factory or when the device is registered with the server and stored in the server's database. The device parameter information includes device identification, hardware version information, and software version information. The server generates the verification parameters based on the device identification and an increasing number.

[0051] Perform AES encryption or other types of encryption operations on the device identifier and the incremental number to obtain an encrypted string as the verification parameter. The incremental number can be used to ensure that each generated QR code is unique and prevent the QR code from being reused or forged. The server combines the device parameter information and the verification parameter to create a QR code containing this information. Encode and format the information to generate a string or image that meets the QR code standard. See Figure 1 The generated QR code information can be displayed on the screen of the device to be verified.

[0052] The generation process of a QR code can be regarded as an information encoding process. In this model, device parameter information (including device identification, hardware version information, software version information) and incrementing numbers are input information, and the QR code information is output information. By performing specific encoding and formatting operations on these input information, a string or image that meets the QR code standard can be generated. The model can be expressed as: text QR code information = f (device parameter information, incrementing number), where f represents the encoding and formatting function.

[0053] In one implementation, the QR code information of the device to be verified comes from the scanning result of the client. According to the verification result of the QR code information, the verification request information corresponding to the QR code information is processed, including: if the target parameter information verification passes, the verification success information is returned to the client; if the target parameter information verification fails, the verification failure information is returned to the client.

[0054] See also Figure 4 When processing the verification request information corresponding to the QR code information, the server makes different processing decisions based on the verification result of the QR code information. If the target parameter information passes the verification, that is, the verification result is true or contains all the parameter information that passes the verification, then the server can consider the QR code to be legal and valid, and continue to process the verification request information, further parse and process the request data, and execute the corresponding business logic according to the content of the request.

[0055] If the target parameter information fails to pass the verification, that is, the verification result is false or contains parameter information that fails the verification, then the server can consider the QR code to be invalid or illegal and refuse to process the verification request information. At the same time, the server can return an error message or prompt information to the application end to inform the user that the QR code information is invalid or has been tampered with. This helps users to find and correct errors in time and avoid using invalid QR codes for query operations. In addition, the server can also record the information and occurrence count of these invalid QR codes for subsequent statistical analysis and optimization and improvement.

[0056] Processing the verification request information according to the verification result of the QR code information is a key link in achieving system security and reliability. If the verification result shows that the QR code information is valid and legal, the server can process the verification request and return the corresponding result or data to the application side. If the verification result shows that the QR code information is invalid or illegal, the server can refuse to process the request and prompt the application side with an error message to ensure that only legal and compliant requests can be processed, thereby improving the system's response speed and user experience. At the same time, by providing error information to the application side, users can be helped to find and solve problems in a timely manner.

[0057] In one implementation, the target parameter information includes: device identification, hardware version information, software version information, and verification parameters; the target parameters are verified to obtain the verification result of the QR code information, including: using the decryption parameters to perform AES decryption on the target parameter information to obtain decrypted information; the decryption parameters include the device key, and the decryption information includes an incremental number; based on the comparison result between the decrypted information and the preset parameter range, the verification result of the QR code information is obtained.

[0058] AES encryption and decryption algorithms are used to ensure the security and confidentiality of information. During the QR code generation process, the device identification and incrementing numbers will be encrypted by AES to obtain verification parameters. During the parameter verification process, the server will use the corresponding decryption algorithm to perform AES decryption on the target parameter information to obtain the decrypted information (including the incrementing number) and perform subsequent verification operations.

[0059] The encryption and decryption rules can be expressed as: text verification parameter = AES_encrypt (device identification, incremental number, encryption key), text decryption information = AES_decrypt (target parameter information, decryption key); wherein AES_encrypt and AES_decrypt represent AES encryption and decryption functions respectively, and the encryption key and decryption key are key information used for encryption and decryption.

[0060] In the process of parameter verification of the target parameter, the server uses the corresponding decryption algorithm to decrypt the target parameter information. For the target parameter information containing the verification parameter encrypted by AES, the server uses the AES decryption algorithm to decrypt it. The server obtains the decryption parameters, which can be determined when the device leaves the factory or when the device is registered to the server and stored in the server's database. The decryption parameters include necessary information such as the device key.

[0061] The server uses the decryption parameters to perform an AES decryption operation on the target parameter information to obtain the decrypted information. The decrypted information may include key information such as an incremental number. Then, the server compares the decrypted information with a preset parameter range. The preset parameter range may be determined based on business needs and security requirements to determine whether the decrypted information meets the expected requirements.

[0062] Comparison of numbers, matching of strings, etc. The server obtains the verification result of the QR code information based on the comparison result. If the decrypted information is within the preset parameter range, it can be considered that the target parameter information has passed the verification; otherwise, it can be considered that the target parameter information has not passed the verification. The verification result can be used for subsequent processing decisions and error prompts.

[0063] During the parameter verification process, the server needs to compare the decrypted information with the preset parameter range to determine whether it meets the expected requirements. This comparison operation can be regarded as a mathematical formula or inequality solution process. The mathematical formula can be expressed as: textIf the decrypted information ∈ the preset parameter range, the verification is passed, or, textIf the decrypted incrementing number ≤ the preset maximum value and other parameters also meet the requirements, the verification is passed, where ∈ indicates a relationship of belonging and ≤ indicates a relationship of less than or equal to. These mathematical formulas or inequalities are used to describe the comparison and judgment logic in the verification process.

[0064] In one implementation, the QR code information includes link address information and target parameter information, and the target parameter information is extracted from the QR code information according to the encoding rules of the QR code information, including: extracting the link address information and target parameter information from the QR code information according to the encoding rules of the QR code.

[0065] When extracting the target parameter information from the QR code information, the server parses it according to the encoding rules of the QR code information. For the QR code information containing the link address information and the target parameter information, the server extracts these information separately. The server pre-stores the encoding rules of the QR code information, which define the meaning and format of each field in the QR code information. The server parses the received QR code information according to the encoding rules.

[0066] String parsing and data conversion of QR code information. During the parsing process, the server identifies and extracts the link address information and target parameter information. The link address information can be used to indicate the target resource or page of the verification request; the target parameter information contains key information such as device identification, hardware version information, software version information and verification parameters. The server verifies and processes the extracted link address information and target parameter information. The verification operation can perform steps such as checking the validity of the link address and checking the format and content of the target parameter information; the processing operation performs corresponding operations according to business needs and security requirements, such as passing the link address information and target parameter information to subsequent processing modules or components for processing.

[0067] In one implementation, the method further includes: determining the number of verification requests corresponding to the QR code information of the same device identifier based on the incremental number and the initial value; if the number of verification requests corresponding to the QR code information of the same device identifier is greater than a first preset value, updating the incremental number to the initial value.

[0068] When the server receives the QR code information of a device ID for verification for the first time, it will assign an incremental number to the device ID and initialize it to the initial value. This initial value can be a fixed number, such as 0 or 1, and the specific value can be set according to actual needs. At the same time, the server will also associate and store the device ID, incremental number and initial value for subsequent use.

[0069] This is achieved by maintaining a counter or database in the server, using the device ID as the primary key and the incrementing number as the value for storage and update. For example, each time the server receives the QR code information of the device ID for verification, the incrementing number is increased by 1 to record the number of times the QR code information of the device ID has been verified.

[0070] After each verification is completed, the server will determine whether the incrementing number is greater than the first preset value. This first preset value can be set according to actual needs to control the growth range of the incrementing number to prevent it from being too large or overflowing. If the incrementing number is greater than the first preset value, it means that the QR code information identified by the device is frequently verified, and there may be abnormal or malicious behavior, which needs to be processed. In this embodiment, the first preset value can be set to 10.

[0071] If the incrementing number is greater than the first preset value, the server will reset the incrementing number to the initial value and restart counting. This step can be achieved by updating the incrementing number stored in the server. At the same time, the server can also record relevant information of the reset operation, such as reset time, reset reason, etc., for subsequent analysis and processing.

[0072] In actual applications, the server can also monitor the increasing number in real time, and send out an alarm message when the increasing number is close to or greater than the first preset value, reminding the management personnel to pay attention to the possible abnormality of the QR code information identified by the device.

[0073] In one implementation, the method also includes: determining the number of verification failures of the QR code information of the same device identifier; if the number of verification failures of the QR code information of the same device identifier is greater than a second preset value, marking the QR code information of the same device identifier as abnormal information.

[0074] Each time the server verifies the QR code information of a device ID, it records the verification result. The verification result can be a Boolean value indicating whether the verification is successful or not; it can also be a detailed verification report containing specific verification information and error prompts. This step can be achieved by maintaining a verification result database in the server, which associates and stores information such as device ID, verification time and verification result.

[0075] The server will count the verification results according to the device identification and calculate the number of verification failures of the QR code information of the same device identification. The server can query the verification results of each device identification and count the number of verification failures. After counting the number of verification failures, the server will determine whether the number is greater than a second preset value. This second preset value can be set according to actual needs and is used to control the tolerance range of the number of verification failures. If the number of verification failures is greater than the second preset value, it means that there is an abnormality or problem with the QR code information of the device identification and needs to be processed.

[0076] If the number of verification failures is greater than the second preset value, the server will mark the QR code information of the device identification as abnormal information and record it in the abnormal information database. This step can be achieved by updating the device information stored in the server. At the same time, the server can also record relevant information of this marking operation, such as marking time, marking reason, etc., for subsequent analysis and processing.

[0077] In actual applications, the server can send a notification message to the administrator to inform them that the QR code information of the device identifier has been marked as abnormal information. For example, an email, SMS or message can be sent. The notification message can include the device identifier, abnormal information description and possible processing suggestions, so that the administrator can understand and handle the abnormal information in a timely manner.

[0078] Figure 5 is a schematic diagram of the structure of the parameter verification device provided by the embodiment of the present disclosure, see Figure 5 The present disclosure provides a parameter verification device, comprising:

[0079] The acquisition module 501 is used to acquire the two-dimensional code information of the device to be verified and determine the verification request information corresponding to the two-dimensional code information;

[0080] A processing module 502 is used to extract target parameter information from the two-dimensional code information according to the encoding rule of the two-dimensional code information, and the target parameter information includes: device identification, hardware version information, software version information, and verification parameters;

[0081] The response module 503 is used to perform parameter verification on the target parameter information to obtain the verification result of the two-dimensional code information; and process the verification request information corresponding to the two-dimensional code information according to the verification result of the two-dimensional code information.

[0082] The description of each embodiment above tends to emphasize the differences between the embodiments, and the same or similar parts can be referenced to each other. The features disclosed in each product embodiment provided by this application can be combined arbitrarily without conflict to obtain a new product embodiment.

[0083] The product embodiments described above are only illustrative. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the units can be electrical or mechanical.

[0084] This specification uses the phrase "in an embodiment", which may refer to one or more embodiments of the same or different embodiments. The terms "including", "comprising", "having", etc. as used with respect to the embodiments of the present disclosure are synonymous. The ordinal adjectives "first", "second", and "third" merely indicate that different instances of similar objects are being referenced and are not intended to imply that the objects so described must be in a given sequence in time, space, order, or in any other way.

[0085] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A parameter verification method, the parameter verification method is applied to a server, characterized in that: The method comprises: Obtaining the two-dimensional code information of the device to be verified, and determining the verification request information corresponding to the two-dimensional code information, wherein the verification request information is used to request verification of the two-dimensional code information; Extract target parameter information from the two-dimensional code information according to the encoding rule of the two-dimensional code information, the target parameter information including: device identification, hardware version information, software version information, and verification parameters; Perform parameter verification on the target parameter information to obtain a verification result of the two-dimensional code information; and process verification request information corresponding to the two-dimensional code information according to the verification result of the two-dimensional code information.

2. The method according to claim 1, characterized in that The encoding rules of the two-dimensional code include: Obtain device parameter information of the device to be verified, wherein the device parameter information includes device identification, hardware version information, and software version information; Obtain verification parameters according to the AES encryption result of the device identification and the incremental number; The two-dimensional code information is created according to the device parameter information and the verification parameter.

3. The method according to claim 1, characterized in that The two-dimensional code information of the device to be verified comes from the scanning result of the client, and the processing of the verification request information corresponding to the two-dimensional code information according to the verification result of the two-dimensional code information includes: If the target parameter information is verified, a verification success message is returned to the client; If the target parameter information verification fails, verification failure information is returned to the client.

4. The method according to claim 1, characterized in that: The target parameter information includes: device identification, hardware version information, software version information, and verification parameters; The performing parameter verification on the target parameter to obtain the verification result of the two-dimensional code information includes: Performing AES decryption on the target parameter information using a decryption parameter to obtain decrypted information; the decryption parameter includes a device key, and the decrypted information includes an incremental number; The verification result of the two-dimensional code information is obtained according to the comparison result of the decrypted information and the preset parameter range.

5. The method according to claim 1, characterized in that The two-dimensional code information includes link address information and the target parameter information, and extracting the target parameter information from the two-dimensional code information according to the encoding rule of the two-dimensional code information includes: According to the encoding rule of the two-dimensional code, the link address information and the target parameter information are extracted from the two-dimensional code information.

6. The method according to claim 4, characterized in that The method further comprises: Determine the number of verification requests corresponding to the two-dimensional code information of the same device identification according to the incremental number and the initial value; If the number of verification requests corresponding to the two-dimensional code information of the same device identifier is greater than a first preset value, the incremental number is updated to the initial value.

7. The method according to claim 3, characterized in that The method further comprises: Determine the number of failed verifications of the QR code information of the same device identifier; If the number of verification failures of the two-dimensional code information of the same device identification is greater than a second preset value, the two-dimensional code information of the same device identification is marked as abnormal information.

8. A parameter verification device, characterized in that: The device comprises: An acquisition module is used to obtain the QR code information of the device to be verified and determine the verification request information corresponding to the QR code information; A processing module, used to extract target parameter information from the two-dimensional code information according to the encoding rule of the two-dimensional code information, wherein the target parameter information includes: device identification, hardware version information, software version information, and verification parameters; The response module is used to perform parameter verification on the target parameter information to obtain the verification result of the two-dimensional code information; according to the verification result of the two-dimensional code information, process the verification request information corresponding to the two-dimensional code information.

9. A server, characterized in that: The server includes a memory and a processor, and the processor is used to execute the parameter verification method according to any one of claims 1 to 7.