Recovery method and system of medical software license file
Technical Field
The invention relates to the technical field of intelligent computer software, in particular to a method and a system for recovering medical software license files.
Background
The medical software has long research and development period, high cost and small shipment quantity, so the copyright protection of the software is very important. And because the life cycle of the medical software is long, the parts and equipment may need to be replaced in the product maintenance process, and therefore the software needs to be re-licensed. After the software is re-licensed, the old license file of the software needs to be destroyed. In actual operation, old license files are generally destroyed manually, and the cost of medical software maintenance is increased virtually. There is thus a need for an efficient software method to automatically recycle old license files.
There are some methods for automatically destroying old license files, such as "a software license recycling method" in patent No. 200810105876.7, which obtains a software license by connecting to a software developer server, calls a software license recycling module in a software protection device, and deletes a software license to be recycled. A method and a system for recovering and automatically reapplying software license, which are disclosed in patent No. 201010538203.8, are characterized in that a software developer server is connected to send a function module software license request, and a server side responds according to the request, so that the recovery and reapplication of the software license are realized. Existing license file recycling solutions all require connection with a server of a software developer and require medical software to access the internet for recycling. However, most of the existing medical software is single-machine application, and the existing solutions cannot meet the requirement of recovering the license file of the medical software because the existing medical software cannot access the internet based on the consideration of safety and stability.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a system for recovering a medical software license file, aiming at the defects of the prior art, so as to solve the problem that the existing method for recovering a medical software license file cannot meet the requirement for recovering a medical software license file.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method of reclaiming a medical software license file, comprising:
when a first terminal device loaded with medical software is started, reading and broadcasting a first license file carried by the first terminal device;
the second terminal equipment receives the first license file and compares a second license file carried by the second terminal equipment with the first license file;
and if the software identification number contained in the second license file is carried in the first license file, deleting the second license file.
The method for recovering the medical software license file comprises the following steps that when a first terminal device loaded with the medical software is started, the first terminal device reads and broadcasts the carried first license file:
the first terminal device receives a first license file of medical software sent by an operator end through a mail, and configures the first license file, wherein the first license file comprises a medical institution name, an old software identification number and a new software identification number.
The method for recovering the medical software license file, wherein the first terminal device receives the first license file of the medical software sent by the operator end through a mail, and before configuring the first license file, the method further comprises:
the operator end receives an update application of the medical software and acquires a medical institution name, a software identification number of the first terminal device and a software identification number of the second terminal device carried by the application;
judging whether the medical institution name and the software identification number of the second terminal device are stored or not;
when the license file exists, generating a first license file according to the name of the medical institution, the software identification number of the first terminal equipment and the software identification number of the second terminal equipment;
and sending the first license file to the first terminal equipment in a mail mode.
The method for recovering the medical software license file includes that, when the first terminal device loaded with the medical software is started, reading and broadcasting the first license file of the medical software carried by the first terminal device includes:
when a first terminal device loaded with medical software is started, reading a first license file of the medical software carried by the first terminal device;
detecting whether a software identification number and a medical institution name of the medical software are contained in the first license file;
and if so, broadcasting the first license file to a local area network where the first terminal equipment is located.
The method for recovering the medical software license file, wherein the step of receiving the first license file by the second terminal device and comparing the second license file carried by the second terminal device with the first license file specifically comprises the following steps:
the second terminal equipment receives and analyzes the broadcast carrying the first license file in the local area network where the second terminal equipment is located;
acquiring and analyzing a second license file carried by the second terminal device to obtain an old software identification number and a new software identification number contained in the second terminal device;
and judging whether the old software identification number or the new software identification number is contained in the first license file.
A system for recycling a medical software license file, comprising: the first terminal equipment and the second terminal equipment are both loaded with medical software;
the first terminal device includes:
the reading module is used for reading and broadcasting a first permission file carried by the first terminal equipment when the first terminal equipment is started;
the second terminal device includes:
the comparison module is used for receiving the first license file and comparing a second license file carried by the comparison module with the first license file;
and the deleting module is used for deleting the second license file when the software identification number contained in the second license file is carried in the first license file.
The recycling system of the medical software license file, wherein the first terminal device further comprises:
the receiving module is used for receiving a first license file of the medical software sent by an operator end through a mail and configuring the first license file, wherein the first license file comprises a medical institution name, an old software identification number and a new software identification number.
The recycling system of the medical software license file also comprises an operator end;
the operator side comprises:
the acquisition module is used for receiving the update application of the medical software and acquiring the name of a medical institution, the software identification number of the first terminal equipment and the software identification number of the second terminal equipment which are carried by the application;
the judging module is used for judging whether the medical institution name and the software identification number of the second terminal equipment are stored or not;
the generation module is used for generating a first license file according to the name of the medical institution, the software identification number of the first terminal device and the software identification number of the second terminal device when the first license file exists;
and the sending module is used for sending the first license file to the first terminal equipment in a mail mode.
The recovery system of the medical software license file comprises a reading module and a recovery module, wherein the reading module specifically comprises:
the reading unit is used for reading a first license file of the medical software carried by the reading unit when a first terminal device loaded with the medical software is started;
the detection unit is used for detecting whether the first license file contains the software identification number and the name of the medical institution of the medical software;
and the broadcasting unit is used for broadcasting the first license file to a local area network where the first terminal equipment is located when the first license file is contained.
The recycling system of the medical software license file comprises a comparison module, a storage module and a recovery module, wherein the comparison module specifically comprises:
the analysis unit is used for receiving and analyzing the broadcast carrying the first license file in the local area network where the analysis unit is located;
the acquisition unit is used for acquiring and analyzing a second license file carried by the acquisition unit to obtain an old software identification number and a new software identification number contained in the second terminal equipment;
and the judging unit is used for judging whether the old software identification number or the new software identification number is contained in the first license file.
Has the advantages that: compared with the prior art, the invention provides a recovery method and a recovery system of medical software license files, wherein the method comprises the following steps: when a first terminal device loaded with medical software is started, reading and broadcasting a first license file carried by the first terminal device; the second terminal equipment receives the first license file and compares a second license file carried by the second terminal equipment with the first license file; and if the software identification number contained in the second license file is carried in the first license file, deleting the second license file. According to the invention, the license file carried by the medical soft terminal broadcast is loaded, so that other terminal equipment which is in the same local area network with the medical soft terminal and is loaded with the medical software automatically acquires the license file, compares the license file with the license file of the terminal equipment, and recovers the license file according to the comparison result. Therefore, the terminal equipment can be used for acquiring the old license file without connecting the Internet, and the requirement of recycling the license file of the medical software is met.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the method for recycling a medical software license file according to the present invention.
FIG. 2 is a schematic diagram of the architecture of the recovery system for medical software license files provided by the present invention.
Detailed Description
The invention provides a method and a system for recovering medical software license files, which are further described in detail below by referring to the attached drawings and embodiments in order to make the purpose, technical scheme and effect of the invention clearer and clearer. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the present invention, suffixes such as "module", "part", or "unit" used to indicate elements are used only for facilitating the description of the present invention, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The terminal device may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
The invention will be further explained by the description of the embodiments with reference to the drawings.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for recycling a medical software license file according to a preferred embodiment of the present invention. The method comprises the following steps:
s100, reading and broadcasting a first license file carried by a first terminal device when the first terminal device loaded with medical software is started;
s200, the second terminal equipment receives the first license file and compares a second license file carried by the second terminal equipment with the first license file;
s300, if the software identification number contained in the second license file is carried in the first license file, deleting the second license file.
The embodiment discloses a recovery method of medical software license files, which broadcasts the license files carried by a loaded medical software terminal so that other terminal equipment loaded with medical software in the same local area network automatically acquires the license files, compares the license files with the license files of the other terminal equipment and recovers the license files according to the comparison result. Therefore, the terminal equipment can be used for acquiring the old license file without connecting the Internet, and the requirement of recycling the license file of the medical software is met.
Specifically, in step S100, the first license file is a certificate that the operator side of the medical software licenses the terminal device loaded with the original medical software to use the medical software. The first license file may include a medical facility name, an old software identification number, a new software identification number, and the like. In practical applications, since the terminal device may include a plurality of medical software, in order to determine the medical software corresponding to the first license file, the first license file may further include a software identifier. The software identification number is a globally unique software identification number of the medical software. That is, a medical software can be uniquely identified based on the software identification number.
The software identification number can be a unique software identification number generated according to the operating environment of the medical software when the medical software is installed on the terminal equipment. For example, the software identification number is a globally unique software identification number generated according to a CPU, a memory, a network card, and a hard disk serial number of a medical software operating environment, and is used for uniquely identifying software. The software identification number may be expressed in the form of:
software identification number = Random (MD 5(S1+ S2+ S3+ S4+ S5));
wherein, S1 is a CPU serial number, S2 is a memory serial number, S3 is a network card serial number, S4 is a hard disk serial number, S5 is a fixed character string KJ790GHYT6BJHSA5GM90 hygfvbtkjjin, MD5 is an MD5 algorithm, the operation result is a character string with a length of 32 bytes, Random is a Random algorithm, and the 3 rd, 7 th, 11 th, 12 th, 22 th and 29 th bits are extracted from the 32-byte character string to form a 6-byte software identification number.
Correspondingly, the first license file generation method may be: firstly, storing a software identification number, a name of a mechanism where medical software is located, an old software identification number and a new software identification number in an authorization file, wherein the software identification number is the same as the new software identification number. After the storage of the authorization file is finished, whether the medical software authorized by the medical institution is newly authorized is judged, if the authorization is newly authorized, the 'old software identification number' is filled in the blank, otherwise, the software identification number before the authorization is filled in the blank. The combined string is then RSA encrypted to obtain a first license file. The license file is represented as:
Wherein S1 represents a software identification number, S2 represents the name of the organization where the medical software is located, S3 represents an old software identification number, S4 represents a new software identification number, S5 represents a fixed character string U9OKJI8 IKMHJUYFDDTVHGT 65GHB67H23H,
the RSA algorithm is shown, and (n, e) is the public key of the RSA algorithm.
It should be noted that the first license file is generated by the medical software operator and sent to the first terminal device. The license files generated by the medical software operator end for the medical software are generated in the above mode. The first license file is a description of the license file and is not particularly meaningful.
Further, since the first license file is generated by the operator, reading and broadcasting the carried first license file before the first terminal device loading the medical software is started includes:
s01, the first terminal device receives a first license file of the medical software sent by an operator end through a mail, and configures the first license file, wherein the first license file comprises a medical institution name, an old software identification number and a new software identification number.
Specifically, the first permission file of the medical software sent by the first terminal device through the mail end operator refers to a mailbox formulated by an operator end sending the first permission file to a medical software authorization mechanism, the first terminal device may directly log in the mailbox and obtain the first permission file, or other terminals log in the mailbox and obtain the first permission file, and forward the first permission file to the first terminal device, so that the first terminal device configures the first permission file.
In an embodiment of the present invention, before the first terminal device receives a first license file of medical software sent by an operator through mail, and configures the first license file, the method further includes:
s001, an operator receives an update application of medical software, and acquires a medical institution name, a software identification number of first terminal equipment and a software identification number of second terminal equipment carried by the application;
s002, judging whether the medical institution name and the software identification number of the second terminal device are stored or not;
s003, when the license file exists, generating a first license file according to the name of the medical institution, the software identification number of the first terminal equipment and the software identification number of the second terminal equipment;
and S004, sending the first license file to the first terminal equipment in a mail mode.
Specifically, in step S001, the request for updating the medical software received by the operator may be sent by the medical software organization by mail or by telephone. And the application carries the name of the medical institution using the medical software, the software identification number of the first terminal device and the software identification number of the second terminal device. The software identification number of the first terminal device refers to a software identification number generated when the medical software is installed on the first terminal device, and the software identification number of the second terminal device is a software identification number generated when the medical software is installed on the second terminal device. The generation process of the software identification number is as described above, and is not described herein again.
In step S002, the name of the medical institution and the software identification number of the second terminal device are searched for in the database for storing the license file. That is, the operator side determines whether the medical institution has authorized the medical software according to the name of the medical institution, and generates the first license file based on the determination. It should be noted that, in this embodiment, the second terminal device is defaulted to a device that has already installed the medical software and configured the license file, which may be referred to as an old terminal device, and its corresponding software identification number is an old software identification number. And the first terminal device is defaulted to be a device needing to be configured with the license file, and is marked as a new terminal device, and the corresponding software identification number is a new software identification number.
In the step S003, the presence means that only the medical institution name exists or that the medical institution name and the software identification number of the second terminal device exist at the same time. That is, when the medical institution corresponding to the medical institution name has the qualification for using the medical software, a corresponding license file is generated for the medical institution. And correspondingly configuring the structure searched by the content contained in the license file. Specifically, when only the medical institution name exists, the institution name is written into the "institution name" field in the license file, the "old software identification number" field is written to be null, and the software identification number of the first terminal device is written into the "new software identification number" in the license file. When the medical institution name and the software identification number of the second terminal device exist at the same time, the institution name is written into the 'institution name' field in the license file, the software identification number of the second terminal device is written into the 'old software identification number' field in the license file, and the software identification number of the first terminal device is written into the 'new software identification number' in the license file.
In step S004, sending the first license file to the first terminal device by mail means sending the first license file to the medical institution side by mail, where the medical institution side may be the first terminal device or other terminal devices in the medical institution. And when the license file is the other terminal equipment, copying the first license file to the first terminal equipment.
In this embodiment, the step S100: when the first terminal device loaded with the medical software is started, reading and broadcasting the first license file of the medical software carried by the first terminal device specifically includes:
s101, when a first terminal device loaded with medical software is started, reading a first license file of the medical software carried by the first terminal device;
s102, detecting whether the first license file contains a software identification number and a medical institution name of the medical software;
s103, if the first permission file is contained, broadcasting the first permission file to a local area network where the first terminal equipment is located.
Specifically, the software identification number and the name of the medical institution are displayed on a medical display report when the medical software is configured in advance for generating a medical diagnosis report. The detection of whether the software identification number and the medical institution name of the medical software are contained in the first license file is to judge whether the first license file is the license file of the medical software. If the first license file is the license file of the medical software, broadcasting the first license file to a local area network where the first terminal device is located; and if the license file is contained in the first license file, the first license file is not the license file of the medical software, and the medical software is quitted.
In this embodiment, the local area network refers to an intranet of the medical institution, which may be formed by a wired, wireless, WIFI, bluetooth, 3G/4G, public cloud, private cloud, or the like.
In step S200, the second terminal device is a terminal device loaded with the medical software and located in the same local area network as the first terminal device. And the second terminal equipment receives the broadcast carrying the license file in the local area network in real time. And comparing the received license file with the license file carried by the user to determine whether the medical software installed in the user needs to be deleted.
Correspondingly, the step of receiving the first license file by the second terminal device, and comparing the second license file carried by the second terminal device with the first license file specifically includes:
s201, the second terminal equipment receives and analyzes the broadcast carrying the first license file in the local area network where the second terminal equipment is located;
s202, acquiring and analyzing a second license file carried by the terminal device to obtain an old software identification number and a new software identification number contained in the second terminal device;
s203, judging whether the old software identification number or the new software identification number is contained in the first license file.
Specifically, after receiving the first license file, the second terminal device obtains an old software identification number and a new software identification number carried by the first license file, compares the old software identification number and the new software identification number carried by the first license file with an old software identification number and a new software identification number in a second license file carried by the second terminal device, respectively, to determine whether the second license file carried by the second terminal device is an old license file, and performs corresponding operation according to a determination result.
In the step S300, if the software identifier included in the second license file carried in the first license file indicates that the old software identifier of the first license file is the new software identifier of the second license file, or the new software identifier of the first license file is the new software identifier of the second license file. When the old software identification number of the first license file is the new software identification number of the second license file, the second terminal equipment deletes the second license file of the second terminal equipment; when the old software identification number of the first license file is the new software identification number of the second license file, the second terminal device can delete the second license file of the second terminal device, and can also prompt the user that the medical software is used on the two devices at the same time, and delete the corresponding license file according to the operation of the user. In practical application, the prompt information feedback can also be stored, and when the terminal equipment is networked, the information is fed back to the operator side.
To further illustrate the method for recycling a medical software license file provided by the present invention, a specific embodiment is described below.
Example one
In the present embodiment, it is assumed that the host a is an old terminal for installing medical software, and the host B is a new terminal for installing medical software.
The method for recovering the medical software license file provided by the embodiment specifically comprises the following steps:
the medical institution end provides an update permission file application to the medical operator end;
the operator side obtains the medical institution name of the medical institution, the software serial number of the host A and the software serial number of the host B, and verifies whether the medical institution name and the software serial number of the host A exist in a preset customer management system; if the software serial number of the host B exists, the software serial number of the host B is written into a field of a new software serial number in the license file, the organization name is written into a field of an organization name in the license file, and the software serial number of the host A is written into a field of an old software serial number in the license file to license the file; if the software serial number of the host B exists, writing the software serial number of the host B into a field of a new software serial number in the license file, writing an organization name into a field of an organization name in the license file, and writing an old software serial number in the license file as null to generate the license file; sending the license file to a medical institution terminal by mail;
after receiving the permission file, the medical institution terminal copies the permission file to a host B;
the host B broadcasts a license file carried by the host B to an internal network;
the host A receives the license information broadcasted by the host B, checks whether the 'old software serial number' in the license information of the host B is consistent with the own software identification number, and deletes the license file carried by the host A if the 'old software serial number' in the license information of the host B is consistent with the own software identification number.
The present invention also provides a recycling system for medical software license files, as shown in fig. 2, which includes: a first terminal device 100 and a second terminal device 200 each loaded with medical software;
the first terminal device 100 includes:
the reading module 101 is configured to read and broadcast a first license file carried by a first terminal device when the first terminal device is started;
the second terminal device 200 includes:
a comparing module 201, configured to receive the first license file, and compare a second license file carried by the comparing module with the first license file;
and the deleting module 202 is configured to delete the second license file when the software identifier included in the second license file is carried in the first license file.
The recycling system of the medical software license file, wherein the first terminal device further comprises:
the receiving module is used for receiving a first license file of the medical software sent by an operator end through a mail and configuring the first license file, wherein the first license file comprises a medical institution name, an old software identification number and a new software identification number.
The recycling system of the medical software license file also comprises an operator end;
the operator side comprises:
the acquisition module is used for receiving the update application of the medical software and acquiring the name of a medical institution, the software identification number of the first terminal equipment and the software identification number of the second terminal equipment which are carried by the application;
the judging module is used for judging whether the medical institution name and the software identification number of the second terminal equipment are stored or not;
the generation module is used for generating a first license file according to the name of the medical institution, the software identification number of the first terminal device and the software identification number of the second terminal device when the first license file exists;
and the sending module is used for sending the first license file to the first terminal equipment in a mail mode.
The recovery system of the medical software license file comprises a reading module and a recovery module, wherein the reading module specifically comprises:
the reading unit is used for reading a first license file of the medical software carried by the reading unit when a first terminal device loaded with the medical software is started;
the detection unit is used for detecting whether the first license file contains the software identification number and the name of the medical institution of the medical software;
and the broadcasting unit is used for broadcasting the first license file to a local area network where the first terminal equipment is located when the first license file is contained.
The recycling system of the medical software license file comprises a comparison module, a storage module and a recovery module, wherein the comparison module specifically comprises:
the analysis unit is used for receiving and analyzing the broadcast carrying the first license file in the local area network where the analysis unit is located;
the acquisition unit is used for acquiring and analyzing a second license file carried by the acquisition unit to obtain an old software identification number and a new software identification number contained in the second terminal equipment;
and the judging unit is used for judging whether the old software identification number or the new software identification number is contained in the first license file.
The various modules of the above-described system for recycling medical software license files have been described in detail in the above-described method and will not be described in any further detail herein.
In the embodiments provided by the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.