Upgrading method of blood system instrument

The method addresses upgrade errors in blood system instruments by implementing data compression, encryption, and verification processes to ensure accurate and secure upgrades, enhancing reliability and reducing instrument failures.

CN119170232APending Publication Date: 2024-12-20URIT MEDICAL ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411191483.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

Existing methods for upgrading blood system instruments are prone to errors due to manual intervention, leading to instrument failure and inability to verify underlying driver modifications.

Method used

A method involving data compression, encryption, and verification processes to create secondary compressed files, followed by decompression and integrity checks, ensures accurate and secure upgrades by using a communication protocol to transmit upgrade files, automatically identifying compatible modules and preventing tampering.

Benefits of technology

Enhances the reliability of blood system instrument upgrades by reducing human error and ensuring compatibility and integrity of upgrade files, thereby minimizing instrument failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119170232A_ABST
    Figure CN119170232A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of medical treatment, in particular to a blood system instrument upgrading method, which comprises the following steps: automatically presenting an upgrading file path according to an upgrading type, and displaying version numbers before and after upgrading according to user requirements; the blood system instrument automatically identifies the upgrading file in the path according to the upgrading type and the instrument type, and it is ensured that the upgrading file is matched with the instrument; when the upgrading file is packaged, the file is encrypted, the program consistency is verified during upgrading, the file is prevented from being maliciously tampered, the blood system instrument is upgraded through the upgrading system, the reliability of the blood system instrument is improved, and upgrading errors caused by manual operation are reduced. Therefore, the problem that upgrading errors are easily caused by an existing blood system instrument upgrading mode is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical technology, and in particular to a method for upgrading a blood system instrument. Background Art

[0002] When maintaining analytical instruments related to the blood system, it is usually necessary to upgrade the instruments to solve the problem; one or more specific module programs need to be provided, including the host program and various underlying drivers.

[0003] Since there are many programs and they need to match the instrument model, maintenance personnel can easily make mistakes during the upgrade, causing instrument failure. In addition, the host program cannot identify whether the underlying driver has been modified manually, resulting in an erroneous upgrade. Summary of the invention

[0004] The object of the present invention is to provide a method for upgrading a blood system instrument, aiming to solve the problem that the existing method for upgrading blood system instruments easily leads to upgrading errors.

[0005] To achieve the above object, the present invention provides a method for upgrading a blood system instrument, comprising the following steps:

[0006] S1 processes the packaged software to obtain a secondary compressed file;

[0007] S2 decompresses and verifies the secondary compressed file. If the decompression and verification succeed, the local file of the main program is replaced and the upgrade file is transmitted to the underlying driver through the communication protocol. If the decompression fails, the decompression and verification failure is outputted.

[0008] S3: The underlying driver is upgraded based on the upgrade file.

[0009] Among them, "processing the packaged software to obtain a secondary compressed file" includes:

[0010] Compress the packaged software and generate a key for encryption to obtain a first-level compressed package;

[0011] Calculate the md5 value of the first-level compressed package and save it in the md5.txt file to obtain a verification file;

[0012] The verification file and the first-level compressed package are packaged to obtain a second-level compressed file.

[0013] Among them, in “compressing the packaged software and generating a key for encryption to obtain a first-level compressed package”, the key generation includes:

[0014] Get the original data to group, and set the initial key and initialization vector;

[0015] Expanding the initial key to generate multiple rounds of keys;

[0016] An operation is performed based on the grouping and the multiple rounds of keys to obtain a key.

[0017] Among them, in “compressing the packaged software and generating a key for encryption to obtain a first-level compressed package”, the key generation includes:

[0018] Get the original data to group, and set the initial key and initialization vector;

[0019] Expanding the initial key to generate multiple rounds of keys;

[0020] An operation is performed based on the grouping and the multiple rounds of keys to obtain a key.

[0021] Among them, in “decompressing and verifying the secondary compressed file, if the decompression and verification succeeds, replacing the local file of the main program and transmitting the upgrade file to the underlying driver through the communication protocol, if the decompression fails, outputting the decompression and verification failure”, it includes:

[0022] Decompress the secondary compressed file, if successful, obtain the primary file and the verification file, if the decompression fails, output a decompression failure prompt;

[0023] Performing integrity verification on the primary file based on the verification file in the temporary folder;

[0024] The upgrade is completed by replacing the main program locally based on the successfully verified primary file;

[0025] The primary file is decrypted based on the key to generate an upgrade file, and the upgrade file is transmitted to the underlying driver using a communication protocol.

[0026] Among them, in "decrypting the primary file based on the key to generate an upgrade file, and transmitting the upgrade file to the underlying driver using a communication protocol", the communication protocol is a CAN communication protocol.

[0027] A method for upgrading a blood system instrument of the present invention comprises the following steps: S1 processes the packaged software to obtain a secondary compressed file; S2 decompresses and verifies the secondary compressed file, if the decompression and verification are successful, replaces the local file of the main program and transmits the upgrade file to the underlying driver through the communication protocol, if the decompression and verification fail, returns the output of the decompression and verification failure; S3 the underlying driver is upgraded based on the upgrade file. The blood system of the present invention automatically presents the upgrade file path according to the upgrade type, and displays the version numbers before and after the upgrade according to user requirements; the blood system instrument will automatically identify the upgrade file in the path according to the upgrade type and instrument type to ensure that the upgrade file matches the instrument; when packaging the upgrade file, the file is encrypted, and the program consistency is checked during the upgrade to prevent the file from being maliciously tampered with. The blood system instrument is upgraded through the upgrade system, which is beneficial to improve the reliability of the blood system instrument and reduce upgrade errors caused by human operation. Thereby solving the problem that the existing blood system instrument upgrade method is prone to upgrade errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present invention 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, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 It is the underlying driver upgrade flow chart.

[0030] Figure 2 This is the host program upgrade flow chart.

[0031] Figure 3 It is the secret key calculation process.

[0032] Figure 4 This is the driver file upgrade process.

[0033] Figure 5 The present invention is a flowchart of a method for upgrading a blood system instrument.

[0034] Figure 6 It is a flowchart for processing the packaged software to obtain a secondary compressed file.

[0035] Figure 7 The secondary compressed file is decompressed and verified. If the decompression and verification are successful, the local file of the main program is replaced and the upgrade file is transmitted to the underlying driver through the communication protocol. If the decompression fails, a flowchart of the decompression and verification failure is outputted.

[0036] Figure 8 It is a flowchart for generating keys. DETAILED DESCRIPTION

[0037] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0038] See also Figures 1 to 8 The present invention provides a method for upgrading a blood system instrument, comprising the following steps:

[0039] S1 processes the packaged software to obtain a secondary compressed file;

[0040] S11 compresses the packaged software and generates a key for encryption to obtain a first-level compressed package;

[0041] Specifically, the packaging software first compresses the software package and generates a key (the key of the file calculated by the AES encryption rule) for automatic encryption to generate a first-level compressed package.

[0042] S111 obtains the original data, groups it, and sets the initial key and initialization vector;

[0043] Specifically, the original data is obtained and grouped; the original data is grouped into 128-bit groups; a 256-bit initial key and a 128-bit initialization vector (IV) are set.

[0044] S112 expands the initial key to generate multiple rounds of keys;

[0045] Specifically, for key expansion, the initial key is used to generate multiple rounds of keys through a key scheduling algorithm.

[0046] S113 performs operations based on the grouping and the multi-round keys to obtain a key.

[0047] Specifically, in the initial round, the initial group is XORed with the first round key; the main round operations are byte substitution, row shift, column confusion, and round key addition operations; repeated 13 times; the final round operation is byte substitution, row shift, and round key addition operations; the encrypted key is obtained. The secret key is obtained as output, and the obtained secret key is used to encrypt and compress the file to obtain an encrypted and compressed zip compressed file.

[0048] S12 calculates the md5 value of the first-level compressed package and saves it in the md5.txt file to obtain a verification file;

[0049] Specifically, after encryption is completed, the md5 value of the compressed package is calculated and saved in the md5.txt file as an integrity check code.

[0050] S13 packages the verification file and the first-level compressed package to obtain a second-level compressed file.

[0051] Specifically, the md5 value and the upgrade file are packaged together to generate a secondary compressed file for the upgrade.

[0052] S2 decompresses and verifies the secondary compressed file. If the decompression and verification succeed, the local file of the main program is replaced and the upgrade file is transmitted to the underlying driver through the communication protocol. If the decompression fails, the decompression and verification failure is outputted.

[0053] S21 decompresses the secondary compressed file, and if successful, obtains the primary file and the verification file; if the decompression fails, outputs a decompression failure prompt;

[0054] Specifically, upgrade the software in the upgrade interface and select the APP software upgrade interface. Open the local upgrade module and close the main program. Insert the USB flash drive into the instrument USB port, select the corresponding software path in the local upgrade module, and the software determines whether the upgrade file naming rules are met. After obtaining the software path, click Upgrade to start the upgrade process. First, decompress the upgrade file of the secondary compressed package to obtain the primary compressed package and the verification file.

[0055] S22 performs integrity verification on the primary file based on the verification file in the temporary folder;

[0056] Specifically, verify the file validity of the first-level compressed package in the temporary folder.

[0057] S23 completes the upgrade by replacing the main program locally based on the successfully verified primary file;

[0058] Specifically, the key of the file is calculated according to the AES encryption rule, and the first-level file is decrypted. The upgrade file in the temporary folder is overwritten to the main program directory to upgrade the main program.

[0059] S24 decrypts the primary file based on the key to generate an upgrade file, and transmits the upgrade file to the underlying driver using a communication protocol.

[0060] The communication protocol is the CAN communication protocol.

[0061] Specifically, the upgrade file is transmitted to the underlying driver using the CAN protocol.

[0062] S3: The underlying driver is upgraded based on the upgrade file.

[0063] Specifically, when upgrading the underlying driver, you first need to obtain the file path in the USB flash drive. After obtaining the file path, decrypt the file and verify the file integrity. After verifying the file, execute the underlying driver upgrade process. First restart the underlying driver to ensure that the upper-layer software and the underlying driver enter the synchronous upgrade mode. Send the upgrade instruction to the corresponding underlying driver. Synchronize the file length with the underlying driver and receive the underlying reply. Read the upgrade file and split the upgrade file into fixed-size files and send them to the underlying driver in sequence. After the file is sent, perform an XOR check with the underlying layer. After the check is completed, wait for the instruction that the underlying upgrade is completed. After receiving the instruction, the upgrade is successful.

[0064] Beneficial Effects

[0065] 1. The driver file upgrade process has been changed from upgrading the bin file to first decompressing the zip file and then upgrading the bin file. A file damage identification process has been added to avoid the problem of upgrade failure caused by upgrading damaged bin files.

[0066] 2. Added file verification process and decryption process during decompression, which increased the difficulty of manual file modification and ensured the reliability of upgraded files.

[0067] 3. Add file integrity check based on md5 value to ensure that the program can be recognized after the upgrade file is modified.

[0068] 4. Automatically identify the upgrade programs of different modules, automatically determine the underlying driver and host software program, and solve the problem of upgrading the wrong module.

[0069] The above disclosure is only a preferred embodiment of a method for upgrading a blood system instrument of the present invention. Of course, it cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A method for upgrading a blood system instrument. It is characterized in that The following steps are involved: S1 processes the packaged software to obtain a secondary compressed file; S2 decompresses and verifies the secondary compressed file. If the decompression and verification succeed, the local file of the main program is replaced and the upgrade file is transmitted to the underlying driver through the communication protocol. If the decompression fails, the decompression and verification failure is outputted. S3: The underlying driver is upgraded based on the upgrade file.

2. The method for upgrading a blood system instrument as claimed in claim 1, It is characterized in that In "Processing the packaged software to obtain a secondary compressed file", it includes: Compress the packaged software and generate a key for encryption to obtain a first-level compressed package; Calculate the md5 value of the first-level compressed package and save it in the md5.txt file to obtain a verification file; The verification file and the first-level compressed package are packaged to obtain a second-level compressed file.

3. The method for upgrading a blood system instrument as claimed in claim 2, It is characterized in that In "compressing the packaged software and generating a key for encryption to obtain a first-level compressed package", the key generation includes: Get the original data to group, and set the initial key and initialization vector; Expanding the initial key to generate multiple rounds of keys; An operation is performed based on the grouping and the multiple rounds of keys to obtain a key.

4. The method for upgrading a blood system instrument as claimed in claim 3, It is characterized in that In "decompressing and verifying the secondary compressed file, if the decompression and verification succeeds, replacing the local file of the main program and transmitting the upgrade file to the underlying driver through the communication protocol, if the decompression fails, outputting the decompression and verification failure", it includes: Decompress the secondary compressed file, if successful, obtain the primary file and the verification file, if the decompression fails, output a decompression failure prompt; Performing integrity verification on the primary file based on the verification file in the temporary folder; The upgrade is completed by replacing the main program locally based on the successfully verified primary file; The primary file is decrypted based on the key to generate an upgrade file, and the upgrade file is transmitted to the underlying driver using a communication protocol.

5. The method for upgrading a blood system instrument as claimed in claim 4, It is characterized in that In "decrypting the primary file based on the key to generate an upgrade file, and transmitting the upgrade file to the underlying driver using a communication protocol", the communication protocol is a CAN communication protocol.