Screenless device license activation method, system, electronic device and storage medium

By detecting the activation status of the screenless device and switching to debug mode, and activate the screenless device in combination with the license activation code, the problem of difficulty in activation of the screenless device is solved and effective activation of the screenless device is achieved.

CN119760671APending Publication Date: 2025-04-04深圳开鸿数字产业发展有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411870906.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The prior art is difficult to activate a license for screenless devices and cannot be applied to devices lacking display screens.

Method used

The test device connected to the screenless device detects its activation status information, switches to debug mode if it is not activated, and activates the device in debug mode based on the license activation code.

Benefits of technology

The license activation of screenless devices is realized, the problem of difficulty in activation of screenless devices is solved, and a method to replace the activation process of screenless devices is provided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119760671A_ABST
    Figure CN119760671A_ABST
Patent Text Reader

Abstract

The present application discloses a method, system, electronic device and storage medium for activating a screenless device license, and relates to the technical field of license activation. The disclosed screenless device license activation method includes: in response to an activation status acquisition instruction, acquiring activation status information of the screenless device, and detecting whether the activation status information indicates that the screenless device is not activated; when it is detected that the activation status information indicates that the screenless device is not activated, switching the screenless device to a debugging mode through a status debugging instruction; acquiring a license activation code, and activating the license for the screenless device in the debugging mode based on the license activation code. The technical solution of the present application aims to solve the technical problem of how to activate a license for a screenless device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of license activation technology, and in particular to a method, system, electronic device, and storage medium for activating licenses for screenless devices. Background Technology

[0002] License activation is a necessary condition for unlocking the full functionality of software or services; therefore, for new devices, license activation is an indispensable step.

[0003] Typically, activating a license requires determining whether the device is already activated based on information displayed on its screen, allowing for license activation even when the device is not yet activated. However, this method is designed for devices with screens and is difficult to apply to devices without screens.

[0004] Therefore, how to activate the license for screenless devices is a technical problem that needs to be solved by those skilled in the art. Summary of the Invention

[0005] The main purpose of this application is to provide a method, system, electronic device, and storage medium for activating licenses for screenless devices, aiming to solve the technical problem of how to activate licenses for screenless devices.

[0006] To achieve the above objectives, this application proposes a method for activating a license for a screenless device, wherein the method is applied to a test device connected to a screenless device; the method includes:

[0007] In response to the activation status acquisition command, the activation status information of the screenless device is acquired, and it is detected whether the activation status information indicates that the screenless device is not activated;

[0008] When the activation status information indicates that the screenless device is not activated, the screenless device is switched to debug mode via a status debugging command;

[0009] Obtain the license activation code and activate the license for the screenless device in the debug mode based on the license activation code.

[0010] In one embodiment, the step of detecting whether the activation status information indicates that the screenless device is not activated includes:

[0011] Obtain the preset keywords in the inactive state and check whether the keywords exist in the activation state information;

[0012] If the keyword phrase is detected in the activation status information, it is determined that the activation status information indicates that the screenless device is not activated;

[0013] If the keyword phrase is not detected in the activation status information, it is determined that the activation status information indicates that the screenless device has been activated.

[0014] In one embodiment, the method further includes:

[0015] In response to the default command, enter the command-line interactive tool;

[0016] The step of obtaining the device serial number of the screenless device in response to the serial number acquisition instruction includes:

[0017] The command-line interactive tool receives a serial number retrieval command and, in response to the command, retrieves the device serial number of the screenless device.

[0018] In one embodiment, after the step of activating the license of the screenless device in the debug mode based on the device serial number and the license activation code, the method further includes:

[0019] Return to the step of responding to the activation status acquisition instruction to obtain the activation status information of the screenless device, and when the activation status information indicates that the screenless device has been activated, output the activation success information on the preset page.

[0020] In one embodiment, the method further includes:

[0021] In response to the serial number acquisition command, the device serial number of the screenless device is acquired;

[0022] The step of activating the license for the screenless device in debug mode based on the license activation code includes:

[0023] The license is activated for the screenless device in the debug mode based on the license activation code and the device serial number.

[0024] In one embodiment, the step of activating the license for the screenless device in debug mode based on the device serial number and the license activation code includes:

[0025] A connection request is sent to a preset server, and communication is established between the server and the server based on the connection request, wherein the server is used to activate the screenless device;

[0026] The device serial number is transmitted to the server, and the response information transmitted by the server based on the device serial number is received.

[0027] When the response information indicates that the device serial number verification is successful, the authorization information in the response information is transmitted to the screenless device so that the screenless device in the debugging state can activate the license based on the authorization information.

[0028] In one embodiment, the activation status acquisition command is / bin / khliccli -i, and the status debugging command is hdc shell param set persist.license.key.debug 1.

[0029] Furthermore, to achieve the above objectives, this application also proposes a screenless device license activation system, which is applied to a test device connected to a screenless device; the screenless device license activation system includes:

[0030] The activation information acquisition module is used to respond to the activation status acquisition command, acquire the activation status information of the screenless device, and detect whether the activation status information indicates that the screenless device is not activated.

[0031] The state switching module is used to switch the screenless device to debug mode by means of a state debugging command when the activation state information indicates that the screenless device is not activated.

[0032] The device activation module is used to obtain a license activation code and activate the license for the screenless device in the debugging mode based on the license activation code.

[0033] In addition, to achieve the above objectives, this application also proposes an electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the screenless device license activation method described above.

[0034] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the screenless device license activation method described above.

[0035] In this embodiment, the application obtains the activation status information of the screenless device in response to an activation status acquisition command, and detects whether the activation status information indicates that the screenless device is not activated. This can be determined by a test device connected to the screenless device. Then, when the activation status information indicates that the screenless device is not activated, a status debugging command is used to switch the screenless device to debug mode. This method replaces the operation of opening the USB virtual serial port required for license activation of a device with a screen. Then, a license activation code can be obtained, and the license is activated for the screenless device in debug mode based on the license activation code. Therefore, this application can achieve the effect of license activation for screenless devices. Attached Figure Description

[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0037] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0038] Figure 1 This is a flowchart illustrating an embodiment of the screenless device license activation method in this application.

[0039] Figure 2 This is a schematic diagram of device connection according to an embodiment of the screenless device license activation method of this application;

[0040] Figure 3 This is a schematic diagram of the activation process of one embodiment of the screenless device license activation method of this application;

[0041] Figure 4 This is a schematic diagram of the module structure of the screenless device license activation system according to an embodiment of this application;

[0042] Figure 5 This is a schematic diagram of the hardware operating environment involved in the screenless device license activation method in this application embodiment.

[0043] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0044] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0045] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0046] License activation is a necessary condition for unlocking the full functionality of software or services; therefore, for new devices, license activation is an indispensable step.

[0047] Typically, activating a license requires determining whether the device is already activated based on information displayed on its screen, allowing for license activation even when the device is not yet activated. However, this method is designed for devices with screens and is difficult to apply to devices without screens.

[0048] Therefore, how to activate the license for screenless devices is a technical problem that needs to be solved by those skilled in the art.

[0049] In this embodiment, the application obtains the activation status information of the screenless device in response to an activation status acquisition command, and detects whether the activation status information indicates that the screenless device is not activated. This can be determined by a test device connected to the screenless device. Then, when the activation status information indicates that the screenless device is not activated, a status debugging command is used to switch the screenless device to debug mode. This method replaces the operation of opening the USB virtual serial port required for license activation of a device with a screen. Then, a license activation code can be obtained, and the license is activated for the screenless device in debug mode based on the license activation code. Therefore, this application can achieve the effect of license activation for screenless devices.

[0050] It should be noted that the device executing the screenless device license activation method of this application can be an electronic device with data processing, network communication, and program execution functions, such as a tablet computer or personal computer. The following uses a computer as an example to illustrate various embodiments of the screenless device license activation method of this application.

[0051] Based on this, this application provides a method for activating a screenless device license, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the screenless device license activation method of this application.

[0052] In this embodiment, the test device connected to the screenless device is a computer, and the screenless device license activation method includes steps S10 to S30:

[0053] Step S10: In response to the activation status acquisition instruction, acquire the activation status information of the screenless device, and detect whether the activation status information indicates that the screenless device is not activated;

[0054] It is understandable that activating a license requires associating the device to be activated with a server used for license activation, enabling license activation through communication between the server and the device. However, for devices without a display screen, it is difficult to establish a connection with the server through on-screen operations. Therefore, in this application, a test device is used to establish a connection with the device to be activated, thereby enabling communication between the device and the server via the test device.

[0055] Please refer to Figure 2 , Figure 2 This is a schematic diagram of device connection according to one embodiment of the screenless device license activation method of this application. It is understood that since the screenless device does not have a screen, communication between the screenless device and the testing device can be established using methods such as HDMI connection, VGA connection, and DVI connection. It should be noted that the testing device is a device with a screen.

[0056] After establishing communication between the screenless device and the test device, the test device can receive activation status acquisition commands from the user. These commands can be triggered by a preset button on a specific page of the driver program corresponding to the screenless device. Then, based on the activation status information transmitted by the screenless device, it can be determined whether the screenless device is activated.

[0057] For example, when a "Query Activation Status" button exists on a specific page of the driver, the user can send an activation status retrieval command to the computer by clicking the button, and then obtain the activation status information of the screenless device based on the command.

[0058] In one feasible implementation, step S10 above includes:

[0059] Step S101: Obtain the preset keywords corresponding to the inactive state, and detect whether the keywords exist in the activation state information;

[0060] It's understandable that the activation status information output by a screenless device is fixed; that is, the activation status information is the same whether the device is activated or inactive, but the activation status information differs between the two states. Therefore, by using the known activation status information of an inactive device as a keyword, and through character search or matching, the presence of this keyword in the activation status information of the device to be activated can be detected, thus determining whether the device is activated or inactive.

[0061] Step S102: If the keyword phrase is detected in the activation status information, it is determined that the activation status information indicates that the screenless device is not activated;

[0062] Step S103: If the keyword phrase is not detected in the activation status information, it is determined that the activation status information indicates that the screenless device has been activated.

[0063] In this embodiment, the method of determining whether the device to be activated is already activated by using activation status information can avoid the problem of repeatedly activating already activated devices.

[0064] Step S20: When the activation status information indicates that the screenless device is not activated, the screenless device is switched to debug mode by a status debugging command.

[0065] It should be noted that during the activation process of devices with screens, settings such as the "USB virtual serial port switch" need to be turned on to allow data to be written upon successful activation. However, for screenless devices, switches like the "USB virtual serial port switch" cannot be turned on via screen operation. Therefore, screenless devices need to be switched to debug mode to facilitate data writing during license activation.

[0066] Step S30: Obtain the license activation code and activate the license for the screenless device in the debugging mode based on the license activation code.

[0067] In this embodiment, specific information can be entered on a computer to obtain a license activation code, which can then be used to activate the license of a screenless device in debug mode.

[0068] In one feasible implementation, the screenless device license activation method further includes:

[0069] Step S100: In response to the serial number acquisition instruction, obtain the device serial number of the screenless device;

[0070] It should be noted that the serial number retrieval command is used to obtain the device serial number, which is a unique code used to identify and track the device.

[0071] Based on this, step S30 above includes:

[0072] Step S301: Activate the license for the screenless device in the debugging mode based on the license activation code and the device serial number.

[0073] Understandably, when activating a license, the server needs to determine whether the device has the permission to activate the license based on the serial number. Therefore, the license can be activated for screenless devices in debug mode based on the license activation code and the device serial number.

[0074] Please refer to Figure 3 In one feasible implementation, step S301 further includes:

[0075] Step S3011: Send a connection request to a preset server and establish communication with the server based on the connection request, wherein the server is used to activate the screenless device;

[0076] Step S3012: Transmit the device serial number to the server and receive the response information transmitted by the server based on the device serial number;

[0077] Step S3013: When the response information indicates that the device serial number verification is successful, the authorization information in the response information is transmitted to the screenless device so that the screenless device in the debugging state can activate the license based on the authorization information.

[0078] Understandably, after obtaining the device serial number of the screenless device, the computer can transmit the serial number to the server. The server then uses the serial number to determine if the screenless device has the necessary activation license. Once the server identifies the device's activation license authorization, it will send a response message to the computer. This response message may include: a message indicating successful authorization verification, and information to be written to the screenless device (i.e., authorization information), where the authorization information identifies the screenless device as activated. Alternatively, the response message may include a message indicating unsuccessful authorization verification. The computer can then use this response message to determine whether further communication with the screenless device is necessary to transmit the authorization information to it.

[0079] In this embodiment, if the permission verification is successful, the authorization information can be written to a preset storage area of ​​the screenless device, thereby unlocking all functions of the software or service based on the written data. If the permission verification fails, a verification failure message can be output on the computer for the user to check.

[0080] In one feasible implementation, the activation status acquisition command is / bin / khliccli -i, and the status debugging command is hdc shell param set persist.license.key.debug 1.

[0081] In this embodiment, this application obtains the activation status information of the screenless device in response to an activation status acquisition command, and detects whether the activation status information indicates that the screenless device is not activated. This can be determined by a test device connected to the screenless device. Then, when the activation status information indicates that the screenless device is not activated, a status debugging command is used to switch the screenless device to debug mode. This method replaces the operation of opening the USB virtual serial port required for license activation of the device with a screen. Then, a license activation code can be obtained, and the license is activated for the screenless device in debug mode based on the license activation code. Therefore, this application can achieve the effect of license activation for screenless devices.

[0082] Furthermore, based on the first embodiment of the screenless device license activation method of this application described above, a second embodiment of the screenless device license activation method of this application is proposed.

[0083] In one feasible implementation, after step S301 above, the method further includes:

[0084] Step 200: Return to the step of responding to the activation status acquisition instruction to obtain the activation status information of the screenless device, and when the activation status information indicates that the screenless device has been activated, output activation success information on a preset page.

[0085] Understandably, the activation success message is a preset message used to notify the user that the screenless device currently connected to the test device has been successfully activated.

[0086] In this embodiment, if the authorization information is transmitted to the screenless device for writing, the screenless device will fail to activate its license if the writing process fails. Therefore, after transmitting the authorization information to the screenless device for activation, it is necessary to obtain the activation status information of the screenless device again to check whether the activation was successful. If the screenless device is detected as not being activated, the process can return to steps S20 and S30. If activation is successful, activation success information can be output on a preset page of the test device.

[0087] In one feasible embodiment, the method further includes:

[0088] Step S300: In response to a preset command, enter the command-line interactive tool;

[0089] It should be noted that the default command is the command to enter the command-line interactive tool. A command-line interactive tool is a tool that allows you to interact with a computer system or software by entering commands in a command-line interface.

[0090] Based on this, step S100 above also includes:

[0091] Step S1001: Receive the serial number acquisition instruction through the command line interactive tool, and in response to the serial number acquisition instruction, acquire the device serial number of the screenless device.

[0092] It should be noted that, in addition to obtaining the device serial number through the command-line interactive tool, activation status information and status debugging commands can also be obtained through the command-line interactive tool.

[0093] It is understood that in the first embodiment described above, user interaction is achieved through a specific page within the driver program. In this embodiment, user interaction can also be achieved through a command-line interactive tool, thereby enabling license activation without a driver and improving the convenience of this application.

[0094] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the screenless device license activation method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0095] This application also provides a screenless device license activation system, which is applied to a test device connected to a screenless device; please refer to... Figure 4 The screenless device license activation system includes:

[0096] The activation information acquisition module 10 is used to acquire the activation status information of the screenless device in response to the activation status acquisition command, and to detect whether the activation status information indicates that the screenless device is not activated.

[0097] The state switching module 20 is used to switch the screenless device to the debugging mode by means of a state debugging command when the activation state information indicates that the screenless device is not activated.

[0098] The device activation module 30 is used to obtain a license activation code and activate the license of the screenless device in the debugging mode based on the license activation code.

[0099] In one embodiment, the activation information acquisition module 10 is further configured to:

[0100] Obtain the preset keywords in the inactive state and check whether the keywords exist in the activation state information;

[0101] If the keyword phrase is detected in the activation status information, it is determined that the activation status information indicates that the screenless device is not activated;

[0102] If the keyword phrase is not detected in the activation status information, it is determined that the activation status information indicates that the screenless device has been activated.

[0103] In one embodiment, the screenless device license activation system further includes:

[0104] The serial number acquisition module is used to acquire the device serial number of the screenless device in response to the serial number acquisition command;

[0105] Based on this, the aforementioned device activation module 30 is also used for:

[0106] The license is activated for the screenless device in the debug mode based on the license activation code and the device serial number.

[0107] In one embodiment, the device activation module 30 is further configured to:

[0108] A connection request is sent to a preset server, and communication is established between the server and the server based on the connection request, wherein the server is used to activate the screenless device;

[0109] The device serial number is transmitted to the server, and the response information transmitted by the server based on the device serial number is received.

[0110] When the response information indicates that the device serial number verification is successful, the authorization information in the response information is transmitted to the screenless device so that the screenless device in the debugging state can activate the license based on the authorization information.

[0111] In one embodiment, the screenless device license activation system further includes:

[0112] The activation success notification module is used to return to the step of executing the activation status acquisition instruction to obtain the activation status information of the screenless device, and when the activation status information indicates that the screenless device has been activated, output the activation success message on a preset page.

[0113] In one embodiment, the screenless device license activation system further includes:

[0114] The command-line response module is used to respond to preset commands and enter the command-line interactive tool;

[0115] Based on this, the aforementioned serial number acquisition module is also used for:

[0116] The command-line interactive tool receives a serial number retrieval command and, in response to the command, retrieves the device serial number of the screenless device.

[0117] The screenless device license activation system provided in this application, employing the screenless device license activation method described in the above embodiments, can solve the technical problem of how to activate licenses for screenless devices. Compared with the prior art, the beneficial effects of the screenless device license activation system provided in this application are the same as those of the screenless device license activation method provided in the above embodiments, and other technical features of the screenless device license activation system are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0118] This application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the screenless device license activation method in Embodiment 1 above.

[0119] The following is for reference. Figure 5 It shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of this application. Figure 5 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0120] like Figure 5 As shown, the electronic device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the electronic device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. While electronic devices with various systems are shown in the figures, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.

[0121] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0122] The electronic device provided in this application, employing the screenless device license activation method described in the above embodiments, can solve the technical problem of how to activate a license for a screenless device. Compared with the prior art, the beneficial effects of the electronic device provided in this application are the same as those of the screenless device license activation method provided in the above embodiments, and other technical features of this electronic device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0123] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0124] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0125] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the screenless device license activation method in the above embodiments.

[0126] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0127] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.

[0128] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by an electronic device, the electronic device: responds to an activation status acquisition instruction, acquires activation status information of the screenless device, and detects whether the activation status information indicates that the screenless device is not activated; when the activation status information indicates that the screenless device is not activated, switches the screenless device to debug mode through a status debugging instruction; acquires a license activation code, and activates the license for the screenless device in debug mode based on the license activation code.

[0129] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0130] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0131] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0132] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described screenless device license activation method, thereby solving the technical problem of how to activate a license for a screenless device. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the screenless device license activation method provided in the above embodiments, and will not be repeated here.

[0133] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A method for activating a screenless device license, characterized in that: The screenless device license activation method is applied to a test device connected to a screenless device; The screenless device license activation method comprises: In response to the activation status acquisition instruction, acquiring activation status information of the screenless device, and detecting whether the activation status information indicates that the screenless device is not activated; When it is detected that the activation status information indicates that the screenless device is not activated, switching the screenless device to a debugging mode through a status debugging instruction; A license activation code is obtained, and a license is activated for the screenless device in the debugging mode based on the license activation code.

2. The screenless device license activation method according to claim 1, characterized in that: The step of detecting whether the activation status information indicates that the screenless device is not activated includes: Acquire a preset keyword or phrase corresponding to the inactive state, and detect whether the keyword or phrase exists in the active state information; If it is detected that the key words and phrases exist in the activation status information, determining that the activation status information indicates that the screenless device is not activated; If it is detected that the key word or phrase does not exist in the activation status information, it is determined that the activation status information indicates that the screenless device has been activated.

3. The screenless device license activation method according to claim 1, characterized in that: The method further comprises: In response to the serial number acquisition instruction, acquiring the device serial number of the screenless device; The step of activating the license for the screenless device in the debugging mode based on the license activation code comprises: A license is activated for the screenless device in the debugging mode based on the license activation code and the device serial number.

4. The method for activating a screenless device license according to claim 3, wherein: The step of activating the license for the screenless device in the debugging mode based on the device serial number and the license activation code comprises: Transmitting a connection request to a preset server, and establishing communication with the server based on the connection request, wherein the server is used to activate the screenless device; transmitting the device serial number to the server, and receiving response information transmitted by the server based on the device serial number; When it is detected that the response information indicates that the device serial number verification is successful, the authorization information in the response information is transmitted to the screenless device, so that the screenless device in the debugging state can activate the license based on the authorization information.

5. The screenless device license activation method according to claim 3, characterized in that: After the step of activating the license for the screenless device in the debugging mode based on the device serial number and the license activation code, the method further includes: Return to the step of acquiring the activation status information of the screenless device in response to the activation status acquisition instruction, and output activation success information on a preset page when it is detected that the activation status information indicates that the screenless device has been activated.

6. The screenless device license activation method according to claim 3, characterized in that: The method further comprises: In response to a preset instruction, enter a command line interactive tool; The step of obtaining the device serial number of the screenless device in response to the serial number obtaining instruction includes: A serial number acquisition instruction is received through the command line interaction tool, and in response to the serial number acquisition instruction, the device serial number of the screenless device is acquired.

7. The screenless device license activation method according to claim 1, characterized in that: The activation status acquisition instruction is / bin / khliccl ii, and the status debugging instruction is hdc shel l param setpersist.license.key.debug 1.

8. A screenless device license activation system, characterized in that: The screenless device license activation system is applied to a test device connected to a screenless device; The screenless device license activation system includes: an activation information acquisition module, configured to acquire activation status information of the screenless device in response to an activation status acquisition instruction, and detect whether the activation status information indicates that the screenless device is not activated; A state switching module, configured to switch the screenless device to a debugging mode through a state debugging instruction when it is detected that the activation state information indicates that the screenless device is not activated; The device activation module is used to obtain a license activation code and activate the license of the screenless device in the debugging mode based on the license activation code.

9. An electronic device, characterized in that: The electronic device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the screenless device license activation method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the screenless device license activation method according to any one of claims 1 to 7 are implemented.