Good license manager tools/techniques for custom toolboxes?

조회 수: 2 (최근 30일)
Peter
Peter 2014년 10월 8일
댓글: Bruno Pop-Stefanov 2014년 10월 10일
I see ML r2014b has some nice new functionality for creating ML toolboxes. We're looking to productize some of our in-house libraries and am wondering what tools/techniques people have used for license management of custom ML toolboxes.
Any experience or suggestions greatly appreciated!

답변 (1개)

Bruno Pop-Stefanov
Bruno Pop-Stefanov 2014년 10월 10일
There is currently no off-the-shelf functionality in MATLAB to add a licensing procedure to a custom toolbox. However, there are several possibilities to control and restrict the execution of your application.
A very simple way would be to use a shared file which can be accessed by your applications, possibly running on several clients connected by a network. This shared file would contain information about the number of your currently running applications. Whenever a new application is started, it first reads the shared file in order to check how many of other of your applications are already running. If the number of currently running applications is sufficiently low, it leaves a tag in the file. In the simplest case, this tag would be a counter which is increased by one.
This tag could also be some encrypted information containing user name, time, host name, etc. When the application is closed, it removes its tag from the file.
What about if an application has been terminated without having been able to remove its tag, e.g. crash, error in the application, etc.? This would lead to accumulation of incorrect information about the number of currently running applications in the shared file. This can be prevented by continuously updating the entries in the file, say every 15 minutes using the timer function. Therefore, a newly started application should not just count the number of allegedly running applications. It should only count the number of actually running applications by taking into account the current time and the last heartbeat from the registered applications and remove the tags from dead applications.
Of course, you have to make sure that the source code is not visible for the customer. You could either convert your MATLAB files to p-files using the PCODE function provided that the customer owns a MATLAB license and the necessary toolboxes. Or you could use the MATLAB Compiler to generate a standalone application if the customer does not have a MATLAB license.
  댓글 수: 1
Bruno Pop-Stefanov
Bruno Pop-Stefanov 2014년 10월 10일
I would also ask directly the authors of 3rd-party toolboxes that use a license management system. The first one I can think of is IB-MATLAB:

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Manage Products에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by