Device warranty method, apparatus, system, electronic device, and storage medium
By generating target warranty activation codes that do not rely on device serial numbers, the problem of low data generation efficiency for device warranty services in existing technologies is solved, enabling independent sales of device warranty services and improving sales performance.
Patent Information
- Application Number
- CN202611379903.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, equipment warranty services heavily rely on the equipment's serial number (SN), making it impossible to generate warranty service data in advance for equipment that has not yet been installed, thus limiting the sale of equipment warranty services.
By receiving an activation code request sent by the terminal, a target warranty activation code is generated based on the device warranty parameters and activation code configuration rules. It does not depend on the specific device's serial number. The terminal can activate the warranty service of at least one target device based on the target warranty activation code.
This improved the efficiency of generating equipment warranty service data, enabling equipment warranty services to be sold independently, thereby boosting sales performance and achieving higher economic benefits.
Smart Images

Figure CN123140928A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to equipment quality assurance methods, apparatus, systems, electronic devices, and storage media. Background Technology
[0002] In related technologies, when providing warranty services for equipment (such as microinverters and energy storage), the equipment warranty provider needs to obtain the serial number (SN) of the specific installed equipment from the equipment installer. Based on the SN, they then generate warranty service data specific to the equipment and provide warranty services accordingly. In this approach, the equipment warranty provider heavily relies on the SN of the installed equipment and cannot generate warranty service data in advance for equipment not yet installed. This prevents the separate sale of equipment warranty services, thus limiting the availability of such services.
[0003] Therefore, how to improve the efficiency of generating equipment warranty service data is an urgent problem to be solved. Summary of the Invention
[0004] This invention provides a method, apparatus, system, electronic device, and storage medium for equipment warranty, in order to solve the problem of how to improve the generation efficiency of equipment warranty service data in the prior art.
[0005] In a first aspect, the present invention provides a method for equipment quality assurance, comprising: The receiving terminal sends an activation code retrieval request; the activation code retrieval request includes the device warranty parameters corresponding to the target device that the user expects to obtain; In response to the activation code acquisition request, a target warranty activation code is generated based on the device warranty parameters and activation code configuration rules; the activation code configuration rules are used to determine the activation code parameters that the target warranty activation code can contain, and the target warranty activation code is used to activate the warranty service of at least one of the target devices; Send the target warranty activation code to the terminal.
[0006] In some embodiments, generating a target warranty activation code based on the device warranty parameters and activation code configuration rules includes: The equipment warranty parameters are compared with a pre-acquired warranty parameter constraint table; the warranty parameter constraint table includes the value range of the warranty parameters. Given that the equipment warranty parameters are within the range of values included in the warranty parameter constraint table, a target warranty activation code is generated based on the equipment warranty parameters and activation code configuration rules.
[0007] In some embodiments, generating a target warranty activation code based on the device warranty parameters and activation code configuration rules includes: Based on the activation code parameters indicated by the activation code configuration rules, a first activation code parameter is determined; the first activation code parameter is at least one of the activation code parameters indicated by the activation code configuration rules. Based on the device warranty parameters and the first activation code parameters, the target warranty activation code is generated.
[0008] In some embodiments, the method further includes: Receive a sub-activation code generation request sent by the terminal; the sub-activation code generation request is used to request at least one sub-certificate guarantee activation code associated with the target certificate guarantee activation code; In response to the sub-activation code generation request, at least one sub-warranty activation code associated with the target warranty activation code is generated; the sub-warranty activation code is used to activate the warranty service of at least one of the target devices; Send each of the sub-certificate activation codes to the terminal.
[0009] In some embodiments, generating at least one sub-certificate guarantee activation code associated with the target certificate guarantee activation code in response to the sub-activation code generation request includes: In response to the sub-activation code generation request, the password carried in the sub-activation code generation request and the number of remaining activatable devices in the target warranty activation code are verified to obtain a first verification result; If the first verification result satisfies the first condition, each of the sub-certificate guarantee activation codes is generated based on the target quality assurance activation code and the activation code configuration rules.
[0010] In some embodiments, satisfying the first condition includes at least: The password carried in the sub-activation code generation request matches the target quality assurance activation code; The number of remaining activatable devices associated with the target warranty activation code is greater than or equal to the number of sub-warranty activation codes to be generated as indicated by the sub-activation code generation request.
[0011] In some embodiments, the method further includes: The number of remaining activatable devices associated with the target warranty activation code is reduced by the number of sub-warranty activation codes generated.
[0012] In some embodiments, the step of generating a target warranty activation code in response to the activation code acquisition request, based on the device warranty parameters and activation code configuration rules, includes: In response to the activation code acquisition request, if the user's role is the first role, the user's activation code generation permission is verified based on the device warranty parameters; if the verification is successful, the target warranty activation code is generated based on the device warranty parameters and the activation code configuration rules. Alternatively, if the user's role is the second role, the target warranty activation code is generated based on the device warranty parameters and the activation code configuration rules.
[0013] In some embodiments, prior to the activation code retrieval request sent by the receiving terminal, the method further includes: The terminal sends a user login request; the user login request includes the user's target user information, which is used to determine the user's role. In response to the user login request, the user's role is determined based on the target user information.
[0014] In some embodiments, determining the user's role based on the target user information includes: Determine whether the target user information exists in the pre-acquired user information list; the user information list stores at least one user information and the role associated with each user information. The role associated with the target user information stored in the user information list is determined as the user's role.
[0015] In some embodiments, the target user information is also used to determine the location information of the terminal; Determining the user's role based on the target user information includes: Based on the target user information, the location information of the terminal is determined; If the location information is within a preset location range, the user's role is determined based on the target user information.
[0016] In some embodiments, the method further includes: Receive the first warranty activation code and device information of unactivated devices sent by the terminal; The first warranty activation code and the device information are verified to obtain a third verification result; If the third verification result satisfies the second condition, a first instruction is sent to the terminal, the first instruction indicating that the warranty service of the unactivated device is allowed to be activated.
[0017] In some embodiments, the device information includes the device type of the inactive device and the first location of the inactive device. The second condition being satisfied includes at least: The device warranty parameters of the first warranty activation code are within the range of values included in the warranty parameter constraint table; The number of remaining activatable devices associated with the first warranty activation code is greater than 0; The device warranty parameters of the first warranty activation code include the device type; The device warranty parameters of the first warranty activation code include the first location.
[0018] In some embodiments, the method further includes: Reduce the number of unactivated devices by the number of remaining activatable devices associated with the first warranty activation code.
[0019] In some embodiments, the device information further includes a first serial number of the unactivated device; the method further includes: If the first location is not included in the device warranty parameters of the first warranty activation code in the third verification result, a second instruction is sent to the terminal. The second instruction includes the first serial number, and the second instruction indicates that the warranty service for the unactivated device corresponding to the first serial number is unavailable.
[0020] In some embodiments, the method further includes: Receive the second serial number sent by the device that is powered on for the first time and the second position currently occupied by the device that is powered on for the first time; If the second position is not within the preset position range, a third instruction is sent to the first-time powered-on device based on the second serial number. The third instruction indicates that the warranty service of the first-time powered-on device is permanently unavailable.
[0021] Secondly, the present invention also provides an equipment warranty device, comprising: The first receiving module is used to receive an activation code acquisition request sent by the terminal; the activation code acquisition request includes the device warranty parameters corresponding to the target device that the user expects to obtain; The first generation module is used to respond to the activation code acquisition request and generate a target warranty activation code based on the device warranty parameters and activation code configuration rules; the activation code configuration rules are used to determine the activation code parameters that the target warranty activation code can contain, and the target warranty activation code is used to activate the warranty service of at least one of the target devices; The first sending module is used to send the target warranty activation code to the terminal.
[0022] In some embodiments, the generation module is further configured to: The equipment warranty parameters are compared with a pre-acquired warranty parameter constraint table; the warranty parameter constraint table includes the value range of the warranty parameters. Given that the equipment warranty parameters are within the range of values included in the warranty parameter constraint table, a target warranty activation code is generated based on the equipment warranty parameters and activation code configuration rules.
[0023] In some embodiments, the generation module is further configured to: Based on the activation code parameters indicated by the activation code configuration rules, a first activation code parameter is determined; the first activation code parameter is at least one of the activation code parameters indicated by the activation code configuration rules. Based on the device warranty parameters and the first activation code parameters, the target warranty activation code is generated.
[0024] In some embodiments, the apparatus further includes: The second receiving module is used to receive a sub-activation code generation request sent by the terminal; the sub-activation code generation request is used to request at least one sub-guarantee activation code associated with the target warranty activation code; The second generation module is used to generate at least one sub-warranty activation code associated with the target warranty activation code in response to the sub-activation code generation request; the sub-warranty activation code is used to activate the warranty service of at least one of the target devices; The second sending module is used to send each of the sub-quality assurance activation codes to the terminal.
[0025] In some embodiments, the second generation module is further configured to: In response to the sub-activation code generation request, the password carried in the sub-activation code generation request and the number of remaining activatable devices in the target warranty activation code are verified to obtain a first verification result; If the first verification result satisfies the first condition, each of the sub-certificate guarantee activation codes is generated based on the target quality assurance activation code and the activation code configuration rules.
[0026] In some embodiments, satisfying the first condition includes at least: The password carried in the sub-activation code generation request matches the target quality assurance activation code; The number of remaining activatable devices associated with the target warranty activation code is greater than or equal to the number of sub-warranty activation codes to be generated as indicated by the sub-activation code generation request.
[0027] In some embodiments, the apparatus further includes: The first device quantity update module is used to reduce the number of sub-certificate activation codes generated by reducing the number of remaining activatable devices associated with the target quality assurance activation code.
[0028] In some embodiments, the first generation module is further configured to: In response to the activation code acquisition request, if the user's role is the first role, the user's activation code generation permission is verified based on the device warranty parameters; if the verification is successful, the target warranty activation code is generated based on the device warranty parameters and the activation code configuration rules. Alternatively, if the user's role is the second role, the target warranty activation code is generated based on the device warranty parameters and the activation code configuration rules.
[0029] In some embodiments, the apparatus further includes: The third receiving module is used to receive a user login request sent by the terminal; the user login request includes the user's target user information, and the target user information is used to determine the user's role. The user role determination module is used to determine the user's role based on the target user information in response to the user login request.
[0030] In some embodiments, the user role determination module is further configured to: Determine whether the target user information exists in the pre-acquired user information list; the user information list stores at least one user information and the role associated with each user information. The role associated with the target user information stored in the user information list is determined as the user's role.
[0031] In some embodiments, the user role determination module is further configured to: Based on the target user information, the location information of the terminal is determined; If the location information is within a preset location range, the user's role is determined based on the target user information.
[0032] In some embodiments, the apparatus further includes: The fourth receiving module is used to receive the first warranty activation code and device information of the unactivated device sent by the terminal; The verification module is used to verify the first warranty activation code and the device information to obtain a third verification result; The third sending module is used to send a first instruction to the terminal when the third verification result meets the second condition, wherein the first instruction indicates that the warranty service of the unactivated device is allowed to be activated.
[0033] In some embodiments, the device information includes the device type of the inactive device and the first location of the inactive device. The second condition being satisfied includes at least: The device warranty parameters of the first warranty activation code are within the range of values included in the warranty parameter constraint table; The number of remaining activatable devices associated with the first warranty activation code is greater than 0; The device warranty parameters of the first warranty activation code include the device type; The device warranty parameters of the first warranty activation code include the first location.
[0034] In some embodiments, the apparatus further includes: The second device quantity update module is used to reduce the number of unactivated devices by the number of remaining activatable devices associated with the first quality assurance activation code.
[0035] In some embodiments, the device information further includes a first serial number of the unactivated device; the apparatus further includes: The fourth sending module is used to send a second instruction to the terminal when the first location is not included in the device warranty parameters of the device with the third verification result being the first warranty activation code; The second instruction includes the first serial number, and the second instruction indicates that the warranty service for the unactivated device corresponding to the first serial number is unavailable.
[0036] In some embodiments, the apparatus further includes: The fifth receiving module is used to receive the second serial number sent by the device that is powered on for the first time and the second position currently located by the device that is powered on for the first time; The fifth sending module is used to send a third instruction to the first-time powered-on device based on the second serial number when the second position is not within the preset position range. The third instruction indicates that the warranty service of the first-time powered-on device is permanently unavailable.
[0037] Thirdly, the present invention also provides an equipment warranty system, including a cloud server and a terminal, wherein the cloud server is used to execute the equipment warranty method described in the first aspect above.
[0038] Fourthly, the present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the device warranty method described in the first aspect above. Fifthly, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the device warranty method described in the first aspect above.
[0039] In a sixth aspect, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the device warranty method described in the first aspect above.
[0040] Compared with existing technologies, the device warranty method, apparatus, system, electronic device, and storage medium provided by this invention receive an activation code acquisition request sent by a terminal. The activation code acquisition request includes device warranty parameters corresponding to the target device that the user expects to acquire. In response to the activation code acquisition request, a target warranty activation code is generated based on the device warranty parameters and activation code configuration rules. The activation code configuration rules are used to determine the activation code parameters that the target warranty activation code can contain. The target warranty activation code is used to activate the warranty service of at least one target device. The target warranty activation code is then sent to the terminal. This method achieves the ability to generate target warranty activation codes in advance for devices that have not yet been installed, without relying on the specific device's serial number (SN), based solely on the device warranty parameters and activation code configuration rules. The terminal can then activate the warranty service of at least one target device based on the target warranty activation code. This improves the efficiency of generating device warranty service data, enabling the device warranty service to be sold independently, thereby increasing the sales performance of the device warranty service and helping users achieve higher economic benefits.
[0041] Details of one or more embodiments of the present invention are set forth in the following drawings and description to make other features, objects and advantages of the invention more readily apparent. Attached Figure Description
[0042] The accompanying drawings, which are included to provide a further understanding of the invention and constitute a part of this invention, illustrate the invention. Those skilled in the art will recognize that other drawings can be derived from these drawings without any inventive effort. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an undue limitation of the invention. In the drawings: Figure 1 This is one of the flowcharts illustrating the equipment quality assurance method provided by the present invention.
[0043] Figure 2 This is the second flowchart illustrating the equipment quality assurance method provided by the present invention.
[0044] Figure 3 This is the third flowchart of the equipment quality assurance method provided by the present invention.
[0045] Figure 4 This is the fourth flowchart of the equipment quality assurance method provided by the present invention.
[0046] Figure 5 This is a schematic diagram of the equipment quality assurance device provided by the present invention.
[0047] Figure 6 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0048] To more clearly understand the objectives, technical solutions, and advantages of this invention, the technical solutions of this invention will be clearly and completely described and explained below with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only some embodiments of this invention, not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0049] Unless otherwise defined, the technical or scientific terms used in this invention shall have the general meaning understood by one of ordinary skill in the art to which this invention pertains. Words such as “a,” “an,” “an,” “the,” “the,” and “these” used in this invention do not indicate quantitative limitation and may be singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this invention are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that comprises a series of steps or modules (units) is not limited to the listed steps or modules (units) but may include steps or modules (units) not listed, or may include other steps or modules (units) inherent to these processes, methods, products, or devices. The terms “connected,” “linked,” and “coupled” used in this invention are not limited to physical or mechanical connections but may include electrical connections, whether direct or indirect. “A plurality” used in this invention refers to two or more. “And / or” describes the relationship between related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. Normally, the character " / " indicates that the objects before and after it are in an "or" relationship. The terms "first," "second," "third," etc., used in this invention are merely for distinguishing similar objects and do not represent a specific ordering of the objects.
[0050] This invention provides a method, apparatus, system, electronic device, and storage medium for equipment quality assurance.
[0051] Figure 1 This is one of the flowcharts illustrating the equipment quality assurance method provided by this invention. First, it should be noted that... Figure 1 The executing entity includes a first device, which is a device for generating the target warranty activation code. In practical applications, the first device can be any electronic device capable of implementing the device warranty method provided by this invention, such as a cloud server, cloud computing center, local server, mobile terminal, or desktop computer. This invention does not limit the type of the first device.
[0052] Specifically, such as Figure 1 As shown, the equipment warranty method includes the following steps: Step S101: Receive an activation code acquisition request sent by the terminal; the activation code acquisition request includes the device warranty parameters corresponding to the target device that the user expects to obtain.
[0053] In some embodiments, taking a cloud server as an example, the device warranty method adopts a cloud server and terminal collaborative architecture. The cloud server is used to deploy the configuration rules for warranty activation codes, warranty activation code lifecycle management services, and activation verification and decision services. The terminal can be a user terminal, such as the terminal of the device installer, device user, or warranty provider's backend.
[0054] The target device is the device for which the user wants to set up a warranty service. It can be one device or multiple devices, and these devices can be of the same type or different types, determined by the user based on their usage needs. For example, in some scenarios, power converters are relatively expensive, and setting a longer warranty period for them is more economical. Therefore, the user can set the target device as the power converter to achieve greater economic benefits.
[0055] Equipment warranty parameters refer to warranty data related to warranty services. For example, equipment warranty parameters may include: target equipment type, target equipment model, expected warranty period, and expected warranty service validity period.
[0056] Step S102: In response to the activation code acquisition request, generate the target warranty activation code based on the device warranty parameters and activation code configuration rules.
[0057] The activation code configuration rules are used to determine the activation code parameters that the target warranty activation code can contain. Specifically, the activation code configuration rules are pre-stored in the first device and are automatically executable program rules. These rules include multiple tables and the relationships between them, and can be automatically executed in response to an activation code retrieval request to determine the activation code parameters that the target warranty activation code can contain, thereby generating the target warranty activation code. The target warranty activation code is used to activate the warranty service of at least one target device.
[0058] In practical applications, the multiple tables included in the activation code configuration rules can be predefined, representing a complete information structure that needs to be filled in when generating the target warranty activation code. For example, the activation code configuration rules are used to instruct the filling in of the following fields: The activation code includes the following: code value (a globally unique activation code string), parent code ID (an ID pointing to its parent activation code), root code ID (an ID pointing to the original root activation code), owner ID (the user ID of the current activation code owner), encrypted credential (stores a hash-encrypted password), constraint JSON payload (used to carry device warranty parameters, such as the type of activated device, the model of activated device, the country / region or dealer range of activation, the number of devices carried, the extended warranty period, the validity period, etc.), total quantity (the initial number of devices included in this activation code), remaining number of devices that can be activated (the current number of devices that can be activated with this activation code), and source (marking the source of the activation code, such as "Purchase" or "Manually generated").
[0059] In this context, "purchase" can be understood as: the purchaser generates the warranty through the warranty marketplace. For example, if the user role is the first role, such as the warranty service purchaser, this user needs to obtain the target warranty activation code through purchase.
[0060] Manual generation can be understood as the administrator manually generating the code based on the contract. For example, if the user's role is a second role, such as an equipment installer, equipment distributor, or equipment warranty provider, this user does not need to purchase the code; they only need to send an activation code request to the first device to obtain the target warranty activation code.
[0061] Step S103: Send the target warranty activation code to the terminal.
[0062] In some embodiments, a warranty service for at least one target device can be activated based on a target warranty activation code. Upon successful activation, the warranty service for the target device is extended accordingly, for example, from 10 years to 15 years. The terminal can also view the status of each target warranty activation code and handle abnormally activated devices based on the activation status.
[0063] The device warranty method provided in this application receives an activation code retrieval request sent by a terminal. The activation code retrieval request includes device warranty parameters corresponding to the target device that the user expects to obtain. In response to the activation code retrieval request, a target warranty activation code is generated based on the device warranty parameters and activation code configuration rules, and sent to the terminal. This achieves the ability to generate target warranty activation codes in advance for devices that have not yet been installed, without relying on the specific device's serial number, based solely on the device warranty parameters and activation code configuration rules. The terminal can activate the warranty service for at least one target device based on the target warranty activation code. This improves the efficiency of generating device warranty service data, enabling the device warranty service to be sold independently, increasing the sales performance of the device warranty service, and helping users achieve higher economic benefits.
[0064] In some embodiments, the user's role in the activation code acquisition request is different, and the way the first device generates the target warranty activation code is also different.
[0065] In some embodiments, the first device determines the user's role through the following steps, specifically steps 1)-2). Step 1) Before receiving the activation code retrieval request from the receiving terminal, receive the user login request from the receiving terminal; the user login request includes the target user information, which is used to determine the user's role.
[0066] In practical applications, the target user information in a user login request includes the account, password, user ID, and other information used to log in to the platform.
[0067] The platform involved in this application can be understood as the warranty mall platform provided by the first device for warranty purchasers to purchase target warranty activation codes, and the platform for administrators to obtain target warranty activation codes, etc.
[0068] Step 2) In response to the user login request, determine the user's role based on the target user information.
[0069] After determining the user's role, once the first device receives the activation code retrieval request from the terminal, the first device can generate the target warranty activation code based on the user's role and in a manner corresponding to that role.
[0070] In some embodiments, the user's role is determined based on the target user information, which can be achieved through the following steps, specifically including steps 1)-2). Step 1) Determine whether the target user information exists in the pre-acquired user information list; the user information list stores at least one user information and the role associated with each user information.
[0071] The first device has a pre-configured list of user information, which includes multiple user profiles. Each user profile includes, for example, an account and password for logging into a platform. Each user profile is associated with a user role.
[0072] For example, user information 1 includes: account: 123, password: abc; the user role associated with user information 1 is the first role, such as the warranty purchaser.
[0073] User information 2 includes: account: 456, password: def; the user role associated with user information 2 is the second role, such as administrator.
[0074] Step 2) Determine the role associated with the target user information stored in the user information list as the user's role.
[0075] The first device first obtains the target user information (such as the target account and corresponding password) from the user login request and checks whether the target account and corresponding password exist in the user information list. If the target account and corresponding password exist in the user information list, the user role associated with the target account is determined as the role of the user in the activation code acquisition request.
[0076] In some embodiments, the target user information is also used to determine the location information of the terminal; after receiving a user login request, the first device first determines the location information of the terminal based on the target user information; if the location information is within a preset location range, the user's role is determined based on the target user information.
[0077] For example, the target user information carries the terminal's current location information. The first device determines whether the terminal's current location is within a preset location range. If the terminal's current location is not within the preset location range, it indicates that the terminal is not within the preset warranty period. In this case, the first device does not need to determine the user's role or perform the subsequent step of generating the target warranty activation code. If the terminal's current location is within the preset location range, it indicates that the terminal is within the preset warranty period. In this case, the first device determines the user's role based on the target user information and performs the subsequent step of generating the target warranty activation code.
[0078] In the above embodiments, the first device determines the user's role based on the target user information only when the terminal's current location information is within a preset location range. This method effectively avoids the first device generating and sending target warranty activation codes to terminals outside the preset location range.
[0079] Once the user's role is determined, when the first device receives the activation code retrieval request from the terminal, it can respond to the activation code retrieval request and generate the target warranty activation code in a manner corresponding to the user's role.
[0080] In some embodiments, in response to an activation code acquisition request, a target warranty activation code is generated based on device warranty parameters and activation code configuration rules, including any of the following methods: Method 1: In response to the activation code acquisition request, if the user's role is the first role, verify the user's activation code generation permission based on the device warranty parameters; if the verification is successful, generate the target warranty activation code based on the device warranty parameters and activation code configuration rules.
[0081] The primary role is, for example, that of the warranty purchaser.
[0082] In some embodiments, verifying the activation code generation permission of the terminal based on device warranty parameters can be achieved through the following steps, specifically including steps 1) to 4). Step 1) Based on the device warranty parameters, generate an activation code generation permission verification request; the activation code generation permission verification request is used to request permission verification of the user's activation code generation permission.
[0083] Step 2) Send the activation code generation permission verification request to the verification gateway.
[0084] Step 3) Receive the second verification result sent by the verification gateway.
[0085] Step 4) If the second verification result indicates that the user has the permission to generate an activation code, the verification is deemed successful; or, if the second verification result indicates that the user does not have the permission to generate an activation code, the verification is deemed unsuccessful.
[0086] For example, the device warranty parameters include: the target device type is MicroReverse, the target device model is MicroReverse-100, the expected warranty period is 10 years, and the expected warranty service validity period is 2 years. The first device generates an activation code generation permission verification request based on the above device warranty parameters and sends this request to the verification gateway. The user verifies their activation code generation permission at the verification gateway; successful verification indicates the user has the permission to generate an activation code. For example, the activation code generation permission verification request may include a payment amount; after the user pays the corresponding amount at the verification gateway, they are considered to have the permission to generate an activation code. Another example is that the user enters the correct password or passphrase at the verification gateway, indicating they have the permission to generate an activation code.
[0087] Method 2: When the user's role is the second role, generate the target warranty activation code based on the device warranty parameters and activation code configuration rules.
[0088] The second role can be, for example, that of an equipment installer, equipment distributor, or equipment warranty provider. When the user is in the second role, the first device does not need to verify the user's activation code generation permissions; it can directly generate the target warranty activation code based on the device warranty parameters and activation code configuration rules.
[0089] In some embodiments, generating a target warranty activation code based on device warranty parameters and activation code configuration rules can be achieved through the following steps, specifically including steps 1)-2). Step 1) Compare the equipment warranty parameters with the pre-obtained warranty parameter constraint table; the warranty parameter constraint table includes the value range of the warranty parameters.
[0090] Step 2) If the equipment warranty parameters are within the range of values included in the warranty parameter constraint table, generate the target warranty activation code based on the equipment warranty parameters and activation code configuration rules.
[0091] Specifically, the warranty parameter constraint table is a pre-configured equipment warranty rule table (warranty_rules). This warranty parameter constraint table defines the warranty policies such as equipment type, model, start and end years under the region, and maximum extended warranty period.
[0092] In practical applications, each device type corresponds to a warranty parameter constraint table. For example, for the "Micro Inverter MI-500" in region A, the basic warranty is 10 years, with a maximum extended warranty of 25 years. For "Energy Storage" in region B, the basic warranty is 5 years, with a maximum extended warranty of 20 years. These rules are persisted in the `warranty_rules` table for subsequent use by the rule engine.
[0093] In some embodiments, the warranty parameter constraint table includes at least one of the following: 1. Type of activatable device (micro-inverter, energy storage, charging pile, backup power box, electricity meter, data acquisition, etc.); 2. Model of activatable device: For micro-inverters, the model of the device that can be activated can be defined, such as MI-500 / MI-600 / MI-450, etc.; 3. Scope of activation (such as the region that can be activated or the effect on a specific dealer / installer); 4. Number of devices carried by the activation code (such as 1 to infinity); 5. Warranty period of the device (such as 1 to 25 years); 6. Validity period of the activation code: XXXX year XX month XX day; If the validity period is FFFF, it means that it is always valid.
[0094] In some embodiments, the first device compares the device warranty parameters carried in the activation code acquisition request with a warranty parameter constraint table. Only if the device warranty parameters fall within the value range included in the warranty parameter constraint table will the first device generate a target warranty activation code based on the device warranty parameters and activation code configuration rules. This method avoids the first device generating a target warranty activation code that does not conform to the warranty parameter constraint table, ensuring the compliance of the target warranty activation code.
[0095] In some embodiments, a target warranty activation code is generated based on device warranty parameters and activation code configuration rules. This can be achieved through the following steps, specifically steps 1) to 2). Step 1) Determine the first activation code parameter based on the activation code parameters indicated by the activation code configuration rules; the first activation code parameter is at least one of the activation code parameters indicated by the activation code configuration rules.
[0096] Step 2) Generate the target warranty activation code based on the device warranty parameters and the first activation code parameters.
[0097] In some embodiments, the first activation code parameter includes at least one of the following 1-6: 1. The first code value of the target quality assurance activation code; wherein, the first code value is obtained by hashing and signing the Universally Unique Identifier (UUID).
[0098] 2. User ID; The user ID refers to the identifier of the current target device activation code owner.
[0099] 3. First Encryption Certificate; The first encryption certificate is obtained by hashing the first password corresponding to the target warranty activation code with a first random value. The first password is randomly generated when the target warranty activation code is generated.
[0100] 4. The total number of devices that the target warranty activation code can activate. That is, the initial number of devices that the target warranty activation code can activate.
[0101] 5. Number of devices that can be activated with the target warranty activation code. That is, the number of devices that can be activated with the target warranty activation code.
[0102] 6. The source of the target warranty activation code, such as "purchase" or "manual generation".
[0103] Step 2) above generates a target warranty activation code based on the device warranty parameters and the first activation code parameters. Specifically, this can be achieved by: carrying the device warranty parameters in a JSON payload; and generating the target warranty activation code based on the JSON payload and the first activation code parameters.
[0104] The following section provides a detailed explanation, using specific examples, of how the first device generates target warranty activation codes in different ways for different user roles.
[0105] Method 1: For users whose role is the primary role (e.g., warranty purchaser), the user can use the terminal to purchase the target warranty activation code on the platform provided by the primary device, specifically including the following steps 1)-6). Step 1) The user logs in to the platform using a terminal, and the first device obtains the user role associated with the target user information from the user login request.
[0106] Step 2) The user selects the device type, model, quantity, and other device warranty parameters using the terminal, and generates an activation code acquisition request; the device warranty parameters are carried in the activation code acquisition request.
[0107] Step 3) The first device verifies the user's activation code generation permission based on the device warranty parameters; if the verification is successful, it determines whether the device warranty parameters are within the range of values included in the warranty parameter constraint table.
[0108] Step 4) If the first device determines that the device warranty parameters are within the range of values included in the warranty parameter constraint table, it will carry the device warranty parameters in the constraint_json load and mark the source field of the target warranty activation code as PURCHASE.
[0109] Step 5) The first device generates a globally unique and unforgeable activation code master code; generates a random plaintext password for each master code, hashes and encrypts the random plaintext password and stores it (i.e., the first encryption credential).
[0110] Step 6) The first device binds the generated activation code master code to the user identifier, and sets the total number of devices that the target warranty activation code can activate and the remaining number of devices that the target warranty activation code can activate to the purchase quantity. Finally, the target warranty activation code and password are sent to the purchaser's email address.
[0111] Method 2: For users with a secondary role (e.g., equipment installer, equipment distributor, equipment warranty provider), the user can obtain the target warranty activation code through the platform provided by the primary device provider, specifically including the following steps 1)-6). Step 1) The user logs in to the platform using a terminal, and the first device obtains the user role associated with the target user information from the user login request.
[0112] Step 2) The user selects the device type, model, quantity, and other device warranty parameters using the terminal, and generates an activation code acquisition request; the device warranty parameters are carried in the activation code acquisition request.
[0113] Step 3) The first equipment determines whether the equipment warranty parameters are within the range of values included in the warranty parameter constraint table.
[0114] Step 4) If the first device determines that the equipment warranty parameters are within the range of values included in the warranty parameter constraint table, it will carry the equipment warranty parameters in the constraint_json load and mark the source field of the target warranty activation code as MANUAL.
[0115] Step 5) The first device generates a globally unique and unforgeable activation code master code; generates a random plaintext password for each master code, hashes and encrypts the random plaintext password and stores it (i.e., the first encryption credential).
[0116] Step 6) The first device binds the generated activation code master code to the user identifier, and sets the total number of devices that the target warranty activation code can activate and the remaining number of devices that the target warranty activation code can activate to the purchase quantity. Finally, the target warranty activation code and password are sent to the purchaser's email address.
[0117] In the above embodiments, the first device, provided that the device warranty parameters meet the data constraints, generates the first activation code parameters contained in the target warranty activation code based on the activation code configuration rules. This method avoids generating invalid activation codes that do not meet the data constraints.
[0118] In some embodiments, the first device can generate multiple independent sub-warranty activation codes based on the target warranty activation code. This can be achieved through the following steps, specifically steps 1) to 3). Step 1) The first device receives a sub-activation code generation request sent by the terminal; the sub-activation code generation request is used to request at least one sub-certificate guarantee activation code associated with the target certificate activation code.
[0119] Step 2) The first device responds to the sub-activation code generation request and generates at least one sub-warranty activation code associated with the target warranty activation code; the sub-warranty activation code is used to activate the warranty service of at least one target device.
[0120] Step 3) The first device sends each sub-warranty activation code to the terminal.
[0121] For example, if the target warranty activation code can activate 100 devices, and the sub-activation code generation request instructs the first device to generate a sub-warranty activation code from the target warranty activation code, then the first device can generate sub-warranty activation code 1 based on the target warranty activation code; wherein, sub-warranty activation code 1 can activate 20 devices. Furthermore, the first device can also further generate sub-warranty activation code 2 based on sub-warranty activation code 1; for example, sub-warranty activation code 2 can activate 10 devices.
[0122] In some embodiments, the first device, in response to a sub-activation code generation request, generates at least one sub-certificate warranty activation code associated with the target warranty activation code. This can be achieved through the following steps, specifically including steps 1) to 2). Step 1) In response to the sub-activation code generation request, verify the password carried in the sub-activation code generation request and the number of remaining activatable devices in the target warranty activation code to obtain the first verification result.
[0123] In some embodiments, satisfying the first condition includes at least: (1) the password carried in the sub-activation code generation request matches the target warranty activation code; and (2) the number of remaining activatable devices associated with the target warranty activation code is greater than or equal to the number of sub-warranty activation codes generated as indicated in the sub-activation code generation request.
[0124] Step 2) If the first verification result meets the first condition, generate each sub-quality assurance activation code based on the target quality assurance activation code and the activation code configuration rules.
[0125] In some embodiments, after generating at least one sub-certificate activation code associated with the target certificate activation code, the first device reduces the number of remaining activatable devices associated with the target certificate activation code by the number of sub-certificate activation codes generated.
[0126] In the above embodiments, the first device can generate multiple independent sub-warranty activation codes based on the target warranty activation code. By establishing an encrypted association mapping between the master and sub-activation codes and dynamically managing the number of activatable devices they contain, flexible splitting of the warranty service is achieved.
[0127] In some embodiments, the first device generates sub-warranty activation codes based on the target warranty activation code and activation code configuration rules, which can be achieved through the following steps 1)-2): Step 1) For each sub-warranty activation code, determine the second activation code parameters contained in the sub-warranty activation code based on the first activation code parameters contained in the target warranty activation code.
[0128] Step 2) Generate a sub-warranty activation code based on the second activation code parameters and the device warranty parameters.
[0129] Specifically, when generating a sub-warranty activation code based on the target warranty activation code, the first device copies the device warranty parameters of the target warranty activation code and some parameters from the first activation code parameters. Then, combining this with the total number of devices that the sub-warranty activation code can activate, the second activation code parameters are determined. Finally, based on the second activation code parameters and the device warranty parameters, the sub-warranty activation code is generated.
[0130] In some embodiments, the second activation code parameter includes at least one of the following 1-10: 1. The second code value of the sub-quality assurance activation code; the second code value is obtained by hashing and signing the UUID.
[0131] 2. Identifier of the parent warranty activation code; the child warranty activation code is generated based on the parent warranty activation code, and at least the first parent warranty activation code in at least one parent warranty activation code is the child warranty activation code of the target warranty activation code.
[0132] For example, the target warranty activation code can activate 100 devices. The first device generates a sub-warranty activation code 1 based on the target warranty activation code; sub-warranty activation code 1 can activate 20 devices. Further, the first device can also generate a sub-warranty activation code 2 based on sub-warranty activation code 1, and sub-warranty activation code 2 can activate 10 devices. In the above embodiment, the target warranty activation code is the parent warranty activation code of sub-warranty activation code 1, and sub-warranty activation code 1 is the parent warranty activation code of sub-warranty activation code 2.
[0133] 3. Identifier of the target warranty activation code. The identifier of the target warranty activation code can also be understood as the root code ID of the sub-warranty activation code.
[0134] 4. User ID; The user ID refers to the identifier of the current target device activation code owner.
[0135] 5. Second Encryption Certificate; The second encryption certificate is obtained by hashing the second password corresponding to the sub-certificate activation code with a second random value. The second password is randomly generated when the target certificate activation code is generated.
[0136] 6. The total number of devices that the target warranty activation code can activate; 7. The number of devices that can be activated with the target warranty activation code; 8. The total number of devices that the sub-certificate activation code can activate; 9. The number of devices that can be activated with the sub-warranty activation code; 10. The source of the target quality assurance activation code.
[0137] The following describes in detail, with reference to a specific embodiment, how the first device generates a sub-quality assurance activation code based on the target quality assurance activation code.
[0138] Specifically, the first device generates a sub-certificate guarantee activation code based on the target certificate guarantee activation code. The core of this process involves atomic deduction of data within a database transaction and the establishment of a parent-child mapping. The terminal sends a sub-activation code generation request to the first device, carrying the number of devices that the sub-certificate guarantee activation code can activate.
[0139] After receiving the sub-activation code generation request, the first device first acquires a distributed lock on the target warranty activation code record. Then, it verifies whether the password carried in the sub-activation code generation request matches the target warranty activation code, whether the number of remaining activatable devices associated with the target warranty activation code is greater than or equal to the number of sub-warranty activation codes indicated in the sub-activation code generation request, and whether the user sending the sub-activation code generation request is a device installer, device distributor, or device warranty provider. If the above verifications pass, the first device generates a sub-warranty activation code based on the target warranty activation code.
[0140] For example, in a database transaction: The first code value of the target warranty activation code is read and recorded using a pessimistic lock. Then, the remaining number of devices that can be activated by the target warranty activation code is atomically deducted (if the deduction results in 0, the state becomes EXHAUSTED). Next, a child code record is created, i.e., a new unique code_value is generated. The parent_code_id (parent warranty activation code ID) points to the primary code, the root_code_id (root code ID) points to the target warranty activation code, and the constraint_json completely replicates the device warranty parameters of the primary code. The total_quantity (total number of devices that the child warranty activation code can activate) and remaining_qty (remaining number of devices that the child warranty activation code can still activate) are set to the number of child warranty activation codes generated.
[0141] In some embodiments, when a terminal activates the warranty service of an unactivated device using a warranty activation code, the first device can also verify the compliance of the unactivated device, thereby achieving real-time compliance interception. An unactivated device can be understood as a device whose warranty service has not yet been activated, or a device that did not activate its warranty service upon initial power-on, etc. This can be achieved through the following steps 1)-2): Step 1) Receive the first warranty activation code and device information of the unactivated device sent by the terminal.
[0142] Step 2) Verify the first warranty activation code and device information to obtain the third verification result; if the third verification result meets the second condition, send the first instruction to the terminal, the first instruction indicating that the warranty service of the unactivated device is allowed to be activated.
[0143] In some embodiments, when a user activates the warranty service for an unactivated device using a terminal, the terminal sends a warranty activation code and the device information of the unactivated device to a first device. For example, the installer selects the unactivated device (identified by its SN) in the terminal's app and then enters the first warranty activation code. The terminal sends a request containing the device SN, the first warranty activation code, the password, and location proof obtained from the device (GPS, ESC, etc.) to the first device. The first device verifies the first warranty activation code and the device information to obtain a third verification result; if the third verification result meets the second condition, it sends a first instruction to the terminal.
[0144] In the above embodiments, before the device is activated, the compliance of the unactivated device can be determined in advance based on the first warranty activation code and the device information of the unactivated device, thus avoiding the non-compliant use of the unactivated device.
[0145] In some embodiments, the device information includes the device type of the inactive device and the first location where the inactive device is currently located. Satisfying the second condition includes at least: (1) The device warranty parameters of the first warranty activation code are within the range of values included in the warranty parameter constraint table; (2) The number of remaining activatable devices associated with the first warranty activation code is greater than 0; (3) The device warranty parameters of the first warranty activation code include the device type; (4) The device warranty parameters of the first warranty activation code include the first position.
[0146] For example, after the first device receives the first warranty activation code and the device information of the unactivated device sent by the terminal, it performs multiple verifications: 1. Verify the first warranty activation code, password, validity period, and remaining quantity.
[0147] 2. Match the actual type and model of the device with the allowed list in the activation code payload constraint_json.
[0148] 3. Calculate whether the current warranty period of the device plus the incremental warranty period of the activation code is less than or equal to the maximum extended warranty period of the device, and ensure that it does not exceed the limit.
[0149] 4. Extract the GPS or grid code reported by the device and use the geocoding service to parse it into a country code. Match the parsed first location with the applicable.regions or distributor_ids in the activation code payload.
[0150] If the above verification fails (i.e., the verification fails), a RegionViolationException is thrown, meaning that the warranty service for unactivated devices is not allowed to be activated. If the verification succeeds (i.e., the verification passes), the device warranty expiration date is updated in the transaction, the activation code `remaining_qty` is deducted, and the activation log is recorded. The extended warranty can then be viewed on the terminal.
[0151] In the above implementation, the first device can perform multi-dimensional compliance verification, which can detect non-compliant use of unactivated devices in advance. For example, the first device combines the logical constraints carried by the activation code with the physical information reported by the device, and can proactively intercept non-compliant activation behaviors such as cross-region activation, which is more conducive to device management.
[0152] In some embodiments, after sending a first instruction to the terminal, the first device can reduce the number of unactivated devices from the number of remaining activatable devices associated with the first warranty activation code.
[0153] In some embodiments, the device information also includes a first serial number of the unactivated device.
[0154] In some embodiments, if the first location is not included in the device warranty parameters of the first warranty activation code in the third verification result, a second instruction is sent to the terminal; wherein the second instruction includes the first serial number, and the second instruction indicates that the warranty service of the unactivated device corresponding to the first serial number is unavailable.
[0155] Specifically, if the first location is not included in the device warranty parameters, it indicates that the first device failed to verify the first warranty activation code and device information sent by the terminal. In this case, the first device will not only disallow the activation of the warranty service for the unactivated device, but will also perform proactive defense actions: The first device updates the device status of the inactive device in the database to a cross-regional device (RESTRICTED_CROSS_REGION). Simultaneously, it sends a second command to the device's SN via MQTT to lock the inactive device. Upon receiving the second command, the inactive device performs a local lock; that is, it sets the status flag of the security chip and controls the GPIO port to disable the core power output, making the device permanently unusable.
[0156] In some embodiments, during production, an unactivated device can write a preset location, the "product code," into a secure storage area. Upon first power-on of the unactivated device, the bootloader can automatically read the code from the secure storage area and send the preset location along with its own serial number (referred to as the second serial number) to the first device via an initial registration message based on the MQTT protocol.
[0157] In some embodiments, the first device receives a second serial number and a second location currently occupied by the first-time powered-on device. If the second location is not within a preset location range, a third instruction is sent to the first-time powered-on device based on the second serial number. The third instruction indicates that the warranty service for the first-time powered-on device is permanently unavailable. Furthermore, the first device may also prevent the generation of a warranty activation code for the first-time powered-on device.
[0158] For example, the first device compares the GPS and / or grid code (i.e., the second location) corresponding to the initial registration message with a preset location. If the second location is not within the preset location range, it indicates that the first-time powered-on device is not within the usable range, and the first-time powered-on device has a non-compliant issue of cross-regional use. In this case, the first device prohibits providing warranty service for the first-time powered-on device and indicates that the first-time powered-on device is permanently unusable.
[0159] In the above implementation, the first device can determine whether the device is being used improperly upon first power-on based on the second serial number and the second location, and can proactively block improper activation behaviors such as cross-regional activation, which is more conducive to device management.
[0160] Figure 2 This is the second flowchart illustrating the equipment quality assurance method provided by this invention. See also... Figure 2 As shown, the equipment warranty method is performed by the first equipment and specifically includes the following steps: Step S201: Receive a user login request sent by the terminal; the user login request includes the target user information, which is used to determine the user's role.
[0161] Step S202: In response to the user login request, determine the terminal's location information based on the target user information; if the location information is within a preset location range, determine whether the target user information exists in the pre-acquired user information list; the user information list stores at least one user information and the role associated with each user information.
[0162] Step S203: Determine the role associated with the target user information stored in the user information list as the user's role.
[0163] Step S204: Receive the activation code acquisition request sent by the terminal; the activation code acquisition request includes the device warranty parameters corresponding to the target device that the user expects to obtain.
[0164] Step S205: In response to the activation code acquisition request, if the user's role is the first role, verify the user's activation code generation permission based on the device warranty parameters.
[0165] Step S206: If the user's activation code generation permission is verified, or if the user's role is a second role, compare the device warranty parameters with the pre-obtained warranty parameter constraint table; the warranty parameter constraint table includes the value range of the warranty parameters.
[0166] Step S207: If the equipment warranty parameters are within the range of values included in the warranty parameter constraint table, determine the first activation code parameter based on the activation code parameter indicated by the activation code configuration rule; the first activation code parameter is at least one of the activation code parameters indicated by the activation code configuration rule.
[0167] Step S208: Generate the target warranty activation code based on the equipment warranty parameters and the first activation code parameters.
[0168] Figure 3 This is the third flowchart illustrating the equipment quality assurance method provided by this invention. See also... Figure 3 As shown, the equipment warranty method is performed by the first equipment and specifically includes the following steps: Step S301: Receive a sub-activation code generation request sent by the terminal; the sub-activation code generation request is used to request at least one sub-certificate guarantee activation code associated with the target certificate activation code.
[0169] Step S302: In response to the sub-activation code generation request, verify the password carried in the sub-activation code generation request and the number of remaining activatable devices in the target warranty activation code to obtain the first verification result.
[0170] Step S303: If the first verification result meets the first condition, generate each sub-quality assurance activation code based on the target quality assurance activation code and the activation code configuration rules.
[0171] Step S304: Reduce the number of sub-warranty activation codes generated by reducing the number of remaining activatable devices associated with the target warranty activation code.
[0172] Step S305: Send each sub-warranty activation code to the terminal.
[0173] Figure 4 This is the fourth flowchart illustrating the equipment quality assurance method provided by this invention. See also... Figure 4 As shown, the equipment warranty method is performed by the first equipment and specifically includes the following steps: Step S401: Receive the first warranty activation code and device information of the unactivated device sent by the terminal.
[0174] Step S402: Verify the first warranty activation code and device information to obtain the third verification result.
[0175] If the third verification result meets the second condition, proceed to steps S403 and S404. If the third verification result does not meet the second condition, proceed to step S405.
[0176] Step S403: Send a first instruction to the terminal. The first instruction indicates that the warranty service of the unactivated device is allowed to be activated.
[0177] Step S404: Reduce the number of unactivated devices by the number of remaining activatable devices associated with the first warranty activation code.
[0178] Step S405: Send a second instruction to the terminal; wherein the second instruction includes a first serial number, and the second instruction indicates that the warranty service for the unactivated device corresponding to the first serial number is unavailable.
[0179] This invention also provides an equipment warranty device for implementing the above embodiments and preferred embodiments, which will not be repeated hereafter. The terms "module," "unit," "subunit," etc., used below refer to combinations of software and / or hardware that implement a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated. The equipment warranty device provided by this invention is described below, and the equipment warranty device described below can be referred to in correspondence with the equipment warranty method described above.
[0180] Figure 5 This is a structural schematic diagram of the equipment quality assurance device 500 provided by the present invention, as shown below. Figure 5 As shown, the equipment warranty device 500 includes: The first receiving module 501 is used to receive an activation code acquisition request sent by the terminal; the activation code acquisition request includes the device warranty parameters corresponding to the target device that the user expects to obtain; The first generation module 502 is used to respond to the activation code acquisition request and generate a target warranty activation code based on the device warranty parameters and activation code configuration rules; the activation code configuration rules are used to determine the activation code parameters that the target warranty activation code can contain, and the target warranty activation code is used to activate the warranty service of at least one of the target devices. The first sending module 503 is used to send the target quality assurance activation code to the terminal.
[0181] In some embodiments, the generation module 502 is further configured to: The equipment warranty parameters are compared with a pre-acquired warranty parameter constraint table; the warranty parameter constraint table includes the value range of the warranty parameters. Given that the equipment warranty parameters are within the range of values included in the warranty parameter constraint table, a target warranty activation code is generated based on the equipment warranty parameters and activation code configuration rules.
[0182] In some embodiments, the generation module 502 is further configured to: Based on the activation code parameters indicated by the activation code configuration rules, a first activation code parameter is determined; the first activation code parameter is at least one of the activation code parameters indicated by the activation code configuration rules. Based on the device warranty parameters and the first activation code parameters, the target warranty activation code is generated.
[0183] In some embodiments, the apparatus further includes: The second receiving module is used to receive a sub-activation code generation request sent by the terminal; the sub-activation code generation request is used to request at least one sub-guarantee activation code associated with the target warranty activation code; The second generation module is used to generate at least one sub-warranty activation code associated with the target warranty activation code in response to the sub-activation code generation request; the sub-warranty activation code is used to activate the warranty service of at least one of the target devices; The second sending module is used to send each of the sub-quality assurance activation codes to the terminal.
[0184] In some embodiments, the second generation module is further configured to: In response to the sub-activation code generation request, the password carried in the sub-activation code generation request and the number of remaining activatable devices in the target warranty activation code are verified to obtain a first verification result; If the first verification result satisfies the first condition, each of the sub-certificate guarantee activation codes is generated based on the target quality assurance activation code and the activation code configuration rules.
[0185] In some embodiments, satisfying the first condition includes at least: The password carried in the sub-activation code generation request matches the target quality assurance activation code; The number of remaining activatable devices associated with the target warranty activation code is greater than or equal to the number of sub-warranty activation codes to be generated as indicated by the sub-activation code generation request.
[0186] In some embodiments, the apparatus further includes: The first device quantity update module is used to reduce the number of sub-certificate activation codes generated by reducing the number of remaining activatable devices associated with the target quality assurance activation code.
[0187] In some embodiments, the first generation module 502 is further configured to: In response to the activation code acquisition request, if the user's role is the first role, the user's activation code generation permission is verified based on the device warranty parameters; if the verification is successful, the target warranty activation code is generated based on the device warranty parameters and the activation code configuration rules. Alternatively, if the user's role is the second role, the target warranty activation code is generated based on the device warranty parameters and the activation code configuration rules.
[0188] In some embodiments, the apparatus further includes: The third receiving module is used to receive a user login request sent by the terminal; the user login request includes the user's target user information, and the target user information is used to determine the user's role. The user role determination module is used to determine the user's role based on the target user information in response to the user login request.
[0189] In some embodiments, the user role determination module is further configured to: Determine whether the target user information exists in the pre-acquired user information list; the user information list stores at least one user information and the role associated with each user information. The role associated with the target user information stored in the user information list is determined as the user's role.
[0190] In some embodiments, the user role determination module is further configured to: Based on the target user information, the location information of the terminal is determined; If the location information is within a preset location range, the user's role is determined based on the target user information.
[0191] In some embodiments, the apparatus further includes: The fourth receiving module is used to receive the first warranty activation code and device information of the unactivated device sent by the terminal; The verification module is used to verify the first warranty activation code and the device information to obtain a third verification result; The third sending module is used to send a first instruction to the terminal when the third verification result meets the second condition, wherein the first instruction indicates that the warranty service of the unactivated device is allowed to be activated.
[0192] In some embodiments, the device information includes the device type of the inactive device and the first location of the inactive device. The second condition being satisfied includes at least: The device warranty parameters of the first warranty activation code are within the range of values included in the warranty parameter constraint table; The number of remaining activatable devices associated with the first warranty activation code is greater than 0; The device warranty parameters of the first warranty activation code include the device type; The device warranty parameters of the first warranty activation code include the first location.
[0193] In some embodiments, the apparatus further includes: The second device quantity update module is used to reduce the number of unactivated devices by the number of remaining activatable devices associated with the first quality assurance activation code.
[0194] In some embodiments, the device information further includes a first serial number of the unactivated device; the apparatus further includes: The fourth sending module is used to send a second instruction to the terminal when the first location is not included in the device warranty parameters of the device with the third verification result being the first warranty activation code; The second instruction includes the first serial number, and the second instruction indicates that the warranty service for the unactivated device corresponding to the first serial number is unavailable.
[0195] In some embodiments, the apparatus further includes: The fifth receiving module is used to receive the second serial number sent by the device that is powered on for the first time and the second position currently located by the device that is powered on for the first time; The fifth sending module is used to send a third instruction to the first-time powered-on device based on the second serial number when the second position is not within the preset position range. The third instruction indicates that the warranty service of the first-time powered-on device is permanently unavailable.
[0196] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can reside in the same processor; or the above modules can be located in different processors in any combination.
[0197] Figure 6 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 6As shown, the electronic device may include: a processor 610, a communications interface 620, a memory 630, and a communication bus 640, wherein the processor 610, the communications interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 can call logical instructions in the memory 630 to execute a device warranty method, which includes: receiving an activation code acquisition request sent by a terminal; the activation code acquisition request includes device warranty parameters corresponding to the target device that the user expects to acquire; in response to the activation code acquisition request, generating a target warranty activation code based on the device warranty parameters and activation code configuration rules; the activation code configuration rules are used to determine the activation code parameters that the target warranty activation code can contain, and the target warranty activation code is used to activate the warranty service of at least one target device; and sending the target warranty activation code to the terminal.
[0198] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0199] The present invention also provides an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.
[0200] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0201] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program: receiving an activation code acquisition request sent by a terminal; the activation code acquisition request includes device warranty parameters corresponding to the target device that the user expects to acquire; in response to the activation code acquisition request, generating a target warranty activation code based on the device warranty parameters and activation code configuration rules; the activation code configuration rules are used to determine the activation code parameters that the target warranty activation code can contain, and the target warranty activation code is used to activate the warranty service of at least one target device; and sending the target warranty activation code to the terminal.
[0202] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated in this embodiment.
[0203] On the other hand, in conjunction with the device warranty method provided in the above embodiments, the present invention also provides a non-transitory computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above device warranty method embodiments.
[0204] In another aspect, in conjunction with the equipment warranty method provided in the above embodiments, the present invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0205] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0206] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0207] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, 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; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for ensuring equipment quality, characterized in that, The method includes: The receiving terminal sends an activation code retrieval request; the activation code retrieval request includes the device warranty parameters corresponding to the target device that the user expects to obtain; In response to the activation code acquisition request, a target warranty activation code is generated based on the device warranty parameters and activation code configuration rules; the activation code configuration rules are used to determine the activation code parameters that the target warranty activation code can contain, and the target warranty activation code is used to activate the warranty service of at least one of the target devices; Send the target warranty activation code to the terminal.
2. The equipment quality assurance method according to claim 1, characterized in that, The process of generating a target warranty activation code based on the device warranty parameters and activation code configuration rules includes: The equipment warranty parameters are compared with a pre-acquired warranty parameter constraint table; the warranty parameter constraint table includes the value range of the warranty parameters. Given that the equipment warranty parameters are within the range of values included in the warranty parameter constraint table, a target warranty activation code is generated based on the equipment warranty parameters and activation code configuration rules.
3. The equipment quality assurance method according to claim 1 or 2, characterized in that, The process of generating a target warranty activation code based on the device warranty parameters and activation code configuration rules includes: Based on the activation code parameters indicated by the activation code configuration rules, a first activation code parameter is determined; the first activation code parameter is at least one of the activation code parameters indicated by the activation code configuration rules. Based on the device warranty parameters and the first activation code parameters, the target warranty activation code is generated.
4. The equipment quality assurance method according to claim 1, characterized in that, The method further includes: Receive a sub-activation code generation request sent by the terminal; the sub-activation code generation request is used to request at least one sub-certificate guarantee activation code associated with the target certificate guarantee activation code; In response to the sub-activation code generation request, at least one sub-warranty activation code associated with the target warranty activation code is generated; the sub-warranty activation code is used to activate the warranty service of at least one of the target devices; Send each of the sub-certificate activation codes to the terminal.
5. The equipment quality assurance method according to claim 4, characterized in that, The step of generating at least one sub-certificate guarantee activation code associated with the target certificate guarantee activation code in response to the sub-activation code generation request includes: In response to the sub-activation code generation request, the password carried in the sub-activation code generation request and the number of remaining activatable devices in the target warranty activation code are verified to obtain a first verification result; If the first verification result satisfies the first condition, each of the sub-certificate guarantee activation codes is generated based on the target quality assurance activation code and the activation code configuration rules.
6. The equipment quality assurance method according to claim 5, characterized in that, The condition of satisfying the first condition includes at least: The password carried in the sub-activation code generation request matches the target quality assurance activation code; The number of remaining activatable devices associated with the target warranty activation code is greater than or equal to the number of sub-warranty activation codes to be generated as indicated by the sub-activation code generation request.
7. The equipment quality assurance method according to claim 5 or 6, characterized in that, The method further includes: The number of remaining activatable devices associated with the target warranty activation code is reduced by the number of sub-warranty activation codes generated.
8. The equipment quality assurance method according to claim 1, characterized in that, In response to the activation code acquisition request, the generation of a target warranty activation code based on the device warranty parameters and activation code configuration rules includes: In response to the activation code acquisition request, if the user's role is the first role, the user's activation code generation permission is verified based on the device warranty parameters; if the verification is successful, the target warranty activation code is generated based on the device warranty parameters and the activation code configuration rules. Alternatively, if the user's role is the second role, the target warranty activation code is generated based on the device warranty parameters and the activation code configuration rules.
9. The equipment quality assurance method according to claim 8, characterized in that, Before the activation code retrieval request sent by the receiving terminal, the method further includes: The terminal sends a user login request; the user login request includes the user's target user information, which is used to determine the user's role. In response to the user login request, the user's role is determined based on the target user information.
10. The equipment quality assurance method according to claim 9, characterized in that, Determining the user's role based on the target user information includes: Determine whether the target user information exists in the pre-acquired user information list; the user information list stores at least one user information and the role associated with each user information. The role associated with the target user information stored in the user information list is determined as the user's role.
11. The equipment quality assurance method according to claim 9 or 10, characterized in that, The target user information is also used to determine the location information of the terminal; Determining the user's role based on the target user information includes: Based on the target user information, the location information of the terminal is determined; If the location information is within a preset location range, the user's role is determined based on the target user information.
12. The equipment quality assurance method according to claim 1, characterized in that, The method further includes: Receive the first warranty activation code and device information of unactivated devices sent by the terminal; The first warranty activation code and the device information are verified to obtain a third verification result; If the third verification result satisfies the second condition, a first instruction is sent to the terminal, the first instruction indicating that the warranty service of the unactivated device is allowed to be activated.
13. The equipment quality assurance method according to claim 12, characterized in that, The device information includes the device type of the inactive device and the first location of the inactive device. The second condition being satisfied includes at least: The device warranty parameters of the first warranty activation code are within the range of values included in the warranty parameter constraint table; The number of remaining activatable devices associated with the first warranty activation code is greater than 0; The device warranty parameters of the first warranty activation code include the device type; The device warranty parameters of the first warranty activation code include the first location.
14. The equipment quality assurance method according to claim 12 or 13, characterized in that, The method further includes: Reduce the number of unactivated devices by the number of remaining activatable devices associated with the first warranty activation code.
15. The equipment quality assurance method according to claim 13, characterized in that, The device information also includes the first serial number of the unactivated device; the method further includes: If the first location is not included in the device warranty parameters of the first warranty activation code in the third verification result, a second instruction is sent to the terminal. The second instruction includes the first serial number, and the second instruction indicates that the warranty service for the unactivated device corresponding to the first serial number is unavailable.
16. The equipment quality assurance method according to claim 1, characterized in that, The method further includes: Receive the second serial number sent by the device that is powered on for the first time and the second position currently occupied by the device that is powered on for the first time; If the second position is not within the preset position range, a third instruction is sent to the first-time powered-on device based on the second serial number. The third instruction indicates that the warranty service of the first-time powered-on device is permanently unavailable.
17. A device for ensuring equipment quality, characterized in that, The device includes: The first receiving module is used to receive an activation code acquisition request sent by the terminal; the activation code acquisition request includes the device warranty parameters corresponding to the target device that the user expects to obtain; The first generation module is used to respond to the activation code acquisition request and generate a target warranty activation code based on the device warranty parameters and activation code configuration rules; the activation code configuration rules are used to determine the activation code parameters that the target warranty activation code can contain, and the target warranty activation code is used to activate the warranty service of at least one of the target devices; The first sending module is used to send the target warranty activation code to the terminal.
18. An equipment quality assurance system, comprising a cloud server and a terminal, characterized in that, The cloud server is used to execute the equipment warranty method according to any one of claims 1-16.
19. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the device warranty method according to any one of claims 1-16.
20. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the device warranty method according to any one of claims 1-16.
