Communication connection monitoring method, medical system, and storage medium

In the medical system, the host computer periodically writes different heartbeat numbers and receives feedback, and the lower computer reads the heartbeat numbers to determine connection abnormalities. This solves the problem of communication connection monitoring in the medical system and improves the safety of diagnosis and treatment.

CN116669810BActive Publication Date: 2024-09-17OUR UNITED CORP +1
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202080108272.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-28
Publication Date
2024-09-17
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

In medical systems, existing technology makes it difficult to monitor in real time whether the communication connection between the upper computer and the lower computer is normal, affecting the safety of diagnosis and treatment.

Method used

The host computer periodically writes different heartbeat numbers to the host computer and receives feedback signs. If the writing fails or the same heartbeat numbers are continuously read, it is determined that the communication connection is abnormal, and the host computer can control the radiotherapy equipment to send out an alarm signal and stop working.

Benefits of technology

It realizes real-time monitoring of the normality of the communication connection between the upper computer and the lower computer when the medical system is working, improves the safety of diagnosis and treatment, and avoids medical accidents caused by communication abnormalities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116669810B
    Figure CN116669810B
Patent Text Reader

Abstract

A communication connection monitoring method, a medical system (100), and a storage medium, belonging to the field of medical technology. The method comprises: after a host computer (101) and a slave computer (102) establish a communication connection, the host computer (101) periodically writes a heartbeat number to the slave computer (102), and the heartbeat number written to the slave computer (102) each time is different (201); if the host computer (101) fails to write the heartbeat number to the slave computer (102) at least once, the host computer (101) determines that the communication connection between it and the slave computer (102) is abnormal (202); the slave computer (102) periodically reads the heartbeat number written by the host computer (101) (301); if the heartbeat numbers read by the slave computer (102) at least twice in a row are the same, the slave computer (102) determines that the communication connection between it and the host computer (101) is abnormal (302). The communication connection monitoring method can ensure that when the medical system (100) is working, the upper computer (101) can monitor in real time whether the communication connection between it and the lower computer (102) is normal, and the lower computer (102) can also monitor in real time whether the communication connection between it and the upper computer (101) is normal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical technology, and in particular to a communication connection monitoring method, a medical system, and a storage medium. Background Art

[0002] With the continuous development of medical technology, more and more hospitals use medical systems to diagnose or treat patients.

[0003] The medical system usually includes: a host computer, a slave computer and radiotherapy equipment. Among them, the host computer usually refers to a computer that can directly send control commands, and the slave computer usually refers to a computer that directly controls the operating state of the radiotherapy equipment. When using the medical system to diagnose or treat patients, the host computer can send control commands to the slave computer, and the slave computer can control the operating state of the radiotherapy equipment after receiving the control commands to achieve diagnosis or treatment of patients.

[0004] In order to ensure the safety of diagnosing or treating patients using a medical system, it is necessary to ensure that the communication connection between the host computer and the slave computer is normal. Therefore, a method is urgently needed to monitor whether the communication connection between the host computer and the slave computer is normal in real time when the medical system is working. Summary of the invention

[0005] The embodiment of the present application provides a communication connection monitoring method, a medical system, and a storage medium, which can monitor in real time whether the communication connection between the upper computer and the lower computer is normal when the medical system is working. The technical solution is as follows:

[0006] In a first aspect, a method for monitoring a communication connection is provided, which is applied to a host computer, and the method comprises: after the host computer establishes a communication connection with a slave computer, periodically writing a heartbeat number to the slave computer, and the heartbeat number written to the slave computer each time is different; if the host computer fails to write the heartbeat number to the slave computer at least once, determining that the communication connection between the host computer and the slave computer is abnormal; wherein the heartbeat number is used for the slave computer to perform periodic reading, so that the slave computer determines that the communication connection between the slave computer and the host computer is abnormal after reading the same heartbeat number for multiple consecutive times.

[0007] Optionally, the method further includes: receiving a feedback identifier sent by the lower computer after each writing of the heartbeat number to the lower computer, wherein the feedback identifier is used to indicate whether the upper computer successfully writes the heartbeat number to the lower computer.

[0008] Optionally, the method further includes: if it is determined that the feedback identifier is an identifier for indicating that the upper computer successfully writes the heartbeat number to the lower computer, then determining that the communication connection between the upper computer and the lower computer is normal.

[0009] Optionally, the method further includes: if it is determined that the feedback identifier is an identifier for indicating that the upper computer has failed to write the heartbeat number to the lower computer, then determining that writing the heartbeat number to the lower computer has failed.

[0010] Optionally, the method also includes: before writing the heartbeat number to the lower computer each time, checking whether a communication connection with the lower computer is successfully established; if it is checked that a communication connection with the lower computer is successfully established, executing the operation of writing the heartbeat number to the lower computer; if it is checked that no communication connection is established with the lower computer, determining that writing the heartbeat number to the lower computer this time has failed.

[0011] Optionally, the upper computer is communicatively connected with the lower computer via middleware, and receives a feedback identifier sent by the lower computer after each heartbeat number is written to the lower computer, including: receiving a feedback identifier sent by the middleware after each heartbeat number is written to the lower computer via the middleware, and the middleware is used to generate the feedback identifier after each heartbeat number is written to the lower computer; the checking whether a communication connection is successfully established with the lower computer includes: checking whether a communication connection is successfully established with the lower computer via the middleware.

[0012] Optionally, if the upper computer fails to write the heartbeat number to the lower computer at least once, it is determined that the communication connection between the upper computer and the lower computer is abnormal, including: if the upper computer fails to write the heartbeat number to the lower computer for multiple consecutive times, it is determined that the communication connection between the upper computer and the lower computer is abnormal.

[0013] Optionally, the method further includes: after determining that the communication connection between the upper computer and the lower computer is abnormal, outputting a prompt message.

[0014] Optionally, the periodically writing heartbeat numbers to the lower computer includes: periodically writing heartbeat numbers to a controller of the lower computer.

[0015] Optionally, the heartbeat numbers periodically written by the upper computer to the lower computer are arranged in an arithmetic progression or a geometric progression.

[0016] Optionally, the period duration for which the upper computer writes the heartbeat number to the lower computer is less than or equal to the period duration for which the lower computer reads the heartbeat number.

[0017] In a second aspect, a method for monitoring a communication connection is provided, which is applied to a lower computer, and the method comprises: after the lower computer establishes a communication connection with an upper computer, periodically reading a heartbeat number written by the upper computer, the heartbeat number being periodically written by the upper computer, and the heartbeat number written by the upper computer to the lower computer each time being different; if the heartbeat numbers read by the lower computer at least twice in a row are the same, it is determined that the communication connection between the upper computer and the lower computer is abnormal.

[0018] Optionally, the method further includes: if the heartbeat number currently read by the lower computer is different from the heartbeat number read last time, determining that the communication connection with the upper computer is normal.

[0019] Optionally, if the heartbeat numbers read by the lower computer at least twice in a row are the same, then it is determined that the communication connection between the upper computer and the lower computer is abnormal, including: if the heartbeat number currently read by the lower computer is the same as the heartbeat number read last time, then continue to read the heartbeat number at least once, and when the heartbeat number read each time is the same as the heartbeat number read last time, it is determined that the communication connection between the upper computer and the lower computer is abnormal.

[0020] Optionally, the periodic reading of the heartbeat number written by the upper computer includes: periodically reading the heartbeat number written by the upper computer from the controller of the lower computer.

[0021] Optionally, the method further includes: after determining that the communication connection between the upper computer and the lower computer is abnormal, controlling the radiotherapy equipment to send an alarm signal and controlling the radiotherapy equipment to stop working.

[0022] In a third aspect, a medical system is provided, comprising: a host computer and a slave computer; the host computer comprises: a first processor, and a first memory for storing executable instructions of the first processor, wherein the first processor is configured to execute the communication connection monitoring method provided in the first aspect; the slave computer comprises: a second processor, and a second memory for storing executable instructions of the second processor, wherein the second processor is configured to execute the communication connection monitoring method provided in the second aspect.

[0023] Optionally, the medical system further includes: a radiotherapy device having an alarm buzzer; and the lower computer is configured to: after determining that the communication connection between the upper computer and the lower computer is abnormal, control the alarm buzzer to emit an alarm audio.

[0024] Optionally, the radiotherapy equipment further has an operation panel; the lower computer is configured to: after determining that the communication connection between the upper computer and the lower computer is abnormal, control the fault alarm light in the operation panel to light up.

[0025] In a fourth aspect, a computer-readable storage medium is provided, characterized in that instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a processing component, the processing component executes the communication connection monitoring method as described in either the first aspect or the second aspect.

[0026] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0027] The host computer can periodically write heartbeat numbers to the subordinate computer, and after the host computer fails to write the heartbeat numbers to the subordinate computer at least once, the host computer can determine that the communication connection between it and the subordinate computer is abnormal. Since the heartbeat numbers written by the host computer to the subordinate computer each time are different, the subordinate computer can periodically read the heartbeat numbers written by the host computer, and after the same heartbeat numbers are read at least twice in connection, the subordinate computer can determine that the communication connection between it and the host computer is abnormal. In this way, the monitoring method of the communication connection can ensure that when the medical system is working, the host computer can monitor in real time whether the communication connection between it and the subordinate computer is normal, and the subordinate computer can also monitor in real time whether the communication connection between it and the host computer is normal, ensuring that the safety when the medical system is used to diagnose or treat patients is higher. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of 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 creative work.

[0029] Figure 1 is a structural diagram of a medical system involved in a communication connection monitoring method provided in an embodiment of the present application;

[0030] Figure 2 is a flow chart of a method for monitoring a communication connection provided in an embodiment of the present application;

[0031] Figure 3 is a flow chart of another communication connection monitoring method provided by an embodiment of the present application;

[0032] Figure 4 is a flowchart of another communication connection monitoring method provided in an embodiment of the present application;

[0033] Figure 5 is a structural block diagram of a communication connection monitoring device provided in an embodiment of the present application;

[0034] Figure 6 It is a structural block diagram of another communication connection monitoring device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0036] Please refer to Figure 1 , Figure 1 1 is a schematic diagram of a medical system involved in a communication connection monitoring method provided in an embodiment of the present application. The medical system 100 may include: a host computer 101 and a slave computer 102. The host computer 101 and the slave computer 102 may be in communication connection with each other.

[0037] In the embodiment of the present application, the medical system 100 may further include: a radiotherapy device 103 connected to the slave computer 102. The radiotherapy device 103 may include: a gamma knife or an execution accelerator.

[0038] For example, the host computer 101 may be a computer that directly sends control commands, for example, the host computer 101 may be a desktop computer or a laptop computer, etc. The slave computer 102 generally refers to a computer that directly controls the operating state of the radiotherapy device, for example, the slave computer 102 may be a motion control component of the radiotherapy device. In this way, the movement of the treatment bed and / or the rotating frame in the radiotherapy device can be controlled by the slave computer 102.

[0039] The upper computer 101 is installed with upper computer software, and the lower computer 102 is installed with lower computer software. The upper computer 101 can send a control command to the lower computer 102 through the upper computer software. After receiving the control command, the lower computer 102 can control the operating state of the radiotherapy device 103 through the lower computer software, so that the radiotherapy device 103 can diagnose or treat the patient.

[0040] In the present application, the host computer 101 can be connected to the slave computer 102 through middleware, wherein the middleware refers to software that connects two independent application programs (ie, the host computer software and the slave computer software).

[0041] Please refer to Figure 2 , Figure 2 is a flow chart of a method for monitoring a communication connection provided in an embodiment of the present application. The method for monitoring a communication connection is applied to Figure 1 The host computer 101 in the treatment system 100 is shown. The monitoring method of the communication connection includes:

[0042] Step 201: After the upper computer and the lower computer are connected in communication, the heartbeat number is periodically written to the lower computer, and the heartbeat number written to the lower computer each time is different.

[0043] Step 202: If the upper computer fails to write a number to the lower computer at least once, it is determined that the communication connection between the upper computer and the lower computer is abnormal.

[0044] The heartbeat number is used for periodic reading by the lower computer, so that after the lower computer reads the same heartbeat number for multiple times in succession, it can determine that the communication connection between the lower computer and the upper computer is abnormal.

[0045] In summary, the monitoring method of communication connection provided by the embodiment of the present application, the host computer can periodically write heartbeat numbers to the subordinate computer, and after the host computer fails to write heartbeat numbers to the subordinate computer at least once, the host computer can determine that the communication connection between it and the subordinate computer is abnormal. Because the heartbeat numbers written by the host computer to the subordinate computer are different at each time, the subordinate computer can periodically read the heartbeat numbers written by the host computer, and after the same heartbeat numbers are read at least twice in connection, the subordinate computer can determine that the communication connection between it and the host computer is abnormal. In this way, the monitoring method of the communication connection can ensure that when the medical system is working, the host computer can monitor in real time whether the communication connection between it and the subordinate computer is normal, and the subordinate computer can also monitor in real time whether the communication connection between it and the host computer is normal, and it is ensured that the safety when the medical system is used to diagnose or treat the patient is higher.

[0046] Please refer to Figure 3 , Figure 3 is a flow chart of another communication connection monitoring method provided in an embodiment of the present application. The communication connection monitoring method is applied to Figure 1 The lower computer 102 in the treatment system 100 is shown. The monitoring method of the communication connection includes:

[0047] Step 301: After the lower computer establishes a communication connection with the upper computer, the heartbeat number written by the upper computer is periodically read. The heartbeat number is periodically written by the upper computer, and the heartbeat number written by the upper computer to the lower computer each time is different.

[0048] Step 302: If the heartbeat numbers read by the lower computer at least twice in a row are the same, it is determined that the communication connection between the upper computer and the lower computer is abnormal.

[0049] In summary, the monitoring method of communication connection provided by the embodiment of the present application, the host computer can periodically write heartbeat numbers to the subordinate computer, and after the host computer fails to write heartbeat numbers to the subordinate computer at least once, the host computer can determine that the communication connection between it and the subordinate computer is abnormal. Because the heartbeat numbers written by the host computer to the subordinate computer are different at each time, the subordinate computer can periodically read the heartbeat numbers written by the host computer, and after the same heartbeat numbers are read at least twice in connection, the subordinate computer can determine that the communication connection between it and the host computer is abnormal. In this way, the monitoring method of the communication connection can ensure that when the medical system is working, the host computer can monitor in real time whether the communication connection between it and the subordinate computer is normal, and the subordinate computer can also monitor in real time whether the communication connection between it and the host computer is normal, and it is ensured that the safety when the medical system is used to diagnose or treat the patient is higher.

[0050] Please refer to Figure 4 , Figure 4 is a flow chart of another communication connection monitoring method provided in an embodiment of the present application. The communication connection monitoring method is applied to Figure 1 The therapeutic system 100 is shown. The method for monitoring the communication connection includes:

[0051] Step 401: After the upper computer and the lower computer establish a communication connection, the upper computer periodically writes a heartbeat number to the lower computer, and the heartbeat number written to the lower computer each time is different.

[0052] For example, the heartbeat numbers periodically written by the host computer to the subordinate computer are arranged in an arithmetic progression or a geometric progression. For example, assuming that the heartbeat numbers periodically written by the host computer to the subordinate computer are arranged in an arithmetic progression, the heartbeat numbers periodically written by the host computer to the subordinate computer can be: n, n+1, n+2, etc. wherein n can be an integer greater than or equal to 0.

[0053] Optionally, the upper computer periodically writes the heartbeat number to the lower computer, including: the upper computer periodically writes the heartbeat number to the controller in the lower computer. For example, the controller may be a central processing unit (CPU), a microprocessor (MPU) or a field programmable gate array (FPGA).

[0054] For example, the controller has a storage address for storing heartbeat numbers, and the host computer can write the heartbeat numbers into the storage address.

[0055] It should be noted that only one heartbeat number is stored in the storage address. Each time the upper computer writes a heartbeat number to the storage address of the lower computer, the storage address will erase the heartbeat number written by the upper computer last time and store the heartbeat number that the upper computer needs to write this time.

[0056] In an embodiment of the present application, the communication connection monitoring method may further include the step of: after the host computer writes a heartbeat number to the slave computer each time, the host computer receives a feedback identifier sent by the slave computer. The feedback identifier is used to indicate whether the heartbeat number written by the host computer to the slave computer is successful.

[0057] For example, the host computer can be connected to the slave computer through the middleware. Thus, after the host computer writes the heartbeat number to the slave computer each time, the host computer receives the feedback identifier sent by the slave computer, which may include: after the host computer writes the heartbeat number to the slave computer through the middleware each time, receiving the feedback identifier sent by the middleware.

[0058] The middleware is used to generate a feedback mark after each heartbeat number is written to the subordinate computer. The feedback mark is used to indicate whether the upper computer successfully writes the heartbeat number to the subordinate computer.

[0059] For example, the feedback identifier may include: a write success identifier or a write failure identifier. When the lower computer is abnormal and cannot work, the middleware cannot write the heartbeat number to the lower computer. At this time, the middleware can generate a write failure identifier and send it to the upper computer to inform the upper computer that the heartbeat number writing to the lower computer has failed this time; when the lower computer can work normally, the middleware can write the heartbeat number to the lower computer. At this time, the middleware can generate a write success identifier and send it to the upper computer to inform the upper computer that the heartbeat number writing to the lower computer has been successful this time.

[0060] It should be noted that the phenomenon that the lower computer fails to work due to an abnormality usually refers to: the lower computer crashes or freezes, and at this time, the upper computer cannot send control commands to the lower computer, and the communication connection between the upper computer and the lower computer is abnormal.

[0061] In an embodiment of the present application, the communication connection monitoring method may further include the following steps:

[0062] Step A: Before the upper computer writes the heartbeat number to the lower computer each time, the upper computer checks whether the communication connection with the lower computer is successfully established.

[0063] For example, the upper computer can check whether a communication connection is successfully established with the lower computer through the middleware. If the upper computer checks that a communication connection is established with the lower computer through the middleware, step B is executed; if the upper computer checks that a communication connection is not established with the lower computer through the middleware, step C is executed.

[0064] Step B: If the upper computer detects that a communication connection is established with the lower computer, an operation of writing a heartbeat number to the lower computer is executed.

[0065] Step C: If the upper computer does not establish a communication connection with the lower computer, the upper computer determines that there is no communication connection between it and the lower computer, and determines that writing the heartbeat number to the lower computer this time has failed.

[0066] In the embodiment of the present application, each time before the upper computer writes the heartbeat number to the lower computer, the upper computer needs to determine whether a communication connection exists between the upper computer and the lower computer by calling a specified function in the middleware.

[0067] For example, if the upper computer calls the specified function from the middleware, the upper computer can determine that it has successfully established a communication connection with the lower computer, that is, the upper computer can determine that there is a communication connection between it and the lower computer, and then the upper computer will execute the operation of writing the heartbeat number to the lower computer; if the upper computer does not call the specified function from the middleware, the upper computer can determine that it has not established a communication connection with the lower computer, that is, the upper computer can determine that there is no communication connection between it and the lower computer, and the upper computer will not execute the operation of writing the heartbeat number to the lower computer, and will determine that the writing of the heartbeat number to the lower computer has failed, and then the upper computer needs to repeat the operation of calling the specified function from the middleware.

[0068] Step 402: After the upper computer writes the heartbeat number to the lower computer each time, the upper computer determines whether the writing of the heartbeat number to the lower computer is successful.

[0069] In the embodiment of the present application, each time the upper computer writes a heartbeat number to the lower computer, the upper computer can receive a feedback identifier sent by the middleware, and determine whether writing the heartbeat number to the lower computer is successful based on the feedback identifier.

[0070] For example, after the upper computer receives the feedback identifier sent by the middleware, if the upper computer determines that the feedback identifier is an identifier used to indicate that the upper computer successfully wrote the heartbeat number to the lower computer, that is, the feedback identifier is a write success identifier, then the upper computer determines that the heartbeat number is successfully written to the lower computer this time, and executes the following step 403; if the upper computer determines that the feedback identifier is an identifier used to indicate that the upper computer failed to write the heartbeat number to the lower computer, that is, the feedback identifier is a write failure identifier, then the upper computer determines that the heartbeat number is failed to be written to the lower computer this time, and the communication connection between the upper computer and the lower computer may be abnormal, and executes the following step 404.

[0071] Step 403: If the upper computer determines that the heartbeat number is successfully written to the lower computer, the upper computer determines that the communication connection between the upper computer and the lower computer is normal.

[0072] For example, if the host computer determines that the heartbeat number is successfully written to the lower computer based on the feedback identifier sent by the middleware, for example, when the host computer receives the write success identifier sent by the middleware, the host computer can determine that the heartbeat number is successfully written to the lower computer. Then, the host computer can determine that the communication connection between it and the lower computer is normal.

[0073] Step 404: If the upper computer determines at least once that writing the heartbeat number to the lower computer fails, the upper computer determines that the communication connection between the upper computer and the lower computer is abnormal.

[0074] In a first possible implementation, as long as the upper computer determines that writing a heartbeat number to the lower computer fails once, the upper computer can determine that the communication connection between the upper computer and the lower computer is abnormal.

[0075] For example, if the host computer determines that the heartbeat number writing to the lower computer fails based on the feedback identifier sent by the middleware, for example, when the host computer receives the write failure identifier sent by the middleware, the host computer can determine that the heartbeat number writing to the lower computer fails. Then, the host computer can determine that the communication connection between it and the lower computer is abnormal.

[0076] In a second possible implementation, the upper computer needs to determine that writing the heartbeat number to the lower computer fails for multiple consecutive times before the upper computer can determine that the communication connection between the upper computer and the lower computer is abnormal.

[0077] For example, according to the above embodiment, the upper computer determines that it has failed to write the heartbeat number to the lower computer in the following two situations:

[0078] In the first case, before the upper computer writes the heartbeat number to the lower computer each time, when the upper computer determines that the communication connection between the upper computer and the lower computer does not exist by calling the specified function in the middleware, the upper computer can determine that the writing of the heartbeat number to the lower computer has failed.

[0079] In the second case, after the upper computer writes the heartbeat number to the lower computer each time, if the upper computer determines that the writing of the heartbeat number to the lower computer has failed based on the feedback identifier sent by the middleware, for example, when the upper computer receives the write failure identifier sent by the middleware, the upper computer can determine that the writing of the heartbeat number to the lower computer has failed this time.

[0080] Combining the above two situations, each time the upper computer determines that it has failed to write the heartbeat number to the lower computer, the upper computer can record the failure once. In this way, the upper computer can determine whether the heartbeat number written by the upper computer to the lower computer has failed for many consecutive times by recording the number of consecutive failures, and after the upper computer determines that the heartbeat number written to the lower computer has failed for many consecutive times, it determines that the communication connection between it and the lower computer is abnormal.

[0081] For example, if the upper computer determines to write the heartbeat number to the lower computer three times in a row, the upper computer can determine that the communication connection between the upper computer and the lower computer is abnormal.

[0082] Step 405: The host computer outputs prompt information.

[0083] In an embodiment of the present application, after the upper computer determines that the communication connection between it and the lower computer is abnormal, the upper computer can output a prompt message.

[0084] For example, the prompt information may be a text message, and the host computer may display the prompt information output by it on the display interface of the host computer to prompt the staff that the communication connection between the host computer and the slave computer is abnormal.

[0085] Step 406: The lower computer periodically reads the heartbeat number written by the upper computer.

[0086] In the embodiment of the present application, after the upper computer periodically writes the heartbeat numbers to the lower computer, the lower computer can periodically read the stored heartbeat numbers.

[0087] Optionally, since the upper computer can periodically write the heartbeat number into the controller in the lower computer, the lower computer periodically reads the heartbeat number written by the upper computer, including: the lower computer periodically reads the heartbeat number written by the upper computer from the controller of the lower computer.

[0088] In the present application, the cycle duration of the heartbeat digits written by the host computer to the subordinate computer is less than or equal to the cycle duration of the heartbeat digits read by the subordinate computer. That is, if the host computer periodically writes heartbeat digits to the subordinate computer with the first duration as a cycle, and the heartbeat digits stored by the periodic reader of the subordinate computer with the second duration as a cycle, then the first duration is less than or equal to the second duration. For example, the first duration can be 200 milliseconds, and the second duration can be 2 seconds.

[0089] It should be noted that when the cycle duration of the upper computer writing the heartbeat number to the lower computer is less than or equal to the cycle duration of the lower computer reading the heartbeat number, the lower computer can subsequently determine whether the communication connection between it and the upper computer is normal by reading the heartbeat number.

[0090] Step 407: After the lower computer reads the heartbeat number each time, the lower computer compares whether the currently read heartbeat number is the same as the heartbeat number read last time.

[0091] For example, if the lower computer determines that the currently read heartbeat number is different from the last read heartbeat number, execute step 408; if the lower computer determines that the currently read heartbeat number is the same as the last read heartbeat number, the communication connection between the lower computer and the upper computer may be abnormal, and execute step 409.

[0092] Step 408: If the lower computer determines that the currently read heartbeat number is different from the last read heartbeat number, the lower computer determines that the communication connection between it and the upper computer is normal.

[0093] In the embodiment of the present application, because the cycle duration of the heartbeat digits written by the host computer to the subordinate computer is less than or equal to the cycle duration of the heartbeat digits read by the subordinate computer, and when the communication connection between the host computer and the subordinate computer is normal, the host computer can normally write the heartbeat digits into the subordinate computer at every turn. Therefore, when the communication connection between the host computer and the subordinate computer is normal, the heartbeat digits read by the subordinate computer at every turn are all different. In this way, if the subordinate computer determines that the heartbeat digits currently read are different from the heartbeat digits read last time, then, the subordinate computer can determine that the communication connection between it and the host computer is normal.

[0094] Step 409: If the heartbeat numbers read by the lower computer at least twice in a row are the same, the lower computer determines that the communication connection between it and the upper computer is abnormal.

[0095] In a first exemplary implementation, as long as the heartbeat numbers read by the lower computer twice in a row are the same, the lower computer can determine that the communication connection between the lower computer and the upper computer is abnormal.

[0096] For example, if the lower computer determines that the heartbeat number currently read is the same as the heartbeat number read last time, the lower computer determines that the communication connection between it and the upper computer is abnormal.

[0097] In the second exemplary implementation, the lower computer needs to determine that writing the heartbeat number to the lower computer fails for multiple times (three times or more) before the lower computer can determine that the communication connection between it and the upper computer is abnormal.

[0098] For example, if the lower computer determines that the heartbeat number currently read is the same as the heartbeat number read last time, it continues to read the heartbeat number at least once. When the heartbeat number read each time is the same as the heartbeat number read last time, the lower computer determines that the communication connection between it and the upper computer is abnormal.

[0099] In the embodiment of the present application, since the host computer cannot write a new heartbeat number into the slave computer when the communication connection between the host computer and the slave computer is abnormal, the slave computer stores the heartbeat number written by the host computer for the last time when the communication connection between the host computer and the slave computer is normal. Therefore, when the communication connection between the host computer and the slave computer is abnormal, the heartbeat number read by the slave computer each time is the same. In this way, if the heartbeat numbers read by the slave computer are the same for multiple consecutive times, the slave computer can determine that the communication connection between the host computer and the host computer is abnormal.

[0100] For example, if the lower computer reads the same number of heartbeats three times in a row, the lower computer can determine that the communication connection between the lower computer and the upper computer is abnormal.

[0101] Step 410: The lower computer controls the radiotherapy equipment to send out an alarm signal and controls the radiotherapy equipment to stop working.

[0102] In an embodiment of the present application, after the lower computer determines that the communication connection between it and the upper computer is abnormal, the lower computer can control the radiotherapy equipment to send an alarm signal and control the radiotherapy equipment to stop working.

[0103] For example, the radiotherapy equipment has an alarm buzzer and a control panel. After the lower computer determines that the communication connection between it and the upper computer is abnormal, the lower computer can control the alarm buzzer of the radiotherapy equipment to emit an alarm audio, and control the fault alarm light on the control panel of the radiotherapy equipment to light up, so as to prompt the staff and patients on the radiotherapy equipment that the communication connection between the upper computer and the lower computer is abnormal.

[0104] When the communication connection between the upper computer and the lower computer is abnormal, the lower computer controls the radiotherapy equipment to stop working, thereby avoiding the problem of medical accidents caused by the uncontrolled continuous operation of the radiotherapy equipment.

[0105] In the related art, the method of communication connection between the host computer and the slave computer in the medical system is usually: the host computer periodically sends a heartbeat packet to the slave computer; each time the slave computer receives the heartbeat packet sent by the host computer, it generates a heartbeat feedback packet based on the heartbeat packet and sends it to the host computer. In this way, after the slave computer does not receive the heartbeat packet sent by the host computer for a period of time, the slave computer can determine that the communication connection between it and the host computer is abnormal; after the host computer does not receive the heartbeat feedback packet sent by the host computer for a period of time, the host computer determines that the communication connection between it and the slave computer is abnormal. However, through this communication connection detection method, it is necessary to ensure that the slave computer generates a heartbeat feedback packet in real time according to the received heartbeat packet, which will occupy the computing resources of the slave computer, resulting in a reduction in the computing resources that can be called when the slave computer controls the radiotherapy equipment, and will cause more data to be transmitted between the host computer and the slave computer, reducing the efficiency of the communication connection between the host computer and the slave computer.

[0106] In the embodiment of the present application, the host computer periodically writes the heartbeat number to the subordinate computer through the middleware, and the heartbeat value written each time is different. The host computer only needs the feedback identification sent by the middleware, and can determine whether the communication connection between it and the subordinate computer is normal; and the subordinate computer only needs to determine whether the communication connection between it and the host computer is normal by reading the heartbeat number stored. In this process, the host computer only performs a write operation, and the subordinate computer only performs a read operation, and the subordinate computer does not need to generate a feedback information according to the heartbeat number to feed back to the host computer. In this way, the monitoring method of the communication connection provided by the embodiment of the present application does not occupy the computing resources of the subordinate computer, and can ensure that the efficiency of the communication connection between the host computer and the subordinate computer is higher.

[0107] It should be noted that the order of the steps of the communication connection monitoring method provided in the embodiment of the present application can be appropriately adjusted, and the steps can be increased or decreased accordingly according to the circumstances. Any technician familiar with the technical field can easily think of the changed methods within the technical scope disclosed in the present application, and they should be covered within the scope of protection of the present application, so they will not be repeated here.

[0108] In summary, the monitoring method of communication connection provided by the embodiment of the present application, the host computer can periodically write heartbeat numbers to the subordinate computer, and after the host computer fails to write heartbeat numbers to the subordinate computer at least once, the host computer can determine that the communication connection between it and the subordinate computer is abnormal. Because the heartbeat numbers written by the host computer to the subordinate computer are different at each time, the subordinate computer can periodically read the heartbeat numbers written by the host computer, and after the same heartbeat numbers are read at least twice in connection, the subordinate computer can determine that the communication connection between it and the host computer is abnormal. In this way, the monitoring method of the communication connection can ensure that when the medical system is working, the host computer can monitor in real time whether the communication connection between it and the subordinate computer is normal, and the subordinate computer can also monitor in real time whether the communication connection between it and the host computer is normal, and it is ensured that the safety when the medical system is used to diagnose or treat the patient is higher.

[0109] Please refer to Figure 5 , Figure 5 is a structural block diagram of a communication connection monitoring device provided in an embodiment of the present application. The communication connection monitoring device 500 can be integrated in Figure 1 In the host computer 101 of the treatment system 100 shown in FIG. 5 , the communication-connected monitoring device 500 may include:

[0110] The writing module 501 is used to periodically write the heartbeat number to the subordinate computer after the upper computer and the subordinate computer establish a communication connection, and the heartbeat number written to the subordinate computer each time is different.

[0111] The first determination module 502 is used to determine that the communication connection between the upper computer and the lower computer is abnormal if the upper computer fails to write the heartbeat number to the lower computer at least once.

[0112] The heartbeat number is used for periodic reading by the lower computer, so that after the lower computer reads the same heartbeat number for multiple consecutive times, it can determine that the communication connection between the lower computer and the upper computer is abnormal.

[0113] Optional, such as Figure 5 As shown, the communication connection monitoring device 500 may also include:

[0114] The receiving module 503 is used for receiving a feedback mark sent by the lower computer after writing the heartbeat number to the lower computer each time. The feedback mark is used to indicate whether the upper computer successfully writes the heartbeat number to the lower computer.

[0115] Optional, such as Figure 5 As shown, the communication connection monitoring device 500 may also include:

[0116] The third determination module 504 is used to determine that the communication connection between the upper computer and the lower computer is normal if it is determined that the feedback identifier is an identifier for indicating that the upper computer successfully writes the heartbeat number to the lower computer.

[0117] Optional, such as Figure 5 As shown, the communication connection monitoring device 500 may also include:

[0118] The fourth determining module 505 is configured to determine that writing the heartbeat number to the subordinate computer has failed if it is determined that the feedback identifier is an identifier indicating that the upper computer has failed to write the heartbeat number to the subordinate computer.

[0119] Optionally, the communication connection detection device may further include:

[0120] The checking module is used to check whether a communication connection is successfully established with the lower computer before writing the heartbeat number to the lower computer each time; if it is checked that a communication connection is successfully established with the lower computer, the operation of writing the heartbeat number to the lower computer is executed; if it is checked that no communication connection is established with the lower computer, it is determined that the writing of the heartbeat number to the lower computer has failed.

[0121] Optionally, the upper computer is connected to the lower computer through middleware, and the receiving module 503 is used to receive the feedback identifier sent by the middleware after the upper computer writes the heartbeat number to the lower computer through the middleware each time, and the middleware is used to generate the feedback identifier after writing the heartbeat number to the lower computer each time;

[0122] Optionally, the checking module is used to check whether a communication connection with the lower computer is successfully established through the middleware.

[0123] Optionally, the first determination module 502 is used to determine that the communication connection between the upper computer and the lower computer is abnormal if the upper computer fails to write the heartbeat number to the lower computer for multiple consecutive times.

[0124] Optional, such as Figure 5 As shown, the communication connection monitoring device 500 may also include:

[0125] The output module 506 is used to output prompt information after determining that the communication connection between the upper computer and the lower computer is abnormal.

[0126] Optionally, the writing module 501 is used to periodically write heartbeat numbers to the controller of the lower computer.

[0127] Optionally, the heartbeat numbers periodically written by the upper computer to the lower computer are arranged in an arithmetic progression or a geometric progression.

[0128] Optionally, the period length of the upper computer writing the heartbeat number to the lower computer is less than or equal to the period length of the lower computer reading the heartbeat number.

[0129] In summary, the monitoring device of the communication connection provided by the embodiment of the present application, the host computer can periodically write heartbeat numbers to the subordinate computer, and after the host computer fails to write the heartbeat numbers to the subordinate computer at least once, the host computer can determine that the communication connection between it and the subordinate computer is abnormal. Because the heartbeat numbers written by the host computer to the subordinate computer are different each time, the subordinate computer can periodically read the heartbeat numbers written by the host computer, and after the same heartbeat numbers are read at least twice in connection, the subordinate computer can determine that the communication connection between it and the host computer is abnormal. In this way, the monitoring method of the communication connection can ensure that when the medical system is working, the host computer can monitor in real time whether the communication connection between it and the subordinate computer is normal, and the subordinate computer can also monitor in real time whether the communication connection between it and the host computer is normal, and it is ensured that the safety when the medical system is used to diagnose or treat the patient is higher.

[0130] Please refer to Figure 6 , Figure 6 FIG. 6 is a block diagram of another communication connection monitoring device provided in an embodiment of the present application. The communication connection monitoring device 600 can be integrated in Figure 1 In the lower computer 102 of the treatment system 100 shown in FIG. 5 , the monitoring device 500 of the communication connection may include:

[0131] The reading module 601 is used to periodically read the heartbeat number written in the upper computer after the lower computer establishes a communication connection with the upper computer. The heartbeat number is periodically written by the upper computer, and the heartbeat number written by the upper computer to the lower computer each time is different.

[0132] The second determination module 602 is used to determine that the communication connection between the upper computer and the lower computer is abnormal if the heartbeat numbers read by the lower computer at least twice in a row are the same.

[0133] Optional, such as Figure 6 As shown, the communication connection monitoring device 600 may also include:

[0134] The fifth determination module 603 is used to determine that the communication connection with the upper computer is normal if the heartbeat number currently read by the lower computer is different from the heartbeat number read last time.

[0135] Optionally, the second determination module 602 is used to continue reading at least one heartbeat number if the heartbeat number currently read by the lower computer is the same as the heartbeat number read last time, and to determine that the communication connection between the upper computer and the lower computer is abnormal when the heartbeat number read each time is the same as the heartbeat number read last time.

[0136] Optionally, the reading module 601 is used to periodically read the heartbeat number written by the upper computer from the controller of the lower computer.

[0137] Optional, such as Figure 6 As shown, the communication connection monitoring device 600 may also include:

[0138] The control module 604 is used to control the radiotherapy equipment to send out an alarm signal and stop working after determining that the communication connection between the upper computer and the lower computer is abnormal.

[0139] In summary, the monitoring device of the communication connection provided by the embodiment of the present application, the host computer can periodically write heartbeat numbers to the subordinate computer, and after the host computer fails to write the heartbeat numbers to the subordinate computer at least once, the host computer can determine that the communication connection between it and the subordinate computer is abnormal. Because the heartbeat numbers written by the host computer to the subordinate computer are different each time, the subordinate computer can periodically read the heartbeat numbers written by the host computer, and after the same heartbeat numbers are read at least twice in connection, the subordinate computer can determine that the communication connection between it and the host computer is abnormal. In this way, the monitoring method of the communication connection can ensure that when the medical system is working, the host computer can monitor in real time whether the communication connection between it and the subordinate computer is normal, and the subordinate computer can also monitor in real time whether the communication connection between it and the host computer is normal, and it is ensured that the safety when the medical system is used to diagnose or treat the patient is higher.

[0140] The present application also provides a medical system. The structure of the medical system can refer to Figure 1 The medical system 100 may include: a host computer 101 and a slave computer 102 . Figure 5 The communication connection monitoring device 500 shown can be integrated in the host computer 101. Figure 6 The monitoring device of the communication connection shown may be integrated in the slave computer 102 .

[0141] For example, the host computer may include: a first processor, and a first memory for storing executable instructions of the first processor. The first processor is configured to execute Figure 2 or Figure 4 A method for monitoring a communication connection is shown.

[0142] The lower computer may include: a second processor, and a second memory for storing executable instructions of the second processor. The second processor is configured to execute Figure 3 or Figure 4 A method for monitoring a communication connection is shown.

[0143] Optionally, the medical system further comprises: a radiotherapy device having an alarm buzzer. The lower computer in the medical system is configured to: after determining that the communication connection between the upper computer and the lower computer is abnormal, control the alarm buzzer of the radiotherapy device to emit an alarm audio.

[0144] Optionally, the radiotherapy device further has an operation panel. The lower computer in the medical system is configured to control the fault alarm light in the operation panel of the radiotherapy device to light up after determining that the communication connection between the upper computer and the lower computer is abnormal.

[0145] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0146] In practical applications, each module in this embodiment can be implemented by a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA) and a modem on a monitoring device with a communication connection.

[0147] The present application also provides a computer-readable storage medium. The computer-readable storage medium stores instructions that, when the computer-readable storage medium is run on a processing component, cause the processing component to execute Figure 2 , Figure 3 or Figure 4 A method for monitoring a communication connection is shown.

[0148] In the present application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The term "plurality" refers to two or more than two, unless otherwise clearly defined.

[0149] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0150] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for monitoring a communication connection, characterized in that: The method is applied to a host computer, and the method comprises: After the upper computer establishes a communication connection with the lower computer, periodically writes a heartbeat number to the lower computer, and the heartbeat number written to the lower computer each time is different; If the upper computer fails to write the heartbeat number to the lower computer for multiple consecutive times, it is determined that the communication connection between the upper computer and the lower computer is abnormal; The heartbeat number is used for the lower computer to read periodically, so that after the lower computer reads the same heartbeat number three or more times in a row, it is determined that the communication connection between the lower computer and the upper computer is abnormal; The period duration of the upper computer writing the heartbeat number to the lower computer is less than or equal to the period duration of the lower computer reading the heartbeat number.

2. The method according to claim 1, characterized in that The method further comprises: After each heartbeat number is written to the lower computer, a feedback identifier sent by the lower computer is received, wherein the feedback identifier is used to indicate whether the upper computer successfully writes the heartbeat number to the lower computer.

3. The method according to claim 2, characterized in that The method further comprises: If it is determined that the feedback identifier is an identifier for indicating that the upper computer successfully writes the heartbeat number to the lower computer, it is determined that the communication connection between the upper computer and the lower computer is normal.

4. The method according to claim 2, characterized in that The method further comprises: If it is determined that the feedback identifier is an identifier for indicating that the upper computer has failed to write the heartbeat number to the lower computer, it is determined that the writing of the heartbeat number to the lower computer has failed.

5. The method according to claim 2, characterized in that: The method further comprises: Before writing the heartbeat number to the lower computer each time, check whether the communication connection with the lower computer is successfully established; If it is checked that the communication connection with the lower computer is successfully established, the operation of writing the heartbeat number to the lower computer is executed; If it is found that no communication connection is established with the lower computer, it is determined that writing the heartbeat number to the lower computer has failed.

6. The method according to claim 5, characterized in that The upper computer is connected to the lower computer through the middleware, and after writing the heartbeat number to the lower computer each time, receives the feedback identifier sent by the lower computer, including: After the upper computer writes a heartbeat number to the lower computer through the middleware each time, receiving a feedback identifier sent by the middleware, wherein the middleware is used to generate the feedback identifier after writing a heartbeat number to the lower computer each time; The checking whether a communication connection is successfully established with the lower computer includes: The middleware is used to check whether a communication connection is successfully established with the lower computer.

7. The method according to claim 1, characterized in that The method further comprises: After determining that the communication connection between the upper computer and the lower computer is abnormal, outputting a prompt message.

8. The method according to any one of claims 1 to 6, characterized in that: The periodic writing of heartbeat numbers to the lower computer includes: The heartbeat number is periodically written to the controller of the lower computer.

9. The method according to any one of claims 1 to 6, characterized in that: The heartbeat numbers periodically written by the upper computer to the lower computer are arranged in an arithmetic progression or a geometric progression.

10. A method for monitoring a communication connection, characterized in that: The method is applied to a lower computer, and the method comprises: After the lower computer establishes a communication connection with the upper computer, periodically reading the heartbeat number written by the upper computer, the heartbeat number is periodically written by the upper computer, and the heartbeat number written by the upper computer to the lower computer each time is different; If the heartbeat numbers read by the lower computer are the same for three or more consecutive times, it is determined that the communication connection between the upper computer and the lower computer is abnormal; The period duration of the upper computer writing the heartbeat number to the lower computer is less than or equal to the period duration of the lower computer reading the heartbeat number.

11. The method according to claim 10, characterized in that The method further comprises: If the heartbeat number currently read by the lower computer is different from the heartbeat number read last time, it is determined that the communication connection with the upper computer is normal.

12. The method according to claim 10, characterized in that If the heartbeat numbers read by the lower computer are the same for three or more consecutive times, it is determined that the communication connection between the upper computer and the lower computer is abnormal, including: If the heartbeat number currently read by the lower computer is the same as the heartbeat number read last time, continue to read at least two heartbeat numbers. When the heartbeat number read each time is the same as the heartbeat number read last time, it is determined that the communication connection between the upper computer and the lower computer is abnormal.

13. The method according to claim 10, characterized in that The periodic reading of the heartbeat number written by the host computer includes: The heartbeat number written by the upper computer is periodically read from the controller of the lower computer.

14. A medical system, characterized in that: The medical system comprises: a host computer and a slave computer; The host computer comprises: a first processor, and a first memory for storing executable instructions of the first processor, wherein the first processor is configured to execute the communication connection monitoring method according to any one of claims 1 to 9; The lower computer includes: a second processor, and a second memory for storing executable instructions of the second processor, wherein the second processor is configured to execute the communication connection monitoring method according to any one of claims 10 to 13.

15. The medical system according to claim 14, characterized in that The medical system further comprises: a radiotherapy device, wherein the radiotherapy device has an alarm buzzer; The lower computer is configured to: after determining that the communication connection between the upper computer and the lower computer is abnormal, control the alarm buzzer to emit an alarm audio.

16. The medical system according to claim 15, characterized in that The radiotherapy device also has an operation panel; The lower computer is configured to control the fault warning light in the operation panel to light up after determining that the communication connection between the upper computer and the lower computer is abnormal.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the computer-readable storage medium is executed on a processing component, the processing component executes the method for monitoring a communication connection according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Establishing method and system for secure communication environment of wearable equipment

    CN106792700A

  • State detection method and system

    CN107193708A

  • Communication link anomaly detection method and device, electronic equipment and network

    CN109560993A

  • Multichannel intelligent anti-slip system, data communication method and communication data frame format

    CN110111551A

  • Server, equipment and method and system for monitoring survival state of server

    CN110445683A