Equipment activation mode identification method, server, equipment and storage medium

By receiving device identification and obtaining encoding, determining the device activation method, the problem of difficult to identify the device activation method is solved, the accurate identification of the activation method and the efficiency of material management is achieved, and the operational cost is reduced.

CN119089923APending Publication Date: 2024-12-06GUANGDONG HOTATA TECH GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411080058.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The activation methods of existing equipment are difficult to accurately identify, especially when production materials change, resulting in increased material management complexity and increased operational management costs.

Method used

By receiving the device identifier in the activation request, the first and second encodings of the device are obtained, thereby determining the activation method, and pre-defined different encoding combinations correspond to different activation methods, ensuring that when the activation type of the main controller and the communication module changes, it is possible to Accurately identify activation methods.

Benefits of technology

It realizes accurate identification of equipment activation methods, reduces manual intervention and record errors, improves the standardization and efficiency of material management, and reduces operational management costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089923A_ABST
    Figure CN119089923A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a device activation mode identification method, a server, a device and a storage medium, and relates to the field of intelligent devices. The method comprises the following steps: receiving an activation request sent by an activation terminal, and obtaining a device identifier of a to-be-activated device from the activation request; acquiring a first code and a second code of the to-be-activated equipment from an equipment library according to the equipment identifier; the equipment library is used for storing each equipment identifier as well as a first code and a second code respectively corresponding to each equipment identifier; the first code is used for representing the type of a main controller of the corresponding equipment, and the second code is used for representing the type of a communication module of the corresponding equipment; and determining an activation mode of the to-be-activated device according to the first code and the second code of the to-be-activated device, and activating the to-be-activated device according to the activation mode. According to the embodiment of the invention, under the condition that the main controller and the communication module of the equipment are changed, the activation mode of the to-be-activated equipment can be accurately identified, and material management disorder is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart devices. Specifically, the present application relates to a method for identifying a device activation mode, a server, a device and a storage medium. Background Art

[0002] The activation method of existing equipment is usually determined by the production materials of the equipment. However, during the production process of the equipment, the production materials used in different production batches of the same model of equipment may change, resulting in different production batches of equipment supporting different activation methods. Therefore, there is a problem of increasing the complexity of material management and difficulty in accurately identifying the activation method of the equipment. Summary of the invention

[0003] The embodiments of the present application provide a method for identifying a device activation mode, a server, a device, and a storage medium, which are used to solve the technical problems that when production materials change, the activation mode of the device is difficult to accurately identify and the management of equipment production materials is chaotic.

[0004] According to a first aspect of an embodiment of the present application, a method for identifying a device activation mode is provided, the method comprising: receiving an activation request sent by an activation terminal, and obtaining a device identification of a device to be activated from the activation request;

[0005] According to the device identification, the first code and the second code of the device to be activated are obtained from the device library; the device library is used to store each device identification and the first code and the second code corresponding to each device identification respectively; the first code is used to characterize the activation type of the main controller of the corresponding device, and the second code is used to characterize the activation type of the communication module of the corresponding device;

[0006] An activation mode of the device to be activated is determined according to the first code and the second code of the device to be activated.

[0007] In a possible implementation, an activation code of the device to be activated is obtained from a code library according to the first code and the second code of the device to be activated; the code library is used to store each activation code and the first code and the second code corresponding to each activation code, and different activation codes are used to represent different activation methods;

[0008] The activation method represented by the activation code of the device to be activated is used as the activation method of the device to be activated.

[0009] In another possible implementation, the activation method is application activation, and the activation serial number of the device to be activated is obtained from the activation library according to the device identification of the device to be activated; the activation serial number is used to activate the corresponding device, and the activation library is used to store each device identification and the activation serial number corresponding to each device identification;

[0010] The activation serial number is sent to the activation terminal, so that the activation terminal sends the activation serial number to the device to be activated through the Bluetooth connection between the activation terminal and the device to be activated.

[0011] In another possible implementation, the activation method is remote control activation, and the activation serial number of the device to be activated is obtained from the activation library according to the device identification of the device to be activated; the activation serial number is used to activate the corresponding device, and the activation library is used to store each device identification and the activation serial number corresponding to each device identification;

[0012] An activation serial number and a first instruction are sent to the activation terminal; the first instruction is used to instruct the user to input the activation serial number into the activation remote controller to activate the device to be activated.

[0013] In another possible implementation, if the first response information is received when activating the device to be activated according to the activation method, the device status of the device to be activated is updated to activated; the first response information is sent by the activation terminal after the activation of the device to be activated is completed;

[0014] Record activation information of the device to be activated;

[0015] The activation information includes at least one of the following:

[0016] Activation method;

[0017] Activation time;

[0018] Activate location.

[0019] In yet another possible implementation, the activation request further includes a terminal identifier of the activation terminal;

[0020] Determine the terminal identification of the activated terminal;

[0021] If it is determined that the terminal whitelist has a terminal identifier, the device identifier of the device to be activated is obtained from the activation request; the terminal whitelist is used to record the activated terminals that are allowed to be activated.

[0022] According to a second aspect of an embodiment of the present application, a server is provided, the device comprising:

[0023] A receiving module, used to receive an activation request sent by an activation terminal, and obtain a device identification of a device to be activated from the activation request;

[0024] An acquisition module is used to acquire a first code and a second code of a device to be activated from a device library according to a device identification; the device library is used to store each device identification and a first code and a second code respectively corresponding to each device identification; the first code is used to characterize an activation type of a main controller of a corresponding device, and the second code is used to characterize an activation type of a communication module of a corresponding device;

[0025] The determination module is used to determine the activation mode of the device to be activated according to the first code and the second code of the device to be activated.

[0026] According to a third aspect of an embodiment of the present application, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory, and when the processor executes the program, the steps of the method provided in the first aspect are implemented.

[0027] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided in the first aspect are implemented.

[0028] According to the fifth aspect of the embodiment of the present application, a computer program product is provided, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. When a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, so that the computer device executes the steps of implementing the method provided in the first aspect.

[0029] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0030] The method for identifying the device activation mode provided in the embodiment of the present application obtains the device identification of the device to be activated carried in the activation request upon receiving the activation request, determines the first code representing the activation type of the main controller and the second code representing the activation type of the communication module corresponding to the device to be activated according to the device identification and the correspondence between each device identification and the first code and the second code, and then determines the corresponding activation mode according to the first code and the second code of the device to be activated. By saving the correspondence between the first code representing the activation type of the main controller and the second code representing the activation type of the communication module and the device identification during the production of the device, confusion in the management of equipment production materials caused by changes in production materials is avoided, and different combinations of the first code and the second code corresponding to different activation modes are predefined, so that when the activation type of the main controller and the activation type of the communication module change, the activation mode of the device to be activated can also be accurately identified. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0032] Figure 1 A schematic diagram of the system architecture for implementing a method for identifying a device activation mode provided in an embodiment of the present application;

[0033] Figure 2A schematic diagram of a flow chart of a method for identifying a device activation mode provided in an embodiment of the present application;

[0034] Figure 3 A schematic diagram of an interactive process of a method for identifying a device activation mode provided in an embodiment of the present application;

[0035] Figure 4 A schematic diagram of the structure of a server provided in an embodiment of the present application;

[0036] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.

[0038] Those skilled in the art will appreciate that, unless expressly stated, the singular forms "one", "an", "" and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or may refer to the one element and the other element establishing a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" may be implemented as "A", or as "B", or as "A and B".

[0039] The following is an explanation of the related technology: In the related technology, when the production materials of the equipment change, such as the main controller or the wireless communication module, the activation method of the equipment of the same model will change, thereby causing management confusion, including the following problems:

[0040] 1. During the production and maintenance of the equipment, it is necessary to manually track and record material changes, which increases the difficulty of material management of the equipment.

[0041] 2. Frequent material changes lead to changes in activation methods, which increases the operating and management costs of the equipment, and the activation method is difficult to accurately identify.

[0042] In response to at least one of the above-mentioned technical problems or areas that need improvement in the related art, the present application proposes a device activation method. The scheme obtains the device identification of the device to be activated carried in the activation request when receiving the activation request, determines the first code representing the activation type of the main controller and the second code representing the communication module corresponding to the device to be activated according to the device identification and the correspondence between each device identification and the first code and the second code, and then determines the corresponding activation method according to the first code and the second code of the device to be activated, so that the device to be activated can be activated according to the corresponding activation method. By saving the correspondence between the first code representing the activation type of the main controller and the second code representing the activation type of the communication module and the device identification during the production of the device, the confusion in the management of equipment production materials caused by changes in production materials is avoided, and different combinations of the first code and the second code are pre-defined to correspond to different activation methods, so that when the activation type of the main controller and the activation type of the communication module change, the activation method of the device to be activated can be accurately identified.

[0043] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.

[0044] Figure 1 A schematic diagram of a system architecture for implementing a method for identifying a device activation mode provided in an embodiment of the present application, wherein the system architecture includes: a terminal 120 and a server 140.

[0045] The terminal 120 installs and runs an application program having a method for identifying the device activation mode, and the terminal 120 is used to send an activation request to the server.

[0046] The terminal 120 is connected to the server 140 via a wireless network or a wired network.

[0047] The server 140 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Schematically, the server 140 includes a processor 144 and a memory 142, and the memory 142 includes a display module 1421, a control module 1422, and a receiving module 1423. The server 140 is used to provide background services for the application of the method. Optionally, the server 140 undertakes the main computing work and the terminal 120 undertakes the secondary computing work; or, the server 140 undertakes the secondary computing work and the terminal 120 undertakes the main computing work; or, the server 140 and the terminal 120 adopt a distributed computing architecture for collaborative computing.

[0048] Optionally, the device types of the terminal include: at least one of a smart phone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop computer and a desktop computer.

[0049] Those skilled in the art will appreciate that the number of the above terminals may be more or less. For example, the above terminal may be only one, or the above terminals may be dozens or hundreds, or more. The embodiment of the present application does not limit the number of terminals and device types.

[0050] In an embodiment of the present application, a method for identifying a device activation mode is provided, such as Figure 2 As shown, the method includes:

[0051] S101, receiving an activation request sent by an activation terminal, and obtaining a device identification of a device to be activated from the activation request.

[0052] In the embodiments of the present application, the device to be activated refers to a device that needs to complete the activation process before it can be used normally, and the device to be activated is a device that can interact with the activation terminal through line communication. The device to be activated can be a smart home device, such as a smart lock, a smart light, and a smart appliance; the device to be activated can also be a personal electronic device, such as a smart watch, a fitness device, an e-reader, etc.; the device to be activated can also be an industrial controller, such as a PLC control, an industrial robot, etc.; the device to be activated can also be other electronic devices that need to be activated remotely or locally.

[0053] In an embodiment of the present application, the activation terminal is a terminal operated by an installer of the device to be activated. After confirming the device to be activated, the installer sends an activation request carrying the device identification of the device to be activated to the server through the activation terminal.

[0054] In the embodiment of the present application, a globally unique identifier, namely, a device identifier, is assigned to each device, and the device identifier is used to characterize the identity of the device.

[0055] In an embodiment of the present application, the server receives an activation request sent by the activation terminal, and obtains the device identification of the device to be activated from the activation request, so that the server can subsequently obtain information related to the device to be activated according to the device identification.

[0056] S102: Acquire a first code and a second code of the device to be activated from a device library according to the device identification.

[0057] In an embodiment of the present application, the device library is used to store each device identification and the first code and the second code corresponding to each device identification respectively; the first code is used to characterize the activation type of the main controller of the corresponding device, and the second code is used to characterize the activation type of the communication module of the corresponding device.

[0058] In the embodiment of the present application, during the production stage of the equipment, each production material is assigned a unique BOM (Bill of Materials) code to characterize the type of material. BOM coding refers to the process of numbering, classifying and recording the various materials, parts or components required for the product. In the manufacturing and engineering fields, BOM codes are often used to manage and track the components of a product in order to effectively carry out production planning, logistics management and inventory control.

[0059] In the embodiment of the present application, the BOM code representing the activation type of the main controller is the first code, and different first codes represent main controllers of different activation types. For example, the first code "MCU001" represents a main controller that supports remote control activation, and the first code "MCU002" represents a main controller that supports both remote control activation and application activation; the BOM code representing the activation type of the communication module is the second code, and different second codes represent communication modules of different activation types. For example, the second code "BT001" represents a Bluetooth communication module that supports application activation. In addition, if the second code of the communication module is "NULL", it means that the device to be activated has no communication module.

[0060] In an embodiment of the present application, during the production stage of the device, after the main controller type and communication module activation type of the device are determined, the first code and the second code of the device are determined according to the above types, and the correspondence between the first code and the second code and the device identification of the device is stored in the device library.

[0061] In an embodiment of the present application, after obtaining the device identification of the device to be activated, the server obtains the first code and the second code of the device to be activated through the device library and the device identification, that is, determines the activation type of the main controller and the activation type of the communication module of the current device to be activated.

[0062] S103: Determine an activation method for the device to be activated according to the first code and the second code of the device to be activated.

[0063] In the embodiment of the present application, the activation method may include at least one of the following activation methods: application activation, remote control activation, NFC (Near Field Communication) activation, and sound wave activation.

[0064] In the embodiments of the present application, application activation refers to the installer using an activation terminal to activate the device to be activated through a specific activation application or applet; remote control activation refers to the installer using a specific activation remote control to activate the device to be activated; activation is performed by bringing an NFC-enabled activation terminal close to the device to be activated; and sound wave activation is a technology that uses sound waves to transmit data to activate a device or service. It is usually used in the communication and configuration process between devices or between a device and an application.

[0065] In an embodiment of the present application, which activation method the device to be activated supports is determined by the main controller and the communication module of the device to be activated. Therefore, after obtaining the first code and the second code representing the main controller activation type and the communication module activation type, the activation method supported by the device to be activated can be determined based on the first code and the second code, and then the above activation method can be used to activate the device to be activated.

[0066] In the above scheme, when receiving an activation request, the device identification of the device to be activated carried in the activation request is obtained, and the first code representing the activation type of the main controller and the second code representing the activation type of the communication module corresponding to the device to be activated are determined according to the device identification and the correspondence between each device identification and the first code and the second code, and then the corresponding activation method is determined according to the first code and the second code of the device to be activated, so that the device to be activated can be activated according to the corresponding activation method. By saving the correspondence between the first code representing the activation type of the main controller and the second code representing the activation type of the communication module and the device identification during the production of the device, confusion in the management of equipment production materials caused by changes in production materials is avoided, and different combinations of the first code and the second code corresponding to different activation methods are pre-defined, so that when the activation type of the main controller and the activation type of the communication module change, the activation method of the device to be activated can also be accurately identified.

[0067] On the basis of the above embodiments, as an optional embodiment, an activation code of the device to be activated is obtained from a code library according to the first code and the second code of the device to be activated; the code library is used to store each activation code and the first code and the second code corresponding to each activation code, and different activation codes are used to represent different activation methods; the activation method represented by the activation code of the device to be activated is used as the activation method of the device to be activated.

[0068] In an embodiment of the present application, a unique activation code is assigned to each activation method during the device generation stage, and a correspondence between the combination of the first code and the second code and the activation format is established, and the above correspondence is stored in a code library, so that when it is necessary to determine the activation method of the device to be activated, the corresponding activation code can be directly determined from the code library based on the first code and the second code of the device to be activated.

[0069] In one example, the activation code corresponding to application activation is A1, and the activation code corresponding to remote control activation is A2. The first code "MCU001" represents a main controller that supports remote control activation, "MCU002" represents a main controller that supports both remote control activation and application activation, and the second code "BT001" represents a Bluetooth communication module that supports application activation. The second code "NULL" indicates that there is no communication module. The established correspondence between the combination of the first code and the second code and the activation code is as follows:

[0070] A1-MCU002+BT001

[0071] A2-MCU001+NULL

[0072] In an embodiment of the present application, after the server determines the first code and the second code of the device to be activated, it determines the activation code of the device to be activated from the code library based on the first code and the second code. Since the activation method represented by each activation code is predefined, the activation method supported by the device to be activated can be determined. Finally, the device to be activated is activated according to the activation method supported by the device to be activated.

[0073] In the above scheme, the activation method of the device is dynamically confirmed based on the actual configuration of the device (main controller activation type and communication module activation type). Through the correspondence between the pre-established combination of the first code and the second activation code and the activation code, even if the generated material changes in the middle, resulting in a change in the main controller activation type or the communication module activation type, the activation code can be accurately determined based on the first code and the second code, thereby determining the activation party of the device to be activated. This allows the same model of equipment to accurately identify and select the appropriate activation method even if the material changes during its life cycle, greatly improving the adaptability of the system.

[0074] On the basis of the above embodiments, as an optional embodiment, when it is determined that the activation method of the device to be activated is application activation, the activation serial number of the device to be activated is obtained from the activation library according to the device identification of the device to be activated; the activation serial number is used to activate the corresponding device, and the activation library is used to store each device identification and the activation serial number corresponding to each device identification; the activation serial number is sent to the activation terminal, so that the activation terminal sends the activation serial number to the device to be activated through the Bluetooth connection between the device to be activated and the activation terminal.

[0075] In an embodiment of the present application, when a device is generated, an activation serial number is assigned to each device, and the corresponding activation serial number is stored in each device. For example, the corresponding activation serial number is stored in the device by burning, and then the correspondence between the device identification and the activation serial number is recorded in the activation library of the server.

[0076] In an embodiment of the present application, when the server determines that the activation method of the device to be activated is application activation based on the activation serial number, it first obtains the corresponding activation serial number from the activation library based on the device identification, and then returns the activation serial number to the activation terminal that sends the activation request, so that after the activation terminal receives the activation serial number, it sends the activation serial number to the device to be activated through a specific activation applet or activation application, and the device to be activated determines whether the device can be activated according to the current activation code.

[0077] In the above scheme, when it is determined that the activation method of the device to be activated is application activation, the serial number is directly sent to the activation terminal, so that the activation terminal sends an activation code to the device to be activated according to the corresponding activation applet or activation application to activate the device to be activated, thereby automatically identifying the activation method and process supported by the device to be activated according to the specific configuration of the device, adapting to different application scenarios and needs, and improving the flexibility and ease of use of the device.

[0078] In an embodiment of the present application, after the server sends the activation serial number of the device to be activated to the activation terminal, the activation terminal scans the device to be activated through a specific activation application or activation applet, and establishes a Bluetooth connection with the device to be activated through the broadcast information of the scanned device to be activated, and then determines the session key used for interaction between the activation terminal and the device to be activated through a key negotiation protocol, ensuring that both parties hold the same session key for encrypting and decrypting communication content. The activation terminal encrypts the activation serial number through the session key, and then sends the encrypted activation serial number to the device to be activated. After receiving the encrypted activation serial number, the device to be activated decrypts the activation serial number according to the session key to obtain the activation serial number, and compares the activation serial number sent by the activation terminal with the activation serial number stored by itself. If they are consistent, it means that it can be activated at present, and the device to be activated performs the activation process.

[0079] On the basis of the above embodiments, as an optional embodiment, after determining that the activation method of the device to be activated is remote control activation, the activation serial number of the device to be activated is obtained from the activation library according to the device identification of the device to be activated; the activation serial number is used to activate the corresponding device, and the activation library is used to store each device identification and the activation serial number corresponding to each device identification; the activation serial number and the first indication are sent to the activation terminal; the first indication is used to instruct the user to enter the activation serial number into the activation remote control to activate the device to be activated.

[0080] In an embodiment of the present application, when the activation method is remote control activation, the installer has an activation remote control specifically used to activate the devices to be activated. The above-mentioned activation remote control can activate the corresponding devices to be activated by entering the activation serial number of each device, that is, one activation remote control can be used to activate multiple devices to be activated for which it has activation authority.

[0081] In an embodiment of the present application, when a device is generated, an activation serial number is assigned to each device, and the corresponding activation serial number is stored in each device. For example, the corresponding activation serial number is stored in the device by burning, and then the correspondence between the device identification and the activation serial number is recorded in the activation library of the server.

[0082] In an embodiment of the present application, when the server determines that the activation method corresponding to the device to be activated is remote control activation, it first determines the corresponding activation serial number from the activation library according to the device identification of the device to be activated, and then returns the activation serial number of the device to be activated to the activation terminal. Since the activation terminal cannot exchange information with the activation remote control, and the device to be activated only supports remote control activation, the activation serial number cannot be directly transmitted to the device to be activated through the activation terminal. Therefore, after determining the activation serial number, the server needs to generate an instruction message to instruct the installer to input the activation serial number received by the activation terminal into the activation remote control, and then transmit the activation serial number of the device to be activated to the device to be activated through the activation remote control, so that the device to be activated compares the received activation serial number with the activation serial number stored in itself. If the activation serial numbers are consistent, it means that it can be activated at this time, so that the device to be activated starts the activation process.

[0083] Based on the above embodiments, as an optional embodiment, the device to be activated is activated according to the activation method. If the first response information is received, the device status of the device to be activated is updated to activated; the first response information is sent by the activation terminal after the activation of the device to be activated is completed; the activation information of the device to be activated is recorded.

[0084] In the embodiment of the present application, the activation information includes at least one of the following:

[0085] Activation method;

[0086] Activation time;

[0087] Activate location.

[0088] In an embodiment of the present application, after the activation of the device to be activated is completed, first response information indicating the completion of activation will be returned to the activation terminal, or information indicating the completion of activation will be displayed on the device to be activated; after the activation terminal receives the first response information indicating the completion of activation, the activation terminal sends the above-mentioned first response information to the server; when the activation completion information is displayed on the device to be activated, the activation terminal sends the first response information indicating the completion of activation of the device to be activated to the server by triggering the above-mentioned activation completion control preset on the activation applet or the activation application.

[0089] In the embodiment of the present application, when the device to be activated is activated, the activation terminal determines the activation information according to the activation location and activation time of the device to be activated, and then transmits the activation information together with the first response information to the server.

[0090] In the embodiment of the present application, after the server receives the first response information, it means that the current device to be activated has completed activation. Therefore, the status of the device to be activated in the server is updated to an activated status. The first response information also carries the activation information of the device to be activated, so the activation method, activation location and activation time of the device to be activated are recorded.

[0091] In the above scheme, after completing the activation of the device to be activated, the status of the device to be activated is updated to activated, and the corresponding activation information is recorded, so that the device activation data can be intelligently analyzed and managed based on the activation information, providing more accurate equipment maintenance and operation decision support.

[0092] Based on the above embodiments, as an optional embodiment, the activation request also includes a terminal identifier of the activation terminal, and the terminal identifier of the activation terminal is determined;

[0093] If it is determined that the terminal whitelist has a terminal identifier, the device identifier of the device to be activated is obtained from the activation request; the terminal whitelist is used to record the activated terminals that are allowed to be activated.

[0094] In the embodiment of the present application, in order to prevent an installer without activation authority from activating a device to be activated, a terminal whitelist is set on the server, and the activation terminals in the terminal whitelist are all activation terminals that are allowed to activate the device to be activated.

[0095] In an embodiment of the present application, when the server receives an activation request sent by an activation terminal, it is necessary to first verify whether the activation terminal that sends the activation request is an activation terminal that is allowed to activate the device to be activated. When it is determined that there is a terminal identifier of the activation terminal in the terminal whitelist, it means that the current activation terminal can activate the device to be activated. Therefore, in the subsequent process of obtaining the device identifier of the device to be activated, if there is no terminal identifier of the activation terminal in the terminal whitelist, a response message indicating that there is no activation authority is directly returned to the activation terminal.

[0096] In the above scheme, by adding a security verification mechanism to verify the activation authority of the activated terminal according to the terminal whitelist when receiving the activation request, the security and data protection of the device activation are ensured.

[0097] refer to Figure 3 As shown, it exemplarily shows a flow chart of a method for identifying a device activation mode, and the specific contents are as follows:

[0098] S201, the activation terminal determines the device identification of the device to be activated;

[0099] S202, the activation terminal sends an activation request carrying a device identification to the server;

[0100] S203: The server determines the device identification from the activation request, and obtains the first code and the second code of the device to be activated from the device library according to the device identification;

[0101] S204: The server determines an activation code corresponding to the device to be activated according to the first code and the second code of the device to be activated;

[0102] S205. The server obtains the activation serial number of the device to be activated from the activation library, and determines that the activation method represented is application activation according to the activation code;

[0103] S206. The server sends an activation serial number to the activation terminal;

[0104] S207. When receiving the activation serial number, the activation terminal scans the device to be activated through the preset activation application and activation applet, establishes a Bluetooth connection with the device to be activated through the scanned broadcast information of the device to be activated, and then determines the session key used for interaction between the activation terminal and the device to be activated through the key negotiation protocol. The activation terminal encrypts the activation serial number through the session key.

[0105] S208, the activation terminal sends the encrypted activation serial number to the device to be activated;

[0106] S209. The device to be activated receives the encrypted activation serial number, decrypts the encrypted activation serial number according to the session key, compares the above activation serial number with the activation serial number stored in itself, and enters the activation process when they are consistent, and generates the first response information after the activation is completed.

[0107] S210: The server returns first response information to the activated terminal.

[0108] S211, the activation terminal generates activation information, and sends the activation information and first response information to the server;

[0109] S212: The server stores the activation information and updates the device to be activated to an activated state.

[0110] The device activation mode identification method provided in the embodiment of the present application realizes the activation mode identification based on the actual configuration of the device, so that even if the material of the same model of equipment changes during its life cycle, it can accurately identify and select the corresponding activation mode, which greatly improves the adaptability of the system. In the production stage of the equipment, the configuration materials of the equipment are automatically managed, which reduces the probability of manual intervention and recording errors, improves the standardization and efficiency of equipment material management, reduces the operating management costs increased by frequent material changes, and improves the efficiency of equipment material management and operation. In addition, the present invention can automatically identify the activation mode supported by the device according to the specific configuration of the device. Even if a new activation mode is added later, it only needs to establish a mapping relationship between the configuration and the activation mode, which can adapt to different application scenarios and needs and improve the flexibility and ease of use of the device.

[0111] The present application embodiment provides a server, such as Figure 4 As shown, the server 40 may include: a receiving module 401 , an acquiring module 402 , and a determining module 403 .

[0112] Specifically, the receiving module 401 is used to receive an activation request sent by the activation terminal, and obtain the device identification of the device to be activated from the activation request;

[0113] The acquisition module 402 is used to acquire the first code and the second code of the device to be activated from the device library according to the device identification; the device library is used to store each device identification and the first code and the second code corresponding to each device identification; the first code is used to represent the activation type of the main controller of the corresponding device, and the second code is used to represent the activation type of the communication module of the corresponding device;

[0114] The determination module 403 is used to determine the activation mode of the device to be activated according to the first code and the second code of the device to be activated, and activate the device to be activated according to the activation mode.

[0115] The server provided in the embodiment of the present application obtains the device identification of the device to be activated carried in the activation request upon receiving the activation request, determines the first code representing the activation type of the main controller and the second code representing the communication module corresponding to the device to be activated according to the device identification and the correspondence between each device identification and the first code and the second code, and then determines the corresponding activation method according to the first code and the second code of the device to be activated, so that the device to be activated can be activated according to the corresponding activation method. By saving the correspondence between the first code representing the activation type of the main controller and the second code representing the activation type of the communication module and the device identification during the production of the device, confusion in the management of equipment production materials caused by changes in production materials is avoided, and different combinations of the first code and the second code are pre-defined to correspond to different activation methods, so that when the activation type of the main controller and the activation type of the communication module change, the activation method of the device to be activated can also be accurately identified.

[0116] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.

[0117] Further, in a possible implementation, an activation code of the device to be activated is obtained from a code library according to the first code and the second code of the device to be activated; the code library is used to store each activation code and the first code and the second code corresponding to each activation code, and different activation codes are used to represent different activation modes;

[0118] The activation method represented by the activation code of the device to be activated is used as the activation method of the device to be activated.

[0119] In another possible implementation, the activation method is application activation, and the activation serial number of the device to be activated is obtained from the activation library according to the device identification of the device to be activated; the activation serial number is used to activate the corresponding device, and the activation library is used to store each device identification and the activation serial number corresponding to each device identification;

[0120] The activation serial number is sent to the activation terminal, so that the activation terminal sends the activation serial number to the device to be activated through the Bluetooth connection between the activation terminal and the device to be activated.

[0121] In another possible implementation, the activation method is remote control activation, and the activation serial number of the device to be activated is obtained from the activation library according to the device identification of the device to be activated; the activation serial number is used to activate the corresponding device, and the activation library is used to store each device identification and the activation serial number corresponding to each device identification;

[0122] An activation serial number and a first instruction are sent to the activation terminal; the first instruction is used to instruct the user to input the activation serial number into the activation remote controller to activate the device to be activated.

[0123] In another possible implementation, after the device to be activated is activated according to the activation method, if the first response information is received, the device status of the device to be activated is updated to activated; the first response information is sent by the activation terminal after the activation of the device to be activated is completed;

[0124] Record activation information of the device to be activated;

[0125] The activation information includes at least one of the following:

[0126] Activation method;

[0127] Activation time;

[0128] Activate location.

[0129] In yet another possible implementation, the activation request further includes a terminal identifier of the activation terminal;

[0130] Determine the terminal identification of the activated terminal;

[0131] If it is determined that the terminal whitelist has a terminal identifier, the device identifier of the device to be activated is obtained from the activation request; the terminal whitelist is used to record the activated terminals that are allowed to be activated.

[0132] In an embodiment of the present application, an electronic device (computer device / equipment / system) is provided, including a memory, a processor, and a computer program stored in the memory, and the processor executes the above-mentioned computer program to implement the steps of the method for identifying the device activation mode. Compared with the related art, it can be realized: by obtaining the device identification of the device to be activated carried by the activation request when receiving the activation request, and determining the first code representing the activation type of the main controller and the second code representing the activation type of the communication module corresponding to the device to be activated according to the device identification and the correspondence between each device identification and the first code and the second code, and then determining the corresponding activation mode according to the first code and the second code of the device to be activated, so that the device to be activated can be activated according to the corresponding activation mode. By saving the correspondence between the first code representing the activation type of the main controller and the second code representing the activation type of the communication module and the device identification during the production of the device, the confusion of the equipment production material management caused by the change of production materials is avoided, and different combinations of the first code and the second code are pre-defined to correspond to different activation modes, so that when the activation type of the main controller and the activation type of the communication module change, the activation mode of the device to be activated can also be accurately identified.

[0133] In an alternative embodiment, an electronic device is provided, such as Figure 5 As shown, Figure 5 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0134] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0135] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0136] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.

[0137] The memory 4003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.

[0138] Among them, the electronic equipment package may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., as well as fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0139] The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented. Compared with the prior art, it can be implemented as follows: when receiving an activation request, the device identification of the device to be activated carried by the activation request is obtained, and according to the device identification and the correspondence between each device identification and the first code and the second code, the first code representing the activation type of the main controller and the second code representing the activation type of the communication module corresponding to the device to be activated are determined, and then the corresponding activation mode is determined according to the first code and the second code of the device to be activated, so that the device to be activated can be activated according to the corresponding activation mode. By saving the correspondence between the first code representing the activation type of the main controller and the second code representing the activation type of the communication module and the device identification during the production of the device, the confusion of the equipment production material management caused by the change of production materials is avoided, and different combinations of the first code and the second code are pre-defined to correspond to different activation modes, so that when the activation type of the main controller and the activation type of the communication module change, the activation mode of the device to be activated can also be accurately identified.

[0140] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0141] The present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the above method embodiments when executed by a processor. Compared with the prior art, it can achieve:

[0142] By obtaining the device identification of the device to be activated carried in the activation request upon receiving the activation request, determining the first code representing the activation type of the main controller and the second code representing the activation type of the communication module corresponding to the device to be activated according to the device identification and the correspondence between each device identification and the first code and the second code, and then determining the corresponding activation method according to the first code and the second code of the device to be activated, the device to be activated can be activated according to the corresponding activation method. By saving the correspondence between the first code representing the activation type of the main controller and the second code representing the activation type of the communication module and the device identification during the production of the device, confusion in the management of equipment production materials caused by changes in production materials is avoided, and different combinations of the first code and the second code corresponding to different activation methods are pre-defined, so that when the activation type of the main controller and the activation type of the communication module change, the activation method of the device to be activated can also be accurately identified.

[0143] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.

[0144] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.

[0145] The above are only optional implementation methods for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.

Claims

1. A method for identifying a device activation mode, characterized in that: Applied to a server, the method comprises: Receiving an activation request sent by the activation terminal, and obtaining a device identification of the device to be activated from the activation request; According to the device identification, obtaining the first code and the second code of the device to be activated from the device library; the device library is used to store each device identification and the first code and the second code corresponding to each device identification respectively; the first code is used to characterize the activation type of the main controller of the corresponding device, and the second code is used to characterize the activation type of the communication module of the corresponding device; An activation mode of the device to be activated is determined according to the first code and the second code of the device to be activated.

2. The method according to claim 1, characterized in that The determining, according to the first code and the second code of the device to be activated, an activation mode of the device to be activated includes: According to the first code and the second code of the device to be activated, obtaining an activation code of the device to be activated from a code library; the code library is used to store each activation code and the first code and the second code corresponding to each activation code, respectively, and different activation codes are used to represent different activation modes; The activation mode represented by the activation code of the device to be activated is used as the activation mode of the device to be activated.

3. The method according to claim 1, characterized in that: After determining that the activation mode of the device to be activated is application activation, the method further includes: According to the device identification of the device to be activated, an activation serial number of the device to be activated is obtained from an activation library; the activation serial number is used to activate the corresponding device, and the activation library is used to store each device identification and the activation serial number corresponding to each device identification; The activation serial number is sent to the activation terminal, so that the activation terminal sends the activation serial number to the device to be activated through the Bluetooth connection between the activation terminal and the device to be activated.

4. The method according to claim 1, characterized in that After determining that the activation mode of the device to be activated is remote control activation, the method includes: According to the device identification of the device to be activated, an activation serial number of the device to be activated is obtained from an activation library; the activation serial number is used to activate the corresponding device, and the activation library is used to store each device identification and the activation serial number corresponding to each device identification; The activation serial number and a first instruction are sent to the activation terminal; the first instruction is used to instruct the user to input the activation serial number into the activation remote controller to activate the device to be activated.

5. The method according to claim 1, characterized in that The method further comprises: activating the device to be activated according to the activation method; If the first response information is received, the device status of the device to be activated is updated to activated; the first response information is sent by the activation terminal after the activation of the device to be activated is completed; Recording activation information of the device to be activated; The activation information includes at least one of the following: Activation method; Activation time; Activate location.

6. The method according to claim 1, characterized in that The activation request also includes the terminal identification of the activation terminal; The receiving an activation request sent by the activation terminal, and obtaining a device identification of the device to be activated from the activation request, includes: Determining a terminal identification of the activated terminal; If it is determined that the terminal whitelist contains the terminal identifier, the device identifier of the device to be activated is obtained from the activation request; the terminal whitelist is used to record the activated terminals that are allowed to be activated.

7. A server, characterized in that: include: A receiving module, configured to receive an activation request sent by an activation terminal, and obtain a device identification of a device to be activated from the activation request; an acquisition module, configured to acquire, according to the device identification, a first code and a second code of the device to be activated from a device library; the device library is configured to store each device identification and a first code and a second code respectively corresponding to each device identification; the first code is configured to characterize an activation type of a main controller of the corresponding device, and the second code is configured to characterize an activation type of a communication module of the corresponding device; The determination module is used to determine the activation mode of the device to be activated according to the first code and the second code of the device to be activated.

8. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.