Solid state disk state detection method and device, medical imaging system and storage medium

By integrating the operating system and software system in the medical imaging system, the total number of written bytes of the solid-state drive is detected, and the security risks of solid-state drive status detection in medical devices are solved, achieving early warning and data security guarantees.

CN119396644APending Publication Date: 2025-02-07NEUSOFT MEDICAL SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411226782.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The solid-state drive used to store patient images in medical devices cannot be detected through third-party software, resulting in security risks and the possibility of data loss.

Method used

Provide a solid-state drive state detection method, by integrating the operating system and software system in a medical imaging system, calling the operating system based on pre-set detection rules, and obtaining the total number of bytes written by the solid-state drive according to the number of the solid-state drive. Allows the total number of written bytes to determine the status of the SSD.

Benefits of technology

By regularly detecting the status of the solid-state drive, users are reminded in advance of potential risks, reducing patient image data loss caused by solid-state drive failure, and reducing losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396644A_ABST
    Figure CN119396644A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of solid state disks, and discloses a solid state disk state detection method and device, a medical imaging system and a storage medium. The medical imaging system comprises a solid state disk, an operating system and a software system. The solid state disk state detection method is applied to a software system, and calls an operating system to obtain the total number of bytes written in a solid state disk based on a preset detection rule. And determining the state of the solid-state disk based on the total number of bytes written in the solid-state disk and the total number of allowable written bytes of the solid-state disk. Whether the solid state disk has risks is judged by determining the state of the solid state disk, so that a user is reminded in advance, the problem of patient image data loss caused by solid state disk faults is reduced, and loss is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of solid state hard disks, and in particular to a solid state hard disk state detection method, device, medical imaging system and storage medium. Background Art

[0002] The hard disks used to store patient images in medical equipment have gradually been updated from traditional mechanical hard disks to faster and more reliable solid state disks (SSDs). Therefore, the life and performance of SSDs are crucial.

[0003] In the related art, the state information of the solid-state drive is identified through third-party software. However, medical devices cannot access the operating system interface and cannot run third-party software, which brings security risks to the solid-state drive that stores patient imaging data. Summary of the invention

[0004] The embodiments of this specification are intended to solve at least one of the technical problems in the related art to a certain extent. To this end, the embodiments of this specification propose a solid state hard disk state detection method, device, medical imaging system and storage medium.

[0005] The present specification provides a method for detecting the state of a solid state hard disk. The medical imaging system includes a solid state hard disk, an operating system, and a software system. The method is applied to the software system. The method includes:

[0006] Based on a preset detection rule, calling the operating system to obtain the total number of bytes written to the solid state drive;

[0007] The state of the solid state drive is determined based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive.

[0008] In one embodiment, determining the state of the solid state drive based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive includes:

[0009] When the difference between the total number of bytes allowed to be written to the solid-state hard disk and the total number of bytes already written to the solid-state hard disk is less than or equal to a preset write byte threshold, it is determined that the solid-state hard disk is at risk.

[0010] In one embodiment, determining the state of the solid state drive based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive includes:

[0011] Get the number of bytes written per unit within the detection cycle;

[0012] Based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive, obtaining the number of bytes allowed to continue to be written;

[0013] The remaining service life of the solid state drive is predicted based on the number of bytes allowed to continue to be written and the number of bytes written per unit.

[0014] In one embodiment, obtaining the number of unit written bytes in a detection cycle includes:

[0015] Based on the preset detection cycle, calling the operating system to obtain the total number of first bytes written to the solid state drive at the beginning of the detection cycle and the total number of second bytes written to the solid state drive at the end of the detection cycle;

[0016] The unit write byte number is determined based on a difference between the second byte total and the first byte total and a ratio between the detection cycles.

[0017] In one embodiment, the pre-set detection rules include event rules and / or time rules, the event rules include at least one of after the medical imaging system is turned on, before the medical imaging system performs a scan with a storage capacity requirement greater than a preset threshold, and when the medical imaging system is on standby, and the time rules include reaching a set detection cycle.

[0018] This specification provides a medical imaging system, which includes a solid state drive, an operating system, and a software system:

[0019] The software system receives the total number of bytes allowed to be written to the solid-state hard disk and the set detection rules, and stores the total number of bytes allowed to be written to the solid-state hard disk and the set detection rules in the configuration information of the software system;

[0020] The software system calls the operating system based on the preset detection rule to obtain the total number of bytes written to the solid state drive;

[0021] The software system determines the state of the solid state drive based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive.

[0022] In one embodiment, the software system receives the entered write byte threshold and stores the entered write byte threshold in the configuration information of the software system;

[0023] The software system calculates the difference between the total number of bytes allowed to be written to the solid-state drive and the total number of bytes already written to the solid-state drive, and determines that the solid-state drive is at risk when the difference is less than or equal to the write byte threshold.

[0024] In one embodiment, the software system calls the operating system based on a detection period to obtain the number of unit written bytes in the detection period;

[0025] The software system obtains the number of bytes allowed to continue writing based on the total number of bytes written to the solid-state drive and the total number of bytes allowed to be written to the solid-state drive, and predicts the remaining service life of the solid-state drive based on the number of bytes allowed to continue writing and the unit number of bytes written.

[0026] In one embodiment, the system further comprises:

[0027] After the medical imaging system is started, when an alarm condition is triggered according to the state of the solid state hard disk, a pop-up window is displayed on the state of the solid state hard disk.

[0028] The present specification provides a solid state hard disk state detection device. The medical imaging system includes a solid state hard disk, an operating system, and a software system. The device is applied to the software system. The device includes:

[0029] A solid state drive parameter acquisition module, configured to call the operating system to acquire the total number of bytes written to the solid state drive based on a preset detection rule;

[0030] The solid state drive state determination module is used to determine the state of the solid state drive based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive.

[0031] The embodiments of this specification provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method described in any of the above embodiments are implemented.

[0032] An embodiment of the present specification provides a computer program product, wherein the computer program product includes instructions, and when the instructions are executed by a processor of a computer device, the computer device is enabled to perform the steps of the method described in any one of the above embodiments.

[0033] In the above-mentioned specification implementation mode, the medical imaging system includes a solid-state drive, an operating system, and a software system. The solid-state drive status detection method is applied to the software system, and based on the pre-set detection rules, the operating system is called to obtain the total number of bytes written to the solid-state drive. Then, based on the total number of bytes written to the solid-state drive and the total number of bytes allowed to be written to the solid-state drive, the state of the solid-state drive is determined. By determining the state of the solid-state drive, it is determined whether the solid-state drive is at risk, so as to remind the user in advance, thereby reducing the problem of patient imaging data loss due to solid-state drive failure and reducing losses. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A schematic diagram of a flow chart of a solid state drive status detection method provided in an embodiment of this specification;

[0035] Figure 2 A schematic diagram of a process for predicting the remaining service life of a solid state drive provided in an embodiment of this specification;

[0036] Figure 3 A schematic diagram of a process for determining the number of bytes written per unit provided in an embodiment of this specification;

[0037] Figure 4 A schematic diagram of a medical imaging system provided for an embodiment of the present specification;

[0038] Figure 5 A schematic diagram of a solid state drive status detection device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0039] 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.

[0040] With the development of technology, the storage of CT scan images has been updated from traditional mechanical hard disks to faster and more reliable solid-state disks (SSDs). However, long-term use of SSDs will cause write loss, which will affect their lifespan and performance. Especially in applications that store patient data, performance degradation will affect the storage and reading speed of scanned images, increasing the risk of image data loss.

[0041] In the related technology, the status information of solid-state drives is identified through third-party software, such as Crystaldiskinfo and hard drive detection tools provided by hard drive manufacturers. However, since the medical equipment console is usually in an information security blockade state, it is impossible to enter the operating system interface to run third-party software, and there is also a lack of active hard drive health warning functions, which brings security risks to the solid-state drives that store patient imaging data.

[0042] Based on this, the embodiments of this specification provide a method for detecting the status of a solid-state drive. A medical imaging system includes a solid-state drive, an operating system, and a software system. The solid-state drive status detection method is applied to the software system, and based on a pre-set detection rule, the operating system is called to obtain the total number of bytes written to the solid-state drive. Then, based on the total number of bytes written to the solid-state drive and the total number of bytes allowed to be written to the solid-state drive, the status of the solid-state drive is determined. By determining the status of the solid-state drive, it is determined whether the solid-state drive is at risk, so as to remind the user in advance, thereby reducing the problem of patient imaging data loss due to solid-state drive failure and reducing losses. In addition, the detection mechanism based on the detection rules can help users understand the status information of the solid-state drive without the need for professionals, so that when the solid-state drive is at risk, the user can perform maintenance or replacement in time to prevent data loss.

[0043] This specification provides a method for detecting the state of a solid state hard disk. Figure 1 The medical imaging system includes a solid state drive, an operating system, and a software system. The method is applied to the software system. The solid state drive status detection method may include the following steps:

[0044] S110. Based on a preset detection rule, call the operating system to obtain the total number of bytes written to the solid state drive.

[0045] The event rule includes at least one of after the medical imaging system is turned on, before the medical imaging system performs a scan where the storage capacity requirement is greater than a preset threshold, and when the medical imaging system is in standby. The storage capacity requirement of the medical imaging system before scanning can be obtained based on the scanning protocol. The scanning protocol includes imaging sequence information, and the imaging sequence information includes the thickness, number, imaging field of view, and image resolution of the imaging, etc. The storage capacity for storing the reconstructed image can be estimated based on the imaging sequence information. The preset threshold can be factory set or set by the operator of the medical imaging system according to actual needs.

[0046] The pre-set detection rules include event rules and / or time rules. The time rules include reaching a set detection period. The detection period can be a fixed time interval, and the detection period can be set according to demand and actual conditions, for example, the detection period can be 7 days or 30 days.

[0047] Specifically, in order to ensure the long-term stable operation of the SSD and accurately evaluate its health status, the software system is pre-set with detection rules to detect the SSD regularly or irregularly. Taking the time rule as an example, a suitable cycle can be set on the software interface according to the frequency and importance of the SSD, such as a weekly or monthly detection. Whenever the detection cycle ends, the software system will automatically call the operating system interface to query and obtain the total number of bytes written to the SSD. Among them, the total number of bytes written to the SSD can be displayed on the software interface so that the user can intuitively understand the usage of the SSD.

[0048] It should be noted that since the operating system provides interfaces and management layers, the software system calls the operating system to access SSD resources through the interface, reducing the software system's direct dependence on the SSD and improving the compatibility and portability of the software system.

[0049] S120: Determine the state of the solid state drive based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive.

[0050] Specifically, the life of a solid-state drive is usually limited by its total number of bytes written (Total Bytes Written, TBW). The total number of bytes allowed to be written to the solid-state drive is pre-set in the software system. After obtaining the total number of bytes written to the solid-state drive, the total number of bytes allowed to be written to the solid-state drive is read from the configuration information of the software system. Then, the software system uses a built-in algorithm to calculate the total number of bytes written to the solid-state drive and the total number of bytes allowed to be written to the solid-state drive, and evaluates the state of the solid-state drive based on the calculation result, such as the remaining life of the solid-state drive. In some embodiments, the software system can generate a corresponding report or warning message based on the state of the solid-state drive to remind the user of the situation of the solid-state drive, thereby helping the user take measures to ensure data security and prevent data loss.

[0051] In the above-mentioned embodiment, the medical imaging system includes a solid-state drive, an operating system, and a software system. The solid-state drive status detection method is applied to the software system, and based on the pre-set detection rules, the operating system is called to obtain the total number of bytes written to the solid-state drive. Then, based on the total number of bytes written to the solid-state drive and the total number of bytes allowed to be written to the solid-state drive, the state of the solid-state drive is determined. By determining the state of the solid-state drive, it is determined whether the solid-state drive is at risk, so as to remind the user in advance, thereby reducing the problem of patient imaging data loss due to solid-state drive failure and reducing losses. In addition, the detection mechanism based on the detection rules can help users understand the status information of the solid-state drive without the need for professionals, so that when the solid-state drive is at risk, the user can perform maintenance or replacement in time to prevent data loss.

[0052] In some embodiments, determining the status of the solid-state drive based on the total number of bytes written to the solid-state drive and the total number of bytes allowed to be written to the solid-state drive may include: determining that the solid-state drive is at risk when the difference between the total number of bytes allowed to be written to the solid-state drive and the total number of bytes written to the solid-state drive is less than or equal to a preset write byte threshold.

[0053] The write byte threshold may be a warning value set according to the usage of the solid state drive and data security requirements.

[0054] Specifically, after obtaining the total number of bytes written to the solid-state drive, the software system reads the total number of bytes allowed to be written and the write byte threshold of the solid-state drive from the configuration information of the software system. Then, in some embodiments, the software system calculates the difference between the total number of bytes allowed to be written to the solid-state drive and the total number of bytes written to the solid-state drive, and compares the difference with the preset write byte threshold. When the difference is less than or equal to the preset write byte threshold, it can be considered that the total number of bytes written to the solid-state drive is close to the limit. At this point, the software system determines that there is a risk in the solid-state drive. The software system can generate a warning message to prompt the user that the solid-state drive may have a risk of failure, and recommends that the user back up important data and consider replacing the solid-state drive to avoid data loss. Among them, the total number of bytes allowed to be written to the solid-state drive can be the ideal total number of bytes that can be stored based on the design and manufacture of the solid-state drive itself.

[0055] In other embodiments, the software system calculates the sum of the total number of bytes written to the solid state drive and a preset write byte threshold, and compares the sum with the total number of bytes allowed to be written to the solid state drive. If the sum is greater than or equal to the total number of bytes allowed to be written to the solid state drive, it can be considered that the total number of bytes written to the solid state drive is close to the limit.

[0056] Exemplarily, the risk of a solid state drive is determined according to the following formula:

[0057] D×1024≤A+B

[0058] Among them, A is the total number of bytes written to the solid-state drive (unit: GB), B is the write byte threshold (unit: GB), and D is the total number of bytes allowed to be written to the solid-state drive (unit: TB).

[0059] In the above implementation, when the difference between the total number of bytes allowed to be written to the solid-state drive and the total number of bytes already written to the solid-state drive is less than or equal to a preset write byte threshold, it is determined that the solid-state drive is at risk so as to remind the user to take measures to prevent data loss.

[0060] In some embodiments, see Figure 2, based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive, determining the state of the solid state drive may include the following steps:

[0061] S210, obtaining the number of unit written bytes within the detection cycle.

[0062] S220: Based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive, obtain the number of bytes allowed to continue to be written.

[0063] S230: predict the remaining service life of the solid state drive according to the number of bytes allowed to continue to be written and the number of bytes written per unit.

[0064] Specifically, before predicting the remaining service life of the solid-state drive, the software system needs to first determine the total number of bytes written by each unit, i.e., the number of bytes written per unit, within the detection cycle, based on the unit of the detection cycle. Then, the software system calculates the difference between the total number of bytes allowed to be written to the solid-state drive and the total number of bytes written to the solid-state drive at the end of the detection cycle, and determines the number of bytes allowed to continue to be written to the solid-state drive, i.e., the remaining write capacity of the solid-state drive. Finally, the software system divides the number of bytes allowed to continue to be written by the number of bytes written per unit to predict the remaining service life of the solid-state drive. The remaining service life indicates the time that the solid-state drive can be used normally at the current write rate. The number of bytes written per unit is a variable, which is positively correlated with the task volume of the medical imaging system within the detection cycle. The task volume of the medical imaging system within the detection cycle can be seasonal. For example, taking a computed tomography device (CT for short) as an example, the utilization rate of the CT device will be very high during the influenza season. The task volume of the medical imaging system within the detection cycle can be sudden, such as an epidemic. Therefore, it is more objective and accurate to predict the remaining service life of the solid-state drive based on the number of bytes written per unit. Among them, in the detection mechanism based on event rules, the detection cycle can be preset at the factory or set by the operator of the medical imaging system according to actual needs.

[0065] Exemplarily, the remaining service life of the solid state drive is determined according to the following formula:

[0066]

[0067] Among them, M is the total number of bytes written to the SSD at the end of the detection cycle (unit: GB), P is the unit write bytes, D is the total number of bytes allowed to be written to the SSD (unit: TB), and E is the remaining service life of the SSD.

[0068] In the above implementation, the number of unit write bytes within the detection cycle is obtained, and the number of bytes allowed to continue to be written is obtained based on the total number of bytes written to the solid-state drive and the total number of bytes allowed to be written to the solid-state drive. Based on the number of bytes allowed to continue to be written and the number of unit write bytes, the remaining service life of the solid-state drive is predicted, helping users to effectively manage the service life of the solid-state drive and reduce the risk of data loss.

[0069] In some embodiments, see Figure 3 , obtaining the number of bytes written per unit within the detection cycle may include the following steps:

[0070] S310. Based on a preset detection cycle, call the operating system to obtain the total number of first bytes written to the solid state drive at the beginning of the detection cycle and the total number of second bytes written to the solid state drive at the end of the detection cycle.

[0071] S320: Determine the unit write byte number based on the difference between the second byte total and the first byte total and the ratio between the detection cycles.

[0072] Specifically, according to the pre-set detection cycle, determine whether the start time of the detection cycle has been reached. At the beginning of the detection cycle, the software system will automatically call the interface of the operating system, query and obtain the total number of bytes written to the solid-state hard disk, and obtain the first total number of bytes. After obtaining the first total number of bytes, the software system will save it for subsequent use. At the end of the detection cycle, the software system calls the interface of the operating system again, queries and obtains the total number of bytes written to the solid-state hard disk, and obtains the second total number of bytes. The software system calculates the difference between the second total number of bytes and the first total number of bytes, and the difference represents the total number of bytes written to the solid-state hard disk during the detection cycle. Then, the software system divides the difference between the second total number of bytes and the first total number of bytes by the detection cycle to determine the unit write byte number.

[0073] Exemplarily, the unit write bytes are determined according to the following formula:

[0074] P=(MN) / C

[0075] Among them, N is the total number of first bytes written to the solid-state hard disk at the beginning of the detection cycle (unit: GB), M is the total number of second bytes written to the solid-state hard disk at the end of the detection cycle (unit: GB), C is the detection cycle, and P is the number of bytes written per unit.

[0076] In the above implementation, based on a preset detection cycle, the operating system is called to obtain the total number of first bytes written to the solid-state hard disk at the beginning of the detection cycle and the total number of second bytes written to the solid-state hard disk at the end of the detection cycle, and the unit write byte number is determined based on the difference between the total number of second bytes and the total number of first bytes and the ratio between the detection cycles.

[0077] This specification provides a medical imaging system. Figure 4 , the medical imaging system 400 includes a solid state drive 410, an operating system 420, and a software system 430:

[0078] The software system 430 receives the total number of bytes allowed to be written to the solid-state drive 410 and the set detection rules, and stores the total number of bytes allowed to be written to the solid-state drive 410 and the set detection rules in the configuration information of the software system.

[0079] Specifically, the software system 430 provides a software interface that allows the user to input relevant parameters of the solid-state drive 410. The user enters the total number of bytes allowed to be written to the solid-state drive 410 and sets the detection rules through the software interface. After the user submits the data, the software system 430 receives the entered parameters and stores them in the configuration information of the software system 430. The user can access and update the corresponding parameters through the software interface when necessary to meet different needs in different application scenarios, so that the software system 430 can adapt to different operating conditions and environmental requirements.

[0080] The software system 430 calls the operating system 420 based on a preset detection rule to obtain the total number of bytes written to the solid state drive 410 .

[0081] The software system 420 determines the state of the solid state drive 410 based on the total number of bytes written to the solid state drive 410 and the total number of bytes allowed to be written to the solid state drive 410 .

[0082] Specifically, whenever the set detection rule scenario appears, the software system 430 will automatically call the interface of the operating system 420 to query and obtain the total number of bytes written to the solid-state drive. After obtaining the total number of bytes written to the solid-state drive 410, the total number of bytes allowed to be written to the solid-state drive 410 is read from the configuration information of the software system 430. Then, the software system 430 uses a built-in algorithm to calculate the total number of bytes written to the solid-state drive 410 and the total number of bytes allowed to be written to the solid-state drive 410, and evaluates the state of the solid-state drive 410 according to the calculation result, such as the remaining life of the solid-state drive 410. In some embodiments, the software system 430 can generate a corresponding report or warning information based on the state of the solid-state drive 410 to remind the user of the situation of the solid-state drive 410, thereby helping the user take measures to ensure data security and prevent data loss.

[0083] In the above implementation, the software system receives the total number of bytes allowed to be written to the solid-state hard disk and the set detection rules, and stores the total number of bytes allowed to be written to the solid-state hard disk and the set detection rules in the configuration information of the software system. The software system calls the operating system based on the pre-set detection rules to obtain the total number of bytes written to the solid-state hard disk, and determines the state of the solid-state hard disk based on the total number of bytes written to the solid-state hard disk and the total number of bytes allowed to be written to the solid-state hard disk. By determining the state of the solid-state hard disk, it is determined whether the solid-state hard disk is at risk, so as to remind the user in advance, thereby reducing the problem of patient imaging data loss due to solid-state hard disk failure and reducing losses. In addition, the detection mechanism based on the detection rules can help users understand the status information of the solid-state hard disk without the need for professionals, so that when the solid-state hard disk is at risk, the user can perform maintenance or replacement in time to prevent data loss.

[0084] In some embodiments, see Figure 4 , the software system 430 receives the entered write byte threshold and stores the entered write byte threshold in the configuration information of the software system 430 .

[0085] Specifically, the software system 430 provides a software interface that allows the user to input relevant parameters of the solid-state drive 410. The user enters the write byte threshold through the software interface. After the user submits the data, the software system 430 receives the entered parameters and stores them in the configuration information of the software system 430. The user can access and update the corresponding parameters through the software interface when necessary.

[0086] The software system 430 calculates the difference between the total allowed write bytes of the SSD 410 and the total bytes already written to the SSD 410 , and determines that the SSD 410 is at risk when the difference is less than or equal to the write byte threshold.

[0087] Specifically, after obtaining the total number of bytes written to the solid-state drive 410, the software system 430 reads the total number of bytes allowed to be written and the write byte threshold of the solid-state drive 410 from the configuration information of the software system 430. Then, in some embodiments, the software system 430 calculates the difference between the total number of bytes allowed to be written to the solid-state drive 410 and the total number of bytes written to the solid-state drive 410, and compares the difference with the preset write byte threshold. In the case where the difference is less than or equal to the preset write byte threshold, it can be considered that the total number of bytes written to the solid-state drive 410 is close to the limit. At this time, the software system 430 determines that the solid-state drive 410 is at risk. The software system 430 can generate a warning message to prompt the user that the solid-state drive 410 may have a risk of failure, and recommends that the user back up important data and consider replacing the solid-state drive to avoid data loss. Among them, the total number of bytes allowed to be written to the solid-state drive 410 can be the ideal total number of bytes that can be stored based on the design and manufacture of the solid-state drive 410 itself.

[0088] In other embodiments, the software system 430 calculates the sum of the total number of bytes written to the solid-state drive 410 and a preset write byte threshold, and compares the sum with the total number of bytes allowed to be written to the solid-state drive 410. If the sum is greater than or equal to the total number of bytes allowed to be written to the solid-state drive 410, it can be considered that the total number of bytes written to the solid-state drive 410 is close to the limit.

[0089] In the above implementation, the software system receives the entered write byte threshold and stores the entered write byte threshold in the configuration information of the software system. The software system calculates the difference between the total allowed write bytes of the solid-state drive and the total number of bytes already written to the solid-state drive, and when the difference is less than or equal to the write byte threshold, determines that the solid-state drive is at risk, so as to remind the user to take measures to prevent data loss.

[0090] In some embodiments, see Figure 4 , the software system 430 calls the operating system 420 based on the detection cycle to obtain the number of unit written bytes within the detection cycle.

[0091] Specifically, at the beginning of the detection cycle, the software system 430 will automatically call the interface of the operating system 420, query and obtain the total number of bytes written to the solid-state hard disk 410, and obtain the first total number of bytes. After obtaining the first total number of bytes, the software system 430 will save it for subsequent use. At the end of the detection cycle, the software system 430 calls the interface of the operating system 420 again, queries and obtains the total number of bytes written to the solid-state hard disk 410, and obtains the second total number of bytes. The software system 430 calculates the difference between the second total number of bytes and the first total number of bytes, and the difference represents the total number of bytes written to the solid-state hard disk 410 during the detection cycle. Then, the software system 430 divides the difference between the second total number of bytes and the first total number of bytes by the detection cycle to determine the unit write byte number.

[0092] The software system 430 obtains the number of bytes allowed to continue to be written based on the total number of bytes written to the solid-state drive 410 and the total number of bytes allowed to be written to the solid-state drive 410, and predicts the remaining service life of the solid-state drive 410 based on the number of bytes allowed to continue to be written and the unit write bytes.

[0093] Specifically, the software system 430 calculates the difference between the total number of bytes allowed to be written to the solid state drive 410 and the second total number of bytes, and determines the number of bytes allowed to be continuously written to the solid state drive 410, that is, the remaining write capacity of the solid state drive 410. Finally, the software system 430 divides the obtained number of bytes allowed to be continuously written by the number of unit bytes written to predict the remaining service life of the solid state drive 410. The remaining service life indicates the time that the solid state drive 410 can still be used normally at the current write rate.

[0094] In the above implementation, the software system obtains the number of unit write bytes within the detection cycle, obtains the number of bytes allowed to continue to be written based on the total number of bytes written to the solid-state drive and the total number of bytes allowed to be written to the solid-state drive, and predicts the remaining service life of the solid-state drive based on the number of bytes allowed to continue to be written and the number of unit write bytes, thereby helping users to effectively manage the service life of the solid-state drive and reduce the risk of data loss.

[0095] In some embodiments, the medical imaging system 400 further includes: after the medical imaging system 400 is started, when an alarm condition is triggered according to the state of the solid state drive 410 , a pop-up window is displayed on the state of the solid state drive 410 .

[0096] Specifically, after the medical imaging system 400 is started, relevant parameters of the solid state drive 410 are loaded, including detection rules, the total number of bytes allowed to be written to the solid state drive, a write byte threshold, etc. When the difference between the total number of bytes allowed to be written to the solid state drive 410 and the total number of bytes written to the solid state drive 410 is less than or equal to a preset write byte threshold, which can also be understood as an alarm threshold, the medical imaging system 400 determines that the solid state drive is at risk and meets the triggering alarm condition.

[0097] The medical imaging system 400 first obtains the number of bytes written per unit within the detection cycle and the number of bytes allowed to continue to be written based on the total number of bytes written to the solid-state drive and the total number of bytes allowed to be written to the solid-state drive. Then, the medical imaging system 400 predicts the remaining service life of the solid-state drive based on the number of bytes allowed to continue to be written and the number of bytes written per unit. If the remaining service life of the solid-state drive is less than the preset time, for example, the preset time can be 1 day, it is determined that the solid-state drive is at risk and the triggering alarm condition is met.

[0098] When the alarm triggering condition is met, the medical imaging system 400 will trigger the alarm mechanism. A warning window will pop up on the system interface, and prompt information will be displayed on the window to remind the user of the status of the solid state drive. For example, the prompt information in the pop-up window may be: the remaining write capacity of the solid state drive is insufficient! The remaining service life is n days. It is recommended to back up data immediately and consider replacing the solid state drive.

[0099] In the above embodiment, after the medical imaging system is started, when an alarm condition is triggered based on the status of the solid-state hard drive, a pop-up window is displayed on the status of the solid-state hard drive, and the user can intuitively see the status information of the solid-state hard drive, thereby improving the user experience and enhancing the security and reliability of the system.

[0100] This specification provides a solid state hard disk status detection device 500, see Figure 5 The medical imaging system includes a solid state drive, an operating system, and a software system. The device is applied to the software system. The solid state drive status detection device 500 includes: a solid state drive parameter acquisition module 510 and a solid state drive status determination module 520.

[0101] The solid state drive parameter acquisition module 510 is used to call the operating system to obtain the total number of bytes written to the solid state drive based on a preset detection rule;

[0102] The solid state drive state determination module 520 is used to determine the state of the solid state drive based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive.

[0103] For a detailed description of the solid state drive status detection device, please refer to the description of the solid state drive status detection method above, which will not be repeated here.

[0104] An embodiment of the present specification provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method in any of the above embodiments are implemented.

[0105] One embodiment of the present specification provides a computer program product, which includes instructions. When the instructions are executed by a processor of a computer device, the computer device can perform the steps of the method of any of the above embodiments.

[0106] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.

Claims

1. A method for detecting the state of a solid state hard disk, characterized in that: The medical imaging system includes a solid state drive, an operating system, and a software system. The method is applied to the software system, and the method includes: Based on a preset detection rule, calling the operating system to obtain the total number of bytes written to the solid state drive; The state of the solid state drive is determined based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive.

2. The method according to claim 1, characterized in that: The determining the state of the solid state drive based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive comprises: When the difference between the total number of bytes allowed to be written to the solid-state hard disk and the total number of bytes already written to the solid-state hard disk is less than or equal to a preset write byte threshold, it is determined that the solid-state hard disk is at risk.

3. The method according to claim 1, characterized in that: The determining the state of the solid state drive based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive comprises: Get the number of bytes written per unit within the detection cycle; Based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive, obtaining the number of bytes allowed to continue to be written; The remaining service life of the solid state drive is predicted based on the number of bytes allowed to continue to be written and the number of bytes written per unit.

4. The method according to claim 3, characterized in that The obtaining of the number of bytes written per unit within the detection cycle includes: Based on the preset detection cycle, calling the operating system to obtain the total number of first bytes written to the solid state drive at the beginning of the detection cycle and the total number of second bytes written to the solid state drive at the end of the detection cycle; The unit write byte number is determined based on a difference between the second byte total and the first byte total and a ratio between the detection cycles.

5. The method according to any one of claims 1 to 4, characterized in that: The pre-set detection rules include event rules and / or time rules. The event rules include at least one of after the medical imaging system is turned on, before the medical imaging system performs a scan with a storage capacity requirement greater than a preset threshold, and when the medical imaging system is on standby. The time rules include reaching a set detection cycle.

6. A medical imaging system, characterized in that: The medical imaging system includes a solid state drive, an operating system, and a software system: The software system receives the total number of bytes allowed to be written to the solid-state hard disk and the set detection rules, and stores the total number of bytes allowed to be written to the solid-state hard disk and the set detection rules in the configuration information of the software system; The software system calls the operating system based on the preset detection rule to obtain the total number of bytes written to the solid state drive; The software system determines the state of the solid state drive based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive.

7. The system according to claim 6, characterized in that: The software system receives the entered write byte threshold, and stores the entered write byte threshold in the configuration information of the software system; The software system calculates the difference between the total number of bytes allowed to be written to the solid-state drive and the total number of bytes already written to the solid-state drive, and determines that the solid-state drive is at risk when the difference is less than or equal to the write byte threshold.

8. The system according to claim 6, characterized in that: The software system calls the operating system based on a detection period to obtain the number of unit written bytes within the detection period; The software system obtains the number of bytes allowed to continue writing based on the total number of bytes written to the solid-state drive and the total number of bytes allowed to be written to the solid-state drive, and predicts the remaining service life of the solid-state drive based on the number of bytes allowed to continue writing and the unit number of bytes written.

9. A solid state hard disk status detection device, characterized in that: The medical imaging system includes a solid state drive, an operating system, and a software system. The device is applied to the software system. The device includes: A solid state drive parameter acquisition module, configured to call the operating system to acquire the total number of bytes written to the solid state drive based on a preset detection rule; The solid state drive state determination module is used to determine the state of the solid state drive based on the total number of bytes written to the solid state drive and the total number of bytes allowed to be written to the solid state drive.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.