Real-time visualization method, device, equipment and storage medium for hardware license usage
By obtaining hardware licenses and computer information, entering them into the device information database and monitoring USB device changes, the problem of unintuitive hardware license usage is solved, real-time visualization of hardware license usage is achieved, and usage efficiency is improved.
Patent Information
- Application Number
- CN202411333766.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-09-24
AI Technical Summary
In the prior art, the use of hardware licenses is recorded through paper registration forms, which leads to management chaos, lack of detailed information, and irregular filling of the forms by users, resulting in unintuitive use of hardware licenses and waste of resources.
By obtaining the license information and computer information of the hardware license, adding identification information, entering it into the device information library, and monitoring the changes in the number of USB devices, determining whether the changed device is a hardware license, and updating the device information library, real-time visualization of hardware license usage is achieved.
It realizes the real-time display of hardware license usage, improves the efficiency of hardware license usage, and solves the problem of chaotic hardware license management.
Smart Images

Figure CN119293755B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of license management technology, and in particular to a method, apparatus, device, and storage medium for real-time visualization of hardware license usage. Background Art
[0002] Automotive R&D and manufacturing is a long industry chain, utilizing a wide range of specialized software. While some of this software is free and open source, many require periodic license purchases, often at high prices. Many licenses are hardware licenses (also known as dongles) that plug into a computer and use the software, often resembling a USB flash drive. Given the complexity of the automotive industry, the diverse range of specialized software involved is significant. A single department may have over 20 hardware licenses of the same type from the same company. The management and use of hardware licenses is cumbersome, and paper-based hardware license registration forms are often used. However, in practice, these forms are plagued by issues such as poor design, incomplete information, users failing to complete them promptly, irregular registration procedures, a lack of timely updates on actual license usage, and a lack of intuitive visibility into hardware license usage. This leads to unused hardware licenses, making it difficult to locate urgently needed licenses, resulting in a waste of time and resources.
[0003] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is 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 existing technology of using paper registration forms to record or update hardware license usage, resulting in unintuitive hardware license usage and confusing management.
[0005] To achieve the above objectives, the present application proposes a method for real-time visualization of hardware license usage, which includes:
[0006] 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 database;
[0007] Obtaining a monitoring result of the number of USB devices on the computer, and when the monitoring result changes, determining 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 device information library is visually displayed according to the change.
[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 database include:
[0011] Obtaining license information of the hardware license, and generating manufacturer information and product information based on the license information;
[0012] generating unique license identification information according to the manufacturer information and the product information;
[0013] Adding number 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 number information, the classification information and the remark information;
[0014] Obtain computer information corresponding to the computer, and generate computer entry information based on 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 entered into a device information library.
[0016] In one embodiment, the step of entering the input information of the hardware license and the input information of the computer into the device information library includes:
[0017] Generating 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 database.
[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 on the computer, and when the monitoring result changes, obtaining a device list after the change, and simultaneously retracing the device list before the change;
[0023] Comparing 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 includes:
[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] User information is received, and a device information library is updated according to the license information, the computer parameters, and the user information to obtain a changed device information library.
[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 to obtain the changed device information library further comprises:
[0030] When the changed device is the hardware license and the change type is removal, obtaining unique license identification information of the changed device, and obtaining license information according to the unique license information;
[0031] 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] determining 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 and displayed visually.
[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a real-time visualization device for hardware license usage, which includes:
[0037] An information entry module, configured 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 database;
[0038] a device detection module, configured to obtain a monitoring result of the number of USB devices on the computer, and when the monitoring result changes, determine whether the changed USB device is the hardware license;
[0039] an information updating module, configured to, 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;
[0040] The visualization module is used to perform visualization display based on 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, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program is 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. When the computer program is executed by a processor, it implements the steps of the method for real-time visualization of hardware license usage as described above.
[0044] One or more technical solutions proposed in the present application have at least the following technical effects: 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 into a device information library, obtaining monitoring results of the number of USB devices on the computer, and when the monitoring results change, 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 to obtain a changed device information library, and performing visual display based on the hardware license usage information in the changed device information library to display the usage of the hardware license in real time, thereby improving the efficiency of hardware license usage. 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 embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0047] Figure 1 A flowchart illustrating a first embodiment of a method for real-time visualization of hardware license usage;
[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 in accordance with an embodiment of a method for real-time visualization of hardware license usage;
[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;
[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;
[0052] Figure 6 A schematic diagram illustrating the visualization of hardware license usage provided in accordance with an embodiment of a method for real-time visualization of hardware license usage;
[0053] Figure 7 This is a schematic diagram of the module structure of the 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 explained 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 merely used to explain the technical solutions of the present application and are not intended 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 a 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 with the device for identifying and visualizing the use of hardware licenses in real time as the 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 it out in a timely manner, users filling it out in an irregular manner, the paper registration form cannot timely update the actual usage of the hardware license, and the hardware license usage status is not intuitive. Hardware license management is chaotic, resulting in some hardware licenses being idle, but the hardware licenses that are urgently needed cannot be found in time, resulting in a waste of time and resources.
[0061] This application provides a solution that enables real-time visualization of hardware license usage. It can display the usage of hardware licenses in real time in the form of a web page, including the function of the license, the license number, the host name of the computer where it is located, the location of the computer, and the name of the computer owner. 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 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. 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, obtains the changed device information library, and performs visualization based on the hardware license usage information in the changed device information library, displays the usage of the hardware license in real time, and improves the efficiency of hardware license usage.
[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 execution functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device capable of implementing the above functions, a device for real-time visualization of hardware license usage, etc. This embodiment and the following embodiments will be described below using a device for real-time visualization of hardware license usage as an example.
[0064] Based on this, the embodiment of the present application provides a method for real-time visualization of hardware license usage, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the method for real-time visualization of 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: 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 database.
[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 that stores license information and computer information.
[0068] In a specific implementation, it is possible to obtain the license information of the hardware license, generate the manufacturer information and product information based on the license information, generate unique license identification information based on the manufacturer information and the product information, add numbering information, classification information and remark information to the license information, and obtain the entry information of the hardware license based on the unique license identification information, the numbering information, the classification information and the remark information, obtain the computer information corresponding to the computer, generate the entry information of the computer based on the computer number, unique computer identification information, computer name and location information in the computer information, and enter the entry information of the hardware license and the entry information of the computer 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 needed. The present invention selects a combination of VID and PID as the unique identifier, which is represented by VP. The hardware license entry information includes [VP, Number, Class, Notice], where VP is a string consisting of VID and PID, which serves as a unique identifier to distinguish USB. Number is a number added later that is unique to a hardware license for easy identification and search. Class is the classification of the license, such as dSPACE's hardware license and carmaker's hardware license. Notice is a note used to further supplement and improve the hardware license information, such as further subdividing dSPACE's hardware license into ControlDesk, CFD, ModelDesk, MotionDesk, and AutomationDesk. Since the hardware license information ultimately displayed on the web page also includes the specific computer where the 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 entry information includes [Com_Number, UUID, Com_name, Location], among which UUID is mainly used as the unique identifier of the computer. After the information to be entered is clear, the corresponding table can be created in the database to store the data. This patent chooses to use SQL database and create a new database named dongles. Its 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. dongle_base_info is used to store the basic information of the hardware license [VP, Number, Class, Notice], with primary key = VP. 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 input information of the hardware license and the input information of the computer into the device information library includes:
[0070] Generating 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 database.
[0074] In the specific implementation, in order to realize the visualization of hardware license usage in the future, it is also necessary to store the relevant usage 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 usage information of the license. Here, a new table named dongle_where is created. 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 the dongle.
[0075] Step S20: 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.
[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, the monitoring result can be generated, 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 on the computer and, when the monitoring result changes, determining whether the changed USB device is the hardware license includes:
[0079] Obtaining a monitoring result of the number of USB devices on the computer, and when the monitoring result changes, obtaining a device list after the change, and simultaneously retracing the device list before the change;
[0080] Comparing 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 on a computer is obtained, when determining whether the monitoring result has changed, a feasible method is to determine the list of USB devices that have changed, and at the same time, to trace back the list of USB devices before the change, and compare the list of devices after the change with the list of devices before the change, to determine the changed USB device information, to determine the unique license identification information of the changed USB device information, and to compare the unique license identification information with the unique license identification information of the hardware license to 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 inherent information of the hardware license, equal to their values 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 dongles 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 based on the license information. During the update, it can be determined whether the change type of the current changed device is unplugging or plugging in, and the information of the current hardware license can be updated based on the change type. For example, if the available quantity of 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 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 record can be found, the current record can be cleared, and the available quantity can be updated to 3. Therefore, the device information library can be updated based on the determined hardware license information to obtain a 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 includes:
[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] User information is received, and a device information library is updated according to the license information, the computer parameters, and the user information to obtain a changed device information library.
[0089] In the specific implementation, if the device is newly inserted, the Number, Class, and Notice fields can be obtained from dongle_base_info based on the VP of the hardware license. The local computer's UUID is then obtained, and based on the UUID, information about the computer where the hardware license resides, including Com_name and Location, is retrieved from com_base_info. Since the device is newly inserted, Free = 0, meaning it is not idle. A dialog box then pops up, prompting the user to enter their name, corresponding to the User field in dongle_where. Finally, all usage information for the hardware license in dongle_where (Number, Class, Notice, Free, Com_name, Location, user) is obtained and passed back 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, and updating the device information library according to the license information to obtain the changed device information library further includes:
[0091] When the changed device is the hardware license and the change type is removal, obtaining unique license identification information of the changed device, and obtaining license information according to the unique license information;
[0092] 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 implementation, if the hardware license is unplugged, the Number, Class, and Notice fields are retrieved from dongle_base_info based on the hardware license's VP. Since it's unplugged, Free = 0, indicating an idle state, User = None, and the computer-related information, Com_name, and Location, are both None. Finally, all usage information for the hardware license (Number, Class, Notice, Free, Com_name, Location, and user) is retrieved from dongle_where and passed back 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 the MySQL database; defining a routing processing function index(), which maps to the root URL of the application (' / '). When a user accesses this URL, Flask calls this function; in the index() function, we execute an 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 This is a visualization diagram of hardware license usage. When performing visualization, a query instruction is generated based on the license usage information in the change information library; the usage information of the target license is determined based on the query instruction; and the usage information of the target license is rendered according to a 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 generates 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 time the hardware license stays 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 realistically reflect the usage of a certain software and the employee's preference for software usage.
[0096] This embodiment provides a method for real-time visualization of hardware license usage, which obtains license information of a hardware license and computer information corresponding to a computer, adds identification information to the license information, enters the computer information and the hardware license information with the identification information into a device information library, obtains monitoring results of the number of USB devices on the computer, and when the monitoring results change, determines whether the changed USB device is the hardware license. 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 a changed device information library, and performs visualization based on the hardware license usage information in the changed device information library, thereby displaying the usage of the hardware license in real time and improving the efficiency of hardware license usage.
[0097] It should be noted that the above examples are only used to understand this application and do not constitute a limitation on the real-time visualization method for hardware license usage of this application. More simple transformations based on this technical concept are all within the scope of protection of this 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 includes:
[0099] An information entry module 10 is configured 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 database;
[0100] a device detection module 20 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;
[0101] An information updating module 30 is configured to, 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;
[0102] The visualization module 40 is configured to perform visualization based on the hardware license usage information in the changed device information library.
[0103] The real-time visualization device for hardware license usage provided by this application, which employs the real-time visualization method for hardware license usage described in the aforementioned embodiments, can resolve the technical problem in the prior art of using paper registration forms to record or update hardware license usage, resulting in unintuitive and confusing management of hardware license usage. Compared to the prior art, the beneficial effects of the real-time visualization device for hardware license usage provided by this application are the same as those of the real-time visualization method for hardware license usage provided in the aforementioned embodiments, and the other technical features of the real-time visualization device for hardware license usage are the same as those disclosed in the aforementioned embodiments, and are not further elaborated here.
[0104] The present application provides a real-time visualization device for hardware license usage, 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, and the instructions are executed by the at least one processor to enable the at least one processor to 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 device suitable for implementing the real-time visualization of hardware license usage in the embodiments of the present application. The device for real-time visualization of hardware license usage in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 8 The illustrated device for real-time visualization of hardware license usage is merely an example and should not limit 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 processing unit, etc.), which can perform various appropriate actions and processes based on 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. RAM 1004 also stores various programs and data required for the real-time visualization device for hardware license usage. Processing device 1001, ROM 1002, and 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 can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the real-time visualization device for hardware license usage to communicate with other devices wirelessly or by wire 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 of 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 processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising 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 via 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 this application, which employs the real-time visualization method for hardware license usage described in the aforementioned embodiment, can resolve the technical problem in the prior art of using paper registration forms to record or update hardware license usage, resulting in unintuitive and confusing management of hardware license usage. Compared to the prior art, the beneficial effects of the real-time visualization device for hardware license usage provided by this application are the same as those of the real-time visualization method for hardware license usage provided in the aforementioned embodiment, and the other technical features of the real-time visualization device for hardware license usage are the same as those disclosed in the method of the previous embodiment, and are not further elaborated here.
[0109] 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 one or more embodiments or examples in a suitable manner.
[0110] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0111] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, wherein the computer-readable program instructions are used to execute the method for real-time visualization of hardware license usage in the above embodiment.
[0112] 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, systems or devices, or any combination thereof. 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 thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores 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 appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0113] The computer-readable storage medium may be included in the device for real-time visualization of hardware license usage; or may exist independently without being incorporated into the device for real-time visualization of 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] 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 database;
[0116] Obtaining a monitoring result of the number of USB devices on the computer, and when the monitoring result changes, determining 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 device information library is visually displayed according to the change.
[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 stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving 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., through the Internet using an Internet service provider).
[0120] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of 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 different order than 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 flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0121] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0122] The computer-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 method for real-time visualization of hardware license usage. This computer-readable storage medium can address the technical problem in the prior art of using paper registration forms to record or update hardware license usage, resulting in unintuitive and confusing management of hardware license usage. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the method for real-time visualization of hardware license usage provided in the above-described embodiment, and are not further elaborated 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 in this application can address the technical issues in the prior art of recording or updating hardware license usage using paper registration forms, resulting in unintuitive and confusing management of hardware license usage. Compared to the prior art, the beneficial effects of the computer program product provided in this application are similar to those of the method for real-time visualization of hardware license usage provided in the aforementioned embodiment, and are not further elaborated here.
[0125] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application 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: Obtaining license information of the hardware license, and generating manufacturer information and product information based on the license information; generating unique license identification information according to the manufacturer information and the product information; Adding number 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 number information, the classification information and the remark information; Obtain computer information corresponding to the computer, and generate computer entry information based on the computer number, unique computer identification information, computer name, and location information in the computer information; Entering the input information of the hardware license and the input information of the computer into a device information library; Obtaining a monitoring result of the number of USB devices on the computer, and when the monitoring result changes, obtaining a device list after the change, and simultaneously retracing the device list before the change; Comparing the device list after the change with the device list before the change to determine the changed USB device information; Determining unique license identification information of the changed USB device information, comparing the unique license identification information with unique license identification information of the hardware license, and determining whether the changed USB device information 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 device information library is visually displayed according to the change.
2. The method according to claim 1, wherein The step of entering the input information of the hardware license and the input information of the computer into the device information library includes: Generating 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 database.
3. The method according to claim 1, wherein When the changed device is the hardware license, the step of 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 identification information; Acquire unique computer identification information of a local computer, and acquire computer parameters of the computer according to the unique computer identification information; User information is received, and a device information library is updated according to the license information, the computer parameters, and the user information to obtain a changed device information library.
4. The method according to claim 1, wherein 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 further comprises: When the changed device is the hardware license and the change type is removal, obtaining unique license identification information of the changed device, and obtaining license information according to the unique license identification information; 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.
5. The method according to any one of claims 1 to 4, characterized in that The step of visually displaying the hardware license usage information in the changed device information library includes: generating a query instruction according to the license usage information in the changed device information database; determining 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 and displayed visually.
6. A real-time visualization device for hardware license usage, characterized in that: The device comprises: An information entry module is configured to obtain license information of a hardware license, generate manufacturer information and product information based on the license information, generate unique license identification information based on the manufacturer information and the product information, add numbering information, classification information, and remark information to the license information, and obtain entry information of the hardware license based on the unique license identification information, the numbering information, the classification information, and the remark information, obtain computer information corresponding to a computer, generate computer entry information based on the computer number, unique computer identification information, computer name, and location information in the computer information, and enter the hardware license entry information and the computer entry information into a device information library. a device detection module configured to obtain a monitoring result of the number of USB devices on the computer, and when the monitoring result changes, obtain a device list after the change and simultaneously trace back the device list before the change; compare the device list after the change with the device list before the change to determine the changed USB device information; determine 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 the hardware license; an information updating module, configured to, 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; The visualization module is used to perform visualization display based on the hardware license usage information in the changed device information library.
7. A real-time visualization device for hardware license usage, characterized in that: The device includes: 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 5.
8. 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 5 are implemented.
Citation Information
Patent Citations
Software authorization management method, server and system
CN108376211A
Method and device for monitoring software license, computer equipment and storage medium
CN113239327A