Hardware license use condition real-time visualization method and device, equipment and storage medium
By obtaining hardware license information and computer information, monitoring USB device changes, and updating the device information database, real-time visualization of hardware license usage display is realized, solving the problem of unintuitive usage and management chaos caused by paper registration forms, and improving the problem of improvement of The efficiency of hardware license usage.
Patent Information
- Application Number
- CN202411333766.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-09-24
AI Technical Summary
The use of hardware licenses in the prior art is recorded and updated through paper registration forms, resulting in unintuitive usage and confusing management, resulting in idle hardware licenses and inability to find urgently needed use in a timely manner, resulting in wasting time and resources.
By obtaining the license information and computer information of the hardware license, adding identification information and entering the device information library, monitoring the change in the number of USB devices, determining whether the changing device is a hardware license, and updating the device information library based on the license information, and visualizing the display in real time Hardware license usage.
Real-time usage of hardware licenses is realized, the efficiency of hardware licenses is improved, and the idle hardware licenses are avoided and resource waste isted.
Smart Images

Figure CN119293755A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of license management, and in particular to a method, device, equipment and storage medium for real-time visualization of hardware license usage. Background Art
[0002] Automobile R&D and manufacturing is a long industrial chain. In this process, many corresponding professional software will be used. Among these professional software, there are free and open source ones, but many professional software need to purchase licenses regularly and pay for use, and the prices are generally high. Many licenses are hardware licenses (also called dongles) using USB ports. The appearance is similar to that of USB flash drives. They need to be inserted into the computer before the software can be used. Considering the complexity of the automobile industry, there are many types of professional software involved. The number of hardware licenses of the same type from the same company in a department may be as high as more than 20. The use and management of hardware licenses are also relatively cumbersome. At present, most of them use paper hardware license registration forms. However, in actual use, there are problems such as unreasonable design of paper registration forms, unclear information, users not filling in in time, users filling in irregularly, paper registration forms cannot update the actual use of hardware licenses in time, and hardware license use is not intuitive. As a result, some hardware licenses are actually idle, but the hardware licenses that are urgently needed cannot be found in time, resulting in a waste of time and resources.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of this application is to provide a method, device, equipment and storage medium for real-time visualization of hardware license usage, aiming to solve the technical problem in the prior art that the usage of hardware licenses is not intuitive and the management is confusing because the usage of hardware licenses is recorded or updated in paper registration forms.
[0005] To achieve the above purpose, the present application proposes a real-time visualization method for hardware license usage, which includes:
[0006] Acquire license information of the hardware license and computer information corresponding to the computer, add identification information to the license information, and enter the computer information and the hardware license information with the added identification information into a device information library;
[0007] Acquire a monitoring result of the number of USB devices of the computer, and when the monitoring result changes, determine whether the changed USB device is the hardware license;
[0008] When the changed device is the hardware license, determining the license information of the hardware license, and updating the device information library according to the license information to obtain a changed device information library;
[0009] The hardware license usage information in the changed device information base is visualized and displayed.
[0010] In one embodiment, the steps of obtaining license information of the hardware license and computer information corresponding to the computer, adding identification information to the license information, and entering the computer information and the hardware license information with the added identification information into a device information library include:
[0011] Acquire license information of the hardware license, and generate manufacturer information and product information according to the license information;
[0012] Generate unique license identification information according to the manufacturer information and the product information;
[0013] Adding numbering information, classification information and remark information to the license information, and obtaining entry information of the hardware license according to the unique license identification information, the numbering information, the classification information and the remark information;
[0014] Obtain computer information corresponding to the computer, and generate computer entry information according to the computer number, unique computer identification information, computer name and location information in the computer information;
[0015] The input information of the hardware license and the input information of the computer are input into a device information library.
[0016] In one embodiment, the step of entering the entry information of the hardware license and the entry information of the computer into the device information library includes:
[0017] Generate a license information table and a computer information table according to the input information of the hardware license and the input information of the computer;
[0018] Determine the license primary key value of the license information table and the primary key value of the computer information table;
[0019] Entering the input information of the hardware license and the input information of the computer into the license information table and the computer information table respectively;
[0020] The license information table and the computer information table are entered into a device information library.
[0021] In one embodiment, the step of obtaining a monitoring result of the number of USB devices of the computer and determining whether the changed USB device is the hardware license when the monitoring result changes includes:
[0022] Obtaining a monitoring result of the number of USB devices of the computer, and when the monitoring result changes, obtaining a list of devices after the change, and simultaneously tracing back the list of devices before the change;
[0023] Compare the device list after the change with the device list before the change to determine the changed USB device information;
[0024] The unique license identification information of the changed USB device information is determined, and the unique license identification information is compared with the unique license identification information of the hardware license to determine whether the changed USB device information is the hardware license.
[0025] In one embodiment, when the changed device is the hardware license, determining the license information of the hardware license, and updating the device information library according to the license information to obtain the changed device information library comprises:
[0026] When the changed device is the hardware license and the change type is new insertion, obtaining unique license identification information of the changed device, and obtaining license information according to the unique license information;
[0027] Acquire unique computer identification information of a local computer, and acquire computer parameters of the computer according to the unique computer identification information;
[0028] The user information is received, and the device information base is updated according to the license information, the computer parameters and the user information to obtain a changed device information base.
[0029] In one embodiment, when the changed device is the hardware license, determining the license information of the hardware license, and updating the device information library according to the license information, the step of obtaining the changed device information library further includes:
[0030] When the changed device is the hardware license and the change type is unplugging, acquiring unique license identification information of the changed device, and obtaining license information according to the unique license information;
[0031] The corresponding computer parameters and user information are determined according to the unique computer identification information, and the computer parameters and user information are updated and synchronized to a device information library to obtain a changed device information library.
[0032] In one embodiment, the step of visually displaying the hardware license usage information in the changed device information library includes:
[0033] generating a query instruction according to the license usage information in the change information library;
[0034] Determine usage information of the target license according to the query instruction;
[0035] The usage information of the target license is rendered according to a preset template for visual display.
[0036] In addition, to achieve the above purpose, the present application also proposes a real-time visualization device for hardware license usage, the real-time visualization device for hardware license usage comprising:
[0037] An information entry module, used to obtain license information of the hardware license and computer information corresponding to the computer, add identification information to the license information, and enter the computer information and the hardware license information with the added identification information into a device information library;
[0038] A device detection module, used for obtaining a monitoring result of the number of USB devices of the computer, and determining whether the changed USB device is the hardware license when the monitoring result changes;
[0039] An information updating module, used for determining the license information of the hardware license when the changed device is the hardware license, and updating the device information library according to the license information to obtain a changed device information library;
[0040] The visualization module is used to perform visualization according to the hardware license usage information in the changed device information library.
[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes a real-time visualization device for hardware license usage, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the real-time visualization method for hardware license usage as described above.
[0042] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the real-time visualization method of hardware license usage as described above are implemented.
[0043] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the real-time visualization method for hardware license usage as described above are implemented.
[0044] One or more technical solutions proposed in the present application have at least the following technical effects: by acquiring the license information of the hardware license and the computer information corresponding to the computer, adding identification information to the license information, entering the computer information and the hardware license information with the identification information added into a device information library, obtaining the monitoring result of the number of USB devices of the computer, and when the monitoring result changes, determining whether the changed USB device is the hardware license, and when the changed device is the hardware license, determining the license information of the hardware license, updating the device information library according to the license information to obtain a changed device information library, and visually displaying the hardware license usage information in the changed device information library to display the usage of the hardware license in real time and improve the usage efficiency of the hardware license. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0047] Figure 1 A flowchart of a first embodiment of a method for real-time visualization of hardware license usage is provided for this application;
[0048] Figure 2 A database structure diagram provided for an embodiment of a method for real-time visualization of hardware license usage in this application;
[0049] Figure 3 A schematic diagram of basic computer information provided for an embodiment of a method for real-time visualization of hardware license usage in this application;
[0050] Figure 4 A schematic diagram of dongle basic information provided in accordance with an embodiment of a method for real-time visualization of hardware license usage in this application;
[0051] Figure 5 A schematic diagram of dongle usage information provided in accordance with an embodiment of a method for real-time visualization of hardware license usage in this application;
[0052] Figure 6 A visualization diagram of hardware license usage provided in accordance with an embodiment of a method for real-time visualization of hardware license usage in this application;
[0053] Figure 7 This is a schematic diagram of the module structure of a device for real-time visualization of hardware license usage according to an embodiment of the present application;
[0054] Figure 8 This is a schematic diagram of the device structure of the hardware operating environment involved in the real-time visualization method for hardware license usage in an embodiment of the present application.
[0055] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0056] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0057] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0058] The main solution of the embodiment of the present application is: obtaining the license information of the hardware license and the computer information corresponding to the computer, adding identification information to the license information, and entering the computer information and the hardware license information with the added identification information into the device information library; obtaining the monitoring result of the number of USB devices of the computer, and when the monitoring result changes, determining whether the changed USB device is the hardware license; when the changed device is the hardware license, determining the license information of the hardware license, updating the device information library according to the license information, and obtaining the changed device information library; and visually displaying the hardware license usage information in the changed device information library.
[0059] In this embodiment, for ease of description, the following description is made by taking a device for identifying and visualizing the use of a hardware license in real time as an execution subject.
[0060] Due to the existing technology for the use and management of hardware licenses, most of the current hardware license registration forms are paper-based. However, in actual use, there are problems such as unreasonable design of the paper registration form, incomplete information, users not filling out the form in time, users filling out the form in an irregular manner, the paper registration form cannot update the actual use of the hardware license in time, the hardware license use is not intuitive, and other hardware license management chaos, which results in some hardware licenses being actually idle, but the hardware licenses that are urgently needed cannot be found in time, resulting in a waste of time and resources.
[0061] The present application provides a solution to visualize the use of hardware licenses in real time. The use of hardware licenses can be displayed in real time in the form of a web page, including the function of the license, the number, the host name of the computer where the license is located, the location of the computer, and the name of the owner of the computer. When a hardware license is inserted into the computer, the data will be updated in time and displayed on the web page.
[0062] It can be seen from the above embodiments that the present application obtains the license information of the hardware license and the computer information corresponding to the computer, adds identification information to the license information, enters the computer information and the hardware license information with the identification information added into the device information library, obtains the monitoring result of the number of USB devices of the computer, and when the monitoring result changes, determines whether the changed USB device is the hardware license, and when the changed device is the hardware license, determines the license information of the hardware license, updates the device information library according to the license information to obtain the changed device information library, and performs a visual display according to the hardware license usage information in the changed device information library, displays the usage of the hardware license in real time, and improves the usage efficiency of the hardware license.
[0063] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a real-time visualization device for hardware license usage, etc. The following takes the real-time visualization device for hardware license usage as an example to illustrate this embodiment and the following embodiments.
[0064] Based on this, the embodiment of the present application provides a real-time visualization method for hardware license usage, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the real-time visualization method for hardware license usage in this application.
[0065] In this embodiment, the method for real-time visualization of hardware license usage includes steps S10 to S40:
[0066] Step S10, obtaining license information of the hardware license and computer information corresponding to the computer, adding identification information to the license information, and entering the computer information and the hardware license information with the identification information added into a device information library.
[0067] It should be noted that the license information and computer information are inherent to the license and the computer and are unchangeable. The license information is stored in the license and the computer information is stored in the corresponding computer. The identification information is added later and is used to mark the information, such as the number and other information. The database is a database for storing license information and computer information.
[0068] In a specific implementation, the license information of the hardware license can be obtained, the manufacturer information and product information are generated according to the license information, the unique license identification information is generated according to the manufacturer information and the product information, numbering information, classification information and remark information are added to the license information, and the entry information of the hardware license is obtained according to the unique license identification information, the numbering information, the classification information and the remark information, the computer information corresponding to the computer is obtained, the computer entry information is generated according to the computer number, unique computer identification information, computer name and location information in the computer information, and the entry information of the hardware license and the computer are entered into the device information library. Generally speaking, there are many different USB devices on a computer. Although the hardware licenses will have numbers, these numbers are added later by humans and cannot be directly recognized by the computer. Therefore, a unique identifier of the hardware license that can be recognized by the computer is required. The present invention selects a combination of VID and PID as the unique identifier, represented by VP. The input information of the hardware license includes [VP, Number, Class, Notice], where VP is a string composed of VID and PID, which is used as the unique identifier to distinguish USB. Number is a number added later to facilitate identification and search for a hardware license. Class is the classification of the license, such as dSPACE hardware license and carmaker hardware license. Notice is a note used to further supplement and improve the information of the hardware license, such as further subdividing dSPACE hardware license into ControlDesk, CFD, ModelDesk, MotionDesk, and AutomationDesk. Since the hardware license information finally displayed on the web page also includes the computer where a specific license is located, the computer number, name, and location of the computer, the information of the computer using the software must be entered in advance. The computer input information includes [Com_Number, UUID, Com_name, Location], where UUID is mainly used as the unique identifier of the computer. After the information to be entered is clear, the corresponding table can be established in the database to store the data. This patent chooses to use the SQL database and creates a new database named dongles, whose structure is as follows Figure 2 As shown, the basic information of the computer is as follows Figure 3 As shown, the basic information of dongle is as follows Figure 4Then create two tables named dongle_base_info and com_base_info respectively. dongle_base_info is used to store the basic information of the hardware license [VP, Number, Class, Notice], with primary key = VP, and com_base_info is used to store the basic information of the computer [Com_Number, UUID, Com_name, Location], with primary key = UUID.
[0069] In a feasible implementation manner, the step of entering the entry information of the hardware license and the entry information of the computer into the device information library includes:
[0070] Generate a license information table and a computer information table according to the input information of the hardware license and the input information of the computer;
[0071] Determine the license primary key value of the license information table and the primary key value of the computer information table;
[0072] Entering the input information of the hardware license and the input information of the computer into the license information table and the computer information table respectively;
[0073] The license information table and the computer information table are entered into a device information library.
[0074] In the specific implementation, in order to visualize the use of hardware licenses in the future, it is also necessary to store the relevant use information of the hardware license in the database. Therefore, it is necessary to create a new table in the dongle database to record the real-time use information of the license. Here, a new table named dongle_where is created, and the input information includes [Number, Class, Notice, Free, Com_name, Location, user], and the primary key = Number. The above database creation and table specific codes are all in the dongle_show\mydata\tb_build.py file. Figure 5 As shown, the newly created table can reflect the usage information of dongle.
[0075] Step S20, obtaining a monitoring result of the number of USB devices of the computer, and when the monitoring result changes, determining whether the changed USB device is the hardware license.
[0076] It should be noted that the monitoring result of the number of USB devices on the computer includes the change in the number of USB devices on the current computer device, which may specifically describe the number of newly added devices and the number of reduced devices.
[0077] In a specific implementation, when monitoring the number of USB devices on a computer, the insertion signal or removal signal of the USB device can be monitored. When the insertion signal or removal signal is detected, the USB hardware record can be triggered to generate a monitoring result, and the identification information of the current USB device can be determined. The current identification information is compared with the record information of the dongle database to determine whether the currently inserted or unplugged USB device is a hardware license.
[0078] In a feasible implementation manner, the step of obtaining a monitoring result of the number of USB devices of the computer and determining whether the changed USB device is the hardware license when the monitoring result changes includes:
[0079] Obtaining a monitoring result of the number of USB devices of the computer, and when the monitoring result changes, obtaining a list of devices after the change, and simultaneously tracing back the list of devices before the change;
[0080] Compare the device list after the change with the device list before the change to determine the changed USB device information;
[0081] The unique license identification information of the changed USB device information is determined, and the unique license identification information is compared with the unique license identification information of the hardware license to determine whether the changed USB device information is the hardware license.
[0082] In a specific implementation, when the monitoring result of the number of USB devices of a computer is obtained, when it is determined that the monitoring result has changed, a feasible method is to determine the changed USB device list, and at the same time trace back the USB device list before the change, and compare the changed device list with the device list before the change, determine the changed USB device information, determine the unique license identification information of the changed USB device information, compare the unique license identification information with the unique license identification information of the hardware license, and determine whether the changed USB device information is a hardware license. Specifically, the usage of the hardware license can be added to dongle_base_info. When the basic information of the hardware license is entered into the dongle_base_info table in the dongle database, the usage of the hardware license is automatically added to the dongle_where table, [Number, Class, Notice, Free, Com_name, Location, user], Number, Class, Notice are the inherent information of the hardware license, equal to its value in dongle_base_info, Free = 1, Com_name, Location, user are all equal to None. Monitor the changes in the number of USB devices on the computer in real time, determine whether the plugged-in or unplugged USB device is a hardware license in the library, filter out the plugged-in or unplugged USB devices, obtain their VPs, and then traverse the VP column in the dongle_base_info table in the dongle database to determine whether the VP of the device is in the database; dongle_where data is updated in real time.
[0083] Step S30, when the changed device is the hardware license, determine the license information of the hardware license, and update the device information library according to the license information to obtain a changed device information library.
[0084] In a specific implementation, when the changed device is a hardware license, the license information of the hardware license can be determined, and the device information library can be updated according to the license information. When updating, it can be determined whether the change type of the current changed device is unplugged or inserted, and the information of the current hardware license is updated according to the change type. For example, when the available quantity corresponding to a certain license X in the database is 2 and the maximum quantity is 4, and the current license is inserted, the corresponding current available quantity is reduced by 1, and the computer information of the current hardware license inserted is added to the used table to generate usage record data. Similarly, if it is unplugged, the unique identification information and corresponding computer information of the current hardware license can be obtained, the existing data records can be found, and the current records can be cleared, and the available quantity can be updated to 3. Therefore, the device information library can be updated according to the determined hardware license information to obtain the change information library.
[0085] In a feasible implementation manner, when the changed device is the hardware license, determining the license information of the hardware license, and updating the device information library according to the license information to obtain the changed device information library comprises:
[0086] When the changed device is the hardware license and the change type is new insertion, obtaining unique license identification information of the changed device, and obtaining license information according to the unique license information;
[0087] Acquire unique computer identification information of a local computer, and acquire computer parameters of the computer according to the unique computer identification information;
[0088] The user information is received, and the device information base is updated according to the license information, the computer parameters and the user information to obtain a changed device information base.
[0089] In the specific implementation, if it is a newly inserted device, the Number, Class, and Notice can be obtained from dongle_base_info according to the VP of the hardware license. Then the UUID of the local computer is obtained, and the relevant information of the computer where the hardware license is located is obtained from com_base_info according to the UUID, including Com_name and Location. Since it is newly inserted, Free = 0, that is, it is not in an idle state. Then a dialog box pops up to prompt the user to enter his or her name, corresponding to the User in dongle_where. Finally, all the usage information of the hardware license in dongle_where [Number, Class, Notice, Free, Com_name, Location, user] has been obtained and can be returned to dongle_where.
[0090] In a feasible implementation manner, when the changed device is the hardware license, determining the license information of the hardware license, updating the device information library according to the license information, and obtaining the changed device information library further comprises:
[0091] When the changed device is the hardware license and the change type is unplugging, acquiring unique license identification information of the changed device, and obtaining license information according to the unique license information;
[0092] The corresponding computer parameters and user information are determined according to the unique computer identification information, and the computer parameters and user information are updated and synchronized to a device information library to obtain a changed device information library.
[0093] In the specific implementation, if the hardware license is unplugged, the Number, Class, and Notice can be obtained from dongle_base_info according to the VP of the hardware license. Since it is unplugged, Free = 0, that is, it is in an idle state, User = None, and the relevant information of the computer, Com_name and Location are all None. Finally, all the usage information of the hardware license in dongle_where [Number, Class, Notice, Free, Com_name, Location, user] has been obtained and can be returned to dongle_where.
[0094] Step S40: Visually display the hardware license usage information in the changed device information library.
[0095] In the specific implementation, the change information library can be updated in real time and displayed in the form of a table on the web page, including the license category, number, host name of the computer, computer location and name of the computer owner, for easy viewing. When performing visual display, a web application can be built based on Flask. Flask is a lightweight web framework that defines a simple web application that connects to a MySQL database, queries all records in the dongle_where table, and sends the results to an HTML template for rendering, including using the mysql.connector library to connect to a MySQL database; defining a route processing function index(), which maps to the root URL of the application (' / '). When a user visits this URL, Flask calls this function; in the index() function, we execute a SQL query to retrieve all records from the dongle_where table; the query results (a list containing dongle records) are sent to the index.html template for rendering. Reference Figure 6 , Figure 6 It is a visualization diagram of the hardware license usage. When performing visualization, a query instruction is generated according to the license usage information in the change information library; the usage information of the target license is determined according to the query instruction; the usage information of the target license is rendered according to the preset template for visualization. Specifically, when the Flask application runs and receives a request for the root URL (' / '), it executes the index() routing processing function. This function retrieves dongle records from the database and sends them to the index.html template for rendering. The template uses the Jinja2 engine to insert the dongle data into the HTML table and generate the final HTML page, which is presented to the user through a web browser. After that, the usage time of the software corresponding to the hardware license can be calculated by recording the stay time of the hardware license on each computer, thereby obtaining the usage time and idle time of the employee using a certain software on a certain computer, which can more intuitively and truly reflect the usage of a certain software and the employee's preference for software.
[0096] The present embodiment provides a method for real-time visualization of hardware license usage, by obtaining license information of a hardware license and computer information corresponding to a computer, adding identification information to the license information, entering the computer information and the hardware license information with the identification information added into a device information library, obtaining a monitoring result of the number of USB devices of the computer, and when the monitoring result changes, determining whether the changed USB device is the hardware license, and when the changed device is the hardware license, determining the license information of the hardware license, updating the device information library according to the license information to obtain a changed device information library, and performing visualization according to the hardware license usage information in the changed device information library, displaying the usage of the hardware license in real time, and improving the usage efficiency of the hardware license.
[0097] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the real-time visualization method for the use of hardware licenses in the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0098] This application also provides a real-time visualization device for hardware license usage, please refer to Figure 7 , the real-time visualization device for hardware license usage comprises:
[0099] An information entry module 10, used to obtain license information of a hardware license and computer information corresponding to a computer, add identification information to the license information, and enter the computer information and the hardware license information with the added identification information into a device information library;
[0100] The device detection module 20 is used to obtain a monitoring result of the number of USB devices of the computer, and when the monitoring result changes, determine whether the changed USB device is the hardware license;
[0101] An information updating module 30, configured to determine the license information of the hardware license when the changed device is the hardware license, and update the device information library according to the license information to obtain a changed device information library;
[0102] The visualization module 40 is used to perform visualization according to the hardware license usage information in the changed device information library.
[0103] The real-time visualization device for hardware license usage provided by the present application adopts the real-time visualization method for hardware license usage in the above-mentioned embodiment, which can solve the technical problem in the prior art that the use of hardware licenses is not intuitive and the management is chaotic because the use of paper registration forms is used to record or update the use of hardware licenses. Compared with the prior art, the beneficial effects of the real-time visualization device for hardware license usage provided by the present application are the same as the beneficial effects of the real-time visualization method for hardware license usage provided by the above-mentioned embodiment, and other technical features in the real-time visualization device for hardware license usage are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0104] The present application provides a real-time visualization device for hardware license usage, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the real-time visualization method for hardware license usage in the above-mentioned embodiment 1.
[0105] Reference below Figure 8 , which shows a schematic diagram of the structure of a real-time visualization device for hardware license usage suitable for implementing the embodiment of the present application. The real-time visualization device for hardware license usage in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The real-time visualization device for hardware license usage shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0106] like Figure 8As shown, the real-time visualization device for hardware license usage may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the real-time visualization device for hardware license usage are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 may allow the real-time visualization device for hardware license usage to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a real-time visualization device for hardware license usage with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0107] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0108] The real-time visualization device for hardware license usage provided by the present application adopts the real-time visualization method for hardware license usage in the above-mentioned embodiment, which can solve the technical problem in the prior art that the use of hardware licenses is not intuitive and the management is chaotic due to the use of paper registration forms to record or update the use of hardware licenses. Compared with the prior art, the beneficial effects of the real-time visualization device for hardware license usage provided by the present application are the same as the beneficial effects of the real-time visualization method for hardware license usage provided by the above-mentioned embodiment, and the other technical features of the real-time visualization device for hardware license usage are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0109] It should be understood that the various parts disclosed in this application can be implemented by 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 one or more embodiments or examples in a suitable manner.
[0110] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0111] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the method for real-time visualization of hardware license usage in the above-mentioned embodiment.
[0112] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, 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 this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0113] The computer-readable storage medium may be included in the real-time visualization device for hardware license usage; or may exist independently without being assembled into the real-time visualization device for hardware license usage.
[0114] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the real-time visualization device for hardware license usage, the real-time visualization device for hardware license usage:
[0115] Acquire license information of the hardware license and computer information corresponding to the computer, add identification information to the license information, and enter the computer information and the hardware license information with the added identification information into a device information library;
[0116] Acquire a monitoring result of the number of USB devices of the computer, and when the monitoring result changes, determine whether the changed USB device is the hardware license;
[0117] When the changed device is the hardware license, determining the license information of the hardware license, and updating the device information library according to the license information to obtain a changed device information library;
[0118] The hardware license usage information in the changed device information base is visualized and displayed.
[0119] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0120] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0121] The modules involved in the embodiments of the present application may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.
[0122] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned method for real-time visualization of hardware license usage, and can solve the technical problem in the prior art that the use of hardware licenses is not intuitive and the management is chaotic due to the use of paper registration forms to record or update the use of hardware licenses. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the method for real-time visualization of hardware license usage provided by the above-mentioned embodiment, and will not be repeated here.
[0123] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned method for real-time visualization of hardware license usage when executed by a processor.
[0124] The computer program product provided by the present application can solve the technical problem in the prior art that the use of hardware licenses is not intuitive and the management is chaotic due to the use of paper registration forms to record or update the use of hardware licenses. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the real-time visualization method for the use of hardware licenses provided in the above embodiment, and will not be repeated here.
[0125] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for real-time visualization of hardware license usage, characterized in that: The method for real-time visualization of hardware license usage includes: Acquire license information of the hardware license and computer information corresponding to the computer, add identification information to the license information, and enter the computer information and the hardware license information with the added identification information into a device information library; Acquire a monitoring result of the number of USB devices of the computer, and when the monitoring result changes, determine whether the changed USB device is the hardware license; When the changed device is the hardware license, determining the license information of the hardware license, and updating the device information library according to the license information to obtain a changed device information library; The hardware license usage information in the changed device information base is visualized and displayed.
2. The method according to claim 1, characterized in that The steps of obtaining license information of the hardware license and computer information corresponding to the computer, adding identification information to the license information, and entering the computer information and the hardware license information with the added identification information into a device information library include: Acquire license information of the hardware license, and generate manufacturer information and product information according to the license information; Generate unique license identification information according to the manufacturer information and the product information; Adding numbering information, classification information and remark information to the license information, and obtaining entry information of the hardware license according to the unique license identification information, the numbering information, the classification information and the remark information; Obtain computer information corresponding to the computer, and generate computer entry information according to the computer number, unique computer identification information, computer name and location information in the computer information; The input information of the hardware license and the input information of the computer are input into a device information library.
3. The method according to claim 2, characterized in that The step of entering the input information of the hardware license and the input information of the computer into the device information library comprises: Generate a license information table and a computer information table according to the input information of the hardware license and the input information of the computer; Determine the license primary key value of the license information table and the primary key value of the computer information table; Entering the input information of the hardware license and the input information of the computer into the license information table and the computer information table respectively; The license information table and the computer information table are entered into a device information library.
4. The method according to claim 1, characterized in that The step of obtaining a monitoring result of the number of USB devices of the computer and determining whether the changed USB device is the hardware license when the monitoring result changes comprises: Obtaining a monitoring result of the number of USB devices of the computer, and when the monitoring result changes, obtaining a list of devices after the change, and simultaneously tracing back the list of devices before the change; Compare the device list after the change with the device list before the change to determine the changed USB device information; The unique license identification information of the changed USB device information is determined, and the unique license identification information is compared with the unique license identification information of the hardware license to determine whether the changed USB device information is the hardware license.
5. The method according to claim 1, characterized in that When the changed device is the hardware license, determining the license information of the hardware license, and updating the device information library according to the license information to obtain the changed device information library comprises: When the changed device is the hardware license and the change type is new insertion, obtaining unique license identification information of the changed device, and obtaining license information according to the unique license information; Acquire unique computer identification information of a local computer, and acquire computer parameters of the computer according to the unique computer identification information; The user information is received, and the device information base is updated according to the license information, the computer parameters and the user information to obtain a changed device information base.
6. The method according to claim 1, characterized in that When the changed device is the hardware license, determining the license information of the hardware license, and updating the device information library according to the license information, the step of obtaining the changed device information library further includes: When the changed device is the hardware license and the change type is unplugging, acquiring unique license identification information of the changed device, and obtaining license information according to the unique license information; The corresponding computer parameters and user information are determined according to the unique computer identification information, and the computer parameters and user information are updated and synchronized to a device information library to obtain a changed device information library.
7. The method according to any one of claims 1 to 6, characterized in that The step of visually displaying the hardware license usage information in the changed device information library comprises: generating a query instruction according to the license usage information in the change information library; Determine usage information of the target license according to the query instruction; The usage information of the target license is rendered according to a preset template for visual display.
8. A real-time visualization device for hardware license usage, characterized in that: The device comprises: An information entry module, used to obtain license information of the hardware license and computer information corresponding to the computer, add identification information to the license information, and enter the computer information and the hardware license information with the added identification information into a device information library; A device detection module, used for obtaining a monitoring result of the number of USB devices of the computer, and determining whether the changed USB device is the hardware license when the monitoring result changes; An information updating module, used for determining the license information of the hardware license when the changed device is the hardware license, and updating the device information library according to the license information to obtain a changed device information library; The visualization module is used to perform visualization according to the hardware license usage information in the changed device information library.
9. A real-time visualization device for hardware license usage, characterized in that: The 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 method for real-time visualization of hardware license usage 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 method for real-time visualization of hardware license usage according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
License monitoring method and system for EDA (electronic design automation) software
CN103279696A
Software authorization management method, server and system
CN108376211A
System and method for automatically cleaning and distributing InCAM License
CN112115034A
Method and device for monitoring software license, computer equipment and storage medium
CN113239327A
Playing control method, playing control device, playing terminal and storage medium
CN114845169A