Telemedicine system and method thereof

By converting Ethercat messages into UDP messages and back into Ethercat messages in the telemedicine system, and utilizing Internet transmission, the problem of requiring a dedicated network for remote surgery systems in the existing technology is solved, and low-cost and reliable remote operation is achieved. Surgical data interaction improves the reliability and real-time performance of the system.

CN118803080APending Publication Date: 2024-10-18SHENZHEN JINGFENG MEDICAL TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310431600.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-13
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing remote surgery system requires a dedicated network for communication, has a long preparation period and high cost, and it is difficult to use the widely popular Internet to achieve low-cost and reliable remote surgery.

Method used

The first remote host receives the Ethercat message sent by the first master station, discards the Ethernet frame header, encapsulates it into a UDP message, and transmits it through the Internet; after receiving it, the second remote host discards the UDP header, restores the Ethercat data frame, and For transmission in industrial Ethernet, packet preprocessing is performed using custom protocol frames to improve reliability.

Benefits of technology

It realizes low-cost data interaction using the Internet, improves the reliability of the telemedicine system and the real-time nature of data transmission, and reduces network bandwidth occupation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803080A_ABST
    Figure CN118803080A_ABST
Patent Text Reader

Abstract

The invention relates to a telemedicine system and a method thereof. The method comprises the following steps: a first remote host receives an Ethercat message sent by a first master station, discards an Ethernet frame header of the Ethercat message and obtains an Ethercat data frame; the first remote host encapsulates the Ethercat data frame to generate a UDP message comprising a UDP header and a user-defined protocol frame, and sends the UDP message to the second remote host, and the user-defined protocol frame is written into a sending timestamp; the second remote host receives the UDP message, discards a UDP header of the UDP message and obtains a data packet, and the data packet comprises a custom protocol frame and an Ethercat data frame; the second remote host obtains a valid data packet from the data packet based on the sending timestamp; and the second remote host discards the user-defined protocol frame of the valid data packet to obtain an Ethercat data frame of the valid data packet, encapsulates the Ethercat data frame of the valid data packet to generate a target Ethercat message including a target Ethernet frame header, and sends the target Ethercat message to the second master station. By means of the implementation mode, remote surgery can be reliably achieved at low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical devices, and in particular to a telemedicine system and method thereof. Background Art

[0002] Minimally invasive surgery refers to a surgical method that uses modern medical devices such as laparoscopes and thoracoscopes and related equipment to perform surgery inside the human body cavity. Compared with traditional surgical methods, minimally invasive surgery has the advantages of less trauma, less pain, and faster recovery.

[0003] With the advancement of science and technology, the technology of minimally invasive surgical robot system has gradually matured and has been widely used. The surgical robot system includes a main operating table and a slave operating device. The slave operating device includes multiple medical instruments with terminal instruments, including imaging instruments with image terminal instruments and surgical instruments with operating terminal instruments. The main operating table includes a display and an operating unit. The doctor operates the operating unit to manipulate the movement of the imaging instrument or surgical instrument under the visual field provided by the imaging instrument displayed on the display.

[0004] In recent years, remote surgery technology has gradually emerged. Doctors can use remote surgery technology to perform real-time surgery on patients thousands of kilometers away, effectively alleviating the problem of uneven distribution of medical resources between regions and reducing the time and economic costs of doctors and patients. In order to ensure the reliable implementation of remote surgery, operators are usually required to open a dedicated network to achieve communication between the main operating console and the slave operating equipment. However, its preparation cycle is long and the cost is high. Therefore, it is urgent to provide a way to implement remote surgery in an equally reliable way by using the currently widely popular Internet. Summary of the invention

[0005] Based on this, it is necessary to provide a telemedicine system and a control method thereof that can realize remote surgery at low cost and reliably.

[0006] The present application provides a telemedicine system, comprising:

[0007] A first surgical device, including a first master station;

[0008] a second surgical device, including a second master station;

[0009] A first remote host is connected to the first master station via industrial Ethernet;

[0010] and a second remote host connected to the second master station via industrial Ethernet and remotely connected to the first remote host via the Internet;

[0011] The first remote host is configured to:

[0012] receiving an Ethercat message sent by the first master station, discarding an Ethernet frame header of the Ethercat message and obtaining an Ethercat data frame;

[0013] and encapsulating the Ethercat data frame to generate a UDP message including a UDP header and a custom protocol frame, and sending the UDP message to the second remote host, wherein the custom protocol frame writes a sending timestamp of the UDP message;

[0014] The second remote host is configured as:

[0015] Receive the UDP message, discard the UDP header of the UDP message and obtain a data packet, wherein the data packet includes the custom protocol frame and the Ethercat data frame;

[0016] Based on the sending timestamp, obtaining a valid data packet from the data packet;

[0017] and discarding the custom protocol frame of the valid data packet, obtaining the Ethercat data frame of the valid data packet, encapsulating the Ethercat data frame of the valid data packet to generate a target Ethercat message including a target Ethernet frame header, and sending the target Ethercat message to the second master station.

[0018] The present application also provides a method, applied to a telemedicine system, the telemedicine system comprising:

[0019] A first surgical device, including a first master station;

[0020] a second surgical device, including a second master station;

[0021] A first remote host is connected to the first master station via industrial Ethernet;

[0022] and a second remote host, connected to the second master station via industrial Ethernet, and remotely connected to the first remote host via the Internet;

[0023] The control method comprises:

[0024] The first remote host receives the Ethercat message sent by the first master station, discards the Ethernet frame header of the Ethercat message and obtains the Ethercat data frame;

[0025] The first remote host encapsulates the Ethercat data frame to generate a UDP message including a UDP header and a custom protocol frame, and sends the UDP message to the second remote host, wherein the custom protocol frame writes a sending timestamp of the UDP message;

[0026] The second remote host receives the UDP message, discards the UDP header of the UDP message and obtains a data packet, wherein the data packet includes the custom protocol frame and the Ethercat data frame;

[0027] The second remote host obtains a valid data packet from the data packet based on the sending timestamp;

[0028] The second remote host discards the custom protocol frame of the valid data packet, obtains the Ethercat data frame of the valid data packet, encapsulates the Ethercat data frame of the valid data packet to generate a target Ethercat message including a target Ethernet frame header, and sends the target Ethercat message to the second master station.

[0029] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program is configured to be loaded by a processor and executed to implement the steps of the method described in any of the above embodiments.

[0030] The present application also provides a computer program product, comprising computer instructions, which, when executed on a computer, enable the computer to execute the method described in any one of the above embodiments.

[0031] The telemedicine system and method of the present application have the following beneficial effects:

[0032] The first remote host is used to convert the Ethercat message sent by the first main station into a UDP message for Internet transmission between the first remote host and the second remote host, and the second remote host is used to convert the received UDP message back into an Ethercat message for transmission between the second remote host and the second main station, so that low-cost data interaction can be carried out using the Internet; and, by encapsulating a custom protocol frame with a sending timestamp in the UDP message, and using the custom protocol frame to pre-process the obtained data packet including the custom protocol and the Ethercat data frame to obtain a valid data packet, the reliability of subsequent further processing based on the valid data packet can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 This is a schematic diagram of the principle of an embodiment of the telemedicine system of the present application;

[0034] Figure 2 This is a schematic diagram of the message processing process of an embodiment of the method of the present application;

[0035] Figures 3 to 6 A flowchart of an embodiment of the method of the present application;

[0036] Figure 7 This is a schematic diagram of the structure of an embodiment of the telemedicine system of the present application.

[0037] Figure 8 to Figure 10 A flowchart of an embodiment of the method of the present application;

[0038] Fig.11 This is a schematic diagram of the principle of the control device of the telemedicine system of this application. DETAILED DESCRIPTION

[0039] In order to facilitate the understanding of the present application, the present application will be described more comprehensively with reference to the relevant drawings below. The preferred embodiments of the present application are given in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described in the present application. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thoroughly and comprehensively understood.

[0040] It should be noted that when an element is referred to as being "disposed on" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected" to another element, it may be directly connected to the other element or there may be a central element at the same time. When an element is considered to be "coupled" to another element, it may be directly coupled to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used in this application are for illustrative purposes only and do not represent the only implementation method. The terms "distal end" and "proximal end" used in this application are used as directional words, which are commonly used terms in the field of interventional medical devices, where "distal end" refers to the end close to the patient during surgery, and "proximal end" refers to the end away from the patient during surgery. The terms "first / second" and the like used in this application represent a component and a class of more than two components with common characteristics.

[0041] Unless otherwise defined, all technical and scientific terms used in this application have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this application includes any and all combinations of one or more related listed items. The term "each" used in this application includes one or more than two. The term "plurality" used in this application refers to two or more.

[0042] The present application provides a method that can realize low-cost and reliable two-way communication between two devices. For example, the method can be applied to a telemedicine system. For ease of understanding, the present application uses the application of the method to a telemedicine system as an example for explanation.

[0043] In some embodiments, the telemedicine system includes a first surgical device and a second surgical device, and the two can use the method to achieve unidirectional and / or bidirectional communication. Since the data interaction process from the first surgical device to the second surgical device is basically the same as the data interaction process from the second surgical device to the first surgical device, the present application takes the data interaction process from the first surgical device to the second surgical device as an example to illustrate the method.

[0044] See also Figure 1 The first surgical device includes a first master station 110, and the second surgical device includes a second master station 210. Both the first master station 110 and the second master station 210 can be Ethercat master stations, and both can capture and process Ethercat messages. Exemplarily, both the first master station 110 and the second master station 210 can use Beckoff controllers.

[0045] In order to utilize the method mentioned above, the telemedicine system further comprises a first remote host 300 and a second remote host 400. The first remote host 300 can be integrated into the first surgical device or can be independent of the first surgical device; the second remote host 400 can be integrated into the second surgical device or can be independent of the second surgical device.

[0046] The first master station 110 is connected to the first remote host 300 via industrial Ethernet, and the second master station 210 is also connected to the second remote host 400 via industrial Ethernet. In addition, the first remote host 300 is connected to the second remote host 400 via the Internet. At least in this application, the connection via industrial Ethernet can be considered as a local connection, and the connection via the Internet can be considered as a remote connection.

[0047] In some embodiments, in combination Figure 2 and Figure 3 Referring to, the method may include:

[0048] Step S1: The first remote host receives the Ethercat message sent by the first master station, discards the Ethernet frame header of the Ethercat message and obtains the Ethercat data frame.

[0049] Among them, the Ethercat message sent by the first master station 110 is an unprocessed Ethercat message, which can be understood as a source Ethercat message or an initial Ethercat message. Usually, an Ethercat message includes an Ethernet frame header, an Ethercat header and Ethercat data. For the convenience of description, the present application defines the Ethercat header and the Ethercat data together as an Ethercat data frame. After processing in step S1, the Ethercat message discards the Ethernet frame header and only retains the Ethercat data frame. Since the Ethernet frame header is no longer needed in the future, the Ethernet frame header is discarded to avoid occupying the network bandwidth. Among them, the Ethernet frame header includes a destination address segment and a source address segment, the destination address segment is written with the physical address of the first remote host 300, and the source address segment is written with the physical address of the first master station 110.

[0050] Step S2: The first remote host encapsulates the Ethercat data frame to generate a UDP message including a UDP header and a custom protocol frame, and sends the UDP message to the second remote host.

[0051] The UDP header includes a source port segment and a destination port segment, the source port segment is written with the communication port of the first remote host 300, and the destination port segment is written with the communication port of the second remote host 400. In some embodiments, the communication port of the first remote host 300 and the communication port of the second remote host 400 can be determined based on the NAT traversal (NAT Traversal, network address translation or network address translation) technology in WebRTC. After determining the two communication ports, the UDP message generated in step S2 can be transparently transmitted between the two ports in the Internet using, for example, the IP protocol, thereby solving the problem that the Ethercat message cannot be transmitted in the Internet.

[0052] The custom protocol frame is written with the sending timestamp of the UDP message, which is written when the UDP message is sent to the second remote host 400. In some embodiments, the custom protocol frame includes 8 bytes.

[0053] In some embodiments, the principle of NAT penetration is briefly introduced as follows:

[0054] 1. Establish a persistent connection between the first remote host 300A and the second remote host 400B and the intermediary server S;

[0055] 2. A initiates a request to S to establish a direct connection with B;

[0056] 3. After receiving A's application, S saves the IP and port of NAT-A, the public network where A is located, and sends it to B, asking B to send a message to A;

[0057] 4. After receiving the instruction from S, B sends a message to NAT-A, asking NAT-B to open a port for NAT-A, so that the messages from NAT-A can be received by B. Although B still cannot connect to A, the penetration hole of the second remote host 400B has been opened, and A can connect to device B through NAT-B.

[0058] 5. After B sends the message to NAT-A, it tells S: "I am ready." After S receives the prepared message from B, it notifies A and asks A to send the message to B.

[0059] 6. After receiving the instruction from S, A sends a message to NAT-B. Since NAT-B has opened a port for A in step 4, it can connect. At the same time when A sends a message to B, NAT-A also opens a port to receive B's response. At this point, the hole punching between A and B is completed, and A and B can directly use NAT-A and NAT-B for point-to-point communication.

[0060] Step S3, the second remote host receives the UDP message, discards the UDP header of the UDP message and obtains the data packet.

[0061] For the convenience of description, the present application defines the custom protocol frame and the Ethercat data frame as a data packet. After the UDP message is received by the second remote host 400, since the subsequent UDP message is no longer applicable to the industrial Ethernet, the UDP header can be discarded and only the data packet to be used is retained.

[0062] Step S4, the second remote host obtains a valid data packet from the data packet based on the sending timestamp.

[0063] Among them, although UDP messages have various advantages in transmission on the Internet, their disadvantages are also extremely obvious. For example, there may be a problem of disorder in the transmission of UDP messages on the Internet. Therefore, step S4 can use the sending timestamp of the custom protocol frame to pre-process the acquired data packets. For example, at least the disorder problem can be overcome and valid data packets can be screened from the data packets, and the valid data packets at least meet the timing requirements.

[0064] Step S5, the second remote host discards the custom protocol frame of the valid data packet, obtains the Ethercat data frame of the valid data packet, encapsulates the Ethercat data frame of the valid data packet to generate a target Ethercat message including a target Ethernet frame header, and sends the target Ethercat message to the second master station.

[0065] Among them, after obtaining a valid data packet through preprocessing, the custom protocol frame with a sending timestamp will no longer be used, so it can be discarded. After discarding the custom protocol frame, the data packet only retains the Ethercat data frame, and the key data written by the Ethercat data frame generated by the first surgical device is not modified, and the reliability is high. Furthermore, since the second master station 210 still works under the industrial Ethernet, the Ethercat data frame sent from the second remote host 400 to the second master station 210 needs to be re-encapsulated into an Ethercat message for transmission in the industrial Ethernet. The Ethercat message re-obtained by encapsulating the Ethercat data frame of the valid data packet can be defined as the target Ethercat message.

[0066] The target Ethernet frame header included in the target Ethercat message includes a destination address segment and a source address segment. The destination address segment is written with the physical address of the second master station 210 , and the source address segment is written with the physical address of the second remote host 400 .

[0067] Through the above steps S1 to S5, that is, using the first remote host 300 to convert the Ethercat message sent by the first main station 110 into a UDP message for Internet transmission between the first remote host 300 and the second remote host 400, and using the second remote host 400 to convert the received UDP message back into an Ethercat message for transmission between the second remote host 400 and the second main station 210, it is possible to use the Internet for low-cost data interaction; and, by encapsulating a custom protocol frame with a sending timestamp in the UDP message, and using the custom protocol frame to pre-process the obtained data packet including the custom protocol and the Ethercat data frame to obtain a valid data packet, the reliability of subsequent further processing based on the valid data packet can be improved; therefore, when this method is applied to a telemedicine system, it has the huge advantages of low cost and reliability.

[0068] The step S4 executed by the second remote host 400 may be implemented in a variety of ways.

[0069] In some embodiments, Figure 4 As shown, step S4 may include:

[0070] Step S411, initializing the data packet of the UDP message received at the current moment as a valid data packet and obtaining the valid data packet.

[0071] In this application, the current moment usually refers to the moment that is happening or just coming; the next moment belongs to the future moment, usually refers to the moment that is closest and about to come. This application distinguishes the received UDP message by means of the current moment and the next moment to simplify the description of the above method or process.

[0072] In step S411, the data packet corresponding to the UDP message at the current moment (the data packet is obtained by parsing the UDP message at the current moment) is taken as a valid data packet, which is obtained for subsequent use.

[0073] Step S412: determining a jitter value between a data packet and a valid data packet of a UDP message received at the next moment based on the sending timestamp and the receiving timestamp.

[0074] In the present application, for example, it is assumed that at the sending end, the sending timestamp of the UDP message received at the current moment is st1, and the sending timestamp of the UDP message received at the next moment is st2; and it is assumed that at the receiving end, the receiving timestamp of the UDP message received at the current moment is rt1, and the receiving timestamp of the UDP message received at the next moment is rt2. Since the sending time interval Δts = st1-st2, and the receiving time interval Δtr = rt1-rt2 of the UDP messages at the two adjacent moments, the jitter value Δt between the two is Δtr-Δts. Among them, the second remote host 400 can obtain the receiving timestamp in real time when receiving the UDP message.

[0075] Among them, since the Internet may have one or more network problems such as network congestion, routing failure, etc., if the interval between UDP messages received at two adjacent moments is sometimes large and sometimes small, it may easily lead to jitter problems such as sometimes fast and sometimes slow when the first surgical device controls the second surgical device to execute motion control instructions. Therefore, the jitter value between the UDP messages received at the two adjacent moments can be determined to overcome this problem.

[0076] Step S413, determining whether the jitter value reaches a jitter threshold.

[0077] Among them, the jitter threshold of the present application can be used to reflect the requirements of the telemedicine system for the real-time data interaction. For example, the jitter threshold can be used to reflect the maximum tolerance of the telemedicine system for the real-time data interaction. The unit is a time unit, such as 10 to 80 ms. The higher the real-time requirement, the lower the jitter threshold is set. In some embodiments, when the jitter value reaches the jitter threshold, the system may consider that the jitter value is too large and does not meet the usage requirements; when the jitter value does not reach the jitter threshold, the system may consider that the jitter value is small and can be tolerated to meet the usage requirements. For example, reaching can include the meaning of greater than, and correspondingly, not reaching can include the meaning of less than or equal to; for another example, reaching can include the meaning of greater than or equal to, and correspondingly, not reaching can include the meaning of less than.

[0078] Step S414: when the jitter value reaches the jitter threshold, discard the data packet of the UDP message received at the next moment.

[0079] Among them, the data packets of the UDP message received at the next moment that do not meet the jitter threshold cannot be used because they are intolerable, so they can be discarded.

[0080] After executing step S414, the execution returns to step S411. The entry from step S414 to step S411 can be understood as the end of one process of the method and the re-entry into a new process.

[0081] Step S415: When the jitter value does not reach the jitter threshold, it is determined based on the sending timestamp whether the data packet of the UDP message received at the next moment is later than the valid data packet.

[0082] Among them, the jitter value does not reach the jitter threshold, which is only one of the necessary conditions for whether the data packet of the UDP message received at the next moment meets the use requirements. In fact, it needs to meet at least another necessary condition, specifically, its occurrence time sequence should not be earlier than the data packet of the UDP message received at the previous moment (i.e., the current moment). Therefore, the sending timestamps of the UDP messages received at two adjacent moments can be used to determine the earlier or later occurrence time sequence between the two.

[0083] Step S416: When the data packet is later than the valid data packet, the data packet of the UDP message received at the next moment is used as the data packet of the UDP message received at the current moment.

[0084] It can be seen that in step S416, the data packet of the UDP message received at the next moment is retained instead of being discarded.

[0085] After executing step S416, the process returns to executing step S411. The process of entering step S11 from step S416 can be understood as retaining the data packet of the UDP message received at the next moment as a valid data packet and acquiring it for subsequent use.

[0086] Step S417: If the data packet is earlier than the valid data packet, the data packet of the UDP message received at the next moment is discarded.

[0087] Among them, the data packets of the UDP message received at the next moment that do not meet the sending timing cannot be used because of the disorder problem, so they can be discarded.

[0088] After executing step S417, the execution returns to step S411. The entry from step S417 to step S411 can be understood as the end of one process of the method and the re-entry into a new process.

[0089] Through the above steps S411 to S417, the data packets of the received UDP message not only meet the real-time requirements but also meet the sequential requirements, and have high reliability when applied to the telemedicine system.

[0090] The above steps S411 to S417 are described below with examples.

[0091] In the first example, assume that the UDP messages sent are message 1 to message 7, and their corresponding data packets are data packets 1 to data packets 7; and assume that the receiving order of messages 1 to 7 is: message 1, message 2, message 3, message 4, message 6, message 5, and message 7. Among them:

[0092] The UDP message received at the current moment is message 1. At this time, its corresponding data packet 1 is initialized as valid data packet 1 and the valid data packet 1 is obtained;

[0093] The UDP message received at the next moment is message 2. At this time, if the jitter value between message 2 (or data packet 2) and message 1 (or data packet 1) meets the jitter threshold (that is, the jitter does not reach the jitter threshold s), and it is obvious that message 2 is later than message 1, then message 2 is used as the message at the current moment, and its corresponding data packet 2 is initialized as valid data packet 2 and the valid data packet 2 is obtained;

[0094] The UDP message received at the next moment is message 3. At this time, if the jitter value between message 3 and message 2 meets the jitter threshold, and it is obvious that message 3 is later than message 2, then message 3 is used as the message at the current moment, and its corresponding data packet 3 is initialized as valid data packet 3 and the valid data packet 3 is obtained;

[0095] The UDP message received at the next moment is message 4. At this time, if the jitter value between message 4 and message 3 meets the jitter threshold, and it is obvious that message 4 is later than message 3, then message 4 is used as the message at the current moment, and its corresponding data packet 4 is initialized as valid data packet 4 and the valid data packet 4 is obtained;

[0096] The next UDP message received is message 6. At this time, if the jitter value between message 6 and message 4 does not meet the jitter threshold, data packet 6 corresponding to message 6 is discarded.

[0097] The UDP message received at the current moment is message 5. At this time, its corresponding data packet 5 is initialized as valid data packet 5 and the valid data packet 5 is obtained;

[0098] The UDP message received at the next moment is message 7. At this time, if the jitter value between message 7 and message 5 meets the jitter threshold, and it is obvious that message 7 is later than message 5, then message 3 is used as the message at the current moment, and its corresponding data packet 3 is initialized as valid data packet 3 and the valid data packet 3 is obtained.

[0099] Furthermore, the valid data packets obtained include valid data packets 1, 2, 3, 4, 5, and 7, and data packet 6 is discarded.

[0100] In the second example, assume that messages 1 to 7 are sent in sequence, and their corresponding data packets are data packets 1 to 7; and assume that the receiving order of messages 1 to 7 is: message 2, message 1, message 3, message 4, message 6, and message 7.

[0101] The UDP message received at the current moment is message 2. At this time, its corresponding data packet 2 is initialized as valid data packet 2 and the valid data packet 2 is obtained;

[0102] The next UDP message received is message 1. At this time, if the jitter value between message 1 and message 2 meets the jitter threshold, and it is obvious that message 1 is earlier than message 2, then data packet 1 corresponding to message 1 is discarded.

[0103] The UDP message received at the current moment is message 3. At this time, its corresponding data packet 3 is initialized as valid data packet 3 and the valid data packet 3 is obtained;

[0104] The next UDP message received is message 4. At this time, if the jitter value between message 4 and message 3 does not meet the jitter threshold, data packet 4 corresponding to message 4 is discarded.

[0105] The UDP message received at the current moment is message 6. At this time, its corresponding data packet 6 is initialized as valid data packet 6 and the valid data packet 6 is obtained;

[0106] The next UDP message received is message 5. At this time, if the jitter value between message 5 and message 6 meets the jitter threshold, and it is obvious that message 5 is earlier than message 6, then data packet 5 corresponding to message 5 is discarded.

[0107] The UDP message received at the current moment is message 7. At this time, its corresponding data packet 7 is initialized as valid data packet 7 and the valid data packet 7 is obtained.

[0108] Furthermore, the valid data packets obtained include valid data packets 2, 3, 6, and 7, and data packets 1, 4, and 5 are discarded.

[0109] In the first and second examples above, the jitter value between the UDP packets received at two adjacent moments may not reach the jitter threshold, or may reach the jitter threshold. After the processing of the above steps S411 to S417, valid data packets that meet the jitter requirements and timing requirements can be screened out. In one embodiment, it is also possible to first determine whether the sending timestamp of the data packet of the UDP packet at the next moment is later than the sending timestamp of the valid data packet. If it is later, it is also feasible to determine whether the jitter value between the data packet of the UDP packet received at the next moment and the valid data packet reaches the jitter threshold.

[0110] In some embodiments, such as Figure 5 As shown, step S4 may include:

[0111] Step S421, allocate a buffer area.

[0112] Step S422, initializing the buffer area.

[0113] Initializing the cache also clears the cache.

[0114] Step S423, writing the data packet of the UDP message currently received into the buffer area.

[0115] Step S424: Based on the sending timestamp and the receiving timestamp, determine the jitter value between the data packet of the UDP message received at the next moment and the data packet stored in the buffer area.

[0116] Step S425, determining whether the jitter value reaches a jitter threshold.

[0117] Step S426: When the jitter value reaches the jitter threshold, it is determined based on the sending timestamp whether the data packet of the UDP message received at the next moment is later than the data packet stored in the buffer area.

[0118] In step S426, if it is determined that the data packet is later than the data packet stored in the cache, step S427 is executed; if it is determined that the data packet is earlier than the data packet stored in the cache, step S428 is executed.

[0119] Step S427, taking the data packet of the UDP message received at the next moment as the data packet of the UDP message received at the current moment. After executing step S427, returning to execute step S421.

[0120] Step S428, discard the data packet of the UDP message received at the next moment. After executing step S428, return to execute step S424.

[0121] Step S429: When the jitter value does not reach the jitter threshold, the data packet of the UDP message received at the next moment is written into the buffer area.

[0122] Step S430, based on the sending timestamp, the data packet with an earlier sending time stored in the buffer area is taken as a valid data packet and a valid data packet is obtained. After executing step S430, return to execute step S424. Among them, the buffer area is mainly used to sort the received unordered data packets, and then take out the data packet with an earlier sending time as a valid data packet according to the sorting in it.

[0123] Among them, using the buffer area for sorting will inevitably introduce delay, so the size of the buffer area should not be too large. It is generally appropriate to correspond to the time range of 2 or 3 data packets. Data packets that have not arrived can be considered as timed-out packets and will usually be discarded to ensure the real-time performance of remote surgery in the telemedicine system.

[0124] The above steps S421 to S430 are mainly described based on the situation that the buffer area can store two data packets, and are described by example as follows.

[0125] Assume that the UDP messages sent are message 1 to message 8, and their corresponding data packets are data packets 1 to 8; and assume that the receiving order of messages 1 to 8 is: message 1, message 2, message 3, message 4, message 6, message 8, message 5, and message 7; and use [0,0] to represent an empty buffer area, which includes the size of two data packets. Among them:

[0126] The message received at the current moment is message 1. If data packet 1 is written into the buffer [0,0], the buffer is updated to [0, data packet 1].

[0127] The next received message is message 2. If the jitter between message 2 and message 1 meets the jitter threshold, message 2 is written into the cache [0, message 1]. The cache is updated (including sorting) to [message 2, message 1]. At this time, the earlier message 1 is taken out and the cache is updated to [0, message 2]. The cycle of writing a message into the cache and taking it out from the cache is basically the same. In addition, one thread is usually used to write a message into the cache, and another thread is used to take it out from the cache.

[0128] The next received message is message 3. If the jitter between message 3 and message 2 meets the jitter threshold, message 3 is written into the cache [0, message 2], and the cache is updated to [message 3, message 2]. At this time, the earlier message 2 is taken out, and the cache is updated to [0, message 3].

[0129] The next received message is message 4. If the jitter between message 4 and message 3 meets the jitter threshold, message 4 is written into the cache [0, message 3], and the cache is updated to [message 4, message 3]. At this time, the earlier message 3 is taken out, and the cache is updated to [0, message 4].

[0130] The next received packet is packet 6. If the jitter between packet 6 and packet 4 does not meet the jitter threshold, the buffer is initialized to obtain [0,0], and packet 6 is written into the buffer [0,0] as the packet 6 received at the current moment. Then the buffer is updated to [0, packet 6].

[0131] The next received packet is packet 8. If the jitter between packet 8 and packet 6 does not meet the jitter threshold, the cache is initialized to obtain [0,0], that is, the premature packet 6 is discarded, and packet 8 is written into the cache [0,0] as the packet 8 received at the current moment, then the cache is updated to [0, packet 8].

[0132] The next received message is message 5. If the jitter between message 5 and message 8 does not meet the jitter threshold, and it is obvious that message 5 is later than message 8, the premature message 5 is discarded, so the buffer is not updated and remains [0, message 8].

[0133] The message received at the next moment is message 7. If the jitter between data packet 7 and data packet 8 meets the jitter threshold, data packet 7 is written into the cache [0,0] as the data packet 7 received at the current moment, and the cache is updated to [data packet 8, data packet 7]. At this time, the earlier data packet 7 is taken out and the cache is updated to [0, data packet 8].

[0134] Furthermore, the valid data packets obtained above include valid data packets 1, 2, 3, 4, and 7. Data packets 1, 5, and 6 are discarded. Whether data packet 8 is discarded is determined based on the message received at the next moment after receiving data packet 7. It can be seen that the setting of the buffer area can retain as many data packets as possible under a tolerable delay to prevent subsequent jitters such as during motion control.

[0135] In some embodiments, Figure 6 As shown, step S4 may include:

[0136] Step S441, allocate a buffer area.

[0137] The buffer area includes storage space for at least two data packet overheads. In some embodiments, the storage space of the buffer area can store 2 or 3 data packets.

[0138] Step S442, initializing the cache area.

[0139] Step S443, writing the data packet of the UDP message received at the current moment into the buffer area.

[0140] Step S444: Based on the sending timestamp and the receiving timestamp, determine the jitter value between the data packet of the UDP message received at the next moment and the data packet stored in the buffer area.

[0141] Step S445, determining whether the jitter value reaches the jitter threshold.

[0142] Step S446: When the jitter value reaches the jitter threshold, it is determined based on the sending timestamp whether the data packet of the UDP message received at the next moment is later than the data packet stored in the buffer area.

[0143] In step S446, if it is determined that the data packet is later than the data packet stored in the cache, step S447 is executed; if it is determined that the data packet is earlier than the data packet stored in the cache, step S448 is executed.

[0144] Step S447, taking the data packet of the UDP message received at the next moment as the data packet of the UDP message received at the current moment. After executing step S447, returning to executing step S441.

[0145] Step S448, discard the data packet of the UDP message received at the next moment. After executing step S448, return to execute step S444.

[0146] Step S449: When the jitter value does not reach the jitter threshold, the data packet of the UDP message received at the next moment is written into the buffer area.

[0147] Step S450, determining whether the buffer area is full.

[0148] In step S450, if the buffer area is not full, the process returns to step S444; if the buffer area is full, the process proceeds to step S451.

[0149] Step S51: Based on the sending timestamp, the data packet of the UDP message with the earliest sending time stored in the buffer area is taken as a valid data packet and the valid data packet is obtained.

[0150] After executing step S451, return to execute step S444.

[0151] The above steps S441 to S451 are mainly described based on the situation that the buffer area can store three data packets, and are illustrated as follows.

[0152] Assume that the UDP messages sent are message 1 to message 8, and their corresponding data packets are data packets 1 to 8; and assume that the receiving order of messages 1 to 8 is: message 1, message 2, message 3, message 4, message 7, message 5, and message 6; and use [0,0,0] to represent an empty buffer area, which includes the size of three data packets. Among them:

[0153] The message received at the current moment is message 1. If data packet 1 is written into the buffer [0,0,1], the buffer is updated to [0,0,data packet 1].

[0154] The next message received is message 2. If the jitter between message 2 and message 1 meets the jitter threshold, message 2 is written into the buffer [0, 0, message 1]. The buffer is updated (including sorting) to [0, message 2, message 1]. At this time, it is detected that the buffer is not full and continues to wait for the message to be received at the next moment.

[0155] The next message received is message 3. If the jitter between message 3 and message 2 meets the jitter threshold (the message packet of the newly received message is compared with the message packet with a relatively later sending timestamp in the buffer), message packet 3 is written into the buffer [0, message packet 2, message packet 1], and the buffer is updated to [message packet 3, message packet 2, message packet 1]. At this time, it is detected that the buffer is full, and an earlier message packet, i.e., message packet 1, is taken out, and the buffer is updated to [0, message packet 3, message packet 2]. Usually, one thread is used to write the message packet into the buffer, and another thread is used to take the message packet out of the buffer.

[0156] The next received packet is packet 4. If the jitter between packet 4 and packet 3 meets the jitter threshold, packet 4 is written into the cache [0, packet 3, packet 2], and the cache is updated to [packet 4, packet 3, packet 2]. At this time, it is detected that the cache is full, and an earlier packet, packet 2, is taken out, and the cache is updated to [0, packet 4, packet 3].

[0157] The next received packet is packet 7. If the jitter between packet 7 and packet 4 does not meet the jitter threshold, the buffer is cleared to [0,0,0], and packet 7 is written into the buffer [0,0,0] as the packet 7 received at the current moment. The buffer is then updated to [0,0, packet 7].

[0158] The next message received is message 5. If the jitter between data packet 5 and data packet 7 meets the jitter threshold, data packet 5 is written into the buffer [0, 0, data packet 7], and the buffer is updated to [0, data packet 7, data packet 5]. At this time, it is detected that the buffer is not full, and the next message to be received is continued to be waited;

[0159] The message received at the next moment is message 6. If the jitter between data packet 6 and data packet 7 meets the jitter threshold, data packet 6 is written into the cache [0, data packet 7, data packet 5], and the cache is updated to [data packet 7, data packet 6, data packet 5]. At this time, it is detected that the cache is full, and an earlier data packet, namely data packet 5, is taken out, and the cache is updated to [0, data packet 7, data packet 6], and waits for the message received at the next moment.

[0160] Furthermore, the valid data packets obtained include valid data packets 1, 2, and 5, data packets 3 and 4 are discarded, and whether data packets 6 and 7 are discarded is determined according to the message received at the next moment after receiving data packet 6. Generally, the larger the buffer area, the longer the tolerable delay, that is, the jitter threshold can be determined based on the tolerable delay.

[0161] It can be seen that the various implementations of the above step S4 can obtain valid data packets that meet the jitter requirements and the timing requirements, and can improve the reliability of remote surgery. In some embodiments, in the above step S4, each valid data packet can be output and sent to the second main station.

[0162] In some embodiments, the telemedicine system includes a main operating console 100 and a slave operating device 200, the main operating console 100 is located at the doctor's end for remote operation by the doctor, the slave operating device 200 is located at the patient's end for performing surgery on the patient, the first surgical device includes one of the main operating console 100 and the slave operating device 200, and the second surgical device includes the other of the main operating console 100 and the slave operating device 200.

[0163] In some embodiments, in the Ethercat message, the standard Ethernet frame header usually includes 14 bytes. Under normal circumstances, the master console 100 sends 2000 messages to the slave operation device 200 at an average rate of 2000 per second, that is, the interval between two messages is 0.5ms; corresponding to 2 to 3 messages, the buffering time is 1 to 1.5 milliseconds; the slave operation device 200 sends 1000 messages to the master console 100 at an average rate of 1ms per second, that is, the interval between two messages is 1ms; corresponding to 2 to 3 messages, the buffering time is 2 to 3 milliseconds; when transmitting on the Internet, the Ethernet frame header (the standard Ethernet frame header packet) is discarded. In the first direction from the main console 100 to the slave operating device 200, 2000x14b=28kb is reduced, and in the second direction from the slave operating device 200 to the main console 100, 1000x14b=14kb bytes are reduced; if converted into bandwidth, it is less than normal: the first direction is reduced by 28x8=224kbps, and the second direction is reduced by 14x8=112kbps; a total of 336kbps of network bandwidth is reduced. Even considering that the message transmitted on the Internet adds a custom protocol frame with 8 bytes for obtaining a valid data packet, in fact, the network bandwidth can be greatly reduced. Therefore, the method and telemedicine system of the present application are suitable for a lower network bandwidth environment.

[0164] In some embodiments, see Figure 7 , the first surgical device includes a main operating table 100, and the second surgical device includes a slave operating device 200. The main operating table 100 includes a motion input mechanism 120, which is used to generate motion control instructions according to the doctor's input, and the motion input mechanism 120 is connected to the first main station 110 via industrial Ethernet. The slave operating device 200 includes a motion actuator, which is used to move according to the motion control instruction, and the motion actuator is connected to the second main station 210 via industrial Ethernet. Among them, the first main station 110 can be integrated with the main operating table 100 or independently of the main operating table 100; the second main station 210 can be integrated with the slave operating device 200 or independently of the slave operating device 200. In other embodiments, the second surgical device may also include an operating bed for the patient to lie on or other equipment that can be controlled during surgery.

[0165] For example, the motion input mechanism 120 includes a mechanical handle and a touch screen. For example, the motion execution mechanism includes at least one manipulator assembly 220 (230), for example, the manipulator assembly 220 includes a manipulator 221 and a medical device mounted on the manipulator 221, the manipulator 221 includes a parallel four-bar linkage to define a remote motion center, and the medical device includes an imaging device 222 or a surgical device 232, which can move around the remote motion center, and at least its end effector penetrates into the patient's body to perform imaging or surgery.

[0166] The Ethercat data frame of the Ethercat message generated by the main operation console 100 includes a motion control instruction, and the motion control instruction includes a position instruction and / or a posture instruction. The second master station 210 can be configured to execute the following method:

[0167] Receive the target Ethercat message, parse the target Ethercat message to obtain the motion control instruction, and then control the motion actuator to move according to the motion control instruction.

[0168] In some embodiments, the second remote host 400 may send each valid data packet to the second main station 210 after acquiring it. In some embodiments, when the Ethercat data frame of the valid data packet includes a motion control instruction, such as Figure 8 As shown, the second master station 210 may be configured to perform the following method:

[0169] Step S101, obtaining the number of interval data packets between a valid data packet received at the current moment and a valid data packet received at the previous moment, and determining whether the number reaches an interval threshold.

[0170] Step S102 : when the number reaches the interval threshold, interpolation processing is performed based on the motion control instructions included in the valid data packet received at the current moment and the motion control instructions included in the valid data packet received at the previous moment to obtain an intermediate motion control instruction.

[0171] The motion trajectory of the distal end of the motion actuator (i.e., the end effector in the medical device) can be planned according to the position and / or posture expressed by the motion control instructions corresponding to the valid data packets at the two moments, and then the motion trajectory is time-divided and interpolated to obtain the intermediate motion control instructions.

[0172] For example, the motion trajectory can be planned in an online planning manner. For example, the motion trajectory can be designed as an S-shaped curve. For another example, the motion trajectory can be designed as a polynomial curve such as a cubic curve or a quintic curve. For another example, the motion trajectory can be designed as a trapezoidal curve. For example, a quintic curve-type motion trajectory with second-order continuity can be selected.

[0173] The number of interpolations can be determined according to the requirements. For example, the number of interpolations can be equal to the number of interval packets between the two moments. For another example, the number of interpolations can also be greater than or less than the number of interval packets between the two moments. Exemplarily, in a process, when the valid data packet received at the current moment is data packet 7, and the valid data packet received at the previous moment is, for example, data packet 3, the interpolation process can be performed to obtain 1, 2, 3, 4, 5 intermediate motion control instructions.

[0174] Step S103 , controlling the motion execution mechanism to move according to the intermediate motion control instruction and the motion control instruction included in the valid data packet received at the current moment.

[0175] Among them, in step S103, the motion control instruction motion included in the valid data packet received at the last moment is executed first. Since the processing of the above step S4 filters out more data packets that do not meet the jitter requirements and timing requirements between two adjacent moments, the motion trajectory of the far end of the motion actuator is prone to sudden changes. Through the above steps S101 to S103, the smoothness of the motion trajectory of the far end of the motion actuator can be improved.

[0176] In some embodiments, continue to refer to Figure 7 , the motion actuator includes a first manipulator component 220 with an imaging device 222 and a second manipulator component 230 with a surgical instrument 232. The motion input mechanism 120 can generate motion control instructions for controlling the movement of the first manipulator component 220 and / or the second manipulator component 230. During remote surgery, the doctor observes the image captured by the surgical instrument 232 on the display screen of the main operating station 100 while controlling the movement of the imaging device 222 or the surgical instrument 232. In some embodiments, the Ethercat data frame of the Ethercat message generated by the main operating station 100 also includes the network delay of the image frame captured by the surgical instrument 232 from the second main station 210 to the first main station 110. Fig. 9 As shown, the second master station 210 may be configured to perform the following method:

[0177] Step S201, receiving a target Ethercat message, parsing the target Ethercat message to obtain a motion control instruction and a network delay of an image frame.

[0178] Step S202, determining the type of motion control instruction.

[0179] The motion control instructions include a first motion control instruction for controlling the motion of the first manipulator assembly 220, and a second motion control instruction for controlling the motion of the second manipulator assembly 230. The former specifically controls the motion of the imaging device 222 to adjust the field of view, and the latter specifically controls the motion of the surgical instrument 232 to perform surgical operations such as clamping, cutting, suturing, and suction.

[0180] The type of the motion control instruction may be determined, for example, according to a mapping relationship between the motion input mechanism 120 and the motion execution mechanisms 220 and 230 .

[0181] Step S203: When the type of the motion control instruction is the second motion control instruction and the network delay of the image frame reaches the delay threshold, control the second manipulator component to stop responding to the motion control instruction.

[0182] The network delay of the image frame includes multiple factors, such as the delay caused by encoding, transmission and decoding. The delay threshold is exemplarily set to 80ms. If it is too long, it is easy to feel the hysteresis of the image. The network delay can be determined by calculating the time from the start of encoding to the completion of decoding. In step S203, controlling the second manipulator component 230 to stop responding to the control instruction includes multiple implementations, for example, the second main station 210 stops receiving or parsing the target Ethercat message, and for another example, the second main station 210 generates an emergency braking instruction to command the second manipulator component 230 to brake urgently, and for another example, the second main station 210 generates an interruption instruction to the second remote host 400 to control the second remote host 400 to disconnect from the first remote host 300. In some embodiments, the connection between the first remote host 300 and the second remote host 400 may not be interrupted, allowing the main console 100 to continue to receive and display image frames, but prohibiting the motion input mechanism 120 of the main console 100 from being enabled, so that the remote doctor can only provide guidance and not operate personally.

[0183] Through steps S201 , S202 and S203 , when the network delay of the image frame of the remote surgery does not meet the requirement, the remote surgery is interrupted to ensure the safety of the patient.

[0184] In some other embodiments, continue to refer to Figure 7 The telemedicine system further includes another main operation console 100' located at the patient end for local operation by the doctor. The other main operation console 100' includes another motion input mechanism 120' and another main station 110' connected via industrial Ethernet. The other main station 110' is locally connected to the second main station 210 via industrial Ethernet. Fig.10 As shown, the second master station 210 may be configured to perform the following method:

[0185] Step S201, receiving a target Ethercat message, parsing the target Ethercat message to obtain a motion control instruction and a network delay of an image frame.

[0186] Step S202, determining the type of motion control instruction.

[0187] Step S204 , when the type of the motion control instruction is the second motion control instruction and the network delay reaches the delay threshold, switching the remote response of the second master station to the first master station to a local response to another master station.

[0188] Among them, switching the remote response of the second main station 210 to the first main station 110 to the local response to the other main station 110' includes multiple implementation methods. For example, the remote connection between the first remote host 300 and the second remote host 400 can be interrupted, and a local connection between the other main station 110' and the second main station 210 can be established. For example, the remote connection between the first remote host 300 and the second remote host 400 can be maintained, but the motion input mechanism 120 of the main operating console 100 can be prohibited from being enabled, and a local connection between the other main station 110' and the second main station 210 can be established, and the motion input mechanism 120 of the other main operating console 100' can be enabled.

[0189] Through steps S201, S202 and S204, that is, when the network delay of the image frame of the remote surgery does not meet the requirements, the remote surgery mode is switched to the local surgery mode, which can not only ensure the safety of the patient, but also ensure that the surgery can continue to be performed.

[0190] In some embodiments, based on the description of the above-mentioned one-way data interaction process, when the slave operating device 200 serves as the first surgical device and the main operating console 100 serves as the second surgical device, the slave operating device 200 includes a status feedback mechanism connected to the first main station 110 via industrial Ethernet, and the main operating console 100 includes a human-computer interaction device connected to the second main station 210 via industrial Ethernet and used to perform status feedback in response to the input of the status feedback mechanism.

[0191] For example, the state feedback mechanism includes, but is not limited to, various sensors for sensing the motion state or force state of the motion actuator, and various detection units for sensing software and hardware failures. For example, the human-computer interaction device includes an audio-visual device such as a display screen or a speaker for feedback of the motion state or software and hardware failure of the motion actuator, and a drive motor provided in the motion input mechanism 120 for feedback of the force state.

[0192] The Ethercat data frame of the Ethercat message generated by the operating device 200 is written with a state feedback instruction. The second master station 210 may be configured to execute the following method:

[0193] Receive the target Ethercat message, parse the target Ethercat message to obtain the status feedback instruction, and then control the human-computer interaction device to perform status feedback according to the status feedback instruction.

[0194] The present application also provides a control device for a telemedicine system. Fig.11 As shown, the control system may include: a processor (processor) 501, a communication interface (Communications Interface) 502, a memory (memory) 503, and a communication bus 504.

[0195] The processor 501 , the communication interface 502 , and the memory 503 communicate with each other via the communication bus 504 .

[0196] The communication interface 502 is used to communicate with other devices such as various sensors, rotating motors, solenoid valves, or network elements of other clients or servers.

[0197] The processor 501 is used to execute the program 505, and specifically can execute the relevant steps in the above method embodiment.

[0198] Specifically, the program 505 may include program codes, which include computer operation instructions.

[0199] The processor 505 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, or an FPGA, or a graphics processing unit (GPU). The one or more processors included in the control device may be processors of the same type, such as one or more CPUs, or one or more GPUs; or may be processors of different types, such as one or more CPUs and one or more GPUs.

[0200] The memory 503 is used to store the program 505. The memory 503 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0201] The program 505 may be specifically used to enable the processor 501 to perform the following operations:

[0202] The first remote host receives the Ethercat message sent by the first master station, discards the Ethernet frame header of the Ethercat message and obtains the Ethercat data frame;

[0203] The first remote host encapsulates the Ethercat data frame to generate a UDP message including a UDP header and a custom protocol frame, and sends the UDP message to the second remote host, and the custom protocol frame is written into the sending timestamp of the UDP message;

[0204] The second remote host receives the UDP message, discards the UDP header of the UDP message and obtains a data packet, the data packet includes a custom protocol frame and an Ethercat data frame;

[0205] The second remote host obtains a valid data packet from the data packet based on the sending timestamp;

[0206] The second remote host discards the custom protocol frame of the valid data packet, obtains the Ethercat data frame of the valid data packet, encapsulates the Ethercat data frame of the valid data packet to generate a target Ethercat message including a target Ethernet frame header, and sends the target Ethercat message Ethernet frame header to the second master station.

[0207] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program is configured to be loaded by a processor and executed to implement the steps of the method described in any of the above embodiments.

[0208] The present application also provides a computer program product, including computer instructions, which, when executed on a computer, enable the computer to execute the method described in any one of the above embodiments.

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

[0210] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A telemedicine system, characterized in that: include: A first surgical device, including a first master station; a second surgical device, including a second master station; A first remote host is connected to the first master station via industrial Ethernet; and A second remote host, connected to the second master station via industrial Ethernet, and remotely connected to the first remote host via the Internet; The first remote host is configured to: receiving an Ethercat message sent by the first master station, discarding an Ethernet frame header of the Ethercat message and obtaining an Ethercat data frame; and Encapsulating the Ethercat data frame to generate a UDP message including a UDP header and a custom protocol frame, and sending the UDP message to the second remote host, wherein the custom protocol frame writes a sending timestamp of the UDP message; The second remote host is configured as: Receive the UDP message, discard the UDP header of the UDP message and obtain a data packet, wherein the data packet includes the custom protocol frame and the Ethercat data frame; obtaining a valid data packet from the data packet based on the sending timestamp; and The custom protocol frame of the valid data packet is discarded, the Ethercat data frame of the valid data packet is obtained, the Ethercat data frame of the valid data packet is encapsulated to generate a target Ethercat message including a target Ethernet frame header, and the target Ethercat message is sent to the second master station.

2. The telemedicine system according to claim 1, characterized in that: Obtaining a valid data packet from the data packet based on the sending timestamp, comprising: Initialize the data packet of the UDP message received at the current moment as the valid data packet; Determine a jitter value between a data packet of the UDP message received at the next moment and the valid data packet; Determining whether the jitter value reaches a jitter threshold; When the jitter value reaches the jitter threshold, discard the data packet of the UDP message received at the next moment, and return to execute the step of initializing the data packet of the UDP message received at the current moment as the valid data packet; When the jitter value does not reach the jitter threshold, determining whether the sending timestamp of the data packet of the UDP message received at the next moment is later than the sending timestamp of the valid data packet; When it is later than the valid data packet, the data packet of the UDP message received at the next moment is used as the data packet of the UDP message received at the current moment, and the step of initializing the data packet of the UDP message received at the current moment as the valid data packet is returned to be executed; When it is earlier than the valid data packet, the data packet of the UDP message received at the next moment is discarded, and the step of initializing the data packet of the UDP message received at the current moment as the valid data packet is returned to be executed.

3. The telemedicine system according to claim 1, characterized in that: Obtaining a valid data packet from the data packet based on the sending timestamp, comprising: Allocating a buffer area, the buffer area including storage space for two of the data packets; Initializing the buffer area; Writing the data packet of the UDP message received at the current moment into the buffer area; Determine a jitter value between a data packet of the UDP message received at a next moment and the data packet stored in the buffer area; Determining whether the jitter value reaches a jitter threshold; When the jitter value reaches the jitter threshold, determining whether the sending timestamp of the data packet of the UDP message received at the next moment is later than the sending timestamp of the data packet stored in the buffer area; When the data packet is later than the data packet stored in the buffer area, the data packet of the UDP message received at the next moment is used as the data packet of the UDP message received at the current moment, and the step of initializing the buffer area is returned to execute; When the data packet is earlier than the data packet stored in the buffer area, discard the data packet of the UDP message received at the next moment, and return to the step of determining the jitter value between the data packet of the UDP message received at the next moment and the data packet stored in the buffer area; When the jitter value does not reach the jitter threshold, writing the data packet of the UDP message received at the next moment into the buffer area; The data packet with an earlier sending timestamp stored in the buffer area is taken as the valid data packet, and the step of determining the jitter value between the data packet of the UDP message received at the next moment and the data packet stored in the buffer area is returned to be executed.

4. The telemedicine system according to claim 1, characterized in that: Obtaining a valid data packet from the data packet based on the sending timestamp, comprising: Allocating a buffer area, the buffer area including storage space for at least two of the data packets; Initializing the buffer area; Writing the data packet of the UDP message received at the current moment into the buffer area; Determine a jitter value between a data packet of the UDP message received at a next moment and the data packet stored in the buffer area; Determining whether the jitter value reaches a jitter threshold; When the jitter value reaches the jitter threshold, determining whether the sending timestamp of the data packet of the UDP message received at the next moment is later than the sending timestamp of the data packet stored in the buffer area; When the data packet is later than the data packet stored in the buffer area, the data packet of the UDP message received at the next moment is used as the data packet of the UDP message received at the current moment, and the step of initializing the buffer area is returned to execute; When the data packet is earlier than the data packet stored in the buffer area, discard the data packet of the UDP message received at the next moment, and return to the step of determining the jitter value between the data packet of the UDP message received at the next moment and the data packet stored in the buffer area; When the jitter value does not reach the jitter threshold, writing the data packet of the UDP message received at the next moment into the buffer area; Determine whether the cache is full; If the buffer area is not full, return to the step of determining the jitter value between the data packet of the UDP message received at the next moment and the data packet stored in the buffer area; If the buffer is full, the data packet of the UDP message with the earliest sending timestamp stored in the buffer is taken as the valid data packet, and the step of determining the jitter value between the data packet of the UDP message received at the next moment and the data packet stored in the buffer is returned.

5. The telemedicine system according to claim 4, characterized in that: The buffer area has storage space for two or three data packets of the UDP message; the custom protocol frame has 8 bytes of storage space.

6. The telemedicine system according to claim 1, characterized in that: The Ethernet frame header includes a destination address segment in which the physical address of the first remote host is written, and a source address segment in which the physical address of the first host is written; The target Ethernet frame header includes a destination address segment in which the physical address of the second host is written, and a source address segment in which the physical address of the second remote host is written; The UDP header includes a source port segment written to the communication port of the first remote host, and a destination port segment written to the communication port of the second remote host, and the communication port of the first remote host and the communication port of the second remote host are determined based on network address translation technology.

7. The telemedicine system according to claim 1, characterized in that: The telemedicine system includes a first master operating console and a slave operating device. The first master operating console is located at the doctor's end for remote operation by the doctor, and the slave operating device is located at the patient's end for performing surgery on the patient. The first surgical device includes one of the first master operating console and the slave operating device, and the second surgical device includes the other of the first master operating console and the slave operating device.

8. The telemedicine system according to claim 7, characterized in that: The first surgical device comprises the first master operating table, the second surgical device comprises the slave operating device, the first master operating table comprises a first motion input mechanism connected to the first master station via industrial Ethernet, the slave operating device comprises a first manipulator component 220 with an imaging instrument and a second manipulator component 230 with a surgical instrument connected to the second master station via industrial Ethernet, the first motion input mechanism generates a motion control instruction for controlling the motion of the first manipulator component 220 and / or the second manipulator component 230, the Ethercat data frame comprises the motion control instruction and a network delay of an image frame acquired by the imaging instrument from the second master station to the first master station; the second master station is configured as follows: Receiving the target Ethercat message, parsing the target Ethercat message to obtain the motion control instruction and the network delay; Determine a type of the motion control instruction, the motion control instruction comprising a first motion control instruction for controlling the motion of the first manipulator component 220 and a second motion control instruction for controlling the motion of the second manipulator component 230; When the type of the motion control instruction is the second motion control instruction and the network delay reaches a delay threshold, the second manipulator component 230 is controlled to stop responding to the motion control instruction.

9. The telemedicine system according to claim 8, characterized in that: The telemedicine system further comprises a second main operation console located at the patient end for local operation by the doctor, wherein the second main operation console comprises a second motion input mechanism and a third main station connected via industrial Ethernet, wherein the third main station is locally connected to the second main station via industrial Ethernet; the second main station is configured as follows: When the type of the motion control instruction is the second motion control instruction and the network delay reaches a delay threshold, the remote response of the second master station to the first master station is switched to a local response to the third master station.

10. A method, applied to a telemedicine system, characterized in that, The telemedicine system comprises: A first surgical device, including a first master station; a second surgical device, including a second master station; A first remote host connected to the first master station via industrial Ethernet; and A second remote host, connected to the second master station via industrial Ethernet, and remotely connected to the first remote host via the Internet; The control method comprises: The first remote host receives the Ethercat message sent by the first master station, discards the Ethernet frame header of the Ethercat message and obtains the Ethercat data frame; The first remote host encapsulates the Ethercat data frame to generate a UDP message including a UDP header and a custom protocol frame, and sends the UDP message to the second remote host, wherein the custom protocol frame writes a sending timestamp of the UDP message; The second remote host receives the UDP message, discards the UDP header of the UDP message and obtains a data packet, wherein the data packet includes the custom protocol frame and the Ethercat data frame; The second remote host obtains a valid data packet from the data packet based on the sending timestamp; The second remote host discards the custom protocol frame of the valid data packet, obtains the Ethercat data frame of the valid data packet, encapsulates the Ethercat data frame of the valid data packet to generate a target Ethercat message including a target Ethernet frame header, and sends the target Ethercat message to the second master station.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is configured to be loaded and executed by a processor to implement the steps of the method according to claim 10 .

Citation Information

Cited By

  • Remote medical system and method

    EP4697681A1

  • Remote medical system and method

    WO2024212847A1