License concurrency management method and device based on object model and storage medium

Through the model -based license -based pairing management method, combined with the network and license status information of the device, intelligently managed the concurrent use of multiple devices, solved the problem that the traditional License management system could not effectively manage concurrent use, improved the efficiency of resource utilization and reduced the efficiency of resource utilization and reduced the efficiency of resource utilization Waste resources.

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

Patent Information

Application Number
CN202411857097.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-01-21
Estimated Expiration
2044-12-17

AI Technical Summary

Technical Problem

Traditional license management systems cannot effectively manage the concurrent use of multiple devices, especially in scenarios where multiple devices share licenses, which may lead to excessive use or waste of resources.

Method used

Using the object model-based license concurrency management method, by receiving the device's license application request, obtain the license file and concurrent device list, combine the network status information and license status information, filter out the appropriate devices for license allocation, and update the concurrency status information.

Benefits of technology

Achieve the complicated complication of permissions in intelligence, improve the efficiency of resource utilization, reduce unnecessary permit distribution, and avoid waste of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119337340A_ABST
    Figure CN119337340A_ABST
Patent Text Reader

Abstract

The invention discloses a license concurrent management method and device based on an object model and a storage medium, and relates to the technical field of the Internet of Things, and the method comprises the steps: receiving license application requests sent by a plurality of first devices, the license application requests comprising identifiers of the first devices and first license types; a permission file corresponding to the first permission type and a concurrent device list corresponding to the permission file are obtained, and the permission file comprises an activation code and concurrent state information; obtaining network state information and permission state information of each first device through a preset object model; screening out a second device passing the permission application from the first devices according to the concurrent state information, the network state information and the permission state information; and sending the license file to the second equipment, and updating the concurrent state information and the concurrent equipment list of the license file according to the identifier of the second equipment. According to the invention, concurrent use of permissions can be controlled.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to a method, device and storage medium for concurrent license management based on a physical model. Background Art

[0002] With the development of the Internet of Things and distributed device networks, device authorization management has become a vital task. Traditional license management systems mostly use a single-node locking method, that is, each license can only be bound to a specific device or user. This model limits the flexibility of the license and cannot effectively support shared use among multiple devices. In a multi-device environment, if a device needs to temporarily access a specific function, and the license for that function has been occupied by other devices, it will lead to uneven resource allocation and affect overall efficiency. Therefore, in the case of concurrent use, traditional license systems are usually unable to effectively manage the concurrent use of multiple devices, especially in the scenario where multiple devices share a license, which may lead to overuse or waste of 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 license concurrent management method, device and storage medium based on a physical model, aiming to solve the technical problem that the traditional license system cannot effectively manage the concurrent use of multiple devices.

[0005] To achieve the above objectives, the present application proposes a license concurrency management method based on a physical model, and the license concurrency management method based on a physical model includes: Receiving license application requests sent by multiple first devices, wherein the license application requests include identifiers of the first devices and first license types; Acquire a license file corresponding to the first license type and a concurrent device list corresponding to the license file, wherein the license file includes an activation code and concurrent status information; Acquire the network status information and the permission status information of each of the first devices through a preset object model; Filter out second devices that have passed the license application from each of the first devices according to the concurrent status information, the network status information, and the license status information; The license file is sent to the second device, and concurrent status information and a concurrent device list of the license file are updated according to the identifier of the second device.

[0006] In one embodiment, the step of filtering out the second device that has passed the license application from the first device according to the concurrent status information, the network status information, and the license status information includes: Determine the available concurrency number of the first license type according to the concurrency status information; If the number of the first devices is less than or equal to the available concurrency number, all the first devices are used as second devices; If the number of each of the first devices is greater than the available concurrent number, each of the first devices is prioritized according to the network status information and the license status information of each of the first devices to obtain a priority sequence including all of the first devices, and the number of second devices equal to the available concurrent number is determined according to the priority sequence.

[0007] In one embodiment, the step of prioritizing each of the first devices according to the network status information and the permission status information of each of the first devices to obtain a priority sequence including all of the first devices includes: Analyze the comprehensive status of each of the first devices according to the network status information and the permission status information to obtain a comprehensive status score of each of the first devices; The first devices are sorted in descending order according to the magnitude of the comprehensive status scores to generate a priority sequence for the first devices.

[0008] In one embodiment, before the step of receiving the license application request sent by the first device, the method further includes: receiving a license generation request sent by a third device, wherein the license generation request includes hardware information of the six devices and a second license type, and the second license type is a license type that does not exist in the central server; Determine corresponding concurrency status information and a concurrent device list according to the second license type, wherein the concurrency status information includes a total concurrency number, a current concurrency number, and an available concurrency number; generating an activation code corresponding to the second license type according to the hardware information of the third device; A concurrent device list corresponding to the second license type and a license file including concurrent status information corresponding to the second license type and the activation code are created, wherein the license file corresponding to the second license type includes the license file corresponding to the first license type.

[0009] In one embodiment, after the step of creating a concurrent device list corresponding to the second license type and a license file including the concurrent status information corresponding to the second license type and the activation code, the method further includes: Generate a public key and a private key corresponding to the license file; Before the step of sending the license file to the second device, the method further includes: Encrypting the license file using the public key corresponding to the license file; The encrypted license file is signed using the private key corresponding to the license file, wherein, after receiving the license file sent by the central server, the second device uses the private key corresponding to the license file to decrypt the encrypted license file and uses the public key corresponding to the license file to verify the signature of the license file.

[0010] In one embodiment, after the step of creating a concurrent device list corresponding to the second license type and a license file including the concurrent status information corresponding to the second license type and the activation code, the method further includes: Monitoring network status information and permission status information of all devices in the preset object model through the preset object model, wherein the network status information includes network delay information, bandwidth information and load information; Analyze the comprehensive status of each of the devices according to the network status information and the permission status information to obtain a comprehensive status score corresponding to each of the devices; If a fourth device is detected whose comprehensive status score is less than a preset status score threshold, the identifier of the fourth device is obtained, the third license type is determined according to the license status information corresponding to the fourth device, a license deletion instruction corresponding to the third license type is sent to the fourth device based on the identifier, and the concurrent status information and concurrent device list corresponding to the third license type are updated according to the identifier of the fourth device.

[0011] In one embodiment, after the step of monitoring the network status information and the permission status information of all devices in the preset object model through the preset object model, the method further includes: Regularly detecting the license load of each of the devices according to the license status information; If a fifth device is detected whose license load is greater than a preset device load threshold, the identifier of the fifth device is obtained, the third license type is determined based on the license status information corresponding to the fifth device, a license deletion instruction corresponding to the third license type is sent to the fifth device based on the identifier, and the concurrency status information and concurrent device list corresponding to the third license type are updated based on the identifier of the fifth device.

[0012] In one embodiment, after the step of monitoring the network status information and the permission status information of all devices in the preset object model through the preset object model, the method further includes: Monitoring the geographic location information of all devices in the preset object model through the preset object model; If a sixth device whose geographical location information has changed is detected, obtaining the latest location information of the sixth device; Calculate the spatial distance between the sixth device and other devices except the sixth device according to the latest position information; Adjusting the networking scheme of the preset object model according to each of the spatial distances; The network status information of each device in the preset object model is updated based on the adjusted networking solution.

[0013] In addition, to achieve the above purpose, the present application also proposes a license concurrency management device based on a physical model, and the license concurrency management device based on a physical model includes: An application module, configured to receive license application requests sent by a plurality of first devices, wherein the license application requests include an identifier of the first device and a first license type; an acquisition module, configured to acquire a license file corresponding to the first license type and a concurrent device list corresponding to the license file, wherein the license file includes an activation code and concurrent status information; A status module, used to obtain network status information and permission status information of each of the first devices through a preset object model; a screening module, configured to screen out second devices that have passed the license application from each of the first devices according to the concurrent status information, the network status information and the license status information; The allocation module is used to send the license file to the second device and update the concurrent state information and the concurrent device list of the license file according to the identifier of the second device.

[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a license concurrency management device based on a physical model, 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 license concurrency management method based on a physical model as described above.

[0015] 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 license concurrency management method based on the physical model as described above are implemented.

[0016] 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, the steps of the license concurrency management method based on the physical model as described above are implemented.

[0017] This application receives a license application request sent by each first device; obtains a license file corresponding to the first license type and a concurrent device list corresponding to the license file; obtains network status information and license status information of each first device through a preset object model; selects second devices that pass the license application from each first device according to the concurrent status information, the network status information and the license status information; sends the license file to the second device, and updates the concurrent status information and concurrent device list of the license file according to the identifier of the second device. In this application, by comprehensively analyzing a variety of status information, it is possible to intelligently control the concurrent use of licenses, which not only improves the efficiency of resource utilization, but also reduces unnecessary license allocation and avoids resource waste. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] 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.

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in 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 work.

[0020] Figure 1 A flowchart of a first embodiment of a method for concurrent license management based on a physical model of the present application is provided; Figure 2 A flowchart diagram of the second embodiment of the concurrent license management method based on the object model of the present application is provided; Figure 3 A flowchart of the third embodiment of the concurrent license management method based on the object model of the present application is provided; Figure 4 This is a schematic diagram of the module structure of a license concurrency management device based on a physical model according to an embodiment of the present application; Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the license concurrency management method based on the physical model in the embodiment of the present application.

[0021] 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

[0022] 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.

[0023] 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.

[0024] 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 central server, etc. The following takes the central server as an example to illustrate this embodiment and the following embodiments.

[0025] Based on this, the embodiment of the present application provides a license concurrency management method based on a physical model, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the concurrent license management method based on the object model of this application.

[0026] In this embodiment, the license concurrent management method based on the physical model includes steps S10 to S50: Step S10: receiving a license application request sent by a plurality of first devices, wherein the license application request includes an identifier of the first device and a first license type.

[0027] It should be noted that the device identifier is a unique identifier for a device, usually a unique string or number that uniquely identifies the device. Common device identifiers include MAC address, serial number, UUID, etc. The license type is the type of license requested by the device, which defines the functions or services the device wants to use. Different license types may correspond to different permissions and resources.

[0028] Step S20: Acquire a license file corresponding to the first license type and a concurrent device list corresponding to the license file, wherein the license file includes an activation code and concurrent status information.

[0029] It should be noted that in the license file, the activation code is a unique identifier used to verify the validity and legality of the license. The activation code is usually generated by the system and is bound to a specific license type and device. The concurrent status information is information about the current license usage, including the number of authorized devices, the remaining available concurrency, etc., which is used to help the system determine whether a new license can be granted and how to update the concurrency status. The concurrent device list is a list containing all device identifiers that have obtained the license type. Each device identifier corresponds to a device that is using the license, which can help the system track which devices are using the license for concurrency control and resource management. In this embodiment, the license file and the concurrent device list are usually stored in the database of the central server.

[0030] Step S30: obtaining the network status information and the permission status information of each first device through a preset object model.

[0031] It should be noted that the preset thing model is the super thing model used in this embodiment. The thing model is an abstract representation of an IoT device, which is used to describe the properties, functions and services of the device. The thing model provides a standardized way to manage and control devices, making the interaction between different devices easier and more consistent. The present application provides an enhanced thing model, namely the super thing model, for describing and managing large-scale, heterogeneous IoT devices. Network status information may include bandwidth, latency, and other information. License status information may include license resource conditions such as license validity period, total concurrency, used concurrency, and remaining concurrency.

[0032] Step S40: Filter out the second devices that have passed the permission application from the first devices according to the concurrent status information, the network status information and the permission status information.

[0033] It should be noted that in this step, it is necessary to check whether the remaining available concurrency is sufficient to support new license applications, and select the device with the best status for allocation based on the network status information and license status information, so as to optimize resource utilization.

[0034] In a feasible implementation, step S40 may include steps S41 to S43: Step S41: determining the available concurrency number of the first license type according to the concurrency status information.

[0035] It should be noted that the concurrency status information includes information on the available concurrency number, the remaining concurrency number and the total concurrency number.

[0036] Step S42: If the number of first devices is less than or equal to the available concurrent number, all first devices are used as second devices.

[0037] It should be noted that it is determined whether the number of first devices applying for permission is less than or equal to the number of available concurrent devices. If the condition is met, all these devices are regarded as second devices that have passed the permission application, ensuring that when there are sufficient concurrent resources, all eligible devices can obtain permission.

[0038] Step S43, if the number of first devices is greater than the available concurrent number, prioritize the first devices according to the network status information and license status information of the first devices to obtain a priority sequence containing all first devices, and determine the number of second devices equal to the available concurrent number according to the priority sequence.

[0039] It should be noted that after the first devices are prioritized, the first N devices may be selected as the second devices that pass the license application according to the priority sequence, where N is the available concurrency number.

[0040] This implementation method selects the second device that passes the license application from the first device according to the concurrent status information, the network status information and the license status information, and can efficiently and intelligently manage the license resources to ensure the effective use of the resources.

[0041] In a feasible implementation, step S43 may include steps A10 to A20: Step A10: Analyze the comprehensive status of each first device according to the network status information and the permission status information to obtain a comprehensive status score of each first device.

[0042] It should be noted that N_i represents the network status information of device D_i (such as bandwidth, delay, load and other parameters), which is the weighted average or composite index of multiple network parameters. L_i represents the license usage status of device D_i, which indicates the license status or load status currently used by device Di, and reflects the license resource occupancy of the device. The license usage status can be obtained through the license status information. S_i represents the comprehensive status score of the device, and the calculation formula is: S_i=αN_i+βL_i, where α and β are adjustment coefficients used to dynamically balance network and license usage status according to different scenarios.

[0043] Step A20: sort the first devices in descending order according to the size of the comprehensive status scores to generate a priority sequence for the first devices.

[0044] It should be noted that the comprehensive status score of each device calculated in step A10 is used to sort the devices in descending order, so as to preferentially allocate licenses to the devices with the best status.

[0045] This implementation prioritizes these devices according to network status information and license status information, and selects the top N devices as the second devices that pass the license application, which can efficiently and intelligently manage license resources, ensuring effective resource utilization and system flexibility. In addition, by setting scoring thresholds and using priority queues, the system can dynamically optimize resource allocation and improve overall performance.

[0046] Step S50: Send the license file to the second device, and update the concurrent status information and concurrent device list of the license file according to the identifier of the second device.

[0047] It should be noted that the license file is usually sent to the target device via a secure network protocol (such as HTTPS). In order to ensure the security and integrity of the data, the license file should be encrypted and digitally signed. At the same time, the available concurrency and the remaining concurrency in the concurrency status information are increased according to the second device, and the identifier of the second device is added to the concurrent device list, and the updated concurrency status information and concurrent device list are saved in the database.

[0048] This embodiment receives a license application request sent by a first device; obtains a license file corresponding to the first license type and a concurrent device list corresponding to the license file; obtains network status information and license status information of each of the first devices through a preset object model; selects a second device that passes the license application from the first device based on the concurrent status information, the network status information, and the license status information; sends the license file to the second device, and updates the concurrent status information and concurrent device list of the license file based on the identifier of the second device. In this embodiment, by comprehensively analyzing a variety of status information, the concurrent use of licenses can be intelligently controlled, which not only improves the efficiency of resource utilization, but also reduces unnecessary license allocation and avoids resource waste.

[0049] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 Before step S10, the method for concurrent license management based on the physical model further includes steps B10 to B40: Step B10: receiving a license generation request sent by a third device, wherein the license generation request includes hardware information of the six devices and a second license type, and the second license type is a license type that does not exist in the central server.

[0050] It should be noted that the second license type is a new type of license requested by the third device.

[0051] Step B20: determining corresponding concurrency status information and a concurrent device list according to the second license type, wherein the concurrency status information includes a total concurrency number, a current concurrency number, and an available concurrency number.

[0052] It should be noted that it is necessary to determine the initial settings such as the total number of concurrent users of the license type and create an empty list to record all devices that are using the license.

[0053] Step B30: Generate an activation code corresponding to the second license type according to the hardware information of the third device.

[0054] It should be noted that the activation code is an identifier, which is generated by the device's hardware information H_i and a random number R through a hash function: A(D_i)=hash(H_i+R), where H_i usually includes the device's MAC address, CPU ID or other hardware unique identifier, and R is a random number generated by the system to ensure that each activation code is unique.

[0055] Step B40: Create a concurrent device list corresponding to the second license type and a license file including concurrent status information and an activation code corresponding to the second license type.

[0056] It should be noted that the concurrent status information, activation code and concurrent device list are combined into a license file, and the license file is saved in a database or other persistent storage.

[0057] In this embodiment, when a device is introduced to request the generation of a new license type, a series of steps are executed to process the request.

[0058] In a feasible implementation manner, after step B40, the method for concurrent license management based on the physical model further includes step B50: Step B50, generating a public key and a private key corresponding to the license file.

[0059] When generating a license, to ensure security, use RSA or ECC public-private key pair encryption. Take RSA as an example: Generate public key K_pub and private key K_priv: K_priv=d, K_pub=(e,n), where e and n are public encryption parameters and d is the private key. When the device encrypts with the public key: E(M)=M^e mod n, when the device decrypts with the private key: D(C)=C^d mod n.

[0060] After step S50, the method for concurrent license management based on the physical model further includes steps C10 to C20: Step C10: Encrypt the license file using the public key corresponding to the license file.

[0061] Step C20, using the private key corresponding to the license file to sign the encrypted license file, wherein, after receiving the license file sent by the central server, the first device uses the private key corresponding to the license file to decrypt the encrypted license file, and uses the public key corresponding to the license file to verify the signature of the license file.

[0062] In order to ensure the security and integrity of the license file, this implementation adopts public key encryption and digital signature technology to generate a key pair, encrypt the license file, and sign the file to ensure that only legitimate devices can decrypt and verify the license file. After receiving the license file sent by the central server, the first device can use the private key to decrypt the license file and use the public key to verify the signature to ensure that the file has not been tampered with and comes from a trusted source file.

[0063] Based on the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 3 After step B40, the method for concurrent license management based on the object model further includes steps D10 to D30: Step D10, monitoring the network status information and permission status information of all devices in the preset object model through the preset object model, wherein the network status information includes network delay information, bandwidth information and load information.

[0064] It should be noted that, in addition to being able to actively obtain device information of the physical model, the preset physical model can also actively detect information of all devices in the physical model.

[0065] Step D20, analyzing the comprehensive status of each device according to the network status information and the permission status information to obtain a comprehensive status score corresponding to each device.

[0066] Step D30, if a fourth device is detected whose comprehensive status score is less than a preset status score threshold, the identifier of the fourth device is obtained, the third license type is determined according to the license status information corresponding to the fourth device, a license deletion instruction corresponding to the third license type is sent to the fourth device based on the identifier, and the concurrent status information and concurrent device list corresponding to the third license type are updated according to the identifier of the fourth device.

[0067] It should be noted that the preset status score threshold is the set minimum score threshold. The comprehensive status scores of all devices are traversed to find devices with scores lower than the threshold, the identifiers of the low-scoring devices are recorded, the license status information of the devices is queried according to the device identifiers, the type of license to be deleted is determined according to the license status information, and a license deletion instruction is sent to the devices. At the same time, the concurrent status information in the database is updated, the corresponding concurrent count is reduced, and the device identifier is removed from the concurrent device list.

[0068] This embodiment monitors the status of all devices through a preset object model, and when it is detected that the status score of some devices is lower than the threshold, it takes corresponding measures to optimize resource allocation, dynamically adjust license allocation, and ensure the effective use of resources. Through real-time monitoring and dynamic adjustment, the system can adapt to the ever-changing network environment and device status.

[0069] In a feasible implementation manner, after step D10, steps E10 to E20 may also be included: Step E10: Periodically detect the license load of each device according to the license status information.

[0070] It should be noted that a scheduled task scheduler (such as cron job, Celery, Quartz, etc.) is used to periodically trigger the license load detection process to obtain the license status information of each device from the database, and calculate the license load of each device based on the license status information.

[0071] Step E20, if a fifth device is detected whose license load is greater than a preset device load threshold, obtain the identifier of the fifth device, determine the third license type based on the license status information corresponding to the fifth device, send a license deletion instruction corresponding to the third license type to the fifth device based on the identifier, and update the concurrency status information and concurrent device list corresponding to the third license type based on the identifier of the fifth device.

[0072] It should be noted that each device has a corresponding preset device load threshold, and the license loads of all devices are traversed to find the devices that exceed the preset threshold. The license status information includes all types of licenses that exist for the device, and the licenses of all devices in the fifth device can be removed. The third license type is the type of all licenses that have been allocated to the fifth device.

[0073] This implementation periodically detects the license load of each device. When the license load of a device exceeds a preset threshold, measures may need to be taken to reduce the burden on the device, such as revoking certain licenses. This can adapt to the ever-changing network environment and device status, dynamically adjust license allocation, and ensure efficient use of resources.

[0074] Based on the second embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the above-mentioned second embodiment can be referred to the above introduction, and will not be repeated later. On this basis, after step B40, the license concurrent management method based on the object model also includes steps F10 to F50: Step F10: monitoring the geographic location information of all devices in the preset object model through the preset object model.

[0075] It should be noted that the preset object model can monitor changes in the geographical location information of each device.

[0076] Step F20: If a sixth device whose geographical location information has changed is detected, the latest location information of the sixth device is obtained.

[0077] It should be noted that the currently acquired location information is compared with the previously stored location information, and if it is found that the location information of a certain device has changed, the device is marked.

[0078] Step F30, calculating the spatial distance between the sixth device and other devices except the sixth device according to the latest position information.

[0079] It should be noted that the latest location information of the sixth device and the location information of all other devices are read. If the geographical location of the device is represented by detecting each device P_i detecting each device = detecting each device [x_i, detecting each device y_i, detecting each device z_i] detecting each device, then the central server calculates the distance between the devices through the spatial distance: di_ij detecting each device = detecting each device sqrt((x_i detecting each device - detecting each device x_j)^2 detecting each device + detecting each device (y_i detecting each device - detecting each device y_j)^2 detecting each device + detecting each device (z_i detecting each device - detecting each device z_j)^2).

[0080] Step F40, adjusting the networking scheme of the preset object model according to each spatial distance.

[0081] It should be noted that the network topology is redesigned based on the spatial distance information. Specifically, the connection between devices can be represented by a graph G = (V, E), where V is the set of device vertices, E is the set of connection edges between devices, and each edge has a weight. According to the geographic location information of each device, the spatial distance between each pair of devices is calculated. According to the location information of the devices and the calculated distance, a weighted undirected graph G = (V, E) is constructed. The connection between devices is optimized by the minimum spanning tree algorithm (such as Prim or Kruskal algorithm) to ensure the shortest transmission path: for any device pair D_i, D_j, the path with the smallest d_ij is selected to build the network. Optimization formula: min Σ(i,j) ∈ E d_ij.

[0082] In addition, it should be noted that if the distance between devices Di and Dj is too large, resulting in low transmission efficiency of direct connection, the network performance can be optimized by adjusting the networking solution. The communication quality data (such as delay, packet loss rate, etc.) between each device and its neighboring devices is collected through the preset object model, and a reasonable threshold is set for the maximum acceptable distance or maximum delay between devices. When the distance or delay between two devices exceeds this threshold, the system considers them unsuitable for direct communication and triggers the adjustment of the networking solution. Use Prim's algorithm or Kruskal's algorithm to recalculate the minimum spanning tree of the entire network. In the process of building the MST, exclude those edges with too large distances, thereby ensuring that the new MST does not contain inefficient long-distance connections. Then, according to the latest network topology and the relationship between devices, that is, the latest networking solution, the allocation of licenses is dynamically adjusted.

[0083] Step F50: updating the network status information of each device in the preset object model based on the adjusted networking solution.

[0084] It should be noted that after the networking plan is adjusted, the network status information between the devices also changes, which may affect the license allocation of some devices. At this time, it is necessary to update the network status information of each device in the preset object model in real time, and reorganize the license allocation based on the updated network status information.

[0085] This embodiment monitors the changes in the geographical location of the device, dynamically adjusts the network topology to adapt to the changes in the device location, and dynamically adjusts the networking solution based on these changes, which can ensure the stability and efficiency of the network connection, help optimize resource allocation, and reduce communication delays.

[0086] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the license concurrency management method based on the physical model of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0087] This application also provides a license concurrent management device based on the physical model, please refer to Figure 4 , the license concurrent management device based on the physical model includes: The application module 10 is configured to receive a license application request sent by a plurality of first devices, wherein the license application request includes an identifier of the first device and a first license type; An acquisition module 20, configured to acquire a license file corresponding to the first license type and a concurrent device list corresponding to the license file, wherein the license file includes an activation code and concurrent status information; A status module 30, configured to obtain network status information and permission status information of each of the first devices through a preset object model; A screening module 40, configured to screen out second devices that have passed the license application from each of the first devices according to the concurrent status information, the network status information and the license status information; The allocation module 50 is configured to send the license file to the second device, and update the concurrent status information and the concurrent device list of the license file according to the identifier of the second device.

[0088] The license concurrent management device based on the physical model provided by the present application adopts the license concurrent management method based on the physical model in the above-mentioned embodiment, which can solve the technical problem that the traditional license system cannot effectively manage the concurrent use of multiple devices. Compared with the prior art, the beneficial effects of the license concurrent management device based on the physical model provided by the present application are the same as the beneficial effects of the license concurrent management method based on the physical model provided by the above-mentioned embodiment, and the other technical features in the license concurrent management device based on the physical model are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0089] The present application provides a license concurrency management device based on a physical model, and the license concurrency management device based on a physical model includes: at least one processor; and a memory 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 license concurrency management method based on the physical model in the above-mentioned embodiment one.

[0090] Reference below Figure 5 , which shows a schematic diagram of the structure of a license concurrent management device based on a physical model suitable for implementing an embodiment of the present application. The license concurrent management device based on a physical model 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 5 The illustrated device for concurrent license management based on a physical model is merely an example and should not limit the functions and scope of use of the embodiments of the present application.

[0091] like Figure 5As shown, the license concurrent management device based on the physical model may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: 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 license concurrent management device based on the physical model are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through 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, 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 can allow the physical model-based license concurrency management device to communicate with other devices wirelessly or by wire to exchange data. Although the physical model-based license concurrency management device with various systems is shown in the figure, 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.

[0092] 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.

[0093] The license concurrent management device based on the physical model provided by the present application adopts the license concurrent management method based on the physical model in the above-mentioned embodiment, which can solve the technical problem that the traditional license system cannot effectively manage the concurrent use of multiple devices. Compared with the prior art, the beneficial effects of the license concurrent management device based on the physical model provided by the present application are the same as the beneficial effects of the license concurrent management method based on the physical model provided by the above-mentioned embodiment, and the other technical features in the license concurrent management device based on the physical model are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0094] 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.

[0095] 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.

[0096] 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 license concurrency management method based on the object model in the above-mentioned embodiment.

[0097] 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 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: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), 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, which may be used by or in combination with an instruction execution 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: Radio Frequency), etc., or any suitable combination of the above.

[0098] The computer-readable storage medium may be included in the concurrent license management device based on the physical model; or may exist independently without being assembled into the concurrent license management device based on the physical model.

[0099] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a license concurrent management device based on a physical model, the license concurrent management device based on a physical model: receives license application requests sent by multiple first devices, wherein the license application request includes an identifier of the first device and a first license type; obtains a license file corresponding to the first license type and a concurrent device list corresponding to the license file, wherein the license file includes an activation code and concurrent status information; obtains network status information and license status information of each first device through a preset physical model; filters out second devices that pass the license application from each first device based on the concurrent status information, network status information and license status information; sends the license file to the second device, and updates the concurrent status information and concurrent device list of the license file based on the identifier of the second device.

[0100] 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).

[0101] 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 square 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0103] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned concurrent license management method based on the physical model, and can solve the technical problem that the traditional license system cannot effectively manage the concurrent use of multiple devices. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the concurrent license management method based on the physical model provided in the above-mentioned embodiment, and will not be repeated here.

[0104] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned method for concurrent license management based on a physical model when executed by a processor.

[0105] The computer program product provided by this application can solve the technical problem that the traditional license system cannot effectively manage the concurrent use of multiple devices. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the concurrent license management method based on the object model provided in the above embodiment, which will not be repeated here.

[0106] 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 concurrent license management based on a physical model, characterized in that: Applied to a central server, the concurrent license management method based on the physical model includes: Receiving license application requests sent by multiple first devices, wherein the license application requests include identifiers of the first devices and first license types; Acquire a license file corresponding to the first license type and a concurrent device list corresponding to the license file, wherein the license file includes an activation code and concurrent status information; Acquire the network status information and the permission status information of each of the first devices through a preset object model; Filter out second devices that have passed the license application from each of the first devices according to the concurrent status information, the network status information, and the license status information; The license file is sent to the second device, and concurrent status information and a concurrent device list of the license file are updated according to the identifier of the second device.

2. The method for concurrent license management based on a physical model according to claim 1, characterized in that: The step of selecting the second device that passes the license application from the first device according to the concurrent status information, the network status information and the license status information comprises: Determine the available concurrency number of the first license type according to the concurrency status information; If the number of the first devices is less than or equal to the available concurrency number, all the first devices are used as second devices; If the number of each of the first devices is greater than the available concurrent number, each of the first devices is prioritized according to the network status information and the license status information of each of the first devices to obtain a priority sequence including all of the first devices, and the number of second devices equal to the available concurrent number is determined according to the priority sequence.

3. The method for concurrent license management based on a physical model according to claim 2, characterized in that: The step of prioritizing each of the first devices according to the network status information and the permission status information of each of the first devices to obtain a priority sequence including all of the first devices includes: Analyze the comprehensive status of each of the first devices according to the network status information and the permission status information to obtain a comprehensive status score of each of the first devices; The first devices are sorted in descending order according to the magnitude of the comprehensive status scores to generate a priority sequence for the first devices.

4. The method for concurrent license management based on a physical model according to claim 1, characterized in that: Before the step of receiving the license application request sent by the first device, the method further includes: receiving a license generation request sent by a third device, wherein the license generation request includes hardware information of the six devices and a second license type, and the second license type is a license type that does not exist in the central server; Determine corresponding concurrency status information and a concurrent device list according to the second license type, wherein the concurrency status information includes a total concurrency number, a current concurrency number, and an available concurrency number; generating an activation code corresponding to the second license type according to the hardware information of the third device; A concurrent device list corresponding to the second license type and a license file including concurrent status information corresponding to the second license type and the activation code are created, wherein the license file corresponding to the second license type includes the license file corresponding to the first license type.

5. The method for concurrent license management based on a physical model according to claim 4, characterized in that: After the step of creating a concurrent device list corresponding to the second license type and a license file including the concurrent status information corresponding to the second license type and the activation code, the method further includes: Generate a public key and a private key corresponding to the license file; Before the step of sending the license file to the second device, the method further includes: Encrypting the license file using the public key corresponding to the license file; The encrypted license file is signed using the private key corresponding to the license file, wherein, after receiving the license file sent by the central server, the second device uses the private key corresponding to the license file to decrypt the encrypted license file and uses the public key corresponding to the license file to verify the signature of the license file.

6. The method for concurrent license management based on a physical model according to claim 4, characterized in that: After the step of creating a concurrent device list corresponding to the second license type and a license file including the concurrent status information corresponding to the second license type and the activation code, the method further includes: Monitoring network status information and permission status information of all devices in the preset object model through the preset object model, wherein the network status information includes network delay information, bandwidth information and load information; Analyze the comprehensive status of each of the devices according to the network status information and the permission status information to obtain a comprehensive status score corresponding to each of the devices; If a fourth device is detected whose comprehensive status score is less than a preset status score threshold, the identifier of the fourth device is obtained, the third license type is determined according to the license status information corresponding to the fourth device, a license deletion instruction corresponding to the third license type is sent to the fourth device based on the identifier, and the concurrent status information and concurrent device list corresponding to the third license type are updated according to the identifier of the fourth device.

7. The method for concurrent license management based on a physical model according to claim 6, characterized in that: After the step of monitoring the network status information and the permission status information of all devices in the preset object model through the preset object model, the method further includes: Regularly detecting the license load of each of the devices according to the license status information; If a fifth device is detected whose license load is greater than a preset device load threshold, the identifier of the fifth device is obtained, the third license type is determined based on the license status information corresponding to the fifth device, a license deletion instruction corresponding to the third license type is sent to the fifth device based on the identifier, and the concurrency status information and concurrent device list corresponding to the third license type are updated based on the identifier of the fifth device.

8. The method for concurrent license management based on a physical model according to claim 6, characterized in that: After the step of monitoring the network status information and the permission status information of all devices in the preset object model through the preset object model, the method further includes: Monitoring the geographic location information of all devices in the preset object model through the preset object model; If a sixth device whose geographical location information has changed is detected, obtaining the latest location information of the sixth device; Calculate the spatial distance between the sixth device and other devices except the sixth device according to the latest location information; Adjusting the networking scheme of the preset object model according to each of the spatial distances; The network status information of each device in the preset object model is updated based on the adjusted networking solution.

9. A method and device for concurrent license management based on a physical model, 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 concurrent license management based on a physical model according to any one of claims 1 to 8.

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 concurrent license management method based on the physical model as described in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Method, equipment and system for multiple equipment using same permission

    CN101311938A

  • License control method and license control system

    CN103795694A

  • IOT permission platform and architecture

    CN115694869A

  • Software license idle release and intelligent distribution method and system

    CN117131472A