Method for upgrading operating system of medical endoscope

By copying the upgrade package of medical endoscope equipment to the USB flash drive and sending upgrade instructions and upgrade packages using the main device, the system upgrade of each device is achieved, solving the problems of complex upgrade process, compatibility and security in the existing technology, and improving the overall upgrade efficiency and system reliability.

CN119883320APending Publication Date: 2025-04-25HANGZHOU LINGMOU MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411952839.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

The prior art has problems such as strong network dependence, complex operation, and difficult to guarantee compatibility and security when upgrading medical endoscopic equipment systems.

Method used

By copying the upgrade packages of the master and slave devices to the USB flash drive, and using the master device to send upgrade instructions and upgrade packages, the system upgrade of each device is realized, the operation process is simplified, and the integrity of the upgrade package is ensured through md5 value verification.

Benefits of technology

It improves the overall upgrade efficiency of the medical endoscope operating system, simplifies the upgrade process, enhances the stability and security of the system, and can fall back to the original system when the upgrade fails, improving reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883320A_ABST
    Figure CN119883320A_ABST
Patent Text Reader

Abstract

The invention discloses a medical endoscope operating system upgrading method, and relates to the technical field of system upgrade.The method comprises the steps that when a main device is upgraded, an upgrading package of the main device is selected from a USB flash disk through the main device to upgrade a system and software of the main device, and if upgrading succeeds, a main device upgrading success prompt is sent, if upgrading fails, returning the system and the software of the main equipment to the system and the software before upgrading; when any slave device is upgraded, an upgrading instruction is sent to the slave device through the master device, an upgrading package of the slave device in the USB flash disk is sent to the slave device, the slave device enters a recovery mode after receiving the upgrading instruction and receives the upgrading package of the slave device, and a system of the slave device is upgraded according to the upgrading package of the slave device. If upgrading succeeds, a slave device upgrading success prompt is sent, and if upgrading fails, the slave device is returned to the system before upgrading; and each slave device is provided with a recovery mode. The system upgrading efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of system upgrade, and in particular to a method for upgrading a medical endoscope operating system. Background Art

[0002] With the rapid development of modern information technology, system upgrades have become an important part of ensuring the performance of software and hardware devices. The mainstream system upgrade methods mainly include online upgrades, offline upgrades, new system installations, and upgrade assistant tools.

[0003] Online upgrades directly obtain updates or upgrade packages through the network for installation, providing convenient and timely functions, allowing users to quickly experience the latest functions and security patches. However, this method is highly dependent on the network. If network problems occur during the upgrade process, the upgrade may fail or be incomplete, thereby increasing the risk of system crashes or data loss.

[0004] For offline upgrade, users first download the update package to the local computer before installing it, which reduces the risk of upgrade failure due to network problems. Users can upgrade at the appropriate time and environment, which enhances control. However, offline upgrade requires manual management of downloaded upgrade packages, which increases the complexity of operation, which may cause trouble for non-technical users in particular, and users may miss important security updates, resulting in a lower security level of the system.

[0005] The way to install a new system is to completely delete the existing system and reinstall the new system through a USB flash disk or SD card. This method can ensure the security of the system, avoid potential vulnerabilities brought by the old version, and the new system can effectively avoid compatibility issues with the old version. However, the operation of a new installation is relatively complicated, and the user needs to have certain technical capabilities. In addition, the software configuration and data of the original system will be deleted, and the user needs to reconfigure it, which increases the workload.

[0006] In addition, the Upgrade Assistant tool, as a software that automates and simplifies the system upgrade process, provides a user-friendly interface, is suitable for non-technical users, and can improve the efficiency of the upgrade. However, the stability and compatibility of the Upgrade Assistant may affect the upgrade effect. If the tool itself has a fault, it may cause greater problems and may bring security risks.

[0007] Medical endoscope equipment involves multiple devices and multiple operating systems. If you want to upgrade the medical endoscope equipment system, the above mainstream upgrade methods all have obvious limitations.

[0008] The various devices of medical endoscope equipment are highly coupled, so a single upgrade method is difficult to apply. In view of the particularity of medical endoscope equipment, a personalized and systematic upgrade plan must be formulated to ensure the stable functional integrity of the equipment. Summary of the invention

[0009] The purpose of this application is to provide a method for upgrading a medical endoscope operating system, thereby improving the efficiency of system upgrades.

[0010] To achieve the above objectives, this application provides the following solutions:

[0011] In a first aspect, the present application provides a method for upgrading a medical endoscope operating system, wherein the medical endoscope operating system comprises a master device and a plurality of slave devices, each of the slave devices being communicatively connected to the master device;

[0012] The medical endoscope operating system upgrade method comprises:

[0013] Copy the upgrade package of the master device and the upgrade packages of each of the slave devices to a USB flash drive;

[0014] When the master device is upgraded, the master device selects an upgrade package of the master device from the U disk, and upgrades the system and software of the master device according to the selected upgrade package of the master device. If the upgrade is successful, a prompt for successful upgrade of the master device is issued; if the upgrade fails, the system and software of the master device are returned to the system and software before the upgrade;

[0015] When upgrading any of the slave devices, an upgrade instruction is sent to the slave device through the master device, and the upgrade package of the slave device in the U disk is sent to the slave device. After receiving the upgrade instruction, the slave device enters the recovery mode and receives the upgrade package of the slave device, and upgrades the system of the slave device according to the upgrade package of the slave device. If the upgrade is successful, a prompt for successful upgrade of the slave device is issued. If the upgrade fails, the slave device is returned to the system before the upgrade. Each slave device is provided with a recovery mode.

[0016] Optionally, the master device is an endoscope processor device, and the slave device includes an endoscope processor touch control device, an endoscope cold light source touch control device and an endoscope cold light source controller device.

[0017] Optionally, while copying the upgrade package of the master device and the upgrade packages of each of the slave devices to the U disk, the medical endoscope operating system upgrade method also includes: writing the md5 value of the upgrade package of each slave device into the file name of each upgrade package, copying the md5sum file storing the md5 value of each upgrade package to the U disk, and the md5 value of each upgrade package is used for integrity verification of each upgrade package.

[0018] Optionally, when the main device is upgraded, the main device selects an upgrade package of the main device from the U disk, and the system and software of the main device are upgraded according to the selected upgrade package of the main device. If the upgrade is successful, a prompt for successful upgrade of the main device is issued, and if the upgrade fails, the system and software of the main device are returned to the system and software before the upgrade, which specifically includes:

[0019] When the main device is upgraded, the main device selects an upgrade package of the main device from the USB flash drive;

[0020] Calculating the md5 value of the upgrade package of the master device, determining whether the calculated md5 value of the upgrade package of the master device is the same as the md5 value of the upgrade package of the master device recorded in the md5sum file, and obtaining a first determination result;

[0021] If the first judgment result is yes, it is determined that the upgrade package of the master device passes the integrity check, and the system and software of the master device are backed up to obtain a first backup file;

[0022] Upgrading the system and software of the master device according to the selected upgrade package of the master device, and issuing a prompt of successful upgrade of the master device if the upgrade is successful, and returning the system and software of the master device to the system and software before the upgrade according to the first backup file if the upgrade fails;

[0023] If the first judgment result is no, it is determined that the upgrade package of the main device has not passed the integrity check, and the program ends.

[0024] Optionally, if the upgrade is successful, after issuing a prompt indicating that the main device has been successfully upgraded, the medical endoscope operating system upgrade method further includes: deleting the upgrade package and the first backup file in the main device.

[0025] Optionally, when upgrading any one of the slave devices, an upgrade instruction is sent to the slave device through the master device, and the upgrade package of the slave device in the USB flash drive is sent to the slave device. After receiving the upgrade instruction, the slave device enters a recovery mode and receives the upgrade package of the slave device. The system of the slave device is upgraded according to the upgrade package of the slave device. If the upgrade is successful, a prompt indicating that the slave device has been successfully upgraded is issued. If the upgrade fails, the slave device is returned to the system before the upgrade, which specifically includes:

[0026] When the slave device is the endoscope processor touch control device or the endoscope cold light source touch control device, an upgrade instruction is sent to the slave device through the master device; after receiving the upgrade instruction, the slave device enters the upgrade model;

[0027] Sending the upgrade package of the slave device in the USB flash drive to the slave device through the master device;

[0028] Calculating the md5 value of the upgrade package of the slave device by the slave device, determining whether the calculated md5 value is the same as the md5 value of the upgrade package of the slave device recorded in the upgrade package file name of the slave device, and obtaining a second determination result;

[0029] If the second judgment result is yes, it is determined that the upgrade package of the slave device passes the integrity check, and the system of the slave device is backed up to obtain a second backup file;

[0030] Under the upgrade model of the slave device, the upgrade package of the slave device is started to upgrade the system of the slave device. If the upgrade is successful, a prompt indicating the success of the slave device upgrade is sent through the master device.

[0031] Optionally, sending the upgrade package of the slave device in the USB flash drive to the slave device by the master device specifically includes:

[0032] The master device sends the name and size of the upgrade package of the slave device to the slave device;

[0033] The slave device creates an upgrade file after receiving the name and size of the upgrade package of the slave device;

[0034] The master device sends an upgrade package of the slave device to the slave device;

[0035] The slave device stores the received upgrade package of the slave device into the upgrade file.

[0036] Optionally, after the master device sends a prompt indicating that the slave device has been successfully upgraded, the medical endoscope operating system upgrade method further includes: deleting the upgrade package and the second backup file in the slave device.

[0037] Optionally, when upgrading any one of the slave devices, an upgrade instruction is sent to the slave device through the master device, and the upgrade package of the slave device in the USB flash drive is sent to the slave device. After receiving the upgrade instruction, the slave device enters a recovery mode and receives the upgrade package of the slave device. The system of the slave device is upgraded according to the upgrade package of the slave device. If the upgrade is successful, a prompt indicating that the slave device has been successfully upgraded is issued. If the upgrade fails, the slave device is returned to the system before the upgrade, which specifically includes:

[0038] When the slave device is the endoscope cold light source controller device, after entering the U disk through the master device, the master device sends an upgrade instruction to the slave device; after receiving the upgrade instruction, the slave device enters the upgrade model;

[0039] In the upgrade model, the slave device sends an instruction to obtain upgrade package information to the master device;

[0040] After receiving the instruction to obtain the upgrade package information, the master device sends the size of the upgrade package of the master device to the slave device;

[0041] After receiving the size of the upgrade package, the slave device sends a data request instruction to the master device;

[0042] After receiving the data request instruction, the master device divides the upgrade package of the slave device into multiple data packets of set size, numbers each data packet in sequence, adds 4 bytes after each data packet, and the 4 bytes are used to store the sum of all data in the current data packet, and sends each data packet to the slave device in sequence;

[0043] The slave device verifies a received data packet according to the last 4 bytes of the data packet. If the verification succeeds, the slave device receives the next data packet. If the verification fails, the slave device sends an instruction to retransmit the upgrade package data to the master device. After all the data packets sent by the master device are received and verified successfully by the slave device, the slave device upgrades the system of the slave device according to the upgrade package composed of each data packet.

[0044] Optionally, the master device is connected to each of the slave devices via a SPI bus.

[0045] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0046] The present application provides a method for upgrading an operating system of a medical endoscope. When upgrading the master device, the master device selects an upgrade package of the master device from the U disk. When upgrading any of the slave devices, the master device sends an upgrade instruction to the slave device, and sends the upgrade package of the slave device in the U disk to the slave device, thereby realizing system upgrade of each device by operating only the master device, simplifying the process of operating each device separately for system upgrade, thereby improving the overall upgrade efficiency of the medical endoscope operating system. Each slave device is provided with a recovery mode. During the upgrade process, if the upgrade fails, the system will roll back to the original system, thereby improving the reliability of the upgrade. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1 A schematic diagram of a process for upgrading a medical endoscope operating system provided in one embodiment of the present application;

[0049] Figure 2 A schematic diagram of the relationship between various devices in a medical endoscope operating system provided in one embodiment of the present application;

[0050] Figure 3 A schematic diagram of a system upgrade process of an endoscope processor device provided in one embodiment of the present application;

[0051] Figure 4 A schematic diagram of a system upgrade process of an endoscope processor touch control device provided in one embodiment of the present application;

[0052] Figure 5 A schematic diagram of a system upgrade process of an endoscope cold light source touch control device provided in one embodiment of the present application;

[0053] Figure 6 A schematic diagram of a system upgrade process of an endoscope cold light source controller device provided in an embodiment of the present application;

[0054] Figure 7 A schematic diagram of the upgrade process of each device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0056] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0057] The present application provides a method for upgrading a medical endoscope operating system, wherein the medical endoscope operating system comprises a master device and a plurality of slave devices, each of the slave devices being communicatively connected to the master device.

[0058] like Figure 1As shown, the medical endoscope operating system upgrade method includes steps 101 to 103.

[0059] Step 101: copy the upgrade package of the master device and the upgrade packages of each slave device to a USB flash drive.

[0060] Step 102: When the main device is upgraded, the main device selects an upgrade package for the main device from the U disk, and the system and software of the main device are upgraded according to the selected upgrade package of the main device. If the upgrade is successful, a prompt for successful main device upgrade is issued; if the upgrade fails, the system and software of the main device are returned to the system and software before the upgrade.

[0061] Step 103: When upgrading any one of the slave devices, an upgrade instruction is sent to the slave device through the master device, and the upgrade package of the slave device in the U disk is sent to the slave device. After receiving the upgrade instruction, the slave device enters the recovery mode and receives the upgrade package of the slave device, and upgrades the system of the slave device according to the upgrade package of the slave device. If the upgrade is successful, a prompt indicating that the slave device has been successfully upgraded is issued. If the upgrade fails, the slave device is returned to the system before the upgrade. Each slave device is provided with a recovery mode.

[0062] In an exemplary embodiment, Figure 2 As shown, the master device is an endoscope processor device, and the slave device includes an endoscope processor touch control device, an endoscope cold light source touch control device and an endoscope cold light source controller device.

[0063] The master device is connected to each of the slave devices via an SPI bus. The endoscope processor device sequentially sends upgrade instructions, upgrade packages and other information to the endoscope processor touch device, the endoscope cold light source touch device and the endoscope cold light source controller device via SPI communication, and obtains the upgrade status of the slave device.

[0064] The various sub-devices in the medical endoscope device of this application are connected through the SPI bus, which can realize the transmission of upgrade commands, upgrade packages and upgrade status. By operating one device, the system upgrade of all devices can be completed, which simplifies the device operation process and improves the overall upgrade efficiency of the medical endoscope operating system. Considering the system security of medical endoscope equipment, this application adopts a USB flash drive upgrade solution. Since the system and software of each sub-device are highly coupled, the upgrade package will integrate the system and software upgrade packages of all sub-devices, thereby avoiding compatibility issues between system or software versions.

[0065] In an exemplary embodiment, while copying the upgrade package of the master device and the upgrade packages of each of the slave devices to a USB flash drive, the medical endoscope operating system upgrade method further includes: writing the md5 value of the upgrade package of each of the slave devices into the file name of each upgrade package, copying the md5sum file storing the md5 value of each upgrade package to the USB flash drive, and the md5 value of each upgrade package is used for integrity verification of each upgrade package. The md5sum file is specifically an md5sum.txt file.

[0066] In an exemplary embodiment, step 101 specifically includes: copying the upgrade packages of the endoscope processor device, the endoscope processor touch control device, the endoscope cold light source touch control device, and the endoscope cold light source controller device to the same folder of the U disk. The endoscope processor device, the endoscope processor touch control device, the endoscope cold light source touch control device, and the endoscope cold light source controller device are all medical devices.

[0067] Get the md5 values ​​of the upgrade packages of the endoscope processor touch device and the endoscope cold light source touch device, and write their respective md5 values ​​into their respective upgrade package file names.

[0068] Get the md5 values ​​of all upgrade packages and write them to the md5sum.txt file.

[0069] Combine and compress all upgrade packages and md5sum.txt files to make a medical endoscope equipment upgrade package.

[0070] In an exemplary embodiment, step 102 specifically includes:

[0071] When the main device is upgraded, the main device selects an upgrade package of the main device from the U disk.

[0072] Calculate the md5 value of the upgrade package of the master device, determine whether the calculated md5 value of the upgrade package of the master device is the same as the md5 value of the upgrade package of the master device recorded in the md5sum file, and obtain a first determination result.

[0073] If the first judgment result is yes, it is determined that the upgrade package of the main device passes the integrity check, and the system and software of the main device are backed up to obtain a first backup file.

[0074] The system and software of the main device are upgraded according to the selected upgrade package of the main device. If the upgrade is successful, a prompt for successful upgrade of the main device is issued. If the upgrade fails, the system and software of the main device are rolled back to the system and software before the upgrade according to the first backup file.

[0075] If the first judgment result is no, it is determined that the upgrade package of the main device has not passed the integrity check, and the program ends.

[0076] If the upgrade is successful, after issuing a prompt indicating that the main device has been successfully upgraded, the medical endoscope operating system upgrade method further includes: deleting the upgrade package and the first backup file in the main device.

[0077] In an exemplary embodiment, Figure 3 As shown, step 102 specifically includes:

[0078] Step 1: Start the endoscope processor device.

[0079] Step 2: The endoscope processor device starts and enters the USB disk system.

[0080] Step 3: Select the upgrade package of the endoscope processor device from the USB flash drive and start the upgrade.

[0081] Step 4: Copy the upgrade package to the update partition of the SATA (Serial Advanced Technology Attachment hard disk) of the endoscope processor device.

[0082] Step 5: Unzip the upgrade package and obtain the md5 value of the files in the upgrade package. Compare this value with the md5 value recorded in the md5sum.txt file to confirm whether the upgrade package is damaged.

[0083] Step 6: The upgrade package is verified successfully, and the original system data is backed up.

[0084] Step 7: Upgrade the system and software of the endoscope processor device in sequence.

[0085] Step 8: After the upgrade is completed, the user is prompted that the upgrade is successful.

[0086] Step 9: Delete the upgrade files and backup files in the upadte partition and shut down the device.

[0087] In an exemplary embodiment, step 103 specifically includes:

[0088] When the slave device is the endoscope processor touch control device or the endoscope cold light source touch control device, an upgrade instruction is sent to the slave device through the master device; after receiving the upgrade instruction, the slave device enters the upgrade model.

[0089] The upgrade package of the slave device in the U disk is sent to the slave device through the master device.

[0090] The md5 value of the upgrade package of the slave device is calculated by the slave device, and it is determined whether the calculated md5 value is the same as the md5 value of the upgrade package of the slave device recorded in the upgrade package file name, to obtain a second determination result.

[0091] If the second judgment result is yes, it is determined that the upgrade package of the slave device passes the integrity check, and the system of the slave device is backed up to obtain a second backup file.

[0092] Under the upgrade model of the slave device, the upgrade package of the slave device is started to upgrade the system of the slave device. If the upgrade is successful, a prompt indicating the success of the slave device upgrade is sent through the master device.

[0093] In an exemplary embodiment, sending the upgrade package of the slave device in the USB flash drive to the slave device by the master device specifically includes:

[0094] The master device sends the name and size of the upgrade package of the slave device to the slave device.

[0095] The slave device creates an upgrade file after receiving the name and size of the upgrade package of the slave device.

[0096] The master device sends an upgrade package of the slave device to the slave device.

[0097] The slave device stores the received upgrade package of the slave device into the upgrade file.

[0098] In an exemplary embodiment, after the master device sends a prompt indicating that the slave device has been successfully upgraded, the medical endoscope operating system upgrade method further includes: deleting the upgrade package and the second backup file in the slave device.

[0099] In an exemplary embodiment, when the slave device is an endoscope processor touch device, such as Figure 4 As shown in the figure, the upgrade process of the endoscope processor touch device specifically includes:

[0100] Step 1: Turn on the endoscope processor touch device.

[0101] Step 2: After the endoscope processor device is started, enter the U disk system and send an upgrade command to the endoscope processor touch device.

[0102] Step 3: After receiving the upgrade instruction, the endoscope processor touch device adds an upgrade flag in the cache partition and restarts the device to enter the recovery system, which is the recovery mode.

[0103] Step 4: After the endoscope processor touch device enters the recovery system, the endoscope processor device sends the name and size of the upgrade package to the touch device.

[0104] Step 5: After receiving the name and size of the upgrade package, the endoscope processor touch device sends a confirmation message to the endoscope processor device and creates a corresponding upgrade file in the update partition according to the file name.

[0105] Step 6: The endoscope processor device sends the upgrade package data to the endoscope processor touch device.

[0106] Step 7: The endoscope processor touch device receives data according to the size of the received upgrade package and stores it in the specified upgrade file in the update partition.

[0107] Step 8: The endoscope processor touch device calls the md5sum command to generate the md5 value of the upgrade file, and compares it with the md5 value provided in the file name information to verify the integrity of the upgrade package.

[0108] Step 9: After the verification is successful, the endoscope processor touch device sends a verification success flag back to the endoscope processor device.

[0109] Step 10: Back up the original system to the update partition.

[0110] Step 11: In the recovery system, the upgrade package script is automatically started to decompress the upgrade package and upgrade the system.

[0111] Step 12: When the system upgrade is completed, the endoscope processor touch device sends an upgrade success flag to the endoscope processor device.

[0112] Step 13: Delete the upgrade mark in the cache partition, the upgrade files and backup files in the update partition.

[0113] Step 14: The upgrade is complete.

[0114] The SPI communication between the endoscope processor device and the endoscope processor touch device mainly includes upgrade instructions, upgrade package information, upgrade package and upgrade flag information. After entering the upgrade system, the endoscope processor device will send an upgrade instruction to the endoscope processor touch device. After receiving the upgrade instruction, the endoscope processor touch device will add a system upgrade flag under the cache partition, and then call the reboot command to restart into the recovery system, and start the SPI receiving application under the recovery system. After the processor starts upgrading, it will send the file name and file size with md5 verification information to the endoscope processor touch device. After receiving the file name and file size, the endoscope processor touch device saves the information and then applies to the processor for upgrade package data. After receiving the upgrade package application information, the processor divides the upgrade package into 4k data and sends them to the endoscope processor touch device in sequence. After receiving the upgrade package according to the file size, the endoscope processor touch device writes the data into the upgrade file of the update partition and obtains the md5 value of the file. It compares it with the md5 verification information in the file name to verify whether the upgrade package is damaged. After verification, the source operating system is backed up in the update partition, and then the upgrade script is started to complete the system upgrade, and an upgrade success flag is sent to the processor, and then the cache partition upgrade flag and the update partition upgrade are deleted. Files and backup files, and the upgrade success is displayed on the display. After the processor receives the upgrade success flag sent by the endoscope processor touch device, it displays the endoscope processor touch device upgrade success on the upgrade software interface.

[0115] In an exemplary embodiment, when the slave device is an endoscope cold light source touch device, such as Figure 5 As shown in the figure, the upgrade process of the endoscope cold light source touch device specifically includes:

[0116] Step 1: Turn on the endoscope cold light source touch device.

[0117] Step 2: After the endoscope processor device is started, enter the U disk system and send an upgrade command to the endoscope cold light source touch device.

[0118] Step 3: After receiving the upgrade instruction, the endoscope cold light source touch device adds an upgrade flag in the cache partition and restarts the device to enter the recovery system.

[0119] Step 4: After the endoscope cold light source touch device enters the recovery system, the endoscope processor device sends the name and size of the upgrade package to the touch device.

[0120] Step 5: After receiving the name and size of the upgrade package, the endoscope cold light source touch device sends a confirmation message to the endoscope processor device and creates a corresponding upgrade file in the update partition according to the file name.

[0121] Step 6: The endoscope processor device sends the upgrade package data to the endoscope cold light source touch device.

[0122] Step 7: The endoscope cold light source touch device receives data according to the size of the received upgrade package and stores it in the designated upgrade file of the update partition.

[0123] Step 8: The endoscope cold light source touch device calls the md5sum command to generate the md5 value of the upgrade file, and compares it with the md5 value provided in the file name information to verify the integrity of the upgrade package.

[0124] Step 9: After successful verification, the endoscope cold light source touch device sends a successful verification mark back to the endoscope processor device.

[0125] Step 10: Back up the original system to the update partition.

[0126] Step 11: In the recovery system, the upgrade package script is automatically started to decompress the upgrade package and replace the original system.

[0127] Step 12: When the system upgrade is completed, the endoscope cold light source touch device sends an upgrade success flag to the endoscope processor device.

[0128] Step 13: Delete the upgrade mark in the cache partition, the upgrade files and backup files in the update partition;

[0129] Step 14: The upgrade is complete.

[0130] The SPI communication between the endoscope processor device and the endoscope cold light source touch device is consistent with the SPI communication between the endoscope processor device and the endoscope processor touch device. After entering the upgrade system, the endoscope processor device will send an upgrade command to the endoscope cold light source touch device. After receiving the upgrade command, the endoscope cold light source touch device adds a system upgrade flag under the cache partition, then calls the reboot command to restart into the recovery system, and starts the SPI receiving application under the recovery system. After the processor starts upgrading, it will send the file name and file size with md5 verification information to the endoscope cold light source touch device. After receiving the file name and file size, the endoscope cold light source touch device saves the information and then applies to the processor for upgrade package data. After receiving the upgrade package application information, the processor divides the upgrade package into 4k data and sends them to the endoscope cold light source touch device in sequence. After the endoscope cold light source touch device receives the upgrade package according to the file size, it writes the data into the upgrade file of the update partition and obtains the md5 value of the file. It compares it with the md5 verification information in the file name to verify whether the upgrade package is damaged. After the verification is correct, the source operating system is backed up in the update partition, and then the upgrade script is started to complete the system upgrade, and the upgrade success flag is sent to the processor, and then the cache partition upgrade flag and the update partition upgrade are deleted. Files and backup files, and the upgrade success is displayed on the display. After the processor receives the upgrade success flag sent by the endoscope cold light source touch device, the upgrade software interface displays that the endoscope cold light source touch device has been successfully upgraded.

[0131] In an exemplary embodiment, when the slave device is the endoscope cold light source controller device, as Figure 6 As shown in the figure, the upgrade process of the endoscope cold light source controller device includes:

[0132] Step 1: Turn on the endoscope cold light source controller device.

[0133] Step 2: After entering the U disk through the master device, the master device sends an upgrade instruction to the slave device; after receiving the upgrade instruction, the slave device enters the upgrade model.

[0134] Step 3: Under the upgrade model, the slave device sends an instruction to obtain upgrade package information to the master device.

[0135] After receiving the instruction to obtain the upgrade package information, the master device sends the upgrade package information (the size of the upgrade package) of the master device to the slave device. The upgrade package of the endoscope cold light source controller device is a single package verification. The size of the upgrade package is sent to ensure that the received upgrade package is complete. The endoscope cold light source controller device will store the upgrade data directly in the flash.

[0136] Step 4: After receiving the size of the upgrade package, the slave device sends a data request instruction to the master device.

[0137] Step 5: After receiving the data request instruction, the master device divides the upgrade package of the slave device into multiple data packets of 1024 bytes, numbers each data packet in sequence, adds 4 bytes after each data packet, and uses the 4 bytes to store the sum of all data in the current data packet, and sends each data packet to the master device in sequence. The size is set to 1028 bytes.

[0138] Step 6: The slave device verifies a received data packet according to the last 4 bytes of the data packet. If the verification is successful, the next data packet is received. If the verification fails, an instruction to retransmit the upgrade package data is sent to the master device. After all the data packets sent by the master device are received and verified successfully by the slave device, the slave device upgrades the system of the slave device according to the upgrade package composed of each data packet, that is, the new firmware replaces the original firmware in the endoscope cold light source controller device. If the upgrade is successful, a prompt of successful upgrade of the slave device is sent through the master device.

[0139] Step 7: After the upgrade is completed, turn off the endoscope cold light source controller device.

[0140] The SPI communication between the endoscope processor device and the endoscope cold light source controller device mainly includes upgrade instructions, upgrade package information, upgrade package and upgrade flag information. After entering the upgrade system, the endoscope processor device sends an upgrade instruction to the endoscope cold light source controller device, and the endoscope cold light source controller device jumps to the recovery mode after receiving the instruction. After the processor starts to upgrade, the endoscope cold light source controller device will first send a file size request to the processor. After receiving the request information, the processor obtains the upgrade file size of the endoscope cold light source controller device and sends it to the cold light source control device. Then the endoscope cold light source controller device sends a data request to the processor. The processor device divides the endoscope cold light source controller device upgrade package into 1k-byte data packets and adds 4 bytes after the data packet to store the value of the sum of all data in the current data packet, and then sends them to the endoscope cold light source controller device in sequence. The endoscope cold light source controller device receives the data packets in sequence and verifies the data, and then stores it in the backup data area. After waiting for all data to be transmitted and verified, the endoscope cold light source controller device copies the backup partition data to the firmware data area, and then sends an upgrade success flag to the processor. After the processor receives the upgrade success flag sent by the endoscope cold light source controller device, it prompts the endoscope cold light source controller device upgrade success on the software interface.

[0141] Generally speaking, the upgrade system process is as follows: Figure 7 shown.

[0142] Step 1: Turn on all slave devices of the medical endoscope device.

[0143] Step 2: The endoscope processor device enters the U disk system, and the endoscope processor touch device, the endoscope cold light source touch device and the endoscope cold light source controller device will first enter the software system.

[0144] Step 3: The endoscope processor device sends an upgrade instruction to the endoscope processor touch device, the endoscope cold light source touch device and the endoscope cold light source controller device.

[0145] Step 4: After receiving the upgrade instruction, the endoscope processor touch device, the endoscope cold light source touch device and the endoscope cold light source controller device restart or directly jump to the recovery system.

[0146] Step 5: The endoscope processor device selects the upgrade package and starts upgrading.

[0147] Step 6: Endoscope processor device upgrade system and application software.

[0148] Step 7: The endoscope processor touch device upgrades the system and application software.

[0149] Step 8: Upgrade the system and application software of the endoscope cold light source touch device.

[0150] Step 9: Upgrade the system firmware of the endoscope cold light source controller device.

[0151] Step 10: Complete the upgrade.

[0152] To avoid system startup failure due to upgrade errors, the medical endoscope upgrade solution develops recovery mode for all sub-devices.

[0153] The recovery system of the endoscope processor device runs on a U disk. The endoscope processor device will detect the currently inserted U disk during the boot loader (uboot) startup phase. If it detects that it is a U disk with a recovery system, uboot will select the mount point of the operating system in the partition where the U disk recovery system is located, continue to run the kernel, and the operating system will be mounted to the recovery system in the U disk. After the recovery system of the endoscope processor device is started, the upgrade software will automatically run. After selecting the upgrade package on the upgrade software interface, click the start button to start the upgrade. During the upgrade process, the software first copies the upgrade package to the update partition under the sata hard disk, then decompresses and verifies the upgrade file of the sub-device. After the verification is completed, the upgrade system will back up the original operating system in the update partition, and then replace the original system with the new system. After waiting for the upgrade to succeed, the upgrade system deletes all upgrade files and backup files under the update partition.

[0154] The recovery system of the endoscope processor touch device is a recovery partition on the embedded multimedia card (EMMC). After receiving the upgrade flag sent by the endoscope processor device, the endoscope processor touch device stores the upgrade system upgrade flag file in the cache partition, and then automatically restarts the endoscope processor touch device. When the endoscope processor touch device restarts and enters uboot, it will check the upgrade flag file in the cache partition. After detecting the upgrade flag file, uboot will modify the system mount partition to the recovery partition, and then continue to run the kernel to enter the recovery system. Under the recovery system, the endoscope processor touch device calls the SPI slave device program to receive and verify the upgrade package sent by the endoscope processor device, and then backs up the original system. After replacing the original system with the new system, the endoscope processor touch device sends an upgrade success flag to the endoscope processor device and deletes the upgrade package, upgrade flag file and system backup file.

[0155] The recovery system of the endoscope cold light source touch device runs in the same way as the recovery system of the endoscope processor touch device. The endoscope cold light source touch recovery system is also stored in the recovery partition on the EMMC. After receiving the upgrade flag sent by the endoscope processor device, the endoscope cold light source touch device stores the upgrade system upgrade flag file in the cache partition, and then automatically restarts the endoscope cold light source touch device. When the endoscope cold light source touch device restarts and enters uboot, it will check the upgrade flag file in the cache partition. After detecting the upgrade flag file, uboot will modify the system mount partition to the recovery partition, and then continue to run the kernel to enter the recovery system. Under the recovery system, the endoscope cold light source touch device calls the SPI slave device program to receive and verify the upgrade package sent by the processor, and then backs up the original system. After replacing the original system with the new system, the endoscope cold light source touch device sends an upgrade success flag to the endoscope processor device and deletes the upgrade package, upgrade flag file, and system backup file.

[0156] The endoscope cold light source controller device has a separate recovery mode. After the endoscope processor device sends an upgrade instruction to the endoscope cold light source controller device, the endoscope cold light source controller device receives the upgrade instruction and directly jumps to recovery, and sends the upgrade package information and data packet request to the endoscope processor device. The endoscope processor device sends the upgrade package information and upgrade package data to the endoscope cold light source controller device in turn. After the endoscope cold light source controller device receives the upgrade package and verifies that the data is correct, it first stores the data in the backup partition, and then calls the program to copy the backup partition data to the original firmware partition. After the copy is completed, the endoscope cold light source controller device sends an upgrade success flag to the endoscope processor device.

[0157] In the specific operation process of the present application method, the endoscope processor device, as the main control module, will send an upgrade instruction to other device modules after starting the USB disk system. This instruction can not only automatically trigger the upgrade process of the relevant modules, but also ensure that each module can respond in sequence and automatically enter the preset recovery system to receive and apply the upgrade package. This process reduces the necessity of user intervention, improves the automation of system upgrades, and ensures that each module can complete the upgrade in the shortest time.

[0158] In addition, the device adopts a real-time feedback mechanism after the upgrade, and each module will feedback its upgrade status to the main control device when the upgrade is completed. This allows users to monitor the entire upgrade process in real time and understand the upgrade progress of each module in a timely manner, so as to effectively manage and evaluate the upgrade results to ensure the stability and compatibility of the system operation.

[0159] The medical endoscope upgrade system completely separates the upgrade system from the software operating system, and all sub-modules have independent upgrade systems. All sub-device system upgrades are completed in the upgrade system. This application provides a safe and efficient modular upgrade solution. This design not only simplifies the complex upgrade process and improves the maintenance efficiency of the equipment, but also enhances the security and operational reliability of the system, providing a solid guarantee for the stability of medical equipment in daily use. During the upgrade process, if an upgrade fails, the system will roll back to the original system, further improving the reliability of the upgrade method of this application.

[0160] From the aspect of upgrading system functions, the medical endoscope operating system upgrading method of the present application aims to provide a simple and convenient system upgrading method for medical endoscope equipment. Users and after-sales personnel can quickly upgrade the system of the entire equipment through simple operations.

[0161] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0162] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application; at the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A method for upgrading a medical endoscope operating system, characterized in that: The medical endoscope operating system comprises a master device and a plurality of slave devices, each of the slave devices being communicatively connected with the master device; The medical endoscope operating system upgrade method comprises: Copy the upgrade package of the master device and the upgrade packages of each of the slave devices to a USB flash drive; When the master device is upgraded, the master device selects an upgrade package of the master device from the U disk, and upgrades the system and software of the master device according to the selected upgrade package of the master device. If the upgrade is successful, a prompt for successful upgrade of the master device is issued; if the upgrade fails, the system and software of the master device are returned to the system and software before the upgrade; When upgrading any of the slave devices, an upgrade instruction is sent to the slave device through the master device, and the upgrade package of the slave device in the U disk is sent to the slave device. After receiving the upgrade instruction, the slave device enters the recovery mode and receives the upgrade package of the slave device, and upgrades the system of the slave device according to the upgrade package of the slave device. If the upgrade is successful, a prompt for successful upgrade of the slave device is issued. If the upgrade fails, the slave device is returned to the system before the upgrade. Each slave device is provided with a recovery mode.

2. The method for upgrading the medical endoscope operating system according to claim 1, characterized in that: The master device is an endoscope processor device, and the slave device includes an endoscope processor touch control device, an endoscope cold light source touch control device and an endoscope cold light source controller device.

3. The method for upgrading the medical endoscope operating system according to claim 2, characterized in that: While copying the upgrade package of the master device and the upgrade packages of each of the slave devices to the U disk, the medical endoscope operating system upgrade method also includes: writing the md5 value of the upgrade package of each slave device into the file name of each upgrade package, copying the md5sum file storing the md5 value of each upgrade package to the U disk, and the md5 value of each upgrade package is used for integrity verification of each upgrade package.

4. The method for upgrading the medical endoscope operating system according to claim 3, characterized in that: When the main device is upgraded, the main device selects an upgrade package of the main device from the U disk, and upgrades the system and software of the main device according to the selected upgrade package of the main device. If the upgrade is successful, a prompt for successful upgrade of the main device is issued. If the upgrade fails, the system and software of the main device are returned to the system and software before the upgrade, which specifically includes: When the main device is upgraded, the main device selects an upgrade package of the main device from the USB flash drive; Calculating the md5 value of the upgrade package of the master device, determining whether the calculated md5 value of the upgrade package of the master device is the same as the md5 value of the upgrade package of the master device recorded in the md5sum file, and obtaining a first determination result; If the first judgment result is yes, it is determined that the upgrade package of the master device passes the integrity check, and the system and software of the master device are backed up to obtain a first backup file; Upgrading the system and software of the master device according to the selected upgrade package of the master device, and issuing a prompt of successful upgrade of the master device if the upgrade is successful, and returning the system and software of the master device to the system and software before the upgrade according to the first backup file if the upgrade fails; If the first judgment result is no, it is determined that the upgrade package of the main device has not passed the integrity check, and the program ends.

5. The method for upgrading the medical endoscope operating system according to claim 4, characterized in that: If the upgrade is successful, after issuing a prompt indicating that the main device has been successfully upgraded, the medical endoscope operating system upgrade method further includes: deleting the upgrade package and the first backup file in the main device.

6. The method for upgrading the medical endoscope operating system according to claim 3, characterized in that: When upgrading any of the slave devices, an upgrade instruction is sent to the slave device through the master device, and the upgrade package of the slave device in the U disk is sent to the slave device. After receiving the upgrade instruction, the slave device enters the recovery mode and receives the upgrade package of the slave device, and upgrades the system of the slave device according to the upgrade package of the slave device. If the upgrade is successful, a prompt for successful upgrade of the slave device is issued, and if the upgrade fails, the slave device is returned to the system before the upgrade, which specifically includes: When the slave device is the endoscope processor touch control device or the endoscope cold light source touch control device, an upgrade instruction is sent to the slave device through the master device; after receiving the upgrade instruction, the slave device enters the upgrade model; Sending the upgrade package of the slave device in the USB flash drive to the slave device through the master device; Calculating the md5 value of the upgrade package of the slave device by the slave device, determining whether the calculated md5 value is the same as the md5 value of the upgrade package of the slave device recorded in the upgrade package file name of the slave device, and obtaining a second determination result; If the second judgment result is yes, it is determined that the upgrade package of the slave device passes the integrity check, and the system of the slave device is backed up to obtain a second backup file; Under the upgrade model of the slave device, the upgrade package of the slave device is started to upgrade the system of the slave device. If the upgrade is successful, a prompt indicating the success of the slave device upgrade is sent through the master device.

7. The method for upgrading the medical endoscope operating system according to claim 6, characterized in that: Sending the upgrade package of the slave device in the USB flash drive to the slave device by the master device specifically includes: The master device sends the name and size of the upgrade package of the slave device to the slave device; The slave device creates an upgrade file after receiving the name and size of the upgrade package of the slave device; The master device sends an upgrade package of the slave device to the slave device; The slave device stores the received upgrade package of the slave device into the upgrade file.

8. The method for upgrading the medical endoscope operating system according to claim 6, characterized in that: After the master device sends a prompt indicating that the slave device has been successfully upgraded, the medical endoscope operating system upgrade method further includes: deleting the upgrade package and the second backup file in the slave device.

9. The method for upgrading the medical endoscope operating system according to claim 3, characterized in that: When upgrading any of the slave devices, an upgrade instruction is sent to the slave device through the master device, and the upgrade package of the slave device in the U disk is sent to the slave device. After receiving the upgrade instruction, the slave device enters the recovery mode and receives the upgrade package of the slave device, and upgrades the system of the slave device according to the upgrade package of the slave device. If the upgrade is successful, a prompt for successful upgrade of the slave device is issued, and if the upgrade fails, the slave device is returned to the system before the upgrade, which specifically includes: When the slave device is the endoscope cold light source controller device, after entering the U disk through the master device, the master device sends an upgrade instruction to the slave device; after receiving the upgrade instruction, the slave device enters the upgrade model; In the upgrade model, the slave device sends an instruction to obtain upgrade package information to the master device; After receiving the instruction to obtain the upgrade package information, the master device sends the size of the upgrade package of the master device to the slave device; After receiving the size of the upgrade package, the slave device sends a data request instruction to the master device; After receiving the data request instruction, the master device divides the upgrade package of the slave device into multiple data packets of set size, numbers each data packet in sequence, adds 4 bytes after each data packet, and the 4 bytes are used to store the sum of all data in the current data packet, and sends each data packet to the slave device in sequence; The slave device verifies a received data packet according to the last 4 bytes of the data packet. If the verification succeeds, the slave device receives the next data packet. If the verification fails, the slave device sends an instruction to retransmit the upgrade package data to the master device. After all the data packets sent by the master device are received and verified successfully by the slave device, the slave device upgrades the system of the slave device according to the upgrade package composed of each data packet.

10. The method for upgrading the medical endoscope operating system according to claim 1, characterized in that: The master device is connected to each of the slave devices via a SPI bus.