Medical equipment upgrading method, package management method, system device, equipment and medium
Through one-click upgrade package unifies the installation package format of multiple control units and automatically installs dependencies, the problem of low efficiency of medical equipment upgrades is solved and efficient and automated equipment upgrades are achieved.
Patent Information
- Application Number
- CN202410100806.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-23
- Publication Date
- 2025-07-25
AI Technical Summary
During the upgrade of existing medical equipment, software of different formats of multiple control units need to be downloaded and installed separately, resulting in inefficient efficiency and low fault tolerance.
It provides a one-click upgrade package, which contains the installation package and upgrade boot information of the same target format corresponding to multiple control units. Through automatic installation of analysis and dependency relationships, the sequential upgrade of multiple control units is realized.
It improves the upgrade efficiency of medical equipment, reduces the number of restarts, simplifies the difficulty of version compatibility development, and improves the degree of automation of the system.
Smart Images

Figure CN120376085A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to an upgrade method and device for a medical device, a package management method and system, a medical device, an electronic device, and a storage medium. Background Art
[0002] Generally, complex medical devices, such as ultrasonic devices, often include multiple control units. Therefore, online upgrades are required for different formats of software of multiple control units. At the same time, the storage servers for different formats of software may be different, resulting in the need for upgrade operators to download software installation packages separately from different storage servers, with low efficiency. In addition, different installation packages must be installed strictly in sequence and the device needs to be restarted multiple times, with low fault tolerance and low efficiency.
[0003] Therefore, how to improve the upgrade efficiency of medical devices is a technical problem that needs to be solved by those skilled in the art. Summary of the Invention
[0004] The purpose of the present application is to provide an upgrade method and device for a medical device, a package management method and system, a medical device, an electronic device, and a storage medium, which improve the upgrade efficiency of medical devices.
[0005] To achieve the above purpose, the present application provides an upgrade method for a medical device, including:
[0006] Obtain a one-key upgrade package; wherein, the one-key upgrade package includes installation packages in the same target format corresponding to multiple different control units in the medical device, and upgrade guide information. The installation package includes a format package and a data package, and the upgrade guide information is used to describe the package information of each installation package and the dependency relationship between each installation package;
[0007] Parse the one-key upgrade package, and install the installation packages in sequence according to the package information of the installation packages and the dependency relationship between each installation package; wherein, during the installation of the installation packages, the data packages of the installation packages are called to implement the installation of the installation packages.
[0008] Wherein, the obtaining of the one-key upgrade package includes:
[0009] Obtain the one-key upgrade package from a mobile storage device connected to the medical device.
[0010] Wherein, the obtaining of the one-key upgrade package includes:
[0011] Obtain and parse the upgrade guide information through the network, and download the installation packages in the one-key upgrade package according to the obtained download link;
[0012] Correspondingly, the upgrade boot information further includes the download link of the installation package.
[0013] Wherein, the upgrade boot information includes any one or a combination of several of the package name, version number, supported device types, software platform types, storage paths, download links, installation sequences, and corresponding data packet information of the installation package.
[0014] Wherein, the format package includes a file header and an upgrade script.
[0015] Wherein, after parsing the one-key upgrade package, it further includes:
[0016] Storing the format package into a first target directory and storing the data packet corresponding to the format package into a second target directory according to the package information of the installation package.
[0017] Wherein, after parsing the one-key upgrade package, it further includes:
[0018] Displaying the installation packages included in the one-key upgrade package in a tree structure according to the dependency relationships between the installation packages, and determining the to-be-installed packages to be installed according to the obtained instructions;
[0019] Correspondingly, the installing the installation packages in sequence according to the package information of the installation package and the dependency relationships between the installation packages includes:
[0020] Installing the to-be-installed packages in sequence according to the package information of the to-be-installed packages and the dependency relationships between the to-be-installed packages.
[0021] Wherein, the installing the installation package by invoking the data packet of the installation package includes:
[0022] Invoking the driver interface corresponding to the hardware to be modified, and writing data to the hardware to be modified based on the content of the data packet of the installation package.
[0023] To achieve the above object, the present application provides an upgrade device for a medical device, including:
[0024] A first acquisition module, configured to acquire a one-key upgrade package; wherein, the one-key upgrade package includes installation packages in the same target format corresponding to multiple different control units in the medical device and upgrade boot information, the installation package includes a format package and a data packet, and the upgrade boot information is used to describe the package information of each installation package and the dependency relationships between the installation packages;
[0025] An installation module for parsing the one-key upgrade package and installing the installation packages in sequence according to the package information of the installation packages and the dependency relationships between the installation packages; wherein, during the installation of the installation packages, the data packages in the installation packages are called to implement the installation of the installation packages.
[0026] To achieve the above object, the present application provides a medical device, including:
[0027] A memory for storing computer programs;
[0028] A processor for implementing the steps of the upgrade method of the medical device as described above when executing the computer program.
[0029] To achieve the above object, the present application provides a package management method, including:
[0030] Obtaining format packages and data packages corresponding to a plurality of installation packages through an input interface;
[0031] Determining one or more target installation packages included in the one-key upgrade package, and generating upgrade guidance information based on the package information of the target installation packages and the dependency relationships between different target installation packages;
[0032] Generating a one-key upgrade package based on the format packages, data packages of the target installation packages, and the upgrade guidance information.
[0033] To achieve the above object, the present application provides a package management system, including:
[0034] A second acquisition module for obtaining format packages and data packages corresponding to a plurality of installation packages through an input interface;
[0035] A first generation module for determining one or more target installation packages included in the one-key upgrade package, and generating upgrade guidance information based on the package information of the target installation packages and the dependency relationships between different target installation packages;
[0036] A second generation module for generating a one-key upgrade package based on the format packages, data packages of the target installation packages, and the upgrade guidance information.
[0037] To achieve the above object, the present application provides an electronic device, including:
[0038] A memory for storing computer programs;
[0039] A processor for implementing the steps of the package management method as described above when executing the computer program.
[0040] To achieve the above object, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned medical device upgrade method or package management method are implemented.
[0041] As can be seen from the above solution, a medical device upgrade method provided by the present application includes: obtaining a one-key upgrade package; wherein, the one-key upgrade package includes installation packages in the same target format corresponding to multiple different control units in the medical device, and upgrade guidance information. The installation package includes a format package and a data package, and the upgrade guidance information is used to describe the package information of each installation package and the dependency relationship between each installation package; parsing the one-key upgrade package, and installing the installation packages in sequence according to the package information of the installation package and the dependency relationship between each installation package; wherein, during the installation of the installation package, the data package of the installation package is called to implement the installation of the installation package.
[0042] In the present application, the installation packages corresponding to different control units are unified into a target format. Multiple installation packages are integrated through a one-key upgrade package. The upgrade program parses the one-key upgrade package and installs different installation packages in sequence according to the upgrade guidance information therein, realizing the sequential automatic upgrade of multiple control units and improving the upgrade efficiency of the medical device. The present application also discloses a medical device upgrade device, a package management method, a system, a medical device, an electronic device, and a storage medium, which can also achieve the above technical effects.
[0043] It should be understood that the above general description and the following detailed description are only exemplary and do not limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings. The drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification, and are used together with the following specific embodiments to explain the present disclosure, but do not constitute a limitation to the present disclosure. In the drawings:
[0045] Figure 1 FIG. is a flowchart of a medical device upgrade method shown according to an exemplary embodiment;
[0046] Figure 2 FIG. is a flowchart of a package management method shown according to an exemplary embodiment;
[0047] Figure 3Structural diagram of an upgrade device for a medical device shown according to an exemplary embodiment;
[0048] Figure 4 Structural diagram of a package management system shown according to an exemplary embodiment;
[0049] Figure 5 Structural diagram of a medical device or an electronic device shown according to an exemplary embodiment. Detailed implementation manner
[0050] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present application. In addition, in the embodiments of the present application, "first", "second", etc. are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence.
[0051] The embodiments of the present application disclose an upgrade method for a medical device, which improves the upgrade efficiency of the medical device.
[0052] See Figure 1 , a flowchart of an upgrade method for a medical device shown according to an exemplary embodiment, as Figure 1 shown, including:
[0053] S101: Obtain a one-key upgrade package; wherein, the one-key upgrade package includes installation packages in the same target format corresponding to multiple different control units in the medical device, upgrade boot information, the installation package includes a format package and a data package, and the upgrade boot information is used to describe the package information of each installation package and the dependency relationship between each installation package;
[0054] The execution subject of this embodiment is a medical device, and the purpose is to upgrade multiple different control units in the medical device. In specific implementation, the medical device can call an upgrade program to upgrade multiple different control units. When the upgrade program is executed, a one-key upgrade package is obtained.
[0055] When upgrading medical equipment, it can be divided into mobile storage device upgrade and network upgrade according to different upgrade methods. As a feasible implementation method, the obtaining of the one-key upgrade package includes: obtaining the one-key upgrade package from a mobile storage device connected to the medical equipment. The mobile storage device here can include a USB (Universal Serial Bus) flash drive, that is, a U disk. For mobile storage device upgrade, it is necessary to decompress and store the one-key upgrade package downloaded from the package management system in the mobile storage device in advance.
[0056] As another feasible implementation method, the obtaining of the one-key upgrade package includes: obtaining and parsing the upgrade boot information through the network, and downloading the installation package in the one-key upgrade package according to the obtained download link; correspondingly, the upgrade boot information also includes the download link of the installation package. Network upgrade needs to rely on the network to download the one-key upgrade package from the package management system, obtain the download link of the installation package according to the upgrade boot information therein, and download the installation package through the network according to this download link.
[0057] The one-key upgrade package includes installation packages in the same target format corresponding to multiple different control units in the medical equipment, and upgrade boot information. In specific implementation, the installation packages in different formats in the related technology are unified into installation packages in the target format. The target format is a custom unified format, that is, in this embodiment, the installation packages corresponding to different control units are unified into the target format. The installation package includes a format package and a data package. The format package includes a file header and an upgrade script. The format packages of each control unit can correspond to data packages in different formats, and the data packages in different formats contain different formats of upgrade data. When making the installation package, the upgrade script is packaged into the format package, so that the upgrade script will be automatically executed at an appropriate time during the installation of the upgrade program, and the upgrade script is used to call the original execution process of the software, that is, the data package, to achieve compatible operations for different software installations. The upgrade boot information is used to describe the package information of each installation package and the dependency relationship between different installation packages. The upgrade boot information can include the package name, version number, supported device type, software platform type, storage path, download link, installation order, corresponding data package information, etc. of the installation package. Describing multiple installation packages with a section of upgrade boot information can completely guide the entire upgrade process; the upgrade boot information can be fed back through the network interaction process or read from the file of the mobile storage device.
[0058] It can be seen that splitting the installation packages in different formats in the related technology into format packages and data packages can develop and release format packages and data packages separately, and the development and release methods are more flexible. At the same time, one format package can be reused to process data packages in different formats, reducing duplicate development. In addition, when compatible with the old version of the software, it is not necessary to modify the data package, only the format package needs to be modified, with less changes, easy to implement, and reducing the development difficulty of version compatibility.
[0059] S102: Analyze the one-key upgrade package, and install the installation packages in sequence according to the package information of the installation packages and the dependency relationships between the installation packages; wherein, during the installation of the installation packages, call the data packets of the installation packages to implement the installation of the installation packages.
[0060] In specific implementation, the upgrade program analyzes the one-key upgrade package to obtain upgrade boot information, and downloads the format package and the data packet corresponding to the format package according to the package information of the installation packages therein. In the network upgrade mode, the format package and the corresponding data packet are downloaded from the package management system to a fixed directory through the download link of the installation package included in the upgrade boot information fed back by the network. In the mobile storage device upgrade mode, it is necessary to decompress and store the format package and the data packet corresponding to the format package downloaded from the package management system to the mobile storage device in advance, and the upgrade program downloads the format package and the data packet corresponding to the format package from the mobile storage device to a fixed directory.
[0061] As a feasible implementation manner, after analyzing the one-key upgrade package, it further includes: storing the format package in a first target directory and storing the data packet corresponding to the format package in a second target directory according to the package information of the installation packages. In specific implementation, the format package can be downloaded to the first target directory (install directory), and the data packet can be downloaded to the second target directory (update directory).
[0062] Furthermore, the upgrade program installs the installation packages in sequence according to the dependency relationships between different installation packages, and does not restart the device after each installation package is installed, so that the installation process of multiple installation packages can be fully automated; while in the prior art solution, the device is restarted every time an installation package is installed, and it is necessary to restart the installation process and re-select the next installation package (installation sequence). During the installation of the installation packages, the content in the data packets of the installation packages will be read. As a feasible implementation manner, the call of the data packets of the installation packages to implement the installation of the installation packages includes: calling the driver interface corresponding to the hardware to be modified, and writing data to the hardware to be modified based on the content of the data packets of the installation packages. In specific implementation, if there are modifications to the hardware, the corresponding driver interface will be called to write data to the hardware.
[0063] As a feasible implementation manner, installing the installation packages in sequence according to the dependency relationships among the installation packages includes: reading the format packages in the first target directory in sequence according to the dependency relationships among the installation packages; correspondingly, during the process of installing the installation packages, invoking the data packages of the installation packages to implement the installation of the installation packages includes: during the process of installing the installation packages, invoking the data packages corresponding to the format packages in the second target directory to implement the installation of the installation packages. In a specific implementation, the upgrade program enters the first target directory (install directory) to execute the installation command, reads the format packages in the first target directory (install directory) in sequence according to the installation order of the installation packages, and during the process of installing the installation packages, reads the content of the data packages in the second target directory (update directory).
[0064] As a preferred implementation manner, after parsing the one-key upgrade package, it further includes: displaying the installation packages included in the one-key upgrade package in a tree structure according to the dependency relationships among the installation packages, and determining the to-be-installed packages to be installed according to the obtained instructions; correspondingly, installing the installation packages in sequence according to the package information of the installation packages and the dependency relationships among the installation packages includes: installing the to-be-installed packages in sequence according to the package information of the to-be-installed packages and the dependency relationships among the to-be-installed packages.
[0065] In a specific implementation, the upgrade program reads the content in the upgrade boot information, converts it into a corresponding data structure, stores it in the memory, and at the same time extracts the package names and dependency relationships of the installation packages and displays them in a tree structure on the interface. The user can check the to-be-installed packages to be installed on the interface. The upgrade program downloads the format packages of the to-be-installed packages to the first target directory and downloads the data packages of the to-be-installed packages to the second target directory. The upgrade program enters the first target directory to execute the installation command, reads and installs all the format packages in the first target directory in sequence according to the installation order of the to-be-installed packages, and during the process of reading the format packages, reads the content of the data packages in the second target directory.
[0066] It can be seen that the one-key upgrade package can be applicable to different medical devices. The user can select different installation packages for upgrading according to the differences of the medical devices, separate the one-key upgrade package from the device and the service, and realize upgrading multiple control units on the device using one one-key upgrade package for the upgrade program.
[0067] In the embodiment of the present application, the installation packages corresponding to different control units are unified into a target format, including a format package and a data package. Multiple installation packages are integrated through a one-key upgrade package. The upgrade program parses the one-key upgrade package and installs different installation packages in sequence according to the upgrade boot information therein, realizing the sequential automatic upgrade of multiple control units and improving the upgrade efficiency of the medical device.
[0068] The embodiments of the present application disclose a package management method, specifically:
[0069] Refer to Figure 2 , a flowchart of a package management method shown according to an exemplary embodiment, as Figure 2 shown, including:
[0070] S201: Obtain format packages and data packages corresponding to multiple installation packages through an input interface;
[0071] The execution subject of this embodiment is a package management system, and the purpose is to uniformly manage the installation packages, format packages corresponding to the installation packages, and data packages of different control units. The package management system provides package upload and download functions. In specific implementation, the user uploads a format package or a data package corresponding to the format package to the package management system through the input interface. When uploading the format package or the data package, select the package to be uploaded, fill in information such as the supported device type and software platform type, and then upload.
[0072] S202: Determine one or more target installation packages included in the one-key upgrade package, and generate upgrade guidance information based on the package information of the target installation packages and the dependency relationships between different target installation packages;
[0073] S203: Generate a one-key upgrade package based on the format packages, data packages of the target installation packages, and the upgrade guidance information.
[0074] In specific implementation, create a one-key upgrade package in the package management system, select the format packages or data packages uploaded on the package management system according to the dependency relationships, and then determine one or more target installation packages included in the one-key upgrade package. When selecting the format packages or data packages, the user can quickly query and filter the required packages according to the device type and software platform type.
[0075] Furthermore, add the format packages and data packages of the selected target installation packages to the one-key upgrade package, and at the same time generate upgrade guidance information based on the package information of the target installation packages and the dependency relationships between different target installation packages. The upgrade guidance information can include the package name, version number, supported device type, software platform type, storage path, download link, installation order, information of the data packages of the target installation packages, etc. The information of the data packages of the target installation packages can include the package name, download link, supported device type, software platform type, etc.
[0076] It should be noted that multiple one-key upgrade packages can be established in the package management system, which contain different format packages and data packages, and are used to upgrade medical devices of different device types and software platform types. Of course, it is also possible to make the one-key upgrade package contain as many format packages and data packages as possible, and after the upgrade program of the medical device downloads the one-key upgrade package, select the required format packages and data packages from it.
[0077] It can be seen that in this embodiment, the package management system is used to uniformly manage the format packages and data packages of different control units, providing functions such as package upload, download, and integration of one-key upgrade packages.
[0078] Next, an upgrade device for a medical device provided by an embodiment of the present application will be introduced. The upgrade device for a medical device described below can be referred to each other with the upgrade method for a medical device described above.
[0079] See Figure 3 , a structural diagram of an upgrade device for a medical device shown according to an exemplary embodiment, as Figure 3 shown, includes:
[0080] A first acquisition module 301, configured to acquire a one-key upgrade package; wherein, the one-key upgrade package includes installation packages of the same target format corresponding to multiple different control units in the medical device, upgrade boot information, the installation package includes a format package and a data package, and the upgrade boot information is used to describe the package information of each installation package and the dependency relationship between each installation package;
[0081] An installation module 302, configured to parse the one-key upgrade package and sequentially install the installation packages according to the package information of the installation package and the dependency relationship between each installation package; wherein, during the installation of the installation package, the data package in the installation package is called to implement the installation of the installation package.
[0082] In the embodiment of the present application, the installation packages corresponding to different control units are unified into a target format, including a format package and a data package. Multiple installation packages are integrated through a one-key upgrade package, and the upgrade program parses the one-key upgrade package and sequentially installs different installation packages according to the upgrade boot information therein, realizing sequential automatic upgrade of multiple control units and improving the upgrade efficiency of the medical device.
[0083] Based on the above embodiment, as a preferred implementation manner, the first acquisition module 301 is specifically configured to: acquire a one-key upgrade package from a mobile storage device connected to the medical device.
[0084] Based on the above embodiment, as a preferred implementation manner, the first acquisition module 301 is specifically configured to: acquire and parse the upgrade boot information through a network, and download the installation package in the one-key upgrade package according to the downloaded link obtained by parsing;
[0085] Correspondingly, the upgrade boot information further includes the download link of the installation package.
[0086] Based on the above embodiments, as a preferred implementation manner, the upgrade boot information includes any one or a combination of several of the package name, version number, supported device types, software platform types, storage paths, download links, installation sequences, and corresponding data packet information of the installation package.
[0087] Based on the above embodiments, as a preferred implementation manner, the format package includes a file header and an upgrade script.
[0088] Based on the above embodiments, as a preferred implementation manner, the installation module 302 is specifically configured to: parse the one-key upgrade package, and store the format package in a first target directory and store the data packet corresponding to the format package in a second target directory according to the package information of the installation package.
[0089] Based on the above embodiments, as a preferred implementation manner, it further includes:
[0090] A display module, configured to display the installation packages included in the one-key upgrade package in a tree structure according to the dependency relationships between the installation packages, and determine the to-be-installed packages to be installed according to the obtained instructions;
[0091] Correspondingly, the installation module 302 is specifically configured to: install the to-be-installed packages in sequence according to the package information of the to-be-installed packages and the dependency relationships between the to-be-installed packages.
[0092] Based on the above embodiments, as a preferred implementation manner, the installation module 302 is specifically configured to: call the driver interface corresponding to the hardware to be modified, and write data to the hardware to be modified based on the content of the data packet of the installation package.
[0093] Next, a package management system provided by an embodiment of the present application will be introduced. The package management system described below can be referred to mutually with the package management method described above.
[0094] See Figure 4 , a structural diagram of a package management system shown according to an exemplary embodiment, as Figure 4 shown, includes:
[0095] A second acquisition module 401, configured to acquire format packages and data packets corresponding to a plurality of installation packages through an input interface;
[0096] A first generation module 402, configured to determine one or more target installation packages included in the one-key upgrade package, and generate upgrade boot information based on the package information of the target installation packages and the dependency relationships between different target installation packages;
[0097] The second generation module 403 is configured to generate an one-key upgrade package based on the format package, data package of the target installation package, and the upgrade boot information.
[0098] It can be seen that in this embodiment, the package management system uniformly manages the installation packages of different control units and the data packages corresponding to the installation packages, and provides functions of package uploading, downloading, and integrating one-key upgrade packages.
[0099] Regarding the device or system in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0100] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiments of the present application, the embodiments of the present application further provide a medical device and an electronic device. Figure 5 Shown is a structural diagram of a medical device or an electronic device according to an exemplary embodiment, as Figure 5 shown, including:
[0101] A communication interface 1 capable of interacting with other devices such as network devices.
[0102] A processor 2 is connected to the communication interface 1 to implement information interaction with other devices. When running a computer program, it executes the upgrade method or package management method of the medical device provided by the above one or more technical solutions. And the computer program is stored on a memory 3.
[0103] Of course, in actual application, each component in the electronic device is coupled together through a bus system 4. It can be understood that the bus system 4 is used to realize the connection and communication between these components. The bus system 4 includes, in addition to a data bus, a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in Figure 5 all kinds of buses are labeled as the bus system 4.
[0104] The memory 3 in the embodiments of the present application is used to store various types of data to support the operation of the electronic device. Examples of these data include: any computer program for operating on the electronic device.
[0105] It can be understood that the memory 3 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), sync link dynamic random access memory (SLDRAM), direct rambus random access memory (DRRAM).The memory 3 described in the embodiments of the present application is intended to include, but not limited to, these and any other suitable types of memories.
[0106] The method disclosed in the embodiments of the present application above can be applied to the processor 2 or implemented by the processor 2. The processor 2 may be an integrated circuit chip with signal processing capabilities. During implementation, the steps of the above method can be completed by the integrated logic circuit in hardware or instructions in software form in the processor 2. The above-mentioned processor 2 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 2 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. Combining the steps of the method disclosed in the embodiments of the present application, it can be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by the combination of hardware and software modules in the decoding processor. The software module may be located in the storage medium, which is located in the memory 3. The processor 2 reads the program in the memory 3 and combines its hardware to complete the steps of the foregoing method.
[0107] When the processor 2 executes the program, it implements the corresponding processes in the various methods of the embodiments of the present application. For the sake of brevity, they are not described herein again.
[0108] In an exemplary embodiment, the embodiments of the present application also provide a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, such as a memory 3 including a stored computer program. The above computer program can be executed by the processor 2 to complete the steps described in the foregoing method. The computer-readable storage medium may be a FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, CD-ROM, or other memories.
[0109] Those of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: removable storage devices, ROM, RAM, magnetic disks, or optical discs and other media that can store program codes.
[0110] Alternatively, if the above integrated units of the present application are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application essentially or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing an electronic device (which can be a personal computer, a server, a network device, etc.) to execute all or part of the methods described in the embodiments of the present application. The foregoing storage medium includes: various media that can store program codes, such as removable storage devices, ROM, RAM, magnetic disks, or optical discs.
[0111] As described above, the above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should all be covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for upgrading a medical device, characterized in that, Including: Obtain an one-key upgrade package; wherein, the one-key upgrade package includes installation packages in the same target format corresponding to multiple different control units in the medical device, and upgrade guiding information, the installation package includes a format package and a data package, and the upgrade guiding information is used to describe the package information of each installation package and the dependency relationship between each installation package; Parse the one-key upgrade package, and install the installation packages in sequence according to the package information of the installation packages and the dependency relationship between each installation package; wherein, during the installation of the installation packages, call the data packages of the installation packages to implement the installation of the installation packages.
2. The method for upgrading a medical device according to claim 1, wherein, The obtaining of the one-key upgrade package includes: Obtain the one-key upgrade package from a removable storage device connected to the medical device.
3. The method for upgrading the medical device according to claim 1, wherein The obtaining of the one-key upgrade package includes: Obtain and parse the upgrade guiding information through the network, and download the installation packages in the one-key upgrade package according to the obtained download link; Correspondingly, the upgrade guiding information further includes the download link of the installation package.
4. The method for upgrading the medical device according to claim 1, wherein The upgrade guiding information includes any one or a combination of several of the package name, version number, supported device type, software platform type, storage path, download link, installation sequence, and corresponding data package information of the installation package.
5. The method for upgrading the medical device according to claim 1, characterized in that, The format package includes a file header and an upgrade script.
6. The method for upgrading the medical device according to claim 1, wherein After parsing the one-key upgrade package, it further includes: Store the format package in a first target directory and store the data package corresponding to the format package in a second target directory according to the package information of the installation package.
7. The method for upgrading the medical device according to claim 1, wherein, After parsing the one-key upgrade package, it further includes: Display the installation packages included in the one-key upgrade package in a tree structure according to the dependency relationship between each installation package, and determine the to-be-installed packages to be installed according to the obtained instructions; Correspondingly, the installing the installation packages in sequence according to the package information of the installation packages and the dependency relationship between each installation package includes: Install the to-be-installed packages in sequence according to the package information of the to-be-installed packages and the dependency relationship between each to-be-installed package.
8. The method for upgrading the medical device according to claim 1, wherein The calling the data packages of the installation package to implement the installation of the installation package includes: Call the driver interface corresponding to the hardware to be modified, and write data to the hardware to be modified based on the content of the data package of the installation package.
9. An upgrading device for a medical device, characterized in that, Including: A first obtaining module, configured to obtain an one-key upgrade package; wherein, the one-key upgrade package includes installation packages in the same target format corresponding to multiple different control units in the medical device, and upgrade guiding information, the installation package includes a format package and a data package, and the upgrade guiding information is used to describe the package information of each installation package and the dependency relationship between each installation package; An installation module, configured to parse the one-key upgrade package, and install the installation packages in sequence according to the package information of the installation packages and the dependency relationship between each installation package; wherein, during the installation of the installation packages, call the data packages in the installation package to implement the installation of the installation package.
10. A medical device, characterized in that, Including: A memory, configured to store a computer program; A processor, configured to implement the steps of the upgrade method of the medical device according to any one of claims 1 to 8 when executing the computer program.
11. A package management method, characterized in that, Including: Obtain format packages and data packages corresponding to multiple installation packages through an input interface; Determine one or more target installation packages included in the one-key upgrade package, and generate upgrade guidance information based on the package information of the installation packages of the target installation packages and the dependency relationships between different target installation packages; Generate a one-key upgrade package based on the format packages, data packages of the target installation packages and the upgrade guidance information.
12. A package management system, characterized in that, Comprising: A second acquisition module, configured to obtain format packages and data packages corresponding to multiple installation packages through an input interface; A first generation module, configured to determine one or more target installation packages included in the one-key upgrade package, and generate upgrade guidance information based on the package information of the target installation packages and the dependency relationships between different target installation packages; A second generation module, configured to generate a one-key upgrade package based on the format packages, data packages of the target installation packages and the upgrade guidance information.
13. An electronic device, characterized in that, Comprising: A memory, configured to store a computer program; A processor, configured to implement the steps of the package management method as described in claim 11 when executing the computer program.
14. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the upgrade method of the medical device as described in any one of claims 1 to 8 or the steps of the package management method as described in claim 11 are implemented.